/* SSENSE Brutalist Theme - Minimal & Clean */

:root {
    /* Couleurs SSENSE - Fond clair, texte noir */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    
    --text-primary: #000000;
    --text-secondary: #666666;
    --text-muted: #999999;
    
    --border: #000000;
    --border-light: #e0e0e0;
    
    --accent: #000000;
    --hover: #f0f0f0;
    
    /* Typography - Style minimaliste */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    
    /* Spacing très aéré */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 40px;
    --space-xl: 80px;
    
    /* Bordures fines */
    --border-thin: 1px solid var(--border);
    --border-thick: 2px solid var(--border);
    
    /* Transitions subtiles */
    --transition: all 0.2s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
    letter-spacing: 0.02em;
}

/* Container large comme SSENSE */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Header minimaliste */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: var(--border-thin);
    z-index: 1000;
    height: 60px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.logo-image {
    height: 50px;
    width: auto;
}

/* Navigation centrée - style SSENSE */
.nav-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-link {
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 0;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--text-primary);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Actions à droite */
.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn:hover {
    opacity: 0.6;
}

.icon-btn svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.5;
}

.cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--text-primary);
    color: var(--bg-primary);
    font-size: 10px;
    font-weight: 600;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none;
}

/* Main content avec padding top pour le header fixe */
main {
    padding-top: 60px;
    min-height: 100vh;
}

/* Grille produits style SSENSE */
.grid-products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border-light);
    border-top: var(--border-thin);
    border-left: var(--border-thin);
}

.product-card {
    background: var(--bg-primary);
    border-right: var(--border-thin);
    border-bottom: var(--border-thin);
    padding: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
}

.product-card:hover {
    background: var(--bg-secondary);
}

.product-image {
    aspect-ratio: 1;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.05);
}

.product-info {
    padding: 16px;
}

.product-brand {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.product-name {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-primary);
}

.product-aura {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Product page gallery */
.product-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-main-image-wrap {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
}

.product-main-image {
    width: 100%;
    height: auto;
    display: block;
}

.product-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-thumb {
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    cursor: pointer;
    padding: 0;
    flex: 0 0 86px;
    transition: var(--transition);
}

.product-thumb:hover,
.product-thumb.active {
    border-width: 2px;
    border-color: var(--text-primary);
}

.product-thumb-image {
    width: 100%;
    height: 86px;
    object-fit: cover;
    display: block;
}

/* Grid layouts */
.grid {
    display: grid;
    gap: 20px;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* Boutons minimalistes */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: var(--border-thin);
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* Sections avec beaucoup d'air */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
    padding-bottom: 30px;
    border-bottom: var(--border-thin);
}

.section-title {
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-description {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* Filtres minimalistes */
.filters {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: var(--border-thin);
    margin-bottom: 40px;
}

.filter-btn {
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: var(--transition);
    position: relative;
}

.filter-btn:hover,
.filter-btn.active {
    color: var(--text-primary);
}

.filter-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--text-primary);
}

/* Hero section minimaliste */
.hero {
    padding: 120px 0;
    text-align: center;
    border-bottom: var(--border-thin);
}

.hero-title {
    font-size: 48px;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 24px;
    line-height: 1.2;
}

.hero-description {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* Modal style SSENSE */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-primary);
    border: var(--border-thick);
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: var(--border-thin);
}

.modal-header h2 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-primary);
}

.modal-body {
    padding: 24px;
}

/* Form inputs minimalistes */
input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    border: var(--border-thin);
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    border-width: 2px;
}

label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* Cart sidebar */
.cart-sidebar {
    position: fixed;
    top: 60px;
    right: -400px;
    width: 400px;
    height: calc(100vh - 60px);
    background: var(--bg-primary);
    border-left: var(--border-thick);
    z-index: 1500;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: var(--border-thin);
}

.cart-header h3 {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.empty-cart {
    padding: 60px 24px;
    text-align: center;
    color: var(--text-muted);
}

.empty-cart svg {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-bottom: var(--border-thin);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.cart-item-info {
    flex: 1;
}

.cart-item-name {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
}

.cart-item-price {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quantity-btn {
    width: 28px;
    height: 28px;
    border: var(--border-thin);
    background: none;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.quantity-btn:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
}

.remove-btn {
    font-size: 11px;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    margin-left: auto;
}

.remove-btn:hover {
    color: var(--text-primary);
}

.cart-footer {
    padding: 24px;
    border-top: var(--border-thick);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 14px;
}

.total-price {
    font-weight: 600;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1400;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Notification */
.notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: var(--text-primary);
    color: var(--bg-primary);
    padding: 16px 24px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 3000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.notification.show {
    transform: translateX(0);
}

/* Responsive grids that don't overflow */
@media (max-width: 1024px) {
    .grid-products {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .grid-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Fix Farming, Influencers, Profile page grids */
    div[style*="grid-template-columns: repeat(2, 1fr)"],
    div[style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Reduce padding on mobile */
    div[style*="padding: 32px"] {
        padding: 20px !important;
    }
    
    div[style*="padding: 60px"] {
        padding: 30px !important;
    }
    
    /* Reduce gaps on mobile */
    div[style*="gap: 40px"] {
        gap: 20px !important;
    }
    
    div[style*="gap: 60px"] {
        gap: 30px !important;
    }
    
    /* Hero grid to single column */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Hide hero image on mobile if needed */
    div[style*="max-height: 500px"] {
        max-height: 300px !important;
    }

    .product-thumbnails {
        gap: 8px;
    }

    .product-thumb {
        flex: 0 0 76px;
    }

    .product-thumb-image {
        height: 76px;
    }
}

@media (max-width: 480px) {
    .grid-products {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Smaller text on mobile */
    .hero-title {
        font-size: 28px !important;
    }
    
    div[style*="font-size: 48px"] {
        font-size: 32px !important;
    }
    
    div[style*="font-size: 72px"] {
        font-size: 48px !important;
    }
}

@media (max-width: 768px) {
    body.mobile-menu-open {
        overflow: hidden;
    }

    .container {
        padding: 0 20px;
    }
    
    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        transform: none;
        background: var(--bg-primary);
        border-bottom: var(--border-thick);
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-link {
        padding: 16px 0;
        border-bottom: var(--border-thin);
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .grid-products {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .cart-sidebar {
        width: 100%;
        right: -100%;
    }
}

@media (max-width: 480px) {
    .grid-products {
        grid-template-columns: 1fr;
    }
    
    .section {
        padding: 60px 0;
    }
}
