/* ==========================================================================
   Bubbly — design system (gold & black, corporate B2B). RTL-first.
   Tokens → base → components → sections → pages → responsive.
   ========================================================================== */

:root {
    /* brand */
    --ink-950: #070708;
    --ink-900: #0b0b0d;
    --ink-800: #131316;
    --ink-700: #1b1b20;
    --ink-600: #26262d;
    --gold-100: #f6e9c2;
    --gold-300: #e6c673;
    --gold-500: #c9a24b;
    --gold-600: #b08a32;
    --gold-ink: #7a5c1e;           /* gold readable on light backgrounds */
    --paper: #f6f3ec;
    --paper-2: #ffffff;
    --paper-line: rgba(24, 18, 6, .10);

    /* semantic (dark is the default surface) */
    --bg: var(--ink-900);
    --surface: var(--ink-800);
    --surface-2: var(--ink-700);
    --fg: #f3f0e9;
    --muted: #b6b1a4;
    --line: rgba(255, 255, 255, .10);
    --line-gold: rgba(201, 162, 75, .38);
    --accent: var(--gold-500);
    --accent-text: var(--gold-300);

    --gold-grad: linear-gradient(135deg, #f1d98f 0%, #d4ae55 45%, #b58a33 100%);
    --radius: 14px;
    --radius-sm: 10px;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 4px 14px rgba(0, 0, 0, .06);
    --shadow-2: 0 10px 30px rgba(0, 0, 0, .14);
    --shadow-gold: 0 10px 28px rgba(201, 162, 75, .28);
    --ease: cubic-bezier(.2, .7, .2, 1);

    --font-display: 'El Messiri', 'IBM Plex Sans Arabic', 'Segoe UI', serif;
    --font-body: 'IBM Plex Sans Arabic', 'Segoe UI', Tahoma, system-ui, sans-serif;
    --header-h: 76px;
}

/* light surfaces re-map the semantic tokens */
.sec-light, .sec-white, .page-body {
    --bg: var(--paper);
    --surface: var(--paper-2);
    --surface-2: #faf8f3;
    --fg: #17140d;
    --muted: #5c574b;
    --line: var(--paper-line);
    --line-gold: rgba(176, 138, 50, .45);
    --accent: var(--gold-ink);
    --accent-text: var(--gold-ink);
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--fg);
    background: var(--ink-900);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.35; font-weight: 700; letter-spacing: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 3px; border-radius: 4px; }

.container { width: 100%; max-width: 75rem; margin-inline: auto; padding-inline: 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; top: -60px; inset-inline-start: 12px; background: var(--gold-300); color: #1a1405; padding: 10px 16px; border-radius: 8px; z-index: 5000; font-weight: 600; }
.skip-link:focus { top: 12px; }
.center { text-align: center; }

.i { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.i-xs { width: .85em; height: .85em; vertical-align: -.1em; }
.i-lg { width: 1.75em; height: 1.75em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 0 28px; border-radius: var(--radius-sm); border: 1px solid transparent;
    font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; white-space: nowrap;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s, color .25s, border-color .25s;
    -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-gold { background: var(--gold-grad); color: #1a1405; box-shadow: 0 6px 18px rgba(201, 162, 75, .28); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: var(--shadow-gold); }
.btn-dark { background: var(--ink-900); color: var(--gold-100); border-color: var(--ink-900); }
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-outline-gold { background: transparent; color: var(--gold-300); border-color: var(--line-gold); }
.btn-outline-gold:hover { background: rgba(201, 162, 75, .12); border-color: var(--gold-500); }
.btn-outline-dark { background: transparent; color: var(--fg); border-color: rgba(23, 20, 13, .35); }
.btn-outline-dark:hover { background: var(--ink-900); color: var(--gold-100); border-color: var(--ink-900); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: 0 36px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent-text); }
.link-arrow .i { transition: transform .25s var(--ease); }
.link-arrow:hover .i { transform: translateX(-4px); }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--ink-950); border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--muted); }
.topbar-inner { display: flex; align-items: center; gap: 24px; min-height: 40px; }
.topbar-spacer { flex: 1; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; transition: color .2s; }
a.topbar-item:hover { color: var(--gold-300); }
.topbar .i { color: var(--gold-500); width: 1.1em; height: 1.1em; }

.site-header {
    position: sticky; top: 0; z-index: 1000; background: rgba(11, 11, 13, .92);
    -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
    border-bottom: 1px solid var(--line); transition: box-shadow .3s, background-color .3s;
}
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .35); background: rgba(7, 7, 8, .96); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 14px; flex: none; }
.brand-logo { height: 52px; width: auto; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-tag { font-size: .78rem; color: var(--muted); }

.main-nav { flex: 1; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; justify-content: center; }
.main-nav a {
    display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px; font-weight: 500; color: #e6e2d8; white-space: nowrap; font-size: .96rem;
    position: relative; transition: color .2s, background-color .2s;
}
.main-nav a:hover { color: var(--gold-300); background: rgba(255, 255, 255, .04); }
.main-nav a.active { color: var(--gold-300); }
.main-nav a.active::after { content: ''; position: absolute; inset-inline: 12px; bottom: 4px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.has-sub { position: relative; }
.sub {
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px; padding: 8px; border-radius: 12px;
    background: var(--ink-800); border: 1px solid var(--line-gold); box-shadow: var(--shadow-2);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s var(--ease), visibility .2s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: flex; width: 100%; padding: 10px 14px; }
.sub a.active::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
.btn-quote-cta { min-height: 46px; padding: 0 20px; position: relative; }
.cart-count {
    background: #d63a2f; color: #fff; border-radius: 999px; min-width: 22px; height: 22px; font-size: .78rem; line-height: 22px;
    text-align: center; padding: 0 6px; font-weight: 700; font-style: normal;
}
.menu-toggle { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line-gold); background: transparent; color: var(--gold-300); align-items: center; justify-content: center; }

/* mobile drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 1900; }
.drawer {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0; width: min(86vw, 360px); background: var(--ink-900); z-index: 2000;
    border-inline-start: 1px solid var(--line-gold); padding: 20px 22px 28px; overflow-y: auto; display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .3s var(--ease);
}
.drawer.open { transform: none; }
.drawer[hidden] { display: none !important; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer-close { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); display: inline-flex; align-items: center; justify-content: center; }
.drawer nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px; border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer nav a.active { color: var(--gold-300); }
.drawer nav .drawer-sub a { padding-inline-start: 22px; color: var(--muted); font-weight: 400; font-size: .95rem; }
.drawer-contact { margin-top: auto; padding-top: 22px; display: grid; gap: 12px; color: var(--muted); }
.drawer-contact a { display: flex; align-items: center; gap: 10px; }
.drawer-contact .i { color: var(--gold-500); }

.mobile-bar { display: none; }
.whatsapp-float {
    position: fixed; bottom: 24px; inset-inline-start: 24px; z-index: 1500; width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
    transition: transform .25s var(--ease);
}
.whatsapp-float .i { width: 30px; height: 30px; }
.whatsapp-float:hover { transform: scale(1.08); }
.toast {
    position: fixed; bottom: 96px; left: 50%; transform: translate(-50%, 16px); opacity: 0; z-index: 4000; background: var(--ink-800); color: #f3f0e9;
    border: 1px solid var(--gold-500); border-radius: 12px; padding: 14px 22px; max-width: min(92vw, 520px); text-align: center;
    transition: opacity .3s, transform .3s var(--ease); pointer-events: none; box-shadow: var(--shadow-2);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Generic sections ---------- */
.sec { padding: 96px 0; position: relative; }
.sec-dark { background: var(--ink-900); color: var(--fg); }
.sec-dark-2 { background: var(--ink-800); color: var(--fg); --surface: var(--ink-900); }
.sec-light { background: var(--paper); color: var(--fg); }
.sec-white { background: var(--paper-2); color: var(--fg); --bg: var(--paper-2); --surface: var(--paper); }
.sec-head { max-width: 720px; margin-bottom: 52px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-text); font-weight: 600; font-size: .92rem; margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.sec-head.center .eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); margin-bottom: 14px; }
.sec-head p { color: var(--muted); font-size: 1.08rem; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-950); }
.hero-bg { position: absolute; inset: 0; z-index: -2; background: url('img/banner.webp') center / cover no-repeat; opacity: .55; transform: scale(1.05); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
    linear-gradient(270deg, rgba(7, 7, 8, .94) 0%, rgba(7, 7, 8, .78) 45%, rgba(7, 7, 8, .55) 100%),
    linear-gradient(180deg, transparent 70%, var(--ink-900) 100%); }
.bubbles { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bubbles span {
    position: absolute; bottom: -160px; border-radius: 50%; border: 1px solid rgba(230, 198, 115, .35);
    background: radial-gradient(circle at 30% 28%, rgba(255, 244, 205, .22), rgba(201, 162, 75, .06) 55%, transparent 70%);
    animation: rise linear infinite;
}
.bubbles span:nth-child(1) { inset-inline-start: 6%;  width: 54px;  height: 54px;  animation-duration: 17s; animation-delay: -2s; }
.bubbles span:nth-child(2) { inset-inline-start: 17%; width: 120px; height: 120px; animation-duration: 25s; animation-delay: -9s; }
.bubbles span:nth-child(3) { inset-inline-start: 33%; width: 38px;  height: 38px;  animation-duration: 14s; animation-delay: -5s; }
.bubbles span:nth-child(4) { inset-inline-start: 48%; width: 82px;  height: 82px;  animation-duration: 21s; animation-delay: -12s; }
.bubbles span:nth-child(5) { inset-inline-start: 63%; width: 150px; height: 150px; animation-duration: 29s; animation-delay: -3s; }
.bubbles span:nth-child(6) { inset-inline-start: 76%; width: 46px;  height: 46px;  animation-duration: 16s; animation-delay: -8s; }
.bubbles span:nth-child(7) { inset-inline-start: 88%; width: 96px;  height: 96px;  animation-duration: 23s; animation-delay: -14s; }
@keyframes rise { from { transform: translateY(0) translateX(0); opacity: 0; } 8% { opacity: 1; } to { transform: translateY(-115vh) translateX(26px); opacity: .2; } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; padding-block: clamp(36px, 8vh, 88px) clamp(44px, 9vh, 96px); }
.hero h1 { font-size: clamp(2.2rem, min(5vw, 7.2vh), 3.7rem); line-height: 1.25; margin-bottom: 20px; }
.hero h1 em { font-style: normal; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 1.18rem; color: #d9d5ca; max-width: 560px; margin-bottom: clamp(20px, 3.5vh, 32px); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: clamp(22px, 4vh, 36px); }
.hero-points { display: flex; flex-wrap: wrap; gap: 12px 28px; color: #cfcabd; font-size: .98rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .i { color: var(--gold-500); }
.hero-visual { position: relative; min-height: clamp(320px, 48vh, 440px); }
.hero-card {
    position: absolute; background: #fff; border-radius: 18px; padding: 14px; box-shadow: 0 30px 60px rgba(0, 0, 0, .55); border: 1px solid rgba(230, 198, 115, .5);
    transition: transform .5s var(--ease);
}
.hero-card img { border-radius: 10px; width: 100%; height: 100%; object-fit: contain; }
.hero-card figcaption { position: absolute; bottom: -14px; inset-inline-start: 16px; background: var(--gold-grad); color: #1a1405; font-weight: 700; font-size: .9rem; padding: 6px 16px; border-radius: 999px; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.hero-card.c1 { width: 62%; aspect-ratio: 1; top: 0; inset-inline-end: 0; transform: rotate(3deg); }
.hero-card.c2 { width: 54%; aspect-ratio: 1; bottom: 0; inset-inline-start: 0; transform: rotate(-4deg); }
.hero-visual:hover .c1 { transform: rotate(1deg) translateY(-6px); }
.hero-visual:hover .c2 { transform: rotate(-2deg) translateY(6px); }

/* ---------- Trust strip ---------- */
.strip { background: var(--ink-800); border-block: 1px solid var(--line-gold); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip-item { display: flex; align-items: center; gap: 14px; padding: 26px 22px; border-inline-end: 1px solid var(--line); }
.strip-item:last-child { border-inline-end: 0; }
.strip-item .i { width: 34px; height: 34px; color: var(--gold-500); }
.strip-item strong { display: block; font-size: 1rem; line-height: 1.4; }
.strip-item span { color: var(--muted); font-size: .86rem; }

/* ---------- Cards (surface-aware) ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }

/* category cards */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.cat-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 22px; border-top: 3px solid var(--gold-500); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: var(--line-gold); border-top-color: var(--gold-500); }
.cat-media { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(ellipse at 50% 38%, #fff 0%, #fff 45%, #f4eee0 100%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.06); }
.cat-badge { position: absolute; top: 14px; inset-inline-start: 14px; background: var(--ink-900); color: var(--gold-300); font-size: .85rem; font-weight: 600; padding: 4px 14px; border-radius: 999px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.cat-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.cat-head { display: flex; align-items: center; gap: 14px; }
.cat-icon { width: 48px; height: 48px; flex: none; border-radius: 14px; background: linear-gradient(145deg, #1d1a12, var(--ink-900)); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(201, 162, 75, .35); }
.cat-body h3 { font-size: 1.5rem; line-height: 1.3; }
.cat-body p { color: var(--muted); flex: 1; line-height: 1.9; }
.cat-foot { margin-top: 6px; }
.cat-go { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; border-radius: 12px; border: 1px solid var(--line-gold); color: var(--gold-ink); font-weight: 600; background: rgba(201, 162, 75, .08); transition: background-color .25s, color .25s; }
.cat-go .i { transition: transform .25s var(--ease); }
.cat-card.is-link:hover .cat-go { background: var(--gold-500); color: #1a1405; }
.cat-card.is-link:hover .cat-go .i { transform: translateX(-4px); }
.soon { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }

/* ---------- Shop: toolbar / grid / cards ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; transition: all .2s; }
.chip small { color: var(--muted); }
.chip:hover { border-color: var(--gold-500); }
.chip.active { background: var(--ink-900); color: var(--gold-100); border-color: var(--ink-900); }
.chip.active small { color: var(--gold-300); }
.shop-search { display: flex; flex: 0 1 360px; min-width: 240px; }
.shop-search input { flex: 1; min-width: 0; min-height: 46px; padding: 0 18px; border: 1px solid var(--line); border-inline-end: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); color: var(--fg); font: inherit; }
.shop-search button { width: 52px; border: 0; border-radius: var(--radius-sm) 0 0 var(--radius-sm); background: var(--ink-900); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; }
.shop-search input:focus { outline: none; border-color: var(--gold-500); }
.result-count { color: var(--muted); margin-bottom: 18px; font-size: .95rem; }

.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.shop-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.shop-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--line-gold); }
.shop-card-media { position: relative; aspect-ratio: 1 / 1; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.shop-card-media img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.shop-card:hover .shop-card-media img { transform: scale(1.05); }
.noimg { color: #b5b0a3; }
.noimg .i { width: 56px; height: 56px; }
.shop-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pill { align-self: flex-start; font-size: .8rem; font-weight: 600; color: var(--gold-ink); background: rgba(201, 162, 75, .14); padding: 2px 12px; border-radius: 999px; }
.shop-card-title { font-size: 1.1rem; line-height: 1.5; }
.shop-card-title a:hover { color: var(--gold-ink); }
.shop-card-desc { color: var(--muted); font-size: .94rem; line-height: 1.65; flex: 1; }
.shop-card-price { font-weight: 700; color: var(--fg); }
.shop-card-price.on-request { color: var(--muted); font-weight: 400; font-size: .9rem; }
.shop-card-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.shop-card-actions .btn { flex: 1; padding: 0 14px; }
.btn-add { background: transparent; color: var(--gold-ink); border: 1px solid var(--line-gold); }
.btn-add:hover { background: rgba(201, 162, 75, .12); }
.btn-add.in-cart { background: var(--ink-900); color: var(--gold-100); border-color: var(--ink-900); }
.btn-add.in-cart::before { content: '✓'; font-weight: 700; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.pagination a { min-width: 44px; height: 44px; line-height: 42px; text-align: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; }
.pagination a.active, .pagination a:hover { background: var(--ink-900); color: var(--gold-100); border-color: var(--ink-900); }
.empty-state { text-align: center; padding: 64px 20px; color: var(--muted); }
.empty-state .btn { margin-top: 20px; }
.notes-card { margin-top: 48px; padding: 28px; }
.notes-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.notes-card ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 24px; }
.notes-card li { display: flex; gap: 10px; align-items: flex-start; }
.notes-card li::before { content: ''; flex: none; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--gold-500); }
.cta-strip {
    margin-top: 56px; padding: 34px 38px; border-radius: var(--radius); display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: var(--ink-900); color: #f3f0e9; border: 1px solid var(--line-gold);
}
.cta-strip h2 { font-size: 1.5rem; margin-bottom: 4px; color: var(--gold-100); }
.cta-strip p { color: #cfcabd; }

/* ---------- Inner page header band ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; background: var(--ink-900); padding: 44px 0 40px; border-bottom: 1px solid var(--line-gold); }
.page-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 15% 10%, rgba(201, 162, 75, .18), transparent 50%), radial-gradient(circle at 90% 100%, rgba(201, 162, 75, .08), transparent 45%); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); }
.page-head p { color: var(--muted); max-width: 680px; margin-top: 10px; font-size: 1.05rem; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--gold-300); }
.breadcrumb .sep { opacity: .5; }
.page-body { background: var(--paper); color: var(--fg); padding: 52px 0 96px; min-height: 50vh; }

/* ---------- Product page ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.gallery-main { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-zoom { position: absolute; bottom: 14px; inset-inline-start: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(11, 11, 13, .8); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.gallery-thumb { width: 84px; height: 84px; padding: 0; background: #fff; border: 2px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumb.active, .gallery-thumb:hover { border-color: var(--gold-500); }
.product-info > * + * { margin-top: 16px; }
.product-cat-link { color: var(--gold-ink); font-weight: 600; }
.product-name { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.product-code { color: var(--muted); }
.product-code strong { color: var(--fg); }
.product-price { font-size: 1.7rem; font-weight: 700; font-family: var(--font-display); color: var(--fg); }
.product-price.on-request { font-size: 1.05rem; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.product-short { color: var(--muted); font-size: 1.08rem; }
.facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; }
.facts li + li { border-top: 1px solid var(--line); }
.facts span { color: var(--muted); }
.tiers { border: 1px solid var(--line-gold); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.tiers h2 { font-size: 1.05rem; padding: 12px 18px; background: rgba(201, 162, 75, .12); display: flex; align-items: center; gap: 8px; }
.tiers table { width: 100%; border-collapse: collapse; }
.tiers td { padding: 11px 18px; border-top: 1px solid var(--line); }
.tiers td:last-child { text-align: end; font-weight: 700; }
.buy-box { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.qty-box { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; color: var(--muted); }
.qty-box input { width: 128px; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: var(--surface-2); color: var(--fg); }
.go-quote { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; font-weight: 600; color: var(--gold-ink); }
.detail-sections { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; margin-top: 48px; }
.detail-card { padding: 28px; }
.detail-card h2 { font-size: 1.3rem; margin-bottom: 16px; }
.rich-text { color: #3a362c; line-height: 2; }
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th, .specs-table td { padding: 12px 4px; border-bottom: 1px solid var(--line); text-align: start; }
.specs-table th { color: var(--muted); font-weight: 500; width: 44%; }
.related { margin-top: 64px; }
.related h2 { font-size: 1.6rem; margin-bottom: 24px; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; background: #fff; border-radius: 12px; }
.lightbox-close { position: absolute; top: 18px; inset-inline-start: 18px; background: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: #111; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; font-weight: 500; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid rgba(23, 20, 13, .22); border-radius: var(--radius-sm);
    background: var(--surface-2); color: var(--fg); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-600); box-shadow: 0 0 0 3px rgba(201, 162, 75, .25); }
.field-error { color: #b3261e; font-size: .9rem; font-weight: 400; }
.form-hint { color: var(--muted); font-size: .9rem; }
.hp-field { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
fieldset.options { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 18px 16px; display: grid; gap: 4px; background: var(--surface-2); }
fieldset.options legend { padding: 0 8px; font-weight: 600; }
.check { display: flex; align-items: center; gap: 12px; min-height: 40px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold-600); }
.notice { border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 24px; line-height: 1.8; border: 1px solid; }
.notice a { text-decoration: underline; }
.notice-ok { background: #eaf7ee; border-color: #8cc9a0; color: #14532d; }
.notice-err { background: #fdecea; border-color: #e5a29b; color: #7a1c14; }

/* contact */
.contact-layout { display: grid; grid-template-columns: 1fr 1.35fr; gap: 28px; align-items: start; }
.info-cards { display: grid; gap: 14px; }
.info-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; transition: border-color .25s, transform .25s var(--ease); }
a.info-card:hover { border-color: var(--gold-500); transform: translateX(-4px); }
.info-card .ic { width: 50px; height: 50px; border-radius: 12px; background: var(--ink-900); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.info-card small { display: block; color: var(--muted); font-size: .84rem; line-height: 1.4; }
.info-card strong { font-size: 1.05rem; word-break: break-word; }
.form-card { padding: 30px; }
.form-card h2, .form-card h3 { font-size: 1.4rem; margin-bottom: 20px; }

/* quote */
.quote-layout { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.quote-panel { padding: 28px; }
.quote-panel h2 { font-size: 1.3rem; margin-bottom: 18px; }
.quote-row { display: grid; grid-template-columns: 68px 1fr auto auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.quote-row img, .quote-noimg { width: 68px; height: 68px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.quote-row-info a { font-weight: 600; display: block; line-height: 1.5; }
.quote-row-info a:hover { color: var(--gold-ink); }
.quote-row-info small { color: var(--muted); }
.quote-qty { display: flex; align-items: center; gap: 8px; }
.quote-qty input { width: 92px; min-height: 44px; border: 1px solid rgba(23, 20, 13, .22); border-radius: 8px; padding: 0 8px; text-align: center; font: inherit; background: var(--surface-2); color: var(--fg); }
.quote-unit { color: var(--muted); font-size: .9rem; }
.quote-remove { width: 44px; height: 44px; border: 0; background: transparent; color: #b3261e; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.quote-remove:hover { background: #fdecea; }
.quote-empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.quote-empty .btn { margin-top: 14px; }
.quote-suggest { margin-top: 26px; padding-top: 20px; border-top: 1px dashed var(--line-gold); }
.quote-panel .quote-suggest h3 { font-size: 1.05rem; margin-bottom: 12px; color: var(--gold-ink); }
.quote-suggest-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.suggest-card { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.suggest-card img, .suggest-card .quote-noimg { width: 56px; height: 56px; object-fit: contain; border-radius: 8px; border: 1px solid var(--line); }
.suggest-card strong { display: block; font-size: .92rem; line-height: 1.4; }
.suggest-card small { color: var(--muted); }
.sample-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--gold-ink); }
.sample-link:hover { text-decoration: underline; }
.add-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 600; color: var(--gold-ink); }
.design-attached { display: flex; gap: 16px; align-items: center; padding: 14px; margin-top: 18px; border: 1px dashed var(--line-gold); border-radius: var(--radius-sm); background: var(--surface-2); }
.design-attached img { width: 92px; height: 92px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); }
.design-attached strong { display: block; }
.design-attached small { color: var(--muted); }

/* ---------- Home: promo / steps / about ---------- */
.promo { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.promo h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 16px; }
.promo p { color: var(--muted); font-size: 1.08rem; margin-bottom: 22px; }
.promo ul { display: grid; gap: 12px; margin-bottom: 30px; }
.promo li { display: flex; gap: 12px; align-items: flex-start; }
.promo li .i { color: var(--gold-500); margin-top: 4px; }
.promo-visual { position: relative; border-radius: 22px; padding: 14px; background: var(--ink-800); border: 1px solid var(--line-gold); box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.promo-visual img { border-radius: 14px; width: 100%; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { padding: 32px 28px; position: relative; }
.step-num { width: 52px; height: 52px; border-radius: 14px; background: var(--ink-900); color: var(--gold-300); font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-grid h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); margin-bottom: 18px; }
.about-grid p { color: #cdc9bd; margin-bottom: 14px; font-size: 1.05rem; }
.quote-block { margin-top: 22px; padding: 22px 26px; border-inline-start: 3px solid var(--gold-500); background: rgba(201, 162, 75, .08); border-radius: var(--radius-sm); font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-100); }
.values { display: grid; gap: 14px; }
.value { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: var(--radius); background: var(--ink-800); border: 1px solid var(--line); transition: border-color .25s; }
.value:hover { border-color: var(--line-gold); }
.value .ic { flex: none; width: 46px; height: 46px; border-radius: 12px; background: rgba(201, 162, 75, .14); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; }
.value strong { display: block; font-size: 1.05rem; }
.value span { color: var(--muted); font-size: .94rem; }
.logos { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 18px; align-items: center; }
.logo-tile { height: 100px; padding: 18px 24px; display: flex; align-items: center; justify-content: center; }
.logo-tile img { max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.logo-tile:hover img { filter: none; opacity: 1; }
.logo-tile span { font-weight: 600; color: var(--muted); text-align: center; }
.certs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 30px; }
.cert { padding: 22px; display: flex; gap: 16px; align-items: center; }
.cert img { width: 76px; height: 76px; object-fit: contain; background: #fff; border-radius: 10px; border: 1px solid var(--line); padding: 4px; }
.cert .ic { width: 56px; height: 56px; border-radius: 12px; background: var(--ink-900); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.cert strong { display: block; line-height: 1.4; }
.cert small { color: var(--muted); }

/* ---------- Bundles ---------- */
.bundles { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.bundle { display: flex; flex-direction: column; overflow: hidden; transition: box-shadow .3s, border-color .3s, transform .3s var(--ease); }
.bundle:hover { box-shadow: var(--shadow-2); border-color: var(--line-gold); transform: translateY(-4px); }
.bundle-head { padding: 26px 26px 6px; }
.bundle-head .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--ink-900); color: var(--gold-300); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.bundle-head h2 { font-size: 1.4rem; margin-bottom: 6px; }
.bundle-head p { color: var(--muted); }
.bundle-items { padding: 14px 26px; display: grid; gap: 4px; flex: 1; }
.bundle-items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.bundle-items img { width: 44px; height: 44px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; flex: none; }
.bundle-items .q { margin-inline-start: auto; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.bundle-foot { padding: 6px 26px 26px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line-gold); padding-top: 72px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 52px; }
.footer-grid:not(:has(.footer-col:nth-child(5))) { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 44px; }
.footer-about p { margin: 18px 0 22px; max-width: 360px; }
.footer-title { font-size: 1.1rem; color: var(--gold-300); margin-bottom: 18px; }
.footer-col li { margin-bottom: 4px; }
.footer-col a { display: inline-flex; min-height: 36px; align-items: center; transition: color .2s; }
.footer-col a:hover { color: var(--gold-300); }
.footer-contact li { display: flex; gap: 12px; align-items: center; min-height: 38px; }
.footer-contact .i { color: var(--gold-500); }
.footer-bottom { border-top: 1px solid var(--line); padding: 22px 0 26px; font-size: .9rem; }

/* ---------- Print Studio ---------- */
.studio { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.studio-stage { position: sticky; top: calc(var(--header-h) + 16px); padding: 18px; background: var(--ink-900); border: 1px solid var(--line-gold); border-radius: 22px; box-shadow: var(--shadow-2); color: #f3f0e9; }
.studio-stage canvas { width: 100%; height: auto; display: block; border-radius: 14px; background: #17171b; touch-action: none; }
.stage-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.stage-actions .btn { flex: 1; }
.studio-panel { padding: 26px; }
.studio-panel > * + * { margin-top: 24px; }
.studio-panel h2 { font-size: 1.15rem; display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.studio-panel h2 .n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink-900); color: var(--gold-300); font-size: .9rem; display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-body); }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 130px; padding: 18px; border: 2px dashed var(--line-gold); border-radius: var(--radius); background: var(--surface-2); text-align: center; cursor: pointer; transition: background-color .2s, border-color .2s; }
.drop:hover, .drop.over { background: rgba(201, 162, 75, .12); border-color: var(--gold-600); }
.drop .i { width: 34px; height: 34px; color: var(--gold-ink); }
.drop small { color: var(--muted); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); padding: 0; transition: transform .2s; }
.swatch[aria-pressed="true"] { border-color: var(--gold-500); transform: scale(1.1); }
.swatch-custom { position: relative; overflow: hidden; background: conic-gradient(red, yellow, lime, aqua, blue, magenta, red); }
.swatch-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.seg button { min-height: 44px; border: 0; background: transparent; font-weight: 500; border-inline-start: 1px solid var(--line); }
.seg button:first-child { border-inline-start: 0; }
.seg button[aria-pressed="true"] { background: var(--ink-900); color: var(--gold-100); }
.range { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.range label { color: var(--muted); font-size: .94rem; }
.range input[type=range] { width: 100%; accent-color: var(--gold-600); height: 44px; }
.check-inline { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check-inline input { width: 20px; height: 20px; accent-color: var(--gold-600); }
.studio-note { font-size: .9rem; color: var(--muted); display: flex; gap: 10px; align-items: flex-start; }
.studio-note .i { color: var(--gold-ink); margin-top: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .main-nav a { padding-inline: 9px; font-size: .9rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .strip-grid { grid-template-columns: repeat(2, 1fr); }
    .strip-item:nth-child(2) { border-inline-end: 0; }
    .strip-item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
/* the main menu has many items now: switch to the drawer earlier than the rest of the layout */
@media (max-width: 1399px) {
    .main-nav { display: none; }
    .menu-toggle { display: inline-flex; }
    .header-inner { justify-content: space-between; }
}
@media (max-width: 992px) {
    :root { --header-h: 68px; }
    .main-nav, .topbar-spacer, .topbar-item:not(:last-child) { display: none; }
    .topbar-inner { justify-content: center; }
    .menu-toggle { display: inline-flex; }
    .sec { padding: 72px 0; }
    .hero-grid, .promo, .about-grid, .contact-layout, .quote-layout, .product-detail, .detail-sections, .studio { grid-template-columns: 1fr; }
    .hero-grid { padding-block: 56px 64px; gap: 40px; }
    .hero-visual { min-height: 340px; max-width: 460px; margin-inline: auto; width: 100%; }
    .cat-grid, .steps { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
    .studio-stage { position: static; }
    .brand-logo { height: 44px; }
}
@media (max-width: 768px) {
    body { padding-bottom: 64px; }
    .whatsapp-float { display: none; }
    .mobile-bar {
        display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset-inline: 0; bottom: 0; z-index: 1600; height: 64px;
        background: rgba(7, 7, 8, .97); border-top: 1px solid var(--line-gold); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .78rem; color: #e6e2d8; position: relative; }
    .mobile-bar a.primary { color: var(--gold-300); font-weight: 600; }
    .mobile-bar .cart-count { position: absolute; top: 6px; inset-inline-end: calc(50% - 30px); font-size: .7rem; min-width: 18px; height: 18px; line-height: 18px; }
    .toast { bottom: 82px; }
    .btn-quote-text { display: none; }
    .btn-quote-cta { padding: 0 14px; }
    .brand-tag { display: none; }
    .brand-name { font-size: 1.5rem; }
    .sec-head { margin-bottom: 36px; }
}
@media (max-width: 640px) {
    .container { padding-inline: 18px; }
    .strip-grid { grid-template-columns: 1fr; }
    .strip-item { border-inline-end: 0 !important; border-bottom: 1px solid var(--line); padding: 18px 8px; }
    .strip-item:last-child { border-bottom: 0; }
    .form-grid { grid-template-columns: 1fr; }
    .shop-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .shop-card-body { padding: 12px 12px 14px; }
    .shop-card-title { font-size: 1rem; }
    .shop-card-desc { display: none; }
    .shop-card-actions { flex-direction: column; }
    .shop-card-actions .btn { min-height: 44px; width: 100%; font-size: .9rem; }
    .quote-row { grid-template-columns: 56px 1fr auto; }
    .quote-row img, .quote-noimg { width: 56px; height: 56px; }
    .quote-qty { grid-column: 2; }
    .form-card, .quote-panel, .studio-panel, .detail-card { padding: 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .hero-card figcaption { font-size: .8rem; padding: 4px 12px; }
    .range { grid-template-columns: 1fr; gap: 4px; }
    .page-body { padding: 36px 0 72px; }
    .cta-strip { padding: 26px 22px; }
    .buy-box .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .bubbles { display: none; }
}

/* utilities added after layout work */
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-head.slim { padding: 22px 0 18px; }
.page-head.slim .breadcrumb { margin-bottom: 0; }
.hero-card.c1 figcaption { bottom: auto; top: -14px; }
.footer-contact small { color: var(--muted); opacity: .8; }
.footer-bottom .legal { margin-bottom: 6px; color: var(--muted); font-size: .86rem; }

/* ---------- Whole category card is one big link (stretched link) ---------- */
.cat-card { position: relative; }
.cat-card.is-link { cursor: pointer; }
.cat-link::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.cat-link:focus-visible { outline: none; }
.cat-card:focus-within { outline: 3px solid var(--gold-300); outline-offset: 3px; }
.cat-card.is-link:hover .link-arrow .i { transform: translateX(-4px); }

/* ---------- Decorative line-art pattern (admin → الإعدادات → مظهر الموقع) ---------- */
.page-body, .site-footer { position: relative; }
.sec > .container, .page-body > .container, .site-footer > .container, .page-head > .container { position: relative; z-index: 1; }
body.has-pattern .sec::before, body.has-pattern .page-body::before, body.has-pattern .site-footer::before, body.has-pattern .page-head::after {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-color: var(--gold-300); opacity: var(--pat-alpha, .07);
    -webkit-mask-image: var(--pat-url); mask-image: var(--pat-url);
    -webkit-mask-size: var(--pat-size, 440px) auto; mask-size: var(--pat-size, 440px) auto;
    -webkit-mask-repeat: repeat; mask-repeat: repeat;
}
body.has-pattern .sec-light::before, body.has-pattern .sec-white::before, body.has-pattern .page-body::before {
    background-color: var(--gold-ink); opacity: calc(var(--pat-alpha, .07) * .8);
}
@media print { body.has-pattern .sec::before, body.has-pattern .page-body::before, body.has-pattern .site-footer::before, body.has-pattern .page-head::after { display: none; } }

/* ---------- Social icons ---------- */
.social { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 18px; }
.social a { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-gold); display: inline-flex; align-items: center; justify-content: center; color: var(--gold-300); transition: background-color .2s, color .2s, transform .2s var(--ease); }
.social a:hover { background: var(--gold-500); color: #1a1405; transform: translateY(-2px); }
.social-inline { margin: 6px 0 0; }
.info-card .social a { color: var(--gold-ink); border-color: var(--line-gold); }
.info-card .social a:hover { color: #1a1405; }

/* ---------- Sector pages, buyer's guide, calculator ---------- */
.preview-banner { background: #fff7e0; border: 1px dashed var(--gold-600); color: #5a4410; border-radius: var(--radius-sm); padding: 12px 18px; margin-bottom: 28px; font-weight: 600; }
.block-title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin: 64px 0 22px; }
.block-title:first-child { margin-top: 0; }
.block-lead { color: var(--muted); max-width: 720px; margin: -10px 0 22px; }
.need-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.need-card { padding: 22px; }
.need-card h3 { font-size: 1.05rem; margin-bottom: 8px; display: flex; gap: 10px; align-items: center; }
.need-card h3 .i { color: var(--gold-ink); flex: none; }
.need-card p { color: var(--muted); line-height: 1.9; }
.tip-list { display: grid; gap: 12px; max-width: 760px; }
.tip-list li { position: relative; padding-inline-start: 34px; line-height: 1.9; }
.tip-list li::before { content: '✓'; position: absolute; inset-inline-start: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: rgba(201, 162, 75, .18); color: var(--gold-ink); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 0 22px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--gold-ink); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); line-height: 2; padding-bottom: 18px; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 20px; }
.guide-card { padding: 24px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2, 0 12px 30px rgba(0, 0, 0, .12)); }
.guide-card h3 { font-size: 1.12rem; line-height: 1.6; }
.guide-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.guide-card p { color: var(--muted); line-height: 1.9; flex: 1; }
.guide-meta { font-size: .85rem; color: var(--gold-ink); font-weight: 600; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.sector-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: transform .2s var(--ease); }
.sector-card:hover { transform: translateY(-3px); }
.sector-card .ic { width: 52px; height: 52px; border-radius: 14px; background: rgba(201, 162, 75, .16); color: var(--gold-ink); display: inline-flex; align-items: center; justify-content: center; }
.sector-card .ic .i { width: 26px; height: 26px; }
.sector-card h3 { font-size: 1.2rem; }
.sector-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.sector-card p { color: var(--muted); line-height: 1.9; flex: 1; }
.guide-article { max-width: 790px; margin-inline: auto; }
.guide-article .guide-intro { font-size: 1.15rem; color: #3a362c; line-height: 2; margin-bottom: 10px; }
.guide-article h2 { font-size: 1.5rem; margin: 40px 0 14px; }
.guide-article p { line-height: 2.05; color: #3a362c; margin-bottom: 14px; }
.guide-article ul, .guide-article ol { margin: 0 0 18px; padding-inline-start: 26px; display: grid; gap: 8px; line-height: 1.95; color: #3a362c; }
.guide-article ul { list-style: disc; }
.guide-article ol { list-style: decimal; }
.guide-note { border-inline-start: 4px solid var(--gold-500); background: rgba(201, 162, 75, .12); padding: 16px 20px; border-radius: var(--radius-sm); margin: 22px 0; line-height: 1.95; }
.guide-table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; font-size: .98rem; }
.guide-table th, .guide-table td { padding: 12px 16px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.guide-table thead th { background: var(--ink-900); color: var(--gold-300); }
.guide-table tbody th { font-weight: 600; color: var(--muted); width: 28%; }
.table-scroll { overflow-x: auto; }
.calc-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.calc-panel { padding: 28px; }
.calc-panel h2 { font-size: 1.25rem; margin-bottom: 18px; }
.calc-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 12px; align-items: end; margin-bottom: 14px; }
.calc-row .field { gap: 5px; font-size: .88rem; }
.calc-row .quote-remove { margin-bottom: 4px; }
.calc-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 6px; padding-top: 18px; border-top: 1px dashed var(--line); }
.calc-result { padding: 26px; background: var(--ink-900); color: #f3f0e9; border: 1px solid var(--line-gold); position: sticky; top: 100px; }
.calc-result h2 { font-size: 1.15rem; color: var(--gold-300); margin-bottom: 14px; }
.calc-line { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.calc-line strong { display: block; font-size: 1rem; }
.calc-line span { display: block; color: #cfc9b8; line-height: 1.9; font-size: .93rem; }
.calc-line b { color: var(--gold-300); font-size: 1.15rem; }
.calc-empty { color: #b6b1a4; line-height: 1.9; }
.calc-note { font-size: .85rem; color: var(--muted); margin-top: 14px; line-height: 1.8; }
.nav-sub-wide .sub { min-width: 260px; }
@media (max-width: 860px) {
    .calc-layout { grid-template-columns: 1fr; }
    .calc-result { position: static; }
    .calc-row { grid-template-columns: 1fr 1fr; }
    .calc-row .field:first-child { grid-column: 1 / -1; }
    .block-title { margin-top: 48px; }
}

/* Larger type on big screens */
@media (min-width: 1280px) { html { font-size: 106.25%; } }
@media (min-width: 1700px) { html { font-size: 112.5%; } }

/* ---------- Compact hero on phones ---------- */
@media (max-width: 640px) {
    .hero-grid { padding-block: 28px 34px; gap: 26px; }
    .hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); margin-bottom: 12px; }
    .hero-lead { font-size: 1rem; margin-bottom: 18px; }
    .hero-cta { flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
    .hero-cta .btn { flex: 1 1 0; min-width: 0; min-height: 46px; padding-inline: 12px; font-size: .95rem; white-space: nowrap; }
    .hero-cta .btn:nth-child(3) { display: none; }
    .hero-points { flex-direction: column; gap: 6px; font-size: .92rem; }
    .hero-visual { min-height: 190px; max-width: 290px; }
    .hero-points li:nth-child(n+3) { display: none; }
}

/* Product card: code pill + packing on one line (long packing text is cut with an ellipsis) */
.shop-card-meta { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shop-card-meta .pill:not(.pill-pack) { flex: none; }
.pill-pack { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: rgba(23, 20, 13, .07); color: var(--fg); }
.pill-pack bdi { unicode-bidi: plaintext; }

/* ---------- Interactive golden bubbles in the hero (assets/hero-bubbles.js) ---------- */
.hero-bubbles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero.has-canvas .bubbles { display: none; }
.hero-grid { position: relative; z-index: 2; }
