/* ============================================================
   VESTA — Front-end (Massimo Dutti inspired: warm editorial luxe)
   Reworked design. All hooks/IDs preserved for app.js.
   ============================================================ */

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

:root {
    /* DB-injected accent (kept name for theme compatibility) */
    --gold: #A88B6A;
    --gold-light: #C4A77F;
    --gold-dark: #7E6544;

    /* Warm editorial palette */
    --ink: #1C1A17;
    --ink-soft: #4A453E;
    --muted: #8C857A;
    --line: #E6DFD4;
    --line-strong: #D8CFC0;
    --cream: #FBF9F6;
    --ivory: #F5F0E9;
    --paper: #FFFFFF;
    --red: #B23A2E;
    --green-whatsapp: #25D366;

    --shadow: 0 8px 30px rgba(28,26,23,0.06);
    --shadow-lg: 0 20px 60px rgba(28,26,23,0.12);
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --t: 0.45s var(--ease);

    --serif: 'Playfair Display', 'Tajawal', serif;
    --sans: 'Poppins', 'Tajawal', sans-serif;
    --arab: 'Tajawal', 'Poppins', sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--arab);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
[dir="ltr"] body { font-family: var(--sans); }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* Editorial kicker / label utility */
.kicker {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.32em;
    font-size: 11px;
    font-weight: 500;
    color: var(--gold-dark);
}

/* ==================== NAVBAR ==================== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: transparent;
    transition: background var(--t), box-shadow var(--t), border-color var(--t);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: rgba(251,249,246,0.92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.nav-container {
    max-width: 1280px; margin: 0 auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between;
    height: 84px;
    transition: height var(--t);
}
.navbar.scrolled .nav-container { height: 68px; }

.nav-logo a { display: flex; align-items: center; }
.logo-img {
    height: 92px; width: auto; object-fit: contain;
    transition: height var(--t), filter var(--t);
}
.navbar.scrolled .logo-img { height: 64px; }
/* On transparent hero, lift logo to white */
.navbar:not(.scrolled) .logo-img { filter: brightness(0) invert(1); }

.nav-menu { display: flex; gap: 38px; align-items: center; }
.nav-link {
    font-family: var(--sans);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 500;
    color: #fff;
    position: relative;
    padding: 6px 0;
    transition: color var(--t);
}
.navbar.scrolled .nav-link { color: var(--ink); }
.nav-link::after {
    content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
    width: 0; height: 1px; background: currentColor; transition: width var(--t);
}
.nav-link:hover { color: var(--gold); }
.nav-link:hover::after { width: 100%; }

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

/* Language switcher */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: none; color: #fff;
    font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
    text-transform: uppercase; padding: 8px 4px; transition: color var(--t);
}
.navbar.scrolled .lang-btn { color: var(--ink); }
.lang-btn:hover { color: var(--gold); }
.lang-btn .fa-globe { font-size: 13px; }
.lang-btn .fa-chevron-down { font-size: 9px; opacity: 0.7; }
.lang-dropdown {
    position: absolute; top: calc(100% + 10px); inset-inline-end: 0;
    background: var(--paper); border: 1px solid var(--line);
    min-width: 150px; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: var(--t); z-index: 50;
}
.lang-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-option {
    display: block; width: 100%; text-align: start;
    background: transparent; border: none; padding: 12px 18px;
    font-family: var(--sans); font-size: 13px; color: var(--ink-soft);
    transition: background var(--t), color var(--t);
}
.lang-option:hover, .lang-option.active { background: var(--ivory); color: var(--gold-dark); }

/* Cart icon button */
.cart-icon-btn {
    position: relative; background: transparent; border: none;
    color: #fff; font-size: 18px; padding: 6px; transition: color var(--t);
}
.navbar.scrolled .cart-icon-btn { color: var(--ink); }
.cart-icon-btn:hover { color: var(--gold); }
.cart-badge {
    position: absolute; top: -4px; inset-inline-end: -6px;
    background: var(--gold); color: #fff;
    font-size: 10px; font-weight: 600; min-width: 17px; height: 17px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-family: var(--sans);
}

/* Mobile menu button */
.mobile-menu-btn {
    display: none; background: transparent; border: none;
    color: #fff; font-size: 20px; padding: 6px;
}
.navbar.scrolled .mobile-menu-btn { color: var(--ink); }

/* ==================== HERO SLIDER ==================== */
.hero-slider {
    position: relative; height: 100vh; min-height: 600px;
    overflow: hidden; background: var(--ink);
}
.slider-wrapper { position: absolute; inset: 0; }
.slide {
    position: absolute; inset: 0; opacity: 0; visibility: hidden;
    transition: opacity 1.1s var(--ease), visibility 1.1s var(--ease);
}
.slide.active { opacity: 1; visibility: visible; }
.slide-bg {
    position: absolute; inset: 0; background-size: cover; background-position: center;
    transform: scale(1.06); transition: transform 7s var(--ease);
}
.slide.active .slide-bg { transform: scale(1); }
.slide-video {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.slide-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(20,18,15,0.62) 0%, rgba(20,18,15,0.15) 42%, rgba(20,18,15,0.25) 100%);
}
.slide-content {
    position: absolute; inset-inline-start: 0; bottom: 16%;
    width: 100%; padding: 0 64px;
    text-align: start;
    color: #fff;
    transform: translateY(24px); opacity: 0;
    transition: transform 1.1s var(--ease) 0.25s, opacity 1.1s var(--ease) 0.25s;
}
.slide.active .slide-content { transform: translateY(0); opacity: 1; }
.slide-content h1 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2.6rem, 6vw, 5.2rem); line-height: 1.04;
    letter-spacing: 0.01em; max-width: 14ch; margin-bottom: 18px;
}
.slide-content p {
    font-family: var(--sans); font-weight: 300;
    font-size: clamp(0.95rem, 1.4vw, 1.15rem); letter-spacing: 0.03em;
    max-width: 44ch; opacity: 0.92;
}

/* Persistent hero CTA (added in markup, outside slide loop) */
.hero-cta-wrap {
    position: absolute; inset-inline-start: 64px; bottom: 8%;
    z-index: 5;
}
.btn-line {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.22em; font-size: 12px; font-weight: 500;
    color: #fff; background: transparent;
    border: 1px solid rgba(255,255,255,0.55);
    padding: 16px 38px; transition: var(--t);
}
.btn-line:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn-line i { font-size: 11px; }

/* Slider dots */
.slider-dots {
    position: absolute; bottom: 30px; inset-inline-end: 64px;
    display: flex; gap: 10px; z-index: 6;
}
.slider-dot {
    width: 30px; height: 2px; background: rgba(255,255,255,0.4);
    cursor: pointer; transition: var(--t); border: none; padding: 0;
}
.slider-dot.active { background: #fff; }

/* Slider arrows */
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    z-index: 6; width: 52px; height: 52px;
    background: transparent; border: 1px solid rgba(255,255,255,0.3);
    color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--t); opacity: 0;
}
.hero-slider:hover .slider-arrow { opacity: 1; }
.slider-arrow:hover { background: rgba(255,255,255,0.15); border-color: #fff; }
.slider-prev { inset-inline-start: 28px; }
.slider-next { inset-inline-end: 28px; }

/* ==================== SECTIONS ==================== */
.section { padding: 110px 0; }
.best-sellers { background: var(--cream); }
.all-products { background: var(--paper); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.1;
    color: var(--ink); margin-bottom: 18px;
}
.section-line {
    width: 56px; height: 1px; background: var(--gold);
    margin: 0 auto 18px;
}
.section-header p {
    font-family: var(--sans); font-weight: 300;
    font-size: 15px; color: var(--muted); letter-spacing: 0.02em;
}

/* ==================== EDITORIAL SPLIT (added section) ==================== */
.editorial { padding: 0; }
.editorial-inner {
    display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
    min-height: 80vh;
}
.editorial-media { position: relative; overflow: hidden; }
.editorial-media img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 1.2s var(--ease);
}
.editorial:hover .editorial-media img { transform: scale(1.05); }
.editorial-content {
    display: flex; flex-direction: column; justify-content: center;
    padding: 80px clamp(40px, 7vw, 110px); background: var(--ivory);
}
.editorial-content .kicker { margin-bottom: 22px; }
.editorial-content h2 {
    font-family: var(--serif); font-weight: 500;
    font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.1;
    margin-bottom: 22px; color: var(--ink);
}
.editorial-content p {
    font-family: var(--sans); font-weight: 300; color: var(--ink-soft);
    font-size: 16px; max-width: 42ch; margin-bottom: 34px;
}
.btn-solid {
    align-self: flex-start;
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.2em; font-size: 12px; font-weight: 500;
    color: #fff; background: var(--ink);
    border: 1px solid var(--ink); padding: 16px 40px; transition: var(--t);
}
.btn-solid:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.editorial.reverse .editorial-media { order: 2; }

/* ==================== PRODUCT GRID ==================== */
.products-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 14px 22px;
}
.best-sellers .products-grid { grid-template-columns: repeat(4, 1fr); }

.product-card {
    position: relative; background: transparent;
    display: flex; flex-direction: column;
}
.product-media {
    position: relative; overflow: hidden;
    aspect-ratio: 3 / 4; background: var(--ivory);
}
.product-img, .product-hover-video {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; transition: transform 1.1s var(--ease), opacity 0.6s var(--ease);
}
.product-hover-video { opacity: 0; }
.product-card:hover .product-img { transform: scale(1.05); }
.product-card.is-playing .product-hover-video,
.product-card:hover .product-hover-video { opacity: 1; }

.stock-badge {
    position: absolute; top: 14px; inset-inline-start: 14px;
    background: rgba(28,26,23,0.85); color: #fff;
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.14em; font-size: 10px; padding: 7px 12px;
}
.product-card.out-of-stock .product-img { filter: grayscale(0.4) opacity(0.75); }

.product-info { padding: 18px 4px 8px; text-align: start; }
.product-name {
    font-family: var(--sans); font-weight: 400;
    text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 13px; color: var(--ink); line-height: 1.4;
    margin-bottom: 8px;
}
.pack-contents {
    font-family: var(--sans); font-size: 12px; color: var(--muted);
    margin-bottom: 8px;
}
.product-prices { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.current-price {
    font-family: var(--sans); font-weight: 500; font-size: 15px; color: var(--ink);
    letter-spacing: 0.02em;
}
.old-price {
    font-family: var(--sans); font-size: 13px; color: var(--muted);
    text-decoration: line-through;
}

.product-colors { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; flex-wrap: wrap; }
.pc-dot {
    width: 15px; height: 15px; border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.12); box-shadow: 0 0 0 1px var(--paper) inset;
    display: inline-block; cursor: default;
}
.pc-more { font-family: var(--sans); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }

.btn-buy {
    width: 100%;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.18em; font-size: 11px; font-weight: 500;
    color: var(--ink); background: transparent;
    border: 1px solid var(--ink); padding: 13px 18px; transition: var(--t);
}
.btn-buy:hover { background: var(--ink); color: #fff; }
.btn-buy i { font-size: 12px; }

.product-gallery-btn {
    width: 100%; margin-top: 8px;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.14em; font-size: 10px;
    color: var(--muted); background: transparent; border: none;
    padding: 6px; transition: color var(--t);
}
.product-gallery-btn:hover { color: var(--gold-dark); }

/* ==================== CONTACT ==================== */
.contact-section { background: var(--ink); color: #fff; }
.contact-section .section-header h2 { color: #fff; }
.contact-content {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    align-items: center; max-width: 1000px; margin: 0 auto;
}
.contact-logo { margin-bottom: 26px; }
.contact-logo-img { height: 70px; width: auto; filter: brightness(0) invert(1); opacity: 0.92; }
.contact-detail {
    display: flex; align-items: center; gap: 14px;
    font-family: var(--sans); font-size: 15px; color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}
.contact-detail i { color: var(--gold); width: 18px; font-size: 15px; }
.contact-action p {
    font-family: var(--sans); font-weight: 300; font-size: 16px;
    color: rgba(255,255,255,0.78); margin-bottom: 26px; line-height: 1.7;
}
.btn-whatsapp {
    display: inline-flex; align-items: center; gap: 12px;
    background: var(--green-whatsapp); color: #fff;
    font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.14em; font-size: 12px; font-weight: 500;
    padding: 16px 34px; transition: var(--t);
}
.btn-whatsapp:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-whatsapp i { font-size: 18px; }

/* ==================== FOOTER ==================== */
.footer { background: #131210; color: rgba(255,255,255,0.5); padding: 56px 0; text-align: center; }
.footer-content { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-logo-img { height: 58px; width: auto; filter: brightness(0) invert(1); opacity: 0.85; }
.footer p { font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; }

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed; inset: 0; z-index: 2000;
    background: rgba(20,18,15,0.55); backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: var(--t);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
    background: var(--paper); width: 100%; max-width: 480px;
    max-height: 92vh; overflow-y: auto; padding: 40px;
    position: relative; transform: translateY(24px); transition: var(--t);
    border-top: 3px solid var(--gold);
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal h3 {
    font-family: var(--serif); font-weight: 500; font-size: 24px;
    color: var(--ink); margin-bottom: 24px; text-align: center;
}
.modal-close {
    position: absolute; top: 18px; inset-inline-end: 18px;
    background: transparent; border: none; color: var(--muted);
    font-size: 18px; width: 34px; height: 34px; transition: color var(--t);
}
.modal-close:hover { color: var(--ink); }

/* Modal cart items */
.modal-product-info { margin-bottom: 8px; }
.modal-item-row {
    display: flex; align-items: center; gap: 14px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.modal-item-row img { width: 64px; height: 80px; object-fit: cover; }
.modal-item-details { flex: 1; }
.modal-item-details h4 {
    font-family: var(--sans); font-weight: 400; text-transform: uppercase;
    letter-spacing: 0.08em; font-size: 12px; color: var(--ink); margin-bottom: 6px;
}
.modal-price { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--gold-dark); }
.modal-item-variant { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.modal-item-variant span {
    font-family: var(--sans); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-soft); background: var(--ivory); border: 1px solid var(--line); padding: 2px 8px;
}
.free-badge { color: var(--green-whatsapp); font-size: 11px; font-weight: 600; }
.modal-item-free { background: rgba(67,160,71,0.05); }

.modal-qty-controls { display: flex; align-items: center; gap: 6px; }
.qty-btn {
    width: 30px; height: 30px; border: 1px solid var(--line-strong);
    background: var(--paper); color: var(--ink); font-size: 11px;
    display: flex; align-items: center; justify-content: center; transition: var(--t);
}
.qty-btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty-value { min-width: 28px; text-align: center; font-family: var(--sans); font-weight: 500; font-size: 14px; }

.modal-subtotal, .promo-discount-line {
    display: flex; justify-content: space-between; align-items: center;
    font-family: var(--sans); font-size: 14px; color: var(--ink-soft);
    padding: 10px 0;
}
.modal-total {
    font-family: var(--sans); font-weight: 600; font-size: 17px; color: var(--ink);
    text-align: end; padding: 16px 0 6px; border-top: 1px solid var(--line); margin-top: 6px;
}
.modal-total-promo { color: var(--gold-dark); }

/* Variant selectors inside cart line */
.modal-variant-row { padding: 12px 0 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.var-group { display: flex; flex-direction: column; gap: 8px; }
.var-label { font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em; font-size: 10px; color: var(--muted); }
.var-options { display: flex; flex-wrap: wrap; gap: 8px; }
.var-size {
    min-width: 40px; height: 36px; padding: 0 10px;
    background: var(--paper); border: 1px solid var(--line-strong); color: var(--ink);
    font-family: var(--sans); font-size: 13px; letter-spacing: 0.04em; cursor: pointer; transition: var(--t);
}
.var-size:hover { border-color: var(--ink); }
.var-size.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.var-color {
    width: 34px; height: 34px; padding: 3px; background: var(--paper);
    border: 1px solid var(--line-strong); cursor: pointer; transition: var(--t); border-radius: 50%;
}
.var-color span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,0.08); }
.var-color:hover { border-color: var(--ink); }
.var-color.active { border-color: var(--gold-dark); box-shadow: 0 0 0 2px var(--gold-light); }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
    display: block; font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.12em; font-size: 11px; color: var(--ink-soft); margin-bottom: 8px;
}
.form-group input, .form-group select {
    width: 100%; padding: 13px 14px; font-family: var(--sans); font-size: 14px;
    color: var(--ink); background: var(--cream);
    border: 1px solid var(--line); transition: var(--t);
}
.form-group input:focus, .form-group select:focus {
    outline: none; border-color: var(--gold); background: var(--paper);
}
.field-error { display: none; color: var(--red); font-size: 12px; margin-top: 6px; font-family: var(--sans); }
.field-error.show { display: block; }
.form-group input.input-error, .form-group select.input-error { border-color: var(--red); }

/* City combobox */
.city-combobox { position: relative; }
.city-combobox-caret {
    position: absolute; top: 50%; inset-inline-end: 14px; transform: translateY(-50%);
    color: var(--muted); font-size: 11px; pointer-events: none;
}
.city-combobox-list {
    position: absolute; top: calc(100% + 4px); inset-inline: 0;
    background: var(--paper); border: 1px solid var(--line); max-height: 220px;
    overflow-y: auto; z-index: 30; box-shadow: var(--shadow);
    display: none;
}
.city-combobox.open .city-combobox-list { display: block; }
.city-combobox.open .city-combobox-caret { transform: translateY(-50%) rotate(180deg); }
.city-option, .city-option-empty {
    padding: 11px 14px; font-family: var(--sans); font-size: 14px;
    color: var(--ink-soft); cursor: pointer; transition: background var(--t);
}
.city-option-empty { color: var(--muted); cursor: default; }
.city-option:hover, .city-option.active, .city-option.highlighted { background: var(--ivory); color: var(--gold-dark); }
.city-other { border-top: 1px solid var(--line); font-weight: 500; }

/* Promo */
.promo-code-section {
    background: var(--ivory); padding: 16px; margin-bottom: 18px; border: 1px dashed var(--line-strong);
}
.promo-code-section label { margin-bottom: 10px; }
.promo-code-row { display: flex; gap: 8px; }
.promo-code-row input { flex: 1; }
.btn-promo-apply {
    background: var(--ink); color: #fff; border: none; padding: 0 22px;
    font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.12em;
    font-size: 11px; transition: var(--t);
}
.btn-promo-apply:hover { background: var(--gold-dark); }
.promo-result { font-family: var(--sans); font-size: 13px; margin-top: 10px; }
.promo-result.success { color: var(--green-whatsapp); }
.promo-result.error { color: var(--red); }

/* Form buttons */
.form-buttons { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.btn-validate {
    width: 100%; background: var(--ink); color: #fff; border: 1px solid var(--ink);
    padding: 16px; font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.18em; font-size: 12px; font-weight: 500; transition: var(--t);
}
.btn-validate:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn-continue {
    width: 100%; background: transparent; color: var(--ink-soft); border: 1px solid var(--line-strong);
    padding: 15px; font-family: var(--sans); text-transform: uppercase;
    letter-spacing: 0.16em; font-size: 11px; transition: var(--t);
}
.btn-continue:hover { border-color: var(--ink); color: var(--ink); }

/* Success modal */
.modal-success { text-align: center; }
.success-icon { font-size: 56px; color: var(--green-whatsapp); margin-bottom: 14px; }
.modal-success p { font-family: var(--sans); color: var(--ink-soft); margin-bottom: 8px; font-size: 15px; }
.order-number {
    font-family: var(--sans); font-weight: 600; letter-spacing: 0.1em;
    color: var(--gold-dark); font-size: 16px; margin: 14px 0 20px !important;
}
.modal-success .btn-whatsapp { margin: 8px auto 0; }

/* ==================== CART & WHATSAPP FLOATS ==================== */
.cart-bubble {
    position: fixed; inset-inline-end: 26px; bottom: 96px; z-index: 900;
    width: 60px; height: 60px; background: var(--ink); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; box-shadow: var(--shadow-lg); cursor: pointer;
    transform: scale(0); transition: transform var(--t);
}
.cart-bubble.show { transform: scale(1); }
.cart-bubble:hover { background: var(--gold-dark); }
.bubble-badge {
    position: absolute; top: -2px; inset-inline-end: -2px;
    background: var(--gold); color: #fff; font-family: var(--sans);
    font-size: 11px; font-weight: 600; min-width: 22px; height: 22px;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--paper);
}
.bubble-total {
    position: absolute; inset-inline-end: calc(100% + 12px); top: 50%; transform: translateY(-50%);
    background: var(--ink); color: #fff; font-family: var(--sans); font-size: 13px; font-weight: 500;
    padding: 8px 14px; white-space: nowrap; opacity: 0; pointer-events: none; transition: var(--t);
}
.cart-bubble:hover .bubble-total, .bubble-total.show { opacity: 1; }

.whatsapp-float {
    position: fixed; inset-inline-end: 26px; bottom: 26px; z-index: 900;
    width: 58px; height: 58px; background: var(--green-whatsapp); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 28px; box-shadow: var(--shadow-lg); transition: var(--t);
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.05); }

/* ==================== GALLERY LIGHTBOX ==================== */
.gallery-overlay {
    position: fixed; inset: 0; z-index: 3000; background: rgba(20,18,15,0.94);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--t);
}
.gallery-overlay.show { opacity: 1; visibility: visible; }
.gallery-close {
    position: absolute; top: 24px; inset-inline-end: 30px;
    background: transparent; border: none; color: #fff; font-size: 34px; line-height: 1;
}
.gallery-main {
    display: flex; align-items: center; gap: 20px;
    max-width: 90vw; max-height: 74vh;
}
#galleryMainImg { max-width: 78vw; max-height: 74vh; object-fit: contain; transition: opacity 0.15s; }
.gallery-nav {
    background: transparent; border: 1px solid rgba(255,255,255,0.35); color: #fff;
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; transition: var(--t);
}
.gallery-nav:hover { background: rgba(255,255,255,0.14); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 22px; max-width: 90vw; overflow-x: auto; padding: 6px; }
.gallery-thumb {
    width: 60px; height: 76px; object-fit: cover; opacity: 0.5; cursor: pointer;
    transition: opacity var(--t); border: 1px solid transparent;
}
.gallery-thumb.active, .gallery-thumb:hover { opacity: 1; border-color: var(--gold); }
.gallery-counter { color: rgba(255,255,255,0.7); font-family: var(--sans); font-size: 13px; margin-top: 14px; letter-spacing: 0.1em; }

/* ==================== STOCK POPUP ==================== */
.stock-popup-overlay {
    position: fixed; inset: 0; z-index: 2500; background: rgba(20,18,15,0.55);
    backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 20px;
    opacity: 0; visibility: hidden; transition: var(--t);
}
.stock-popup-overlay.show { opacity: 1; visibility: visible; }
.stock-popup {
    background: var(--paper); max-width: 360px; width: 100%; padding: 36px 28px; text-align: center;
    border-top: 3px solid var(--gold); transform: translateY(20px); transition: var(--t);
}
.stock-popup-overlay.show .stock-popup { transform: translateY(0); }
.stock-popup-icon { font-size: 40px; color: var(--gold-dark); margin-bottom: 14px; }
.stock-popup-title { font-family: var(--serif); font-size: 20px; color: var(--ink); margin-bottom: 10px; }
.stock-popup-msg { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.6; }
.stock-popup-btn {
    background: var(--ink); color: #fff; border: none; padding: 13px 32px;
    font-family: var(--sans); text-transform: uppercase; letter-spacing: 0.16em; font-size: 12px; transition: var(--t);
}
.stock-popup-btn:hover { background: var(--gold-dark); }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .products-grid, .best-sellers .products-grid { grid-template-columns: repeat(3, 1fr); }
    .editorial-inner { grid-template-columns: 1fr; }
    .editorial.reverse .editorial-media { order: 0; }
    .editorial-media { min-height: 60vh; }
    .contact-content { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 768px) {
    .container, .nav-container { padding: 0 20px; }
    .nav-menu {
        position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: 78%; max-width: 320px;
        background: var(--paper); flex-direction: column; align-items: flex-start;
        justify-content: center; gap: 28px; padding: 40px;
        transform: translateX(110%); transition: transform var(--t); z-index: 1200;
    }
    [dir="rtl"] .nav-menu { transform: translateX(-110%); }
    .nav-menu.open { transform: translateX(0); }
    .nav-menu .nav-link { color: var(--ink); font-size: 14px; }
    .mobile-menu-btn { display: block; }
    .logo-img { height: 64px; }
    .navbar.scrolled .logo-img { height: 52px; }

    .section { padding: 72px 0; }
    .slide-content { padding: 0 24px; bottom: 20%; }
    .hero-cta-wrap { inset-inline-start: 24px; bottom: 7%; }
    .slider-dots { inset-inline-end: 24px; }
    .slider-arrow { display: none; }

    .products-grid, .best-sellers .products-grid { grid-template-columns: repeat(2, 1fr); gap: 8px 12px; }
    .product-name { font-size: 12px; letter-spacing: 0.08em; }
    .btn-buy { padding: 11px; letter-spacing: 0.12em; }

    .editorial-content { padding: 56px 28px; }
    .modal { padding: 28px 22px; }
}

@media (max-width: 420px) {
    .products-grid, .best-sellers .products-grid { gap: 6px 8px; }
    .slide-content h1 { font-size: 2.1rem; }
}
