/* Premium Modern Minimalist Theme */
:root {
    --primary: #000000;
    --secondary: #333333;
    --accent: #E50914;
    /* Subtle Red Accent */
    --bg-body: #ffffff;
    --bg-surface: #f4f4f4;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border: #e0e0e0;
    --radius: 0px;
    /* Sharp corners for modern feel */
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-body);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.5rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border: 1px solid var(--primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn:hover {
    background: transparent;
    color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: 100px 0;
}

/* Header */
header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 20px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Split Hero Section */
.hero {
    min-height: 80vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    background: var(--bg-surface);
}

.hero-content {
    padding: 60px 80px;
    animation: fadeIn 1s ease;
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 20px 0 40px;
    max-width: 500px;
}

.hero-image {
    height: 100%;
    background: url('https://images.unsplash.com/photo-1578632767115-351597cf2477?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover;
    position: relative;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
}

/* Minimal Product Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.product-card {
    background: white;
    transition: 0.3s;
    border-bottom: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 20px;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-info {
    padding: 0 10px 20px;
    text-align: center;
}

.product-title {
    font-size: 1.2rem;
    font-family: 'Playfair Display', serif;
    margin-bottom: 5px;
}

.product-price {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: block;
}

.add-to-cart-btn {
    background: transparent;
    border: 1px solid var(--border);
    padding: 10px 20px;
    width: 100%;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.add-to-cart-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Customizer Workbench */
.customizer-layout {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 60px;
    background: white;
    border: 1px solid var(--border);
    padding: 40px;
}

.preview-box {
    background: var(--bg-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    border: 1px solid var(--border);
}

#magnetCanvas {
    width: 350px;
    height: 350px;
    background: white;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.form-group label {
    display: block;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-muted);
}

input[type="text"],
select,
input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    background: white;
    font-family: 'Inter', sans-serif;
    margin-bottom: 20px;
    outline: none;
    transition: 0.2s;
}

input[type="text"]:focus,
select:focus {
    border-color: var(--primary);
}

/* Utility */
.text-center {
    text-align: center;
}

.mb-4 {
    margin-bottom: 2rem;
}

/* Responsive */
@media(max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-image {
        height: 400px;
        order: -1;
    }

    .customizer-layout {
        grid-template-columns: 1fr;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 60px 0;
    text-align: center;
}

footer p {
    opacity: 0.7;
    font-size: 0.9rem;
}