/* ============================================
   GLAMSHOP — CSS
   ============================================
   Palette: nero, bianco, beige, oro
   Tipografia: Playfair Display (titoli) + Inter (corpo)
   Layout pulito e minimale, stile luxury
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --color-primary: #1a1a1a;
    --color-secondary: #6b6b6b;
    --color-accent: #8B7355;
    --color-bg: #ffffff;
    --color-bg-light: #f8f6f3;
    --color-bg-cream: #f5f0eb;
    --color-border: #e5e0db;
    --color-success: #2d7a3a;
    --color-danger: #c41e3a;
    --color-sale: #c41e3a;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;
    --max-width: 1400px;
    --nav-height: 60px;
}

html {
    scroll-behavior: smooth;
}

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

body.menu-open {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s;
}

a:hover {
    opacity: 0.7;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* --- CONTAINER --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}


/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    background: var(--color-bg);
    z-index: 100;
}

.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
}

.navbar-logo {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.navbar-logo:hover {
    opacity: 1;
}

/* Link desktop */
.navbar-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: 48px;
    flex: 1;
    overflow: hidden;
}

.nav-link {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    white-space: nowrap;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--color-primary);
    opacity: 1;
}

/* Azioni a destra */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.navbar-icon {
    color: var(--color-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
}

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

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    padding: 0;
    background: none;
    border: none;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--color-primary);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger.active .hamburger-line:first-child {
    transform: rotate(45deg) translate(2.5px, 2.5px);
}

.hamburger.active .hamburger-line:last-child {
    transform: rotate(-45deg) translate(2.5px, -2.5px);
}


/* ============================================
   SEARCH BAR (espandibile)
   ============================================ */
.search-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: var(--color-bg);
    z-index: 110;
    display: flex;
    align-items: center;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid var(--color-border);
}

.search-bar.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.search-bar .navbar-container {
    width: 100%;
}

.search-form {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
}

.search-input {
    flex: 1;
    padding: 10px 0;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 16px;
    background: transparent;
    border-bottom: 1px solid var(--color-border);
}

.search-input:focus {
    border-bottom-color: var(--color-primary);
}

.search-button {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-primary);
    padding: 8px 16px;
    background: none;
    border: 1px solid var(--color-primary);
    transition: all 0.2s;
    cursor: pointer;
}

.search-button:hover {
    background: var(--color-primary);
    color: white;
}

.search-close {
    color: var(--color-secondary);
    padding: 4px;
    display: flex;
    cursor: pointer;
}

.search-close:hover {
    color: var(--color-primary);
}


/* ============================================
   MENU OVERLAY FULLSCREEN
   ============================================ */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-primary);
    z-index: 200;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.menu-overlay-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: var(--nav-height);
    flex-shrink: 0;
}

.menu-overlay-header .navbar-logo {
    color: white;
}

.menu-close {
    font-family: var(--font-body);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.menu-close:hover {
    color: white;
}

.menu-overlay-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    overflow-y: auto;
}

.menu-overlay-links {
    display: flex;
    flex-direction: column;
}

.menu-overlay-link {
    font-family: var(--font-heading);
    font-size: 48px;
    font-weight: 400;
    color: white;
    padding: 12px 0;
    transition: opacity 0.2s;
    display: block;
    line-height: 1.2;
}

.menu-overlay-link:hover {
    opacity: 0.5;
}

.menu-overlay-link.small {
    font-family: var(--font-body);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    padding: 8px 0;
}

.menu-overlay-link.small:hover {
    color: white;
    opacity: 1;
}

.menu-overlay-divider {
    width: 40px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 24px 0;
}

.menu-overlay-footer {
    padding: 40px 40px;
    flex-shrink: 0;
}

.menu-overlay-footer p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.8;
}

/* Animazione ingresso link */
.menu-overlay.active .menu-overlay-link {
    animation: menuFadeIn 0.4s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

.menu-overlay.active .menu-overlay-link:nth-child(1) { animation-delay: 0.05s; }
.menu-overlay.active .menu-overlay-link:nth-child(2) { animation-delay: 0.1s; }
.menu-overlay.active .menu-overlay-link:nth-child(3) { animation-delay: 0.15s; }
.menu-overlay.active .menu-overlay-link:nth-child(4) { animation-delay: 0.2s; }
.menu-overlay.active .menu-overlay-link:nth-child(5) { animation-delay: 0.25s; }
.menu-overlay.active .menu-overlay-link:nth-child(6) { animation-delay: 0.3s; }
.menu-overlay.active .menu-overlay-link:nth-child(7) { animation-delay: 0.35s; }
.menu-overlay.active .menu-overlay-link:nth-child(8) { animation-delay: 0.4s; }
.menu-overlay.active .menu-overlay-link:nth-child(9) { animation-delay: 0.45s; }
.menu-overlay.active .menu-overlay-link:nth-child(10) { animation-delay: 0.5s; }

@keyframes menuFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* ============================================
   MESSAGGI FLASH
   ============================================ */
.messages-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.message {
    padding: 12px 20px;
    margin-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.message-success { background: #e8f5e9; color: var(--color-success); }
.message-error { background: #fce4e4; color: var(--color-danger); }
.message-warning { background: #fff8e1; color: #c49000; }
.message-info { background: #e3f2fd; color: #1565c0; }

.message-close {
    font-size: 18px;
    color: inherit;
    opacity: 0.5;
    padding: 0 4px;
}


/* ============================================
   HERO
   ============================================ */
.hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #3a3a3a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 600px;
    padding: 0 40px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 16px;
    font-weight: 300;
    margin-bottom: 32px;
    opacity: 0.8;
    line-height: 1.6;
}

.hero-cta {
    display: inline-block;
    padding: 14px 48px;
    border: 1px solid white;
    color: white;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s;
}

.hero-cta:hover {
    background: white;
    color: var(--color-primary);
    opacity: 1;
}


/* ============================================
   CATEGORY HERO
   ============================================ */
.category-hero {
    height: 40vh;
    min-height: 280px;
    max-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: #2a2a2a;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.category-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.category-hero-title {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 400;
    color: white;
    letter-spacing: 2px;
}

.category-hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 12px;
    max-width: 500px;
    line-height: 1.6;
}

.page-header-minimal {
    padding: 16px 0 24px;
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .category-hero {
        height: 30vh;
        min-height: 200px;
    }

    .category-hero-title {
        font-size: 36px;
    }

    .category-hero-subtitle {
        font-size: 13px;
    }

    .category-hero-overlay {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .category-hero-title {
        font-size: 28px;
    }
}

/* ============================================
   SEZIONI
   ============================================ */
.section {
    padding: 80px 0;
}

.section-light {
    background-color: var(--color-bg-light);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: 0.5px;
}


/* ============================================
   GRIGLIA CATEGORIE
   ============================================ */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    text-align: center;
    display: block;
    transition: transform 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    opacity: 1;
}

.category-card-image {
    aspect-ratio: 1;
    overflow: hidden;
    background: var(--color-bg-cream);
    margin-bottom: 16px;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.category-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 48px;
    color: var(--color-accent);
    background: var(--color-bg-cream);
}

.category-card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}


/* ============================================
   GRIGLIA PRODOTTI
   ============================================ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.product-card {
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-card-link {
    display: block;
}

.product-card-link:hover {
    opacity: 1;
}

.product-card-image {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-bg-cream);
    position: relative;
    margin-bottom: 16px;
}

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

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

.product-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-cream);
}

.product-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sale-badge {
    background: var(--color-sale);
    color: white;
}

.product-card-info {
    text-align: left;
}

.product-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 4px;
}

.product-name {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.4;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-original {
    text-decoration: line-through;
    color: var(--color-secondary);
    font-size: 13px;
}

.price-current {
    font-weight: 500;
    font-size: 14px;
}


/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
    padding: 20px 0;
    font-size: 12px;
    color: var(--color-secondary);
}

.breadcrumb a:hover {
    color: var(--color-primary);
    opacity: 1;
}

.breadcrumb-sep {
    margin: 0 8px;
}

.breadcrumb-current {
    color: var(--color-primary);
}


/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 20px 0 40px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 40px;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
}

.results-count {
    color: var(--color-secondary);
    font-size: 13px;
    margin-top: 8px;
}


/* ============================================
   CATALOGO LAYOUT (sidebar + griglia)
   ============================================ */
.catalog-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 48px;
    padding-bottom: 80px;
}

/* Filtri sidebar */
.filters-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    align-self: start;
}

.filter-group {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.filter-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.filter-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 13px;
    background: white;
    outline: none;
}

.filter-select:focus {
    border-color: var(--color-primary);
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-input {
    flex: 1;
    padding: 8px 10px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 13px;
    outline: none;
    width: 100%;
}

.filter-input:focus {
    border-color: var(--color-primary);
}

.price-sep {
    color: var(--color-secondary);
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

.filter-button {
    width: 100%;
    padding: 10px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin-top: 16px;
    transition: background 0.2s;
    cursor: pointer;
}

.filter-button:hover {
    background: #333;
}

.filter-reset {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
    color: var(--color-secondary);
}

/* Sort bar */
.sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.sort-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
}

.sort-select {
    padding: 6px 12px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 13px;
    background: white;
    outline: none;
}


/* ============================================
   DETTAGLIO PRODOTTO
   ============================================ */
.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding: 20px 0 80px;
}

.gallery-main {
    aspect-ratio: 3/4;
    overflow: hidden;
    background: var(--color-bg-cream);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.gallery-thumb {
    width: 72px;
    height: 96px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.6;
    transition: all 0.2s;
}

.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--color-primary);
    opacity: 1;
}

.product-info-brand {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 8px;
}

.product-info-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 20px;
    line-height: 1.3;
}

.product-info-price {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.price-original-large {
    text-decoration: line-through;
    color: var(--color-secondary);
    font-size: 18px;
}

.price-current-large {
    font-size: 24px;
    font-weight: 500;
}

.price-discount-badge {
    background: var(--color-sale);
    color: white;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* Opzioni prodotto (colore, taglia) */
.product-option {
    margin-bottom: 24px;
}

.option-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.option-label span {
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

.color-options {
    display: flex;
    gap: 10px;
}

.color-swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.color-swatch:hover,
.color-swatch.active {
    border-color: var(--color-primary);
    transform: scale(1.1);
}

.color-swatch.active::after {
    content: '';
    position: absolute;
    inset: -5px;
    border: 1px solid var(--color-primary);
    border-radius: 50%;
}

.size-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.size-btn {
    min-width: 48px;
    padding: 10px 16px;
    border: 1px solid var(--color-border);
    font-size: 13px;
    font-family: var(--font-body);
    transition: all 0.2s;
    cursor: pointer;
    background: white;
}

.size-btn:hover {
    border-color: var(--color-primary);
}

.size-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

/* Stock */
.stock-info {
    margin-bottom: 20px;
    font-size: 13px;
}

.in-stock { color: var(--color-success); }
.out-of-stock { color: var(--color-danger); }

/* Quantita e Add to cart */
.quantity-selector {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    border: 1px solid var(--color-border);
    width: fit-content;
}

.qty-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
    color: var(--color-secondary);
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.qty-input {
    width: 48px;
    height: 40px;
    text-align: center;
    border: none;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    -moz-appearance: textfield;
}

.qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.btn-add-to-cart {
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-family: var(--font-body);
    transition: background 0.2s;
    cursor: pointer;
}

.btn-add-to-cart:hover:not(:disabled) {
    background: #333;
}

.btn-add-to-cart:disabled {
    background: var(--color-border);
    color: var(--color-secondary);
    cursor: not-allowed;
}

/* Descrizione e materiali */
.product-description,
.product-materials {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.product-description h4,
.product-materials h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.product-description p,
.product-materials p {
    color: var(--color-secondary);
    line-height: 1.8;
    font-size: 14px;
}


/* ============================================
   PROMO BANNER
   ============================================ */
.promo-banner {
    background: var(--color-bg-cream);
    padding: 60px 40px;
    text-align: center;
}

.promo-title {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 8px;
}

.promo-text {
    color: var(--color-secondary);
    font-size: 14px;
}


/* ============================================
   EMPTY STATE & BUTTONS
   ============================================ */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.empty-state h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--color-secondary);
    margin-bottom: 24px;
}

.empty-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: var(--color-secondary);
}

.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--color-primary);
    color: white;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    transition: background 0.2s;
}

.btn:hover {
    background: #333;
    opacity: 1;
}


/* ============================================
   TEXT CONTENT (about, contact)
   ============================================ */
.text-content {
    max-width: 700px;
    padding-bottom: 80px;
}

.text-content p {
    color: var(--color-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
}


/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--color-primary);
    color: white;
    padding: 64px 0 0;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 16px;
}

.footer-col p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-col ul a:hover {
    color: white;
    opacity: 1;
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}


/* ============================================
   AUTH & PROFILE
   ============================================ */
.auth-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
}

.auth-box {
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 400;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: var(--color-secondary);
    font-size: 14px;
    margin-bottom: 36px;
}

.auth-form {
    text-align: left;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
    background: white;
}

.form-input:focus {
    border-color: var(--color-primary);
}

.form-error {
    display: block;
    color: var(--color-danger);
    font-size: 12px;
    margin-top: 4px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    background: var(--color-primary);
    color: white;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    font-family: var(--font-body);
    border: none;
    cursor: pointer;
    margin-top: 8px;
    transition: background 0.2s;
}

.btn-auth:hover {
    background: #333;
}

.auth-link {
    margin-top: 24px;
    font-size: 13px;
    color: var(--color-secondary);
}

.auth-link a {
    color: var(--color-primary);
    font-weight: 500;
    text-decoration: underline;
}

/* Profilo */
.profile-layout {
    max-width: 700px;
    padding-bottom: 80px;
}

.profile-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--color-border);
}

.profile-section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.btn-logout {
    font-size: 13px;
    color: var(--color-secondary);
    text-decoration: underline;
}

.btn-logout:hover {
    color: var(--color-danger);
    opacity: 1;
}

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


/* ============================================
   CARRELLO
   ============================================ */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    padding-bottom: 80px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--color-border);
}

.cart-item-image {
    width: 100px;
    height: 130px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-bg-cream);
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-brand {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-secondary);
    display: block;
    margin-bottom: 4px;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    display: block;
}

.cart-item-name:hover {
    opacity: 1;
    text-decoration: underline;
}

.cart-item-variant {
    font-size: 12px;
    color: var(--color-secondary);
    margin-top: 4px;
}

.cart-item-price {
    font-size: 14px;
    margin-top: 8px;
    font-weight: 500;
}

.cart-item-quantity {
    flex-shrink: 0;
}

.cart-qty-form {
    display: flex;
    align-items: center;
    border: 1px solid var(--color-border);
}

.cart-qty-form .qty-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.cart-qty-form .qty-input {
    width: 40px;
    height: 32px;
    font-size: 13px;
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.cart-item-total {
    font-size: 15px;
    font-weight: 500;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.cart-item-remove {
    color: var(--color-secondary);
    padding: 4px;
    transition: color 0.2s;
    display: flex;
    flex-shrink: 0;
    cursor: pointer;
}

.cart-item-remove:hover {
    color: var(--color-danger);
}

/* Riepilogo ordine */
.cart-summary {
    position: sticky;
    top: calc(var(--nav-height) + 20px);
    align-self: start;
    background: var(--color-bg-light);
    padding: 32px;
}

.cart-summary-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 12px;
    color: var(--color-secondary);
}

.cart-summary-divider {
    height: 1px;
    background: var(--color-border);
    margin: 16px 0;
}

.cart-summary-total {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary);
}

.cart-free-shipping {
    font-size: 12px;
    color: var(--color-accent);
    margin-top: 12px;
    text-align: center;
}

.btn-checkout {
    display: block;
    width: 100%;
    padding: 16px;
    background: var(--color-primary);
    color: white;
    text-align: center;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin-top: 24px;
    transition: background 0.2s;
}

.btn-checkout:hover {
    background: #333;
    opacity: 1;
}

.cart-continue {
    display: block;
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-secondary);
    text-decoration: underline;
}

/* Carrello vuoto */
.cart-empty {
    text-align: center;
    padding: 80px 20px;
}

.cart-empty h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 400;
    margin-bottom: 12px;
}

.cart-empty p {
    color: var(--color-secondary);
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .cart-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .cart-item {
        flex-wrap: wrap;
        gap: 12px;
    }

    .cart-item-image {
        width: 80px;
        height: 100px;
    }

    .cart-item-total {
        min-width: auto;
    }

    .cart-summary {
        position: static;
    }
}


/* ============================================
   CHECKOUT
   ============================================ */
.checkout-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 48px;
    padding-bottom: 80px;
}

.checkout-section {
    margin-bottom: 40px;
}

.checkout-section-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.full-width {
    grid-column: 1 / -1;
}

/* Checkout items nel summary */
.checkout-items {
    margin-bottom: 16px;
}

.checkout-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
}

.checkout-item-image {
    width: 56px;
    height: 72px;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--color-bg-cream);
    position: relative;
}

.checkout-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-item-qty {
    position: absolute;
    top: -6px;
    right: -6px;
    background: var(--color-secondary);
    color: white;
    font-size: 10px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.checkout-item-info {
    flex: 1;
    min-width: 0;
}

.checkout-item-brand {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    display: block;
}

.checkout-item-name {
    font-size: 13px;
    display: block;
    line-height: 1.3;
}

.checkout-item-variant {
    font-size: 11px;
    color: var(--color-secondary);
    display: block;
}

.checkout-item-price {
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

/* ============================================
   CONFERMA ORDINE
   ============================================ */
.confirmation-page {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 60px 0 80px;
}

.confirmation-icon {
    margin-bottom: 24px;
}

.confirmation-title {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 12px;
}

.confirmation-number {
    font-size: 16px;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.confirmation-text {
    color: var(--color-secondary);
    font-size: 14px;
    margin-bottom: 48px;
}

.confirmation-details {
    text-align: left;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.confirmation-section h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
    font-weight: 500;
}

.confirmation-section p {
    font-size: 14px;
    color: var(--color-secondary);
    line-height: 1.6;
}

.confirmation-item {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--color-secondary);
    padding: 6px 0;
}

.confirmation-item.total {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-primary);
    padding-top: 12px;
}

.confirmation-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

/* ============================================
   STORICO ORDINI
   ============================================ */
.orders-list {
    padding-bottom: 80px;
}

.order-card {
    border: 1px solid var(--color-border);
    padding: 24px;
    margin-bottom: 16px;
    transition: border-color 0.2s;
}

.order-card:hover {
    border-color: var(--color-primary);
}

.order-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.order-card-number {
    font-weight: 500;
    font-size: 15px;
    margin-right: 16px;
}

.order-card-date {
    font-size: 13px;
    color: var(--color-secondary);
}

.order-status {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 12px;
    font-weight: 500;
}

.order-status-pending { background: #fff8e1; color: #c49000; }
.order-status-paid { background: #e3f2fd; color: #1565c0; }
.order-status-processing { background: #e3f2fd; color: #1565c0; }
.order-status-shipped { background: #e8f5e9; color: var(--color-success); }
.order-status-delivered { background: #e8f5e9; color: var(--color-success); }
.order-status-cancelled { background: #fce4e4; color: var(--color-danger); }

.order-card-body {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-secondary);
    margin-bottom: 12px;
}

.order-card-total {
    font-weight: 500;
    color: var(--color-primary);
}

.order-card-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--color-primary);
}

.order-card-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Dettaglio ordine */
.order-detail-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 48px;
    padding-bottom: 80px;
}

.order-detail-address {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.order-detail-address h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
}

.order-detail-address p {
    font-size: 13px;
    color: var(--color-secondary);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .checkout-layout {
        grid-template-columns: 1fr;
    }

    .confirmation-details {
        grid-template-columns: 1fr;
    }

    .order-detail-layout {
        grid-template-columns: 1fr;
    }

    .order-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}


.empty-orders {
    color: var(--color-secondary);
    font-size: 14px;
    padding: 24px 0;
}


.product-placeholder-mini {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-bg-cream);
}


/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .catalog-layout {
        grid-template-columns: 200px 1fr;
        gap: 32px;
    }

    .navbar-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .navbar-container {
        padding: 0 20px;
    }

    .navbar-links {
        display: none;
    }

    .hero {
        min-height: 400px;
        height: 50vh;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section {
        padding: 48px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 32px;
    }

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

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

    .catalog-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .product-detail {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-info-name {
        font-size: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .page-title {
        font-size: 28px;
    }

    .menu-overlay-header {
        padding: 0 20px;
    }

    .menu-overlay-content {
        padding: 0 20px;
    }

    .menu-overlay-footer {
        padding: 40px 20px;
    }

    .menu-overlay-link {
        font-size: 36px;
    }

    .search-bar .navbar-container {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .categories-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 28px;
    }

    .menu-overlay-link {
        font-size: 28px;
        padding: 10px 0;
    }

    .menu-overlay-link.small {
        font-size: 14px;
    }

    .product-detail {
        gap: 24px;
    }

    .price-current-large {
        font-size: 20px;
    }
}