/* ============================================
   DON INACIO — TIENDA ONLINE
   Design System: Gold & Dark Portuguese Elegance
   (Adapted from Menu style3_v4.css)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* ============ VARIABLES ============ */
:root {
    --gold: #c8962a;
    --gold-light: #e8b84b;
    --gold-pale: #f5e6c0;
    --cream: #faf6ee;
    --dark: #1a1208;
    --dark-mid: #2c1e0a;
    --text: #3a2e1a;
    --text-muted: #7a6a50;
    --white: #ffffff;
    --danger: #e74c3c;
    --success: #27ae60;
    --header-h: 70px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-display: 'Playfair Display', serif;
    --font-body: 'Cormorant Garamond', serif;
    --font-ui: 'Montserrat', sans-serif;
    --shadow-sm: 0 2px 20px rgba(58, 46, 26, 0.07);
    --shadow-md: 0 8px 32px rgba(58, 46, 26, 0.12);
    --shadow-lg: 0 18px 48px rgba(58, 46, 26, 0.14);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 22px;
}

/* ============ RESET ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-ui);
    background: var(--cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: var(--header-h);
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
}

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

ul {
    list-style: none;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

/* ============ PAGE LOADER ============ */
#page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-inner {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.loader-logo {
    width: 100px;
    margin-bottom: 20px;
    filter: brightness(1.2);
    display: block;
}

.loader-tagline {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--gold);
    margin-bottom: 20px;
}

.loader-bar {
    width: 180px;
    height: 3px;
    background: rgba(200, 150, 42, 0.15);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--gold);
    animation: loaderSlide 1.5s infinite ease-in-out;
}

@keyframes loaderSlide {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(150%); }
    100% { transform: translateX(-100%); }
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-h);
    background: rgba(26, 18, 8, 0.0);
    backdrop-filter: blur(0px);
    z-index: 1000;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar.scrolled {
    background: rgba(26, 18, 8, 0.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 36px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 48px;
    width: auto;
    transition: height 0.3s var(--ease-spring);
}

.navbar.scrolled .nav-logo img {
    height: 38px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-ui);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.75);
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gold);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    pointer-events: auto;
}

.hamburger-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

@media (min-width: 769px) {
    .mobile-menu-overlay {
        display: none !important;
    }
}

/* Language Switcher */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.8);
    transition: background 0.3s ease;
}

.lang-current:hover {
    background: rgba(255, 255, 255, 0.08);
}

.lang-flag {
    font-size: 1.1rem;
}

.lang-code {
    font-weight: 600;
    font-size: 0.8rem;
}

.lang-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.lang-switcher.open .lang-arrow {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--dark-mid);
    border: 1px solid rgba(200, 150, 42, 0.15);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    padding: 6px;
    min-width: 160px;
    display: none;
    z-index: 1001;
}

.lang-switcher.open .lang-dropdown {
    display: block;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.lang-option:hover {
    background: rgba(200, 150, 42, 0.1);
    color: var(--gold);
}

.lang-option.active {
    background: rgba(200, 150, 42, 0.15);
    color: var(--gold);
    font-weight: 600;
}

/* ============ HERO SECTION ============ */
.hero-section {
    margin-top: calc(-1 * var(--header-h));
    padding: 120px 20px 60px;
    background:
        linear-gradient(135deg, rgba(26, 18, 8, 0.88) 0%, rgba(44, 30, 10, 0.8) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-decorative-line {
    width: 50px;
    height: 2px;
    background: var(--gold);
    margin: 0 auto 20px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1;
}

.hero-title span {
    display: block;
    color: var(--gold);
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    font-weight: 400;
    font-style: italic;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============ FILTERS ============ */
.filters-section {
    padding: 30px 20px 35px;
    background: var(--cream);
    border-bottom: 1px solid rgba(58, 46, 26, 0.1);
}

.filters-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}

.filter-all-container {
    display: flex;
    justify-content: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(58, 46, 26, 0.1);
}

.filter-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 28px;
    background: var(--gold);
    color: var(--dark);
    font-family: var(--font-ui);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 50px;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 16px rgba(200, 150, 42, 0.3);
}

.filter-all-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 150, 42, 0.45);
}

.filter-all-btn .material-symbols-outlined {
    font-size: 1.15rem;
}

.filters-mega-menu {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.filter-column {
    background: var(--white);
    border: 1px solid rgba(58, 46, 26, 0.08);
    border-radius: var(--radius-md);
    padding: 20px 16px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s var(--ease-out);
}

.filter-column.hidden {
    display: none;
}

.filter-sub-btn.hidden {
    display: none;
}

.filter-column:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.filter-column-title {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gold);
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-icon {
    font-size: 1.1rem;
    color: var(--gold);
}

.filter-sub-btn {
    display: block;
    width: 100%;
    padding: 9px 10px;
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 400;
    text-align: left;
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    cursor: pointer;
}

.filter-sub-btn:last-child {
    margin-bottom: 0;
}

.filter-sub-btn:hover {
    background: rgba(200, 150, 42, 0.08);
    color: var(--dark);
    padding-left: 14px;
}

.filter-sub-btn.active {
    background: var(--gold);
    color: var(--dark);
    font-weight: 600;
    padding-left: 14px;
}

/* ============ PRODUCT GROUPS ============ */
.products-main {
    max-width: 1300px;
    margin: 0 auto;
    padding: 50px 24px 80px;
}

.product-group {
    margin-bottom: 70px;
}

.product-group.hidden {
    display: none;
}

.group-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 35px 20px;
    position: relative;
}

.group-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(200, 150, 42, 0.04) 0%, transparent 100%);
    border-radius: var(--radius-lg);
}

.group-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 12px;
    position: relative;
}

.group-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    margin: 0 auto;
    border-radius: 2px;
    position: relative;
}

.product-section {
    margin-bottom: 50px;
}

.product-section.hidden {
    display: none;
}

.section-header {
    text-align: center;
    margin-bottom: 28px;
    padding: 12px 0;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-mid);
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 2px;
    background: var(--gold);
    border-radius: 1px;
}

/* ============ PRODUCTS GRID ============ */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

/* ============ PRODUCT CARD ============ */
.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 20px rgba(58, 46, 26, 0.07);
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 48px rgba(58, 46, 26, 0.14);
}

.product-card.out-of-stock {
    opacity: 0.65;
}

.product-card.out-of-stock:hover {
    transform: none;
    box-shadow: 0 2px 20px rgba(58, 46, 26, 0.07);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--dark-mid);
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--ease-out);
}

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

.stock-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(231, 76, 60, 0.9);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(4px);
}

.product-content {
    padding: 18px 20px 20px;
}

.product-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.8em;
}

.product-description {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid rgba(200, 150, 42, 0.1);
}

.product-price {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--gold);
}

.product-price-note {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 6px;
}

/* ============ ALLERGEN STRIP ============ */
.allergen-strip {
    display: flex;
    gap: 8px;
    margin: 6px 0;
    align-items: center;
}

.allergen-strip--small {
    gap: 6px;
}

.allergen-strip--large {
    gap: 12px;
    margin: 14px 0;
}

.allergen-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 50px;
    background: rgba(200, 150, 42, 0.06);
    transition: background 0.3s ease;
}

.allergen-chip--free {
    background: rgba(39, 174, 96, 0.08);
}

.allergen-chip--large {
    padding: 6px 12px;
}

.allergen-chip img {
    width: 20px;
    height: 20px;
    display: block;
}

.allergen-icon--large img {
    width: 36px;
    height: 36px;
}

.allergen-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    white-space: nowrap;
}

.allergen-chip--free .allergen-label {
    color: var(--success);
}

/* ============ PRODUCT MODAL ============ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 6, 2, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    z-index: 2;
    background: var(--dark);
    border-radius: var(--radius-xl);
    max-width: 900px;
    width: 100%;
    height: min(760px, calc(100vh - 48px));
    max-height: 90vh;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr);
    border: 1px solid rgba(200, 150, 42, 0.15);
    box-shadow:
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(200, 150, 42, 0.05);
    animation: modalSlideUp 0.4s var(--ease-spring);
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.22s ease;
}

.modal-close:hover {
    background: rgba(200, 150, 42, 0.2);
    border-color: rgba(200, 150, 42, 0.4);
    color: var(--gold-light);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.modal-body {
    display: contents;
}

.modal-image-container {
    background: #0b0703;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.modal-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: contain;
    display: block;
    padding: 8px;
    box-sizing: border-box;
}

#productoModal .modal-content {
    height: auto;
    max-height: min(760px, calc(100vh - 48px));
    grid-template-rows: minmax(0, var(--img-h, min(760px, calc(100vh - 48px))));
}

#productoModal .modal-image-container {
    min-height: 0;
}

#productoModal .modal-image {
    height: 100%;
    max-height: 100%;
    min-height: 0;
}

.modal-info {
    padding: 44px 36px 36px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 150, 42, 0.3) transparent;
}

.modal-info::-webkit-scrollbar {
    width: 4px;
}

.modal-info::-webkit-scrollbar-thumb {
    background: rgba(200, 150, 42, 0.3);
    border-radius: 2px;
}

.modal-categoria {
    font-family: var(--font-ui);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.modal-nombre {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 8px;
}

.modal-descripcion {
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 24px;
    flex: 1;
}

/* Modal Allergen Section */
.modal-allergen-section {
    margin: 0 0 20px;
    padding: 14px 16px;
    background: rgba(200, 150, 42, 0.06);
    border-radius: var(--radius-md);
    border: 1px solid rgba(200, 150, 42, 0.1);
}

.modal-allergen-title {
    font-family: var(--font-ui);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 10px;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-precio {
    font-family: var(--font-body);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
}

.quantity-selector button {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1.5px solid rgba(200, 150, 42, 0.4);
    background: transparent;
    color: var(--gold);
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s var(--ease-spring);
}

.quantity-selector button:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    transform: scale(1.1);
}

.quantity-selector span {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--white);
    min-width: 40px;
    text-align: center;
}

.btn-add-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    border-radius: 40px;
    font-family: var(--font-ui);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 20px rgba(200, 150, 42, 0.35);
}

.btn-add-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 150, 42, 0.5);
}

/* ============ CART MODAL ============ */
.cart-modal-content {
    max-width: 520px;
    grid-template-columns: 1fr;
    overflow-y: auto;
}

.cart-title {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    text-align: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(200, 150, 42, 0.12);
}

.cart-items {
    padding: 16px 24px;
    max-height: 380px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 150, 42, 0.3) transparent;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-image {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

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

.cart-item-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--gold);
    font-weight: 600;
    font-size: 0.88rem;
}

.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cart-item-quantity {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-quantity button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid rgba(200, 150, 42, 0.3);
    background: transparent;
    color: var(--gold);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.cart-item-quantity button:hover {
    background: var(--gold);
    color: var(--dark);
}

.cart-item-remove {
    color: var(--danger);
    font-size: 0.78rem;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.cart-summary {
    padding: 18px 24px;
    border-top: 1px solid rgba(200, 150, 42, 0.15);
    background: rgba(200, 150, 42, 0.04);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--white);
}

.cart-total span:last-child {
    color: var(--gold);
}

.btn-checkout {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    border-radius: 40px;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.3s var(--ease-spring);
    box-shadow: 0 4px 16px rgba(200, 150, 42, 0.3);
}

.btn-checkout:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(200, 150, 42, 0.5);
}

.cart-empty {
    text-align: center;
    padding: 40px 24px;
}

.cart-empty p {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 20px;
}

.btn-continue {
    padding: 10px 28px;
    background: transparent;
    border: 1.5px solid rgba(200, 150, 42, 0.4);
    color: var(--gold);
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-continue:hover {
    background: rgba(200, 150, 42, 0.1);
    border-color: var(--gold);
}

/* ============ FLOATING CART BUTTON ============ */
.floating-cart-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(200, 150, 42, 0.4);
    transition: all 0.3s var(--ease-spring);
    z-index: 1001;
    cursor: pointer;
}

.floating-cart-btn:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 8px 28px rgba(200, 150, 42, 0.55);
}

.floating-cart-btn .material-symbols-outlined {
    font-size: 1.5rem;
}

.floating-cart-btn .cart-count {
    position: absolute;
    top: -3px;
    right: -3px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(231, 76, 60, 0.5);
}

/* ============ SCROLL TO TOP ============ */
.scroll-top-btn {
    position: fixed;
    bottom: 96px;
    right: 34px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26, 18, 8, 0.85);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(200, 150, 42, 0.3);
    backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all 0.3s var(--ease-spring);
    z-index: 1000;
    cursor: pointer;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--gold);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(200, 150, 42, 0.4);
}

/* ============ FOOTER ============ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 24px 28px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-content p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 24px;
    }

    .modal-content {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .modal-image {
        min-height: 260px;
        max-height: 300px;
    }

    .modal-info {
        padding: 36px 30px 30px;
        max-height: 50vh;
        min-height: 0;
    }

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

@media (max-width: 768px) {
    :root {
        --header-h: 60px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        padding: 80px 28px 28px;
        gap: 0;
        box-shadow: -5px 0 24px rgba(0, 0, 0, 0.4);
        transition: right 0.35s var(--ease-out);
        z-index: 101;
        overflow-y: auto;
        border-left: 1px solid rgba(200, 150, 42, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 15px 0;
        font-size: 1rem;
    }

    .nav-logo img {
        height: 36px;
    }

    .hero-section {
        padding: 100px 20px 50px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .products-main {
        padding: 30px 16px 60px;
    }

    .group-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.2rem;
    }

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

    .product-image-wrapper {
        height: 180px;
    }

    .product-content {
        padding: 14px 16px 16px;
    }

    .product-name {
        font-size: 0.92rem;
    }

    .product-price {
        font-size: 1.2rem;
    }

    .filters-section {
        padding: 20px 0;
        overflow: hidden;
    }

    .filter-all-container {
        margin-bottom: 16px;
        padding-bottom: 16px;
        padding: 0 16px;
    }

    .filters-wrapper {
        padding: 0;
    }

    .filters-mega-menu {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        padding: 0 16px;
        scrollbar-width: none;
    }

    .filters-mega-menu::-webkit-scrollbar {
        display: none;
    }

    .filter-column {
        min-width: 190px;
        max-width: 210px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 14px 12px;
        margin-right: 12px;
    }

    .filter-column:first-child {
        margin-left: 16px;
    }

    .filter-column:last-child {
        margin-right: 16px;
    }

    .filter-column-title {
        font-size: 0.78rem;
        margin-bottom: 10px;
        padding-bottom: 8px;
        white-space: nowrap;
    }

    .filter-sub-btn {
        font-size: 0.88rem;
        padding: 10px 12px;
        min-height: 42px;
        display: flex;
        align-items: center;
        border-radius: var(--radius-sm);
        margin-bottom: 4px;
        background: rgba(0, 0, 0, 0.03);
    }

    .filter-sub-btn:last-child {
        margin-bottom: 0;
    }

    .filter-sub-btn:hover,
    .filter-sub-btn.active {
        padding-left: 12px;
    }

    .modal-content {
        width: 95%;
        margin: 0;
        max-height: 88vh;
    }

    .modal-image {
        min-height: 220px;
        max-height: 260px;
    }

    .modal-info {
        padding: 28px 22px 24px;
        max-height: 45vh;
        min-height: 0;
    }

    .modal-nombre {
        font-size: 1.5rem;
    }

    .scroll-top-btn {
        bottom: 88px;
        right: 24px;
        width: 40px;
        height: 40px;
    }

    .floating-cart-btn {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
    }

    .floating-cart-btn .material-symbols-outlined {
        font-size: 1.3rem;
    }

    .floating-cart-btn .cart-count {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
}

@media (max-width: 600px) {
    .filter-column {
        min-width: 170px;
        max-width: 185px;
        padding: 12px 10px;
        margin-right: 10px;
    }

    .filter-column:first-child {
        margin-left: 16px;
    }

    .filter-column-title {
        font-size: 0.72rem;
        margin-bottom: 8px;
        padding-bottom: 6px;
    }

    .filter-sub-btn {
        font-size: 0.82rem;
        padding: 9px 10px;
        min-height: 38px;
    }
}

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

    .product-image-wrapper {
        height: 240px;
    }

    .product-content {
        padding: 16px 18px 18px;
    }

    .modal-image {
        min-height: 200px;
        max-height: 240px;
    }

    .modal-info {
        padding: 24px 18px 20px;
        max-height: 42vh;
    }

    .modal-nombre {
        font-size: 1.35rem;
    }

    .modal-precio {
        font-size: 1.7rem;
    }
}
