/* ============================================================
   MAISON NOIR — Design Tokens
   ============================================================ */

:root {
    --gold:        #C9A24A;
    --gold-deep:   #A67C2E;
    --gold-soft:   rgba(201, 162, 74, 0.18);
    --bg:          #0B1220;
    --bg-deep:     #020617;
    --bg-elev:     #0F1828;
    --line:        rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text:        #FFFFFF;
    --text-2:      rgba(255, 255, 255, 0.70);
    --text-3:      rgba(255, 255, 255, 0.45);
    --display:     "Cormorant Garamond", "Times New Roman", serif;
    --sans:        "Outfit", system-ui, sans-serif;
    --mono:        "JetBrains Mono", ui-monospace, monospace;
    --ease:        cubic-bezier(0.2, 0.7, 0.2, 1);
}


/* ============================================================
   Base Reset
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.5;
    letter-spacing: -0.005em;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Ambient radial glow overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(1200px 600px at 82% -10%, rgba(201, 162, 74, 0.10), transparent 60%),
        radial-gradient(900px 500px at -10% 90%,  rgba(201, 162, 74, 0.05), transparent 55%);
    pointer-events: none;
    z-index: 0;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: inherit;
}

section {
    position: relative;
    z-index: 1;
}


/* ============================================================
   Layout
   ============================================================ */

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 48px;
    position: relative;
    z-index: 1;
}

.section {
    padding: 140px 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 60px;
}

.section-head h2 {
    font-size: clamp(40px, 4.5vw, 64px);
    max-width: 720px;
    margin: 14px 0 0;
}

.section-head .side {
    max-width: 300px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.7;
}


/* ============================================================
   Typography
   ============================================================ */

.display {
    font-family: var(--display);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.02em;
}

.display em {
    font-style: italic;
    color: var(--gold);
    font-weight: 400;
}

.eyebrow {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--text-3);
}

.eyebrow .dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    margin-right: 10px;
    vertical-align: middle;
    box-shadow: 0 0 8px var(--gold);
}

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 162, 74, 0.3);
    padding-bottom: 6px;
    transition: letter-spacing 0.3s var(--ease), border-color 0.3s var(--ease);
}

.view-all:hover {
    border-color: var(--gold);
    letter-spacing: 0.2em;
}


/* ============================================================
   Buttons
   ============================================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    font-family: var(--sans);
    font-weight: 500;
    font-size: 13.5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 2px;
    white-space: nowrap;
    transition: all 0.3s var(--ease);
}

.btn svg {
    width: 14px;
    height: 14px;
    transition: transform 0.3s var(--ease);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-gold {
    background: var(--gold);
    color: #0B1220;
}

.btn-gold:hover {
    background: #D9B566;
    transform: translateY(-1px);
    box-shadow: 0 12px 30px -10px rgba(201, 162, 74, 0.5);
}

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.icon-btn {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: all 0.3s var(--ease);
}

.icon-btn svg {
    width: 15px;
    height: 15px;
}

.icon-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}


/* ============================================================
   Navigation
   ============================================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition:
        background      0.35s var(--ease),
        backdrop-filter 0.35s var(--ease),
        border-color    0.35s var(--ease);
}

.nav.scrolled {
    background: rgba(11, 18, 32, 0.82);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom-color: var(--line);
    box-shadow: 0 8px 32px -16px rgba(0, 0, 0, 0.65);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 20px 52px;
    max-width: 1440px;
    margin: 0 auto;
}

/* ── Brand — left (order: 1) ──── */
.brand {
    order: 1;
    display: flex;
    align-items: center;
    gap: 11px;
    flex-shrink: 0;
}

.brand-mark {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gold);
    display: grid;
    place-items: center;
    font-family: var(--display);
    font-style: italic;
    font-size: 15px;
    color: var(--gold);
    flex-shrink: 0;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1;
    gap: 2px;
}

.brand-name span:first-child {
    font-family: var(--sans);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
}

.brand-name span:last-child {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 10px;
    letter-spacing: 0.30em;
    text-transform: uppercase;
    color: var(--text-3);
}

/* ── Nav links — centre (order: 2) ──── */
.nav-links {
    order: 2;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-links > a {
    position: relative;
    padding: 7px 14px;
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-2);
    transition: color 0.3s var(--ease);
    border-radius: 2px;
    white-space: nowrap;
}

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

.nav-links > a.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 1px;
    background: var(--gold);
}

/* Dropdown */
.nav-dropdown-wrap {
    position: relative;
}

/* Transparent bridge fills the 14px gap between the trigger and
   the dropdown panel so moving the mouse downward never leaves
   the hovered ancestor — eliminating the flicker/disappear bug. */
.nav-dropdown-wrap::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 14px; /* must match the gap in top: calc(100% + 14px) */
}

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 400;
    letter-spacing: 0.06em;
    color: var(--text-2);
    border-radius: 2px;
    white-space: nowrap;
    transition: color 0.3s var(--ease);
}

.nav-dropdown-trigger.active,
.nav-dropdown-wrap:hover .nav-dropdown-trigger {
    color: var(--gold);
}

.nav-dropdown-trigger svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.nav-dropdown-wrap:hover .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    min-width: 200px;
    background: rgba(7, 12, 22, 0.97);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity    0.25s var(--ease),
        transform  0.25s var(--ease),
        visibility 0.25s;
}

.nav-dropdown::before {
    content: "";
    position: absolute;
    top: -5px;
    left: 50%;
    width: 8px;
    height: 8px;
    background: rgba(7, 12, 22, 0.97);
    border-left: 1px solid var(--line-strong);
    border-top: 1px solid var(--line-strong);
    transform: translateX(-50%) rotate(45deg);
}

.nav-dropdown-wrap:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 12.5px;
    letter-spacing: 0.05em;
    color: var(--text-2);
    transition:
        color         0.2s var(--ease),
        background    0.2s var(--ease),
        padding-left  0.2s var(--ease);
}

.nav-dropdown a::before {
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    flex-shrink: 0;
    transition: opacity 0.2s var(--ease);
}

.nav-dropdown a:hover {
    color: var(--gold);
    background: rgba(201, 162, 74, 0.06);
    padding-left: 26px;
}

.nav-dropdown a:hover::before {
    opacity: 1;
}

/* ── Language switcher + Cart — right (order: 3) ──── */
.nav-actions {
    order: 3;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-cart-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--text-3);
    border-radius: 2px;
    transition:
        color     0.3s var(--ease),
        transform 0.3s var(--ease);
}

.nav-cart-btn svg {
    width: 20px;
    height: 20px;
}

.nav-cart-btn:hover {
    color: var(--gold);
    transform: scale(1.12);
}


/* ============================================================
   Hero
   ============================================================ */

.hero {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

/* Slide container — gives the hero its height */
.hero-slides {
    position: relative;
    min-height: 100vh;
}

/* Each slide stacks absolutely inside the container */
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 140px 0 90px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition:
        opacity   0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
        transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    will-change: opacity, transform;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* Circle composition */
.circles {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 560px;
}

.circle-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(circle at 50% 50%, rgba(201, 162, 74, 0.22), transparent 60%);
    filter: blur(20px);
    z-index: 0;
}

.circle {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    isolation: isolate;
}

.circle-main {
    inset: 0 60px 0 0;
    aspect-ratio: 1 / 1;
    z-index: 1;
    box-shadow:
        0 0 0 1px rgba(201, 162, 74, 0.2),
        0 30px 80px -20px rgba(0, 0, 0, 0.7);
}

.circle-sub {
    width: 45%;
    aspect-ratio: 1 / 1;
    bottom: -6%;
    right: 0;
    z-index: 2;
    box-shadow:
        0 0 0 6px var(--bg),
        0 0 0 7px rgba(201, 162, 74, 0.35),
        0 20px 50px -10px rgba(0, 0, 0, 0.7);
}

.circle-badge {
    position: absolute;
    top: 8%;
    left: -8%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 1px dashed rgba(201, 162, 74, 0.4);
    display: grid;
    place-items: center;
    z-index: 3;
    animation: spin 30s linear infinite;
}

.circle-badge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.circle-badge::before {
    content: "";
    position: absolute;
    inset: 20px;
    border-radius: 50%;
    background: var(--bg-deep);
    border: 1px solid rgba(201, 162, 74, 0.3);
}

.circle-badge .inner {
    position: relative;
    font-family: var(--display);
    font-style: italic;
    font-size: 22px;
    color: var(--gold);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Hero copy */
.hero-copy {
    max-width: 560px;
}

.hero-copy h1 {
    font-size: clamp(48px, 6vw, 88px);
    margin: 22px 0 28px;
}

.hero-copy p {
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.7;
    max-width: 480px;
    margin: 0 0 40px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* Hero controls */
.hero-controls {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 28px;
    z-index: 3;
}

body.rtl .hero-controls {
    direction: rtl;
}

body.rtl .hero-arrow svg {
    transform: rotate(180deg);
}

.hero-arrow {
    transition: all 0.3s ease;
}

.hero-arrow:hover {
    transform: scale(1.1);
}

.hero-arrow {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    color: var(--text-2);
    transition: all 0.3s var(--ease);
}

.hero-arrow svg {
    width: 14px;
    height: 14px;
}

.hero-arrow:hover {
    border-color: var(--gold);
    color: var(--gold);
    box-shadow: 0 0 24px -4px var(--gold-soft);
}

.hero-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
    flex-shrink: 0;
    transition: width 0.35s var(--ease), background 0.35s var(--ease), border-radius 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.hero-dot.active {
    width: 28px;
    border-radius: 999px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(201, 162, 74, 0.45);
}

.hero-counter {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--text-3);
}

.hero-counter span {
    color: var(--gold);
}

.hero-meta {
    position: absolute;
    left: 48px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--text-3);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 3;
}

.hero-meta .line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    margin-left: 6px;
}


/* ============================================================
   Page Hero (inner pages)
   ============================================================ */

.page-hero {
    padding: 180px 0 100px;
    position: relative;
    z-index: 1;
}

.page-hero .eyebrow {
    margin-bottom: 24px;
}

.page-hero h1 {
    font-size: clamp(52px, 7vw, 100px);
    margin: 0 0 32px;
}

.page-hero-desc {
    max-width: 560px;
    color: var(--text-2);
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
}


/* ============================================================
   Products Grid
   ============================================================ */

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product {
    position: relative;
    cursor: pointer;
    transition: transform 0.4s var(--ease);
}

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

.product-media {
    display: block;
    position: relative;
    aspect-ratio: 4 / 5;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    overflow: hidden;
    transition:
        border-color 0.3s var(--ease),
        box-shadow   0.3s var(--ease);
}

.product:hover .product-media {
    border-color: rgba(201, 162, 74, 0.4);
    box-shadow: 0 30px 60px -30px rgba(201, 162, 74, 0.3);
}

.product-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    padding: 5px 9px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(201, 162, 74, 0.4);
    background: rgba(11, 18, 32, 0.6);
    backdrop-filter: blur(6px);
}

/* Hover overlay — replaces product-quick */
.product-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.product-overlay svg {
    width: 14px;
    height: 14px;
}

.product:hover .product-overlay {
    opacity: 1;
}

/* Info below the image */
.product-info {
    display: flex;
    flex-direction: column;
    padding-top: 16px;
}

.product-info-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.product-info-top > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.product-info .name {
    display: block;
    font-family: var(--display);
    font-size: 20px;
    line-height: 1.2;
}

.product-info .sub {
    display: block;
    margin-top: 5px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
    color: var(--text-3);
}

.product-info .price {
    flex-shrink: 0;
    padding-top: 3px;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
}

/* Add to Cart button */
.product-add {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 16px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 2px;
    transition:
        color            0.3s var(--ease),
        background       0.3s var(--ease),
        border-color     0.3s var(--ease),
        box-shadow       0.3s var(--ease);
}

.product-add svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    transition: transform 0.3s var(--ease);
}

.product-add:hover {
    color: #0B1220;
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 8px 24px -8px rgba(201, 162, 74, 0.5);
}

.product-add:hover svg {
    transform: translateY(-1px);
}

.product-add.added {
    color: var(--gold);
    background: rgba(201, 162, 74, 0.10);
    border-color: rgba(201, 162, 74, 0.4);
}


/* ============================================================
   Categories Mosaic
   ============================================================ */

.categories {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px;
    height: 540px;
}

.cat {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    cursor: pointer;
}

.cat.tall {
    grid-row: span 2;
}

.cat-media {
    position: absolute;
    inset: 0;
}

.cat-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.92) 0%,
        rgba(2, 6, 23, 0.20) 50%,
        rgba(2, 6, 23, 0.00) 100%
    );
}

.cat-body {
    position: absolute;
    inset: auto 0 0 0;
    padding: 32px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
}

.cat-body h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 36px;
    line-height: 1;
}

.cat-body .meta {
    margin-top: 8px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-3);
}

.cat-arrow {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(11, 18, 32, 0.5);
    backdrop-filter: blur(6px);
    color: var(--text);
    transition: all 0.35s var(--ease);
}

.cat-arrow svg {
    width: 14px;
    height: 14px;
}

.cat:hover .cat-arrow {
    background: var(--gold);
    border-color: var(--gold);
    color: #0B1220;
    transform: rotate(-45deg);
}


/* ============================================================
   About
   ============================================================ */

.about {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}

.about-copy h2 {
    font-size: clamp(40px, 4.5vw, 60px);
    margin: 22px 0 28px;
}

.about-copy p {
    max-width: 480px;
    margin: 0 0 18px;
    color: var(--text-2);
    font-size: 16px;
    line-height: 1.8;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 48px;
    padding-top: 36px;
    border-top: 1px solid var(--line);
}

.stat .num {
    font-family: var(--display);
    font-size: 44px;
    line-height: 1;
    color: var(--gold);
}

.stat .lbl {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-3);
}

.about-media {
    position: relative;
    aspect-ratio: 5 / 6;
    border: 1px solid var(--line);
    overflow: hidden;
}


/* ============================================================
   CTA Banner
   ============================================================ */

.cta {
    position: relative;
    text-align: center;
    padding: 140px 48px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 50% 50%, rgba(201, 162, 74, 0.10), transparent 70%);
    pointer-events: none;
}

.cta .eyebrow {
    position: relative;
    z-index: 1;
}

.cta h2 {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 24px auto 36px;
    font-size: clamp(44px, 5.5vw, 84px);
}

.cta-row {
    position: relative;
    z-index: 1;
    display: inline-flex;
    gap: 14px;
}


/* ============================================================
   Footer
   ============================================================ */

footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
    padding: 80px 0 0;
    font-size: 13px;
    color: var(--text-3);
}

.foot-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: 52px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--line);
}

/* Brand column */
.foot-brand {
    max-width: 300px;
}

.foot-brand-logo {
    display: inline-flex;
    margin-bottom: 22px;
}

.foot-brand-desc {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-2);
    margin: 0 0 28px;
}

.foot-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.foot-social {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    color: var(--text-3);
    flex-shrink: 0;
    transition:
        color       0.3s var(--ease),
        border-color 0.3s var(--ease),
        background   0.3s var(--ease),
        transform    0.3s var(--ease);
}

.foot-social svg {
    width: 14px;
    height: 14px;
}

.foot-social:hover {
    color: var(--gold);
    border-color: rgba(201, 162, 74, 0.45);
    background: rgba(201, 162, 74, 0.08);
    transform: translateY(-2px);
}

/* Link columns */
.foot-col h4 {
    margin: 0 0 22px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--text);
}

.foot-col > a {
    display: block;
    padding: 7px 0;
    font-size: 13.5px;
    color: var(--text-3);
    transition:
        color        0.3s var(--ease),
        padding-left 0.3s var(--ease);
}

.foot-col > a:hover {
    color: var(--gold);
    padding-left: 7px;
}

/* Contact column */
.foot-contact-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.foot-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-3);
    font-size: 13.5px;
    line-height: 1.6;
    transition: color 0.25s var(--ease);
}

.foot-contact-item:hover {
    color: var(--text-2);
}

.foot-contact-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--gold);
    flex-shrink: 0;
    transition:
        background    0.3s var(--ease),
        border-color  0.3s var(--ease);
}

.foot-contact-item:hover .foot-contact-icon {
    background: rgba(201, 162, 74, 0.10);
    border-color: rgba(201, 162, 74, 0.35);
}

.foot-contact-icon svg {
    width: 12px;
    height: 12px;
}

.foot-contact-text a {
    color: inherit;
    transition: color 0.25s var(--ease);
}

.foot-contact-text a:hover {
    color: var(--gold);
}

/* Bottom bar */
.foot-bottom {
    padding: 24px 0;
    text-align: center;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    color: var(--text-3);
    text-transform: uppercase;
}


/* ============================================================
   Placeholder Imagery
   ============================================================ */

.ph {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 16px;
    text-align: center;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.04) 0 2px,
            transparent 2px 14px
        ),
        linear-gradient(135deg, var(--ph-a, #1a2438), var(--ph-b, #0F1828));
}

.ph.warm  { --ph-a: #2a2116; --ph-b: #1a140c; color: rgba(201, 162, 74, 0.6); }
.ph.cool  { --ph-a: #141e30; --ph-b: #0a1220; }
.ph.stone { --ph-a: #20222a; --ph-b: #121319; }

.ph .ph-label {
    max-width: 70%;
    line-height: 1.8;
}

.ph .ph-corner {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
}

.ph .ph-corner.br {
    top: auto;
    left: auto;
    bottom: 10px;
    right: 10px;
}


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 960px) {
    .container {
        padding-left: 24px;
        padding-right: 24px;
    }

    /* Nav */
    .nav-inner {
        padding-left: 24px;
        padding-right: 24px;
        gap: 16px;
    }

    .nav-links {
        display: none;
    }

    /* Hero */
    .hero {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .circles {
        max-width: 420px;
        margin: 0 auto;
    }

    .hero-meta {
        display: none;
    }

    /* Sections */
    .section {
        padding: 90px 0;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

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

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

    .cat {
        height: 320px;
    }

    .cat.tall {
        grid-row: auto;
    }

    .about {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Footer */
    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .foot-brand {
        grid-column: 1 / -1;
        max-width: 100%;
    }
}

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


/* ============================================================
   Cart Badge (nav)
   ============================================================ */

.cart-wrap {
    position: relative;
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--gold);
    color: #0B1220;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    display: grid;
    place-items: center;
    line-height: 1;
    border: 2px solid var(--bg);
    opacity: 0;
    transform: scale(0.6);
    transition:
        opacity   0.25s var(--ease),
        transform 0.25s var(--ease);
    pointer-events: none;
}

.cart-badge.visible {
    opacity: 1;
    transform: scale(1);
}

.cart-badge.bump {
    animation: badge-bump 0.35s var(--ease);
}

@keyframes badge-bump {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}


/* ============================================================
   Toast Notification
   ============================================================ */

.toast-container {
    position: fixed;
    bottom: 36px;
    right: 36px;
    z-index: 200;
    display: flex;
    flex-direction: column-reverse;
    gap: 12px;
    pointer-events: none;
}

.toast {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 300px;
    max-width: 360px;
    padding: 16px 20px 16px 16px;
    background: var(--bg-elev);
    border: 1px solid rgba(201, 162, 74, 0.3);
    box-shadow:
        0 24px 48px -16px rgba(0, 0, 0, 0.7),
        0 0 0 1px rgba(201, 162, 74, 0.08);
    pointer-events: auto;
    transform: translateX(calc(100% + 48px));
    opacity: 0;
    transition:
        transform 0.45s var(--ease),
        opacity   0.45s var(--ease);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast-icon {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid rgba(201, 162, 74, 0.3);
    color: var(--gold);
}

.toast-icon svg {
    width: 15px;
    height: 15px;
}

.toast-body {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.3;
}

.toast-sub {
    margin-top: 3px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    color: var(--text-3);
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    color: var(--text-3);
    transition: color 0.2s var(--ease);
    border-radius: 50%;
}

.toast-close:hover { color: var(--text); }
.toast-close svg   { width: 12px; height: 12px; }

@media (max-width: 560px) {
    .toast-container {
        right: 16px;
        left: 16px;
        bottom: 20px;
    }
    .toast { min-width: 0; width: 100%; max-width: 100%; }
}


/* ============================================================
   Scroll Fade-up Animation
   ============================================================ */

.fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity   0.7s var(--ease),
        transform 0.7s var(--ease);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered cards — delay set via inline style in JS */


/* ============================================================
   Real Images — fill any positioned container
   ============================================================ */

/* Product card images */
.product-media > img,
.product-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.65s var(--ease);
}

.product:hover .product-media > img,
.product:hover .product-img {
    transform: scale(1.06);
}

/* Category images */
.cat-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
}

.cat:hover .cat-media > img {
    transform: scale(1.04);
}

/* Hero circles */
.circle > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* About / material / showroom images */
.about-media > img,
.material-media > img,
.showroom-media > img,
.pd-main-image > img,
.pd-thumb > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.showroom-card:hover .showroom-media > img,
.material-card:hover .material-media > img {
    transform: scale(1.03);
}

/* Images: always visible, hover zoom only */
img {
    transition: transform 0.65s var(--ease);
}


/* ============================================================
   Multilingual Typography
   ============================================================ */

/* Arabic */
[lang="ar"] body,
[lang="ar"] .btn,
[lang="ar"] .nav-links > a,
[lang="ar"] .nav-dropdown-trigger,
[lang="ar"] .product-info .name,
[lang="ar"] .product-info .sub,
[lang="ar"] .foot-brand-desc,
[lang="ar"] .foot-col > a,
[lang="ar"] p {
    font-family: 'Cairo', system-ui, sans-serif;
}

[lang="ar"] .display,
[lang="ar"] h1.display,
[lang="ar"] h2.display,
[lang="ar"] h3.display {
    font-family: 'Cairo', system-ui, sans-serif;
    font-style: normal;
    line-height: 1.15;
    letter-spacing: 0;
}

[lang="ar"] .display em {
    font-family: 'Cairo', system-ui, sans-serif;
    font-style: normal;
}

/* Hebrew */
[lang="he"] body,
[lang="he"] .btn,
[lang="he"] .nav-links > a,
[lang="he"] .nav-dropdown-trigger,
[lang="he"] .product-info .name,
[lang="he"] .product-info .sub,
[lang="he"] .foot-brand-desc,
[lang="he"] .foot-col > a,
[lang="he"] p {
    font-family: 'Heebo', system-ui, sans-serif;
}

[lang="he"] .display,
[lang="he"] h1.display,
[lang="he"] h2.display,
[lang="he"] h3.display {
    font-family: 'Heebo', system-ui, sans-serif;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
}

[lang="he"] .display em {
    font-family: 'Heebo', system-ui, sans-serif;
    font-style: normal;
}

/* RTL spacing tweaks */
[dir="rtl"] .eyebrow .dot {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .product-overlay svg,
[dir="rtl"] .btn svg,
[dir="rtl"] .view-all {
    transform: scaleX(-1);
}

[dir="rtl"] .btn:hover svg {
    transform: scaleX(-1) translateX(3px);
}

[dir="rtl"] .nav-links > a.active::after {
    left: 14px;
    right: 14px;
}


/* ============================================================
   Language Switcher
   ============================================================ */

.lang-switcher {
    display: flex;
    align-items: center;
    height: 32px;
    padding: 0 4px;
    border: 1px solid var(--line);
    border-radius: 2px;
    gap: 0;
    transition: border-color 0.3s var(--ease);
}

.lang-switcher:hover {
    border-color: var(--line-strong);
}

.lang-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 0 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.18em;
    color: var(--text-3);
    border-radius: 1px;
    transition:
        color      0.25s var(--ease),
        background 0.25s var(--ease);
}

.lang-btn:hover {
    color: var(--text-2);
}

.lang-btn.active {
    color: var(--gold);
    background: rgba(201, 162, 74, 0.10);
}

.lang-sep {
    width: 1px;
    height: 12px;
    background: var(--line-strong);
    flex-shrink: 0;
}

@media (max-width: 560px) {
    .lang-btn      { padding: 0 6px; font-size: 9px; }
    .lang-switcher { height: 28px; }
}


/* ============================================================
   RTL Layout — Arabic (AR) and Hebrew (HE)
   Applied when <html dir="rtl"> is set by the lang switcher.
   ============================================================ */

/* ── Full-page text direction ── */
[dir="rtl"] body {
    direction: rtl;
    text-align: right;
}


/* ── Navigation header ──────────────────────────────────────
   Root problem: body has direction:rtl which makes flex flow
   right→left by default.  Adding flex-direction:row-reverse
   on top of that double-reverses back to LTR — cancelling the
   effect.  Fix: isolate the nav with direction:ltr, then use
   explicit order values so flex always flows left→right and
   each slot lands where we intend.

   LTR default  →  order:1 Brand | order:2 Links | order:3 Actions
                    [Logo]        [Nav links]      [Lang + Cart]

   RTL override →  order:1 Actions | order:2 Links | order:3 Brand
                   [Lang + Cart]    [Nav links]     [Logo]
   ─────────────────────────────────────────────────────────── */

[dir="rtl"] .nav-inner {
    direction: ltr;   /* isolate nav from body direction:rtl */
}

[dir="rtl"] .brand       { order: 3; }                          /* Logo      → RIGHT   */
[dir="rtl"] .nav-links   { order: 2; flex-direction: row-reverse; } /* Links reversed, CENTER */
[dir="rtl"] .nav-actions { order: 1; }                          /* Lang+Cart → LEFT    */

/* Slider arrows — mirror icons so ← becomes → and vice-versa */
[dir="rtl"] .hero-arrow svg {
    transform: scaleX(-1);
}

/* Dropdown panel — keep centered under its trigger */
[dir="rtl"] .nav-dropdown {
    left: auto;
    right: 50%;
    transform: translateX(50%) translateY(-8px);
}

[dir="rtl"] .nav-dropdown-wrap:hover .nav-dropdown {
    transform: translateX(50%) translateY(0);
}

[dir="rtl"] .nav-dropdown::before {
    left: auto;
    right: 50%;
    transform: translateX(50%) rotate(45deg);
}

/* Dropdown items — dot and text slide from the right in RTL */
[dir="rtl"] .nav-dropdown a {
    flex-direction: row-reverse;
    padding-right: 20px;
    padding-left:  20px;
}

[dir="rtl"] .nav-dropdown a:hover {
    padding-right: 26px;
    padding-left:  20px;
}


/* ── Hero ───────────────────────────────────────────────────
   Mirror the scroll-cue from left to right.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .hero-meta {
    left: auto;
    right: 48px;
}


/* ── Section headings ───────────────────────────────────────
   section-head is a flex row; reverse it so text is on the right.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .section-head {
    flex-direction: row-reverse;
}


/* ── Product cards ──────────────────────────────────────────
   Reverse the name/price row so price is on the left in RTL.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .product-info-top {
    flex-direction: row-reverse;
}

[dir="rtl"] .product-info .sub {
    text-align: right;
}


/* ── Categories ─────────────────────────────────────────────
   Reverse cat-body so text is on the right, arrow on the left.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .cat-body {
    flex-direction: row-reverse;
}


/* ── About section ──────────────────────────────────────────
   Reverse the two-column layout: media left, copy right.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .about {
    direction: rtl;
}

[dir="rtl"] .about-stats {
    direction: rtl;
}


/* ── CTA row ────────────────────────────────────────────────
   Keep buttons grouped; direction handles text alignment.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .cta-row {
    flex-direction: row-reverse;
}


/* ── Footer ─────────────────────────────────────────────────
   Contact items read right-to-left.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .foot-contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .foot-socials {
    flex-direction: row-reverse;
}

[dir="rtl"] .foot-bottom {
    direction: rtl;
}


/* ── Form inputs ────────────────────────────────────────────
   Text entry should start from the right in RTL.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .form-input,
[dir="rtl"] .form-label {
    text-align: right;
}

[dir="rtl"] .form-row {
    direction: rtl;
}

[dir="rtl"] .form-select {
    background-position: left 14px center;
    padding-right: 18px;
    padding-left: 44px;
}


/* ── Breadcrumb ─────────────────────────────────────────────
   Separator dots and links read right-to-left.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .breadcrumb-nav {
    flex-direction: row-reverse;
}


/* ── PD specs table ─────────────────────────────────────────
   Value on the left, label on the right in RTL.
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .pd-spec {
    flex-direction: row-reverse;
}

[dir="rtl"] .spec-value {
    text-align: left;
}


/* ── Responsive ─────────────────────────────────────────────
   Undo hero-meta flip on mobile (it's hidden anyway).
   ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {
    [dir="rtl"] .hero-meta { right: 24px; }
}


/* ============================================================
   Nav Search
   ============================================================ */

.nav-search-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    color: var(--text-3);
    border-radius: 2px;
    transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav-search-btn svg { width: 18px; height: 18px; }

.nav-search-btn:hover,
.nav-search-btn[aria-expanded="true"] {
    color: var(--gold);
    transform: scale(1.1);
}

/* Overlay slides from under the nav */
.nav-search-overlay {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 48;
    background: rgba(7, 12, 22, 0.98);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 40px -16px rgba(0, 0, 0, 0.65);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.3s var(--ease),
        opacity   0.3s var(--ease);
}

.nav-search-overlay.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.nav-search-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 52px;
    height: 66px;
}

.nav-search-icon {
    width: 18px;
    height: 18px;
    color: var(--text-3);
    flex-shrink: 0;
}

.nav-search-field {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--line-strong);
    color: var(--text);
    font-family: var(--sans);
    font-size: 17px;
    font-weight: 300;
    letter-spacing: -0.005em;
    padding: 8px 0;
    outline: none;
    transition: border-color 0.25s var(--ease);
}

.nav-search-field::placeholder { color: var(--text-3); }
.nav-search-field:focus         { border-bottom-color: var(--gold); }

.nav-search-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--text-3);
    border-radius: 50%;
    flex-shrink: 0;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav-search-close svg   { width: 14px; height: 14px; }
.nav-search-close:hover { color: var(--text); background: rgba(255,255,255,0.06); }

[dir="rtl"] .nav-search-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav-search-field { text-align: right; }

@media (max-width: 960px) {
    .nav-search-inner { padding: 0 24px; }
}


/* ============================================================
   Store Search
   ============================================================ */

.store-search-wrap {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    min-width: 200px;
    max-width: 260px;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.store-search-wrap:focus-within {
    border-color: rgba(201, 162, 74, 0.5);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.store-search-icon-wrap {
    display: grid;
    place-items: center;
    width: 34px;
    color: var(--text-3);
    flex-shrink: 0;
    pointer-events: none;
}

.store-search-icon-wrap svg { width: 13px; height: 13px; }

.store-search-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--sans);
    font-size: 12.5px;
    font-weight: 300;
    padding: 8px 0;
    outline: none;
}

.store-search-input::placeholder { color: var(--text-3); }

.store-search-clear {
    display: grid;
    place-items: center;
    width: 30px;
    color: var(--text-3);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
    flex-shrink: 0;
}

.store-search-clear svg         { width: 12px; height: 12px; }
.store-search-clear.visible     { opacity: 1; pointer-events: auto; }
.store-search-clear:hover       { color: var(--text); }

/* No results */
.store-no-results {
    display: none;
    flex-direction: column;
    align-items: center;
    padding: 80px 24px;
    text-align: center;
}

.store-no-results-icon {
    width: 52px;
    height: 52px;
    color: var(--text-3);
    margin-bottom: 20px;
}

.store-no-results p {
    font-size: 17px;
    color: var(--text-2);
    margin: 0 0 20px;
}

.store-no-results-clear {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    border-bottom: 1px solid rgba(201, 162, 74, 0.3);
    padding-bottom: 4px;
    transition: border-color 0.2s var(--ease);
}

.store-no-results-clear:hover { border-color: var(--gold); }

[dir="rtl"] .store-search-wrap  { flex-direction: row-reverse; }
[dir="rtl"] .store-search-input { text-align: right; }

@media (max-width: 960px) {
    .store-search-wrap { max-width: 100%; min-width: 0; flex: 1; }
}


/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-divider {
        height: 1px;
        background: var(--line);
        margin: 0 48px;
    }

    /* Values */
    .values-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2px;
        border: 1px solid var(--line);
    }

    .value-card {
        padding: 48px 40px;
        border-right: 1px solid var(--line);
        transition: background 0.3s var(--ease);
    }

    .value-card:last-child {
        border-right: 0;
    }

    .value-card:hover {
        background: var(--bg-elev);
    }

    .value-num {
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 0.2em;
        color: var(--gold);
        margin-bottom: 24px;
    }

    .value-card h3 {
        font-size: 32px;
        margin: 0 0 18px;
    }

    .value-card p {
        color: var(--text-2);
        font-size: 15px;
        line-height: 1.75;
        margin: 0;
    }

    @media (max-width: 960px) {
        .values-grid   { grid-template-columns: 1fr; }
        .value-card    { border-right: 0; border-bottom: 1px solid var(--line); }
        .value-card:last-child { border-bottom: 0; }
        .about-divider { margin: 0 24px; }
    }

/* ============================================================
   CART PAGE
   ============================================================ */
/* ── Cart page layout ───────────────────────────────── */
.cart-page {
    padding: 160px 0 120px;
    min-height: 80vh;
}

.cart-heading {
    margin-bottom: 48px;
}

.cart-title {
    font-size: clamp(36px, 4.5vw, 60px);
    margin: 16px 0 0;
}

.cart-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: flex-start;
}

/* ── Table ──────────────────────────────────────────── */
.cart-table-wrap {
    overflow-x: auto;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table thead th {
    padding: 0 16px 16px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.cart-table thead .th-qty   { text-align: center; }
.cart-table thead .th-total { text-align: right; }
.cart-table thead .th-remove{ width: 48px; }

/* Rows */
.cart-row {
    border-bottom: 1px solid var(--line);
    transition: background 0.2s var(--ease);
}

.cart-row:hover { background: rgba(255, 255, 255, 0.02); }

.cart-row td { padding: 20px 16px; vertical-align: middle; }

/* Product cell */
.cart-product {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 200px;
}

.cart-product-img-wrap {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--bg-elev);
    display: block;
    position: relative;
    transition: border-color 0.25s var(--ease);
}

.cart-product-img-wrap:hover { border-color: rgba(201, 162, 74, 0.4); }

.cart-product-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.cart-product-name {
    display: block;
    font-family: var(--display);
    font-size: 18px;
    line-height: 1.2;
    color: var(--text);
    transition: color 0.25s var(--ease);
    margin-bottom: 4px;
}

.cart-product-name:hover { color: var(--gold); }

.cart-product-sub {
    font-size: 11.5px;
    color: var(--text-3);
    margin: 0;
    letter-spacing: 0.04em;
}

/* Price / total cells */
.cart-price-cell {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-2);
    white-space: nowrap;
}

.cart-total-cell {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    text-align: right;
    white-space: nowrap;
}

/* Quantity */
.cart-qty-cell { text-align: center; }

.cart-qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
}

.cart-qty-btn {
    width: 32px;
    height: 36px;
    display: grid;
    place-items: center;
    font-size: 17px;
    color: var(--text-2);
    flex-shrink: 0;
    transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.cart-qty-btn:hover {
    color: var(--gold);
    background: rgba(201, 162, 74, 0.08);
}

.cart-qty-input {
    width: 42px;
    height: 36px;
    text-align: center;
    background: transparent;
    border: none;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
    color: var(--text);
    font-family: var(--mono);
    font-size: 13px;
    -moz-appearance: textfield;
    appearance: textfield;
}

.cart-qty-input::-webkit-outer-spin-button,
.cart-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.cart-qty-input:focus { outline: none; }

/* Remove */
.cart-remove-cell { text-align: center; }

.cart-remove-btn {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid var(--line);
    color: var(--text-3);
    font-size: 16px;
    line-height: 1;
    transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease);
}

.cart-remove-btn:hover {
    color: #ff6b6b;
    border-color: rgba(255, 107, 107, 0.45);
    background: rgba(255, 107, 107, 0.07);
}

/* Table footer: continue shopping */
.cart-table-footer {
    padding: 24px 16px 0;
}

.cart-continue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-3);
    transition: color 0.25s var(--ease);
}

.cart-continue svg { width: 14px; height: 14px; }
.cart-continue:hover { color: var(--gold); }

/* Empty state */
.cart-empty {
    text-align: center;
    padding: 80px 24px;
}

.cart-empty-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 24px;
    color: var(--text-3);
}

.cart-empty p {
    font-size: 17px;
    color: var(--text-2);
    margin: 0 0 28px;
}

/* ── Summary card ───────────────────────────────────── */
.cart-summary-card {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 32px;
    position: sticky;
    top: 100px;
}

.cart-summary-title {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 400;
    margin: 0 0 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 13.5px;
    color: var(--text-2);
}

.summary-val {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
}

.summary-total-row {
    border-top: 1px solid var(--line);
    margin-top: 8px;
    padding-top: 20px;
    font-size: 15px;
    font-weight: 500;
}

.summary-total-val {
    font-size: 22px;
    color: var(--gold);
}

/* Shipping */
.cart-shipping {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 4px;
    margin-bottom: 8px;
}

.cart-shipping-title {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 14px;
    font-weight: 500;
}

.shipping-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
}

.shipping-opt:hover { color: var(--text); }

.shipping-opt input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s var(--ease);
}

.shipping-opt input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.shipping-opt input[type="radio"]:checked             { border-color: var(--gold); }
.shipping-opt input[type="radio"]:checked::after      { opacity: 1; }

.shipping-price {
    margin-left: auto;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text-3);
}

/* Coupon */
.coupon-wrap {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    margin-top: 4px;
}

.coupon-row {
    display: flex;
    gap: 10px;
}

.coupon-input {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--sans);
    font-size: 13px;
    font-weight: 300;
    padding: 10px 14px;
    border-radius: 2px;
    outline: none;
    transition: border-color 0.25s var(--ease);
}

.coupon-input::placeholder { color: var(--text-3); }
.coupon-input:focus         { border-color: var(--gold); }

.coupon-btn {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.coupon-msg {
    min-height: 18px;
    font-size: 12px;
    margin: 8px 0 0;
    font-family: var(--mono);
    letter-spacing: 0.08em;
}

.coupon-msg.success { color: var(--gold); }
.coupon-msg.error   { color: #ff6b6b; }

/* Checkout button */
.checkout-btn {
    width: 100%;
    justify-content: center;
    margin-top: 20px;
    padding: 15px 24px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

/* ── RTL overrides ──────────────────────────────────── */
[dir="rtl"] .cart-table thead th           { text-align: right; }
[dir="rtl"] .cart-table thead .th-qty      { text-align: center; }
[dir="rtl"] .cart-table thead .th-total    { text-align: left; }
[dir="rtl"] .cart-product                  { flex-direction: row-reverse; }
[dir="rtl"] .cart-total-cell               { text-align: left; }
[dir="rtl"] .cart-table-footer            { text-align: right; }
[dir="rtl"] .cart-summary-card            { direction: rtl; }
[dir="rtl"] .summary-row                  { flex-direction: row-reverse; }
[dir="rtl"] .cart-shipping-title          { text-align: right; }
[dir="rtl"] .shipping-opt                  { flex-direction: row-reverse; }
[dir="rtl"] .shipping-price               { margin-left: 0; margin-right: auto; }
[dir="rtl"] .coupon-row                   { flex-direction: row-reverse; }
[dir="rtl"] .cart-empty                   { direction: rtl; }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 960px) {
    .cart-layout         { grid-template-columns: 1fr; }
    .cart-summary-card   { position: static; }
}

@media (max-width: 640px) {
    .cart-table thead .th-price,
    .cart-row .cart-price-cell { display: none; }
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
/* ── Page shell ────────────────────────────────────── */
.co-page {
    padding: 160px 0 120px;
    min-height: 80vh;
}

.co-heading { margin-bottom: 48px; }

.co-title {
    font-size: clamp(36px, 4.5vw, 60px);
    margin: 14px 0 0;
}

/* ── Coupon banner ─────────────────────────────────── */
.co-coupon-banner {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 16px 22px;
    margin-bottom: 44px;
    font-size: 13.5px;
    color: var(--text-2);
}

.co-coupon-top {
    display: flex;
    align-items: center;
    gap: 10px;
}

.co-coupon-link {
    color: var(--gold);
    font-size: 13.5px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.co-coupon-link:hover { opacity: 0.8; }

.co-coupon-body {
    display: none;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.co-coupon-body.open { display: block; }

.co-coupon-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-start;
}

.co-coupon-apply-btn {
    flex-shrink: 0;
    padding: 12px 20px;
    font-size: 11.5px;
    letter-spacing: 0.1em;
}

.co-coupon-msg {
    min-height: 18px;
    font-size: 12px;
    font-family: var(--mono);
    letter-spacing: 0.08em;
    margin: 8px 0 0;
}

.co-coupon-msg.success { color: var(--gold); }
.co-coupon-msg.error   { color: #ff6b6b; }

/* ── Two-column grid ───────────────────────────────── */
.co-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 56px;
    align-items: flex-start;
}

/* ── Section titles ────────────────────────────────── */
.co-box-title {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 400;
    margin: 0 0 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
}

/* ── Form ──────────────────────────────────────────── */
.co-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.co-field { margin-bottom: 20px; }

.co-label {
    display: block;
    font-family: var(--mono);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 8px;
}

.co-req { color: var(--gold); margin-left: 2px; }

.co-input {
    display: block;
    width: 100%;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    color: var(--text);
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 300;
    padding: 12px 16px;
    border-radius: 2px;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.co-input::placeholder { color: var(--text-3); }

.co-input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.co-input-mt  { margin-top: 8px; }

.co-textarea  { resize: vertical; min-height: 110px; line-height: 1.7; }

/* Checkbox row */
.co-checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-bottom: 0;
    user-select: none;
}

.co-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.co-checkbox:checked {
    background: var(--gold);
    border-color: var(--gold);
}

.co-checkbox:checked::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #0B1220;
    line-height: 1;
}

.co-ship-diff-body {
    display: none;
    background: var(--bg-deep);
    border: 1px solid var(--line);
    border-top: 0;
    padding: 24px;
    margin-bottom: 20px;
}

.co-ship-diff-body.open { display: block; }

/* ── Order summary ─────────────────────────────────── */
.co-summary-col {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 32px;
    position: sticky;
    top: 96px;
}

.co-products-hd {
    display: flex;
    justify-content: space-between;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--line-strong);
    margin-bottom: 2px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
}

.co-items-list { margin-bottom: 4px; }

.co-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    gap: 12px;
}

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

.co-item-name {
    display: block;
    font-size: 13.5px;
    color: var(--text-2);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.co-item-sub {
    display: block;
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
    letter-spacing: 0.04em;
}

.co-item-badge {
    font-family: var(--mono);
    font-size: 10.5px;
    color: var(--gold);
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid rgba(201, 162, 74, 0.25);
    border-radius: 999px;
    padding: 2px 9px;
    flex-shrink: 0;
    white-space: nowrap;
}

.co-item-price {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Summary rows */
.co-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-2);
    gap: 16px;
}

.co-sum-val {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Shipping options */
.co-sum-ship { align-items: flex-start; }

.co-sum-ship > span { padding-top: 4px; white-space: nowrap; }

.co-radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    align-items: flex-end;
}

.co-radio-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: var(--text-2);
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}

.co-radio-opt:hover { color: var(--text); }

.co-radio-opt input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s var(--ease);
}

.co-radio-opt input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.co-radio-opt input[type="radio"]:checked              { border-color: var(--gold); }
.co-radio-opt input[type="radio"]:checked::after       { opacity: 1; }

/* Total row */
.co-sum-total-row {
    border-bottom: none;
    padding-top: 18px;
    font-size: 16px;
    font-weight: 500;
}

.co-sum-total-val {
    font-size: 22px;
    color: var(--gold);
}

/* Payment block */
.co-payment-block {
    border: 1px solid var(--line);
    padding: 20px;
    margin: 16px 0;
    background: rgba(255, 255, 255, 0.02);
}

.co-payment-heading {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    margin: 0 0 14px;
}

.co-payment-opt {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
}

.co-payment-opt input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    margin-top: 2px;
    transition: border-color 0.2s var(--ease);
}

.co-payment-opt input[type="radio"]::after {
    content: "";
    position: absolute;
    inset: 3px;
    border-radius: 50%;
    background: var(--gold);
    opacity: 0;
    transition: opacity 0.2s var(--ease);
}

.co-payment-opt input[type="radio"]:checked              { border-color: var(--gold); }
.co-payment-opt input[type="radio"]:checked::after       { opacity: 1; }

.co-payment-name {
    display: block;
    font-size: 14px;
    color: var(--text);
    margin-bottom: 5px;
}

.co-payment-desc {
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.6;
    margin: 0;
}

/* Privacy note */
.co-privacy-note {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.7;
    margin: 0 0 20px;
}

/* Place Order */
.co-place-btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 13px;
    letter-spacing: 0.08em;
}

/* ── RTL ───────────────────────────────────────────── */
[dir="rtl"] .co-coupon-top        { flex-direction: row-reverse; }
[dir="rtl"] .co-coupon-row        { flex-direction: row-reverse; }
[dir="rtl"] .co-form-row          { direction: rtl; }
[dir="rtl"] .co-label             { text-align: right; direction: rtl; }
[dir="rtl"] .co-input             { text-align: right; }
[dir="rtl"] .co-checkbox-row      { flex-direction: row-reverse; }
[dir="rtl"] .co-req               { margin-left: 0; margin-right: 2px; }
[dir="rtl"] .co-products-hd       { flex-direction: row-reverse; }
[dir="rtl"] .co-item-row          { flex-direction: row-reverse; }
[dir="rtl"] .co-sum-row           { flex-direction: row-reverse; }
[dir="rtl"] .co-sum-ship          { flex-direction: row-reverse; }
[dir="rtl"] .co-radio-group       { align-items: flex-start; }
[dir="rtl"] .co-radio-opt         { flex-direction: row-reverse; }
[dir="rtl"] .co-payment-opt       { flex-direction: row-reverse; }
[dir="rtl"] .co-payment-name,
[dir="rtl"] .co-payment-desc,
[dir="rtl"] .co-privacy-note      { text-align: right; }
[dir="rtl"] .co-payment-heading   { text-align: right; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 960px) {
    .co-layout             { grid-template-columns: 1fr; }
    .co-summary-col        { position: static; order: -1; }
}

@media (max-width: 560px) {
    .co-form-row           { grid-template-columns: 1fr; }
    .co-coupon-row         { flex-direction: column; }
    .co-coupon-apply-btn   { width: 100%; justify-content: center; }
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
/* Contact layout */
    .contact-layout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 80px;
        align-items: flex-start;
    }

    /* Form */
    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

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

    .form-group {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .form-label {
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .form-input {
        background: var(--bg-elev);
        border: 1px solid var(--line);
        color: var(--text);
        font-family: var(--sans);
        font-size: 14px;
        font-weight: 300;
        padding: 14px 18px;
        border-radius: 2px;
        outline: none;
        transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
        width: 100%;
        appearance: none;
        -webkit-appearance: none;
    }

    .form-input::placeholder {
        color: var(--text-3);
    }

    .form-input:focus {
        border-color: var(--gold);
        box-shadow: 0 0 0 3px var(--gold-soft);
    }

    .form-select {
        cursor: pointer;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.45)' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 14px center;
        background-size: 16px;
        padding-right: 44px;
    }

    .form-select option {
        background: var(--bg-deep);
        color: var(--text);
    }

    .form-textarea {
        resize: vertical;
        min-height: 140px;
        line-height: 1.7;
    }

    .form-submit {
        align-self: flex-start;
        margin-top: 4px;
    }

    /* Contact info */
    .contact-info {
        display: flex;
        flex-direction: column;
        gap: 48px;
        padding-top: 6px;
    }

    .contact-info-block {
        padding-bottom: 48px;
        border-bottom: 1px solid var(--line);
    }

    .contact-info-block:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .contact-locations {
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .contact-location {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .location-city {
        font-size: 22px;
        color: var(--text);
    }

    .location-address {
        font-size: 13px;
        color: var(--text-2);
    }

    .location-hours {
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.12em;
        color: var(--text-3);
        text-transform: uppercase;
        margin-top: 2px;
    }

    .contact-direct {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .direct-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
    }

    .direct-item:first-child {
        border-top: 1px solid var(--line);
    }

    .direct-label {
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.15em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .direct-value {
        font-size: 13px;
        color: var(--text-2);
        transition: color 0.25s var(--ease);
    }

    .direct-value:hover {
        color: var(--gold);
    }

    .contact-note {
        color: var(--text-2);
        font-size: 14px;
        line-height: 1.8;
        margin: 0;
    }

    /* Map strip */
    .map-strip {
        height: 320px;
        position: relative;
        margin-top: 100px;
        border-top: 1px solid var(--line);
    }

    @media (max-width: 960px) {
        .contact-layout { grid-template-columns: 1fr; gap: 60px; }
        .form-row       { grid-template-columns: 1fr; }
    }

/* ============================================================
   ORDER-CONFIRMATION PAGE
   ============================================================ */
/* ── Page ──────────────────────────────────────────── */
.oc-page {
    padding: 140px 0 120px;
    min-height: 80vh;
}

/* ── Success header ────────────────────────────────── */
.oc-header {
    text-align: center;
    margin-bottom: 52px;
}

.oc-check-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
}

.oc-check-svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 16px rgba(201, 162, 74, 0.35));
    animation: oc-pop 0.5s var(--ease) both;
}

@keyframes oc-pop {
    0%   { transform: scale(0.7); opacity: 0; }
    60%  { transform: scale(1.08); }
    100% { transform: scale(1);   opacity: 1; }
}

.oc-title {
    font-size: clamp(36px, 4.5vw, 60px);
    margin: 0 0 14px;
}

.oc-thanks {
    font-size: 16px;
    color: var(--text-2);
    margin: 0;
}

/* ── Pills ─────────────────────────────────────────── */
.oc-pills {
    display: flex;
    align-items: stretch;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.oc-pill {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 24px 20px;
    text-align: center;
}

.oc-pill-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
}

.oc-pill-value {
    font-family: var(--sans);
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.oc-pill-gold { color: var(--gold); font-family: var(--mono); font-size: 16px; }

.oc-pill-div {
    width: 1px;
    background: var(--line);
    align-self: stretch;
    flex-shrink: 0;
}

/* ── Details section ───────────────────────────────── */
.oc-details {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    margin-bottom: 36px;
}

.oc-section-title {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 400;
    margin: 0;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
}

.oc-table-wrap { overflow-x: auto; }

.oc-table {
    width: 100%;
    border-collapse: collapse;
}

.oc-table thead th {
    padding: 14px 28px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-3);
    text-align: left;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}

.oc-th-qty   { text-align: center; }
.oc-th-price { text-align: right; }

.oc-table tbody tr {
    border-bottom: 1px solid var(--line);
    transition: background 0.2s var(--ease);
}

.oc-table tbody tr:last-child { border-bottom: none; }
.oc-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

.oc-table tbody td {
    padding: 16px 28px;
    vertical-align: middle;
}

.oc-td-product { min-width: 220px; }

.oc-prod-name {
    display: block;
    font-family: var(--display);
    font-size: 17px;
    color: var(--text);
    margin-bottom: 3px;
}

.oc-prod-sub {
    font-size: 11.5px;
    color: var(--text-3);
    letter-spacing: 0.04em;
}

.oc-td-qty {
    text-align: center;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text-2);
}

.oc-qty-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(201, 162, 74, 0.12);
    border: 1px solid rgba(201, 162, 74, 0.25);
    font-family: var(--mono);
    font-size: 12px;
    color: var(--gold);
}

.oc-td-price {
    text-align: right;
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
}

/* Summary rows inside details box */
.oc-summary-rows {
    border-top: 2px solid var(--line);
}

.oc-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    color: var(--text-2);
    gap: 20px;
}

.oc-sum-row:last-child { border-bottom: none; }

.oc-sum-val {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
}

.oc-sum-row-total {
    font-size: 16px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.02);
}

.oc-sum-gold {
    font-size: 20px;
    color: var(--gold);
}

.oc-sum-row-payment { color: var(--text-3); font-size: 13px; }

/* ── Action buttons ────────────────────────────────── */
.oc-actions {
    display: flex;
    gap: 14px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.oc-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 24px;
    font-size: 13px;
    letter-spacing: 0.07em;
    cursor: default;       /* UI only — no real action */
}

.oc-action-btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

/* ── Address boxes ─────────────────────────────────── */
.oc-addresses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.oc-address-box {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    padding: 28px;
    transition: border-color 0.3s var(--ease);
}

.oc-address-box:hover { border-color: rgba(201, 162, 74, 0.3); }

.oc-address-title {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.oc-address-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-style: normal;
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.7;
}

.oc-addr-name {
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    margin-bottom: 2px;
}

/* ── RTL ───────────────────────────────────────────── */
[dir="rtl"] .oc-header         { direction: rtl; }
[dir="rtl"] .oc-pills          { flex-direction: row-reverse; }
[dir="rtl"] .oc-section-title  { text-align: right; }
[dir="rtl"] .oc-table thead th { text-align: right; }
[dir="rtl"] .oc-th-qty         { text-align: center; }
[dir="rtl"] .oc-th-price       { text-align: left; }
[dir="rtl"] .oc-table tbody td { text-align: right; }
[dir="rtl"] .oc-td-qty         { text-align: center; }
[dir="rtl"] .oc-td-price       { text-align: left; }
[dir="rtl"] .oc-sum-row        { flex-direction: row-reverse; }
[dir="rtl"] .oc-actions        { flex-direction: row-reverse; }
[dir="rtl"] .oc-address-title  { text-align: right; }
[dir="rtl"] .oc-address-body   { text-align: right; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 768px) {
    .oc-pills        { flex-direction: column; }
    .oc-pill-div     { width: 100%; height: 1px; align-self: auto; }
    .oc-pill         { padding: 16px 20px; }
    .oc-addresses    { grid-template-columns: 1fr; }
    .oc-actions      { flex-direction: column; }
    .oc-action-btn   { width: 100%; justify-content: center; }
}

/* ============================================================
   PRODUCT-DETAILS PAGE
   ============================================================ */
/* ── Breadcrumb ─────────────────────────────────── */
    .pd-breadcrumb {
        padding: 110px 0 0;
    }

    .breadcrumb-nav {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .breadcrumb-nav a {
        color: var(--text-3);
        transition: color 0.25s var(--ease);
    }

    .breadcrumb-nav a:hover { color: var(--gold); }

    .breadcrumb-nav span:last-child { color: var(--text-2); }

    .bc-sep { color: var(--line-strong); }

    /* ── Product layout ─────────────────────────────── */
    .pd-section {
        padding: 48px 0 120px;
    }

    .pd-layout {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        gap: 80px;
        align-items: flex-start;
    }

    /* ── Gallery ────────────────────────────────────── */
    .pd-gallery {
        position: sticky;
        top: 100px;
    }

    .pd-main-image {
        position: relative;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        border: 1px solid var(--line);
        background: var(--bg-elev);
        transition: border-color 0.3s var(--ease);
    }

    .pd-main-image:hover {
        border-color: rgba(201, 162, 74, 0.3);
    }

    .pd-thumbnails {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        margin-top: 12px;
    }

    .pd-thumb {
        position: relative;
        aspect-ratio: 1 / 1;
        overflow: hidden;
        border: 1px solid var(--line);
        background: var(--bg-elev);
        transition: border-color 0.25s var(--ease);
        cursor: pointer;
        padding: 0;
    }

    .pd-thumb:hover,
    .pd-thumb.active {
        border-color: var(--gold);
    }

    .pd-thumb.active::after {
        content: "";
        position: absolute;
        inset: 0;
        border: 2px solid var(--gold);
    }

    .pd-thumb .ph {
        font-size: 8px;
    }

    /* ── Info panel ─────────────────────────────────── */
    .pd-info {
        padding-top: 8px;
    }

    .pd-info > .eyebrow {
        margin-bottom: 20px;
    }

    .pd-title {
        font-size: clamp(44px, 5vw, 72px);
        margin: 0 0 10px;
    }

    .pd-sub {
        font-family: var(--mono);
        font-size: 11.5px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-3);
        margin: 0 0 28px;
    }

    .pd-price-row {
        display: flex;
        align-items: baseline;
        gap: 16px;
        margin-bottom: 4px;
    }

    .pd-price {
        font-family: var(--display);
        font-size: 42px;
        color: var(--gold);
        line-height: 1;
    }

    .pd-vat {
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-3);
    }

    .pd-divider {
        height: 1px;
        background: var(--line);
        margin: 28px 0;
    }

    .pd-description {
        color: var(--text-2);
        font-size: 15px;
        line-height: 1.85;
        margin: 0 0 14px;
    }

    /* Specs */
    .pd-specs {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .pd-spec {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid var(--line);
        gap: 20px;
    }

    .pd-spec:first-child {
        border-top: 1px solid var(--line);
    }

    .spec-label {
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.16em;
        text-transform: uppercase;
        color: var(--text-3);
        flex-shrink: 0;
    }

    .spec-value {
        font-size: 13.5px;
        color: var(--text-2);
        text-align: right;
    }

    /* Quantity + Add */
    .pd-actions {
        display: flex;
        gap: 16px;
        align-items: stretch;
    }

    .qty-selector {
        display: flex;
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 2px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .qty-btn {
        width: 44px;
        height: 100%;
        display: grid;
        place-items: center;
        color: var(--text-2);
        transition: all 0.25s var(--ease);
    }

    .qty-btn svg { width: 14px; height: 14px; }

    .qty-btn:hover {
        background: var(--bg-elev);
        color: var(--gold);
    }

    .qty-value {
        min-width: 44px;
        text-align: center;
        font-family: var(--mono);
        font-size: 14px;
        color: var(--text);
        border-left: 1px solid var(--line);
        border-right: 1px solid var(--line);
        padding: 12px 0;
        user-select: none;
    }

    .pd-add-btn {
        flex: 1;
        justify-content: center;
        font-size: 13px;
        letter-spacing: 0.08em;
        padding: 14px 28px;
    }

    .pd-add-btn.added {
        background: rgba(201, 162, 74, 0.15);
        color: var(--gold);
        border: 1px solid rgba(201, 162, 74, 0.4);
    }

    /* Delivery note */
    .pd-delivery-note {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        margin-top: 18px;
        font-family: var(--mono);
        font-size: 10.5px;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--text-3);
        line-height: 1.7;
    }

    .pd-delivery-note svg { flex-shrink: 0; margin-top: 1px; }

    /* Accordions */
    .pd-accordions {
        display: flex;
        flex-direction: column;
    }

    .pd-accordion {
        border-bottom: 1px solid var(--line);
    }

    .pd-accordion:first-child {
        border-top: 1px solid var(--line);
    }

    .pd-accordion-trigger {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 0;
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 0.18em;
        text-transform: uppercase;
        color: var(--text-2);
        cursor: pointer;
        list-style: none;
        transition: color 0.25s var(--ease);
    }

    .pd-accordion-trigger::-webkit-details-marker { display: none; }
    .pd-accordion-trigger::marker { display: none; }

    .pd-accordion-trigger:hover { color: var(--gold); }

    .acc-icon {
        width: 16px;
        height: 16px;
        transition: transform 0.3s var(--ease);
        flex-shrink: 0;
    }

    details[open] .acc-icon { transform: rotate(180deg); }

    .pd-accordion-body {
        padding-bottom: 20px;
    }

    .pd-accordion-body p {
        margin: 0;
        color: var(--text-2);
        font-size: 14px;
        line-height: 1.8;
    }

    /* Related */
    .pd-related {
        border-top: 1px solid var(--line);
    }

    @media (max-width: 960px) {
        .pd-layout    { grid-template-columns: 1fr; gap: 48px; }
        .pd-gallery   { position: static; }
        .pd-title     { font-size: 48px; }
        .pd-actions   { flex-direction: column; }
        .qty-selector { align-self: flex-start; }
        .pd-add-btn   { width: 100%; justify-content: center; }
    }

/* ============================================================
   STORE PAGE
   ============================================================ */
.store-filters {
        position: sticky;
        top: 72px;
        z-index: 40;
        background: rgba(11, 18, 32, 0.85);
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        border-bottom: 1px solid var(--line);
    }

    .filter-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        padding: 18px 0;
    }

    .filter-tabs {
        display: flex;
        gap: 4px;
    }

    .filter-tab {
        padding: 8px 18px;
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: var(--text-3);
        border: 1px solid transparent;
        border-radius: 2px;
        transition: all 0.25s var(--ease);
    }

    .filter-tab:hover {
        color: var(--text-2);
        border-color: var(--line);
    }

    .filter-tab.active {
        color: var(--gold);
        border-color: rgba(201, 162, 74, 0.35);
    }

    .filter-sort {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .sort-select {
        background: transparent;
        border: 1px solid var(--line);
        color: var(--text-2);
        font-family: var(--mono);
        font-size: 11px;
        letter-spacing: 0.12em;
        padding: 7px 12px;
        border-radius: 2px;
        cursor: pointer;
        outline: none;
        transition: border-color 0.25s var(--ease);
    }

    .sort-select:hover,
    .sort-select:focus {
        border-color: var(--gold);
    }

    .sort-select option {
        background: var(--bg-deep);
        color: var(--text);
    }

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

    @media (max-width: 960px) {
        .filter-tabs { flex-wrap: wrap; }
        .store-grid  { grid-template-columns: repeat(2, 1fr); }
    }

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

/* ============================================================
   RESPONSIVE — Hamburger button (desktop: hidden)
   ============================================================ */

.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 5px;
    border-radius: 2px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background 0.2s var(--ease);
}

.nav-hamburger span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-2);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), background 0.2s var(--ease);
}

.nav-hamburger:hover span { background: var(--gold); }

/* Animate to X when nav is open */
.nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }


/* ============================================================
   RESPONSIVE — 960px (Tablet & below: hide nav links, show hamburger)
   ============================================================ */

@media (max-width: 960px) {

    html { overflow-x: hidden; }

    /* Show hamburger, hide desktop links */
    .nav-hamburger { display: flex; }

    /* Mobile nav drawer */
    .nav.nav-open .nav-links {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(7, 12, 22, 0.98);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-bottom: 1px solid var(--line);
        padding: 8px 0 16px;
        gap: 0;
        z-index: 49;
        animation: slideDown 0.25s var(--ease);
    }

    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-8px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav.nav-open .nav-links > a {
        display: block;
        padding: 13px 24px;
        font-size: 13.5px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        white-space: normal;
        width: 100%;
    }

    .nav.nav-open .nav-links > a.active::after { display: none; }

    .nav.nav-open .nav-dropdown-wrap { width: 100%; }
    .nav.nav-open .nav-dropdown-trigger {
        width: 100%;
        padding: 13px 24px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        font-size: 13.5px;
    }
    .nav.nav-open .nav-dropdown {
        position: static;
        left: auto; right: auto;
        transform: none !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        padding: 4px 0;
    }
    .nav.nav-open .nav-dropdown::before { display: none; }
    .nav.nav-open .nav-dropdown a { padding-left: 36px; }

    /* RTL mobile menu */
    [dir="rtl"] .nav.nav-open .nav-links > a,
    [dir="rtl"] .nav.nav-open .nav-dropdown-trigger { text-align: right; }
    [dir="rtl"] .nav.nav-open .nav-dropdown a { padding-left: 20px; padding-right: 36px; }
}


/* ============================================================
   RESPONSIVE — 768px (Mobile: major layout shifts)
   ============================================================ */

@media (max-width: 768px) {

    /* ── Container ── */
    .container { padding: 0 20px; }

    /* ── Nav ── */
    .nav-inner { padding: 16px 20px; gap: 10px; }
    .nav-actions { gap: 8px; }
    .lang-switcher { height: 28px; }
    .lang-btn { padding: 0 6px; font-size: 9px; }

    /* ── Typography ── */
    h1.display  { font-size: clamp(28px, 7vw, 44px) !important; }
    h2.display  { font-size: clamp(24px, 6vw, 38px) !important; }
    h3.display  { font-size: clamp(20px, 5vw, 30px) !important; }
    .pd-title   { font-size: clamp(28px, 7vw, 44px) !important; }
    .oc-title   { font-size: clamp(26px, 6vw, 40px) !important; }
    .cart-title { font-size: clamp(26px, 6vw, 36px) !important; }
    .co-title   { font-size: clamp(26px, 6vw, 36px) !important; }

    /* ── Hero ── */
    .hero-slide { padding: 110px 0 90px; }
    .hero-copy h1 { font-size: clamp(28px, 7vw, 44px); margin-bottom: 16px; }
    .hero-copy p  { font-size: 15px; margin-bottom: 24px; }
    .hero-cta     { flex-direction: column; gap: 10px; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-controls { bottom: 28px; gap: 14px; }
    .hero-meta { left: 20px; }
    .circles { max-width: 320px; }

    /* ── Page hero ── */
    .page-hero { padding: 120px 0 52px; }
    .page-hero h1 { font-size: clamp(28px, 7vw, 44px) !important; }
    .page-hero-desc { font-size: 15px; }

    /* ── Sections ── */
    .section { padding: 60px 0; }
    .section-head { gap: 20px; }
    .section-head .side { max-width: 100%; }

    /* ── Products ── */
    .products { gap: 16px; }
    .product-info .name { font-size: 16px; }
    .product-add { font-size: 9.5px; letter-spacing: 0.12em; padding: 9px 10px; }

    /* ── Categories ── */
    .cat { height: 240px; }
    .cat-body h3 { font-size: 24px; }
    .cat-body { padding: 20px; }

    /* ── CTA banner ── */
    .cta { padding: 80px 20px; }
    .cta h2 { font-size: clamp(28px, 7vw, 44px); }
    .cta-row { flex-direction: column; align-items: center; gap: 10px; }
    .cta-row .btn { width: 100%; max-width: 320px; justify-content: center; }

    /* ── Footer ── */
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .foot-brand { grid-column: 1 / -1; }
    .foot-bottom { text-align: center; }
    .foot-about { font-size: 22px; }

    /* ── Store filters ── */
    .store-filters { top: 62px; }
    .filter-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 0; }
    .filter-tabs { flex-wrap: wrap; gap: 4px; }
    .store-search-wrap { max-width: 100%; width: 100%; }
    .filter-sort { align-self: flex-end; }

    /* ── Cart ── */
    .cart-page   { padding: 100px 0 60px; }
    .cart-layout { grid-template-columns: 1fr; gap: 28px; }
    .cart-summary-card { position: static; }

    /* Cart table → stacked card layout on mobile */
    .cart-table { display: block; }
    .cart-table thead { display: none; }
    .cart-table tbody { display: flex; flex-direction: column; gap: 12px; }
    .cart-row   {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "product remove"
            "price   price"
            "qty     total";
        border: 1px solid var(--line);
        padding: 0;
        gap: 0;
    }
    .cart-product-cell { grid-area: product; padding: 14px !important; border-bottom: 1px solid var(--line) !important; }
    .cart-price-cell   { grid-area: price;   padding: 10px 14px !important; border-bottom: 1px solid var(--line) !important; font-size: 12px; display: flex; justify-content: space-between; align-items: center; }
    .cart-price-cell::before  { content: "Price"; font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); }
    .cart-qty-cell     { grid-area: qty;     padding: 10px 14px !important; border: none !important; }
    .cart-total-cell   { grid-area: total;   padding: 10px 14px !important; border: none !important; text-align: right; }
    .cart-remove-cell  { grid-area: remove;  padding: 14px 14px !important; border-bottom: 1px solid var(--line) !important; display: flex; align-items: center; }
    .cart-qty-cell { text-align: left; }
    .cart-product { min-width: 0; }

    /* ── Checkout ── */
    .co-page    { padding: 100px 0 60px; }
    .co-layout  { grid-template-columns: 1fr; gap: 28px; }
    .co-summary-col { position: static; order: -1; }
    .co-form-row { grid-template-columns: 1fr; }
    .co-coupon-row { flex-direction: column; gap: 10px; }
    .co-coupon-apply-btn { width: 100%; justify-content: center; }
    .co-sum-ship { flex-direction: column; gap: 10px; }
    .co-sum-ship > span { padding-top: 0; }
    .co-radio-group { align-items: flex-start; }
    .co-payment-block { padding: 16px; }
    .coupon-row { flex-direction: column; gap: 10px; }
    .coupon-btn { width: 100%; justify-content: center; }

    /* ── Order Confirmation ── */
    .oc-page { padding: 100px 0 60px; }
    .oc-addresses { grid-template-columns: 1fr; gap: 14px; }
    .oc-actions { flex-direction: column; gap: 10px; }
    .oc-action-btn { width: 100%; justify-content: center; }
    .oc-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .oc-table tbody td { padding: 12px 16px; }
    .oc-sum-row { padding: 12px 16px; }

    /* ── Product Details ── */
    .pd-layout  { grid-template-columns: 1fr; gap: 32px; }
    .pd-gallery { position: static; }
    .pd-actions { flex-direction: column; gap: 12px; }
    .pd-add-btn { width: 100%; justify-content: center; }
    .qty-selector { align-self: flex-start; }
    .pd-price { font-size: 32px; }
    .pd-price-row { flex-wrap: wrap; gap: 10px; }
    .pd-related .products { grid-template-columns: repeat(2, 1fr); }

    /* ── About ── */
    .values-grid { grid-template-columns: 1fr; }
    .value-card  { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 20px; }
    .value-card:last-child { border-bottom: 0; }
    .about-divider { margin: 0; }

    /* ── Contact ── */
    .contact-layout { grid-template-columns: 1fr; gap: 40px; }
    .form-row       { grid-template-columns: 1fr; }
    .map-strip      { height: 200px; margin-top: 40px; }
    .direct-item    { flex-direction: column; align-items: flex-start; gap: 4px; }
}


/* ============================================================
   RESPONSIVE — 480px (Small Mobile)
   ============================================================ */

@media (max-width: 480px) {

    /* ── Container ── */
    .container { padding: 0 14px; }
    .nav-inner  { padding: 14px; gap: 8px; }

    /* ── Products: single column ── */
    .products      { grid-template-columns: 1fr; }
    .store-grid    { grid-template-columns: 1fr !important; }
    .pd-related .products { grid-template-columns: 1fr; }

    /* ── Hero: simplify circles ── */
    .circle-sub  { display: none; }
    .circle-main { inset: 0; }
    .circles     { max-width: 240px; }
    .circle-badge { width: 90px; height: 90px; }

    /* ── Typography ── */
    h1.display  { font-size: clamp(24px, 8vw, 34px) !important; }
    h2.display  { font-size: clamp(22px, 7vw, 30px) !important; }

    /* ── CTA ── */
    .cta { padding: 60px 14px; }

    /* ── Product thumbnails: 2 visible ── */
    .pd-thumbnails { grid-template-columns: repeat(2, 1fr); }

    /* ── Cart summary ── */
    .cart-summary-card { padding: 18px; }
    .cart-summary-title { font-size: 20px; }

    /* ── Footer ── */
    .foot-grid { grid-template-columns: 1fr; gap: 24px; }
    .foot-about { font-size: 20px; }

    /* ── Nav actions: reduce spacing ── */
    .nav-actions { gap: 4px; }
    .nav-search-btn { width: 32px; height: 32px; }
    .nav-cart-btn svg { width: 17px; height: 17px; }

    /* ── Checkout ── */
    .co-summary-col { padding: 20px; }
    .co-billing-col .co-box-title { font-size: 20px; }

    /* ── Order confirmation pills ── */
    .oc-pill { padding: 14px 16px; }
    .oc-pill-value { font-size: 14px; }
}


/* ============================================================
   RESPONSIVE v2 — Complete Mobile-First Pass
   Breakpoints:  ≤ 1024px (tablet)  ≤ 768px (mobile)  ≤ 480px (xs)
   ============================================================ */

/* ── 1. Global Overflow & Image Safety ─────────────────────── */

*,
*::before,
*::after { box-sizing: border-box; }

html { overflow-x: hidden; }

/* Non-positioned images must never overflow their container */
img:not([style*="position"]) {
    max-width: 100%;
    height: auto;
}

/* All grids and flex containers: prevent horizontal bleed */
.products,
.categories,
.foot-grid,
.hero-grid,
.pd-layout,
.co-layout,
.cart-layout,
.oc-addresses,
.about,
.contact-layout,
.values-grid,
.showrooms-grid,
.materials-grid {
    min-width: 0;
}

/* ── 2. Tablet — ≤ 1024px ───────────────────────────────────── */

@media (max-width: 1024px) {

    /* Tighten nav padding on tablet */
    .nav-inner {
        padding-left: 32px;
        padding-right: 32px;
        gap: 24px;
    }

    /* Slightly reduce gap between nav links */
    .nav-links { gap: 2px; }

    .nav-links > a,
    .nav-dropdown-trigger { padding: 6px 10px; font-size: 12px; }

    /* Container breathing room */
    .container { padding: 0 32px; }

    /* Hero: reduce scale */
    .hero-slide { padding: 130px 0 80px; }
    .hero-grid  { gap: 48px; }
    .hero-copy h1 { font-size: clamp(36px, 5.5vw, 72px); }

    /* Product grid: keep 3 columns on tablet */
    .products { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .store-grid { grid-template-columns: repeat(3, 1fr) !important; }

    /* Checkout: slightly tighter */
    .co-layout { grid-template-columns: 1fr 380px; gap: 40px; }

    /* Cart */
    .cart-layout { grid-template-columns: 1fr 320px; gap: 32px; }
    .cart-summary-card { padding: 24px; }

    /* PD layout */
    .pd-layout { gap: 56px; }

    /* Footer */
    .foot-grid { grid-template-columns: 1.2fr 1fr 1fr 1.1fr; gap: 36px; }
}


/* ── 3. Mobile — ≤ 768px ────────────────────────────────────── */

@media (max-width: 768px) {

    /* ── Base ── */
    html, body { overflow-x: hidden; }
    .container { padding: 0 18px; }

    /* ── Navigation ── */
    .nav-inner {
        padding: 14px 18px;
        gap: 10px;
    }

    .nav-links { display: none; }      /* hidden until hamburger opens */
    .nav-hamburger { display: flex; }  /* show hamburger */

    .nav-actions { gap: 8px; }
    .lang-switcher { height: 26px; }
    .lang-btn { padding: 0 5px; font-size: 9px; letter-spacing: 0.12em; }

    /* Mobile nav drawer (when nav has .nav-open) */
    .nav.nav-open .nav-links {
        display: flex !important;
        flex-direction: column;
        position: absolute;
        top: 100%; left: 0; right: 0;
        z-index: 49;
        background: rgba(7, 12, 22, 0.98);
        backdrop-filter: blur(24px) saturate(160%);
        -webkit-backdrop-filter: blur(24px) saturate(160%);
        border-bottom: 1px solid var(--line);
        padding: 6px 0 18px;
        gap: 0;
        animation: mobileNavIn 0.25s var(--ease);
    }

    @keyframes mobileNavIn {
        from { opacity: 0; transform: translateY(-6px); }
        to   { opacity: 1; transform: translateY(0); }
    }

    .nav.nav-open .nav-links > a {
        display: block;
        padding: 13px 20px;
        font-size: 13.5px;
        letter-spacing: 0.05em;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .nav.nav-open .nav-links > a.active::after { display: none; }

    .nav.nav-open .nav-dropdown-wrap { width: 100%; }

    .nav.nav-open .nav-dropdown-trigger {
        width: 100%;
        justify-content: space-between;
        padding: 13px 20px;
        font-size: 13.5px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .nav.nav-open .nav-dropdown {
        position: static;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.03);
        border: none;
        padding: 4px 0;
    }

    .nav.nav-open .nav-dropdown::before { display: none; }

    .nav.nav-open .nav-dropdown a {
        padding-left: 36px;
        font-size: 12.5px;
    }

    /* ── Typography ── */
    .hero-copy h1,
    h1.display         { font-size: clamp(26px, 7.5vw, 42px) !important; line-height: 1.1; }
    h2.display         { font-size: clamp(22px, 6.5vw, 36px) !important; }
    h3.display         { font-size: clamp(18px, 5.5vw, 28px) !important; }
    .pd-title          { font-size: clamp(26px, 7.5vw, 42px) !important; }
    .oc-title          { font-size: clamp(24px, 6.5vw, 36px) !important; }
    .cart-title,
    .co-title          { font-size: clamp(24px, 6.5vw, 34px) !important; }
    .page-hero h1      { font-size: clamp(26px, 7.5vw, 42px) !important; }

    /* ── Hero slider ── */
    .hero-slides,
    .hero-slide        { min-height: auto; }
    .hero-slide        { padding: 100px 0 80px; }
    .hero-grid         { grid-template-columns: 1fr; gap: 36px; }
    .circles           { max-width: 280px; margin: 0 auto; }
    /* circles (image) stays first in DOM → appears above text on mobile */
    .hero-copy p       { font-size: 15px; margin-bottom: 22px; }
    .hero-cta          { flex-direction: column; gap: 10px; }
    .hero-cta .btn     { width: 100%; justify-content: center; }
    .hero-meta         { display: none; }
    .hero-controls     { bottom: 20px; gap: 12px; }
    .hero-counter      { font-size: 10px; }
    .hero-arrow        { width: 38px; height: 38px; }

    /* ── Page Hero ── */
    .page-hero         { padding: 112px 0 48px; }
    .page-hero-desc    { font-size: 15px; }

    /* ── Sections ── */
    .section           { padding: 56px 0; }
    .section-head      { flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 36px; }
    .section-head .side { max-width: 100%; font-size: 14px; }

    /* ── Product grid ── */
    .products          { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .store-grid        { grid-template-columns: repeat(2, 1fr) !important; }
    .product-info .name { font-size: 15px; }
    .product-info .price { font-size: 12px; }
    .product-add       { font-size: 9.5px; letter-spacing: 0.1em; padding: 9px 8px; gap: 6px; }
    .product-add svg   { width: 11px; height: 11px; }

    /* ── Categories ── */
    .categories        { grid-template-columns: 1fr; height: auto; }
    .cat               { height: 220px; }
    .cat.tall          { grid-row: auto; }
    .cat-body h3       { font-size: 22px; }
    .cat-body          { padding: 18px; }

    /* ── CTA ── */
    .cta               { padding: 72px 18px; }
    .cta h2            { font-size: clamp(26px, 7vw, 40px); }
    .cta-row           { flex-direction: column; align-items: center; gap: 10px; }
    .cta-row .btn      { width: 100%; max-width: 300px; justify-content: center; }

    /* ── Footer ── */
    .foot-grid         { grid-template-columns: 1fr 1fr; gap: 24px; }
    .foot-brand        { grid-column: 1 / -1; }
    .foot-about        { font-size: 20px; }
    .foot-bottom       { flex-direction: column; gap: 8px; text-align: center; }
    .foot-col h4       { margin-bottom: 14px; }
    .foot-col > a      { padding: 5px 0; }

    /* ── Store page ── */
    .store-filters     { top: 60px; }
    .filter-bar        { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
    .filter-tabs       { flex-wrap: wrap; gap: 4px; }
    .filter-tab        { padding: 6px 12px; font-size: 10px; }
    .store-search-wrap { width: 100%; max-width: 100%; }
    .filter-sort       { align-self: flex-start; }
    .sort-select       { font-size: 10px; padding: 6px 10px; }
    .store-no-results  { padding: 48px 0; }

    /* ── Cart ── */
    .cart-page         { padding: 96px 0 56px; }
    .cart-layout       { grid-template-columns: 1fr; gap: 24px; }
    .cart-summary-card { position: static; padding: 20px; }
    .cart-summary-title { font-size: 20px; }
    .cart-heading      { margin-bottom: 28px; }

    /* Cart table → block stacked cards */
    .cart-table-wrap   { overflow-x: visible; }
    .cart-table        { display: block; }
    .cart-table thead  { display: none; }
    .cart-table tbody  { display: flex; flex-direction: column; gap: 10px; }
    .cart-row          {
        display: flex;
        flex-direction: column;
        border: 1px solid var(--line);
        background: var(--bg-elev);
    }
    .cart-row td       { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
    .cart-row td:last-child { border-bottom: none; }
    .cart-product-cell {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0;
        padding: 14px !important;
        border-bottom: 1px solid var(--line) !important;
    }
    .cart-product       { width: 100%; }
    .cart-price-cell::before  { content: "Price · "; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
    .cart-qty-cell::before    { content: "Qty · ";   font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
    .cart-total-cell::before  { content: "Total · "; font-family: var(--mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
    .cart-qty-cell   { text-align: left; }
    .cart-total-cell { text-align: left; }
    .cart-remove-cell { justify-content: flex-end; }

    /* ── Checkout ── */
    .co-page           { padding: 96px 0 56px; }
    .co-layout         { grid-template-columns: 1fr; gap: 24px; }
    .co-summary-col    { position: static; order: -1; padding: 20px; }
    .co-billing-col    { }
    .co-form-row       { grid-template-columns: 1fr; gap: 14px; }
    .co-coupon-banner  { padding: 12px 16px; }
    .co-coupon-row     { flex-direction: column; gap: 10px; }
    .co-coupon-apply-btn { width: 100%; justify-content: center; }
    .co-sum-ship       { flex-direction: column; gap: 8px; align-items: flex-start; }
    .co-radio-group    { align-items: flex-start; }
    .co-payment-block  { padding: 14px; }
    .co-place-btn      { padding: 14px 20px; }
    .coupon-row        { flex-direction: column; gap: 10px; }
    .coupon-btn        { width: 100%; justify-content: center; }

    /* ── Order Confirmation ── */
    .oc-page           { padding: 96px 0 56px; }
    .oc-check-svg      { width: 56px; height: 56px; }
    .oc-pills          { flex-direction: column; }
    .oc-pill           { padding: 14px 18px; }
    .oc-pill-div       { width: 100%; height: 1px; align-self: auto; }
    .oc-details        { }
    .oc-table-wrap     { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .oc-table tbody td { padding: 12px 14px; }
    .oc-sum-row        { padding: 12px 14px; }
    .oc-addresses      { grid-template-columns: 1fr; gap: 12px; }
    .oc-actions        { flex-direction: column; gap: 10px; }
    .oc-action-btn     { width: 100%; justify-content: center; }

    /* ── Product Details ── */
    .pd-breadcrumb     { padding: 96px 0 0; }
    .pd-section        { padding: 28px 0 72px; }
    .pd-layout         { grid-template-columns: 1fr; gap: 28px; }
    .pd-gallery        { position: static; }
    .pd-thumbnails     { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .pd-price          { font-size: 30px; }
    .pd-price-row      { flex-wrap: wrap; gap: 10px; align-items: baseline; }
    .pd-actions        { flex-direction: column; gap: 12px; }
    .pd-add-btn        { width: 100%; justify-content: center; }
    .qty-selector      { align-self: flex-start; }
    .pd-related .products { grid-template-columns: repeat(2, 1fr); }
    .pd-main-image     { aspect-ratio: 4 / 3; }

    /* ── About ── */
    .about             { grid-template-columns: 1fr; gap: 32px; }
    .about-stats       { grid-template-columns: repeat(3, 1fr); }
    .values-grid       { grid-template-columns: 1fr; gap: 0; }
    .value-card        { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px 18px; }
    .value-card:last-child { border-bottom: 0; }
    .about-divider     { margin: 0; }
    .about-media       { aspect-ratio: 3 / 2; }

    /* ── Contact ── */
    .contact-layout    { grid-template-columns: 1fr; gap: 36px; }
    .form-row          { grid-template-columns: 1fr; gap: 14px; }
    .map-strip         { height: 180px; margin-top: 32px; }
    .direct-item       { flex-direction: column; align-items: flex-start; gap: 4px; }
    .contact-info      { gap: 28px; }
}


/* ── 4. Extra Small Mobile — ≤ 480px ────────────────────────── */

@media (max-width: 480px) {

    .container  { padding: 0 14px; }
    .nav-inner  { padding: 12px 14px; gap: 6px; }

    /* Nav actions: keep visible but compact */
    .nav-actions       { gap: 4px; }
    .nav-search-btn    { width: 30px; height: 30px; }
    .nav-search-btn svg { width: 16px; height: 16px; }
    .nav-cart-btn svg  { width: 17px; height: 17px; }
    .lang-btn          { padding: 0 5px; }
    .cart-badge        { width: 14px; height: 14px; font-size: 8px; top: -3px; right: -3px; }

    /* Products: 1 column */
    .products          { grid-template-columns: 1fr; }
    .store-grid        { grid-template-columns: 1fr !important; }
    .pd-related .products { grid-template-columns: 1fr; }

    /* Hero: simplify circles completely */
    .hero-slide        { padding: 90px 0 70px; }
    .circle-sub        { display: none; }
    .circle-badge      { display: none; }
    .circle-main       { inset: 0; }
    .circles           { max-width: 220px; aspect-ratio: 1; }

    /* Typography */
    h1.display         { font-size: clamp(22px, 8.5vw, 30px) !important; }
    h2.display         { font-size: clamp(20px, 7.5vw, 28px) !important; }
    h3.display         { font-size: clamp(18px, 6.5vw, 24px) !important; }
    .page-hero h1      { font-size: clamp(22px, 8.5vw, 30px) !important; }
    .pd-title          { font-size: clamp(22px, 8.5vw, 30px) !important; }
    .pd-price          { font-size: 26px; }

    /* Thumbnails: 2 columns */
    .pd-thumbnails     { grid-template-columns: repeat(2, 1fr); }

    /* CTA */
    .cta               { padding: 56px 14px; }
    .cta h2            { font-size: clamp(20px, 8vw, 28px); }
    .cta-row .btn      { max-width: 100%; }

    /* Cart */
    .cart-product-img-wrap { width: 60px; height: 60px; }
    .cart-product-name     { font-size: 14px; }

    /* Checkout */
    .co-billing-col .co-box-title { font-size: 18px; }
    .co-field          { margin-bottom: 14px; }

    /* Order confirmation */
    .oc-pill           { padding: 12px 14px; }
    .oc-pill-value     { font-size: 13px; }
    .oc-section-title  { padding: 16px 16px; font-size: 17px; }

    /* Footer */
    .foot-grid         { grid-template-columns: 1fr; gap: 20px; }
    .foot-about        { font-size: 18px; }
    .foot-socials      { gap: 8px; }

    /* About stats: single row */
    .about-stats       { gap: 16px; }

    /* Store */
    .filter-tab        { padding: 5px 10px; font-size: 9.5px; }
    .store-no-results  { padding: 36px 0; }

    /* Section spacing */
    .section           { padding: 48px 0; }
    .page-hero         { padding: 100px 0 40px; }
}


/* ── 5. Global fix: prevent any child from busting layout ───── */

@media (max-width: 768px) {
    /* Every direct child of .container can't exceed viewport */
    .container > * { max-width: 100%; }

    /* Tables: always scrollable instead of overflowing */
    table:not(.cart-table) {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Images inside cards always fill their parent */
    .product-media img,
    .cat-media img,
    .about-media img,
    .material-media img,
    .showroom-media img,
    .pd-main-image img,
    .pd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Prevent btn text overflow */
    .btn { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}


/* ============================================================
   DEFINITIVE MOBILE WIDTH FIX
   Placed last so it wins every cascade conflict.
   Fixes: content appearing too narrow / large dead space on sides.
   ============================================================ */

/* --- 1. html + body: always full viewport width --- */
html {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* --- 2. Container: padding shrinks as viewport shrinks --- */

/* Tablet range: 768 – 1024 px */
@media (max-width: 1024px) {
    .container,
    .nav-inner {
        padding-inline: 28px !important;
    }
}

/* Mobile: 480 – 768 px */
@media (max-width: 768px) {
    .container,
    .nav-inner {
        padding-inline: 16px !important;
        width: 100%;
    }

    /* Hero: every slide must span full viewport */
    .hero,
    .hero-slides,
    .hero-slide {
        width: 100%;
        left: 0;
        right: 0;
    }

    /* No element inside a section-level block may overflow */
    section,
    .section,
    .page-hero,
    .cart-page,
    .co-page,
    .oc-page,
    .pd-section,
    .pd-breadcrumb {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Extra-small: below 480 px (typical iPhone SE / older Android) */
@media (max-width: 480px) {
    .container,
    .nav-inner {
        padding-inline: 14px !important;
    }
}

/* --- 3. Product grid: correct column count at every width --- */
@media (max-width: 960px) and (min-width: 481px) {
    /* Tablet (481 – 960): 2 columns */
    .products,
    .store-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 480px) {
    /* Phone (≤ 480): 1 column */
    .products,
    .store-grid {
        grid-template-columns: 1fr !important;
    }
}

/* --- 4. Hero grid: single-column with no overflow on mobile --- */
@media (max-width: 960px) {
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 32px;
        width: 100%;
    }

    /* Circles wrapper: never wider than the viewport */
    .circles {
        width: 100% !important;
        max-width: 300px;
        margin: 0 auto;
    }

    /* Hero copy: full column width */
    .hero-copy {
        max-width: 100% !important;
        width: 100%;
    }
}

/* --- 5. Prevent any child from triggering horizontal scroll --- */
@media (max-width: 768px) {
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }

    /* But don't constrain positioned overlays (dropdown, toast, etc.) */
    .nav-dropdown,
    .nav-search-overlay,
    .nav.nav-open .nav-links,
    .toast-container,
    .toast {
        max-width: none;
    }
}


/* ============================================================
   FIX: Header / Hero overlap on mobile
   
   Root cause: previous responsive passes set
     .hero          { min-height: auto }   ← line 1408 (960px)
     .hero-slides   { min-height: auto }   ← line 4652 (768px)
   
   Because every .hero-slide is position:absolute (out of flow),
   .hero-slides with min-height:auto collapses to 0 height.
   inset:0 on a 0-height parent resolves to a 0×0 box, so
   slide content floats to y=0 and sits under the fixed nav.
   
   Fix: restore min-height with !important at every breakpoint,
   and calibrate padding-top to the actual nav height.
   ============================================================ */

/* ── 1. Always keep hero / hero-slides at viewport height ──── */

.hero {
    min-height: 100vh !important;
}

.hero-slides {
    /* min-height MUST NOT be auto — all children are position:absolute */
    min-height: 100vh !important;
}

/* dvh = dynamic viewport height (accounts for mobile browser chrome) */
@supports (min-height: 100dvh) {
    .hero        { min-height: 100dvh !important; }
    .hero-slides { min-height: 100dvh !important; }
}


/* ── 2. Nav height reference (measured, not guessed) ──────────
   Desktop  (>960):  nav-inner padding 20+20 + content ≈ 72 px
   Tablet   (≤960):  nav-inner padding 16+16 + content ≈ 68 px
   Mobile   (≤768):  nav-inner padding 14+14 + content ≈ 64 px
   XS       (≤480):  nav-inner padding 12+12 + content ≈ 60 px
   
   padding-top on .hero-slide = nav_height + comfortable buffer
   ─────────────────────────────────────────────────────────── */

/* Tablet ≤ 960px */
@media (max-width: 960px) {
    .hero        { min-height: 100vh !important; padding-top: 0 !important; }
    .hero-slides { min-height: 100vh !important; }

    /* nav ≈ 68 px → 100 px gives 32 px breathing room */
    .hero-slide  {
        padding-top: 100px !important;
        padding-bottom: 80px !important;
    }
}

/* Mobile ≤ 768px */
@media (max-width: 768px) {
    .hero        { min-height: 100vh !important; padding-top: 0 !important; }
    .hero-slides { min-height: 100vh !important; }

    /* nav ≈ 64 px → 88 px gives 24 px breathing room */
    .hero-slide  {
        padding-top: 88px !important;
        padding-bottom: 64px !important;
    }

    /* Grid: circles below copy */
    .hero-grid { grid-template-columns: 1fr !important; gap: 28px; }
    .hero-copy { max-width: 100% !important; }
}

/* Extra small ≤ 480px */
@media (max-width: 480px) {
    .hero        { min-height: 100vh !important; }
    .hero-slides { min-height: 100vh !important; }

    /* nav ≈ 60 px → 80 px gives 20 px breathing room */
    .hero-slide  {
        padding-top: 80px !important;
        padding-bottom: 56px !important;
    }
}

@supports (min-height: 100dvh) {
    @media (max-width: 960px) {
        .hero        { min-height: 100dvh !important; }
        .hero-slides { min-height: 100dvh !important; }
    }
}


/* ── 3. Slider controls: keep above bottom of viewport ─────── */

@media (max-width: 768px) {
    .hero-controls {
        bottom: 16px !important;
        gap: 12px;
        transform: translateX(-50%);
        left: 50%;
        position: absolute;
        z-index: 4;
    }

    .hero-arrow {
        width: 36px !important;
        height: 36px !important;
    }

    .hero-dot        { width: 7px; height: 7px; }
    .hero-dot.active { width: 22px; }
}


/* ── 4. Inner pages: pad top so fixed nav doesn't cover H1 ─── */

@media (max-width: 768px) {
    /* page-hero already has its own top padding, verify it clears nav */
    .page-hero {
        padding-top: max(112px, calc(64px + 48px)) !important;
    }

    /* Breadcrumb on product details */
    .pd-breadcrumb {
        padding-top: max(88px, calc(64px + 24px)) !important;
    }

    /* Cart, checkout, order-confirmation, about, contact top padding */
    .cart-page,
    .co-page,
    .oc-page {
        padding-top: max(96px, calc(64px + 32px)) !important;
    }
}

@media (max-width: 480px) {
    .page-hero     { padding-top: max(100px, calc(60px + 40px)) !important; }
    .pd-breadcrumb { padding-top: max(84px,  calc(60px + 24px)) !important; }
    .cart-page,
    .co-page,
    .oc-page { padding-top: max(88px, calc(60px + 28px)) !important; }
}


/* ============================================================
   BUG FIX PASS — Images · Header · Dropdown
   Appended last; wins all previous cascade conflicts.
   ============================================================ */


/* ── FIX 1: Images — fill containers without absolute positioning
   Containers with aspect-ratio or explicit inset:0 already have
   defined dimensions. Images fill them via width/height 100%
   without needing position:absolute.
   ─────────────────────────────────────────────────────────── */

/* Containers that need position:relative */
.product-media,
.about-media,
.material-media,
.showroom-media,
.pd-main-image,
.pd-thumb,
.cart-product-img-wrap {
    position: relative;
    overflow: hidden;
}

/* .cat-media keeps its original position:absolute; inset:0
   (defined in the base CSS) — never override to relative */

/* Images fill containers via natural sizing */
.product-media > img,
.product-img,
.cat-media > img,
.circle > img,
.about-media > img,
.material-media > img,
.showroom-media > img,
.pd-main-image > img,
.pd-thumb > img,
.cart-product-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    max-width: none;
}


/* ── FIX 2: Header — single authoritative rule set ────────────
   Nine conflicting padding rules across four responsive passes
   made the header unstable. One rule set with clamp() replaces
   all of them cleanly.
   ─────────────────────────────────────────────────────────── */

/* Base nav: always fixed, always full width */
.nav {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 50 !important;
}

/* nav-inner: clamp() adapts automatically to viewport width */
.nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 14px clamp(16px, 4vw, 52px) !important;
    gap: clamp(8px, 2vw, 40px) !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* nav-links: centred, hidden on mobile */
.nav-links {
    order: 2 !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 4px !important;
}

@media (max-width: 960px) {
    /* Hide nav-links, show hamburger */
    .nav-links:not(.nav.nav-open .nav-links) { display: none !important; }
    .nav-hamburger { display: flex !important; }
}

/* nav-actions: keep items compact on all sizes */
.nav-actions {
    order: 3 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: clamp(4px, 1.5vw, 14px) !important;
}

/* On small phones (< 380px): hide lang-switcher from header
   (user can change language from the mobile menu instead) */
@media (max-width: 380px) {
    .nav-actions .lang-switcher { display: none !important; }
}

/* Brand: always on the left */
.brand {
    order: 1 !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* RTL: brand moves right, actions move left */
[dir="rtl"] .brand       { order: 3 !important; }
[dir="rtl"] .nav-links   { order: 2 !important; flex-direction: row-reverse !important; }
[dir="rtl"] .nav-actions { order: 1 !important; }


/* ── FIX 3: Dropdown — eliminate the gap so hover never breaks ─
   Root: the dropdown sits 14px below the trigger. The ::after
   bridge only covers the trigger's own width; a diagonal mouse
   path easily falls outside it, losing hover instantly.
   
   Solution: move the dropdown to top:100% (no gap) and push the
   content down with padding-top. Mouse never crosses empty space.
   The visual appearance stays identical.
   ─────────────────────────────────────────────────────────── */

.nav-dropdown {
    top: 100% !important;           /* was calc(100%+14px) */
    padding-top: 14px !important;   /* visual gap now lives inside panel */
    transform: translateX(-50%) translateY(-6px) !important;
}

.nav-dropdown-wrap:hover .nav-dropdown {
    transform: translateX(-50%) translateY(0) !important;
}

/* Arrow notch: shift up by the added padding so it still appears
   right at the panel edge */
.nav-dropdown::before {
    top: 9px !important;            /* 14px padding – 5px notch height */
}

/* Remove the ::after bridge — no longer needed (gap is gone) */
.nav-dropdown-wrap::after {
    display: none !important;
}

/* RTL dropdown: same approach */
[dir="rtl"] .nav-dropdown {
    transform: translateX(50%) translateY(-6px) !important;
}

[dir="rtl"] .nav-dropdown-wrap:hover .nav-dropdown {
    transform: translateX(50%) translateY(0) !important;
}



/* ============================================================
   DROPDOWN FIX — JS-controlled, hover-stable
   
   Root cause: CSS :hover loses state the instant the cursor
   exits .nav-dropdown-wrap — even by 1px. Because the dropdown
   panel has pointer-events:none while hidden, it can never
   recover the hover state on its own.
   
   Solution: JS manages a .dropdown-open class with a 200 ms
   close-delay, making the open state immune to tiny cursor gaps.
   CSS :hover is kept only as a visual fallback for keyboards /
   very fast interactions. The class always wins.
   ============================================================ */

/* ── 1. Dropdown: guaranteed above everything ── */
.nav-dropdown {
    z-index: 9999 !important;
    position: absolute !important;
    /* Remove any overflow constraints from ancestor rules */
    overflow: visible !important;
}

/* Ensure the wrap itself never clips the panel */
.nav-dropdown-wrap {
    position: relative !important;
    overflow: visible !important;
}

/* ── 2. Open state — driven by JS class ── */
.nav-dropdown-wrap.dropdown-open .nav-dropdown {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateX(-50%) translateY(0) !important;
}

/* Keep CSS :hover as backup for pointer devices */
@media (hover: hover) {
    .nav-dropdown-wrap:hover .nav-dropdown {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        transform: translateX(-50%) translateY(0) !important;
    }
}

/* ── 3. RTL variants ── */
[dir="rtl"] .nav-dropdown-wrap.dropdown-open .nav-dropdown {
    transform: translateX(50%) translateY(0) !important;
}

@media (hover: hover) {
    [dir="rtl"] .nav-dropdown-wrap:hover .nav-dropdown {
        transform: translateX(50%) translateY(0) !important;
    }
}

/* ── 4. Ensure no ancestor clips the panel ── */
.nav-inner,
.nav-links {
    overflow: visible !important;
}

/* The nav bar itself must not clip vertically */
.nav {
    overflow: visible !important;
}


/* ============================================================
   FINAL FIX — Header alignment & image coverage
   Placed last to win all previous cascade conflicts.
   ============================================================ */

/* ── Header: one clean rule set ─────────────────────────────── */

/* Fixed bar: always full-width, always on top */
.nav {
    position: fixed !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    width: 100% !important;
    z-index: 9000 !important;
    overflow: visible !important;   /* never clip the dropdown */
}

/* Inner row: flex, full width, responsive padding via clamp */
.nav-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    max-width: 1440px !important;
    margin: 0 auto !important;
    padding: 12px clamp(14px, 3.5vw, 48px) !important;
    gap: clamp(8px, 2vw, 32px) !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* Three flex slots */
.brand        { order: 1 !important; flex-shrink: 0 !important; }
.nav-links    { order: 2 !important; flex: 1 !important; overflow: visible !important; }
.nav-actions  { order: 3 !important; flex-shrink: 0 !important; display: flex !important; align-items: center !important; gap: clamp(4px, 1vw, 12px) !important; }

/* RTL: swap brand and actions */
[dir="rtl"] .brand        { order: 3 !important; }
[dir="rtl"] .nav-links    { order: 2 !important; flex-direction: row-reverse !important; }
[dir="rtl"] .nav-actions  { order: 1 !important; }

/* Desktop: show nav-links, hide hamburger */
@media (min-width: 961px) {
    .nav-links    { display: flex !important; justify-content: center !important; }
    .nav-hamburger { display: none !important; }
}

/* Mobile: hide nav-links (unless menu open), show hamburger */
@media (max-width: 960px) {
    .nav-links:not(.nav.nav-open .nav-links) { display: none !important; }
    .nav-hamburger { display: flex !important; }

    /* Mobile menu drawer */
    .nav.nav-open .nav-links {
        display: flex !important;
        flex-direction: column !important;
        position: absolute !important;
        top: 100% !important; left: 0 !important; right: 0 !important;
        z-index: 8999 !important;
        background: rgba(7,12,22,0.98) !important;
        backdrop-filter: blur(24px) !important;
        border-bottom: 1px solid var(--line) !important;
        padding: 8px 0 16px !important;
        overflow: visible !important;
    }
}

/* Extra-small: hide lang-switcher to avoid cramping */
@media (max-width: 380px) {
    .nav-actions .lang-switcher { display: none !important; }
}


/* ── Images: fill containers without absolute positioning ──────
   Containers have their own sizing (aspect-ratio or explicit
   dimensions). No absolute/inset needed on images.
   ─────────────────────────────────────────────────────────── */

/* Containers with explicit dimensions — keep overflow:hidden */
.product-media,
.about-media,
.material-media,
.showroom-media,
.pd-main-image,
.pd-thumb,
.cart-product-img-wrap {
    position: relative;
    overflow: hidden;
}

/* Images fill via natural width/height — no absolute needed */
.product-media > img,
.product-img,
.cat-media > img,
.circle > img,
.about-media > img,
.material-media > img,
.showroom-media > img,
.pd-main-image > img,
.pd-thumb > img,
.cart-product-img-wrap img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    max-width: none;
}

/* All other images: safe defaults */
img {
    max-width: 100%;
}


/* ============================================================
   MOBILE ACCORDION — Categories dropdown inside hamburger menu
   
   The JS .dropdown-open class uses transform/opacity that
   override position:static in mobile context. This block
   neutralises the desktop behaviour completely when the
   hamburger menu is open, then uses max-height to animate
   the accordion open/close.
   ============================================================ */

@media (max-width: 960px) {

    /* ── 1. Full-width trigger row ── */
    .nav.nav-open .nav-dropdown-wrap {
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;  /* clips max-height animation */
    }

    .nav.nav-open .nav-dropdown-trigger {
        display: flex !important;
        width: 100% !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 13px 20px !important;
        font-size: 13.5px !important;
        color: var(--text-2) !important;
        border-bottom: 1px solid var(--line) !important;
        border-radius: 0 !important;
        background: transparent !important;
        cursor: pointer !important;
    }

    .nav.nav-open .nav-dropdown-trigger:hover {
        color: var(--gold) !important;
    }

    /* Chevron: points down when closed, up when open */
    .nav.nav-open .nav-dropdown-trigger svg {
        transition: transform 0.3s ease !important;
        flex-shrink: 0 !important;
    }

    .nav.nav-open .nav-dropdown-wrap.mobile-open .nav-dropdown-trigger svg {
        transform: rotate(180deg) !important;
    }

    /* ── 2. Panel: in-flow, hidden by default ── */
    /* Override EVERY previous rule that could make it float */
    .nav.nav-open .nav-dropdown,
    .nav.nav-open .nav-dropdown-wrap.dropdown-open .nav-dropdown,
    .nav.nav-open .nav-dropdown-wrap:hover .nav-dropdown {
        /* Layout: in normal flow, not absolute */
        position: static !important;
        left: auto !important;
        top: auto !important;
        transform: none !important;

        /* Visibility: always rendered, size-animated */
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;

        /* Accordion: closed = 0 height */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.32s ease !important;

        /* No desktop decorations */
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Arrow notch: hidden in mobile */
    .nav.nav-open .nav-dropdown::before {
        display: none !important;
    }

    /* ── 3. Open state — toggled by JS adding .mobile-open ── */
    .nav.nav-open .nav-dropdown-wrap.mobile-open .nav-dropdown {
        max-height: 320px !important;  /* taller than the tallest list */
        padding: 0 !important;         /* items have their own padding */
    }

    /* ── 4. Dropdown items: indented, full-width rows ── */
    .nav.nav-open .nav-dropdown a {
        display: block !important;
        width: 100% !important;
        padding: 12px 20px 12px 36px !important;
        font-size: 13px !important;
        color: var(--text-2) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
        transition: color 0.2s, background 0.2s !important;
        text-align: left !important;
    }

    .nav.nav-open .nav-dropdown a:last-child {
        border-bottom: none !important;
    }

    .nav.nav-open .nav-dropdown a:hover {
        color: var(--gold) !important;
        background: rgba(201,162,74,0.06) !important;
        padding-left: 44px !important;
    }

    /* ── 5. RTL mirror ── */
    [dir="rtl"] .nav.nav-open .nav-dropdown a {
        padding: 12px 36px 12px 20px !important;
        text-align: right !important;
    }

    [dir="rtl"] .nav.nav-open .nav-dropdown a:hover {
        padding-right: 44px !important;
        padding-left: 20px !important;
    }
}


/* ============================================================
   RTL HEADER FIX — correct alignment for Arabic & Hebrew
   ============================================================ */

/* ── 1. nav-actions: reverse item order in RTL ─────────────────
   nav-inner forces direction:ltr so DOM order (search,lang,cart,
   hamburger) flows left-to-right always. In RTL, nav-actions
   is placed on the LEFT, so hamburger ends up near the centre.
   row-reverse makes hamburger the leftmost item (far left edge).
   ─────────────────────────────────────────────────────────── */
[dir="rtl"] .nav-actions {
    flex-direction: row-reverse !important;
}

/* ── 2. Mobile menu drawer: RTL text & layout ──────────────────
   The drawer slides inside .nav-inner which has direction:ltr.
   Re-apply direction:rtl scoped to the open drawer so menu
   items, labels, and accordion behave as Arabic/Hebrew expects.
   ─────────────────────────────────────────────────────────── */
@media (max-width: 960px) {

    /* Drawer container */
    [dir="rtl"] .nav.nav-open .nav-links {
        direction: rtl !important;
        text-align: right !important;
    }

    /* Plain nav links */
    [dir="rtl"] .nav.nav-open .nav-links > a {
        text-align: right !important;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    /* Categories trigger: text on right, chevron on left */
    [dir="rtl"] .nav.nav-open .nav-dropdown-trigger {
        flex-direction: row-reverse !important;
        text-align: right !important;
        padding-right: 20px !important;
        padding-left: 20px !important;
    }

    /* Accordion: indent from the right */
    [dir="rtl"] .nav.nav-open .nav-dropdown a {
        text-align: right !important;
        padding-right: 36px !important;
        padding-left: 20px !important;
    }

    [dir="rtl"] .nav.nav-open .nav-dropdown a:hover {
        padding-right: 44px !important;
        padding-left: 20px !important;
    }

    /* Chevron still rotates 180° when accordion is open in RTL */
    [dir="rtl"] .nav.nav-open .nav-dropdown-wrap .nav-dropdown-trigger svg {
        transition: transform 0.3s ease !important;
    }

    [dir="rtl"] .nav.nav-open .nav-dropdown-wrap.mobile-open .nav-dropdown-trigger svg {
        transform: rotate(180deg) !important;
    }
}


/* Container images: zoom-on-hover only, no opacity animation */
.product-media > img,
.product-img,
.cat-media > img,
.circle > img,
.about-media > img,
.material-media > img,
.showroom-media > img,
.pd-main-image > img,
.pd-thumb > img,
.cart-product-img-wrap img {
    transition: transform 0.65s var(--ease) !important;
}


/* ============================================================
   CART — Remove button: top corner of each card row
   On mobile the row is a flex-column of <td> elements; the
   remove <td> is last so it appears at the bottom.
   Pull it out of flow with position:absolute instead.
   ============================================================ */

@media (max-width: 768px) {

    /* Positioning context for the button */
    .cart-row {
        position: relative !important;
    }

    /* Take the remove cell out of the flex column */
    .cart-remove-cell {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        /* don't let it participate in border-bottom rules */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
    }

    /* Give the product cell a right-side gap so content
       doesn't slide under the absolutely placed × button */
    .cart-product-cell {
        padding-right: 48px !important;
    }

    /* RTL: flip to top-left */
    [dir="rtl"] .cart-remove-cell {
        right: auto !important;
        left: 12px !important;
    }

    [dir="rtl"] .cart-product-cell {
        padding-right: 14px !important;
        padding-left: 48px !important;
    }
}


/* ============================================================
   CART — Complete RTL Layout Fix
   ============================================================ */

/* ── Desktop (table layout) ─────────────────────────────────── */

/* Product cell: image on right, text on left, text right-aligned */
[dir="rtl"] .cart-product {
    flex-direction: row-reverse !important;
}

[dir="rtl"] .cart-product-name,
[dir="rtl"] .cart-product-sub {
    text-align: right !important;
    direction: rtl !important;
}

/* Column header alignment */
[dir="rtl"] .cart-table thead th {
    text-align: right !important;
}

[dir="rtl"] .cart-table thead .th-qty    { text-align: center !important; }
[dir="rtl"] .cart-table thead .th-total  { text-align: left !important; }
[dir="rtl"] .cart-table thead .th-remove { text-align: center !important; }

/* Price and total cells */
[dir="rtl"] .cart-price-cell {
    text-align: right !important;
    direction: rtl !important;
}

[dir="rtl"] .cart-total-cell {
    text-align: left !important;
}

/* Quantity: keep centred */
[dir="rtl"] .cart-qty-cell { text-align: center !important; }

/* Qty selector: reverse +/− order */
[dir="rtl"] .cart-qty {
    flex-direction: row-reverse !important;
}

/* Continue-shopping link */
[dir="rtl"] .cart-continue {
    flex-direction: row-reverse !important;
    text-align: right !important;
}

/* Summary card */
[dir="rtl"] .cart-summary-card       { direction: rtl !important; }
[dir="rtl"] .summary-row             { flex-direction: row-reverse !important; }
[dir="rtl"] .cart-summary-title      { text-align: right !important; }
[dir="rtl"] .cart-shipping-title     { text-align: right !important; }
[dir="rtl"] .shipping-opt            { flex-direction: row-reverse !important; }
[dir="rtl"] .shipping-price          { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .coupon-row              { flex-direction: row-reverse !important; }
[dir="rtl"] .coupon-input            { text-align: right !important; }


/* ── Mobile card layout (≤ 768px) ───────────────────────────── */

@media (max-width: 768px) {

    /* Each card row: RTL direction */
    [dir="rtl"] .cart-row {
        direction: rtl !important;
    }

    /* Product cell: reverse image / info order */
    [dir="rtl"] .cart-product-cell {
        direction: rtl !important;
    }

    [dir="rtl"] .cart-product {
        flex-direction: row-reverse !important;
    }

    /* Product text: right-aligned */
    [dir="rtl"] .cart-product-name,
    [dir="rtl"] .cart-product-sub {
        text-align: right !important;
        direction: rtl !important;
    }

    /* Data rows (price / qty / total): label on right, value on left */
    [dir="rtl"] .cart-row td {
        flex-direction: row-reverse !important;
    }

    /* Price label stays on the right in RTL */
    [dir="rtl"] .cart-price-cell::before,
    [dir="rtl"] .cart-qty-cell::before,
    [dir="rtl"] .cart-total-cell::before {
        order: 1 !important;   /* move label after the value in reversed row */
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* Qty selector arrows */
    [dir="rtl"] .cart-qty {
        flex-direction: row-reverse !important;
    }

    /* Remove button: top-left corner in RTL */
    [dir="rtl"] .cart-remove-cell {
        right: auto !important;
        left: 12px !important;
    }

    /* Offset product text away from the left-side button */
    [dir="rtl"] .cart-product-cell {
        padding-right: 14px !important;
        padding-left: 48px !important;
    }
}


/* ============================================================
   CART RTL — Definitive single-pass fix
   
   Root bug: every previous pass added flex-direction:row-reverse
   to .cart-product in RTL. That creates a double reversal:
     direction:rtl  → flex starts on the RIGHT  (image rightmost)
     row-reverse    → flips back to LEFT start   (image leftmost)
   Net result: image on the LEFT — identical to LTR.
   
   Fix: use flex-direction:row (default). direction:rtl alone
   is enough to put image on the right and text on the left.
   ============================================================ */

/* ── Whole cart: inherit RTL direction ── */
[dir="rtl"] .cart-page,
[dir="rtl"] .cart-layout,
[dir="rtl"] .cart-left,
[dir="rtl"] .cart-table-wrap {
    direction: rtl;
}

/* ── Desktop: table layout ── */

/* Table header cells */
[dir="rtl"] .cart-table thead th {
    text-align: right !important;
}
[dir="rtl"] .cart-table thead .th-qty    { text-align: center !important; }
[dir="rtl"] .cart-table thead .th-total  { text-align: left  !important; }
[dir="rtl"] .cart-table thead .th-remove { text-align: center !important; }

/* Product cell: direction:rtl is inherited; do NOT add row-reverse */
[dir="rtl"] .cart-product {
    flex-direction: row !important;   /* ← removes the double-reversal */
    direction: rtl;
}

/* Text inside product info: right-aligned */
[dir="rtl"] .cart-product-name {
    text-align: right !important;
    direction: rtl !important;
    display: block !important;
}
[dir="rtl"] .cart-product-sub {
    text-align: right !important;
    direction: rtl !important;
}

/* Price cell: right-aligned for RTL */
[dir="rtl"] .cart-price-cell {
    text-align: right !important;
    direction: rtl !important;
}

/* Total cell flips to the left in RTL table */
[dir="rtl"] .cart-total-cell { text-align: left !important; }

/* Qty selector: mirror +/- order */
[dir="rtl"] .cart-qty { flex-direction: row-reverse !important; }

/* Continue link */
[dir="rtl"] .cart-table-footer { text-align: right !important; }
[dir="rtl"] .cart-continue {
    flex-direction: row-reverse !important;
}

/* Summary panel */
[dir="rtl"] .cart-summary-card     { direction: rtl !important; }
[dir="rtl"] .cart-summary-title    { text-align: right !important; }
[dir="rtl"] .summary-row           { flex-direction: row-reverse !important; }
[dir="rtl"] .cart-shipping-title   { text-align: right !important; }
[dir="rtl"] .shipping-opt          { flex-direction: row-reverse !important; }
[dir="rtl"] .shipping-price        { margin-left: 0 !important; margin-right: auto !important; }
[dir="rtl"] .coupon-row            { flex-direction: row-reverse !important; }
[dir="rtl"] .coupon-input          { text-align: right !important; }
[dir="rtl"] .cart-empty            { direction: rtl !important; text-align: right !important; }


/* ── Mobile: flex-column card layout ── */

@media (max-width: 768px) {

    /* Card container */
    [dir="rtl"] .cart-row { direction: rtl !important; }

    /* Product row: same fix — row (not row-reverse) with direction:rtl */
    [dir="rtl"] .cart-product {
        flex-direction: row !important;
        direction: rtl !important;
    }

    /* Product text */
    [dir="rtl"] .cart-product-name,
    [dir="rtl"] .cart-product-sub {
        text-align: right !important;
        direction: rtl !important;
    }

    /* Each data row: label (::before) on the right, value on the left */
    [dir="rtl"] .cart-price-cell,
    [dir="rtl"] .cart-qty-cell,
    [dir="rtl"] .cart-total-cell {
        flex-direction: row-reverse !important;
        text-align: right !important;
    }

    /* ::before labels stay on the right side */
    [dir="rtl"] .cart-price-cell::before,
    [dir="rtl"] .cart-qty-cell::before,
    [dir="rtl"] .cart-total-cell::before {
        margin-left: 0 !important;
        margin-right: auto !important;
    }

    /* Remove button: top-LEFT corner in RTL */
    [dir="rtl"] .cart-remove-cell {
        right: auto !important;
        left: 12px !important;
    }

    /* Product cell: padding gap on the left (button side in RTL) */
    [dir="rtl"] .cart-product-cell {
        padding-right: 14px !important;
        padding-left: 48px !important;
    }
}


/* ============================================================
   CART RTL — COMPLETE OVERHAUL  (final, highest priority)
   
   Design rule applied everywhere:
     direction:rtl already reverses every flex row naturally.
     Adding flex-direction:row-reverse on top = double-reversal
     = identical to LTR.  FIX: use row (or row !important to
     win over previous row-reverse passes) on all flex rows
     that live inside a direction:rtl context.
   ============================================================ */

/* ── 1. Root context ──────────────────────────────────────── */
[dir="rtl"] .cart-page,
[dir="rtl"] .cart-layout,
[dir="rtl"] .cart-left,
[dir="rtl"] .cart-table-wrap,
[dir="rtl"] .cart-table          { direction: rtl !important; }


/* ── 2. Desktop table header ──────────────────────────────── */
[dir="rtl"] .cart-table thead th            { text-align: right !important; }
[dir="rtl"] .cart-table thead .th-qty       { text-align: center !important; }
[dir="rtl"] .cart-table thead .th-total     { text-align: left  !important; }
[dir="rtl"] .cart-table thead .th-remove    { text-align: center !important; }


/* ── 3. Product cell (desktop + mobile) ───────────────────── */
/* direction:rtl → first child (image) naturally goes RIGHT.
   Do NOT add row-reverse — that undoes the RTL reversal.     */
[dir="rtl"] .cart-product {
    flex-direction: row !important;
}
[dir="rtl"] .cart-product-name,
[dir="rtl"] .cart-product-sub {
    text-align: right !important;
    direction: rtl !important;
}


/* ── 4. Desktop data cells ─────────────────────────────────── */
[dir="rtl"] .cart-price-cell  { text-align: right !important; direction: rtl !important; }
[dir="rtl"] .cart-qty-cell    { text-align: center !important; }
[dir="rtl"] .cart-total-cell  { text-align: left !important; }
[dir="rtl"] .cart-remove-cell { text-align: center !important; }

/* Qty +/- selector: intentional explicit reversal of button order */
[dir="rtl"] .cart-qty { flex-direction: row-reverse !important; }


/* ── 5. Table footer ──────────────────────────────────────── */
[dir="rtl"] .cart-table-footer { text-align: right !important; }
[dir="rtl"] .cart-continue {
    flex-direction: row !important;   /* direction:rtl handles reversal */
    text-align: right !important;
}


/* ── 6. Summary card ──────────────────────────────────────── */
[dir="rtl"] .cart-summary-card,
[dir="rtl"] .cart-summary-card * { direction: rtl; }

[dir="rtl"] .cart-summary-title { text-align: right !important; }

/* summary-row: direction:rtl makes label appear on RIGHT, value on LEFT.
   Remove old row-reverse that was causing double-reversal.             */
[dir="rtl"] .summary-row {
    flex-direction: row !important;
    text-align: right !important;
}

[dir="rtl"] .cart-shipping-title { text-align: right !important; }

/* shipping-opt: radio → right, label → middle, price → left via direction:rtl */
[dir="rtl"] .shipping-opt {
    flex-direction: row !important;
    text-align: right !important;
}
[dir="rtl"] .shipping-price {
    margin-left: 0 !important;
    margin-right: auto !important;
}

/* coupon: input → right, button → left via direction:rtl */
[dir="rtl"] .coupon-wrap  { direction: rtl !important; }
[dir="rtl"] .coupon-row   { flex-direction: row !important; }
[dir="rtl"] .coupon-input { text-align: right !important; direction: rtl !important; }
[dir="rtl"] .coupon-msg   { text-align: right !important; direction: rtl !important; }
[dir="rtl"] .coupon-btn   { flex-direction: row-reverse !important; }

[dir="rtl"] .cart-empty { direction: rtl !important; text-align: right !important; }


/* ── 7. Mobile card layout ────────────────────────────────── */
@media (max-width: 768px) {

    /* Card container */
    [dir="rtl"] .cart-row {
        direction: rtl !important;
        position: relative !important;
    }

    /* Product cell: padding on the RIGHT for the absolute remove button */
    [dir="rtl"] .cart-product-cell {
        direction: rtl !important;
        padding-right: 48px !important;
        padding-left: 14px !important;
    }

    /* Product image/info flex row */
    [dir="rtl"] .cart-product {
        flex-direction: row !important;
        direction: rtl !important;
    }

    [dir="rtl"] .cart-product-name,
    [dir="rtl"] .cart-product-sub {
        text-align: right !important;
        direction: rtl !important;
    }

    /* Data rows: direction:rtl makes ::before label appear on the right,
       value on the left — no row-reverse needed.                        */
    [dir="rtl"] .cart-price-cell,
    [dir="rtl"] .cart-qty-cell,
    [dir="rtl"] .cart-total-cell {
        flex-direction: row !important;
        direction: rtl !important;
        text-align: right !important;
    }

    /* Translated mobile labels — Arabic */
    [lang="ar"] .cart-price-cell::before { content: "السعر · " !important; }
    [lang="ar"] .cart-qty-cell::before   { content: "الكمية · " !important; }
    [lang="ar"] .cart-total-cell::before { content: "الإجمالي · " !important; }

    /* Translated mobile labels — Hebrew */
    [lang="he"] .cart-price-cell::before { content: "\05DE\05D7\05D9\05E8 \00B7 " !important; }
    [lang="he"] .cart-qty-cell::before   { content: "\05DB\05DE\05D5\05EA \00B7 " !important; }
    [lang="he"] .cart-total-cell::before { content: "\05E1\05D4\05DB \00B7 " !important; }

    /* Remove button: top-RIGHT corner in RTL
       (image is on the right side; button sits at same corner)          */
    [dir="rtl"] .cart-remove-cell {
        position: absolute !important;
        top: 12px !important;
        right: 12px !important;
        left: auto !important;
        padding: 0 !important;
        border: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 28px !important;
        height: 28px !important;
        background: transparent !important;
    }

    /* Mobile summary */
    [dir="rtl"] .cart-summary-card   { direction: rtl !important; }
    [dir="rtl"] .summary-row         { flex-direction: row !important; }
    [dir="rtl"] .cart-summary-title  { text-align: right !important; }
    [dir="rtl"] .cart-shipping-title { text-align: right !important; }
    [dir="rtl"] .shipping-opt        { flex-direction: row !important; }
    [dir="rtl"] .shipping-price      { margin-left: 0 !important; margin-right: auto !important; }
    [dir="rtl"] .coupon-row          { flex-direction: row !important; }
    [dir="rtl"] .coupon-input        { text-align: right !important; direction: rtl !important; }
}


/* ============================================================
   CART RTL — FINAL TARGETED FIX
   Uses html[dir="rtl"] (extra type-selector) to guarantee
   specificity over every previous [dir="rtl"] rule.
   ============================================================ */

/* ── Remove button: top-LEFT corner in RTL ─────────────────── */
/* Placed on the LEFT so it is visually separated from the      */
/* product image which sits on the RIGHT in RTL layout.         */
@media (max-width: 768px) {

    html[dir="rtl"] .cart-remove-cell {
        position: absolute !important;
        top: 12px !important;
        left:  12px !important;   /* physical left — away from the image */
        right: auto !important;   /* clear any previous right:12px */
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width:  28px !important;
        height: 28px !important;
    }

    /* Product cell: reserve space on the physical LEFT for the button */
    html[dir="rtl"] .cart-product-cell {
        padding-left:  48px !important;
        padding-right: 14px !important;
    }
}

/* ── Coupon section ─────────────────────────────────────────── */

/* Desktop: direction:rtl cascades; input on right, button on left */
html[dir="rtl"] .coupon-wrap {
    direction: rtl !important;
}

html[dir="rtl"] .coupon-row {
    display: flex !important;
    flex-direction: row !important;
    gap: 10px !important;
    align-items: stretch !important;
}

html[dir="rtl"] .coupon-input {
    flex: 1 !important;
    text-align: right !important;
    direction: rtl !important;
    border-radius: 2px !important;
}

html[dir="rtl"] .coupon-btn {
    flex-shrink: 0 !important;
    border-radius: 2px !important;
}

html[dir="rtl"] .coupon-msg {
    text-align: right !important;
    direction: rtl !important;
}

/* Mobile: stack vertically, both elements full-width, right-aligned */
@media (max-width: 768px) {

    html[dir="rtl"] .coupon-row {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    html[dir="rtl"] .coupon-input {
        width: 100% !important;
        text-align: right !important;
    }

    html[dir="rtl"] .coupon-btn {
        width: 100% !important;
        justify-content: center !important;
    }
}


/* ============================================================
   PRODUCT DETAILS PAGE — Full RTL Layout
   ============================================================ */

[dir="rtl"] .pd-breadcrumb     { direction: rtl; }
[dir="rtl"] .breadcrumb-nav    { flex-direction: row-reverse !important; text-align: right; }
[dir="rtl"] .breadcrumb-nav a,
[dir="rtl"] .breadcrumb-nav span { direction: rtl; }

/* Eyebrow */
[dir="rtl"] .pd-info .eyebrow  { text-align: right; }

/* Title, subtitle, price */
[dir="rtl"] .pd-title          { text-align: right !important; direction: rtl !important; }
[dir="rtl"] .pd-sub            { text-align: right !important; direction: rtl !important; }
[dir="rtl"] .pd-price-row      { flex-direction: row-reverse !important; }
[dir="rtl"] .pd-vat            { text-align: right; }

/* Description */
[dir="rtl"] .pd-description    { text-align: right !important; direction: rtl !important; }

/* Specs table: value on left, label on right */
[dir="rtl"] .pd-specs          { direction: rtl; }
[dir="rtl"] .pd-spec           { flex-direction: row-reverse !important; }
[dir="rtl"] .spec-label        { text-align: right !important; }
[dir="rtl"] .spec-value        { text-align: left !important; }

/* Actions: qty selector + button */
[dir="rtl"] .pd-actions        { flex-direction: row-reverse !important; }
[dir="rtl"] .qty-selector      { flex-direction: row-reverse !important; }
[dir="rtl"] .qty-value         { border-left: 1px solid var(--line) !important; border-right: 1px solid var(--line) !important; }

/* Delivery note */
[dir="rtl"] .pd-delivery-note  { flex-direction: row-reverse !important; text-align: right !important; direction: rtl !important; }

/* Accordions */
[dir="rtl"] .pd-accordion-trigger { flex-direction: row-reverse !important; text-align: right !important; }
[dir="rtl"] .pd-accordion-body p  { text-align: right !important; direction: rtl !important; }

/* Product tag: flip to right side for RTL */
[dir="rtl"] .pd-main-image .product-tag {
    left:  auto !important;
    right: 20px !important;
}

/* Gallery thumbnails */
[dir="rtl"] .pd-thumbnails     { direction: rtl; }

/* Related section */
[dir="rtl"] .pd-related .section-head { direction: rtl; }
[dir="rtl"] .pd-related .side         { text-align: right !important; direction: rtl !important; }

/* Mobile layout */
@media (max-width: 960px) {
    [dir="rtl"] .pd-layout      { direction: rtl; }
    [dir="rtl"] .pd-info        { direction: rtl; text-align: right; }
    [dir="rtl"] .pd-actions     { flex-direction: column !important; align-items: flex-end !important; }
}
