/* ==============================================
   BaytHaus — Apple-style Design System
   ============================================== */

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

.skip-link {
    position: fixed;
    z-index: 10000;
    top: 10px;
    left: 10px;
    transform: translateY(-160%);
    padding: 10px 14px;
    border-radius: var(--radius-md, 10px);
    background: #173a32;
    color: #fff;
    box-shadow: var(--shadow-lg, 0 10px 28px rgba(0, 0, 0, 0.18));
    transition: transform 160ms ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.whatsapp-float:focus-visible,
.privacy-banner button:focus-visible,
.footer-legal a:focus-visible,
.footer-legal button:focus-visible {
    outline: 3px solid rgba(37, 211, 102, 0.55);
    outline-offset: 3px;
}

.footer-legal {
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
    font-size: var(--text-xxs);
}

.footer-legal a,
.footer-legal button {
    color: var(--text-tertiary);
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.privacy-banner {
    position: fixed;
    z-index: 3000;
    left: 20px;
    right: 20px;
    bottom: 20px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 18px 22px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.privacy-banner p {
    margin: 5px 0 0;
    max-width: 680px;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.55;
}

.privacy-banner-actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.privacy-banner-actions button:first-child {
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: transparent;
    padding: 10px 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.legal-page {
    min-height: 100vh;
    background: var(--bg-secondary);
}

.legal-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 24px;
    color: var(--text-primary);
}

.legal-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.legal-toolbar > a,
.legal-related a {
    color: var(--accent);
    font-weight: 650;
    text-decoration: none;
}

.legal-language-switch {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.legal-language-switch button {
    border: 0;
    border-radius: 999px;
    padding: 7px 10px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.legal-language-switch button.active {
    background: var(--text-primary);
    color: #fff;
}

.legal-language-switch button:focus-visible,
.legal-toolbar a:focus-visible,
.error-btn:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline-offset: 3px;
}

.legal-updated {
    font-size: var(--text-xs);
}

.legal-related {
    margin-top: 36px;
}

[dir="rtl"] .legal-content {
    text-align: right;
}

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

.legal-content h1 { margin: 24px 0 8px; }
.legal-content h2 { margin: 32px 0 8px; font-size: var(--text-lg); }
.legal-content p { color: var(--text-secondary); line-height: 1.75; }

@media (max-width: 680px) {
    .privacy-banner { left: 12px; right: 12px; bottom: 12px; display: block; }
    .privacy-banner-actions { margin-top: 14px; justify-content: flex-end; }
    .legal-content { padding: 40px 20px 56px; }
    .legal-toolbar { align-items: flex-start; }
    .legal-language-switch { flex-wrap: wrap; justify-content: flex-end; }
}

:root {
    /* BaytHaus commercial palette */
    --bg-primary:    #ffffff;
    --bg-secondary:  #f5f7f6;
    --bg-tertiary:   #fbfaf8;
    --bg-surface:    #f8faf9;
    --text-primary:  #18211f;
    --text-secondary:#5f6f6b;
    --text-tertiary: #87928f;
    --accent:        #0f766e;
    --accent-hover:  #0a5f59;
    --accent-warm:   #bd7a2d;
    --accent-blue:   #2563eb;
    --accent-green:  #16a34a;
    --border:        #cfd9d5;
    --border-light:  #e2e8e5;
    --border-medium: #cbd5d1;

    /* Layout */
    --nav-height:    52px;
    --max-width:     1180px;
    --radius-sm:     6px;
    --radius:        8px;
    --radius-lg:     8px;
    --radius-pill:   980px;
    --section-gap:   96px;

    /* Shadows — Apple-style: very subtle */
    --shadow-sm:     0 1px 2px rgba(11,31,26,0.04);
    --shadow:        0 10px 24px rgba(11,31,26,0.08);
    --shadow-lg:     0 22px 54px rgba(11,31,26,0.12);
    --shadow-xl:     0 36px 80px rgba(11,31,26,0.18);

    /* Typography scale (Apple-like) */
    --text-xxs:      0.75rem;   /* 12px */
    --text-xs:       0.8125rem; /* 13px */
    --text-sm:       0.875rem;  /* 14px */
    --text-base:     1.0625rem; /* 17px */
    --text-md:       1.1875rem; /* 19px */
    --text-lg:       1.3125rem; /* 21px */
    --text-xl:       1.75rem;   /* 28px */
    --text-2xl:      2.5rem;    /* 40px */
    --text-3xl:      3rem;      /* 48px */
    --text-4xl:      3.5rem;    /* 56px */
    --text-5xl:      4rem;      /* 64px */

    --leading-tight: 1.1;
    --leading-normal:1.47;
    --leading-relaxed:1.6;
    --tracking-tight:0;
    --tracking-normal:0;

    /* Transitions */
    --ease-out:      cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);

    /* Scroll animation offset */
    --scroll-offset: 100px;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
                 "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background: var(--bg-primary);
    line-height: var(--leading-normal);
    letter-spacing: var(--tracking-normal);
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: var(--accent); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

/* ---------- Navigation — Apple frosted glass ---------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: none;
    transition: background 0.4s var(--ease-out);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0;
    white-space: nowrap;
}

.logo span {
    color: var(--accent);
    font-weight: 700;
}

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

.nav a {
    font-size: var(--text-xs);
    font-weight: 400;
    color: var(--text-secondary);
    transition: color 0.2s var(--ease-out);
    position: relative;
    padding: 4px 0;
    letter-spacing: 0;
}

.nav a:hover {
    color: var(--text-primary);
}

.lang-switch {
    display: flex;
    gap: 2px;
    background: rgba(0,0,0,0.04);
    border-radius: var(--radius-pill);
    padding: 2px;
    margin-left: 4px;
}

.lang-switch button {
    padding: 5px 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.2s var(--ease-out);
    font-family: inherit;
    border-radius: var(--radius-pill);
    line-height: 1.4;
}

.lang-switch button.active {
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.lang-switch button:hover:not(.active) {
    color: var(--text-primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex: 0 0 auto;
}

.form-botcheck {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
}

.mobile-menu-btn span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text-primary);
    margin: 5px 0;
    transition: 0.3s;
    border-radius: 1px;
}

/* ---------- Hero — Apple keynote style ---------- */
.hero {
    margin-top: var(--nav-height);
    --hero-image: none;
    background: #101815;
    color: #fff;
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-image);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(3, 10, 8, 0.42);
    pointer-events: none;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: center;
    max-width: 720px;
}

.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    padding: 6px 20px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    font-weight: 500;
    margin-bottom: 28px;
    backdrop-filter: blur(10px);
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: var(--text-5xl);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: 0;
    margin-bottom: 24px;
    color: #fff;
}

.hero-title span {
    display: block;
}

.hero-title span:not(:first-child) {
    color: #2997ff;
    font-size: 1.8rem;
    font-weight: 500;
    letter-spacing: 0;
    margin-top: 6px;
}

.hero-desc {
    font-size: var(--text-lg);
    color: rgba(255,255,255,0.65);
    margin-bottom: 32px;
    line-height: var(--leading-relaxed);
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons — Apple pill style */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    border: none;
    font-family: inherit;
    letter-spacing: 0;
    min-width: 140px;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: #2997ff;
    border: 1px solid rgba(41,151,255,0.4);
}

.btn-outline:hover {
    background: rgba(41,151,255,0.1);
    border-color: #2997ff;
}

/* Hero stats */
.hero-stats {
    display: flex;
    gap: 40px;
    justify-content: center;
    width: 100%;
}

.stat-card {
    text-align: center;
    padding: 0 32px;
    border-right: 1px solid rgba(255,255,255,0.12);
}

.stat-card:last-child {
    border-right: none;
}

.stat-num {
    font-size: var(--text-3xl);
    font-weight: 600;
    background: linear-gradient(180deg, #2997ff 0%, #a3d0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    letter-spacing: 0;
}

.stat-label {
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.55);
    margin-top: 6px;
    display: block;
    font-weight: 400;
}

/* ---------- Section Common ---------- */
.section {
    padding: var(--section-gap) 0;
}

.section-dark {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    display: inline-block;
    color: var(--accent);
    font-weight: 600;
    font-size: var(--text-xs);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.section-desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: var(--leading-relaxed);
}

/* ---------- Category Pills (ebarza-style horizontal scroll) ---------- */
.cat-pills {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 0 8px;
    margin-bottom: 40px;
    justify-content: center;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.cat-pills::-webkit-scrollbar { display: none; }

.cat-pill {
    flex-shrink: 0;
    padding: 10px 24px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0;
}
.cat-pill:hover {
    border-color: var(--text-primary);
    color: var(--text-primary);
    background: var(--bg-secondary);
}
.cat-pill.active {
    background: var(--text-primary);
    color: #fff;
    border-color: var(--text-primary);
}

/* ---------- Products Grid — ebarza-inspired cards ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-card {
    background: var(--bg-primary);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: none;
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--ease-spring);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: transparent;
}

.product-img {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-card-media-link {
    position: relative;
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: inherit;
    text-decoration: none;
}

.product-card-title-link {
    display: block;
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color var(--motion-fast, 180ms) ease;
}

.product-card-title-link:hover {
    color: var(--accent);
}

.product-card-media-link:focus-visible {
    z-index: 1;
    outline: none;
    box-shadow: inset 0 0 0 3px rgba(15, 118, 110, 0.58);
}

.product-card-title-link:focus-visible {
    outline: none;
    border-radius: 3px;
    box-shadow: var(--motion-focus, 0 0 0 3px rgba(15, 118, 110, 0.18));
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-spring);
}
.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-img.sofas    { background: linear-gradient(160deg, #fef3e8, #fde4d0); }
.product-img.beds     { background: linear-gradient(160deg, #f0ebe4, #e8dcc8); }
.product-img.mattresses{ background: linear-gradient(160deg, #e8f0fe, #d2e3fc); }
.product-img.tables   { background: linear-gradient(160deg, #f3e8f6, #e8d5f2); }
.product-img.curtains { background: linear-gradient(160deg, #e8f5e9, #c8e6c9); }
.product-img.cabinets { background: linear-gradient(160deg, #fff3e0, #ffe0b2); }

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.product-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.product-body h3 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: var(--tracking-tight);
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-body p {
    font-size: var(--text-xs);
    color: var(--text-secondary);
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.product-price-hint {
    display: inline-block;
    color: var(--accent);
    padding: 0;
    font-size: var(--text-xs);
    font-weight: 600;
    margin-top: 8px;
}

.product-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.product-tag {
    display: inline-block;
    padding: 2px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-pill);
    font-size: var(--text-xxs);
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ---------- Advantages — Apple feature tiles ---------- */
.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.advantage-card {
    text-align: center;
    padding: 48px 24px 40px;
    background: transparent;
    border-radius: var(--radius-lg);
    box-shadow: none;
    transition: background 0.3s var(--ease-out);
}

.advantage-card:hover {
    transform: none;
    box-shadow: none;
    background: var(--bg-secondary);
}

.advantage-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.advantage-card h3 {
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: var(--tracking-tight);
}

.advantage-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 200px;
    margin: 0 auto;
}

/* ---------- Showroom ---------- */
.showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.showcase-content h2 {
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.showcase-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: var(--leading-relaxed);
    font-size: var(--text-base);
}

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

.showcase-img {
    background: var(--bg-tertiary);
    border-radius: var(--radius);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-sm);
    color: var(--text-tertiary);
    border: 1px solid var(--border-light);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    overflow: hidden;
    position: relative;
    isolation: isolate;
}

.showcase-img::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 18, 15, 0.26);
    z-index: 0;
}

.showcase-img span {
    position: relative;
    z-index: 1;
    padding: 5px 9px;
    border-radius: 5px;
    background: rgba(10, 18, 15, 0.66);
    color: #fff;
    font-size: var(--text-xxs);
    font-weight: 600;
}

.showcase-img.main {
    grid-column: 1 / -1;
    height: 200px;
}

/* ---------- Saudi local support ---------- */
.saudi-presence {
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 8%, rgba(186, 146, 81, 0.12), transparent 31%),
        linear-gradient(180deg, #f8faf8 0%, #f2f6f3 100%);
}

.saudi-presence-head {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    gap: clamp(36px, 6vw, 92px);
    align-items: end;
    margin-bottom: 38px;
}

.saudi-presence-intro {
    max-width: 780px;
}

.saudi-presence-intro h2 {
    max-width: 760px;
    margin: 12px 0 18px;
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 3.7rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.saudi-presence-intro p,
.saudi-presence-visit p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.8;
}

.saudi-presence-visit {
    padding: 24px;
    border: 1px solid rgba(20, 83, 69, 0.13);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 18px 50px rgba(25, 55, 47, 0.07);
    backdrop-filter: blur(12px);
}

.saudi-location-line {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    color: var(--accent-hover);
}

.saudi-location-line > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #c89c5b;
    box-shadow: 0 0 0 6px rgba(200, 156, 91, 0.13);
}

.saudi-location-line strong {
    font-size: var(--text-sm);
    letter-spacing: 0.015em;
}

.saudi-presence-visit .btn {
    margin-top: 20px;
}

.saudi-gallery {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    grid-template-rows: repeat(2, minmax(230px, 1fr));
    gap: 14px;
    min-height: 650px;
}

.saudi-gallery-card {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(19, 45, 38, 0.11);
    border-radius: 18px;
    background: #dfe7e2;
    box-shadow: 0 14px 38px rgba(19, 45, 38, 0.09);
    isolation: isolate;
}

.saudi-gallery-card-primary {
    grid-row: 1 / 3;
}

.saudi-gallery-card::after {
    content: '';
    position: absolute;
    z-index: 1;
    inset: 44% 0 0;
    background: linear-gradient(180deg, transparent, rgba(4, 12, 10, 0.74));
    pointer-events: none;
}

.saudi-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 56%;
    transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1), filter 500ms ease;
}

.saudi-gallery-card:nth-child(2) img {
    object-position: 48% 52%;
}

.saudi-gallery-card:nth-child(3) img {
    object-position: 50% 50%;
}

.saudi-gallery-card:hover img {
    transform: scale(1.018);
    filter: saturate(1.03) contrast(1.015);
}

.saudi-gallery-card figcaption {
    position: absolute;
    z-index: 2;
    inset-inline: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    padding: clamp(18px, 2.4vw, 30px);
    color: #fff;
}

.saudi-gallery-card figcaption strong,
.saudi-gallery-card figcaption span {
    display: block;
}

.saudi-gallery-card figcaption strong {
    max-width: 68%;
    font-size: clamp(1rem, 1.5vw, 1.32rem);
    font-weight: 680;
    line-height: 1.25;
}

.saudi-gallery-card figcaption span {
    max-width: 38%;
    color: rgba(255, 255, 255, 0.74);
    font-size: 11px;
    line-height: 1.35;
    text-align: end;
}

/* ---------- Markets ---------- */
.markets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.market-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--ease-spring);
}

.market-card:hover {
    box-shadow: var(--shadow);
}

.market-card h3 {
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-bottom: 6px;
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

.market-card .market-sub {
    color: var(--accent);
    font-weight: 500;
    font-size: var(--text-sm);
    margin-bottom: 16px;
    display: block;
}

.market-card p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    font-size: var(--text-base);
}

.market-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.market-tag {
    background: var(--bg-secondary);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

/* ---------- Cooperation Cards ---------- */
.coop-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.coop-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--ease-spring);
}

.coop-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.coop-card h3 {
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

.coop-card p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

/* ---------- Inquiry Section ---------- */
.inquiry {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

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

.inquiry-info h2 {
    font-size: var(--text-2xl);
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: var(--tracking-tight);
    color: var(--text-primary);
}

.inquiry-info p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: 32px;
    font-size: var(--text-base);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
    color: var(--text-primary);
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.contact-item span:last-child {
    margin-left: auto;
    font-weight: 500;
}

.inquiry-form {
    background: var(--bg-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.inquiry-form h3 {
    color: var(--text-primary);
    font-size: var(--text-xl);
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    font-size: var(--text-base);
    font-family: inherit;
    color: var(--text-primary);
    transition: all 0.2s var(--ease-out);
    background: var(--bg-primary);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-tertiary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    height: 120px;
    resize: vertical;
}

.form-submit {
    width: 100%;
    padding: 15px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: var(--text-base);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-spring);
    font-family: inherit;
    letter-spacing: 0;
}

.form-submit:hover {
    background: var(--accent-hover);
    transform: scale(1.01);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 60px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand h3 {
    color: var(--text-primary);
    font-size: var(--text-md);
    margin-bottom: 14px;
    font-weight: 600;
}

.footer-brand p {
    font-size: var(--text-sm);
    line-height: var(--leading-relaxed);
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: var(--text-sm);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-col a {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-bottom: 10px;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
}

.footer-badges {
    display: flex;
    gap: 14px;
    align-items: center;
}

.footer-badges span {
    font-size: var(--text-xxs);
    color: var(--text-tertiary);
    opacity: 0.8;
    font-weight: 500;
}

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
}

.social-link:hover {
    background: var(--text-primary);
    border-color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.footer-address {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: 8px;
    line-height: 1.6;
}

.footer-address strong {
    color: var(--text-secondary);
    font-weight: 600;
}

.footer-address span {
    display: block;
    font-size: var(--text-xxs);
    margin-top: 1px;
}

/* ---------- Floating Elements ---------- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 52px;
    height: 52px;
    background: #25D366;
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: white;
    border: 0;
    padding: 0;
    font-family: inherit;
    box-shadow: 0 2px 16px rgba(37,211,102,0.25);
    cursor: pointer;
    z-index: 999;
    transition: all 0.3s var(--ease-spring);
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 4px 24px rgba(37,211,102,0.35);
}

/* ---------- WhatsApp Popup ---------- */
.whatsapp-popup {
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 320px;
    max-height: 480px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.95);
    transition: all 0.3s var(--ease-spring);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.whatsapp-popup.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.whatsapp-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #075e54;
    color: #fff;
    flex-shrink: 0;
}

.whatsapp-popup-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-popup-icon {
    font-size: 1.3rem;
}

.whatsapp-popup-title {
    font-size: var(--text-sm);
    font-weight: 600;
}

.whatsapp-popup-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.whatsapp-popup-close:hover {
    background: rgba(255,255,255,0.25);
}

.whatsapp-popup-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px;
}

.whatsapp-popup-footer {
    padding: 10px 20px;
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
}

.whatsapp-popup-hint {
    font-size: var(--text-xxs);
    color: var(--text-tertiary);
}

.whatsapp-preset {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    color: var(--text-primary);
    text-decoration: none;
    transition: background 0.2s;
    font-weight: 500;
}

.whatsapp-preset:hover {
    background: #dcf8c6;
    color: var(--text-primary);
}

.whatsapp-preset-arrow {
    opacity: 0;
    transform: translateX(-4px);
    transition: all 0.2s;
    color: var(--text-tertiary);
}

.whatsapp-preset:hover .whatsapp-preset-arrow {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-empty {
    text-align: center;
    padding: 32px 20px;
    color: var(--text-secondary);
}

/* ---------- Form Message ---------- */
.form-message {
    margin-top: 16px;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    text-align: center;
    transition: opacity 0.3s;
}

.form-message-success {
    background: rgba(52,199,89,0.08);
    color: #34c759;
    border: 1px solid rgba(52,199,89,0.2);
}

.form-message-error {
    background: rgba(255,59,48,0.08);
    color: #ff3b30;
    border: 1px solid rgba(255,59,48,0.2);
}

.form-message-info {
    background: rgba(0,113,227,0.08);
    color: var(--accent);
    border: 1px solid rgba(0,113,227,0.2);
}

/* ==============================================
   Product Detail Page (product.html)
   ============================================== */

/* ---------- Product Hero ---------- */
.product-hero {
    margin-top: var(--nav-height);
    background: var(--bg-secondary);
    padding: 80px 0 64px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.product-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.back-link {
    display: inline-block;
    font-size: var(--text-xs);
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 32px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.back-link:hover {
    opacity: 0.7;
}

.product-hero-content {
    max-width: 600px;
    margin: 0 auto;
}

.product-hero-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.product-hero-content h1 {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
    letter-spacing: var(--tracking-tight);
    line-height: var(--leading-tight);
}

.product-hero-content p {
    font-size: var(--text-md);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    max-width: 480px;
    margin: 0 auto 24px;
}

.product-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.hero-stat {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.hero-stat strong {
    color: var(--text-primary);
    font-weight: 600;
    margin-left: 4px;
}

/* ---------- Product Detail Grid ---------- */
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.product-detail-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: all 0.4s var(--ease-spring);
    display: flex;
    flex-direction: column;
}

.product-detail-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.product-detail-media {
    position: relative;
}

.product-detail-img {
    height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    position: relative;
    overflow: hidden;
}

.product-detail-img img,
.product-detail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-detail-img.sofas    { background: linear-gradient(160deg, #fef3e8, #fde4d0); }
.product-detail-img.beds     { background: linear-gradient(160deg, #f0ebe4, #e8dcc8); }
.product-detail-img.mattresses{ background: linear-gradient(160deg, #e8f0fe, #d2e3fc); }
.product-detail-img.tables   { background: linear-gradient(160deg, #f3e8f6, #e8d5f2); }
.product-detail-img.curtains { background: linear-gradient(160deg, #e8f5e9, #c8e6c9); }
.product-detail-img.cabinets { background: linear-gradient(160deg, #fff3e0, #ffe0b2); }

.product-video-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border-radius: var(--radius-pill);
    font-size: 10px;
    font-weight: 600;
    backdrop-filter: blur(6px);
}

.product-video-play {
    position: absolute;
    bottom: 12px;
    left: 12px;
    padding: 8px 16px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: var(--text-xxs);
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s;
    font-family: inherit;
}

.product-video-play:hover {
    background: rgba(0,0,0,0.8);
}

.product-detail-body {
    padding: 28px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-detail-body h3 {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    letter-spacing: var(--tracking-tight);
}

.product-detail-body p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
    flex: 1;
}

.product-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0;
}

.product-detail-tag {
    padding: 4px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-pill);
    font-size: var(--text-xxs);
    color: var(--text-tertiary);
    font-weight: 500;
}

.product-detail-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.product-detail-actions .btn {
    flex: 1;
    font-size: var(--text-sm);
    padding: 12px 20px;
}

/* ---------- Sub-Category Filter Bar ---------- */
.subcat-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
    padding: 4px;
}

.subcat-tag {
    padding: 8px 18px;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-pill);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s var(--ease-spring);
    white-space: nowrap;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.subcat-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0,113,227,0.04);
}

.subcat-tag.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.subcat-tag.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.subcat-count {
    font-size: var(--text-xxs);
    opacity: 0.7;
    background: rgba(0,0,0,0.06);
    padding: 1px 7px;
    border-radius: var(--radius-pill);
}

.subcat-tag.active .subcat-count {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* ---------- Product Layout: Sidebar + Main ---------- */
.product-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

/* ---------- Category Sidebar ---------- */
.category-sidebar {
    position: sticky;
    top: calc(var(--nav-height) + 24px);
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 20px 0;
    overflow: hidden;
}

.cat-sidebar-title {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0 20px 14px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 6px;
}

.cat-sidebar-nav {
    display: flex;
    flex-direction: column;
}

.cat-sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s var(--ease-out);
    border-left: 3px solid transparent;
    white-space: nowrap;
    background: transparent;
    border-top: none;
    border-right: none;
    border-bottom: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    width: 100%;
}

.cat-sidebar-link:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.cat-sidebar-link.disabled {
    opacity: 0.38;
    cursor: not-allowed;
}

.cat-sidebar-link.active {
    background: rgba(0,113,227,0.06);
    color: var(--accent);
    border-left-color: var(--accent);
    font-weight: 600;
}

.cat-sidebar-emoji {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.cat-sidebar-count {
    margin-left: auto;
    font-size: var(--text-xxs);
    color: var(--text-tertiary);
    background: var(--bg-secondary);
    padding: 1px 7px;
    border-radius: var(--radius-pill);
    font-weight: 500;
}

.cat-sidebar-link.active .cat-sidebar-count {
    background: rgba(0,113,227,0.12);
    color: var(--accent);
}

/* ---------- Category Pills: Scroll Shadow ---------- */
.cat-pills-wrapper {
    position: relative;
    margin-bottom: 40px;
}

.cat-pills {
    /* existing styles unchanged */
}

/* Scroll shadow indicators */
.cat-pills-wrapper::before,
.cat-pills-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 24px;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.cat-pills-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.cat-pills-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.cat-pills-wrapper.has-overflow-left::before { opacity: 1; }
.cat-pills-wrapper.has-overflow-right::after { opacity: 1; }

.subcat-tag.active .subcat-count {
    background: rgba(255,255,255,0.2);
    opacity: 1;
}

/* ---------- Product Detail RTL ---------- */
[dir="rtl"] .product-hero-content {
    text-align: center;
}

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

[dir="rtl"] .product-video-tag {
    right: auto;
    left: 12px;
}

[dir="rtl"] .product-video-play {
    left: auto;
    right: 12px;
}

[dir="rtl"] .hero-stat strong {
    margin-left: 0;
    margin-right: 4px;
}

/* ---------- CTA Card ---------- */
.cta-card {
    text-align: center;
    padding: 64px 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
}

.cta-card h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: var(--tracking-tight);
}

.cta-card p {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 32px;
    line-height: var(--leading-relaxed);
}

.cta-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Product Detail Responsive ---------- */
@media (max-width: 768px) {
    .product-hero {
        padding: 60px 0 48px;
    }

    .product-hero-content h1 {
        font-size: var(--text-2xl);
    }

    .product-hero-content p {
        font-size: var(--text-base);
    }

    .product-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .category-sidebar {
        position: static;
        padding: 12px 0;
        border-radius: var(--radius-sm);
    }

    .cat-sidebar-title {
        display: none;
    }

    .cat-sidebar-nav {
        flex-direction: row;
        overflow-x: auto;
        gap: 4px;
        padding: 0 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .cat-sidebar-nav::-webkit-scrollbar { display: none; }

    .cat-sidebar-link {
        flex-shrink: 0;
        padding: 6px 14px;
        border: 1px solid var(--border-light);
        border-radius: var(--radius-pill);
        border-left-width: 1px;
        font-size: var(--text-xs);
        gap: 6px;
    }

    .cat-sidebar-link.active {
        background: var(--text-primary);
        color: #fff;
        border-color: var(--text-primary);
        border-left-color: var(--text-primary);
    }

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

    .product-detail-img {
        height: 220px;
    }

    .product-detail-body {
        padding: 20px;
    }

    .cta-card {
        padding: 40px 24px;
    }

    .cta-card h2 {
        font-size: var(--text-xl);
    }

    .cta-btns {
        flex-direction: column;
        align-items: center;
    }

    .cta-btns .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* ---------- Catalog photo treatment ---------- */
.products-grid {
    gap: 22px;
}

.product-card {
    background: #fff;
    border-color: #dfe7e3;
    box-shadow: 0 6px 18px rgba(20, 36, 31, 0.05);
}

.product-card:hover {
    border-color: #cbd9d3;
    box-shadow: 0 16px 32px rgba(20, 36, 31, 0.10);
}

.product-img {
    aspect-ratio: 4 / 3;
    height: auto;
    background: #e9e7e2;
}

.product-img img {
    transition: transform 0.5s var(--ease-out);
}

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

.product-badge {
    background: rgba(24, 33, 31, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 5px;
    font-size: 10px;
    letter-spacing: 0.04em;
    padding: 5px 8px;
}

.product-body {
    gap: 8px;
    min-height: 196px;
    padding: 18px;
}

.product-body h3 {
    font-size: var(--text-base);
    line-height: 1.3;
}

.product-body p {
    -webkit-line-clamp: 3;
    font-size: var(--text-xs);
    line-height: 1.55;
}

.product-tags-row {
    gap: 5px;
    margin-top: 3px;
}

.product-tag {
    background: #f4f7f5;
    color: #587069;
}

.product-card-actions {
    align-items: center;
    border-top: 1px solid #edf1ef;
    margin-top: 10px;
    padding-top: 12px;
}

.product-price-hint {
    font-weight: 700;
}

.product-quote-button {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    padding: 9px 12px;
}

.product-quote-button:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
}

.quote-float {
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(15, 118, 110, 0.22);
}

.quote-float:hover {
    background: var(--accent-hover);
}

/* Let the showroom image dissolve into the copy area instead of creating a hard split. */
.hero::before {
    background-position: 64% center;
    filter: saturate(0.9) contrast(0.96);
    transform: scale(1.012);
}

.hero::after {
    background:
        linear-gradient(90deg,
            rgba(5, 12, 10, 0.88) 0%,
            rgba(5, 12, 10, 0.78) 18%,
            rgba(5, 12, 10, 0.61) 36%,
            rgba(5, 12, 10, 0.35) 55%,
            rgba(5, 12, 10, 0.13) 74%,
            rgba(5, 12, 10, 0.02) 100%),
        linear-gradient(0deg, rgba(5, 12, 10, 0.30) 0%, transparent 42%);
}

@media (max-width: 768px) {
    .product-body {
        min-height: auto;
    }

    .product-card-actions {
        align-items: stretch;
    }

    .product-price-hint {
        padding: 8px 0;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 12, 10, 0.86) 0%, rgba(5, 12, 10, 0.62) 68%, rgba(5, 12, 10, 0.34) 100%),
            linear-gradient(0deg, rgba(5, 12, 10, 0.38) 0%, transparent 48%);
    }

    .hero::before {
        background-position: 60% center;
    }
}

.back-to-top {
    position: fixed;
    bottom: 96px;
    right: 30px;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: rgba(255,255,255,0.97);
    backdrop-filter: saturate(180%) blur(30px);
    -webkit-backdrop-filter: saturate(180%) blur(30px);
    z-index: 2000;
    padding: 80px 32px 30px;
    box-shadow: var(--shadow-xl);
    transition: right 0.4s var(--ease-spring);
}

.mobile-nav.open {
    right: 0;
}

.mobile-nav[hidden],
.overlay[hidden] {
    display: none;
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    font-size: var(--text-lg);
    color: var(--text-primary);
    border-bottom: none;
    font-weight: 500;
}

.mobile-nav-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.04);
    border-radius: 50%;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--ease-out);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ---------- Loading Screen ---------- */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}

.loading-screen.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loading-logo {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0;
    margin-bottom: 32px;
}

.loading-logo span {
    color: #2997ff;
}

.loading-bar-track {
    width: 160px;
    height: 3px;
    background: rgba(255,255,255,0.12);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #2997ff, #a3d0ff);
    border-radius: 2px;
    transition: width 0.3s var(--ease-out);
}

.loading-percent {
    margin-top: 16px;
    font-size: var(--text-xs);
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* ---------- Image Lazy Load Placeholder ---------- */
.product-img img,
.product-detail-img img {
    opacity: 0;
    transition: opacity 0.5s var(--ease-out);
}

.product-img img.loaded,
.product-detail-img img.loaded {
    opacity: 1;
}

/* Image placeholder shimmer */
.img-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg,
        var(--bg-secondary) 30%,
        rgba(255,255,255,0.5) 50%,
        var(--bg-secondary) 70%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- 404 Page ---------- */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 24px;
    background:
        radial-gradient(circle at 50% 18%, rgba(28, 100, 78, 0.11), transparent 34%),
        linear-gradient(145deg, #fbf8f2, #f2eee5);
    color: var(--text-primary);
}

.error-code {
    font-size: 8rem;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
    background: linear-gradient(145deg, #164d3c 15%, #78a18e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
}

.error-title {
    font-size: var(--text-2xl);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.error-desc {
    font-size: var(--text-base);
    color: var(--text-secondary);
    max-width: 400px;
    margin: 0 auto 40px;
    line-height: var(--leading-relaxed);
}

.error-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.error-language-switch {
    position: absolute;
    top: 24px;
    right: 24px;
}

[dir="rtl"] .error-language-switch {
    right: auto;
    left: 24px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--text-sm);
    font-weight: 650;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.error-btn:hover {
    transform: translateY(-1px);
}

.error-btn-primary {
    background: #174e3d;
    color: #fff;
}

.error-btn-outline {
    border-color: rgba(23, 78, 61, 0.3);
    background: rgba(255, 255, 255, 0.58);
    color: #174e3d;
}

.local-preview-notice {
    position: fixed;
    z-index: 12000;
    left: 50%;
    bottom: 24px;
    max-width: min(92vw, 520px);
    transform: translate(-50%, 18px);
    padding: 11px 16px;
    border: 1px solid rgba(23, 78, 61, 0.18);
    border-radius: 999px;
    background: rgba(23, 37, 32, 0.94);
    color: #fff;
    box-shadow: var(--shadow-xl);
    font-size: var(--text-xs);
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
}

.local-preview-notice.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-spring), transform 0.8s var(--ease-spring);
}

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

/* ==============================================
   RTL (Arabic) — Apple-style mirror
   ============================================== */
[dir="rtl"] {
    direction: rtl;
}

[dir="rtl"] body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 "Noto Naskh Arabic", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

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

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

[dir="rtl"] .lang-switch {
    margin-left: 0;
    margin-right: 4px;
}

[dir="rtl"] .hero-text {
    text-align: center;
}

[dir="rtl"] .hero-btns {
    justify-content: center;
}

[dir="rtl"] .stat-card {
    border-right: none;
    border-left: 1px solid rgba(255,255,255,0.12);
}

[dir="rtl"] .stat-card:last-child {
    border-left: none;
}

[dir="rtl"] .section-header {
    text-align: center;
}

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

[dir="rtl"] .advantage-card {
    text-align: center;
}

[dir="rtl"] .showcase-content {
    text-align: right;
}

[dir="rtl"] .coop-card {
    text-align: right;
}

[dir="rtl"] .market-card {
    text-align: right;
}

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

[dir="rtl"] .inquiry-form {
    text-align: right;
}

[dir="rtl"] .inquiry-form h3 {
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] .form-group select {
    background-position: left 16px center;
    padding-right: 16px;
    padding-left: 40px;
}

[dir="rtl"] .footer-brand {
    text-align: right;
}

[dir="rtl"] .footer-col {
    text-align: right;
}

[dir="rtl"] .footer-bottom {
    text-align: center;
}

[dir="rtl"] .whatsapp-float {
    right: auto;
    left: 30px;
}

[dir="rtl"] .whatsapp-popup {
    right: auto;
    left: 30px;
}

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

[dir="rtl"] .whatsapp-preset-arrow {
    transform: translateX(4px);
}

[dir="rtl"] .whatsapp-preset:hover .whatsapp-preset-arrow {
    transform: translateX(0);
}

[dir="rtl"] .back-to-top {
    right: auto;
    left: 30px;
}

[dir="rtl"] .mobile-nav {
    right: auto;
    left: -100%;
}

[dir="rtl"] .mobile-nav.open {
    right: auto;
    left: 0;
}

[dir="rtl"] .contact-item span:last-child {
    margin-left: 0;
    margin-right: auto;
}

/* ==============================================
   Responsive
   ============================================== */
@media (max-width: 1024px) {
    :root {
        --section-gap: 80px;
        --text-5xl: 3rem;
        --text-3xl: 2.2rem;
        --text-2xl: 1.8rem;
    }

    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .coop-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { gap: 36px; }
    .hero-stats { gap: 24px; }
    .inquiry-grid { grid-template-columns: 1fr; gap: 48px; }
    .markets-grid { grid-template-columns: 1fr; }
    .showcase { grid-template-columns: 1fr; }
    .saudi-presence-head { grid-template-columns: 1fr; gap: 28px; }
    .saudi-presence-visit { max-width: 720px; }
    .saudi-gallery { grid-template-columns: minmax(0, 1.65fr) minmax(260px, 1fr); min-height: 560px; }

    .hero { padding: 100px 0 80px; }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 48px;
        --section-gap: 64px;
        --text-5xl: 2.4rem;
        --text-3xl: 1.8rem;
        --text-2xl: 1.5rem;
        --text-xl: 1.25rem;
    }

    .header-inner { padding: 0 12px; gap: 6px; }
    .nav { display: none; }
    .logo { min-width: 0; font-size: 1rem; }
    .lang-switch { margin: 0 0 0 auto; flex: 0 0 auto; }
    .lang-switch button { min-width: 36px; padding: 4px 7px; font-size: 11px; }
    .mobile-menu-btn { display: block; flex: 0 0 36px; width: 36px; padding: 8px; }

    .hero { padding: 80px 0 60px; }
    .hero-title span:not(:first-child) { font-size: 1.2rem; }
    .hero-desc { font-size: var(--text-base); }
    .hero-stats { flex-wrap: wrap; gap: 16px; }
    .stat-card { border: none; padding: 0 24px; flex: 1; }
    .stat-num { font-size: var(--text-2xl); }

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

    .advantage-card { padding: 32px 20px 28px; }
    .market-card { padding: 28px; }
    .inquiry-form { padding: 28px; }
    .coop-card { padding: 28px 24px; }
    .saudi-presence-head { margin-bottom: 24px; }
    .saudi-presence-intro h2 { font-size: clamp(1.95rem, 9vw, 2.8rem); }
    .saudi-presence-visit { padding: 20px; border-radius: 14px; }
    .saudi-gallery { display: flex; min-height: 0; flex-direction: column; gap: 12px; }
    .saudi-gallery-card,
    .saudi-gallery-card-primary { width: 100%; aspect-ratio: 16 / 9; border-radius: 14px; }
    .saudi-gallery-card figcaption { padding: 18px; }
    .saudi-gallery-card figcaption strong { max-width: 62%; font-size: 1rem; }
    .saudi-gallery-card figcaption span { max-width: 42%; }

    .whatsapp-float { bottom: 24px; right: 20px; width: 46px; height: 46px; }
    .back-to-top { bottom: 82px; right: 20px; }
    .whatsapp-popup {
        bottom: 78px;
        right: 10px;
        width: calc(100vw - 20px);
        max-width: 320px;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .lang-switch {
        margin-right: auto;
        margin-left: 12px;
    }
    [dir="rtl"] .whatsapp-float {
        left: 20px;
    }
    [dir="rtl"] .whatsapp-popup {
        left: 10px;
        right: auto;
    }
    [dir="rtl"] .back-to-top {
        left: 20px;
    }
}

/* ==============================================
   BaytHaus Commercial Refresh
   ============================================== */
body {
    background: var(--bg-primary);
    letter-spacing: 0;
}

.header {
    background: rgba(255,255,255,0.88);
    border-bottom: 1px solid rgba(226,232,229,0.72);
}

.logo span {
    color: var(--accent);
}

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

.lang-switch {
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.lang-switch button {
    min-width: 44px;
    border-radius: 6px;
}

.lang-switch button.active {
    background: var(--accent);
}

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    padding: 56px 0 0;
    text-align: left;
    background: #101815;
}

.hero::after {
    display: block;
}

.hero-inner {
    align-items: flex-start;
    gap: 36px;
    width: 100%;
}

.hero-text {
    text-align: left;
    width: min(720px, 100%);
    max-width: 720px;
}

.hero-badge {
    border: 1px solid rgba(255,255,255,0.24);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.88);
    border-radius: 6px;
    letter-spacing: 0;
}

.hero-title {
    letter-spacing: 0;
}

.hero-title span:not(:first-child) {
    color: #f1c889;
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    letter-spacing: 0;
}

.hero-desc {
    margin-left: 0;
    margin-right: 0;
    max-width: 700px;
    color: rgba(255,255,255,0.78);
}

.hero-btns {
    justify-content: flex-start;
}

.btn,
.form-submit {
    border-radius: 6px;
}

.btn-primary,
.form-submit {
    background: var(--accent);
}

.btn-primary:hover,
.form-submit:hover {
    background: var(--accent-hover);
}

.btn-outline {
    color: var(--accent);
    border-color: rgba(15,118,110,0.32);
    background: transparent;
}

.btn-outline:hover {
    color: var(--accent-hover);
    border-color: var(--accent);
    background: rgba(15,118,110,0.07);
}

.hero .btn-outline {
    color: #fff;
    border-color: rgba(255,255,255,0.48);
    background: rgba(255,255,255,0.08);
}

.hero .btn-outline:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.16);
}

.hero-stats {
    max-width: 720px;
    justify-content: flex-start;
    gap: 10px;
}

.stat-card {
    min-width: 150px;
    padding: 12px 16px;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    background: rgba(255,255,255,0.10);
    text-align: left;
}

.stat-card:last-child {
    border-right: 1px solid rgba(255,255,255,0.18);
}

.stat-num {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: #fff;
    font-size: var(--text-xl);
}

.stat-label {
    color: rgba(255,255,255,0.72);
}

.section-header {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    color: var(--accent-warm);
    letter-spacing: 0.06em;
}

.products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.product-card,
.market-card,
.coop-card,
.inquiry-form,
.cta-card,
.category-sidebar,
.product-detail-card,
.whatsapp-popup {
    border-radius: 8px;
}

.product-card:hover,
.coop-card:hover,
.product-detail-card:hover {
    transform: translateY(-2px);
}

.product-img {
    height: 260px;
}

.product-body {
    min-height: 182px;
    padding: 18px;
}

.product-price-hint {
    color: var(--accent);
}

.cat-pill,
.market-tag,
.product-tag,
.product-detail-tag,
.subcat-tag {
    border-radius: 6px;
}

.cat-pill.active,
.subcat-tag.active {
    background: var(--accent);
    border-color: var(--accent);
}

.cat-pill:hover,
.subcat-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.advantages-grid {
    gap: 16px;
}

.advantage-card {
    padding: 28px 24px;
    text-align: left;
    border: 1px solid var(--border-light);
    background: var(--bg-primary);
    border-radius: 8px;
}

.advantage-card:hover {
    background: var(--bg-surface);
}

.advantage-icon {
    margin-left: 0;
    margin-right: 0;
    border-radius: 8px;
}

.advantage-card p {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
}

.showcase-img {
    border-radius: 8px;
    background: var(--bg-surface);
}

.market-card,
.coop-card,
.inquiry-form {
    box-shadow: none;
}

.inquiry {
    background: var(--bg-surface);
}

.contact-icon {
    border-radius: 8px;
}

.form-group input,
.form-group select,
.form-group textarea {
    border-radius: 6px;
}

.product-hero {
    background:
        linear-gradient(90deg, rgba(12,23,21,0.86), rgba(12,23,21,0.60)),
        url('../images/products/sofa_leather.jpg') center / cover no-repeat;
    color: #fff;
    text-align: left;
}

.product-hero-content {
    margin: 0;
    max-width: 680px;
}

.product-hero-content h1,
.product-hero-content p,
.hero-stat,
.hero-stat strong {
    color: #fff;
}

.product-hero-icon {
    display: none;
}

.product-hero-stats {
    justify-content: flex-start;
}

.back-link {
    color: #f1c889;
}

.product-layout {
    grid-template-columns: 220px 1fr;
    gap: 28px;
}

.product-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.product-detail-img {
    height: 300px;
}

.product-detail-body {
    padding: 22px;
}

.cta-card {
    box-shadow: none;
}

[dir="rtl"] .hero,
[dir="rtl"] .hero-text,
[dir="rtl"] .stat-card,
[dir="rtl"] .advantage-card,
[dir="rtl"] .product-hero {
    text-align: right;
}

[dir="rtl"] .hero-btns,
[dir="rtl"] .hero-stats,
[dir="rtl"] .product-hero-stats {
    justify-content: flex-start;
}

@media (max-width: 1024px) {
    .hero {
        min-height: auto;
        background: #101815;
    }

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

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

    .category-sidebar {
        position: static;
    }

    .cat-sidebar-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 62px 0 16px;
        min-height: auto;
        background: #101815;
    }

    .hero::before {
        background-position: 62% center;
    }

    .hero-inner {
        gap: 24px;
    }

    .hero-stats {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .stat-card {
        width: 100%;
        min-width: 0;
        padding: 10px 8px;
    }

    .stat-num {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 10px;
        line-height: 1.3;
    }

    .hero-btns,
    .cta-btns {
        width: 100%;
    }

    .hero-btns .btn,
    .cta-btns .btn {
        width: 100%;
    }

    .products-grid,
    .product-detail-grid,
    .cat-sidebar-nav {
        grid-template-columns: 1fr;
    }

    .product-img,
    .product-detail-img {
        height: 240px;
    }

    .product-body {
        min-height: auto;
    }

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

    .lang-switch button {
        padding-left: 9px;
        padding-right: 9px;
        font-size: 12px;
    }
}

/* ---------- B2B product inquiry improvements ---------- */
.form-group label {
    display: block;
    margin: 0 0 7px;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 600;
}

.product-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
}

.product-card-actions .product-price-hint {
    margin-top: 0;
    text-decoration: none;
}

.product-quote-button {
    appearance: none;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    font-family: inherit;
    font-size: var(--text-xxs);
    font-weight: 600;
    line-height: 1;
    padding: 8px 10px;
    white-space: nowrap;
}

.product-quote-button:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.product-spotlight {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 44px 0;
}

.product-spotlight[hidden] {
    display: none;
}

.product-spotlight-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
    gap: 40px;
    align-items: center;
}

.product-spotlight-image {
    aspect-ratio: 4 / 3;
    background: var(--bg-secondary);
    overflow: hidden;
    display: grid;
    place-items: center;
    font-size: 4rem;
}

.product-spotlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-spotlight-copy {
    max-width: 680px;
}

.product-spotlight-eyebrow {
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.product-spotlight-copy h2 {
    color: var(--text-primary);
    font-size: var(--text-2xl);
    line-height: 1.2;
    margin: 0 0 12px;
}

.product-spotlight-copy > p {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.product-spotlight-note {
    font-size: var(--text-sm);
    margin-top: 18px;
}

.quote-float {
    position: fixed;
    right: 30px;
    bottom: 154px;
    z-index: 1000;
    min-height: 46px;
    border: 0;
    border-radius: 8px;
    background: var(--text-primary);
    color: #fff;
    box-shadow: var(--shadow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px 0 14px;
    font-family: inherit;
    font-size: var(--text-xs);
    font-weight: 700;
}

.quote-float:hover {
    background: var(--accent);
}

.quote-float-count {
    display: grid;
    place-items: center;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-warm);
    color: var(--text-primary);
    font-size: 11px;
}

.quote-drawer {
    position: fixed;
    right: 30px;
    bottom: 96px;
    z-index: 1001;
    width: min(370px, calc(100vw - 40px));
    max-height: min(560px, calc(100vh - 124px));
    overflow: auto;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-primary);
    box-shadow: var(--shadow-xl);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.quote-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.quote-drawer-head {
    align-items: center;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    justify-content: space-between;
    padding: 18px 18px 14px;
}

.quote-drawer-head h2 {
    color: var(--text-primary);
    font-size: var(--text-lg);
    margin: 0;
}

.quote-close,
.quote-stepper,
.quote-remove {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text-secondary);
    cursor: pointer;
    font-family: inherit;
}

.quote-close {
    font-size: 28px;
    line-height: 1;
    padding: 0 2px;
}

.quote-drawer-note {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.5;
    margin: 0;
    padding: 14px 18px 8px;
}

.quote-list-items {
    list-style: none;
    margin: 0;
    padding: 4px 18px 12px;
}

.quote-list-empty {
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin: 20px 0;
    text-align: center;
}

.quote-list-item {
    border-bottom: 1px solid var(--border-light);
    display: grid;
    gap: 10px;
    padding: 14px 0;
}

.quote-list-name {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
}

.quote-list-controls {
    align-items: center;
    color: var(--text-secondary);
    display: flex;
    flex-wrap: wrap;
    font-size: var(--text-xxs);
    gap: 8px;
}

.quote-stepper {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    font-size: 15px;
    height: 24px;
    line-height: 1;
    width: 24px;
}

.quote-remove {
    color: var(--accent);
    margin-left: auto;
    padding: 4px 0;
}

.quote-send {
    margin: 4px 18px 18px;
    width: calc(100% - 36px);
}

.quote-send:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

[dir="rtl"] .quote-float,
[dir="rtl"] .quote-drawer {
    left: 30px;
    right: auto;
}

[dir="rtl"] .quote-remove {
    margin-left: 0;
    margin-right: auto;
}

@media (max-width: 768px) {
    .product-card-actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .product-quote-button {
        width: 100%;
    }

    .product-spotlight {
        padding: 28px 0;
    }

    .product-spotlight-grid {
        gap: 24px;
        grid-template-columns: 1fr;
    }

    .product-spotlight-copy h2 {
        font-size: var(--text-xl);
    }

    .quote-float {
        bottom: 76px;
        right: 16px;
        width: 46px;
        min-height: 46px;
        justify-content: center;
        padding: 0;
    }

    .quote-float::before { content: '🧾'; font-size: 18px; }
    .quote-float-label { display: none; }
    .quote-float-count {
        position: absolute;
        right: -3px;
        top: -5px;
        min-width: 18px;
        height: 18px;
        border: 2px solid var(--bg-primary);
        font-size: 10px;
    }

    .quote-drawer {
        bottom: 82px;
        right: 20px;
        width: calc(100vw - 40px);
    }

    [dir="rtl"] .quote-float,
    [dir="rtl"] .quote-drawer {
        left: 16px;
        right: auto;
    }
}

@media (max-width: 420px) {
    .logo span { display: none; }
}

/* ---------- Final hero composition: bring the showroom image into the left composition ---------- */
.hero::before {
    background-position: 100% center;
    background-size: 112% auto;
    filter: saturate(0.9) contrast(0.96);
    transform: scale(1.012);
}

.hero::after {
    background:
        linear-gradient(90deg,
            rgba(5, 12, 10, 0.90) 0%,
            rgba(5, 12, 10, 0.76) 18%,
            rgba(5, 12, 10, 0.56) 36%,
            rgba(5, 12, 10, 0.28) 56%,
            rgba(5, 12, 10, 0.08) 75%,
            rgba(5, 12, 10, 0.02) 100%),
        linear-gradient(0deg, rgba(5, 12, 10, 0.30) 0%, transparent 42%);
}

@media (max-width: 768px) {
    .hero::before {
        background-position: 60% center;
        background-size: cover;
    }

    .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 12, 10, 0.88) 0%, rgba(5, 12, 10, 0.60) 68%, rgba(5, 12, 10, 0.32) 100%),
            linear-gradient(0deg, rgba(5, 12, 10, 0.38) 0%, transparent 48%);
    }
}

/* Arabic overrides must remain after the shared hero composition. */
[dir="rtl"] body { font-family: "Noto Naskh Arabic", Tahoma, Arial, sans-serif; }
[dir="rtl"] .header-inner,
[dir="rtl"] .nav { flex-direction: row; }
[dir="rtl"] .logo { display: inline-flex; align-items: baseline; gap: .32em; white-space: nowrap; }
[dir="rtl"] .logo span { margin: 0; }
[dir="rtl"] .lang-switch { margin-inline-start: auto; margin-inline-end: 12px; }
[dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(5,12,10,.94), rgba(5,12,10,.82) 20%, rgba(5,12,10,.60) 40%, rgba(5,12,10,.28) 60%, rgba(5,12,10,.06) 82%, rgba(5,12,10,.02)), linear-gradient(0deg, rgba(5,12,10,.30), transparent 42%); }
[dir="rtl"] .hero-inner { align-items: flex-end; }
[dir="rtl"] .hero-text,
[dir="rtl"] .hero-stats { width: min(640px, 100%); max-width: 640px; margin-inline-start: auto; margin-inline-end: 0; }
[dir="rtl"] .hero-desc { max-width: 610px; font-size: 1.08rem; line-height: 1.9; }
[dir="rtl"] .hero-btns,
[dir="rtl"] .hero-stats { justify-content: flex-start; }
[dir="rtl"] .stat-card { text-align: right; }
[dir="rtl"] .quote-float,
[dir="rtl"] .quote-drawer,
[dir="rtl"] .whatsapp-float { right: 30px; left: auto; }

@media (max-width: 768px) {
    [dir="rtl"] .header-inner { padding-inline: 14px; gap: 8px; }
    [dir="rtl"] .logo { max-width: 112px; font-size: 1rem; gap: .25em; }
    [dir="rtl"] .logo span { font-size: .62em; }
    [dir="rtl"] .lang-switch { margin: 0 auto 0 0; }
    [dir="rtl"] .lang-switch button { min-width: 38px; padding-inline: 8px; font-size: 11px; }
    [dir="rtl"] .hero { padding-top: 54px; }
    [dir="rtl"] .hero::before { background-position: 43% center; }
    [dir="rtl"] .hero::after { background: linear-gradient(270deg, rgba(5,12,10,.94), rgba(5,12,10,.72) 58%, rgba(5,12,10,.34)), linear-gradient(0deg, rgba(5,12,10,.46), transparent 52%); }
    [dir="rtl"] .hero-text,
    [dir="rtl"] .hero-stats { width: 100%; }
    [dir="rtl"] .hero-title { font-size: clamp(2.2rem, 11vw, 3rem); line-height: 1.12; }
    [dir="rtl"] .hero-desc { font-size: 1rem; line-height: 1.85; }
    [dir="rtl"] .quote-float { right: 16px; left: auto; bottom: 70px; width: 46px; padding: 0; justify-content: center; }
    [dir="rtl"] .quote-float-label { display: none; }
    [dir="rtl"] .quote-drawer { right: 16px; left: auto; }
    [dir="rtl"] .whatsapp-float { right: 16px; left: auto; bottom: 16px; }
}

/* ==============================================
   Arabic Art Direction — modern Gulf editorial RTL
   ============================================== */
[dir="rtl"] body {
    font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
    font-feature-settings: "kern" 1, "liga" 1;
    text-rendering: optimizeLegibility;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] .logo,
[dir="rtl"] .section-title,
[dir="rtl"] .stat-num,
[dir="rtl"] .about-stat-num {
    font-family: "Noto Kufi Arabic", "Noto Sans Arabic", Tahoma, Arial, sans-serif;
    letter-spacing: 0;
}

[dir="rtl"] .lang-switch {
    direction: ltr;
}

[dir="rtl"] .hero-text {
    position: relative;
    padding: 30px 32px 30px 28px;
    border-inline-start: 3px solid rgba(201, 151, 91, 0.88);
    border-radius: 0 14px 14px 0;
    background: linear-gradient(270deg, rgba(9, 19, 16, 0.36), rgba(9, 19, 16, 0.04));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

[dir="rtl"] .hero-badge {
    border-color: rgba(225, 197, 151, 0.42);
    background: rgba(17, 31, 27, 0.58);
    color: #f2e7d2;
    font-weight: 600;
    line-height: 1.65;
}

[dir="rtl"] .hero-title {
    font-weight: 800;
    line-height: 1.22;
}

[dir="rtl"] .hero-title span:not(:first-child) {
    color: #d9b77a;
    font-weight: 600;
    line-height: 1.55;
}

[dir="rtl"] .hero-desc {
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.08rem;
    line-height: 2;
}

[dir="rtl"] .hero-btns .btn {
    min-width: 172px;
    border-radius: 8px;
    font-weight: 700;
}

[dir="rtl"] .stat-card {
    border-color: rgba(225, 197, 151, 0.28);
    background: rgba(12, 24, 20, 0.46);
}

[dir="rtl"] .stat-num,
[dir="rtl"] .about-stat-num,
[dir="rtl"] .market-tag,
[dir="rtl"] .product-tag {
    unicode-bidi: isolate;
}

[dir="rtl"] .section-header {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: 54px;
}

[dir="rtl"] .section-label {
    color: #a66d2e;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
}

[dir="rtl"] .section-title {
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.4;
}

[dir="rtl"] .section-desc {
    max-width: 680px;
    font-size: 1.08rem;
    line-height: 1.9;
}

[dir="rtl"] #advantages,
[dir="rtl"] #markets,
[dir="rtl"] .inquiry {
    background: linear-gradient(180deg, #f7f6f2 0%, #eef3f0 100%);
}

[dir="rtl"] .cat-pills {
    direction: rtl;
    gap: 8px;
}

[dir="rtl"] .cat-pill {
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 650;
    padding: 10px 18px;
}

[dir="rtl"] .product-card {
    border-radius: 14px;
    text-align: right;
    box-shadow: 0 8px 24px rgba(22, 39, 33, 0.065);
}

[dir="rtl"] .product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(22, 39, 33, 0.13);
}

[dir="rtl"] .product-badge {
    left: auto;
    right: 12px;
    font-size: 0.72rem;
    letter-spacing: 0;
}

[dir="rtl"] .product-body {
    min-height: 226px;
    padding: 22px;
}

[dir="rtl"] .product-body h3 {
    font-size: 1.08rem;
    font-weight: 750;
    line-height: 1.65;
}

[dir="rtl"] .product-body p {
    color: #5f6f69;
    font-size: 0.86rem;
    line-height: 1.9;
    -webkit-line-clamp: 3;
}

[dir="rtl"] .product-tags-row,
[dir="rtl"] .market-tags {
    justify-content: flex-start;
}

[dir="rtl"] .product-tag {
    border: 1px solid #e3ebe7;
    background: #f7faf8;
    color: #4d665e;
    padding: 4px 10px;
}

[dir="rtl"] .product-card-actions {
    gap: 12px;
    padding-top: 14px;
}

[dir="rtl"] .product-price-hint,
[dir="rtl"] .product-quote-button {
    font-size: 0.82rem;
    font-weight: 750;
}

[dir="rtl"] .products-grid > .product-card:last-child:nth-child(3n + 1) {
    grid-column: 2;
}

[dir="rtl"] .advantage-card,
[dir="rtl"] .market-card,
[dir="rtl"] .coop-card {
    border-radius: 14px;
    border-top: 3px solid rgba(201, 151, 91, 0.7);
    text-align: right;
    box-shadow: 0 8px 28px rgba(22, 39, 33, 0.06);
}

[dir="rtl"] .advantage-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #edf4f1;
}

[dir="rtl"] .advantage-card h3,
[dir="rtl"] .market-card h3,
[dir="rtl"] .coop-card h3,
[dir="rtl"] .showcase-content h2,
[dir="rtl"] .inquiry-info h2,
[dir="rtl"] .inquiry-form h3 {
    line-height: 1.55;
}

[dir="rtl"] .advantage-card p,
[dir="rtl"] .market-card p,
[dir="rtl"] .coop-card p,
[dir="rtl"] .showcase-content p,
[dir="rtl"] .inquiry-info p {
    line-height: 1.95;
}

[dir="rtl"] .showcase-img {
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(22, 39, 33, 0.12);
}

[dir="rtl"] .saudi-presence-intro,
[dir="rtl"] .saudi-presence-visit,
[dir="rtl"] .saudi-gallery-card figcaption {
    text-align: right;
}

[dir="rtl"] .saudi-gallery-card figcaption span {
    text-align: left;
}

[dir="rtl"] .inquiry-grid {
    gap: 72px;
}

[dir="rtl"] .inquiry-form {
    border: 1px solid #e0e9e5;
    border-radius: 18px;
    box-shadow: 0 18px 52px rgba(22, 39, 33, 0.09);
    text-align: right;
}

[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea {
    border-radius: 9px;
    text-align: right;
}

[dir="rtl"] .form-group select {
    background-position: left 16px center;
    padding-left: 40px;
    padding-right: 16px;
}

[dir="rtl"] .contact-item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.58);
}

[dir="rtl"] .contact-item span:last-child {
    margin-right: auto;
    margin-left: 0;
}

[dir="rtl"] .quote-float {
    background: #173f36;
    color: #fff;
}

@media (max-width: 1024px) {
    [dir="rtl"] .products-grid > .product-card:last-child:nth-child(3n + 1) {
        grid-column: auto;
    }
}

@media (max-width: 768px) {
    [dir="rtl"] .hero-text {
        padding: 22px 0 0;
        border-inline-start: 0;
        border-top: 2px solid rgba(201, 151, 91, 0.72);
        border-radius: 0;
        background: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    [dir="rtl"] .hero-title {
        font-size: clamp(2.35rem, 11.5vw, 3rem);
        line-height: 1.25;
    }

    [dir="rtl"] .hero-title span:not(:first-child) {
        font-size: 1.28rem;
        line-height: 1.7;
    }

    [dir="rtl"] .hero-desc {
        font-size: 1rem;
        line-height: 1.95;
    }

    [dir="rtl"] .section-header {
        margin-bottom: 38px;
    }

    [dir="rtl"] .section-title {
        font-size: 2rem;
    }

    [dir="rtl"] .section-desc {
        font-size: 1rem;
    }

    [dir="rtl"] .product-body {
        min-height: auto;
        padding: 20px;
    }

    [dir="rtl"] .product-body h3 {
        font-size: 1.05rem;
    }

    [dir="rtl"] .inquiry-grid {
        gap: 40px;
    }

    [dir="rtl"] .inquiry-form {
        padding: 26px 20px;
    }
}

/* Arabic hero art direction: keep the copy calm on the left and reveal the sofa on the right. */
[dir="rtl"] .hero::before {
    background-position: 100% center;
    filter: saturate(0.96) contrast(0.96) brightness(1.08);
}

[dir="rtl"] .hero::after {
    background:
        linear-gradient(90deg,
            rgba(5, 12, 10, 0.94) 0%,
            rgba(5, 12, 10, 0.84) 23%,
            rgba(5, 12, 10, 0.58) 45%,
            rgba(5, 12, 10, 0.27) 66%,
            rgba(5, 12, 10, 0.09) 84%,
            rgba(5, 12, 10, 0.025) 100%),
        radial-gradient(ellipse at 82% 46%, rgba(211, 166, 104, 0.12), transparent 43%),
        linear-gradient(180deg, rgba(5, 12, 10, 0.08), rgba(5, 12, 10, 0.24));
}

[dir="rtl"] .hero-text {
    background: linear-gradient(90deg, rgba(9, 19, 16, 0.42), rgba(9, 19, 16, 0.08));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.10);
}

[dir="rtl"] .stat-card {
    background: rgba(12, 24, 20, 0.34);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

@media (max-width: 768px) {
    [dir="rtl"] .hero::before {
        background-position: 69% center;
        filter: saturate(0.96) contrast(0.96) brightness(1.06);
    }

    [dir="rtl"] .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 12, 10, 0.88) 0%, rgba(5, 12, 10, 0.63) 48%, rgba(5, 12, 10, 0.18) 100%),
            radial-gradient(ellipse at 78% 44%, rgba(211, 166, 104, 0.10), transparent 48%),
            linear-gradient(180deg, rgba(5, 12, 10, 0.08), rgba(5, 12, 10, 0.30));
    }
}

/* ==============================================
   English layout and mobile conversion polish
   ============================================== */
html[dir="ltr"] .logo {
    display: inline-flex;
    align-items: baseline;
    gap: 0.28em;
}

html[dir="ltr"] .logo span {
    font-size: 0.72em;
    font-weight: 650;
    letter-spacing: 0.01em;
}

.contact-item > span:last-child {
    margin-left: 0;
}

.contact-item > .contact-value {
    margin-left: auto;
    color: var(--text-secondary);
    opacity: 0.82;
}

[dir="rtl"] .contact-item > span:last-child {
    margin-right: 0;
}

[dir="rtl"] .contact-item > .contact-value {
    margin-left: 0;
    margin-right: auto;
}

.privacy-banner {
    left: 50%;
    right: auto;
    bottom: 16px;
    width: min(900px, calc(100vw - 32px));
    padding: 14px 16px;
    gap: 18px;
    border-radius: 10px;
    transform: translateX(-50%);
}

.privacy-banner strong {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.privacy-banner p {
    margin-top: 3px;
    max-width: 560px;
    font-size: 0.72rem;
    line-height: 1.45;
}

.privacy-banner-actions .btn,
.privacy-banner-actions button:first-child {
    min-width: 0;
    padding: 9px 12px;
    font-size: 0.75rem;
    line-height: 1.25;
}

.quote-float {
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

@media (max-width: 768px) {
    .cat-pills-wrapper {
        margin-bottom: 28px;
    }

    .cat-pills,
    [dir="rtl"] .cat-pills {
        justify-content: flex-start;
        padding-inline: 2px;
        scroll-padding-inline: 2px;
        overscroll-behavior-inline: contain;
    }

    .cat-pill,
    [dir="rtl"] .cat-pill {
        padding: 10px 16px;
    }

    .quote-float,
    .whatsapp-float {
        right: 12px;
        width: 42px;
        height: 42px;
        min-height: 42px;
    }

    .quote-float {
        bottom: 62px;
    }

    .quote-float::before {
        font-size: 16px;
    }

    .whatsapp-float {
        bottom: 12px;
        font-size: 1.1rem;
    }

    [dir="rtl"] .quote-float,
    [dir="rtl"] .whatsapp-float {
        right: 12px;
        left: auto;
    }

    body.floating-actions-hidden .quote-float,
    body.floating-actions-hidden .whatsapp-float,
    body.floating-actions-hidden .back-to-top,
    body.whatsapp-popup-open .quote-float,
    body.whatsapp-popup-open .back-to-top {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(10px);
    }

    .whatsapp-popup {
        right: 8px;
        bottom: 64px;
        width: min(320px, calc(100vw - 16px));
    }

    [dir="rtl"] .whatsapp-popup {
        right: 8px;
        left: auto;
    }

    .contact-item {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr);
        column-gap: 12px;
        row-gap: 2px;
        margin-bottom: 12px;
    }

    .contact-icon {
        grid-row: 1 / span 2;
        align-self: start;
    }

    .contact-item > span {
        align-self: center;
    }

    .contact-item > .contact-value,
    [dir="rtl"] .contact-item > .contact-value {
        grid-column: 2;
        margin: 0;
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .privacy-banner {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        padding: 12px;
        display: grid;
        gap: 10px;
        transform: none;
    }

    .privacy-banner p {
        max-width: none;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    .privacy-banner-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
    }

    .privacy-banner-actions .btn,
    .privacy-banner-actions button:first-child {
        width: 100%;
        min-height: 42px;
        padding: 8px 10px;
        white-space: normal;
    }

    html[lang="en"] .hero {
        padding: 48px 0 14px;
    }

    html[lang="en"] .hero::before {
        background-position: 68% center;
        filter: saturate(0.96) contrast(0.96) brightness(1.06);
    }

    html[lang="en"] .hero::after {
        background:
            linear-gradient(90deg, rgba(5, 12, 10, 0.90) 0%, rgba(5, 12, 10, 0.76) 56%, rgba(5, 12, 10, 0.38) 100%),
            radial-gradient(ellipse at 80% 48%, rgba(211, 166, 104, 0.10), transparent 48%),
            linear-gradient(0deg, rgba(5, 12, 10, 0.16) 0%, transparent 54%);
    }

    html[lang="en"] .hero-inner {
        gap: 16px;
    }

    html[lang="en"] .hero-badge {
        max-width: 100%;
        margin-bottom: 18px;
        padding: 7px 12px;
        font-size: 0.7rem;
        line-height: 1.4;
    }

    html[lang="en"] .hero-title {
        margin-bottom: 14px;
        font-size: clamp(2.2rem, 10.5vw, 2.7rem);
    }

    html[lang="en"] .hero-title span:not(:first-child) {
        margin-top: 4px;
        font-size: 1.15rem;
    }

    html[lang="en"] .hero-desc {
        max-width: 330px;
        margin-bottom: 20px;
        color: rgba(255, 255, 255, 0.86);
        font-size: 0.94rem;
        line-height: 1.65;
        text-shadow: 0 1px 12px rgba(0, 0, 0, 0.24);
    }

    html[lang="en"] .hero-btns {
        gap: 10px;
    }

    html[lang="en"] .hero-btns .btn {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    html[lang="en"] .hero-stats {
        gap: 6px;
    }
}

/* ==============================================
   Restrained premium interaction system
   ============================================== */
:root {
    --motion-instant: 120ms;
    --motion-fast: 180ms;
    --motion-base: 320ms;
    --motion-slow: 620ms;
    --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --motion-ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
    --motion-focus: 0 0 0 3px rgba(15, 118, 110, 0.18);
}

.header {
    transition:
        background-color var(--motion-base) var(--motion-ease-soft),
        border-color var(--motion-base) var(--motion-ease-soft),
        box-shadow var(--motion-base) var(--motion-ease-soft);
}

.header.motion-scrolled,
.header.scrolled {
    background: rgba(255, 255, 255, 0.93);
    border-bottom-color: rgba(203, 213, 209, 0.72);
    box-shadow: 0 10px 32px rgba(11, 31, 26, 0.06);
}

.logo {
    transform-origin: left center;
    transition: transform var(--motion-base) var(--motion-ease);
}

[dir="rtl"] .logo {
    transform-origin: right center;
}

.header.motion-scrolled .logo,
.header.scrolled .logo {
    transform: scale(0.975);
}

.product-hero {
    --product-hero-overlay: linear-gradient(90deg, rgba(10, 22, 19, 0.92) 0%, rgba(10, 22, 19, 0.72) 48%, rgba(10, 22, 19, 0.34) 100%);
    background-color: #101815;
    background-image:
        var(--product-hero-overlay),
        var(--product-hero-image, linear-gradient(135deg, #182722, #0d1714));
    background-position: center;
    background-size: cover;
}

[dir="rtl"] .product-hero {
    --product-hero-overlay: linear-gradient(270deg, rgba(10, 22, 19, 0.92) 0%, rgba(10, 22, 19, 0.72) 48%, rgba(10, 22, 19, 0.34) 100%);
}

.nav a {
    transition: color var(--motion-fast) ease;
}

.nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -5px;
    height: 2px;
    border-radius: var(--radius-pill);
    background: var(--accent);
    opacity: 0;
    transition:
        left var(--motion-base) var(--motion-ease),
        right var(--motion-base) var(--motion-ease),
        opacity var(--motion-fast) ease;
}

.nav a.active::after,
.nav a:hover::after {
    left: 18%;
    right: 18%;
    opacity: 1;
}

.lang-switch,
.cat-pills,
.subcat-filter {
    position: relative;
    isolation: isolate;
}

.lang-switch button,
.cat-pill,
.subcat-tag {
    position: relative;
    z-index: 1;
    transition:
        color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        background-color var(--motion-fast) ease,
        transform var(--motion-instant) var(--motion-ease),
        box-shadow var(--motion-fast) ease;
}

.motion-selection-indicator {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    width: var(--motion-width, 0px);
    height: var(--motion-height, 0px);
    border-radius: 6px;
    background: var(--accent);
    box-shadow: 0 5px 14px rgba(15, 118, 110, 0.18);
    pointer-events: none;
    transform: translate3d(var(--motion-x, 0px), var(--motion-y, 0px), 0);
}

.motion-indicator-ready .motion-selection-indicator {
    transition:
        transform 420ms var(--motion-ease),
        width 420ms var(--motion-ease),
        height 420ms var(--motion-ease);
}

.motion-indicator-ready.lang-switch button.active,
.motion-indicator-ready .cat-pill.active,
.motion-indicator-ready .subcat-tag.active {
    background: transparent;
    border-color: transparent;
    color: #fff;
    box-shadow: none;
}

.motion-indicator-ready .subcat-tag.active .subcat-count {
    background: rgba(255, 255, 255, 0.18);
}

:where(
    .btn, .cat-pill, .subcat-tag, .cat-sidebar-link,
    .product-quote-button, .quote-float, .quote-stepper,
    .quote-remove, .quote-close, .whatsapp-float,
    .whatsapp-popup-close, .whatsapp-preset, .mobile-menu-btn,
    .mobile-nav-close, .back-to-top, .privacy-banner button,
    .form-submit
):focus-visible {
    outline: none;
    box-shadow: var(--motion-focus);
}

.btn,
.form-submit,
.product-quote-button {
    transition:
        transform var(--motion-instant) var(--motion-ease),
        background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}

.btn.motion-pressed,
.form-submit.motion-pressed,
.product-quote-button.motion-pressed,
.cat-pill.motion-pressed,
.subcat-tag.motion-pressed,
.quote-stepper.motion-pressed,
.privacy-banner button.motion-pressed {
    transform: scale(0.975);
}

.whatsapp-float.motion-pressed,
.quote-float.motion-pressed,
.back-to-top.motion-pressed,
.mobile-menu-btn.motion-pressed,
.mobile-nav-close.motion-pressed,
.whatsapp-popup-close.motion-pressed {
    transform: scale(0.92);
}

.product-card,
.product-detail-card,
.advantage-card,
.market-card,
.coop-card {
    transition:
        transform var(--motion-base) var(--motion-ease),
        box-shadow var(--motion-base) var(--motion-ease-soft),
        border-color var(--motion-fast) ease,
        background-color var(--motion-fast) ease;
}

.product-img img,
.product-detail-img img,
.product-spotlight-image img {
    transition:
        transform var(--motion-slow) var(--motion-ease),
        filter var(--motion-base) ease;
}

.product-card.motion-pressed,
.product-detail-card.motion-pressed {
    transform: scale(0.992);
}

.product-card:focus-within,
.product-detail-card:focus-within {
    border-color: rgba(15, 118, 110, 0.46);
    box-shadow: var(--shadow), var(--motion-focus);
}

@media (hover: hover) and (pointer: fine) {
    .product-card:hover,
    .product-detail-card:hover {
        transform: translateY(-5px) scale(1.003);
        border-color: rgba(15, 118, 110, 0.14);
        box-shadow: 0 18px 44px rgba(11, 31, 26, 0.12);
    }

    .product-card:hover .product-img img,
    .product-detail-card:hover .product-detail-img img {
        transform: scale(1.035);
        filter: saturate(1.03) contrast(1.01);
    }

    .advantage-card:hover,
    .market-card:hover,
    .coop-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(11, 31, 26, 0.08);
    }
}

.motion-capable:not(.motion-ready):not(.motion-reduced) .motion-intro-item {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
}

.motion-capable.motion-ready:not(.motion-reduced) .motion-intro-item {
    animation: motion-intro-enter 680ms var(--motion-ease) both;
    animation-delay: calc(55ms * var(--motion-order, 0) + 40ms);
}

@keyframes motion-intro-enter {
    from {
        opacity: 0;
        transform: translate3d(0, 14px, 0);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
        filter: blur(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
        opacity 560ms var(--motion-ease),
        transform 620ms var(--motion-ease);
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    will-change: auto;
}

body.mobile-menu-open {
    overflow: hidden;
}

.mobile-nav {
    right: 0;
    transform: translate3d(104%, 0, 0);
    transition: transform 380ms var(--motion-ease-soft);
    will-change: transform;
}

.mobile-nav.open {
    right: 0;
    transform: translate3d(0, 0, 0);
}

[dir="rtl"] .mobile-nav {
    right: auto;
    left: 0;
    transform: translate3d(-104%, 0, 0);
}

[dir="rtl"] .mobile-nav.open {
    right: auto;
    left: 0;
    transform: translate3d(0, 0, 0);
}

.mobile-nav a {
    opacity: 0;
    transform: translate3d(12px, 0, 0);
    transition:
        opacity var(--motion-base) ease,
        transform var(--motion-base) var(--motion-ease);
}

[dir="rtl"] .mobile-nav a {
    transform: translate3d(-12px, 0, 0);
}

.mobile-nav.open a {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.mobile-nav.open a:nth-of-type(1) { transition-delay: 70ms; }
.mobile-nav.open a:nth-of-type(2) { transition-delay: 105ms; }
.mobile-nav.open a:nth-of-type(3) { transition-delay: 140ms; }
.mobile-nav.open a:nth-of-type(4) { transition-delay: 175ms; }
.mobile-nav.open a:nth-of-type(5) { transition-delay: 210ms; }

.overlay {
    background: rgba(7, 18, 15, 0.28);
    transition:
        opacity var(--motion-base) ease,
        visibility var(--motion-base) ease,
        backdrop-filter var(--motion-base) ease;
}

body.quote-drawer-open {
    position: fixed;
    inset-inline: 0;
    top: var(--quote-scroll-offset, 0);
    width: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    padding-inline-end: var(--quote-scrollbar-gap, 0);
}

.quote-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(7, 18, 15, 0.16);
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
    transition:
        opacity var(--motion-base) ease,
        visibility var(--motion-base) ease,
        backdrop-filter var(--motion-base) ease;
}

.quote-backdrop[hidden] {
    display: none;
}

.quote-backdrop.open {
    opacity: 1;
    visibility: visible;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.quote-drawer {
    z-index: 1201;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
    transform: translate3d(0, 18px, 0) scale(0.985);
    transform-origin: bottom right;
    transition:
        opacity 220ms ease,
        transform var(--motion-base) var(--motion-ease),
        visibility var(--motion-base) ease;
}

[dir="rtl"] .quote-drawer {
    transform-origin: bottom left;
}

.quote-drawer.open {
    transform: translate3d(0, 0, 0) scale(1);
}

.quote-list-item {
    animation: motion-list-item 360ms var(--motion-ease) both;
}

.quote-list-item:nth-child(2) { animation-delay: 35ms; }
.quote-list-item:nth-child(3) { animation-delay: 70ms; }
.quote-list-item:nth-child(4) { animation-delay: 105ms; }

@keyframes motion-list-item {
    from { opacity: 0; transform: translate3d(0, 8px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.motion-count-bump {
    animation: motion-count-bump 460ms var(--motion-ease);
}

@keyframes motion-count-bump {
    0%, 100% { transform: scale(1); }
    42% { transform: scale(1.28); }
    68% { transform: scale(0.94); }
}

[data-quote-product-id].quote-add-feedback {
    transform: scale(0.985);
}

.product-quote-button.quote-add-feedback {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.quote-toast {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 1199;
    max-width: min(420px, calc(100vw - 32px));
    padding: 11px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 9px;
    background: rgba(14, 28, 24, 0.94);
    color: #fff;
    box-shadow: 0 12px 32px rgba(7, 18, 15, 0.2);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(-50%, 10px, 0) scale(0.985);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition:
        opacity 180ms ease,
        visibility 180ms ease,
        transform 280ms var(--motion-ease);
}

.quote-toast[hidden] {
    display: none;
}

.quote-toast.open {
    opacity: 1;
    visibility: visible;
    transform: translate3d(-50%, 0, 0) scale(1);
}

.whatsapp-popup {
    transform-origin: bottom right;
    transition:
        opacity 220ms ease,
        visibility 220ms ease,
        transform 360ms var(--motion-ease);
}

[dir="rtl"] .whatsapp-popup {
    transform-origin: bottom left;
}

.whatsapp-popup.open .whatsapp-preset {
    animation: motion-list-item 340ms var(--motion-ease) both;
}

.whatsapp-popup.open .whatsapp-preset:nth-child(2) { animation-delay: 30ms; }
.whatsapp-popup.open .whatsapp-preset:nth-child(3) { animation-delay: 60ms; }
.whatsapp-popup.open .whatsapp-preset:nth-child(4) { animation-delay: 90ms; }
.whatsapp-popup.open .whatsapp-preset:nth-child(5) { animation-delay: 120ms; }
.whatsapp-popup.open .whatsapp-preset:nth-child(6) { animation-delay: 150ms; }

.form-group input,
.form-group select,
.form-group textarea {
    transition:
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        background-color var(--motion-fast) ease,
        transform var(--motion-fast) var(--motion-ease);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: var(--motion-focus);
    transform: translateY(-1px);
}

.form-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.form-submit.is-loading {
    cursor: progress;
}

.form-submit.is-loading::before {
    content: '';
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.42);
    border-top-color: #fff;
    border-radius: 50%;
    animation: motion-spin 720ms linear infinite;
}

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

.form-message {
    animation: motion-message-enter 360ms var(--motion-ease) both;
}

@keyframes motion-message-enter {
    from { opacity: 0; transform: translate3d(0, 8px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

.privacy-banner {
    animation: motion-privacy-enter 420ms var(--motion-ease) both;
}

@keyframes motion-privacy-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}

.back-to-top,
.quote-float,
.whatsapp-float {
    transition:
        opacity var(--motion-fast) ease,
        visibility var(--motion-fast) ease,
        transform var(--motion-fast) var(--motion-ease),
        background-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}

@media (max-width: 768px) {
    .product-hero {
        --product-hero-overlay: linear-gradient(90deg, rgba(10, 22, 19, 0.94) 0%, rgba(10, 22, 19, 0.76) 72%, rgba(10, 22, 19, 0.58) 100%);
    }

    [dir="rtl"] .product-hero {
        --product-hero-overlay: linear-gradient(270deg, rgba(10, 22, 19, 0.94) 0%, rgba(10, 22, 19, 0.76) 72%, rgba(10, 22, 19, 0.58) 100%);
    }

    body.quote-has-items.floating-actions-hidden .quote-float {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translate3d(0, 0, 0);
    }

    .quote-toast {
        bottom: 20px;
        width: max-content;
    }

    .quote-drawer,
    [dir="rtl"] .quote-drawer {
        left: 8px;
        right: 8px;
        bottom: 8px;
        width: auto;
        max-height: min(620px, calc(100dvh - 24px));
        border-radius: 14px;
        transform-origin: bottom center;
        transform: translate3d(0, 28px, 0) scale(0.99);
    }

    .quote-drawer.open,
    [dir="rtl"] .quote-drawer.open {
        transform: translate3d(0, 0, 0) scale(1);
    }

    .whatsapp-popup,
    [dir="rtl"] .whatsapp-popup {
        transform-origin: bottom center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
    }

    .motion-intro-item,
    .fade-in,
    .fade-in.visible,
    .mobile-nav a,
    .saudi-gallery-card:hover img {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
    }
}

/* ==============================================
   Complete product detail experience
   ============================================== */
html.product-detail-pending,
html.product-detail-pending body {
    overflow: hidden;
}

.product-detail-boot {
    display: none;
}

html.product-detail-pending .product-detail-boot {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: block;
    overflow: hidden auto;
    background: #f8faf9;
}

.product-detail-boot-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: var(--nav-height);
    padding-inline: max(24px, calc((100vw - 1200px) / 2));
    border-block-end: 1px solid #e7ece9;
    background: rgba(255, 255, 255, 0.96);
}

.product-detail-boot-shell {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
    padding-block: clamp(42px, 6vw, 76px);
}

.product-detail-boot-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.85fr);
    gap: clamp(28px, 4vw, 52px);
    align-items: start;
    margin-block-start: 24px;
}

.product-detail-boot-block {
    background: linear-gradient(100deg, #e8eeeb 20%, #f3f6f4 46%, #e8eeeb 72%);
    background-size: 240% 100%;
    animation: product-detail-boot-pulse 1.5s ease-in-out infinite;
}

.product-detail-boot-brand {
    width: 152px;
    height: 22px;
    border-radius: 6px;
}

.product-detail-boot-nav {
    width: min(420px, 38vw);
    height: 16px;
    border-radius: 5px;
}

.product-detail-boot-breadcrumb {
    display: block;
    width: min(310px, 62%);
    height: 14px;
    border-radius: 5px;
}

.product-detail-boot-media {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
}

.product-detail-boot-summary {
    display: grid;
    gap: 17px;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid #e3e9e6;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.96);
}

.product-detail-boot-line {
    display: block;
    width: 100%;
    height: 15px;
    border-radius: 5px;
}

.product-detail-boot-line--short {
    width: 38%;
    height: 11px;
}

.product-detail-boot-line--title {
    width: 84%;
    height: 42px;
    border-radius: 7px;
}

.product-detail-boot-line--medium {
    width: 72%;
}

.product-detail-boot-panel {
    display: block;
    width: 100%;
    min-height: 170px;
    margin-block-start: 8px;
    border-radius: 9px;
}

@keyframes product-detail-boot-pulse {
    0%, 100% { background-position: 100% 0; }
    50% { background-position: 0 0; }
}

body.product-detail-mode .product-catalog-section {
    display: none;
}

body.product-detail-mode .product-spotlight--detail {
    margin-block-start: var(--nav-height);
}

.product-spotlight--detail {
    padding-block: clamp(40px, 6vw, 76px);
    background:
        linear-gradient(180deg, rgba(248, 250, 249, 0.96), rgba(255, 255, 255, 0.98));
    border-block-color: var(--border-light);
}

.product-detail-page {
    display: grid;
    gap: clamp(42px, 6vw, 72px);
    min-width: 0;
    color: var(--text-primary);
    text-align: start;
}

.product-detail-page[hidden] {
    display: none;
}

.product-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    margin-block-end: -22px;
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    line-height: 1.5;
}

.product-detail-breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--motion-fast) ease;
}

.product-detail-breadcrumb a:hover {
    color: var(--accent);
}

.product-detail-breadcrumb :is(a, button):focus-visible,
.product-detail-media-link:focus-visible,
.product-detail-title-link:focus-visible,
.product-detail-view-link:focus-visible,
.product-gallery-thumb:focus-visible,
.product-gallery-zoom:focus-visible,
.product-gallery-nav:focus-visible,
.product-media-dialog-close:focus-visible {
    outline: none;
    box-shadow: var(--motion-focus);
}

.product-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.38fr) minmax(320px, 0.72fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: start;
    min-width: 0;
}

.product-gallery {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.product-gallery-stage {
    position: relative;
    display: grid;
    place-items: center;
    min-width: 0;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eef2f0;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    isolation: isolate;
    touch-action: pan-y pinch-zoom;
}

.product-gallery-media-slot {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
}

.product-gallery-media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow: hidden;
    background: #eef2f0;
    animation: product-gallery-media-enter var(--motion-fast) var(--motion-ease) both;
}

@keyframes product-gallery-media-enter {
    from { opacity: 0.72; }
    to { opacity: 1; }
}

.product-gallery-media :is(img, video, picture),
.product-gallery-media > picture > img {
    width: 100%;
    height: 100%;
}

.product-gallery-media :is(img, video),
.product-gallery-media > picture > img {
    object-fit: cover;
}

.product-gallery-crop-media {
    transform:
        translate(var(--product-crop-offset-x, 0%), var(--product-crop-offset-y, 0%))
        scale(var(--product-crop-zoom, 1));
    transform-origin: 0 0;
}

.product-gallery-media :is(img, video) {
    transition:
        opacity var(--motion-fast) ease,
        transform var(--motion-slow) var(--motion-ease);
}

.product-gallery-media > span {
    font-size: clamp(3.5rem, 9vw, 6rem);
}

.product-gallery-zoom {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: zoom-in;
    font: inherit;
}

.product-gallery-zoom::after {
    content: '+';
    position: absolute;
    inset-inline-end: 14px;
    inset-block-end: 14px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.56);
    border-radius: 8px;
    background: rgba(19, 31, 28, 0.76);
    color: #fff;
    box-shadow: 0 8px 24px rgba(9, 23, 19, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    font-size: 1.15rem;
    font-weight: 400;
    line-height: 1;
    transition:
        background-color var(--motion-fast) ease,
        transform var(--motion-instant) var(--motion-ease);
}

.product-gallery-zoom:hover::after {
    background: rgba(15, 118, 110, 0.92);
}

.product-gallery-zoom:active::after {
    transform: scale(0.97);
}

.product-gallery-nav {
    position: absolute;
    inset-block-start: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    background: rgba(19, 31, 28, 0.58);
    color: #fff;
    box-shadow: 0 9px 28px rgba(9, 23, 19, 0.16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transform: translateY(-50%);
    opacity: 0.88;
    transition:
        background-color var(--motion-fast) ease,
        opacity var(--motion-fast) ease,
        transform var(--motion-instant) var(--motion-ease);
}

.product-gallery-nav--previous {
    inset-inline-start: 14px;
}

.product-gallery-nav--next {
    inset-inline-end: 14px;
}

.product-gallery-nav-icon {
    display: block;
    margin-block-start: -2px;
    font-size: 2rem;
    font-weight: 300;
    line-height: 1;
}

.product-gallery-stage:hover .product-gallery-nav,
.product-gallery-nav:focus-visible {
    opacity: 1;
}

.product-gallery-nav:hover {
    background: rgba(15, 118, 110, 0.92);
}

.product-gallery-nav:active {
    transform: translateY(-50%) scale(0.94);
}

.product-gallery-caption {
    min-height: 1.4em;
    margin: -2px 2px 0;
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    line-height: 1.5;
    text-wrap: balance;
}

.product-gallery-caption[hidden] {
    display: none;
}

.product-gallery-thumbs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 84px;
    justify-content: start;
    gap: 10px;
    max-width: 100%;
    padding: 2px 2px 7px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: thin;
    scrollbar-color: var(--border-medium) transparent;
}

.product-gallery-thumb {
    position: relative;
    display: grid;
    place-items: center;
    width: 84px;
    aspect-ratio: 1 / 1;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-secondary);
    cursor: pointer;
    scroll-snap-align: start;
    transition:
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        transform var(--motion-instant) var(--motion-ease);
}

.product-gallery-thumb :is(img, video) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery-thumb:hover {
    border-color: rgba(15, 118, 110, 0.56);
}

.product-gallery-thumb:is(.active, [aria-current="true"], [aria-pressed="true"]) {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
}

.product-gallery-thumb:active {
    transform: scale(0.97);
}

.product-detail-summary {
    position: static;
    align-self: start;
    display: grid;
    gap: 20px;
    min-width: 0;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 50px rgba(11, 31, 26, 0.07);
}

@media (min-width: 821px) and (min-height: 1200px) {
    .product-detail-summary {
        position: sticky;
        top: calc(var(--nav-height) + 24px);
    }
}

.product-detail-summary > h1,
.product-detail-summary > h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    text-wrap: balance;
}

.product-reference {
    margin: 0 0 -10px;
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.45;
    overflow-wrap: anywhere;
    text-transform: uppercase;
}

.product-detail-lead {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-base);
    line-height: 1.72;
}

.product-detail-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--border-light);
}

.product-detail-quick-spec {
    display: grid;
    align-content: start;
    gap: 4px;
    min-width: 0;
    min-height: 76px;
    padding: 13px 14px;
    background: var(--bg-surface);
}

.product-detail-quick-spec:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.product-detail-quick-spec > :first-child {
    color: var(--text-tertiary);
    font-size: var(--text-xxs);
    font-weight: 600;
    line-height: 1.4;
}

.product-detail-quick-spec > :last-child {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 650;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.product-detail-request {
    display: grid;
    gap: 16px;
    padding-block-start: 2px;
}

.product-detail-request > h2,
.product-detail-request > h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: var(--text-base);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.35;
}

.product-detail-request > p:not(.product-spotlight-note) {
    margin: -8px 0 0;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.6;
}

.product-request-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-request-field {
    display: grid;
    align-content: start;
    gap: 7px;
    min-width: 0;
}

.product-request-field label,
.product-request-field > span:first-child {
    color: var(--text-secondary);
    font-size: var(--text-xs);
    font-weight: 650;
    line-height: 1.35;
}

.product-request-field :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border-medium);
    border-radius: 7px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--text-sm);
    line-height: 1.4;
    transition:
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        background-color var(--motion-fast) ease;
}

.product-request-field textarea {
    min-height: 86px;
    resize: vertical;
}

.product-request-field :is(input, select, textarea):focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: var(--motion-focus);
}

.product-request-note {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--text-tertiary);
    font-size: var(--text-xxs);
    line-height: 1.55;
}

.product-detail-primary-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, auto);
    gap: 10px;
}

.product-detail-primary-actions > * {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin: 0;
    padding: 12px 16px;
    text-align: center;
}

.product-detail-primary-actions .product-quote-button {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    font-size: var(--text-sm);
}

.product-detail-primary-actions .product-quote-button:hover {
    border-color: var(--accent-hover);
    background: var(--accent-hover);
    color: #fff;
}

.product-specification-section,
.product-related {
    display: grid;
    gap: 22px;
    min-width: 0;
    padding-block-start: clamp(28px, 4vw, 44px);
    border-block-start: 1px solid var(--border-light);
}

.product-specification-section h2,
.product-related > h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.018em;
    line-height: 1.2;
}

.product-specification-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.product-specification-item {
    display: grid;
    grid-template-columns: minmax(112px, 0.42fr) minmax(0, 1fr);
    gap: 18px;
    align-items: baseline;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-primary);
}

.product-specification-item > :first-child {
    color: var(--text-tertiary);
    font-size: var(--text-xs);
    font-weight: 600;
    line-height: 1.45;
}

.product-specification-item > :last-child {
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

.product-dimensions-placeholder {
    display: grid;
    place-items: center;
    gap: 7px;
    min-height: 220px;
    padding: 28px;
    border: 1px dashed var(--border-medium);
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.035), rgba(189, 122, 45, 0.035)),
        var(--bg-surface);
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.65;
}

.product-dimensions-placeholder h3 {
    color: var(--text-primary);
    font-size: var(--text-lg);
    line-height: 1.3;
}

.product-dimensions-placeholder p {
    max-width: 680px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
}

.product-related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.product-related-card {
    display: grid;
    grid-template-rows: auto 1fr;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
    border-radius: 9px;
    background: var(--bg-primary);
    color: var(--text-primary);
    cursor: pointer;
    text-align: start;
    transition:
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-base) var(--motion-ease-soft),
        transform var(--motion-base) var(--motion-ease);
}

.product-related-card-media {
    display: grid;
    place-items: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--bg-secondary);
}

.product-related-card-media :is(img, video) {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--motion-slow) var(--motion-ease);
}

.product-related-card-media > span {
    font-size: 3.25rem;
}

.product-related-card-copy {
    display: grid;
    align-content: start;
    gap: 7px;
    padding: 15px 16px 17px;
}

.product-related-card-copy strong {
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.35;
}

.product-related-card-copy > span {
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 650;
    line-height: 1.4;
}

.product-related-card h3 {
    margin: 0 0 5px;
    color: var(--text-primary);
    font-size: var(--text-base);
    line-height: 1.35;
}

.product-related-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: var(--text-xs);
    line-height: 1.55;
}

@media (hover: hover) and (pointer: fine) {
    .product-related-card:hover {
        transform: translateY(-3px);
        border-color: rgba(15, 118, 110, 0.2);
        box-shadow: 0 16px 36px rgba(11, 31, 26, 0.09);
    }

    .product-related-card:hover .product-related-card-media img {
        transform: scale(1.025);
    }

    .product-gallery-stage:hover .product-gallery-media :is(img, video):not(.product-gallery-crop-media) {
        transform: scale(1.012);
    }
}

.product-detail-media-link {
    display: block;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.product-detail-title-link {
    color: inherit;
    text-decoration: none;
    text-underline-offset: 4px;
    transition: color var(--motion-fast) ease;
}

.product-detail-title-link:hover {
    color: var(--accent);
}

.product-detail-view-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: var(--accent);
    font-size: var(--text-xs);
    font-weight: 650;
    line-height: 1.4;
    text-decoration: none;
    text-underline-offset: 4px;
    transition:
        color var(--motion-fast) ease,
        transform var(--motion-fast) var(--motion-ease);
}

.product-detail-view-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.quote-list-requirements {
    margin-block-start: 5px;
    color: var(--text-tertiary);
    font-size: 0.7rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.product-media-dialog {
    width: min(1120px, calc(100vw - 40px));
    max-width: none;
    max-height: calc(100dvh - 40px);
    margin: auto;
    padding: clamp(10px, 2vw, 18px);
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    background: #101815;
    color: #fff;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.36);
}

.product-media-dialog::backdrop {
    background: rgba(6, 13, 11, 0.76);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.product-media-dialog[open] {
    display: grid;
    place-items: center;
    animation: product-media-dialog-enter 260ms var(--motion-ease) both;
}

.product-media-dialog-viewport {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    max-height: calc(100dvh - 76px);
    overflow: hidden;
    border-radius: 8px;
}

.product-media-dialog-viewport > img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100dvh - 76px);
    object-fit: contain;
}

.product-media-dialog-viewport.is-cropped {
    aspect-ratio: 4 / 3;
}

.product-media-dialog-viewport.is-cropped > img {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.product-media-dialog > :is(img, video),
.product-media-dialog .product-gallery-media {
    max-width: 100%;
    max-height: calc(100dvh - 76px);
    border-radius: 8px;
}

.product-media-dialog > :is(img, video) {
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-media-dialog .product-gallery-media {
    width: 100%;
    height: calc(100dvh - 76px);
    background: transparent;
}

.product-media-dialog .product-gallery-media :is(img, video) {
    object-fit: contain;
}

.product-media-dialog-close {
    position: absolute;
    inset-block-start: 14px;
    inset-inline-end: 14px;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(8, 17, 15, 0.76);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color var(--motion-fast) ease,
        transform var(--motion-instant) var(--motion-ease);
}

.product-media-dialog-close:hover {
    background: var(--accent);
}

.product-media-dialog-close:active {
    transform: scale(0.94);
}

@keyframes product-media-dialog-enter {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

[dir="rtl"] .product-detail-page,
[dir="rtl"] .product-detail-summary,
[dir="rtl"] .product-related-card {
    text-align: right;
}

[dir="rtl"] .product-reference {
    letter-spacing: 0;
}

[dir="rtl"] .product-gallery-thumbs {
    direction: rtl;
}

[dir="rtl"] .product-gallery-nav-icon {
    transform: scaleX(-1);
}

@media (max-width: 1024px) {
    .product-detail-hero {
        grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
        gap: 30px;
    }

    .product-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-specification-item {
        grid-template-columns: 1fr;
        gap: 5px;
    }
}

@media (max-width: 820px) {
    .product-detail-hero {
        grid-template-columns: 1fr;
    }

    .product-detail-summary {
        position: static;
    }

    .product-specification-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .product-spotlight--detail {
        padding-block: 28px 44px;
    }

    .product-detail-page {
        gap: 38px;
    }

    .product-detail-breadcrumb {
        margin-block-end: -18px;
        font-size: 0.72rem;
    }

    .product-detail-hero {
        gap: 24px;
    }

    .product-gallery-stage {
        border-radius: 9px;
    }

    .product-gallery-thumbs {
        grid-auto-columns: 70px;
        gap: 8px;
        margin-inline: -2px;
        padding-inline: 2px;
    }

    .product-gallery-thumb {
        width: 70px;
        border-radius: 7px;
    }

    .product-gallery-zoom::after {
        inset-inline-end: 10px;
        inset-block-end: 10px;
        width: 42px;
        height: 42px;
    }

    .product-gallery-nav {
        width: 42px;
        height: 42px;
    }

    .product-gallery-nav--previous {
        inset-inline-start: 10px;
    }

    .product-gallery-nav--next {
        inset-inline-end: 10px;
    }

    .product-detail-summary {
        gap: 18px;
        padding: 21px 18px;
        border-radius: 10px;
        box-shadow: 0 14px 38px rgba(11, 31, 26, 0.06);
    }

    .product-detail-summary > h1,
    .product-detail-summary > h2 {
        font-size: clamp(1.65rem, 8vw, 2rem);
    }

    .product-request-grid,
    .product-detail-primary-actions {
        grid-template-columns: 1fr;
    }

    .product-request-note {
        grid-column: auto;
    }

    .product-detail-primary-actions > * {
        width: 100%;
        min-height: 50px;
    }

    .product-specification-section,
    .product-related {
        gap: 18px;
    }

    .product-specification-item {
        padding: 14px 15px;
    }

    .product-dimensions-placeholder {
        min-height: 180px;
        padding: 22px 18px;
    }

    .product-related-grid {
        grid-template-columns: 1fr;
    }

    .product-media-dialog {
        width: calc(100vw - 16px);
        max-height: calc(100dvh - 16px);
        padding: 8px;
        border-radius: 11px;
    }

    .product-media-dialog > :is(img, video),
    .product-media-dialog .product-gallery-media,
    .product-media-dialog-viewport,
    .product-media-dialog-viewport > img {
        max-height: calc(100dvh - 32px);
    }

    .product-media-dialog .product-gallery-media {
        height: calc(100dvh - 32px);
    }

    .product-media-dialog-close {
        inset-block-start: 12px;
        inset-inline-end: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .product-detail-boot-block,
    .product-gallery-media :is(img, video),
    .product-gallery-zoom::after,
    .product-gallery-zoom,
    .product-gallery-nav,
    .product-gallery-thumb,
    .product-related-card,
    .product-detail-breadcrumb a,
    .product-detail-title-link,
    .product-detail-view-link,
    .product-media-dialog,
    .product-media-dialog-close {
        animation: none !important;
        transition: none !important;
    }
}

@media (max-width: 820px) {
    .product-detail-boot-header {
        padding-inline: 18px;
    }

    .product-detail-boot-nav {
        width: 104px;
    }

    .product-detail-boot-shell {
        width: min(100% - 28px, 620px);
        padding-block: 28px 42px;
    }

    .product-detail-boot-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-block-start: 18px;
    }

    .product-detail-boot-summary {
        gap: 14px;
        padding: 21px 18px;
    }

    .product-detail-boot-line--title {
        height: 34px;
    }
}

/* ==========================================================================
   2026-07-26 Confirmed homepage catalog navigation
   ========================================================================== */

.catalog-sticky-sentinel {
    display: block;
    height: 0;
    pointer-events: none;
}

#products .cat-pills-wrapper {
    position: sticky;
    top: var(--nav-height);
    z-index: 90;
    isolation: isolate;
    margin-bottom: 24px;
    overflow-anchor: none;
}

#products .cat-pills-wrapper::before,
#products .cat-pills-wrapper::after {
    display: none;
}

#products .cat-pills {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(7, minmax(max-content, 1fr));
    gap: 12px;
    margin: 0;
    padding: 10px 0;
    overflow-x: auto;
    border-bottom: 1px solid rgba(24, 33, 31, 0.07);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 5px 14px rgba(11, 31, 26, 0.045);
    backdrop-filter: blur(18px) saturate(145%);
    -webkit-backdrop-filter: blur(18px) saturate(145%);
    scroll-padding-inline: 4px;
    transition: padding var(--motion-fast) ease;
}

#products .products-grid {
    overflow-anchor: none;
}

#products .cat-pill {
    min-height: 48px;
    padding: 8px 16px;
    justify-content: center;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    box-shadow: 0 2px 8px rgba(11, 31, 26, 0.04);
    font-weight: 650;
    transition:
        min-height var(--motion-fast) ease,
        padding var(--motion-fast) ease,
        font-size var(--motion-fast) ease,
        border-radius var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        color var(--motion-fast) ease,
        background-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        transform var(--motion-instant) ease;
}

#products .cat-pills-wrapper.is-catalog-stuck .cat-pills {
    padding-top: 5px;
    padding-bottom: 5px;
}

#products .cat-pills-wrapper.is-catalog-stuck .cat-pill {
    min-height: 40px;
    padding-top: 6px;
    padding-bottom: 6px;
}

@media (min-width: 1100px) {
    #products .cat-pills-wrapper.is-catalog-stuck .cat-pills {
        display: flex;
        justify-content: flex-start;
        gap: 8px;
    }

    #products .cat-pills-wrapper.is-catalog-stuck .cat-pill {
        flex: 0 0 auto;
        min-width: 0;
        padding-inline: 14px;
    }
}

#products .cat-pill:hover {
    border-color: rgba(15, 118, 110, 0.48);
    color: var(--accent);
    background: var(--bg-primary);
}

#products .cat-pill.active {
    border-color: var(--accent);
    color: #fff;
    background: var(--accent);
    box-shadow: 0 7px 18px rgba(15, 118, 110, 0.18);
}

#products .cat-pills .motion-selection-indicator {
    border-radius: 8px;
    background: var(--accent);
}

.catalog-submenu-branch {
    --submenu-wrapper-border: rgba(255, 255, 255, 0.76);
    --submenu-wrapper-top: rgba(255, 255, 255, 0.74);
    --submenu-wrapper-bottom: rgba(246, 249, 248, 0.6);
    --submenu-connector-top: rgba(255, 255, 255, 0.72);
    --submenu-connector-bottom: rgba(247, 250, 249, 0.58);
    --submenu-connector-seam: rgba(250, 252, 251, 0.78);
    --submenu-glass-text: #465d58;
    --submenu-glass-border: rgba(255, 255, 255, 0.86);
    --submenu-glass-shade: rgba(15, 118, 110, 0.025);
    --submenu-glass-base: rgba(255, 255, 255, 0.72);
    --submenu-glass-inset: rgba(15, 118, 110, 0.08);
    --submenu-glass-drop: rgba(11, 31, 26, 0.08);
    --submenu-glass-hover-shade: rgba(15, 118, 110, 0.05);
    --submenu-glass-hover-base: rgba(247, 251, 249, 0.84);
    --submenu-glass-hover-inset: rgba(15, 118, 110, 0.12);
    --submenu-glass-hover-drop: rgba(11, 31, 26, 0.11);
    --submenu-glass-active-shade: rgba(155, 105, 52, 0.07);
    --submenu-glass-active-base: rgba(235, 215, 181, 0.82);
    --submenu-glass-active-text: #533a24;
    --submenu-glass-active-inset: rgba(138, 91, 45, 0.14);
    --submenu-glass-active-drop: rgba(76, 44, 20, 0.13);
    position: relative;
    z-index: 2;
    isolation: isolate;
    margin: -10px 0 9px;
    padding: 6px 8px;
    border: 1px solid var(--submenu-wrapper-border);
    border-radius: 12px;
    background:
        linear-gradient(
            180deg,
            var(--submenu-wrapper-top) 0%,
            var(--submenu-wrapper-bottom) 100%
        );
    box-shadow:
        0 6px 15px rgba(11, 31, 26, 0.075),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(16px) saturate(155%);
    -webkit-backdrop-filter: blur(16px) saturate(155%);
}

.catalog-submenu-branch[hidden] {
    display: none;
}

.catalog-parent-connector {
    position: absolute;
    z-index: 0;
    top: var(--catalog-connector-top, -58px);
    left: var(--catalog-connector-left, 0);
    width: var(--catalog-connector-width, 180px);
    height: var(--catalog-connector-height, 49px);
    border: 1px solid var(--submenu-wrapper-border);
    border-bottom: 0;
    border-radius: 13px 13px 0 0;
    background:
        linear-gradient(
            180deg,
            var(--submenu-connector-top) 0%,
            var(--submenu-connector-bottom) 100%
        );
    box-shadow: 0 -4px 10px rgba(11, 31, 26, 0.035);
    backdrop-filter: blur(12px) saturate(145%);
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    pointer-events: none;
}

.catalog-parent-connector::after {
    content: "";
    position: absolute;
    inset: auto -1px -2px;
    height: 4px;
    background: var(--submenu-connector-seam);
}

.catalog-submenu-rail {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.catalog-submenu-rail::-webkit-scrollbar {
    display: none;
}

.catalog-submenu-scroll-hint {
    display: none;
}

.catalog-submenu-item {
    flex: 1 0 0;
    width: 0;
    min-width: 105px;
    min-height: 38px;
    padding: 8px 13px;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid var(--submenu-glass-border);
    border-radius: 7px;
    color: var(--submenu-glass-text);
    background:
        linear-gradient(
            var(--facet-angle, 150deg),
            rgba(255, 255, 255, 0.5) 0 18%,
            rgba(255, 255, 255, 0.06) 19% 61%,
            var(--submenu-glass-shade) 62% 100%
        ),
        linear-gradient(
            var(--cross-angle, 25deg),
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0.28) 51%
        ),
        var(--submenu-glass-base);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.72),
        inset -1px -1px 0 var(--submenu-glass-inset),
        0 2px 6px var(--submenu-glass-drop);
    backdrop-filter: blur(7px) saturate(150%);
    -webkit-backdrop-filter: blur(7px) saturate(150%);
    font: 700 0.75rem/1.2 inherit;
    white-space: nowrap;
    cursor: pointer;
    transition:
        border-color var(--motion-fast) ease,
        color var(--motion-fast) ease,
        background var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease,
        transform var(--motion-instant) ease;
}

.catalog-submenu-item::before {
    content: "";
    position: absolute;
    top: var(--shine-y, -24%);
    left: var(--shine-x, -8%);
    width: var(--shine-width, 76%);
    height: var(--shine-height, 92%);
    border-radius: 45%;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.58) 0%,
            rgba(255, 255, 255, 0.22) 52%,
            rgba(255, 255, 255, 0) 76%
        );
    clip-path: polygon(0 0, 78% 0, 100% 68%, 18% 100%);
    transform: rotate(var(--shine-rotation, -8deg)) scale(1.4);
    pointer-events: none;
}

.catalog-submenu-item > span,
.catalog-submenu-item > small {
    position: relative;
    z-index: 1;
}

.catalog-submenu-item > small {
    opacity: 0.62;
    font-size: 0.63rem;
    font-weight: 750;
}

.catalog-submenu-item:nth-child(1) { --facet-angle: 142deg; --cross-angle: 29deg; --shine-x: -18%; --shine-y: -32%; --shine-width: 82%; --shine-height: 105%; --shine-rotation: -9deg; }
.catalog-submenu-item:nth-child(2) { --facet-angle: 158deg; --cross-angle: 17deg; --shine-x: 30%; --shine-y: -42%; --shine-width: 84%; --shine-height: 112%; --shine-rotation: 8deg; }
.catalog-submenu-item:nth-child(3) { --facet-angle: 133deg; --cross-angle: 34deg; --shine-x: -25%; --shine-y: 2%; --shine-width: 74%; --shine-height: 96%; --shine-rotation: -15deg; }
.catalog-submenu-item:nth-child(4) { --facet-angle: 166deg; --cross-angle: 21deg; --shine-x: 43%; --shine-y: 0%; --shine-width: 76%; --shine-height: 98%; --shine-rotation: 13deg; }
.catalog-submenu-item:nth-child(5) { --facet-angle: 149deg; --cross-angle: 31deg; --shine-x: 4%; --shine-y: -38%; --shine-width: 94%; --shine-height: 104%; --shine-rotation: 1deg; }
.catalog-submenu-item:nth-child(6) { --facet-angle: 138deg; --cross-angle: 19deg; --shine-x: -32%; --shine-y: -13%; --shine-width: 88%; --shine-height: 112%; --shine-rotation: -11deg; }
.catalog-submenu-item:nth-child(7) { --facet-angle: 161deg; --cross-angle: 37deg; --shine-x: 49%; --shine-y: -34%; --shine-width: 78%; --shine-height: 108%; --shine-rotation: 11deg; }
.catalog-submenu-item:nth-child(8) { --facet-angle: 150deg; --cross-angle: 25deg; --shine-x: -10%; --shine-y: -26%; --shine-width: 86%; --shine-height: 110%; --shine-rotation: -7deg; }
.catalog-submenu-item:nth-child(9) { --facet-angle: 145deg; --cross-angle: 14deg; --shine-x: 24%; --shine-y: 6%; --shine-width: 88%; --shine-height: 92%; --shine-rotation: 9deg; }
.catalog-submenu-item:nth-child(10) { --facet-angle: 156deg; --cross-angle: 32deg; --shine-x: -28%; --shine-y: -39%; --shine-width: 92%; --shine-height: 106%; --shine-rotation: -12deg; }
.catalog-submenu-item:nth-child(11) { --facet-angle: 136deg; --cross-angle: 22deg; --shine-x: 38%; --shine-y: -8%; --shine-width: 80%; --shine-height: 102%; --shine-rotation: 14deg; }

.catalog-submenu-item:hover {
    border-color: rgba(255, 255, 255, 0.88);
    color: #354d48;
    background:
        linear-gradient(
            var(--facet-angle, 150deg),
            rgba(255, 255, 255, 0.55) 0 18%,
            rgba(255, 255, 255, 0.08) 19% 61%,
            var(--submenu-glass-hover-shade) 62% 100%
        ),
        linear-gradient(
            var(--cross-angle, 25deg),
            rgba(255, 255, 255, 0.1) 50%,
            rgba(255, 255, 255, 0.31) 51%
        ),
        var(--submenu-glass-hover-base);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.76),
        inset -1px -1px 0 var(--submenu-glass-hover-inset),
        0 4px 8px var(--submenu-glass-hover-drop);
    transform: translateY(-1px);
}

.catalog-submenu-item.active {
    border-color: rgba(255, 255, 255, 0.82);
    color: var(--submenu-glass-active-text);
    background:
        linear-gradient(
            var(--facet-angle, 150deg),
            rgba(255, 255, 255, 0.3) 0 18%,
            rgba(255, 255, 255, 0.04) 19% 61%,
            var(--submenu-glass-active-shade) 62% 100%
        ),
        linear-gradient(
            var(--cross-angle, 25deg),
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0.2) 51%
        ),
        var(--submenu-glass-active-base);
    box-shadow:
        inset 1px 1px 0 rgba(255, 255, 255, 0.58),
        inset -1px -1px 0 var(--submenu-glass-active-inset),
        0 3px 8px var(--submenu-glass-active-drop);
}

.catalog-submenu-item:active {
    transform: translateY(1px);
}

.catalog-submenu-item:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.3);
    outline-offset: 2px;
}

@media (max-width: 1099px) {
    #products .cat-pills {
        display: flex;
        justify-content: flex-start;
    }

    #products .cat-pill {
        min-width: 148px;
    }

    .catalog-submenu-item {
        flex: 0 0 124px;
        width: 124px;
        min-width: 124px;
    }
}

@media (max-width: 1399px) {
    #products .cat-pills-wrapper {
        max-width: 100%;
        overflow-x: clip;
        overflow-y: visible;
    }

    .catalog-submenu-scroll-hint {
        position: absolute;
        z-index: 4;
        top: 50%;
        width: 28px;
        height: 30px;
        display: grid;
        place-items: center;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.76);
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.58);
        box-shadow:
            0 3px 10px rgba(11, 31, 26, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
        backdrop-filter: blur(10px) saturate(145%);
        -webkit-backdrop-filter: blur(10px) saturate(145%);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-50%) scale(0.92);
        cursor: pointer;
        transition:
            opacity var(--motion-fast) ease,
            visibility var(--motion-fast) ease,
            transform var(--motion-fast) ease;
    }

    .catalog-submenu-scroll-hint::before {
        content: "";
        width: 0;
        height: 0;
        border-top: 5px solid transparent;
        border-bottom: 5px solid transparent;
    }

    .catalog-submenu-scroll-hint--left {
        left: 3px;
    }

    .catalog-submenu-scroll-hint--left::before {
        border-right: 7px solid rgba(15, 118, 110, 0.82);
    }

    .catalog-submenu-scroll-hint--right {
        right: 3px;
    }

    .catalog-submenu-scroll-hint--right::before {
        border-left: 7px solid rgba(15, 118, 110, 0.82);
    }

    .catalog-submenu-branch.can-scroll-left .catalog-submenu-scroll-hint--left,
    .catalog-submenu-branch.can-scroll-right .catalog-submenu-scroll-hint--right {
        opacity: 1;
        visibility: visible;
        transform: translateY(-50%) scale(1);
    }
}

@media (max-width: 768px) {
    #products .cat-pills {
        gap: 8px;
        padding: 8px 2px;
    }

    #products .cat-pill {
        min-width: 136px;
        min-height: 44px;
        padding: 7px 12px;
    }

    #products .cat-pills-wrapper.is-catalog-stuck .cat-pills {
        padding-top: 3px;
        padding-bottom: 3px;
    }

    #products .cat-pills-wrapper.is-catalog-stuck .cat-pill {
        min-height: 34px;
        padding-top: 4px;
        padding-bottom: 4px;
        border-radius: 7px;
        font-size: 0.75rem;
        line-height: 1.05;
    }

    .catalog-submenu-branch {
        margin-top: -8px;
        padding: 4px 5px;
    }

    .catalog-submenu-item {
        min-height: 36px;
        padding-top: 6px;
        padding-bottom: 6px;
    }

    .catalog-submenu-scroll-hint {
        width: 26px;
        height: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-submenu-item {
        transition: none;
    }
}

/* Local comparison B: desktop subcategories slide in from the physical left edge. */
@media (min-width: 1400px) {
    #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-branch {
        position: absolute;
        top: 100%;
        left: calc((100vw - 100%) / -2);
        width: 142px;
        margin: 0;
        padding: 7px;
        border-left: 0;
        border-radius: 0 12px 12px 0;
        animation: catalog-left-rail-in 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }

    #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-parent-connector {
        display: none;
    }

    #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-rail {
        flex-direction: column;
        gap: 6px;
        overflow: visible;
    }

    #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-item {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
        min-height: 42px;
        justify-content: flex-start;
        padding-inline: 12px 9px;
        text-align: start;
    }

    html[lang="en"] #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-branch,
    html[lang="ar"] #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-branch {
        width: clamp(164px, calc((100vw - 100%) / 2 - 16px), 190px);
    }

    html[lang="en"] #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-item,
    html[lang="ar"] #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-item {
        min-height: 46px;
        white-space: normal;
        overflow-wrap: anywhere;
        line-height: 1.18;
    }

    html[dir="rtl"] #products .cat-pills-wrapper[data-nav-layout="left-edge-rail"] .catalog-submenu-branch {
        left: calc((100vw - 100%) / -2 + 10px);
    }
}

@keyframes catalog-left-rail-in {
    from {
        opacity: 0;
        transform: translateX(-105%);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
