/* =====================================================================
   Waves storefront — design system
   Warm ivory canvas, deep navy ink (from the logo), cyan wave accent.
   ===================================================================== */
:root {
    --ink: #141a33;
    --navy: #16224a;
    --navy-2: #22306a;
    --wave: #1aa3d9;
    --wave-soft: #e3f4fb;
    --wave-ink: #0a6f99; /* wave hue dark enough for small text (≥4.5:1 on wave-soft) */
    --canvas: #faf7f3;
    --sand: #f2ece4;
    --stone: #e6ded3;
    --card: #ffffff;
    --muted: #6d6a75;
    --line: rgba(20, 26, 51, .1);
    --sale: #c2410c;
    --ok: #15803d;
    --radius: 18px;
    --radius-sm: 12px;
    --shadow: 0 10px 30px rgba(20, 26, 51, .08);
    --shadow-lg: 0 24px 60px rgba(20, 26, 51, .14);
    --font: "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
    --display: "El Messiri", "Tajawal", serif;
    --wrap: 1240px;
    --gutter: clamp(16px, 4vw, 40px);
    --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--ink);
    background: var(--canvas);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.3; margin: 0; font-weight: 700; color: var(--navy); }
p { margin: 0; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--wave); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 50px; padding: 0 28px; border-radius: 999px; border: 1.5px solid transparent;
    font-weight: 700; font-size: 16px; cursor: pointer; white-space: nowrap;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px rgba(22, 34, 74, .22); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); border-color: rgba(22, 34, 74, .25); }
.btn-ghost:hover { border-color: var(--navy); background: rgba(22, 34, 74, .04); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--wave-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- Announcement ---------- */
.announcement-bar {
    display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 14px;
    padding: 8px var(--gutter); background: var(--navy); color: #e8ecf7; font-size: 13.5px; text-align: center;
}
.announcement-bar i { color: var(--wave); margin-inline-end: 4px; }
.announcement-bar a { color: #fff; font-weight: 700; }
.announcement-sep { opacity: .4; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    border-bottom: 1px solid transparent;
    transition: box-shadow .25s ease, border-color .25s ease;
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile menu inside the header's box. */
.site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(250, 247, 243, .86);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px rgba(20, 26, 51, .06); }
.main-navigation {
    max-width: var(--wrap); margin: 0 auto; height: var(--header-h);
    padding: 0 var(--gutter);
    display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px;
}
.nav-toggle, .nav-toggle-label, .main-navigation .mobile-cart-icon { display: none; }
.nav-menu-content { grid-column: 1; }
.site-logo { grid-column: 2; display: block; }
.site-logo-img { height: 50px; width: auto; }
.nav-icons { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 6px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-item {
    position: relative; display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 999px; font-weight: 500; color: var(--ink);
    transition: background-color .2s ease, color .2s ease;
}
.nav-item:hover { background: var(--sand); }
.nav-item.active-link { color: var(--navy); font-weight: 700; }
.nav-item.active-link::after {
    content: ""; position: absolute; inset-inline: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--wave);
}
.dropdown-arrow { font-size: 11px; opacity: .6; transition: transform .2s ease; }
.dropdown { position: relative; }
.dropdown-content {
    position: absolute; top: calc(100% + 10px); inset-inline-start: 0; min-width: 230px;
    background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown-content.show { opacity: 1; visibility: visible; transform: none; }
.dropdown-content a { display: block; padding: 10px 14px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.dropdown-content a:hover { background: var(--sand); color: var(--navy); }
.dropdown-content hr { border: 0; border-top: 1px solid var(--line); margin: 6px 8px; }
.dropdown-loading { padding: 10px 14px; color: var(--muted); font-size: 14px; }
.icon-btn {
    display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
    font-size: 20px; color: var(--navy); transition: background-color .2s ease;
}
.icon-btn:hover { background: var(--sand); }
.whatsapp-link { color: #1f9d55; }
.cart-icon-wrap { position: relative; display: inline-flex; }
.cart-badge {
    position: absolute; top: -8px; inset-inline-end: -10px; min-width: 20px; height: 20px; padding: 0 5px;
    border-radius: 999px; background: var(--wave); color: #fff; font-size: 11.5px; font-weight: 800;
    display: grid; place-items: center; border: 2px solid var(--canvas); line-height: 1;
}

/* ---------- Hero ---------- */
.hero {
    position: relative; max-width: var(--wrap); margin: 18px auto 0; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 1fr minmax(320px, 1.15fr) 1fr; align-items: center; gap: clamp(16px, 3vw, 40px);
    min-height: clamp(520px, 72vh, 720px);
}
.hero::before {
    content: ""; position: absolute; inset: 0 var(--gutter); z-index: -1; border-radius: 36px;
    background:
        radial-gradient(60% 70% at 50% 40%, #ffffff 0%, rgba(255, 255, 255, 0) 70%),
        linear-gradient(180deg, var(--sand), var(--canvas));
}
.hero-photo { position: relative; height: 100%; display: flex; align-items: center; }
.hero-photo img {
    width: 100%; aspect-ratio: 3 / 4.4; object-fit: cover; box-shadow: var(--shadow-lg);
    border-radius: 999px 999px 28px 28px;
}
.hero-photo--start img { object-position: 50% 30%; transform: translateY(18px); }
.hero-photo--end img { object-position: 50% 40%; transform: translateY(-18px); }
.hero-center { text-align: center; display: flex; flex-direction: column; align-items: center; padding: 40px 0 70px; }
.hero-eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .5px;
    background: var(--wave-soft); padding: 6px 14px; border-radius: 999px; color: var(--wave-ink);
}
.hero-logo { width: clamp(190px, 21vw, 280px); height: auto; margin: 22px 0 10px; filter: drop-shadow(0 10px 24px rgba(22, 34, 74, .12)); }
.hero-title { font-size: clamp(32px, 3.6vw, 50px); margin-top: 6px; text-wrap: balance; }
.hero-sub { max-width: 440px; margin-top: 12px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 26px; }
.hero-waves { position: absolute; inset-inline: var(--gutter); bottom: 22px; width: calc(100% - 2 * var(--gutter)); height: 90px; z-index: -1; pointer-events: none; }
.hero-waves path { fill: none; stroke: var(--wave); stroke-width: 2; opacity: .35; }
.hero-waves path + path { stroke: var(--navy); opacity: .15; }

/* ---------- Features ---------- */
.features {
    max-width: var(--wrap); margin: 34px auto 0; padding: 0 var(--gutter);
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.feature {
    display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: var(--radius);
    background: #fff; border: 1px solid var(--line);
}
.feature i {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--wave-soft); color: var(--navy); font-size: 19px;
}
.feature strong { display: block; font-size: 15.5px; color: var(--navy); }
.feature span { display: block; font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--gutter) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.section-title { font-size: clamp(26px, 3vw, 36px); text-wrap: balance; }
.page-head { margin-top: 8px; }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--navy); padding: 6px 2px; border-bottom: 1.5px solid currentColor; }
.link-more i { font-size: 12px; transition: transform .2s ease; }
.link-more:hover i { transform: translateX(-4px); }

/* ---------- Categories ---------- */
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.category-card {
    position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3.2;
    display: flex; flex-direction: column; justify-content: end; padding: 20px; isolation: isolate;
    background: var(--sand); transition: transform .25s ease, box-shadow .25s ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.category-card > i {
    position: absolute; top: 18px; inset-inline-start: 18px; width: 52px; height: 52px; border-radius: 16px;
    display: grid; place-items: center; font-size: 22px; background: rgba(255, 255, 255, .75); color: var(--navy);
}
.category-card.tone-0 { background: linear-gradient(150deg, #f3e7dc, #ead8c8); }
.category-card.tone-1 { background: linear-gradient(150deg, #e4eef8, #cfe0f2); }
.category-card.tone-2 { background: linear-gradient(150deg, #f4e3e6, #ead0d6); }
.category-card.tone-3 { background: linear-gradient(150deg, #e7ece3, #d5dfcf); }
.category-card.has-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s ease; }
.category-card.has-image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(12, 16, 36, .62)); }
.category-card.has-image:hover img { transform: scale(1.05); }
.category-card.has-image .category-label, .category-card.has-image .category-count { color: #fff; }
.category-label { font-family: var(--display); font-weight: 700; font-size: 23px; color: var(--navy); }
.category-count { font-size: 13.5px; color: var(--muted); }

/* ---------- Product grid & cards ---------- */
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.product-grid > p { grid-column: 1 / -1; color: var(--muted); padding: 30px 0; text-align: center; }
.product-card { cursor: pointer; display: flex; flex-direction: column; border-radius: var(--radius); outline-offset: 4px; }
.product-image-container {
    position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--sand);
}
.product-image-container img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top;
    transition: opacity .45s ease, transform .6s ease;
}
.product-image-container .img-alt { opacity: 0; }
.product-card:hover .product-image-container img:first-child { transform: scale(1.04); }
.product-card:hover .product-image-container .img-alt { opacity: 1; }
.card-badge {
    position: absolute; top: 12px; inset-inline-start: 12px; z-index: 2; padding: 3px 11px; border-radius: 999px;
    font-size: 12.5px; font-weight: 800; color: #fff; background: var(--sale);
}
.card-badge.sold-out { background: rgba(20, 26, 51, .78); }
.product-card.is-sold-out img { filter: grayscale(.5); opacity: .7; }
.product-card .product-info { padding: 12px 4px 0; text-align: start; }
.card-category { display: block; font-size: 12.5px; color: var(--muted); }
.product-card h3 {
    font-family: var(--font); font-size: 16px; font-weight: 700; color: var(--ink); margin: 2px 0 4px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.product-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; font-weight: 800; }
.product-price .price-current { color: var(--navy); font-size: 16.5px; }
.product-price del { color: var(--muted); font-weight: 500; font-size: 14px; }
.product-card:has(del) .price-current { color: var(--sale); }

/* ---------- Editorial ---------- */
.editorial {
    max-width: var(--wrap); margin: clamp(48px, 7vw, 80px) auto 0; padding: 0 var(--gutter);
    display: grid; grid-template-columns: 1fr 1fr; align-items: stretch;
}
.editorial-media { border-radius: 28px 0 0 28px; overflow: hidden; min-height: 380px; }
.editorial-media img { width: 100%; height: 100%; object-fit: cover; }
.editorial-text {
    background: var(--navy); color: #dfe5f5; border-radius: 0 28px 28px 0;
    padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 16px;
    background-image: radial-gradient(80% 60% at 0% 100%, rgba(26, 163, 217, .28), transparent 70%);
}
[dir="rtl"] .editorial-media { border-radius: 0 28px 28px 0; }
[dir="rtl"] .editorial-text { border-radius: 28px 0 0 28px; }
.editorial-text h2 { color: #fff; font-size: clamp(28px, 3.2vw, 40px); text-wrap: balance; }
.editorial-text .hero-eyebrow { background: rgba(255, 255, 255, .12); color: #9fdcf3; }

/* ---------- Product page ---------- */
.back-btn {
    display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; cursor: pointer;
    color: var(--muted); font-weight: 500; padding: 6px 0; margin-bottom: 18px;
}
.back-btn:hover { color: var(--navy); }
.product-details { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product-images { position: sticky; top: calc(var(--header-h) + 16px); }
.main-image-wrap { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: var(--sand); }
.main-image { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.thumbnail-container { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbnail {
    width: 76px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; cursor: pointer;
    border: 2px solid transparent; opacity: .75; transition: opacity .2s ease, border-color .2s ease;
}
.thumbnail:hover, .thumbnail.active { opacity: 1; border-color: var(--navy); }
.product-category { color: var(--wave-ink); font-weight: 700; font-size: 14px; }
.product-info h1 { font-size: clamp(28px, 3vw, 40px); margin: 4px 0 10px; }
.product-details-price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.current-price { font-size: 28px; font-weight: 800; color: var(--navy); }
.product-details-price:has(.discount:not([hidden])) .current-price { color: var(--sale); }
.original-price { color: var(--muted); text-decoration: line-through; font-size: 18px; }
.discount { background: #fde8df; color: var(--sale); font-weight: 800; font-size: 13px; padding: 3px 10px; border-radius: 999px; }
#product-description:empty { display: none; }
#product-description { color: var(--muted); margin-top: 12px; }
.variant-selector { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 20px; }
.form-group > label { display: block; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    min-width: 52px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--stone);
    background: #fff; cursor: pointer; font-weight: 700; transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.chip:hover:not(:disabled) { border-color: var(--navy); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip:disabled { color: #b3afb8; background: #f6f3ef; text-decoration: line-through; cursor: not-allowed; }
.chips-empty { color: var(--muted); font-size: 14px; }
.quantity { display: inline-flex; align-items: center; border: 1.5px solid var(--stone); border-radius: 999px; background: #fff; }
.quantity-btn { width: 46px; height: 46px; border: 0; background: none; cursor: pointer; font-size: 20px; color: var(--navy); border-radius: 50%; }
.quantity-btn:hover { background: var(--sand); }
#quantity { min-width: 34px; text-align: center; font-weight: 800; }
.stock-note { min-height: 1.4em; margin: -6px 0 0; font-size: 14px; font-weight: 700; color: var(--sale); }
.product-details-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.product-details-actions .btn { min-height: 56px; }
#product-details-section.is-sold-out .product-details-actions::before {
    content: "هذا الموديل نفد حالياً"; grid-column: 1 / -1; text-align: center; font-weight: 700; color: var(--muted);
}
.product-perks { list-style: none; padding: 18px 0 0; margin: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.product-perks i { width: 22px; color: var(--navy); }
.product-perks a { color: var(--navy); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.cart-container { display: grid; gap: 14px; }
.cart-container .loading { padding: 50px 20px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--stone); }
.cart-item { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 16px; }
.cart-item-header { display: flex; gap: 16px; align-items: center; }
.cart-item-image { width: 84px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; background: var(--sand); }
.cart-item-info h3 { font-family: var(--font); font-size: 17px; color: var(--ink); }
.cart-item-info p { color: var(--muted); font-size: 14px; }
.cart-variants-list { margin-top: 12px; display: grid; gap: 8px; }
.cart-variant-item {
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14.5px;
    background: var(--canvas); border-radius: 10px; padding: 10px 14px;
}
.delete-variant-icon { margin-inline-start: auto; color: var(--sale); cursor: pointer; padding: 6px; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 16px); background: #fff; border-radius: var(--radius); border: 1px solid var(--line); padding: 22px; display: grid; gap: 14px; }
.cart-summary h2 { font-size: 22px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 0; border-block: 1px solid var(--line); }
.cart-total strong { font-size: 24px; color: var(--navy); }

/* ---------- Modal ---------- */
.modal {
    display: none; position: fixed; inset: 0; z-index: 200; align-items: center; justify-content: center;
    padding: 16px; background: rgba(12, 16, 36, .5); backdrop-filter: blur(4px);
}
.modal-content {
    width: min(460px, 100%); background: #fff; border-radius: 24px; padding: 28px; box-shadow: var(--shadow-lg);
    display: grid; gap: 8px; animation: modal-in .25s ease;
}
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal-content h2 { font-size: 26px; }
.modal-content label { font-weight: 700; margin-top: 8px; font-size: 15px; }
.modal-content input {
    width: 100%; height: 50px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--stone); background: var(--canvas);
    transition: border-color .15s ease, background-color .15s ease;
}
.modal-content input:focus { outline: none; border-color: var(--navy); background: #fff; }
.modal-actions { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- About ---------- */
.about-hero { text-align: center; padding: 10px 0 34px; display: grid; justify-items: center; gap: 6px; }
.about-hero img { width: 200px; height: auto; margin-bottom: 8px; }
.about-hero h1 { font-size: clamp(32px, 4vw, 46px); }
.about-hero p { color: var(--muted); font-size: 18px; }
.about-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.about-card > i { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--wave-soft); color: var(--navy); font-size: 20px; margin-bottom: 14px; }
.about-card h2 { font-size: 22px; margin-bottom: 8px; }
.about-card p { color: var(--muted); }
.about-card a { color: var(--navy); font-weight: 800; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a {
    width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
    background: var(--sand); color: var(--navy); transition: background-color .2s ease, color .2s ease;
}
.social-row a:hover { background: var(--navy); color: #fff; }

/* ---------- Footer ---------- */
.site-footer-container { margin-top: clamp(60px, 8vw, 100px); background: var(--navy); color: #c9d0e6; }
.newsletter-banner {
    max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.newsletter-banner h2 { color: #fff; font-size: clamp(24px, 2.6vw, 32px); }
.newsletter-banner p { margin-top: 4px; }
.newsletter-form { flex: 0 1 460px; }
.input-wrapper { display: flex; gap: 8px; background: #fff; border-radius: 999px; padding: 6px; }
.input-wrapper input { flex: 1; min-width: 0; border: 0; background: none; padding: 0 16px; height: 46px; color: var(--ink); }
.input-wrapper input:focus { outline: none; }
.newsletter-submit { border: 0; border-radius: 999px; padding: 0 24px; background: var(--wave); color: #fff; font-weight: 800; cursor: pointer; }
.newsletter-submit:hover { background: #128cbd; }
.footer-content {
    max-width: var(--wrap); margin: 0 auto; padding: 44px var(--gutter) 30px;
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.footer-logo { width: 150px; height: auto; background: #fff; border-radius: 18px; padding: 14px 18px; margin-bottom: 16px; }
.footer-about p { max-width: 360px; }
.site-footer-container .social-row a { background: rgba(255, 255, 255, .08); color: #fff; }
.site-footer-container .social-row a:hover { background: var(--wave); }
.footer-col h3 { color: #fff; font-family: var(--font); font-size: 17px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 26px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; color: #8e97b8; }

/* ---------- Toast ---------- */
.site-toast {
    position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300;
    max-width: calc(100vw - 32px); padding: 13px 22px; border-radius: 14px; background: var(--navy); color: #fff;
    font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.site-toast.error { background: #b91c1c; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
    .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .features { grid-template-columns: repeat(2, 1fr); }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    :root { --header-h: 64px; }
    .main-navigation { grid-template-columns: 46px 1fr 46px; gap: 8px; }
    .nav-toggle-label {
        display: grid; place-items: center; width: 46px; height: 46px; cursor: pointer; grid-column: 1; grid-row: 1;
    }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--navy); position: relative; transition: transform .25s ease, background-color .25s ease;
    }
    .nav-toggle-label span::before, .nav-toggle-label span::after { content: ""; position: absolute; inset-inline-start: 0; }
    .nav-toggle-label span::before { top: -7px; }
    .nav-toggle-label span::after { top: 7px; }
    .nav-toggle:checked + .nav-toggle-label span { background: transparent; }
    .nav-toggle:checked + .nav-toggle-label span::before { transform: translateY(7px) rotate(45deg); }
    .nav-toggle:checked + .nav-toggle-label span::after { transform: translateY(-7px) rotate(-45deg); }
    .site-logo { grid-column: 2; grid-row: 1; justify-self: center; }
    .site-logo-img { height: 40px; }
    .main-navigation .mobile-cart-icon { display: inline-grid; grid-column: 3; grid-row: 1; }
    .nav-icons { display: none; }
    .nav-menu-content {
        position: fixed; inset-inline: 0; top: calc(var(--header-h) + 1px); bottom: 0; z-index: 49;
        background: var(--canvas); padding: 18px var(--gutter) 40px; overflow-y: auto;
        transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s;
    }
    .nav-toggle:checked ~ .nav-menu-content { transform: none; visibility: visible; }
    .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
    .nav-item { font-size: 19px; padding: 14px 16px; border-radius: 14px; justify-content: space-between; }
    .nav-item.active-link::after { display: none; }
    .nav-item.active-link { background: var(--sand); }
    .dropdown-content { position: static; box-shadow: none; border: 0; background: transparent; display: none; opacity: 1; visibility: visible; transform: none; padding: 0 12px; }
    .dropdown-content.show { display: block; }

    .hero { grid-template-columns: 1fr 1fr; grid-template-areas: "center center" "start end"; min-height: 0; gap: 14px; padding-bottom: 20px; }
    .hero::before { inset: 0; border-radius: 0 0 32px 32px; }
    .hero-center { grid-area: center; padding: 34px 0 10px; }
    .hero-photo--start { grid-area: start; }
    .hero-photo--end { grid-area: end; }
    .hero-photo img { aspect-ratio: 3 / 4; border-radius: 160px 160px 22px 22px; transform: none !important; }
    .hero-waves { display: none; }

    .product-details { grid-template-columns: 1fr; }
    .product-images { position: static; }
    .cart-layout { grid-template-columns: 1fr; }
    .cart-summary { position: static; }
    .editorial { grid-template-columns: 1fr; }
    .editorial-media, [dir="rtl"] .editorial-media { border-radius: 24px 24px 0 0; min-height: 260px; max-height: 340px; }
    .editorial-text, [dir="rtl"] .editorial-text { border-radius: 0 0 24px 24px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
    body { font-size: 15.5px; }
    .announcement-sep, .announcement-bar span:last-child { display: none; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
    .product-card h3 { font-size: 14.5px; }
    .product-price { flex-direction: row-reverse; justify-content: flex-start; flex-wrap: wrap; gap: 2px 8px; }
    .features { grid-template-columns: 1fr 1fr; gap: 10px; }
    .feature { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .categories-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .category-card { padding: 14px; aspect-ratio: 1 / 1; }
    .category-label { font-size: 19px; }
    .category-card > i { width: 44px; height: 44px; font-size: 19px; top: 14px; inset-inline-start: 14px; }
    .section-head { margin-bottom: 18px; }
    .about-grid { grid-template-columns: 1fr; }
    .product-details-actions { grid-template-columns: 1fr; }
    .modal-content { padding: 22px; border-radius: 20px; }
    .footer-content { grid-template-columns: 1fr; }
    .newsletter-banner { padding-block: 34px; }
    .newsletter-form { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
}
