/* ==========================================================================
   Taraf design system (ترف): slate-blue elephant + terracotta on warm cream,
   taken from the brand mark. Colours are RGB triples so Tailwind can apply
   opacity: rgb(var(--c-ink) / .5)
   ========================================================================== */
:root {
  --c-bg: 250 246 238;        /* warm cream (logo background) */
  --c-surface: 255 255 255;
  --c-surface-2: 243 236 224;
  --c-ink: 33 45 58;          /* deep slate */
  --c-muted: 102 113 126;
  --c-line: 232 223 208;
  --c-ember: 205 124 77;      /* terracotta: primary accent (brand) */
  --c-gold: 233 170 98;       /* apricot: secondary glow */
  --c-sky: 85 116 134;        /* elephant slate blue (brand) */
  --c-plum: 85 116 134;
  --c-success: 46 139 87;
  --c-danger: 200 64 58;
  --c-warning: 196 122 20;
  --c-info: 63 115 170;

  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --shadow-sm: 0 1px 2px rgb(var(--c-ink) / .06), 0 1px 1px rgb(var(--c-ink) / .04);
  --shadow: 0 8px 24px -8px rgb(var(--c-ink) / .14), 0 2px 6px rgb(var(--c-ink) / .05);
  --shadow-lg: 0 24px 60px -16px rgb(var(--c-ink) / .25);
  --glow: 0 10px 30px -8px rgb(var(--c-ember) / .55);
  --gradient-glow: linear-gradient(120deg, rgb(var(--c-ember)), rgb(var(--c-gold)));
  --nav-h: 76px;
}
/* Arabic: rounded display face that echoes the logo's Arabic wordmark */
:root[lang="ar"] {
  --font-display: "Baloo Bhaijaan 2", "Tajawal", system-ui, sans-serif;
  --font-sans: "Tajawal", "Nunito", system-ui, sans-serif;
}

[data-theme="dark"] {
  --c-bg: 17 21 28;
  --c-surface: 25 30 39;
  --c-surface-2: 34 41 52;
  --c-ink: 242 237 228;
  --c-muted: 160 168 180;
  --c-line: 48 56 69;
  --c-sky: 128 162 184;
  --c-plum: 128 162 184;
  --shadow: 0 8px 24px -8px rgb(0 0 0 / .5), 0 2px 6px rgb(0 0 0 / .3);
  --shadow-lg: 0 24px 60px -16px rgb(0 0 0 / .7);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  background: rgb(var(--c-bg));
  color: rgb(var(--c-ink));
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
[x-cloak], [hidden] { display: none !important; }
::selection { background: rgb(var(--c-ember) / .25); }
:focus-visible { outline: 2px solid rgb(var(--c-ember)); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -100px; z-index: 999; background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); padding: .5rem 1rem; border-radius: 8px; }
.skip-link:focus { top: 8px; }

.font-display { font-family: var(--font-display); font-optical-sizing: auto; font-variation-settings: "SOFT" 100; letter-spacing: -0.02em; }
.container-x { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container-x { padding-inline: 32px; } }
@media (min-width: 1920px) { .container-x { max-width: 1600px; } body { font-size: 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: rgb(var(--c-ember));
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-title { font-family: var(--font-display); font-variation-settings: "SOFT" 100; font-weight: 600; font-size: clamp(1.75rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.025em; }
.text-gradient { background: var(--gradient-glow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: rgb(var(--c-muted)); }
.section { padding-block: clamp(3rem, 7vw, 6rem); }

/* ---------- buttons ---------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.4rem; border-radius: 999px;
  font-weight: 600; font-size: .92rem; line-height: 1; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur) var(--ease-out),
              background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), opacity var(--dur);
  cursor: pointer; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.btn-primary { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); }
.btn-primary:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.btn-accent { background: var(--gradient-glow); color: #fff; box-shadow: var(--glow); }
.btn-accent:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgb(var(--c-ember) / .7); }
.btn-outline { border: 1.5px solid rgb(var(--c-ink) / .9); color: rgb(var(--c-ink)); }
.btn-outline:hover { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); }
.btn-ghost { color: rgb(var(--c-ink)); background: rgb(var(--c-ink) / .05); }
.btn-ghost:hover { background: rgb(var(--c-ink) / .1); }
.btn-light { background: #fff; color: #212d3a; }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-sm { min-height: 36px; padding: .5rem 1rem; font-size: .82rem; }
.btn-lg { min-height: 54px; padding: 1rem 2rem; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-icon { width: 44px; height: 44px; padding: 0; border-radius: 999px; display: inline-grid; place-items: center; transition: background var(--dur), transform var(--dur-fast); }
.btn-icon:hover { background: rgb(var(--c-ink) / .07); }
.btn-icon:active { transform: scale(.9); }
/* Shine sweep on hover */
.btn-shine::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn-shine:hover::after { transform: translateX(120%); }
/* Button states (loading / success) used by add-to-cart */
.btn .btn-state { display: inline-flex; align-items: center; gap: .5rem; transition: opacity var(--dur), transform var(--dur) var(--ease-out); }
.btn [data-state="loading"], .btn [data-state="done"] { position: absolute; inset: 0; justify-content: center; opacity: 0; transform: translateY(100%); }
.btn.is-loading [data-state="idle"], .btn.is-done [data-state="idle"] { opacity: 0; transform: translateY(-100%); }
.btn.is-loading [data-state="loading"] { opacity: 1; transform: none; }
.btn.is-done [data-state="done"] { opacity: 1; transform: none; }
.btn.is-done { background: rgb(var(--c-success)); color: #fff; box-shadow: none; }

/* ---------- surfaces ---------- */
.card { background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-radius: var(--radius-lg); }
.card-pad { padding: clamp(1.1rem, 2.5vw, 1.75rem); }
.divider { height: 1px; background: rgb(var(--c-line)); }
.glass { background: rgb(var(--c-bg) / .78); backdrop-filter: saturate(160%) blur(18px); -webkit-backdrop-filter: saturate(160%) blur(18px); }

.chip {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 36px; padding: .4rem .95rem;
  border-radius: 999px; border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-surface));
  font-size: .82rem; font-weight: 500; transition: all var(--dur) var(--ease-out); cursor: pointer;
}
.chip:hover { border-color: rgb(var(--c-ink) / .4); transform: translateY(-1px); }
.chip.is-active { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: transparent; }

.badge { display: inline-flex; align-items: center; gap: .25rem; padding: .22rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.3; }
.badge-new { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); }
.badge-sale { background: rgb(var(--c-ember)); color: #fff; }
.badge-flash { background: rgb(var(--c-gold)); color: #2a1a00; }
.badge-oos { background: rgb(var(--c-muted) / .9); color: #fff; }
.pill { display: inline-flex; align-items: center; gap: .35rem; padding: .25rem .7rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: currentColor; }
.pill-success { background: rgb(var(--c-success) / .12); color: rgb(var(--c-success)); }
.pill-danger { background: rgb(var(--c-danger) / .12); color: rgb(var(--c-danger)); }
.pill-warning { background: rgb(var(--c-warning) / .14); color: rgb(var(--c-warning)); }
.pill-info { background: rgb(var(--c-info) / .12); color: rgb(var(--c-info)); }
.pill-accent { background: rgb(var(--c-ember) / .12); color: rgb(var(--c-ember)); }
.pill-muted { background: rgb(var(--c-muted) / .14); color: rgb(var(--c-muted)); }

/* ---------- links ---------- */
.link-underline { position: relative; }
.link-underline::after {
  content: ""; position: absolute; inset-inline-start: 0; inset-inline-end: 0; bottom: -3px; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease-out);
}
.link-underline:hover::after, .link-underline.is-active::after { transform: scaleX(1); transform-origin: left; }
.link { color: rgb(var(--c-ember)); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- forms ---------- */
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: var(--radius-sm);
  background: rgb(var(--c-surface)); border: 1.5px solid rgb(var(--c-line)); color: rgb(var(--c-ink));
  font-size: .95rem; transition: border-color var(--dur), box-shadow var(--dur);
}
.textarea { min-height: 120px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: rgb(var(--c-ink)); box-shadow: 0 0 0 4px rgb(var(--c-ember) / .12); }
.label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; }
.help { font-size: .78rem; color: rgb(var(--c-muted)); margin-top: .35rem; }
.error-text { font-size: .78rem; color: rgb(var(--c-danger)); margin-top: .35rem; display: flex; gap: .3rem; align-items: center; }
.has-error .input, .has-error .select, .has-error .textarea { border-color: rgb(var(--c-danger)); }
.checkbox { width: 18px; height: 18px; accent-color: rgb(var(--c-ember)); }

/* Floating label field */
.field { position: relative; }
.field .input, .field .select, .field .textarea { padding-top: 1.35rem; padding-bottom: .45rem; }
.field > label {
  position: absolute; inset-inline-start: 1rem; top: .95rem; font-size: .95rem; color: rgb(var(--c-muted));
  pointer-events: none; transform-origin: left top;
  transition: transform var(--dur) var(--ease-out), color var(--dur);
}
.field .input:focus ~ label, .field .input:not(:placeholder-shown) ~ label,
.field .textarea:focus ~ label, .field .textarea:not(:placeholder-shown) ~ label,
.field .select ~ label, .field.is-filled > label {
  transform: translateY(-.62rem) scale(.76); color: rgb(var(--c-ink) / .8); font-weight: 600;
}
.field .field-icon { position: absolute; inset-inline-end: .9rem; top: 50%; transform: translateY(-50%); color: rgb(var(--c-muted)); }
.field .input.is-valid { border-color: rgb(var(--c-success) / .7); }

/* Range slider (dual-thumb price) */
.range-wrap { position: relative; height: 32px; }
.range-wrap input[type=range] { position: absolute; width: 100%; top: 12px; pointer-events: none; appearance: none; -webkit-appearance: none; background: none; height: 6px; }
.range-wrap input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 99px; background: rgb(var(--c-surface)); border: 3px solid rgb(var(--c-ember)); box-shadow: var(--shadow); cursor: grab; transition: transform var(--dur-fast); }
.range-wrap input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.range-wrap input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 99px; background: rgb(var(--c-surface)); border: 3px solid rgb(var(--c-ember)); cursor: grab; }
.range-track { position: absolute; top: 12px; height: 6px; inset-inline-start: 0; inset-inline-end: 0; border-radius: 9px; background: rgb(var(--c-line)); }
.range-fill { position: absolute; height: 100%; background: var(--gradient-glow); border-radius: 9px; }

/* ---------- navbar ---------- */
.announce { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); font-size: .78rem; }
.site-nav { position: sticky; top: 0; z-index: 50; transition: box-shadow var(--dur) var(--ease-out), background var(--dur); }
.site-nav .nav-inner { height: var(--nav-h); transition: height var(--dur) var(--ease-out); }
.site-nav.is-scrolled { box-shadow: 0 6px 30px -12px rgb(var(--c-ink) / .25); }
.site-nav.is-scrolled .nav-inner { height: 60px; }
.site-nav.is-scrolled .logo-word { transform: scale(.92); }
.logo-word { font-family: var(--font-display); font-weight: 600; font-size: 1.65rem; letter-spacing: -0.04em; transform-origin: left center; transition: transform var(--dur) var(--ease-out); display: inline-flex; align-items: center; gap: .15rem; }
.logo-dot { width: .42em; height: .42em; border-radius: 99px; background: var(--gradient-glow); box-shadow: 0 0 14px rgb(var(--c-gold) / .9); display: inline-block; margin-inline-start: 1px; animation: glowPulse 3s ease-in-out infinite; }
.count-badge {
  position: absolute; top: 2px; inset-inline-end: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 99px; background: rgb(var(--c-ember)); color: #fff; font-size: .65rem; font-weight: 700;
  display: grid; place-items: center; line-height: 1; border: 2px solid rgb(var(--c-bg));
}
.count-badge:empty, .count-badge[data-count="0"] { display: none; }

/* Mega menu */
.mega { position: absolute; inset-inline-start: 0; inset-inline-end: 0; top: 100%; z-index: 40; }
.mega-panel { border-top: 1px solid rgb(var(--c-line)); box-shadow: var(--shadow-lg); background: rgb(var(--c-surface)); }
.mega-link { display: block; padding: .3rem 0; color: rgb(var(--c-muted)); transition: color var(--dur), transform var(--dur) var(--ease-out); }
.mega-link:hover { color: rgb(var(--c-ink)); transform: translateX(4px); }

/* Drawers & modals */
.backdrop { position: fixed; inset: 0; background: rgb(10 8 16 / .5); backdrop-filter: blur(3px); z-index: 80; }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 90; width: min(440px, 100vw); background: rgb(var(--c-surface)); box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.drawer-right { inset-inline-end: 0; }
.drawer-left { inset-inline-start: 0; width: min(360px, 88vw); }
.sheet { position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: 0; z-index: 90; max-height: 88vh; background: rgb(var(--c-surface)); border-radius: 24px 24px 0 0; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; }
.sheet-handle { width: 44px; height: 5px; border-radius: 9px; background: rgb(var(--c-line)); margin: 10px auto 4px; }
.modal-wrap { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.modal { width: min(960px, 100%); max-height: 92vh; overflow: auto; background: rgb(var(--c-surface)); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }

/* Mobile bottom nav */
.bottom-nav { position: fixed; bottom: 0; inset-inline-start: 0; inset-inline-end: 0; z-index: 60; border-top: 1px solid rgb(var(--c-line)); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a, .bottom-nav button { min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .66rem; font-weight: 600; color: rgb(var(--c-muted)); position: relative; transition: color var(--dur); }
.bottom-nav .is-active { color: rgb(var(--c-ink)); }
.bottom-nav .is-active::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--gradient-glow); }
@media (max-width: 1023px) { body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); } }

/* ---------- product card ---------- */
.p-card { position: relative; display: flex; flex-direction: column; transition: transform var(--dur-slow) var(--ease-out); }
.p-card .p-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-lg); background: rgb(var(--c-surface-2)); }
.p-card .p-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), opacity .6s var(--ease-out); }
.p-card .p-media .img-alt { opacity: 0; }
.p-card:hover { transform: translateY(-6px); }
.p-card:hover .p-media { box-shadow: var(--shadow-lg); }
.p-card:hover .p-media img { transform: scale(1.06); }
.p-card:hover .p-media .img-alt { opacity: 1; }
.p-card .p-actions { position: absolute; inset-inline-start: 12px; inset-inline-end: 12px; bottom: 12px; display: flex; gap: 8px; transform: translateY(calc(100% + 16px)); opacity: 0; transition: all var(--dur) var(--ease-out); }
.p-card:hover .p-actions, .p-card:focus-within .p-actions { transform: none; opacity: 1; }
@media (hover: none) { .p-card .p-actions { display: none; } }
.p-card .p-badges { position: absolute; top: 12px; inset-inline-start: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.p-card .p-wish { position: absolute; top: 10px; inset-inline-end: 10px; z-index: 2; }
.wish-btn { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: rgb(var(--c-surface) / .9); backdrop-filter: blur(6px); color: rgb(var(--c-ink)); box-shadow: var(--shadow-sm); position: relative; transition: transform var(--dur-fast) var(--ease-spring); }
.wish-btn:hover { transform: scale(1.1); }
.wish-btn.is-active { color: rgb(var(--c-ember)); }
.wish-btn.is-active svg { fill: currentColor; }
.price-now { font-weight: 700; }
.price-was { color: rgb(var(--c-muted)); text-decoration: line-through; font-size: .85em; }
.price-off { color: rgb(var(--c-success)); font-weight: 700; font-size: .82em; }
/* List view */
.grid-list .p-card { flex-direction: row; gap: 1.25rem; align-items: center; }
.grid-list .p-card .p-media { width: 34%; min-width: 130px; max-width: 240px; flex-shrink: 0; }
.grid-list .p-card:hover { transform: none; }
.grid-list .p-desc { display: block !important; }

/* Swatches */
.swatch { width: 38px; height: 38px; border-radius: 99px; position: relative; border: 2px solid rgb(var(--c-surface)); box-shadow: 0 0 0 1px rgb(var(--c-line)); transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur); }
.swatch:hover { transform: scale(1.1); }
.swatch.is-active { box-shadow: 0 0 0 2px rgb(var(--c-ink)); transform: scale(1.08); animation: swatchPop .4s var(--ease-spring); }
.size-btn { min-width: 48px; height: 44px; padding: 0 .9rem; border-radius: 12px; border: 1.5px solid rgb(var(--c-line)); font-weight: 600; font-size: .85rem; transition: all var(--dur) var(--ease-out); }
.size-btn:hover { border-color: rgb(var(--c-ink)); }
.size-btn.is-active { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: rgb(var(--c-ink)); animation: swatchPop .35s var(--ease-spring); }
.size-btn:disabled { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* Quantity stepper */
.qty { display: inline-flex; align-items: center; border: 1.5px solid rgb(var(--c-line)); border-radius: 999px; height: 44px; }
.qty button { width: 40px; height: 100%; display: grid; place-items: center; border-radius: 999px; transition: background var(--dur); }
.qty button:hover { background: rgb(var(--c-ink) / .06); }
.qty input { width: 38px; text-align: center; background: transparent; font-weight: 700; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }

/* Tabs */
.tabs { display: flex; gap: 1.5rem; border-bottom: 1px solid rgb(var(--c-line)); overflow-x: auto; scrollbar-width: none; position: relative; }
.tabs button { padding: 1rem 0; font-weight: 600; color: rgb(var(--c-muted)); white-space: nowrap; transition: color var(--dur); }
.tabs button.is-active { color: rgb(var(--c-ink)); }
.tab-ink { position: absolute; bottom: -1px; height: 2px; background: rgb(var(--c-ink)); transition: left var(--dur) var(--ease-out), width var(--dur) var(--ease-out); }

/* Accordion */
.acc-item { border-bottom: 1px solid rgb(var(--c-line)); }
.acc-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.15rem 0; text-align: start; font-weight: 600; }
.acc-btn .acc-icon { transition: transform var(--dur) var(--ease-out); flex-shrink: 0; }
.acc-item.is-open .acc-icon { transform: rotate(45deg); }
.acc-item.is-open .acc-chevron { transform: rotate(180deg); }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-slow) var(--ease-out); }
.acc-item.is-open .acc-body { grid-template-rows: 1fr; }
.acc-body > div { overflow: hidden; }

/* Stars */
.stars { display: inline-flex; gap: 1px; color: rgb(var(--c-gold)); }
.stars .empty { color: rgb(var(--c-line)); }

/* Breadcrumbs */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .8rem; color: rgb(var(--c-muted)); }
.breadcrumbs a:hover { color: rgb(var(--c-ink)); }

/* Toasts */
.toast-stack { position: fixed; z-index: 120; top: 16px; inset-inline-end: 16px; inset-inline-start: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; width: min(380px, 100%); display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 16px; background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.toast .toast-bar { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; background: var(--gradient-glow); animation: toastBar linear forwards; }
.toast-success .toast-icon { color: #4ade80; }
.toast-error .toast-icon { color: #f87171; }
.toast-warning .toast-icon { color: #fbbf24; }
.toast-info .toast-icon { color: #93c5fd; }

/* Skeleton shimmer */
.skeleton { background: linear-gradient(90deg, rgb(var(--c-surface-2)) 0%, rgb(var(--c-line) / .6) 40%, rgb(var(--c-surface-2)) 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 12px; }

/* Scroll progress + scroll top */
.scroll-progress { position: fixed; top: 0; inset-inline-start: 0; height: 3px; width: 100%; z-index: 100; background: var(--gradient-glow); transform-origin: 0 50%; transform: scaleX(0); }
.to-top { position: fixed; inset-inline-end: 16px; bottom: 84px; z-index: 55; width: 46px; height: 46px; border-radius: 99px; background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); display: grid; place-items: center; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: all var(--dur) var(--ease-spring); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1024px) { .to-top { bottom: 28px; inset-inline-end: 28px; } }

/* Preloader */
.preloader { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: rgb(var(--c-bg)); }
.preloader .logo-word { font-size: 2.6rem; }
.preloader-bar { width: 140px; height: 2px; background: rgb(var(--c-line)); border-radius: 9px; overflow: hidden; margin: 14px auto 0; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--gradient-glow); animation: loaderSlide 1s var(--ease-out) infinite; }

/* Cookie banner */
.cookie { position: fixed; inset-inline-start: 16px; inset-inline-end: 16px; bottom: 76px; z-index: 70; max-width: 520px; }
@media (min-width: 1024px) { .cookie { bottom: 24px; inset-inline-start: 24px; } }

/* Hero */
.hero { position: relative; }
.hero-slide { position: relative; min-height: clamp(520px, 82vh, 860px); overflow: hidden; display: flex; align-items: center; }
.hero-slide .hero-bg { position: absolute; inset: -6% 0; background-size: cover; background-position: center; will-change: transform; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgb(10 8 16 / .78) 0%, rgb(10 8 16 / .35) 55%, rgb(10 8 16 / .05) 100%); }
.hero-slide.theme-light::after { background: linear-gradient(100deg, rgb(251 248 243 / .92) 0%, rgb(251 248 243 / .5) 55%, transparent 100%); }
.hero-content { position: relative; z-index: 2; }
.hero-title { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.6rem, 7vw, 6rem); line-height: .98; letter-spacing: -0.035em; }
.hero-title .word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; }
.hero-title .word > span { display: inline-block; }
.swiper-pagination-bullet { width: 10px; height: 10px; background: rgb(255 255 255 / .6); opacity: 1; transition: width var(--dur) var(--ease-out); }
.swiper-pagination-bullet-active { width: 32px; border-radius: 9px; background: #fff; }
.hero-progress { position: absolute; inset-inline-start: 0; bottom: 0; height: 3px; background: var(--gradient-glow); z-index: 5; width: 0; }
.swiper-nav { width: 46px; height: 46px; border-radius: 99px; display: grid; place-items: center; border: 1.5px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); transition: all var(--dur) var(--ease-out); }
.swiper-nav:hover { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: rgb(var(--c-ink)); }
.swiper-nav.swiper-button-disabled { opacity: .35; pointer-events: none; }

/* Category tiles */
.cat-tile { position: relative; overflow: hidden; border-radius: var(--radius-lg); aspect-ratio: 3/4; display: block; transition: transform var(--dur-slow) var(--ease-out), box-shadow var(--dur-slow); }
.cat-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(10 8 16 / .75), transparent 55%); }
.cat-tile:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.cat-tile:hover img { transform: scale(1.1); }
.cat-tile .cat-label { position: absolute; inset-inline-start: 1.1rem; inset-inline-end: 1.1rem; bottom: 1rem; z-index: 2; color: #fff; }

/* Trust strip */
.trust-item .trust-icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: rgb(var(--c-ember) / .1); color: rgb(var(--c-ember)); transition: transform var(--dur) var(--ease-spring), background var(--dur); }
.trust-item:hover .trust-icon { transform: rotate(-8deg) scale(1.1); background: rgb(var(--c-ember)); color: #fff; }

/* Countdown */
.cd-box { min-width: 64px; padding: .6rem .5rem; border-radius: 14px; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .15); text-align: center; }
.cd-num { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; display: inline-block; }
.cd-label { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; opacity: .7; margin-top: .35rem; }
.cd-inline .cd-box { min-width: 46px; padding: .35rem .3rem; background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border: 0; }
.cd-inline .cd-num { font-size: 1.15rem; }

/* Marquee (brand strip) */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 4rem; width: max-content; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* Checkout progress */
.steps { display: flex; justify-content: space-between; position: relative; }
.steps .steps-line { position: absolute; top: 19px; inset-inline-start: 20px; inset-inline-end: 20px; height: 3px; background: rgb(var(--c-line)); border-radius: 9px; }
.steps .steps-fill { position: absolute; inset: 0 auto 0 0; background: var(--gradient-glow); border-radius: 9px; transition: width .7s var(--ease-out); }
.step { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .75rem; font-weight: 600; color: rgb(var(--c-muted)); }
.step .dot { width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: rgb(var(--c-surface)); border: 2px solid rgb(var(--c-line)); transition: all var(--dur) var(--ease-spring); }
.step.is-current { color: rgb(var(--c-ink)); }
.step.is-current .dot { border-color: rgb(var(--c-ember)); color: rgb(var(--c-ember)); transform: scale(1.1); box-shadow: 0 0 0 6px rgb(var(--c-ember) / .12); }
.step.is-done .dot { background: rgb(var(--c-ink)); border-color: rgb(var(--c-ink)); color: rgb(var(--c-bg)); }
.option-card { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; border: 1.5px solid rgb(var(--c-line)); border-radius: var(--radius); cursor: pointer; transition: all var(--dur) var(--ease-out); }
.option-card:hover { border-color: rgb(var(--c-ink) / .5); }
.option-card:has(input:checked) { border-color: rgb(var(--c-ink)); box-shadow: 0 0 0 4px rgb(var(--c-ember) / .1); background: rgb(var(--c-ember) / .03); }
.option-card input[type=radio] { accent-color: rgb(var(--c-ember)); width: 18px; height: 18px; margin-top: 3px; }

/* Tracking timeline */
.timeline { position: relative; }
.timeline-line { position: absolute; inset-inline-start: 21px; top: 22px; bottom: 22px; width: 3px; background: rgb(var(--c-line)); border-radius: 9px; }
.timeline-fill { position: absolute; inset-inline-start: 0; top: 0; width: 100%; height: 0; background: var(--gradient-glow); border-radius: 9px; }
.tl-step { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding-bottom: 1.6rem; }
.tl-step:last-child { padding-bottom: 0; }
.tl-dot { position: relative; z-index: 1; flex-shrink: 0; width: 45px; height: 45px; border-radius: 99px; display: grid; place-items: center; background: rgb(var(--c-surface)); border: 2px solid rgb(var(--c-line)); color: rgb(var(--c-muted)); }
.tl-step.is-done .tl-dot { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: rgb(var(--c-ink)); }
.tl-step.is-current .tl-dot { background: rgb(var(--c-ember)); color: #fff; border-color: rgb(var(--c-ember)); }
.tl-step.is-current .tl-dot::after { content: ""; position: absolute; inset: -6px; border-radius: 99px; border: 2px solid rgb(var(--c-ember)); animation: pulseRing 1.8s var(--ease-out) infinite; }
.tl-step.is-todo { opacity: .55; }
@media (min-width: 768px) {
  .timeline-h { display: flex; justify-content: space-between; }
  .timeline-h .timeline-line { inset-inline-start: 22px; inset-inline-end: 22px; top: 21px; bottom: auto; width: auto; height: 3px; }
  .timeline-h .timeline-fill { height: 100%; width: 0; }
  .timeline-h .tl-step { flex-direction: column; align-items: center; text-align: center; padding-bottom: 0; flex: 1; }
}

/* Zoom lens + lightbox */
.zoom-wrap { position: relative; overflow: hidden; cursor: zoom-in; border-radius: var(--radius-lg); background: rgb(var(--c-surface-2)); }
.zoom-lens { position: absolute; pointer-events: none; width: 160px; height: 160px; border-radius: 99px; border: 3px solid #fff; box-shadow: var(--shadow-lg); background-repeat: no-repeat; opacity: 0; transform: scale(.6); transition: opacity var(--dur), transform var(--dur) var(--ease-out); z-index: 3; }
.zoom-wrap:hover .zoom-lens { opacity: 1; transform: scale(1); }
@media (hover: none) { .zoom-lens { display: none; } }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgb(8 6 12 / .96); display: flex; flex-direction: column; }
.lightbox-stage { flex: 1; position: relative; overflow: hidden; touch-action: none; display: grid; place-items: center; }
.lightbox-stage img { max-width: 92vw; max-height: 80vh; object-fit: contain; transform-origin: center; user-select: none; -webkit-user-drag: none; will-change: transform; }
.lightbox .lb-btn { width: 46px; height: 46px; border-radius: 99px; display: grid; place-items: center; background: rgb(255 255 255 / .1); color: #fff; transition: background var(--dur); }
.lightbox .lb-btn:hover { background: rgb(255 255 255 / .22); }

/* Sticky mobile add-to-cart */
.sticky-atc { position: fixed; inset-inline-start: 0; inset-inline-end: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 58; border-top: 1px solid rgb(var(--c-line)); transform: translateY(120%); transition: transform var(--dur-slow) var(--ease-out); }
.sticky-atc.is-visible { transform: none; }

/* Prose for static pages / descriptions */
.prose-taraf { max-width: 70ch; color: rgb(var(--c-ink) / .85); }
.prose-taraf h2 { font-family: var(--font-display); font-size: 1.6rem; margin: 2rem 0 .75rem; color: rgb(var(--c-ink)); }
.prose-taraf h3 { font-weight: 700; margin: 1.5rem 0 .5rem; color: rgb(var(--c-ink)); }
.prose-taraf p { margin-bottom: 1rem; }
.prose-taraf ul { list-style: disc; padding-inline-start: 1.25rem; margin-bottom: 1rem; }
.prose-taraf li { margin-bottom: .35rem; }

/* Tables (account + dashboard) */
.table { width: 100%; font-size: .87rem; border-collapse: separate; border-spacing: 0; }
.table th { text-align: start; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--c-muted)); font-weight: 700; padding: .75rem 1rem; border-bottom: 1px solid rgb(var(--c-line)); white-space: nowrap; }
.table td { padding: .85rem 1rem; border-bottom: 1px solid rgb(var(--c-line)); vertical-align: middle; }
.table tbody tr { transition: background var(--dur), transform var(--dur); }
.table tbody tr:hover { background: rgb(var(--c-ember) / .04); }
.table-wrap { overflow-x: auto; }

/* Pagination */
.pagination { display: flex; gap: .4rem; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 .6rem; border-radius: 12px; display: grid; place-items: center; font-weight: 600; font-size: .88rem; border: 1px solid rgb(var(--c-line)); transition: all var(--dur); }
.pagination a:hover { border-color: rgb(var(--c-ink)); }
.pagination .is-current { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); border-color: rgb(var(--c-ink)); }

/* Utility: hide scrollbar for horizontal chip rows */
.no-scrollbar { scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.aspect-square { aspect-ratio: 1; }
.lottie-box { width: 100%; max-width: 220px; aspect-ratio: 1; margin-inline: auto; }

/* Theme toggle icon swap */
.theme-sun { display: none; }
[data-theme="dark"] .theme-sun { display: inline; }
[data-theme="dark"] .theme-moon { display: none; }
.grid-list #product-grid { grid-template-columns: 1fr; }
html, body { overflow-x: clip; }
.acct-link { display: flex; align-items: center; gap: .65rem; padding: .7rem 1rem; border-radius: 12px; font-weight: 600; font-size: .9rem; color: rgb(var(--c-muted)); white-space: nowrap; transition: all var(--dur) var(--ease-out); }
.acct-link:hover { color: rgb(var(--c-ink)); background: rgb(var(--c-ink) / .05); }
.acct-link.is-active { background: rgb(var(--c-ink)); color: rgb(var(--c-bg)); }
@media (min-width: 1024px) { .acct-link:hover:not(.is-active) { transform: translateX(4px); } }
/* Grid items default to min-width:auto, so wide children (carousels, tables, scrollers)
   would stretch the column past the viewport. Let them shrink and scroll instead. */
.grid > * { min-width: 0; }


/* ==========================================================================
   Taraf brand components
   ========================================================================== */
.brand-logo { display: inline-flex; align-items: center; gap: .55rem; transition: transform var(--dur) var(--ease-out); transform-origin: left center; }
[dir="rtl"] .brand-logo { transform-origin: right center; }
.brand-logo .brand-mark { height: 40px; width: auto; transition: transform .6s var(--ease-spring); }
.brand-logo .brand-word { height: 30px; width: auto; }
.brand-logo .brand-word.is-ar { height: 34px; }
.brand-logo:hover .brand-mark { transform: rotate(-6deg) translateY(-2px); }
.site-nav.is-scrolled .brand-logo { transform: scale(.9); }
.brand-logo.is-sm .brand-mark { height: 32px; } .brand-logo.is-sm .brand-word { height: 24px; }
.brand-logo.is-lg .brand-mark { height: 52px; } .brand-logo.is-lg .brand-word { height: 38px; }
.brand-logo.is-xl { flex-direction: column; gap: .75rem; }
.brand-logo.is-xl .brand-mark { height: 96px; animation: elephant-bob 1.6s var(--ease-out) infinite alternate; }
.brand-logo.is-xl .brand-word { height: 44px; }

/* Wordmark swap: English and Arabic share one slot and flip every 2 seconds (4s loop) */
.brand-words { display: inline-grid; perspective: 300px; }
.brand-words > .brand-word { grid-area: 1 / 1; align-self: center; justify-self: start; backface-visibility: hidden;
  animation: word-swap 4s cubic-bezier(.65, 0, .35, 1) infinite; will-change: transform, opacity; }
.brand-words > .word-ar { animation-delay: -2s; }
.brand-words.starts-ar > .word-en { animation-delay: -2s; }
.brand-words.starts-ar > .word-ar { animation-delay: 0s; }
.brand-logo.is-xl .brand-words > .brand-word { justify-self: center; }
/* Strictly one word at a time: the current word leaves (42→50%), and only then does the other
   word (running 2s behind) enter (its 0→8%). They never overlap. */
@keyframes word-swap {
  0%          { opacity: 0; transform: translateY(45%) rotateX(-75deg); filter: blur(2px); }
  8%, 42%     { opacity: 1; transform: none; filter: blur(0); }
  50%         { opacity: 0; transform: translateY(-45%) rotateX(75deg); filter: blur(2px); }
  50.01%, 100% { opacity: 0; transform: translateY(45%) rotateX(-75deg); filter: blur(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-words > .brand-word { animation: none; }
  .brand-words:not(.starts-ar) > .word-ar, .brand-words.starts-ar > .word-en { visibility: hidden; }
}
@keyframes elephant-bob { to { transform: translateY(-6px) rotate(-3deg); } }

/* Language toggle (top bar + mobile menu) */
.lang-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center; padding: 3px; border-radius: 999px; background: rgb(255 255 255 / .12); font-size: .74rem; font-weight: 700; flex-shrink: 0; }
.lang-switch button { position: relative; z-index: 1; padding: .22rem .7rem; border-radius: 999px; line-height: 1.3; opacity: .75; transition: opacity var(--dur), color var(--dur); }
.lang-switch button[lang="ar"] { font-family: "Tajawal", "Baloo Bhaijaan 2", sans-serif; font-size: .82rem; }
.lang-switch button.is-active { opacity: 1; color: rgb(var(--c-ink)); }
.lang-switch button:hover { opacity: 1; }
.lang-switch .lang-thumb { position: absolute; top: 3px; bottom: 3px; inset-inline-start: 3px; width: calc(50% - 3px); border-radius: 999px; background: rgb(var(--c-bg)); transition: transform var(--dur-slow) var(--ease-spring); }
/* Keep "EN | العربية" in the same order in both directions; the thumb slides over the active one */
.lang-switch { direction: ltr; }
.lang-switch .lang-thumb.is-ar { transform: translateX(100%); }
.lang-switch.is-solid { background: rgb(var(--c-surface-2)); }
.lang-switch.is-solid .lang-thumb { background: rgb(var(--c-ink)); }
.lang-switch.is-solid button.is-active { color: rgb(var(--c-bg)); }

/* Shop-by-age tiles */
.age-tile { position: relative; display: flex; flex-direction: column; gap: .2rem; min-width: 150px; padding: 1.1rem 1.15rem 1.2rem; border-radius: var(--radius-lg); border: 1px solid rgb(var(--c-line)); background: rgb(var(--c-surface)); overflow: hidden; transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur), border-color var(--dur); }
.age-tile::after { content: ""; position: absolute; width: 120px; height: 120px; border-radius: 50%; inset-inline-end: -40px; bottom: -50px; background: var(--age-tint); opacity: .18; transition: transform .6s var(--ease-spring); }
.age-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgb(var(--age-rgb) / .5); }
.age-tile:hover::after { transform: scale(1.35); }
.age-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; margin-bottom: .5rem; color: rgb(var(--age-rgb)); background: rgb(var(--age-rgb) / .12); }
.age-newborn { --age-rgb: 85 116 134; --age-tint: rgb(85 116 134); }
.age-baby { --age-rgb: 205 124 77; --age-tint: rgb(205 124 77); }
.age-toddler { --age-rgb: 196 150 40; --age-tint: rgb(233 170 98); }
.age-kids { --age-rgb: 46 139 87; --age-tint: rgb(46 139 87); }
.age-big { --age-rgb: 140 95 160; --age-tint: rgb(140 95 160); }

/* Arabic typography: no letter-spacing (it breaks joined letters), no forced caps */
:root[lang="ar"] body { font-size: 16px; }
:root[lang="ar"] *, :root[lang="ar"] *::before, :root[lang="ar"] *::after { letter-spacing: 0 !important; }
:root[lang="ar"] .eyebrow, :root[lang="ar"] .badge, :root[lang="ar"] .table th, :root[lang="ar"] .uppercase { text-transform: none; }
:root[lang="ar"] .font-display, :root[lang="ar"] .section-title, :root[lang="ar"] .hero-title { font-variation-settings: normal; line-height: 1.35; }

/* RTL mirroring for motion that was authored left-to-right */
[dir="rtl"] .scroll-progress { transform-origin: 100% 50%; }
[dir="rtl"] .mega-link:hover, [dir="rtl"] .acct-link:hover:not(.is-active) { transform: translateX(-4px); }
[dir="rtl"] .btn-shine::after { transform: translateX(120%); }
[dir="rtl"] .btn-shine:hover::after { transform: translateX(-120%); }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
[dir="rtl"] .field > label { transform-origin: right top; }
[dir="rtl"] .link-underline::after { transform-origin: left; }
[dir="rtl"] .link-underline:hover::after, [dir="rtl"] .link-underline.is-active::after { transform-origin: right; }
[dir="ltr"] [dir="ltr"], .ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- Map picker ---------- */
.map-sheet { position: fixed; z-index: 111; inset: 0; display: flex; flex-direction: column; background: rgb(var(--c-surface)); }
@media (min-width: 768px) { .map-sheet { inset: auto; top: 50%; left: 50%; translate: -50% -50%; width: min(720px, 92vw); height: min(780px, 90vh); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); } }
.map-sheet .leaflet-container { font-family: var(--font-sans); background: rgb(var(--c-surface-2)); }
[data-theme="dark"] .map-sheet .leaflet-tile-pane { filter: brightness(.82) contrast(1.05) saturate(.85); }
.map-results { position: absolute; z-index: 20; inset-inline: 1rem; top: calc(100% - .4rem); background: rgb(var(--c-surface)); border: 1px solid rgb(var(--c-line)); border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; max-height: 280px; overflow-y: auto; }
.map-pin { position: absolute; z-index: 500; left: 50%; top: 50%; translate: -50% -100%; pointer-events: none; display: flex; flex-direction: column; align-items: center; }
.map-pin-svg { width: 40px; height: 52px; filter: drop-shadow(0 6px 8px rgb(0 0 0 / .25)); transition: transform .35s var(--ease-spring); }
.map-pin-shadow { width: 14px; height: 5px; border-radius: 50%; background: rgb(0 0 0 / .35); margin-top: -3px; transition: transform .35s var(--ease-spring), opacity .35s; }
.map-pin.is-lifted .map-pin-svg { transform: translateY(-14px) scale(1.04); }
.map-pin.is-lifted .map-pin-shadow { transform: scale(.55); opacity: .5; }
.map-pin:not(.is-lifted) .map-pin-svg { animation: pin-drop .45s var(--ease-spring); }
@keyframes pin-drop { 0% { transform: translateY(-14px); } 60% { transform: translateY(2px); } 100% { transform: none; } }
.map-pin-bubble { position: absolute; bottom: calc(100% + 6px); white-space: nowrap; background: rgb(33 45 58); color: #fff; font-size: .75rem; font-weight: 700; padding: .45rem .8rem; border-radius: 12px; box-shadow: var(--shadow); }
.map-pin-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; translate: -50% 0; border: 6px solid transparent; border-bottom: 0; border-top-color: rgb(33 45 58); }
.map-locate { position: absolute; z-index: 500; bottom: 14px; left: 50%; translate: -50% 0; white-space: nowrap; display: inline-flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: 999px; background: rgb(var(--c-surface)); color: rgb(var(--c-ember)); font-size: .82rem; font-weight: 700; border: 1px solid rgb(var(--c-ember) / .35); box-shadow: var(--shadow); transition: transform var(--dur) var(--ease-out); }
.map-locate:hover { transform: translateY(-2px); }
/* Pinned-location chip inside address forms */
.pin-chip { display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border-radius: var(--radius); border: 1.5px dashed rgb(var(--c-ember) / .5); background: rgb(var(--c-ember) / .05); }
.pin-cta { width: 100%; display: flex; align-items: center; gap: .9rem; padding: 1rem; border-radius: var(--radius); border: 1.5px solid rgb(var(--c-line)); background: linear-gradient(120deg, rgb(var(--c-sky) / .08), rgb(var(--c-ember) / .08)); text-align: start; transition: border-color var(--dur), transform var(--dur) var(--ease-out), box-shadow var(--dur); }
.pin-cta:hover { border-color: rgb(var(--c-ember) / .6); transform: translateY(-1px); box-shadow: var(--shadow); }
.pin-cta .pin-cta-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgb(var(--c-ember)); color: #fff; flex-shrink: 0; box-shadow: var(--glow); }
.phone-field .phone-prefix { position: absolute; left: 1rem; top: 1.32rem; font-size: 1rem; pointer-events: none; opacity: 0; transition: opacity var(--dur); }
.phone-field .input:focus ~ .phone-prefix, .phone-field .input:not(:placeholder-shown) ~ .phone-prefix { opacity: 1; }
.phone-field .input:focus, .phone-field .input:not(:placeholder-shown) { padding-left: 2.6rem; }
.phone-field > label { left: 1rem; right: auto; transform-origin: left top; }
