/* =====================================================
   ROA STORE — واجهة المتجر
   الألوان والخطوط تأتي من لوحة التحكم عبر متغيرات CSS.
   مصممة للجوال أولاً: أزرار كبيرة، شريط شراء ثابت، صور خفيفة.
===================================================== */

:root {
    --primary: #570418;
    --hero: #45030F;
    --bg: #EBDDC9;
    --text: #251A1B;
    --surface: #FFFFFF;
    --on-primary: #FFFFFF;
    --accent: var(--primary);
    --muted: color-mix(in srgb, var(--text) 62%, var(--bg));
    --line: color-mix(in srgb, var(--text) 12%, var(--bg));
    --soft: color-mix(in srgb, var(--primary) 8%, var(--surface));
    --img-bg: color-mix(in srgb, var(--line) 55%, var(--surface));
    --ok: #1F7A4D;
    --warn: #A15C00;
    --danger: #B3261E;
    --star: #C58A00;
    --wa: #1E8E52;
    --r: 14px;
    --r-sm: 10px;
    --r-pill: 999px;
    --font-head: "Reem Kufi", "IBM Plex Sans Arabic", system-ui, sans-serif;
    --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
    --shadow: 0 1px 2px rgba(37, 26, 27, .06), 0 8px 24px rgba(37, 26, 27, .08);
    --shadow-up: 0 -6px 22px rgba(37, 26, 27, .12);
    --wrap: 1120px;
    --gutter: 16px;
    --buybar-h: 0px;
    color-scheme: light;
}

html[data-mode="dark"] {
    --bg: #141011;
    --surface: #1E1819;
    --text: #F1EAE8;
    --accent: color-mix(in srgb, var(--primary) 50%, #FFFFFF);
    --muted: color-mix(in srgb, var(--text) 64%, var(--bg));
    --line: color-mix(in srgb, var(--text) 14%, var(--bg));
    --soft: color-mix(in srgb, var(--primary) 20%, var(--surface));
    --img-bg: #2a2223;
    --ok: #4CC488;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    --shadow-up: 0 -6px 22px rgba(0, 0, 0, .4);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    html[data-mode="auto"] {
        --bg: #141011;
        --surface: #1E1819;
        --text: #F1EAE8;
        --accent: color-mix(in srgb, var(--primary) 50%, #FFFFFF);
        --muted: color-mix(in srgb, var(--text) 64%, var(--bg));
        --line: color-mix(in srgb, var(--text) 14%, var(--bg));
        --soft: color-mix(in srgb, var(--primary) 20%, var(--surface));
        --img-bg: #2a2223;
        --ok: #4CC488;
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
        --shadow-up: 0 -6px 22px rgba(0, 0, 0, .4);
        color-scheme: dark;
    }
}

html.r-sharp { --r: 4px; --r-sm: 3px; --r-pill: 6px; }
html.r-round { --r: 22px; --r-sm: 16px; }

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

body.locked { overflow: hidden; }

img, video { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.3; margin: 0; font-weight: 700; color: var(--heading, var(--accent)); }
/* العناوين بلون الهوية، إلا فوق الخلفيات الغامقة (الواجهة والإعلان) فتبقى بلون خلفيتها */
.hero h1, .hero h2, .ad-text h1, .ad-text h2 { color: inherit; }
p { margin: 0 0 8px; }
[hidden] { display: none !important; }

.skip-link {
    position: absolute;
    top: -60px;
    inset-inline-start: 12px;
    background: var(--primary);
    color: var(--on-primary);
    padding: 8px 14px;
    border-radius: var(--r-sm);
    z-index: 100;
}
.skip-link:focus { top: 8px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
main { flex: 1; outline: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { justify-self: center; text-align: center; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0; }

/* ---------- Header ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--head-bg, var(--primary));
    color: var(--head-ink, var(--on-primary));
    padding-top: env(safe-area-inset-top);
}

.top-row {
    width: min(100% - 2 * var(--gutter), var(--wrap));
    margin-inline: auto;
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    grid-template-areas: "menu brand cur cart" "search search search search";
    align-items: center;
    gap: 6px 8px;
    padding: 7px 0 9px;
}
.top-row.no-search { grid-template-areas: "menu brand cur cart"; }

#menuBtn { grid-area: menu; }
.brand { grid-area: brand; }
.search { grid-area: search; }
.cart-btn { grid-area: cart; }
.cur-btn { grid-area: cur; }

.cur-btn {
    height: 40px;
    padding: 0 11px;
    border: 0;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 13.5px;
}
.cur-btn:hover { background: color-mix(in srgb, currentColor 20%, transparent); }
#curFlag { font-size: 18px; line-height: 1; }

.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: inherit;
    display: grid;
    place-items: center;
    position: relative;
    text-decoration: none;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#menuBtn svg { fill: currentColor; stroke: none; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 20%, transparent); }

.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; min-width: 0; justify-self: start; }
.brand-logo { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; border-radius: 11px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-logo:not(.has-photo) img { filter: var(--logo-filter, none); }
.brand-logo.shape-circle { border-radius: 50%; }
.brand-logo.shape-square { border-radius: 0; }
.brand-logo.has-photo { background: #fff; }
.brand-logo.has-photo img { object-fit: cover; }
.brand-name { font-family: var(--font-head); font-size: 20px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--surface);
    color: var(--text);
    border-radius: var(--r-pill);
    padding: 0 14px;
    height: 42px;
    margin: 0;
}
.search svg { width: 19px; height: 19px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }
.search input { border: 0; outline: 0; background: transparent; width: 100%; height: 100%; font-size: 16px; min-width: 0; }
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { filter: grayscale(1); }
.search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--head-ink, var(--on-primary)) 35%, transparent); }

.cart-count {
    position: absolute;
    top: -3px;
    inset-inline-end: -3px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--head-ink, var(--on-primary));
    color: var(--head-bg, var(--primary));
    font-size: 12px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
}
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 50% { transform: scale(1.35); } }

@media (min-width: 760px) {
    .top-row { grid-template-columns: auto auto 1fr auto auto; grid-template-areas: "menu brand search cur cart"; padding: 11px 0; gap: 10px; }
    .top-row.no-search { grid-template-columns: auto 1fr auto auto; grid-template-areas: "menu brand cur cart"; }
    .search { max-width: 460px; justify-self: center; width: 100%; }
}

/* ---------- Bars ---------- */

.bars { display: grid; }
.bar { padding: 8px var(--gutter); text-align: center; font-size: 13px; font-weight: 600; line-height: 1.5; }
.bar a { text-decoration: none; }
.bar-announce { background: var(--hero); color: #fff; }
.bar-ship { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar-ship .meter { width: min(100%, 360px); margin: 6px auto 0; }
.bar-ship.done { color: var(--ok); }

.meter { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.meter span { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .4s ease; }
.done .meter span { background: var(--ok); }

.bar-cart { background: var(--soft); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.bar-cart a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.bar-cart button { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; }

.preview-flag {
    position: sticky;
    top: 0;
    z-index: 45;
    background: #C58A00;
    color: #1d1415;
    font-weight: 700;
    font-size: 13.5px;
    padding: 8px 12px;
    display: flex;
    gap: 10px;
    justify-content: center;
    align-items: center;
}
.preview-flag button { border: 0; background: #1d1415; color: #fff; border-radius: 99px; padding: 4px 12px; font-weight: 700; }

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 18px;
    border-radius: var(--r-sm);
    border: 1.5px solid transparent;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    text-decoration: none;
    text-align: center;
    transition: background .15s, border-color .15s, transform .1s, filter .15s;
    touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; flex-shrink: 0; }
.btn-primary { background: var(--btn-bg, var(--primary)); color: var(--btn-ink, var(--on-primary)); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa svg { fill: #fff; }
.btn-wa .wa-glyph { fill: var(--wa); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; }

.link-btn {
    border: 0;
    background: none;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
}
.link-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.select {
    height: 38px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line);
    background: var(--surface);
    padding: 0 12px;
    font-size: 13.5px;
    max-width: 52%;
}

/* ---------- Ad ---------- */

.ad { margin: 14px auto 16px; }
.ad-media { display: block; border-radius: var(--r); overflow: hidden; background: var(--line); text-decoration: none; }
.ad-media img, .ad-media video { width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.ad-text { border-radius: var(--r); padding: 22px 20px; color: #fff; display: grid; gap: 8px; justify-items: start; }
.ad-text h2 { font-size: clamp(21px, 6vw, 30px); }
.ad-text p { margin: 0; opacity: .92; max-width: 60ch; }
.ad-text .btn { margin-top: 6px; background: #fff; color: #1d1415; min-height: 44px; }

/* ---------- Hero (مختصر حتى تظهر المنتجات بسرعة) ---------- */

.hero { position: relative; background-color: var(--hero); color: #fff; overflow: hidden; isolation: isolate; }
.hero.pattern::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'%3E%3Cg fill='none' stroke='%23F3D9B1' stroke-width='1.2'%3E%3Cpath d='M28 4 52 28 28 52 4 28Z'/%3E%3Cpath d='M28 16 40 28 28 40 16 28Z'/%3E%3Cpath d='M0 0 4 4M56 0 52 4M0 56 4 52M56 56 52 52'/%3E%3C/g%3E%3Ccircle cx='28' cy='28' r='2' fill='%23F3D9B1'/%3E%3C/svg%3E");
    background-size: 56px 56px;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero.has-image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to left, color-mix(in srgb, var(--hero) 92%, transparent), color-mix(in srgb, var(--hero) 55%, transparent));
}
.hero-inner { padding: 20px 0 18px; display: grid; gap: 8px; justify-items: start; }
.hero h1 { font-size: clamp(25px, 7.4vw, 50px); line-height: 1.2; max-width: 18ch; }
.hero p { margin: 0; font-size: 14.5px; max-width: 52ch; opacity: .9; line-height: 1.6; }
.hero-features {
    display: flex;
    gap: 6px;
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}
.hero-features li {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(255, 255, 255, .12);
    border-radius: var(--r-pill);
    white-space: nowrap;
}
.hero-features svg { width: 14px; height: 14px; fill: none; stroke: #F3D9B1; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 760px) {
    .hero-inner { padding: 44px 0 40px; gap: 12px; }
    .hero p { font-size: 16px; }
}

/* الواجهة المختصرة: عنوان وسطر مزايا صغير */
.hero-compact .hero-inner { padding: 14px 0 13px; gap: 7px; }
.hero-compact h1 { font-size: clamp(20px, 5.6vw, 28px); line-height: 1.3; max-width: none; }
.hero-mini { display: flex; flex-wrap: wrap; gap: 4px 11px; margin: 0; padding: 0; list-style: none; }
.hero-mini li { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; opacity: .92; white-space: nowrap; }
.hero-mini svg { width: 14px; height: 14px; flex-shrink: 0; fill: none; stroke: #F3D9B1; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 760px) {
    .hero-compact .hero-inner { padding: 20px 0 18px; gap: 9px; }
    .hero-mini li { font-size: 14px; }
}

/* ---------- Category tiles ---------- */

.tiles {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 14px var(--gutter) 4px;
    margin-top: 0;
    width: 100%;
    max-width: none;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
}
.tiles::-webkit-scrollbar { display: none; }
@media (min-width: 1152px) { .tiles { padding-inline: calc((100% - var(--wrap)) / 2); } }

.tile {
    flex: 0 0 86px;
    display: grid;
    justify-items: center;
    gap: 6px;
    text-decoration: none;
    scroll-snap-align: start;
    text-align: center;
}
.tile-img {
    width: 86px;
    height: 112px;
    border-radius: var(--r-sm);
    overflow: hidden;
    background: var(--img-bg);
    box-shadow: 0 0 0 1px var(--line);
}
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.tile-name {
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tile.on .tile-img, .tile:hover .tile-img { box-shadow: 0 0 0 2.5px var(--accent); }
.tile.on .tile-name { color: var(--accent); }
@media (min-width: 760px) {
    .tile { flex-basis: 116px; }
    .tile-img { width: 116px; height: 152px; }
    .tile-name { font-size: 13.5px; }
}

/* ---------- Sections & rails ---------- */

.section { padding: 20px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section-head h1, .section-head h2 { font-size: 20px; }
.section-head h1 small, .section-head h2 small { font-family: var(--font-body); font-size: 13px; font-weight: 500; }
.section-head .more { color: var(--accent); font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; }

.rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(148px, 44%);
    gap: 10px;
    overflow-x: auto;
    padding: 2px var(--gutter) 8px;
    margin: 0 calc(-1 * var(--gutter));
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 760px) { .rail { grid-auto-columns: minmax(200px, 23%); } }

#sets .rail { grid-auto-columns: minmax(250px, 78%); }
@media (min-width: 760px) { #sets .rail { grid-auto-columns: minmax(300px, 32%); } }

.catalog { padding-top: 18px; }
.cat-desc { color: var(--muted); font-size: 14px; margin: -4px 0 12px; max-width: 70ch; }
.cur-note { margin: -4px 0 12px; font-size: 13px; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
.grid.one { grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 640px) { .grid, .grid.one { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; } }
@media (min-width: 980px) { .grid, .grid.one { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.empty h1 { font-size: 24px; }

/* ---------- Product card ---------- */

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border-radius: var(--r);
    overflow: hidden;
    border: 1px solid var(--line);
    min-width: 0;
}
.card-img { position: relative; display: block; aspect-ratio: 4 / 5; background: var(--img-bg); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card.soldout .card-img img { filter: grayscale(.7); opacity: .65; }

.badge {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    padding: 2px 9px;
    border-radius: var(--r-pill);
    font-size: 11.5px;
    font-weight: 700;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow);
}
.badge.sale { background: var(--primary); color: var(--on-primary); }
.badge.hot { background: #F3D9B1; color: #45030F; }
.badge.out { background: var(--text); color: var(--bg); }

.card-body { padding: 9px 10px 10px; display: grid; gap: 4px; flex: 1; align-content: start; }
.card-name {
    font-weight: 700;
    font-size: 14px;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.grid.one .card-name { font-size: 16px; }
.card-rate { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }

.color-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--text) 25%, transparent); flex-shrink: 0; display: inline-block; }

.swatches { display: flex; align-items: center; gap: 4px; min-height: 26px; }
.sw {
    width: 26px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    display: grid;
    place-items: center;
    position: relative;
}
.sw .dot { width: 16px; height: 16px; }
.sw.on { box-shadow: 0 0 0 1.5px var(--text); }
.sw[data-out]::after { content: ""; position: absolute; width: 20px; height: 1.5px; background: var(--muted); transform: rotate(-45deg); }
.sw-name { font-size: 12px; color: var(--muted); margin-inline-start: 2px; }

.price { display: flex; align-items: baseline; gap: 2px 8px; flex-wrap: wrap; }
.price b { font-size: 15px; color: var(--accent); }
.price s { font-size: 12.5px; color: var(--muted); }
.price .save { font-size: 12.5px; font-weight: 700; color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); padding: 1px 8px; border-radius: var(--r-pill); }
.base-price { flex-basis: 100%; color: var(--muted); font-size: 11.5px; }

.card-action { padding: 0 10px 10px; }
.card-action .btn { width: 100%; min-height: 42px; font-size: 14px; padding-inline: 8px; }

.stepper {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    height: 42px;
    border-radius: var(--r-sm);
    background: var(--soft);
    overflow: hidden;
}
.stepper button { border: 0; height: 100%; background: transparent; font-size: 21px; line-height: 1; color: var(--accent); font-weight: 700; touch-action: manipulation; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { text-align: center; font-weight: 700; font-size: 15.5px; }
.stepper.lg { height: 50px; grid-template-columns: 44px 1fr 44px; min-width: 132px; }

/* ---------- Sets (الأطقم) ---------- */

.set-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr auto;
}
.set-imgs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; background: var(--img-bg); text-decoration: none; }
.set-imgs span { aspect-ratio: 4 / 5; overflow: hidden; }
.set-imgs img { width: 100%; height: 100%; object-fit: cover; }
.set-imgs i {
    font-style: normal;
    width: 26px;
    height: 26px;
    margin: 0 -13px;
    z-index: 1;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    display: grid;
    place-items: center;
    font-weight: 700;
    box-shadow: 0 0 0 3px var(--surface);
}
.set-body { padding: 10px 12px 6px; display: grid; gap: 4px; align-content: start; }
.set-name { font-size: 14px; line-height: 1.45; }
.set-save { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.set-card > .btn { margin: 6px 12px 12px; }

/* ---------- Reviews ---------- */

.reviews .rail { grid-auto-columns: minmax(250px, 80%); }
@media (min-width: 760px) { .reviews .rail { grid-auto-columns: minmax(300px, 32%); } }

.review {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 14px;
    display: grid;
    gap: 8px;
    align-content: start;
}
.review blockquote { margin: 0; white-space: pre-line; }
.review figcaption { font-weight: 700; font-size: 13px; color: var(--muted); }
.review figcaption a { color: var(--accent); font-weight: 600; }
.stars { color: var(--star); letter-spacing: 1px; font-size: 15px; line-height: 1; white-space: nowrap; }
.stars .off { color: var(--line); }
.stars.sm { font-size: 12px; letter-spacing: 0; }
.review-media { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.review-media img, .review-media video { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); background: var(--line); }
.review-media video { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

.reviews-block { padding: 22px 0 6px; display: grid; gap: 12px; justify-items: start; }
.reviews-block .section-head { margin: 0; }
.rate-summary { display: flex; align-items: center; gap: 10px; }
.rate-summary b { font-size: 30px; font-family: var(--font-head); line-height: 1; }
.rate-summary span:last-child { color: var(--muted); font-size: 13.5px; }
.review-list { display: grid; gap: 10px; width: 100%; }
@media (min-width: 760px) { .review-list { grid-template-columns: repeat(2, 1fr); } }

.seo-intro .intro { color: var(--muted); font-size: 14px; padding: 4px 0 6px; max-width: 75ch; }

/* ---------- Breadcrumbs ---------- */

.crumbs {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 0 0;
    font-size: 12.5px;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
}
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.crumbs > :last-child { overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { opacity: .6; }

/* ---------- Product page ---------- */

.pdp { display: grid; gap: 14px; padding: 8px 0 10px; }
@media (min-width: 860px) { .pdp { grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: start; padding-top: 14px; } .gallery { position: sticky; top: 90px; } }

.gallery { display: grid; gap: 8px; min-width: 0; }
.stage {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: var(--img-bg);
    margin: 0 calc(-1 * var(--gutter));
}
@media (min-width: 860px) { .stage { margin: 0; border-radius: var(--r); } }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; }
.stage video { object-fit: contain; background: #000; }
.stage-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, .9);
    color: #1d1415;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow);
}
.stage-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.stage-nav.prev { inset-inline-start: 10px; }
.stage-nav.next { inset-inline-end: 10px; }
.stage-count { position: absolute; bottom: 10px; inset-inline-end: 10px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; padding: 2px 9px; border-radius: 99px; }
.thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.thumbs::-webkit-scrollbar { display: none; }
.thumbs button { flex: 0 0 58px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--line); position: relative; }
.thumbs button[aria-current="true"] { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); color: #fff; font-size: 20px; }

.pdp-info { display: grid; gap: 12px; align-content: start; min-width: 0; }
.pdp h1 { font-size: clamp(22px, 6vw, 32px); }
.pdp-rate { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-top: -6px; }
.pdp .price b { font-size: 24px; }
.pdp .price s { font-size: 15px; }
.pdp-color { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }

.variants { display: grid; gap: 8px; }
.variants-label { font-size: 14px; }
.variant-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.variant-list::-webkit-scrollbar { display: none; }
.variant {
    flex: 0 0 76px;
    display: grid;
    gap: 4px;
    padding: 4px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 600;
}
.variant img { width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; border-radius: calc(var(--r-sm) - 4px); background: var(--img-bg); }
.variant span { display: flex; align-items: center; justify-content: center; gap: 4px; }
.variant .dot { width: 11px; height: 11px; }
.variant.on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.variant.out { opacity: .55; }

.buy { display: grid; gap: 10px; }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.buy-row .btn { min-height: 50px; font-size: 16px; }
.buy-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.buy-alt.single { grid-template-columns: 1fr; }
.out-note { padding: 12px 14px; border-radius: var(--r-sm); background: var(--soft); font-weight: 600; }

.volume {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--soft);
    font-size: 13.5px;
    line-height: 1.55;
}
.volume svg, .vol-hint svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; margin-top: 1px; }

.offer {
    border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: var(--r);
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 8px 12px;
    align-items: center;
    background: var(--soft);
}
.offer img { width: 52px; height: 65px; object-fit: cover; border-radius: 8px; background: var(--img-bg); }
.offer strong { display: block; font-size: 14px; line-height: 1.5; }
.offer .price b { font-size: 15px; }
.offer .btn { grid-column: 2; justify-self: start; }

.info-box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; background: var(--surface); justify-items: start; }
.info-row { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; width: 100%; }
.info-row svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.info-row div { display: grid; gap: 1px; font-size: 13.5px; }
.info-row div > span { color: var(--muted); }
.info-row div > span b { color: var(--text); font-weight: 600; }
.info-row .ok { color: var(--ok) !important; font-weight: 600; }
.info-box .link-btn { font-size: 13px; }

.trust { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 7px; }
.trust li { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.trust svg { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: var(--ok); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.pdp-details { display: grid; gap: 8px; justify-items: start; padding-top: 6px; border-top: 1px solid var(--line); }
.pdp-details h2 { font-size: 17px; padding-top: 10px; }
.pdp-details p { white-space: pre-line; margin: 0; }
.share-row { padding-top: 2px; }

/* ---------- Sticky buy bar (الجوال) ---------- */

.buybar {
    position: fixed;
    inset: auto 0 0 0;
    z-index: 50;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow-up);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    animation: rise .2s ease;
}
.buybar-inner { width: min(100%, var(--wrap)); margin-inline: auto; display: flex; align-items: center; gap: 12px; }
.bb-info { display: grid; min-width: 0; flex: 1; line-height: 1.35; }
.bb-info b { font-size: 17px; color: var(--accent); }
.bb-info small { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .btn { flex: 0 0 auto; min-width: 46%; min-height: 48px; }
body.has-buybar { --buybar-h: 72px; }
body.has-buybar .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
body.has-buybar .wa-float { bottom: calc(86px + env(safe-area-inset-bottom)); }
body.has-buybar .toast { bottom: calc(92px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) {
    .buybar { display: none !important; }
    body.has-buybar .footer { padding-bottom: 30px; }
    body.has-buybar .wa-float { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

/* ---------- Added-to-cart sheet + mini items ---------- */

.mini { display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; align-items: center; }
.mini img { width: 52px; height: 65px; object-fit: cover; border-radius: 8px; background: var(--img-bg); }
.mini-info { display: grid; gap: 1px; min-width: 0; font-size: 14px; line-height: 1.4; }
.mini-info a { text-decoration: none; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-info b { color: var(--accent); font-size: 14px; }
.mini .btn { padding-inline: 12px; }

.sheet-added .sheet-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.sheet-added .sheet-head h2 svg { width: 24px; height: 24px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.added-items { display: grid; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sheet-added .progress, .sheet-added .vol-hint { margin-top: 12px; }
.added-offer {
    margin-top: 12px;
    padding: 12px;
    border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent);
    border-radius: var(--r);
    background: var(--soft);
    display: grid;
    gap: 10px;
}
.added-offer > b { font-size: 15px; color: var(--accent); }
.added-title { font-size: 15px; margin: 16px 0 8px; }
.added-list { display: grid; gap: 10px; }
.added-actions { display: grid; gap: 8px; margin-top: 16px; position: sticky; bottom: calc(-24px - env(safe-area-inset-bottom)); background: var(--surface); padding: 10px 0 4px; }
.added-actions .link-btn { justify-self: center; padding: 6px; }

.progress { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.progress.done { color: var(--ok); }
.vol-hint { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; font-size: 13.5px; padding: 9px 11px; border-radius: var(--r-sm); background: var(--soft); }
.vol-hint b { color: var(--accent); }
.vol-hint.ok { color: var(--ok); font-weight: 600; }
.vol-hint.ok svg { stroke: var(--ok); stroke-width: 2.4; }
.panel .progress + .vol-hint { margin-top: 10px; }

/* ---------- Cart / checkout ---------- */

.page-title { font-size: 24px; margin: 18px 0 12px; }
.page-title small { font-family: var(--font-body); font-size: 14px; font-weight: 500; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.panel + .panel { margin-top: 12px; }
.panel h2 { font-size: 17px; margin-bottom: 10px; }

.cart-line { display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line); position: relative; }
.cart-line:first-child { padding-top: 0; }
.cart-line:last-child { border-bottom: 0; padding-bottom: 0; }
.cart-line .cl-img { display: block; }
.cart-line img { display: block; width: 60px; height: 60px; object-fit: cover; border-radius: 12px; background: var(--img-bg); }
.cl-body { min-width: 0; display: grid; gap: 2px; }
.cl-top { display: flex; align-items: flex-start; gap: 6px; }
.cart-line .name { flex: 1; min-width: 0; font-weight: 700; font-size: 14.5px; text-decoration: none; line-height: 1.45; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cl-del { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; margin: -5px -6px 0 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.cl-del svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cl-del:hover, .cl-del:focus-visible { color: var(--deal); background: color-mix(in srgb, var(--deal) 9%, transparent); }
.cl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.cl-meta .color-tag { font-size: 12.5px; }
.cl-meta .dot { width: 12px; height: 12px; }
.cart-line-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.cart-line .stepper.sm { width: 100px; height: 32px; grid-template-columns: 32px 1fr 32px; }
.cart-line .stepper.sm button { font-size: 18px; }
.cart-line .stepper.sm output { font-size: 14px; }
.cl-total { font-size: 14.5px; }
.remove { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; padding: 6px 0 0; }

.save-line { display: flex; justify-content: space-between; gap: 10px; color: var(--ok); font-weight: 600; font-size: 14px; }
.save-line + .hint, .save-line + .save-line { margin-top: 8px; }
.hint { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); font-size: 14px; }
.hint + .hint { margin-top: 8px; }

.rows { display: grid; gap: 8px; }
.row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.row > span:last-child { text-align: end; white-space: nowrap; }
.row.ok { color: var(--ok); font-weight: 600; }
.row.total { font-size: 18px; font-weight: 700; padding-top: 10px; border-top: 1px solid var(--line); margin-top: 4px; }
.ship-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; font-size: 13.5px; }
.ship-list li { display: flex; justify-content: space-between; gap: 10px; }
.cart-actions { display: grid; gap: 10px; margin-top: 14px; }
.cart-actions .link-btn { justify-self: center; }

.layout-2 { display: grid; gap: 12px; padding-bottom: 24px; }
.layout-2 > aside { min-width: 0; }
@media (min-width: 900px) { .layout-2 { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 18px; } .layout-2 > aside { position: sticky; top: 90px; } }

.sum-mobile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; }
.sum-mobile summary { display: flex; justify-content: space-between; gap: 10px; padding: 12px 14px; cursor: pointer; font-weight: 600; list-style: none; }
.sum-mobile summary::-webkit-details-marker { display: none; }
.sum-mobile summary span::after { content: " ▾"; color: var(--muted); }
.sum-mobile[open] summary span::after { content: " ▴"; }
.sum-mobile summary b { color: var(--accent); }
.sum-mobile > div { padding: 0 14px 14px; }
@media (min-width: 900px) { .sum-mobile { display: none; } }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span:first-child { font-weight: 600; font-size: 14px; }
.field small { color: var(--muted); font-size: 12.5px; }
.input {
    width: 100%;
    min-height: 48px;
    border-radius: var(--r-sm);
    border: 1.5px solid var(--line);
    background: var(--surface);
    padding: 10px 13px;
    font-size: 16px;
}
textarea.input { min-height: 80px; resize: vertical; line-height: 1.6; }
select.input { appearance: auto; }
.input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field.invalid .input { border-color: var(--danger); }
.err { color: var(--danger); font-size: 13px; font-weight: 600; margin: 0; }
.err:empty { display: none; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .two { grid-template-columns: 1fr; } }

.choice { display: grid; gap: 8px; }
.option {
    display: grid;
    grid-template-columns: 22px 1fr auto;
    gap: 10px;
    align-items: start;
    padding: 12px 14px;
    border: 1.5px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    cursor: pointer;
}
.option input { margin: 3px 0 0; width: 18px; height: 18px; accent-color: var(--primary); }
.option b { display: block; }
.option small { color: var(--muted); display: block; line-height: 1.5; }
.option:has(input:checked) { border-color: var(--accent); background: var(--soft); }
.option .opt-price { font-weight: 700; white-space: nowrap; }

.check-line { display: flex; align-items: center; gap: 9px; font-weight: 600; cursor: pointer; padding: 4px 0; }
.check-line input { width: 20px; height: 20px; accent-color: var(--primary); margin: 0; }
.check-line svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }

.bank { margin-top: 10px; display: grid; gap: 8px; }
.bank-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 8px 12px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.bank-row small { display: block; color: var(--muted); font-size: 12px; }
.bank-row strong { direction: ltr; text-align: right; display: block; overflow-wrap: anywhere; }
.copy { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 12px; font-size: 13px; font-weight: 600; }

.saved-note { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 13.5px; color: var(--muted); padding: 10px 12px; border-radius: var(--r-sm); background: var(--soft); }

.phone-wrap { display: flex; align-items: stretch; direction: ltr; }
.phone-wrap .dial { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: var(--r-sm) 0 0 var(--r-sm); background: var(--bg); color: var(--muted); font-weight: 600; }
.phone-wrap .input { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.phone-wrap select.dial-pick { appearance: none; -webkit-appearance: none; font: inherit; font-size: 15px; color: var(--text); padding: 0 24px 0 10px; min-width: 104px; cursor: pointer; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%23888' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 9px center / 11px 8px; }

/* ---------- Gift ---------- */
.who-pick h2 { margin-bottom: 10px; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.seg2 label { position: relative; cursor: pointer; }
.seg2 input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg2 span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: calc(var(--r-sm) - 3px); font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.seg2 svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.seg2 input:checked + span { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.seg2 input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gift-panel { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.gift-panel h2 { display: flex; align-items: center; gap: 8px; }
.gift-panel h2 svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linejoin: round; }
.btn-gift { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); color: var(--accent); }
.btn-gift:hover { border-color: var(--accent); }
.btn-gift svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.buy .btn-gift { min-height: 48px; }

/* ---------- Thanks + review page ---------- */

.thanks { padding: 24px 0 30px; display: grid; gap: 14px; max-width: 620px; margin-inline: auto; }
.thanks-head { text-align: center; display: grid; gap: 6px; justify-items: center; }
.thanks-head .check { width: 64px; height: 64px; border-radius: 50%; background: color-mix(in srgb, var(--ok) 14%, var(--surface)); display: grid; place-items: center; }
.thanks-head .check svg { width: 32px; height: 32px; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.order-no { font-family: var(--font-head); font-size: 30px; direction: ltr; letter-spacing: 1px; }
.step { border: 2px solid var(--accent); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; background: var(--surface); }
.step p { margin: 0; font-weight: 600; }

.page { padding: 18px 0 28px; }
.page h1 { font-size: 24px; margin-bottom: 10px; }
.policy { max-width: 760px; }
.policy h2 { font-size: 17px; margin: 18px 0 6px; }
.policy ol { padding-inline-start: 20px; margin: 0; }

.review-page { max-width: 620px; display: grid; gap: 12px; }
.review-page h1 { margin: 0; }
.review-product { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.rate-input { border: 0; margin: 0; padding: 0; display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate-input legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; width: 100%; padding: 0; }
.rate-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate-input label { font-size: 36px; line-height: 1; color: var(--line); cursor: pointer; padding: 2px; transition: color .1s; }
.rate-input input:checked ~ label,
.rate-input label:hover,
.rate-input label:hover ~ label { color: var(--star); }
.rate-input input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }

.page-loading { min-height: 46vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--primary); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Footer ---------- */

.footer { background: var(--hero); color: rgba(255, 255, 255, .88); margin-top: 24px; padding: 28px 0 calc(90px + env(safe-area-inset-bottom)); font-size: 14px; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.footer h2 { font-size: 16px; color: #fff; margin-bottom: 8px; }
.footer p { margin: 0 0 6px; }
.footer a { color: #fff; }
.footer-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 12px; }
.footer-cats a { text-decoration: none; opacity: .9; }
.footer-cats a:hover { text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.footer-links a { padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill); text-decoration: none; font-size: 13.5px; }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-brand img { width: 40px; height: 40px; object-fit: contain; }
.footer-brand strong { font-family: var(--font-head); font-size: 20px; color: #fff; }
.footer-bottom { margin-top: 22px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; opacity: .7; }

/* ---------- WhatsApp float ---------- */

.wa-float {
    position: fixed;
    inset-inline-end: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 35;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--wa);
    display: grid;
    place-items: center;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.wa-float.off { display: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float .wa-glyph { fill: var(--wa); }

/* ---------- Sheet (menu / modal) ---------- */

.sheet { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-start; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15, 8, 9, .5); animation: fade .2s ease; }
.sheet-panel {
    position: relative;
    width: min(88%, 380px);
    height: 100%;
    background: var(--surface);
    color: var(--text);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: calc(14px + env(safe-area-inset-top)) 16px calc(24px + env(safe-area-inset-bottom));
    animation: slideIn .22s ease;
    box-shadow: var(--shadow);
}
.sheet.modal { align-items: flex-end; justify-content: center; }
.sheet.modal .sheet-panel { width: min(100%, 560px); height: auto; max-height: 90vh; max-height: 90dvh; border-radius: var(--r) var(--r) 0 0; animation: rise .22s ease; }
@media (min-width: 760px) { .sheet.modal { align-items: center; } .sheet.modal .sheet-panel { border-radius: var(--r); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }

.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.sheet-head h2 { font-size: 19px; }
.close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--bg); font-size: 22px; line-height: 1; flex-shrink: 0; }

.menu-list { list-style: none; margin: 0; padding: 0; display: grid; }
.menu-list a, .menu-list button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 4px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: none;
    text-decoration: none;
    font-weight: 600;
    text-align: start;
}
.menu-list small { color: var(--muted); font-weight: 500; }
.menu-sub { padding-inline-start: 14px !important; font-weight: 500 !important; font-size: 14.5px; }
.menu-label { font-size: 12.5px; color: var(--muted); margin: 16px 4px 2px; font-weight: 600; }
.menu-owner a, .menu-owner button { color: var(--accent); }

.cur-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cur-list button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--surface); text-align: start; }
.cur-list button[aria-pressed="true"] { border-color: var(--accent); background: var(--soft); }
.cur-flag { font-size: 28px; line-height: 1; }
.cur-name { display: grid; }
.cur-name small { color: var(--muted); }
.cur-rate { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- Toast ---------- */

.toast {
    position: fixed;
    bottom: calc(86px + env(safe-area-inset-bottom));
    left: 50%;
    transform: translate(-50%, 20px);
    background: var(--primary);
    color: #F3E6D3;
    padding: 8px 15px;
    border-radius: var(--r-pill);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    box-shadow: 0 8px 22px rgba(40, 6, 10, .28);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    z-index: 90;
    max-width: calc(100% - 32px);
    text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Menu (النقاط الثلاث) ---------- */

.menu { display: grid; }
.menu .menu-label { margin: 2px 2px 8px; }
.menu-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.menu-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px;
    min-height: 54px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    text-decoration: none;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.3;
}
.menu-cat:hover { border-color: var(--accent); }
.mc-img { width: 40px; height: 40px; border-radius: 8px; overflow: hidden; flex-shrink: 0; background: var(--img-bg); }
.mc-img img { width: 100%; height: 100%; object-fit: cover; }
.mc-name { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.menu-acts { display: grid; gap: 8px; margin-top: 16px; }
.menu-act {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: var(--soft);
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 15px;
    text-align: start;
}
.menu-act small { margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: 13px; }
.ma-ico { width: 30px; height: 30px; display: grid; place-items: center; flex-shrink: 0; }
.ma-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ma-ico.wa svg { fill: var(--wa); stroke: none; }
.ma-ico.wa .wa-glyph { fill: #fff; }
.ma-ico.flag { font-size: 22px; line-height: 1; }
.menu-acts.owner { margin-top: 0; }
.menu-acts.owner .menu-act { background: transparent; border: 1.5px dashed var(--line); color: var(--accent); }
.menu-social { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.menu-social a { padding: 6px 16px; border: 1px solid var(--line); border-radius: var(--r-pill); text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted); }
.menu .menu-acts + .menu-label, .menu .menu-social + .menu-label { margin-top: 18px; }


/* ---------- Language: English (LTR) ---------- */

.lang-btn {
    grid-area: lang;
    height: 40px;
    min-width: 44px;
    padding: 0 10px;
    border: 0;
    border-radius: var(--r-pill);
    background: color-mix(in srgb, currentColor 12%, transparent);
    color: inherit;
    font-weight: 700;
    font-size: 13.5px;
    font-family: var(--font-body);
}
.lang-btn:hover { background: color-mix(in srgb, currentColor 20%, transparent); }
.top-row { grid-template-columns: auto 1fr auto auto auto; grid-template-areas: "menu brand lang cur cart" "search search search search search"; }
.top-row.no-search { grid-template-areas: "menu brand lang cur cart"; }
@media (min-width: 760px) {
    .top-row { grid-template-columns: auto auto 1fr auto auto auto; grid-template-areas: "menu brand search lang cur cart"; }
    .top-row.no-search { grid-template-columns: auto 1fr auto auto auto; grid-template-areas: "menu brand lang cur cart"; }
}
@media (max-width: 360px) { .cur-btn { padding: 0 8px; } .lang-btn { min-width: 40px; padding: 0 8px; } }

.i18n-wait #view, .i18n-wait #footer, .i18n-wait .bars, .i18n-wait .brand, .i18n-wait .search { visibility: hidden; }

[dir="ltr"] .stage-nav svg { transform: scaleX(-1); }
[dir="ltr"] .hero.has-image::after { background: linear-gradient(to right, color-mix(in srgb, var(--hero) 92%, transparent), color-mix(in srgb, var(--hero) 55%, transparent)); }
[dir="ltr"] .bank-row strong { text-align: left; }
[dir="ltr"] body { letter-spacing: 0; }

/* ---------- Menu: collapsible categories + social icons ---------- */

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 52px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--surface);
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    text-align: start;
}
.menu-toggle small { margin-inline-start: auto; color: var(--muted); font-weight: 600; font-size: 12.5px; background: var(--bg); border-radius: var(--r-pill); padding: 1px 8px; }
.menu-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; flex-shrink: 0; }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-toggle + .menu-cats { margin-top: 8px; }
.menu-cats[hidden] { display: none !important; }
.ma-ico.lang { font-weight: 800; font-size: 13px; color: var(--accent); border: 1.5px solid currentColor; border-radius: 8px; width: 34px; height: 26px; }

.soc-ico {
    display: block;
    width: 22px;
    height: 22px;
    background: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}
.menu-social { gap: 12px; }
.menu-social a.msoc-icon, .footer-social a.fsoc-icon {
    width: 46px;
    height: 46px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 50%;
}
.menu-social a.msoc-icon { color: var(--text); border: 1px solid var(--line); background: var(--surface); }
.menu-social a.msoc-icon .soc-ico { width: 22px; height: 22px; }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.footer-social a { color: #fff; text-decoration: none; }
.footer-social a.fsoc-icon { border: 1px solid rgba(255, 255, 255, .3); }
.footer-social a:not(.fsoc-icon) { padding: 6px 13px; border: 1px solid rgba(255, 255, 255, .3); border-radius: var(--r-pill); font-size: 13.5px; }
[dir="ltr"] .sheet:not(.modal) .sheet-panel { animation-name: slideInL; }
@keyframes slideInL { from { transform: translateX(-30px); opacity: 0; } }

/* ---------- Menu: appearance switch ---------- */

.mode-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 4px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
.mode-seg button {
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 8px 4px;
    border: 0;
    border-radius: calc(var(--r-sm) - 3px);
    background: transparent;
    color: var(--muted);
    font-weight: 700;
    font-size: 13px;
}
.mode-seg svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-seg svg .fill { fill: currentColor; stroke: none; }
.mode-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: var(--shadow); }
.menu .mode-seg { margin-bottom: 4px; }
.menu .menu-acts + .menu-label { margin-top: 18px; }

/* =====================================================
   Menu v3 — قائمة بسيطة بأسلوب المتاجر العالمية
===================================================== */
.sheet-menu .sheet-panel { padding-top: calc(10px + env(safe-area-inset-top)); }
.menu-head { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.menu-brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--text); font-size: 20px; }
.menu-logo { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: var(--primary); }
.menu-logo img { height: 26px; width: auto; display: block; }
.mgroup { display: grid; }
.mgroup > .mrow + .mrow, .mgroup > .menu-cats + .mrow { border-top: 1px solid var(--line); }
.mrow {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 8px 2px;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 15.5px;
    font-weight: 600;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}
.mrow-set { cursor: default; }
.mi { width: 26px; height: 26px; display: grid; place-items: center; flex-shrink: 0; color: var(--text); }
.mi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.mi svg .fill { fill: currentColor; stroke: none; }
.mi.flag { font-size: 20px; line-height: 1; }
.ml { flex: 1; min-width: 0; display: grid; gap: 1px; }
.ml small { font-size: 12.5px; font-weight: 500; color: var(--muted); line-height: 1.4; }
.mval { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.mchev { display: grid; place-items: center; color: var(--muted); flex-shrink: 0; }
.mchev svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
[dir="ltr"] .mchev svg.side, [dir="ltr"] .gcta-go svg.side, [dir="ltr"] .gp-go svg.side { transform: scaleX(-1); }
.mrow[aria-expanded="true"] .mchev.down svg { transform: rotate(180deg); }
.mrow-gift .mi.gift { color: var(--accent); }
.mrow-gift .ml { color: var(--accent); font-weight: 700; }
.mgroup .menu-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 2px 0 12px; }
.mgroup .menu-cat { border: 0; background: var(--soft); min-height: 52px; padding: 6px; border-radius: 12px; font-size: 13px; }
.mgroup .menu-cat .mc-n { margin-inline-start: auto; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.menu .menu-label { margin: 18px 2px 2px; font-size: 12.5px; color: var(--muted); font-weight: 700; }
.mini-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-pill); background: var(--bg); border: 1px solid var(--line); flex-shrink: 0; }
.mini-seg button { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.mini-seg button[aria-pressed="true"] { background: var(--surface); color: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 1px 3px rgba(0, 0, 0, .12); }
.mini-seg.mode-seg { display: inline-flex; grid-template-columns: none; }
.mini-seg.mode-seg button { display: inline-flex; padding: 5px 8px; }
.mini-seg.mode-seg svg { width: 15px; height: 15px; }
.menu .mini-seg.mode-seg { margin: 0; }
@media (max-width: 370px) { .mini-seg.mode-seg button span { display: none; } .mini-seg.mode-seg button { padding: 6px 10px; } }
.mfollow { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 6px; }
.mf { display: grid; justify-items: center; gap: 6px; padding: 12px 4px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text); text-decoration: none; font-size: 13px; font-weight: 700; }
.mf svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mf svg.solid, .mf svg .fill { fill: currentColor; stroke: none; }
.mf.ig svg { color: #C13584; }
.mf.tt svg { color: var(--text); }
.mf.wa svg { fill: #25D366; stroke: none; }
.mf.wa .wa-glyph { fill: #fff; }
.mf:hover { border-color: var(--accent); }
.mgroup.owner { margin-top: 2px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); padding: 0 12px; }
.mgroup.owner .mrow { color: var(--accent); font-size: 14.5px; min-height: 48px; }

/* =====================================================
   Gift — بنر الهدية، الزر المميز، بطاقة الإهداء
===================================================== */
.gift-promo { margin-top: 14px; }
.gp {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: var(--r);
    overflow: hidden;
    color: #fff;
    text-decoration: none;
    background:
        radial-gradient(circle, rgba(255, 255, 255, .13) 1.5px, transparent 2px) 0 0 / 20px 20px,
        linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 62%, #000));
    box-shadow: var(--shadow);
}
.gp-art { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; background: rgba(255, 255, 255, .16); animation: giftWiggle 3.4s ease-in-out infinite; }
.gp-art svg { width: 34px; height: 34px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.gp-text { flex: 1; min-width: 0; display: grid; gap: 3px; }
.gp-text b { font-size: 17px; line-height: 1.35; }
.gp-text small { font-size: 13px; line-height: 1.55; opacity: .9; }
.gp-go { display: inline-flex; align-items: center; gap: 2px; padding: 8px 10px 8px 12px; border-radius: var(--r-pill); background: #fff; color: var(--primary); font-weight: 800; font-size: 14px; flex-shrink: 0; }
.gp-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes giftWiggle { 0%, 78%, 100% { transform: rotate(0); } 83% { transform: rotate(-9deg) scale(1.05); } 88% { transform: rotate(8deg) scale(1.05); } 93% { transform: rotate(-4deg); } }

.gift-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid color-mix(in srgb, var(--accent) 42%, var(--line));
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 10%, var(--surface)), var(--surface) 70%);
    color: var(--text);
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
}
.gift-cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .5) 50%, transparent 65%); transform: translateX(-120%); animation: giftShine 4.5s ease-in-out 1.2s infinite; pointer-events: none; }
.gcta-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: var(--primary); }
.gcta-ico svg { width: 23px; height: 23px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linejoin: round; }
.gcta-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.gcta-txt b { color: var(--accent); font-size: 15.5px; }
.gcta-txt small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.gcta-go { display: grid; place-items: center; color: var(--accent); }
.gcta-go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gift-cta:hover { border-color: var(--accent); }
@keyframes giftShine { 0%, 70% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.added-actions .gift-cta { margin-bottom: 2px; }
.cart-actions .gift-cta { margin-top: 2px; }

.bar-gift { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); border-bottom: 1px solid var(--line); }
.bar-gift svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.bar-gift a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.bar-gift button { border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 2px 6px; }

.occ-field > span { font-weight: 600; font-size: 14px; }
.occ-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.occ { position: relative; cursor: pointer; }
.occ input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.occ span { display: inline-flex; align-items: center; gap: 4px; padding: 7px 12px; border-radius: var(--r-pill); border: 1.5px solid var(--line); background: var(--surface); font-size: 13.5px; font-weight: 600; }
.occ input:checked + span { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); }
.occ input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.occ-own span { border-style: dashed; }
.occ-own input:checked + span { border-style: solid; }
.occ-custom { display: grid; gap: 4px; margin-top: 8px; }
.occ-custom[hidden] { display: none; }
.occ-custom > span { font-size: 13px; font-weight: 600; color: var(--muted); }
.msg-sugs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: -4px; }
.sug { border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: transparent; color: var(--text); border-radius: 12px; padding: 6px 10px; font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.sug:hover { border-style: solid; }
.gift-card-note { margin: 2px 0 4px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); font-size: 13.5px; line-height: 1.6; }

.gift-done { border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); display: grid; gap: 10px; }
.gd-card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: var(--r-sm); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, var(--surface)), var(--surface)); }
.gd-card div { display: grid; gap: 2px; min-width: 0; }
.gd-card small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.gd-emoji { font-size: 34px; line-height: 1; }
.gd-row { display: flex; justify-content: center; gap: 18px; }
.gift-done .muted.small { margin: 0; text-align: center; }

/* صفحة بطاقة الإهداء — تصميم هادئ وبسيط: خلفية فاتحة، صندوق مسطّح، وبطاقة ورقية بإطار رفيع.
   ألوان لوحة التحكم تُخفَّف هنا تلقائياً حتى يبقى أي لون مختار هادئاً */
#view[data-route="gift"] { padding: 0; }
.gift-page {
    --g-bg: #4A0A14; --g-box: #8E1A2C; --g-ribbon: #F2C964; --g-paper: #FFF8EC; --g-ink: #3B2A20; --g-accent: #8E1A2C; --g-font: "Aref Ruqaa";
    --c-bg: color-mix(in srgb, var(--g-bg) 8%, #FAF7F2);
    --c-box: color-mix(in srgb, var(--g-box) 42%, #F1ECE6);
    --c-lid: color-mix(in srgb, var(--c-box) 88%, #3A302B);
    --c-rib: color-mix(in srgb, var(--g-ribbon) 28%, #FFFCF7);
    --c-rib-d: color-mix(in srgb, var(--c-rib) 78%, #8A7A6A);
    --c-deep: color-mix(in srgb, var(--g-accent) 62%, #2A2420);
    --c-ink: color-mix(in srgb, var(--g-ink) 85%, #2A2420);
    --c-muted: color-mix(in srgb, var(--c-ink) 58%, var(--c-bg));
    --c-line: color-mix(in srgb, var(--c-deep) 20%, transparent);
    --g-muted: var(--c-muted);
}
.gx {
    position: relative;
    overflow: hidden;
    min-height: min(86vh, 760px);
    min-height: min(86dvh, 760px);
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 14px;
    padding: 34px 20px 40px;
    text-align: center;
    color: var(--c-ink);
    background: var(--c-bg);
}
/* نقاط خفيفة بدل النجوم اللامعة */
.gx-stars { position: absolute; inset: 0; pointer-events: none; }
.gx-stars i { position: absolute; left: var(--x); top: var(--y); width: 6px; height: 6px; border-radius: 50%; background: var(--c-deep); transform: scale(var(--s)); opacity: .1; animation: gxDot 5s ease-in-out var(--d) infinite; }
@keyframes gxDot { 0%, 100% { opacity: .06; } 50% { opacity: .22; } }
.gx-kicker { position: relative; display: flex; align-items: center; gap: 12px; margin: 0; color: var(--c-muted); font-size: 13.5px; font-weight: 600; letter-spacing: .3px; }
.gx-kicker::before, .gx-kicker::after { content: ""; width: 28px; height: 1px; background: var(--c-line); }
.gx-title { position: relative; margin: 0; max-width: 18ch; font-family: var(--g-font), var(--font-head); font-size: clamp(30px, 8.4vw, 42px); line-height: 1.4; font-weight: 700; color: var(--c-deep); }

/* الصندوق: أشكال مسطّحة بدون لمعان */
.gx-box { position: relative; width: 220px; height: 220px; margin: 14px 0 6px; padding: 0; border: 0; background: none; cursor: pointer; animation: gxFloat 4.2s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
.gx-box:focus-visible { outline: 2px solid var(--c-deep); outline-offset: 6px; border-radius: 16px; }
.gx-shadow { position: absolute; left: 44px; right: 44px; bottom: 6px; height: 14px; border-radius: 50%; background: var(--c-deep); opacity: .1; filter: blur(4px); }
.gx-body {
    position: absolute; left: 36px; right: 36px; bottom: 20px; height: 122px; border-radius: 10px;
    background: linear-gradient(90deg, transparent calc(50% - 12px), var(--c-rib) calc(50% - 12px) calc(50% + 12px), transparent calc(50% + 12px)), var(--c-box);
}
.gx-lid {
    position: absolute; left: 24px; right: 24px; top: 64px; height: 40px; border-radius: 9px; z-index: 2;
    background: linear-gradient(90deg, transparent calc(50% - 13px), var(--c-rib) calc(50% - 13px) calc(50% + 13px), transparent calc(50% + 13px)), var(--c-lid);
    box-shadow: 0 4px 0 color-mix(in srgb, var(--c-lid) 70%, transparent);
    transition: transform .8s cubic-bezier(.3, 1.2, .5, 1), opacity .6s;
}
.gx-bow { position: absolute; left: 50%; top: -34px; width: 104px; height: 40px; transform: translateX(-50%); }
.gx-bow i { position: absolute; top: 4px; width: 44px; height: 32px; box-sizing: border-box; border: 7px solid var(--c-rib); border-radius: 50% 50% 46% 46%; filter: drop-shadow(0 1px 0 var(--c-rib-d)); }
.gx-bow i:first-child { left: 4px; transform: rotate(-18deg); }
.gx-bow i:nth-child(2) { right: 4px; transform: rotate(18deg); }
.gx-bow b { position: absolute; left: 50%; top: 18px; width: 22px; height: 20px; transform: translateX(-50%); border-radius: 6px; background: var(--c-rib); box-shadow: 0 1px 0 var(--c-rib-d); }
.gx-tag { position: absolute; z-index: 3; right: 22px; bottom: 36px; max-width: 92px; padding: 3px 10px; border-radius: 4px; background: var(--g-paper); color: var(--c-deep); border: 1px solid var(--c-line); font-family: var(--g-font), var(--font-head); font-size: 15px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transform: rotate(-6deg); }
.gx-burst { position: absolute; left: 50%; top: 52%; width: 0; height: 0; z-index: 4; }
.gx-burst i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--c-box); opacity: 0; }
.gx-burst i:nth-child(3n + 1) { background: var(--c-deep); }
.gx-burst i:nth-child(3n + 2) { background: var(--c-rib-d); }
.gx-cta { position: relative; min-width: 210px; min-height: 52px; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--c-deep); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: transform .15s ease, opacity .3s; }
.gx-cta:active { transform: scale(.98); }
.gx-cta:focus-visible { outline: 2px solid var(--c-deep); outline-offset: 3px; }
.gx-hint { position: relative; margin: 0; font-size: 13px; color: var(--c-muted); }
@keyframes gxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes gxNudge { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.04) rotate(-2deg); } 70% { transform: scale(1.03) rotate(1.5deg); } }
@keyframes gxBurst { 0% { opacity: .9; transform: rotate(var(--a)) translateY(0); } 100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(var(--r) * -1)); } }
.gx.opening .gx-box { animation: gxNudge .55s ease-in-out; }
.gx.opening .gx-lid { transform: translateY(-110px) rotate(-10deg); opacity: 0; transition-delay: .4s; }
.gx.opening .gx-burst i { animation: gxBurst 1s cubic-bezier(.2, .8, .3, 1) calc(.5s + var(--d)) forwards; }
.gx.opening .gx-tag, .gx.opening .gx-cta, .gx.opening .gx-hint { opacity: 0; transition: opacity .3s; }

/* البطاقة بعد الفتح: ورق فاتح بإطار رفيع ومساحات واسعة */
.gx-open { align-content: start; padding-top: 72px; }
.gcard {
    position: relative; z-index: 1; box-sizing: border-box; width: min(calc(100% - 16px), 420px); display: grid; justify-items: center; gap: 8px;
    padding: 44px 28px 22px; border-radius: 16px; color: var(--c-ink);
    background: var(--g-paper);
    border: 1px solid var(--c-line);
    box-shadow: 0 24px 60px color-mix(in srgb, var(--c-deep) 10%, transparent);
}
.gcard::before { content: ""; position: absolute; inset: 9px; border: 1px solid var(--c-line); border-radius: 10px; pointer-events: none; }
.gx-open.show .gcard { animation: cardRise .7s cubic-bezier(.2, .9, .3, 1); }
@keyframes cardRise { from { transform: translateY(24px); opacity: 0; } }
.gc-seal { position: relative; width: 58px; height: 58px; margin-top: -74px; border-radius: 50%; display: grid; place-items: center; background: var(--g-paper); border: 1px solid var(--c-line); box-shadow: 0 0 0 6px var(--c-bg); }
.gc-seal svg { width: 26px; height: 26px; fill: none; stroke: var(--c-deep); stroke-width: 1.5; stroke-linejoin: round; }
.gc-to { margin: 8px 0 -6px; color: var(--c-muted); font-size: 14px; font-weight: 500; }
.gc-name { margin: 0; font-family: var(--g-font), var(--font-head); font-size: clamp(34px, 10vw, 44px); line-height: 1.3; color: var(--c-deep); }
.gc-occ { margin: 0; font-family: var(--g-font), var(--font-head); font-size: 19px; font-weight: 600; color: color-mix(in srgb, var(--c-deep) 72%, var(--g-paper)); }
.gc-line { display: flex; align-items: center; gap: 10px; width: 46%; margin: 4px 0; }
.gc-line::before, .gc-line::after { content: ""; flex: 1; height: 1px; background: var(--c-line); }
.gc-line span { width: 6px; height: 6px; transform: rotate(45deg); background: var(--c-deep); opacity: .45; }
.gc-msg { margin: 4px 0; font-family: var(--g-font), var(--font-body); font-size: clamp(20px, 5.6vw, 24px); line-height: 1.8; color: var(--c-ink); white-space: pre-line; text-align: center; }
.gc-from { margin: 2px 0 6px; display: grid; gap: 0; color: var(--c-muted); font-size: 14px; }
.gc-from b { font-family: var(--g-font), var(--font-head); font-size: 25px; color: var(--c-deep); line-height: 1.4; }
.gc-foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--c-line); width: 100%; justify-content: center; color: var(--c-muted); font-size: 13px; }
.gc-logo { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--c-deep); flex-shrink: 0; }
.gc-logo img { width: 22px; height: 22px; object-fit: contain; }
.gx-actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.gx-again { min-height: 46px; padding: 8px 20px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c-deep) 45%, transparent); background: transparent; color: var(--c-deep); font: inherit; font-weight: 600; cursor: pointer; }
.gx-shop { display: inline-flex; align-items: center; min-height: 46px; padding: 8px 22px; border-radius: 999px; background: var(--c-deep); color: #fff; font-weight: 700; text-decoration: none; }
.gx-open .confetti { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.gx-open .confetti i { position: absolute; top: -12px; left: var(--x); width: 7px; height: 11px; border-radius: 2px; background: var(--c-box); opacity: 0; }
.gx-open .confetti i:nth-child(3n + 1) { background: var(--c-deep); }
.gx-open .confetti i:nth-child(3n + 2) { background: var(--c-rib-d); }
.gx-open.show .confetti i { animation: confettiFall var(--t) ease-in var(--d) 1 forwards; }
@keyframes confettiFall { 0% { opacity: .85; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(700px) rotate(var(--r)); } }
@media (prefers-reduced-motion: reduce) {
    .gp-art, .gx-box, .gx-stars i, .gift-cta::after, .gx-open.show .gcard, .gx-open.show .confetti i, .gx.opening .gx-burst i, .gx.opening .gx-box { animation: none !important; }
}

/* =====================================================
   Footer v2 — مختصر وواضح
===================================================== */
.foot { display: grid; gap: 14px; max-width: 760px; }
.foot-head .footer-brand { margin-bottom: 6px; }
.foot-about { margin: 0; opacity: .85; line-height: 1.7; }
.foot-points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.foot-points li { display: grid; justify-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; background: rgba(255, 255, 255, .07); text-align: center; font-size: 12.5px; font-weight: 600; line-height: 1.45; color: #fff; }
.foot-points svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.foot-acc { border-top: 1px solid rgba(255, 255, 255, .14); }
.foot-acc:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 2px; list-style: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 15.5px; }
.foot-acc summary::-webkit-details-marker { display: none; }
.foot-acc summary svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; opacity: .8; }
.foot-acc[open] summary svg { transform: rotate(180deg); }
.foot-acc .footer-cats { padding: 0 2px 14px; }
.foot-lines { list-style: none; margin: 0; padding: 0 2px 10px; display: grid; gap: 8px; }
.foot-lines li { line-height: 1.6; opacity: .9; padding-inline-start: 14px; position: relative; }
.foot-lines li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.foot-more { display: inline-block; margin: 0 2px 14px; font-weight: 700; text-underline-offset: 3px; }
.foot-follow { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.foot-follow > span { color: #fff; font-weight: 700; font-size: 15.5px; }
.foot-icons { display: flex; gap: 10px; }
.foot-icons a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .3); color: #fff; }
.foot-icons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.foot-icons svg.solid, .foot-icons svg .fill { fill: currentColor; stroke: none; }
.foot-icons a.wa svg { fill: #fff; stroke: none; }
.foot-icons a.wa .wa-glyph { fill: var(--hero); }
.foot .footer-bottom { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.foot .footer-bottom a { color: #fff; }
@media (min-width: 760px) { .foot { margin-inline: auto; } }
.foot-head .footer-brand img { width: auto; height: 48px; }
.mk-line { font-weight: 500; font-size: 13.5px; color: var(--muted); }
.mk-line input { width: 18px; height: 18px; }

/* =====================================================
   v10 — قوالب المتجر (تُختار من لوحة التحكم ← القوالب)
   كل قالب = ألوان وخطوط من لوحة التحكم + لمسات شكل هنا.
   كلها مبنية على المتغيرات حتى تعمل في الوضع الفاتح والداكن.
===================================================== */

/* الشريط العلوي الفاتح */
html.head-light { --head-bg: var(--surface); --head-ink: var(--text); --logo-filter: brightness(0); }
html.head-light .top { border-bottom: 1px solid var(--line); }
html.head-light .search { background: color-mix(in srgb, var(--text) 5%, var(--surface)); box-shadow: inset 0 0 0 1px var(--line); }
html.head-light .search:focus-within { box-shadow: inset 0 0 0 1px var(--line), 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent); }
html.head-light .cart-count { background: var(--primary); color: var(--on-primary); }
html.head-light[data-mode="dark"] { --logo-filter: none; }
@media (prefers-color-scheme: dark) { html.head-light[data-mode="auto"] { --logo-filter: none; } }

/* صور المنتجات داخل الواجهة: مخفية في الكلاسيكي، ولكل قالب طريقة عرض */
.hero-shots { display: none; }
.hs { display: block; overflow: hidden; background: var(--img-bg); }
.hs img { width: 100%; height: 100%; object-fit: cover; }
.tile-img { display: block; }

/* الشعار في المنتصف (أبيض بسيط، بوتيك ناعم، أسود فاخر) */
html.tpl-minimal .top-row, html.tpl-boutique .top-row, html.tpl-luxe .top-row { grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-areas: "menu lang brand cur cart" "search search search search search"; }
html.tpl-minimal .top-row.no-search, html.tpl-boutique .top-row.no-search, html.tpl-luxe .top-row.no-search { grid-template-areas: "menu lang brand cur cart"; }
html.tpl-minimal .brand, html.tpl-boutique .brand, html.tpl-luxe .brand { justify-self: center; }

/* =====================================================
   1) أبيض بسيط — مثل الماركات العالمية: أبيض، خطوط رفيعة، المنتج هو البطل
===================================================== */
html.tpl-minimal { --line: color-mix(in srgb, var(--text) 9%, var(--bg)); --img-bg: color-mix(in srgb, var(--text) 5%, var(--surface)); --accent: var(--text); }
html.tpl-minimal .icon-btn, html.tpl-minimal .cur-btn, html.tpl-minimal .lang-btn { background: transparent; }
html.tpl-minimal .search { background: transparent; box-shadow: none; border-radius: 0; border-bottom: 1.5px solid var(--text); height: 40px; padding: 0 2px; }
html.tpl-minimal .search:focus-within { box-shadow: none; }
/* الواجهة: بدون لون، عنوان كبير رفيع في المنتصف */
html.tpl-minimal .hero:not(.has-image) { background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); }
html.tpl-minimal .hero.pattern::before { display: none; }
html.tpl-minimal .hero:not(.has-image) .hero-inner { justify-items: center; text-align: center; padding: 36px 0 28px; gap: 10px; }
html.tpl-minimal .hero:not(.has-image) h1 { font-weight: 500; font-size: clamp(30px, 9.4vw, 58px); letter-spacing: -.01em; max-width: 16ch; }
html.tpl-minimal .hero:not(.has-image) p { color: var(--muted); opacity: 1; font-size: 14px; }
html.tpl-minimal .hero:not(.has-image) .hero-features { justify-content: center; gap: 6px 0; }
html.tpl-minimal .hero:not(.has-image) .hero-features li { background: none; box-shadow: none; padding: 0 10px; border-radius: 0; font-weight: 500; font-size: 12.5px; color: var(--muted); }
html.tpl-minimal .hero:not(.has-image) .hero-features li + li { border-inline-start: 1px solid var(--line); }
html.tpl-minimal .hero-features svg { display: none; }
/* الأقسام: كلمات فقط مع خط تحت القسم المختار */
html.tpl-minimal .tiles { gap: 24px; padding-top: 4px; padding-bottom: 0; border-bottom: 1px solid var(--line); }
html.tpl-minimal .tile { flex: 0 0 auto; padding: 12px 0 10px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
html.tpl-minimal .tile-img { display: none; }
html.tpl-minimal .tile-name { display: block; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
html.tpl-minimal .tile.on, html.tpl-minimal .tile:hover { border-bottom-color: var(--text); }
html.tpl-minimal .tile.on .tile-name { color: var(--text); font-weight: 700; }
/* المنتجات: بدون إطار، وزر «+» دائري فوق الصورة */
html.tpl-minimal .card { border: 0; background: transparent; overflow: visible; }
html.tpl-minimal .card-img { border-radius: var(--r); overflow: hidden; }
html.tpl-minimal .card-body { padding: 9px 2px 4px; }
html.tpl-minimal .card-name { font-weight: 500; }
html.tpl-minimal .price b { color: var(--text); }
html.tpl-minimal .card-action { position: absolute; top: 8px; inset-inline-end: 8px; padding: 0; z-index: 2; }
html.tpl-minimal .card-action .btn { width: 40px; height: 40px; min-height: 40px; padding: 0; gap: 0; font-size: 0; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
html.tpl-minimal .card-action .btn::before { content: "+"; font-size: 27px; font-weight: 300; line-height: 1; }
html.tpl-minimal .card-action .stepper { height: 40px; grid-template-columns: 34px 26px 34px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
html.tpl-minimal .card.soldout .card-action { display: none; }
html.tpl-minimal .badge { box-shadow: none; border-radius: 3px; background: var(--surface); color: var(--text); }
html.tpl-minimal .badge.sale { background: var(--text); color: var(--surface); }
html.tpl-minimal .rail { grid-auto-columns: minmax(160px, 58%); }
@media (min-width: 760px) { html.tpl-minimal .rail { grid-auto-columns: minmax(220px, 27%); } }
html.tpl-minimal .section-head h1, html.tpl-minimal .section-head h2 { font-size: 17px; font-weight: 600; }
html.tpl-minimal .section-head .more { color: var(--text); text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
/* بنر الهدية: إطار أسود رفيع بدل اللون */
html.tpl-minimal .gp { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--text); }
html.tpl-minimal .gp-art { background: var(--img-bg); }
html.tpl-minimal .gp-art svg { stroke: var(--text); }
html.tpl-minimal .gp-go { background: var(--text); color: var(--surface); }

/* =====================================================
   2) بوتيك ناعم — واجهة كبطاقة مدوّرة فيها صور منتجاتك، وأقسام دائرية
===================================================== */
html.tpl-boutique .hero:not(.has-image) { background: transparent; color: #fff; }
html.tpl-boutique .hero.pattern:not(.has-image)::before { display: none; }
html.tpl-boutique .hero:not(.has-image) .hero-inner { margin-top: 12px; padding: 24px 18px 20px; border-radius: 28px; background: radial-gradient(120% 90% at 50% 0%, color-mix(in srgb, var(--hero) 72%, #fff), var(--hero) 72%); justify-items: center; text-align: center; box-shadow: var(--shadow); overflow: hidden; }
html.tpl-boutique .hero h1 { font-size: clamp(26px, 8vw, 46px); }
html.tpl-boutique .hero-features { justify-content: center; }
html.tpl-boutique .hero-features li { background: rgba(255, 255, 255, .14); }
html.tpl-boutique .hero-shots { display: flex; justify-content: center; align-items: flex-end; margin-top: 14px; padding-bottom: 4px; }
html.tpl-boutique .hs { width: 29%; max-width: 140px; aspect-ratio: 4 / 5; border: 5px solid #fff; border-radius: 16px; box-shadow: 0 10px 22px rgba(0, 0, 0, .28); }
html.tpl-boutique .hs1 { transform: rotate(-8deg) translateY(4px); }
html.tpl-boutique .hs2 { position: relative; z-index: 1; margin-inline: -12px; transform: translateY(-6px) scale(1.06); }
html.tpl-boutique .hs3 { transform: rotate(8deg) translateY(4px); }
html.tpl-boutique .tiles { gap: 14px; }
html.tpl-boutique .tile { flex-basis: 76px; }
html.tpl-boutique .tile-img { width: 70px; height: 70px; border-radius: 50%; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--primary) 40%, transparent); }
html.tpl-boutique .tile.on .tile-img, html.tpl-boutique .tile:hover .tile-img { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--primary); }
@media (min-width: 760px) {
    html.tpl-boutique .tile { flex-basis: 100px; }
    html.tpl-boutique .tile-img { width: 92px; height: 92px; }
}
html.tpl-boutique .card { border: 0; box-shadow: 0 1px 2px rgba(46, 36, 32, .05), 0 8px 22px rgba(46, 36, 32, .08); }
html.tpl-boutique .card-body { justify-items: center; text-align: center; }
html.tpl-boutique .price, html.tpl-boutique .swatches, html.tpl-boutique .card-rate { justify-content: center; }
html.tpl-boutique .btn, html.tpl-boutique .stepper { border-radius: 999px; }
html.tpl-boutique .section-head { flex-direction: column; gap: 4px; }
html.tpl-boutique .section-head h1, html.tpl-boutique .section-head h2 { font-size: 22px; text-align: center; }
html.tpl-boutique .section-head h2::before, html.tpl-boutique .section-head h2::after { content: "✦"; color: var(--primary); font-size: .5em; vertical-align: middle; margin-inline: 9px; }
html.tpl-boutique .gp { border-radius: 24px; }

/* =====================================================
   3) أسود فاخر — واجهة طويلة في المنتصف، ذهبي، أقسام كبطاقات مجلة
===================================================== */
html.tpl-luxe { --gold: #B8924A; --accent: #94713A; --btn-ink: #EBD5A6; }
html.tpl-luxe[data-mode="dark"] { --accent: #D2B47A; --btn-bg: #CFAE72; --btn-ink: #141414; }
@media (prefers-color-scheme: dark) { html.tpl-luxe[data-mode="auto"] { --accent: #D2B47A; --btn-bg: #CFAE72; --btn-ink: #141414; } }
html.tpl-luxe .top { box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--gold) 75%, transparent); }
html.tpl-luxe .icon-btn, html.tpl-luxe .cur-btn, html.tpl-luxe .lang-btn { background: transparent; box-shadow: inset 0 0 0 1px rgba(233, 211, 163, .32); }
html.tpl-luxe .search { background: rgba(255, 255, 255, .07); color: #F1E4C6; box-shadow: inset 0 0 0 1px rgba(233, 211, 163, .3); }
html.tpl-luxe .search svg { stroke: #CFAE72; }
html.tpl-luxe .search input::placeholder { color: rgba(241, 228, 198, .6); }
html.tpl-luxe .cart-count { background: var(--gold); color: #141414; }
html.tpl-luxe .bar-announce { box-shadow: inset 0 -1px 0 rgba(233, 211, 163, .35); color: #F1E4C6; }
html.tpl-luxe .hero-inner { min-height: min(52vh, 520px); align-content: center; justify-items: center; text-align: center; padding: 46px 0 40px; gap: 14px; }
html.tpl-luxe .hero h1 { color: #E9D3A3; font-size: clamp(34px, 10.5vw, 66px); max-width: 14ch; letter-spacing: .01em; }
html.tpl-luxe .hero h1::after { content: ""; display: block; width: 76px; height: 1px; margin: 16px auto 0; background: linear-gradient(90deg, transparent, #CFAE72, transparent); }
html.tpl-luxe .hero p { max-width: 40ch; }
html.tpl-luxe .hero-features { justify-content: center; }
html.tpl-luxe .hero-features li { background: transparent; box-shadow: inset 0 0 0 1px rgba(233, 211, 163, .35); color: #F1E4C6; }
html.tpl-luxe .tiles { gap: 10px; padding-top: 16px; }
html.tpl-luxe .tile { position: relative; display: block; flex: 0 0 136px; }
html.tpl-luxe .tile-img { width: 136px; height: 180px; box-shadow: none; }
html.tpl-luxe .tile-name { position: absolute; inset: auto 0 0; padding: 28px 8px 10px; border-radius: 0 0 var(--r-sm) var(--r-sm); background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #F1E4C6; font-family: var(--font-head); font-size: 15px; text-align: center; }
html.tpl-luxe .tile.on .tile-img, html.tpl-luxe .tile:hover .tile-img { box-shadow: 0 0 0 2px var(--gold); }
html.tpl-luxe .tile.on .tile-name { color: #F1E4C6; }
@media (min-width: 760px) {
    html.tpl-luxe .tile { flex-basis: 170px; }
    html.tpl-luxe .tile-img { width: 170px; height: 226px; }
}
html.tpl-luxe .card { background: transparent; border: 0; }
html.tpl-luxe .card-img { border-radius: var(--r-sm); }
html.tpl-luxe .card-img::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(233, 211, 163, .8); pointer-events: none; }
html.tpl-luxe .card-body { justify-items: center; text-align: center; padding: 10px 4px 6px; }
html.tpl-luxe .card-name { font-family: var(--font-head); font-size: 16px; }
html.tpl-luxe .price, html.tpl-luxe .swatches, html.tpl-luxe .card-rate { justify-content: center; }
html.tpl-luxe .card-action { padding: 0 4px 6px; }
html.tpl-luxe .card-action .btn-primary { background: transparent; color: var(--text); border: 1px solid color-mix(in srgb, var(--text) 70%, transparent); font-weight: 600; }
html.tpl-luxe .badge { box-shadow: none; }
html.tpl-luxe .badge.sale, html.tpl-luxe .badge.hot { background: var(--gold); color: #141414; }
html.tpl-luxe .section-head { flex-direction: column; gap: 6px; }
html.tpl-luxe .section-head h1, html.tpl-luxe .section-head h2 { display: flex; align-items: center; gap: 12px; font-size: 24px; text-align: center; }
html.tpl-luxe .section-head h2::before, html.tpl-luxe .section-head h2::after { content: ""; flex-shrink: 0; width: 26px; height: 1px; background: var(--gold); }
html.tpl-luxe .gp { background: linear-gradient(135deg, #1B1812, #0B0B0C); box-shadow: inset 0 0 0 1px rgba(233, 211, 163, .4); color: #F1E4C6; }
html.tpl-luxe .gp-art { background: rgba(233, 211, 163, .12); }
html.tpl-luxe .gp-art svg { stroke: #E9D3A3; }
html.tpl-luxe .gp-go { background: #CFAE72; color: #141414; }

/* =====================================================
   4) عصري جريء — واجهة مقسومة بصورة مائلة، أقسام عريضة، أسعار كبيرة
===================================================== */
html.tpl-bold .brand-logo { width: 46px; height: 46px; }
html.tpl-bold .hero:not(.has-image) .hero-inner { min-height: 250px; align-content: center; padding: 30px 0 24px; }
html.tpl-bold .hero:not(.has-image) h1 { max-width: 64%; }
html.tpl-bold .hero:not(.has-image) p { max-width: 58%; }
html.tpl-bold .hero h1 { font-size: clamp(28px, 8.4vw, 58px); line-height: 1.12; letter-spacing: -.01em; }
html.tpl-bold .hero p { font-size: 13.5px; }
html.tpl-bold .hero-features { position: relative; z-index: 1; }
html.tpl-bold .hero-features li { background: rgba(10, 15, 44, .55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
html.tpl-bold .hero:not(.has-image)::after { content: ""; position: absolute; top: 0; bottom: 0; inset-inline-end: -14%; width: 54%; background: var(--primary); transform: skewX(-12deg); z-index: -1; }
html.tpl-bold .hero-shots { display: block; position: absolute; top: 26px; inset-inline-end: 5%; width: 33%; max-width: 280px; transform: rotate(-7deg); }
html.tpl-bold .hs { display: none; }
html.tpl-bold .hs1 { display: block; aspect-ratio: 4 / 5; border: 4px solid #fff; border-radius: 18px; box-shadow: 0 22px 40px rgba(0, 0, 0, .45); }
html.tpl-bold .tiles { gap: 10px; }
html.tpl-bold .tile { position: relative; display: block; flex: 0 0 156px; }
html.tpl-bold .tile-img { width: 156px; height: 96px; box-shadow: none; }
html.tpl-bold .tile-name { position: absolute; inset: auto 0 0; padding: 20px 10px 8px; border-radius: 0 0 var(--r-sm) var(--r-sm); background: linear-gradient(transparent, rgba(10, 15, 44, .88)); color: #fff; font-size: 14px; font-weight: 800; text-align: start; -webkit-line-clamp: 1; }
html.tpl-bold .tile.on .tile-img, html.tpl-bold .tile:hover .tile-img { box-shadow: 0 0 0 3px var(--primary); }
html.tpl-bold .tile.on .tile-name { color: #fff; }
@media (min-width: 760px) {
    html.tpl-bold .tile { flex-basis: 200px; }
    html.tpl-bold .tile-img { width: 200px; height: 120px; }
}
html.tpl-bold .card { border: 0; box-shadow: 0 1px 2px rgba(13, 16, 32, .06); }
html.tpl-bold .card-img { background: color-mix(in srgb, var(--text) 7%, var(--surface)); }
html.tpl-bold .card-name { font-weight: 700; font-size: 14.5px; }
html.tpl-bold .price b { color: var(--text); font-size: 17px; font-weight: 800; }
html.tpl-bold .btn { font-weight: 800; }
html.tpl-bold .card-action .btn-primary { background: var(--text); color: var(--bg); border-radius: 8px; }
html.tpl-bold .badge { border-radius: 3px; box-shadow: none; transform: skewX(-10deg); font-weight: 800; }
html.tpl-bold .badge.hot { background: #D4FF3A; color: #0D1020; }
html.tpl-bold .rail { grid-auto-columns: minmax(170px, 62%); }
@media (min-width: 760px) { html.tpl-bold .rail { grid-auto-columns: minmax(230px, 30%); } }
html.tpl-bold .section-head h1, html.tpl-bold .section-head h2 { font-size: 24px; font-weight: 800; }
html.tpl-bold .section-head h2::before { content: ""; display: inline-block; width: 7px; height: .85em; margin-inline-end: 9px; background: var(--primary); transform: skewX(-12deg); vertical-align: -1px; }
html.tpl-bold .gp { border-radius: var(--r-sm); background: linear-gradient(110deg, var(--primary) 58%, color-mix(in srgb, var(--primary) 30%, #000) 58%); }

/* =====================================================
   5) طبيعي هادئ — واجهة بحافة مقوّسة، أقسام كالأقواس، والمنتجات قائمة أفقية
===================================================== */
html.tpl-calm .hero:not(.has-image) { border-radius: 0 0 38px 38px; }
html.tpl-calm .hero:not(.has-image)::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; inset-inline-start: -90px; bottom: -150px; background: rgba(255, 255, 255, .07); z-index: -1; }
html.tpl-calm .hero-inner { justify-items: center; text-align: center; padding: 26px 0 34px; }
html.tpl-calm .hero h1::before { content: ""; display: block; width: 38px; height: 38px; margin: 0 auto 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23DCE7D3' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14 0 9-5 14-13 14'/%3E%3Cpath d='M5 19c3-4 6-7 10-9'/%3E%3C/svg%3E") center / contain no-repeat; }
html.tpl-calm .hero-features { justify-content: center; }
html.tpl-calm .hero-features li { background: rgba(255, 255, 255, .1); }
html.tpl-calm .tile-img { border-radius: 999px 999px var(--r-sm) var(--r-sm); box-shadow: none; }
html.tpl-calm .tile.on .tile-img, html.tpl-calm .tile:hover .tile-img { box-shadow: 0 0 0 2px var(--primary); }
html.tpl-calm .card { border-color: color-mix(in srgb, var(--primary) 14%, var(--line)); }
html.tpl-calm .btn, html.tpl-calm .stepper { border-radius: 999px; }
html.tpl-calm .badge { box-shadow: none; }
html.tpl-calm .badge.hot { background: #E9E3C8; color: #2E3F31; }
/* كل المنتجات: بطاقات أفقية (صورة صغيرة + التفاصيل) */
html.tpl-calm .grid, html.tpl-calm .grid.one { grid-template-columns: minmax(0, 1fr); gap: 10px; }
@media (min-width: 640px) { html.tpl-calm .grid, html.tpl-calm .grid.one { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
@media (min-width: 980px) { html.tpl-calm .grid, html.tpl-calm .grid.one { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
html.tpl-calm .grid .card { display: grid; grid-template-columns: 108px minmax(0, 1fr); grid-template-rows: 1fr auto; column-gap: 12px; padding: 8px; }
html.tpl-calm .grid .card-img { grid-column: 1; grid-row: 1 / 3; align-self: start; border-radius: calc(var(--r) - 8px); overflow: hidden; }
html.tpl-calm .grid .card-body { grid-column: 2; grid-row: 1; padding: 4px 0 0; }
html.tpl-calm .grid .card-name { font-size: 15px; }
html.tpl-calm .grid .card-action { grid-column: 2; grid-row: 2; padding: 6px 0 0; align-self: end; }
html.tpl-calm .grid .card-action .btn { min-height: 40px; }
html.tpl-calm .grid .stepper { height: 40px; }
html.tpl-calm .grid .badge { top: 5px; inset-inline-start: 5px; padding: 1px 7px; font-size: 10.5px; }
html.tpl-calm .section-head h1::before, html.tpl-calm .section-head h2::before { content: ""; display: inline-block; width: 20px; height: 20px; margin-inline-end: 7px; vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F6B52' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 19c0-8 5-13 14-14 0 9-5 14-13 14'/%3E%3Cpath d='M5 19c3-4 6-7 10-9'/%3E%3C/svg%3E") center / contain no-repeat; }

/* =====================================================
   6) مرح ملوّن — حدود سوداء وظلال مزاحة، ملصقات، أقسام ككبسولات ملوّنة
===================================================== */
html.tpl-fun { --ink: var(--text); --pop: #FFD23F; }
html.tpl-fun .top { box-shadow: inset 0 -3px 0 #22163A; }
html.tpl-fun .hero:not(.has-image) { padding-bottom: 14px; }
html.tpl-fun .hero:not(.has-image)::after { content: ""; position: absolute; inset: auto 0 0; height: 14px; z-index: 1; background: linear-gradient(-45deg, var(--bg) 9px, transparent 0) 0 100% / 18px 18px repeat-x, linear-gradient(45deg, var(--bg) 9px, transparent 0) 0 100% / 18px 18px repeat-x; }
html.tpl-fun .hero-inner { justify-items: center; text-align: center; padding: 24px 0 20px; }
html.tpl-fun .hero h1 { color: var(--pop); font-size: clamp(30px, 10vw, 60px); text-shadow: 3px 3px 0 rgba(0, 0, 0, .35); transform: rotate(-2deg); }
html.tpl-fun .hero-features { justify-content: center; }
html.tpl-fun .hero-features li { background: #fff; color: #22163A; box-shadow: 2px 2px 0 rgba(0, 0, 0, .35); }
html.tpl-fun .hero-features svg { stroke: #6C3BE0; }
html.tpl-fun .hero-shots { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
html.tpl-fun .hs { width: 27%; max-width: 130px; aspect-ratio: 1; border: 3px solid #fff; border-radius: 18px; box-shadow: 4px 4px 0 var(--pop); }
html.tpl-fun .hs1 { transform: rotate(-6deg); }
html.tpl-fun .hs2 { transform: translateY(-8px) rotate(3deg); }
html.tpl-fun .hs3 { transform: rotate(7deg); }
html.tpl-fun .tiles { gap: 10px; padding-top: 16px; padding-bottom: 10px; }
html.tpl-fun .tile { flex: 0 0 auto; display: flex; align-items: center; gap: 8px; padding-block: 5px; padding-inline: 5px 16px; border: 2px solid #22163A; border-radius: 999px; background: #FFD23F; box-shadow: 3px 3px 0 #22163A; }
html.tpl-fun .tile:nth-child(4n+2) { background: #8BE3FF; }
html.tpl-fun .tile:nth-child(4n+3) { background: #FF9EC7; }
html.tpl-fun .tile:nth-child(4n+4) { background: #B8F28B; }
html.tpl-fun .tile-img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid #22163A; box-shadow: none; }
html.tpl-fun .tile-name { display: block; color: #22163A; font-size: 14px; font-weight: 700; white-space: nowrap; }
html.tpl-fun .tile.on, html.tpl-fun .tile:hover { box-shadow: 4px 4px 0 #22163A; transform: translate(-1px, -1px); }
html.tpl-fun .tile.on .tile-img, html.tpl-fun .tile:hover .tile-img { box-shadow: none; border-color: #22163A; }
html.tpl-fun .tile.on .tile-name { color: #22163A; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 760px) {
    html.tpl-fun .tile { flex-basis: auto; }
    html.tpl-fun .tile-img { width: 44px; height: 44px; }
}
html.tpl-fun .grid { gap: 16px 12px; }
html.tpl-fun .card { border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
html.tpl-fun .card-img { border-bottom: 2px solid var(--ink); }
html.tpl-fun .btn-primary, html.tpl-fun .btn-ghost { border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
html.tpl-fun .card-action .btn { box-shadow: none; }
html.tpl-fun .btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
html.tpl-fun .badge { box-shadow: none; border: 1.5px solid var(--ink); }
html.tpl-fun .badge.hot { background: var(--pop); color: #22163A; }
html.tpl-fun .section-head h1, html.tpl-fun .section-head h2 { font-size: 22px; padding: 0 4px; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--pop) 80%, transparent) 55%, color-mix(in srgb, var(--pop) 80%, transparent) 92%, transparent 92%); }
html.tpl-fun .gp { background: var(--pop); color: #22163A; box-shadow: 4px 4px 0 #22163A; border: 2px solid #22163A; }
html.tpl-fun .gp-art { background: #fff; box-shadow: inset 0 0 0 2px #22163A; }
html.tpl-fun .gp-art svg { stroke: #22163A; }
html.tpl-fun .gp-go { background: #22163A; color: #fff; }

/* =====================================================
   v11 — الهدية لولد (أزرق وأبيض) أو لبنت (وردي وأبيض)
===================================================== */
.gfor { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.gfor-opt { position: relative; cursor: pointer; display: block; }
.gfor-opt input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gfor-opt > span { display: grid; justify-items: center; gap: 4px; padding: 12px 8px 10px; border-radius: var(--r); border: 2px solid var(--line); background: var(--surface); text-align: center; transition: border-color .15s, background .15s, transform .1s; }
.gfor-opt i { font-style: normal; font-size: 30px; line-height: 1.1; }
.gfor-opt b { font-size: 16px; }
.gfor-opt em { display: flex; gap: 4px; }
.gfor-opt s { width: 18px; height: 8px; border-radius: 99px; background: var(--gf); }
.gfor-opt s + s { background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gf) 40%, var(--line)); }
.gfor-opt input:checked + span { border-color: var(--gf); background: color-mix(in srgb, var(--gf) 13%, var(--surface)); transform: scale(1.02); box-shadow: 0 6px 16px color-mix(in srgb, var(--gf) 22%, transparent); }
.gfor-opt input:checked + span b { color: color-mix(in srgb, var(--gf) 70%, var(--text)); }
.gfor-opt input:focus-visible + span { outline: 2.5px solid var(--gf); outline-offset: 2px; }
.gfor-field.invalid .gfor-opt > span { border-color: var(--danger); }
/* لون لوحة الهدية يتبع الاختيار */
.gift-panel:has(input[name="gift_for"][value="boy"]:checked) { border-color: #2F7DE1; background: linear-gradient(180deg, color-mix(in srgb, #2F7DE1 7%, var(--surface)), var(--surface) 140px); }
.gift-panel:has(input[name="gift_for"][value="girl"]:checked) { border-color: #F27DAE; background: linear-gradient(180deg, color-mix(in srgb, #F27DAE 9%, var(--surface)), var(--surface) 140px); }
.gift-done[style*="--gd"] { border-color: var(--gd); }
.gift-done[style*="--gd"] .gd-card { background: linear-gradient(135deg, color-mix(in srgb, var(--gd) 18%, var(--surface)), var(--surface)); }

/* =====================================================
   v12 — العرض الخاص من رابط واتساب (اسم العميل + عدّاد تنازلي)
===================================================== */
.offer-banner { position: relative; overflow: hidden; display: grid; gap: 10px; margin: 12px 0 14px; padding: 14px; border-radius: var(--r); color: #fff; background: radial-gradient(circle, rgba(255, 255, 255, .12) 1.5px, transparent 2px) 0 0 / 18px 18px, linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); box-shadow: var(--shadow); animation: offerIn .5s ease both; }
.offer-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .28) 50%, transparent 65%); transform: translateX(-120%); animation: giftShine 4.5s ease-in-out 1s infinite; pointer-events: none; }
.ob-head { display: flex; align-items: center; gap: 12px; }
.ob-ico { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); font-size: 26px; line-height: 1; animation: giftWiggle 3.4s ease-in-out infinite; }
.ob-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.ob-txt > b { font-family: var(--font-head); font-size: 18px; line-height: 1.35; }
.ob-txt > span { font-size: 14px; font-weight: 600; opacity: .95; }
.ob-pct { flex-shrink: 0; padding: 6px 10px; border-radius: 12px; background: #F2C964; color: #3B2A0A; font-size: 17px; font-weight: 800; transform: rotate(-4deg); box-shadow: 0 4px 10px rgba(0, 0, 0, .2); }
.ob-left { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .22); }
.ob-left small { font-size: 13px; font-weight: 600; opacity: .9; }
.ob-left b { font-size: 15px; }
.clock { display: inline-flex; align-items: center; gap: 3px; font-variant-numeric: tabular-nums; }
.clock i { min-width: 32px; padding: 3px 4px; border-radius: 7px; background: #fff; color: var(--primary); font-style: normal; font-weight: 800; font-size: 16px; text-align: center; }
.clock em { font-style: normal; font-weight: 800; opacity: .8; }
@keyframes offerIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.bar-offer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 6px; background: color-mix(in srgb, #F2C964 34%, var(--surface)); color: var(--text); border-bottom: 1px solid var(--line); }
.bar-offer a { color: var(--accent); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.bo-left { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.bo-left b { color: var(--danger); }
.bar-offer .clock i { min-width: 24px; padding: 1px 3px; border-radius: 5px; background: var(--danger); color: #fff; font-size: 12.5px; }
.bar-offer .clock em { color: var(--danger); }

/* =====================================================
   v13 — المفضلة، «أخبرني عند التوفر»، كود الخصم، فلترة الرئيسية و«عرض المزيد»
===================================================== */
/* القلب */
.fav-btn { position: absolute; top: 8px; inset-inline-end: 8px; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .14); backdrop-filter: blur(6px); }
.fav-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linejoin: round; transition: transform .2s; }
.fav-btn.on { color: #E0245E; }
.fav-btn.on svg { fill: currentColor; }
.fav-btn.pop svg { animation: favPop .45s ease; }
@keyframes favPop { 30% { transform: scale(1.35); } 60% { transform: scale(.9); } }
.pdp-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pdp-title h1 { flex: 1; min-width: 0; }
.pdp-title .fav-btn { position: static; flex-shrink: 0; width: 44px; height: 44px; box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.pdp-title .fav-btn svg { width: 22px; height: 22px; }
.mi.fav svg { fill: none; }
/* المفضلة */
.fav-page .section-head h1 { display: inline-flex; align-items: center; gap: 8px; }
.fav-page .section-head h1 svg { width: 24px; height: 24px; fill: #E0245E; stroke: none; }
.fav-empty svg { width: 54px; height: 54px; fill: color-mix(in srgb, #E0245E 18%, transparent); stroke: #E0245E; stroke-width: 1.4; }
/* فلترة الأقسام في الرئيسية */
.cat-chips { display: flex; gap: 8px; overflow-x: auto; margin: -2px calc(-1 * var(--gutter)) 14px; padding: 2px var(--gutter) 4px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.chip { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; white-space: nowrap; }
.chip small { color: var(--muted); font-size: 12px; font-weight: 600; }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.chip.on small { color: inherit; opacity: .8; }
.more-wrap { display: grid; justify-items: center; margin-top: 18px; }
.more-btn { min-width: 210px; }
.more-btn small { color: var(--muted); font-weight: 600; }
/* أخبرني عند التوفر */
.notify-link, [data-notify] { gap: 6px; }
.notify-link svg, [data-notify] svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.card-action .notify-link { font-size: 13px; padding-inline: 6px; }
.buy.out { display: grid; gap: 10px; }
.buy.out .out-note { margin: 0; }
[data-notify].done { background: var(--surface); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.sheet-head h2 { display: inline-flex; align-items: center; gap: 8px; }
.sheet-head h2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.notify-form { display: grid; gap: 12px; padding: 4px 0 6px; }
.notify-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); background: var(--soft); }
.notify-item img { width: 56px; height: 70px; object-fit: cover; border-radius: 8px; }
.notify-item b { display: block; }
.notify-item small { color: var(--muted); }
.notify-done { display: grid; justify-items: center; gap: 8px; padding: 18px 4px; text-align: center; }
.notify-done > span { font-size: 44px; }
.notify-done small { color: var(--muted); }
/* كود الخصم */
#couponBox:empty { display: none; }
#couponBox { margin-bottom: 10px; }
.coupon-box { border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: var(--r-sm); padding: 10px 12px; background: var(--soft); }
.coupon-box summary { cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; }
.coupon-box summary::-webkit-details-marker { display: none; }
.coupon-row { display: flex; gap: 8px; margin-top: 10px; }
.coupon-row .input { flex: 1; min-width: 0; text-transform: uppercase; letter-spacing: .04em; }
.coupon-on { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 35%, var(--line)); }
.cp-ico { font-size: 22px; }
.cp-txt { flex: 1; min-width: 0; display: grid; }
.cp-txt b { font-size: 15px; letter-spacing: .04em; }
.cp-txt small { color: var(--muted); font-size: 12.5px; }
.bar-coupon { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--text); border-bottom: 1px solid var(--line); }
/* إشعار برابط */
.toast.has-link { pointer-events: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.toast a { color: inherit; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
/* القالب البسيط: زر «+» أسفل الصورة لأن القلب في الأعلى */
html.tpl-minimal .card { container-type: inline-size; }
html.tpl-minimal .card-action { top: calc(125cqw - 48px); }

/* =====================================================
   v15 — رأس صفحة المنتج: شريط المزايا، الوصف، والسعر قبل وبعد الخصم
===================================================== */
:root { --deal: #D9480F; --cart-red: #D92D20; }
html[data-mode="dark"] { --deal: #FF9A57; }
@media (prefers-color-scheme: dark) { html[data-mode="auto"] { --deal: #FF9A57; } }

.perks { display: flex; align-items: center; gap: 10px; margin: -14px calc(-1 * var(--gutter)) 0; padding: 11px var(--gutter); background: color-mix(in srgb, #F2A65A 16%, var(--surface)); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.pdp:has(.thumbs) .perks { margin-top: 0; }
.pdp-info { grid-template-columns: minmax(0, 1fr); }
.perks { min-width: 0; overflow: hidden; }
.perk { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.perk > span { text-wrap: balance; }
.perk svg { width: 17px; height: 17px; flex-shrink: 0; fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.perk.hot { color: var(--ok); }
.perk-sep { width: 1px; align-self: stretch; flex-shrink: 0; background: color-mix(in srgb, var(--text) 18%, transparent); }
.perks-go { margin-inline-start: auto; display: grid; place-items: center; color: var(--muted); }
.perks-go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transform: rotate(90deg); }
[dir="ltr"] .perks-go svg { transform: rotate(-90deg); }
@media (min-width: 860px) { .perks, .pdp:has(.thumbs) .perks { margin: 0; padding: 11px 14px; border-radius: var(--r-sm); } }

.pdp-desc { margin: -4px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; white-space: pre-line; }

.pdp-price { display: grid; gap: 8px; }
.pp-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.pp-now { font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--accent); }
.pp-was { font-size: 21px; font-weight: 700; color: color-mix(in srgb, var(--text) 60%, transparent); text-decoration-thickness: 2px; }
.pdp-price .base-price { margin-top: -6px; }
.pp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pchip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1.5px solid currentColor; border-radius: 8px; font-size: 14px; font-weight: 800; line-height: 1.35; }
.pchip.off, .pchip.hot { color: var(--deal); background: color-mix(in srgb, var(--deal) 7%, transparent); }
.pchip.save { color: var(--ok); border-color: transparent; background: color-mix(in srgb, var(--ok) 11%, transparent); }

/* =====================================================
   v16 — زر السلة العائم في كل المتجر
===================================================== */
.cart-float { position: fixed; inset-inline-end: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 36; display: grid; justify-items: center; text-decoration: none; -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; cursor: grab; }
.cart-float[hidden] { display: none; }
/* بعد ما يسحبه الزبون: المكان من left/top المحفوظة */
.cart-float.moved { inset-inline-end: auto; bottom: auto; z-index: 55; }
.cart-float.dragging { cursor: grabbing; }
.cart-float * { pointer-events: none; }
.cf-ring { display: grid; place-items: center; width: 56px; height: 56px; padding: 3.5px; border-radius: 50%; background: conic-gradient(var(--ok) var(--p, 0%), color-mix(in srgb, var(--ok) 22%, var(--surface)) 0); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); transition: transform .18s ease, box-shadow .18s ease; }
.cart-float.dragging .cf-ring { transform: scale(1.08); box-shadow: 0 12px 28px rgba(0, 0, 0, .3); }
.cf-in { display: grid; place-items: center; align-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); color: var(--ok); }
.cf-in svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cf-in small { margin-top: 1px; font-size: 9.5px; font-weight: 800; line-height: 1.1; }
.cf-count { position: absolute; top: -4px; inset-inline-end: -3px; display: grid; place-items: center; min-width: 21px; height: 21px; padding: 0 5px; border: 2px solid var(--surface); border-radius: 99px; background: var(--cart-red); color: #fff; font-size: 11.5px; font-weight: 800; line-height: 1; }
.cf-pill { position: relative; margin-top: -9px; padding: 2px 8px; border-radius: 99px; background: var(--cart-red); color: #fff; font-size: 10px; font-weight: 800; line-height: 1.5; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .18); }
.cf-pill.ok { background: var(--ok); }
html[data-mode="dark"] .cf-pill.ok { color: #0D2418; }
.cart-float.bump .cf-ring { animation: cf-bump .5s ease; }
@keyframes cf-bump { 0% { transform: scale(1); } 30% { transform: scale(1.18); } 60% { transform: scale(.94); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .cart-float.bump .cf-ring { animation: none; } }

/* =====================================================
   v17 — المخزون («باقي N فقط»)، نقاط الولاء، والبحث الذكي
===================================================== */
.card-low { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 800; color: var(--deal); }
.pchip.pts { color: #9A6B00; background: color-mix(in srgb, #F5B301 14%, transparent); border-color: transparent; }
html[data-mode="dark"] .pchip.pts { color: #F7C948; }
@media (prefers-color-scheme: dark) { html[data-mode="auto"] .pchip.pts { color: #F7C948; } }
.row.pts { color: #9A6B00; font-weight: 700; }
html[data-mode="dark"] .row.pts { color: #F7C948; }
.loyal-note { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, #F5B301 12%, var(--surface)); border: 1px solid color-mix(in srgb, #F5B301 35%, var(--line)); }
.loyal-note > span { font-size: 24px; line-height: 1; }
.loyal-note b { display: block; font-size: 15px; }
.loyal-note small { color: var(--muted); font-size: 13px; line-height: 1.6; }
.search-loose { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.search-chips { margin-bottom: 14px; }
.search-chips .chip { text-decoration: none; }

/* الواجهة المختصرة تبقى صغيرة في كل القوالب */
html[class] .hero.hero-compact:not(.has-image) .hero-inner { min-height: 0; margin-top: 0; padding-top: 14px; padding-bottom: 13px; gap: 7px; }
html[class] .hero.hero-compact:not(.has-image) h1 { font-size: clamp(20px, 5.6vw, 28px); line-height: 1.3; max-width: none; }
html.tpl-minimal .hero-mini, html.tpl-boutique .hero-mini, html.tpl-luxe .hero-mini { justify-content: center; }
html.tpl-minimal .hero-mini li { color: var(--muted); opacity: 1; }
html.tpl-minimal .hero-mini svg { stroke: var(--muted); }
html.tpl-boutique .hero.hero-compact:not(.has-image) .hero-inner { margin-top: 12px; padding-inline: 16px; }
html.tpl-luxe .hero.hero-compact h1::after { margin-top: 8px; }
@media (min-width: 760px) {
    html[class] .hero.hero-compact:not(.has-image) .hero-inner { padding-top: 20px; padding-bottom: 18px; gap: 9px; }
}

/* =====================================================
   v18 — نقاطي: رصيد نقاط الولاء وكم باقي على الخصم
===================================================== */
.points-page { max-width: 560px; padding-top: 18px; padding-bottom: 28px; display: grid; gap: 14px; }
.pts-head { display: flex; align-items: center; gap: 10px; }
.pts-head h1 { font-size: 24px; margin: 0; }
.pts-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: color-mix(in srgb, #F5B301 16%, var(--surface)); }
.pts-ico svg, .mi.star svg { fill: #F5B301; stroke: #C98F00; stroke-width: 1.2; stroke-linejoin: round; }
.pts-ico svg { width: 24px; height: 24px; }
.points-page.empty .pts-head, .page .pts-head { justify-content: center; }
.pts-intro { margin: 0; color: var(--muted); line-height: 1.6; }
.pts-form { display: grid; gap: 12px; }
.pts-err:empty { display: none; }
.pts-card { display: grid; gap: 10px; text-align: center; padding: 22px 18px; }
.pts-loading { color: var(--muted); padding: 34px 18px; }
.pts-hi { margin: 0; color: var(--muted); font-weight: 600; }
.pts-big { display: grid; gap: 4px; }
.pts-big b { font-size: 58px; line-height: 1; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.pts-big span { color: var(--muted); font-size: 14px; }
.pts-bar { height: 12px; margin-top: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--text) 8%, var(--surface)); }
.pts-bar i { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: #F5B301; }
.pts-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.pts-goal { margin: 4px 0 0; font-size: 16.5px; font-weight: 700; line-height: 1.5; }
.pts-goal.ready { color: var(--ok); }
.pts-pending { margin: 0; font-size: 13.5px; color: var(--muted); }
.pts-coupon { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; padding: 12px 14px; border: 1.5px dashed var(--accent); border-radius: var(--r); text-align: start; background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.pts-coupon > div { display: grid; gap: 2px; min-width: 0; }
.pts-coupon b { font-size: 20px; letter-spacing: 1px; }
.pts-coupon small { color: var(--muted); font-size: 12.5px; }
.pts-note { margin: 0; font-size: 12.5px; color: var(--muted); }
.pts-how h2 { font-size: 16px; margin: 0 0 8px; }
.pts-how ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; font-size: 14px; line-height: 1.6; }
.pts-actions { display: grid; justify-items: center; gap: 10px; }
.pts-actions .btn { width: 100%; }
.loyal-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; font-size: 13.5px; color: var(--accent); text-decoration: none; }
.loyal-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- v19 الإثبات الاجتماعي (أرقام حقيقية فقط) ---------- */
.card-proof { display: flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ok); line-height: 1.3; }
.card-proof svg { width: 13px; height: 13px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
html.tpl-boutique .card-proof, html.tpl-luxe .card-proof { justify-content: center; }

.pdp-proof { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.pdp-proof li { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: color-mix(in srgb, var(--text) 82%, var(--bg)); }
.pdp-proof svg { width: 16px; height: 16px; flex-shrink: 0; fill: none; stroke: var(--ok); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pdp-proof svg.heart { stroke: var(--accent); }

.hero-proof { display: inline-flex; align-items: center; gap: 5px; margin: 0; font-size: 12.5px; font-weight: 600; opacity: .95; }
.hero-proof svg { width: 15px; height: 15px; flex-shrink: 0; fill: none; stroke: #F3D9B1; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
html.tpl-minimal .hero-proof { color: var(--muted); opacity: 1; }
html.tpl-minimal .hero-proof svg { stroke: var(--accent); }
@media (min-width: 760px) { .hero-proof { font-size: 14px; } }

.rv-verified { display: inline-flex; align-items: center; gap: 3px; margin-inline-start: 4px; font-size: 11.5px; font-weight: 700; color: var(--ok); white-space: nowrap; }
.rv-verified svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.proof-pop {
    position: fixed;
    inset-inline-start: 12px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 37;
    display: flex;
    align-items: center;
    gap: 4px;
    width: min(340px, calc(100vw - 96px));
    padding: 8px 6px 8px 8px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 14px 14px 22px 14px;
    box-shadow: 0 12px 30px rgba(20, 8, 8, .18);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .25s ease, transform .25s ease;
}
.proof-pop.show { opacity: 1; transform: none; }
body.has-buybar .proof-pop { bottom: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body.has-buybar .proof-pop { bottom: calc(16px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .proof-pop { transition: none; transform: none; } }
.proof-pop .pp-link { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; color: inherit; text-decoration: none; }
.proof-pop img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--img-bg, var(--line)); }
.proof-pop .pp-txt { display: grid; gap: 1px; min-width: 0; line-height: 1.35; }
.proof-pop .pp-txt b { font-size: 13px; font-weight: 700; }
.proof-pop .pp-txt > span { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proof-pop small { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--muted); }
.proof-pop small svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.proof-pop .pp-x { align-self: flex-start; width: 40px; height: 40px; flex-shrink: 0; display: grid; place-items: center; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; border-radius: 8px; }
.proof-pop .pp-x:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }

/* =====================================================
   v19 — صفحة السلة: أقسام أصغر وأبسط
===================================================== */
.cart-info { display: grid; gap: 8px; padding: 10px 12px; }
.cart-info .progress { gap: 5px; font-size: 12.5px; }
.cart-info .meter { height: 4px; }
.cart-info .vol-hint, .panel.cart-info .progress + .vol-hint { margin: 0; padding: 0; background: none; font-size: 12.5px; gap: 6px; align-items: center; }
.cart-info .vol-hint svg { width: 15px; height: 15px; flex-shrink: 0; }
.cart-info .save-line { font-size: 12.5px; }
.cart-info .save-line + .hint, .cart-info .save-line + .save-line, .cart-info .hint + .hint { margin-top: 0; }
.cart-info .hint { padding: 6px 6px 6px 10px; font-size: 12.5px; }
.cart-info .hint .btn-sm { min-height: 30px; padding: 3px 12px; font-size: 12.5px; }

.cart-sug { padding: 12px; }
.cart-sug h2 { font-size: 14px; margin-bottom: 10px; line-height: 1.5; }
.csug-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.csug { position: relative; display: grid; align-content: start; gap: 3px; min-width: 0; }
.csug-img { display: block; }
.csug-img img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: var(--img-bg); }
.csug-add { position: absolute; top: 5px; inset-inline-end: 5px; display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 50%; background: var(--btn-bg, var(--primary)); color: var(--btn-ink, var(--on-primary)); font-size: 18px; font-weight: 700; line-height: 1; box-shadow: 0 2px 8px rgba(0, 0, 0, .22); cursor: pointer; touch-action: manipulation; }
.csug-add:active { transform: scale(.92); }
.csug-name { color: var(--text); font-size: 11.5px; font-weight: 600; line-height: 1.35; text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.csug-price { color: var(--accent); font-size: 12px; }

.cart-sum { padding: 12px 14px; }
.cart-sum h2 { font-size: 15px; margin-bottom: 8px; }
.cart-sum .rows { gap: 6px; }
.cart-sum .row { font-size: 13.5px; }
.cart-sum .row.total { font-size: 16px; padding-top: 8px; margin-top: 2px; }
.cart-sum .ship-list { font-size: 12.5px; }
.cart-sum .cart-actions { gap: 8px; margin-top: 12px; }
.cart-sum .btn { min-height: 44px; padding-block: 8px; font-size: 14.5px; }
.cart-sum .gift-cta { gap: 10px; padding: 7px 10px; }
.cart-sum .gcta-ico { width: 32px; height: 32px; border-radius: 10px; }
.cart-sum .gcta-ico svg { width: 18px; height: 18px; }
.cart-sum .gcta-txt b { font-size: 14px; }
.cart-sum .link-btn { font-size: 13px; padding-block: 2px; }
.cart-sum .trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cart-sum .trust li { gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--soft); font-size: 11.5px; line-height: 1.45; }
.cart-sum .trust svg { width: 13px; height: 13px; stroke-width: 2.6; }

/* =====================================================
   v20 — تبسيط المتجر كامل: خطوط وأزرار ومسافات أصغر في كل الصفحات
   (حقول الكتابة تبقى 16px حتى ما يكبّر الآيفون الصفحة عند الكتابة)
===================================================== */
/* العناوين واللوحات */
.page-title { font-size: 20px; margin: 14px 0 10px; }
.page-title small { font-size: 12.5px; }
.page { padding: 14px 0 22px; }
.page h1 { font-size: 20px; }
.section { padding: 14px 0; }
.section-head { margin-bottom: 10px; }
.section-head h1, .section-head h2 { font-size: 17px; }
.section-head h1 small, .section-head h2 small { font-size: 12px; }
.section-head .more { font-size: 13px; }
.panel { padding: 12px; }
.panel + .panel { margin-top: 10px; }
.panel h2 { font-size: 15px; margin-bottom: 8px; }
.layout-2 { gap: 10px; padding-bottom: 18px; }
.form { gap: 10px; }

/* الأزرار */
.btn { min-height: 44px; padding: 8px 16px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; }
.btn-sm { min-height: 34px; padding: 4px 12px; font-size: 13px; }
.buy-row .btn { min-height: 46px; font-size: 15px; }
.buy .btn-gift { min-height: 44px; }
.buybar .btn { min-height: 44px; }
.bb-info b { font-size: 16px; }
.bb-info small { font-size: 12px; }
.link-btn { font-size: 13.5px; }
.chip { min-height: 34px; padding: 0 12px; font-size: 13px; }
.chip small { font-size: 11.5px; }
.stepper { height: 38px; grid-template-columns: 36px 1fr 36px; }
.stepper button { font-size: 19px; }
.stepper output { font-size: 14.5px; }

/* الحقول */
.field { gap: 4px; }
.field > span:first-child { font-size: 13px; }
.field small { font-size: 11.5px; line-height: 1.5; }
.input { min-height: 44px; padding: 8px 12px; }
textarea.input { min-height: 62px; line-height: 1.5; }
.phone-wrap .dial { padding: 0 10px; font-size: 14px; }
.phone-wrap select.dial-pick { min-width: 94px; font-size: 14px; }
.check-line { gap: 8px; font-size: 13.5px; padding: 2px 0; }
.check-line input { width: 18px; height: 18px; }
.mk-line { font-size: 12.5px; }
.err { font-size: 12px; }

/* خيارات التوصيل والدفع */
.choice { gap: 6px; }
.option { grid-template-columns: 18px 1fr auto; gap: 8px; padding: 9px 11px; font-size: 14px; line-height: 1.5; }
.option input { width: 16px; height: 16px; margin-top: 3px; }
.option small { font-size: 11.5px; line-height: 1.45; }
.option .opt-price { font-size: 13.5px; }
.bank-row { padding: 6px 10px; }
.bank-row strong { font-size: 14px; }
.copy { padding: 4px 10px; font-size: 12px; }

/* إتمام الطلب */
.sum-mobile { margin-bottom: 10px; }
.sum-mobile summary { padding: 10px 12px; font-size: 14px; }
.sum-mobile > div { padding: 0 12px 12px; }
.saved-note { padding: 6px 10px; font-size: 12px; }
.saved-note .link-btn { font-size: 12px; }
.who-pick { padding: 8px; }
.who-pick h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.who-pick > p.small { margin: 6px 4px 0 !important; font-size: 11.5px; }
.seg2 { gap: 4px; padding: 3px; }
.seg2 span { min-height: 36px; gap: 6px; font-size: 14px; }
.seg2 svg { width: 17px; height: 17px; }
.gift-panel h2 svg { width: 18px; height: 18px; }
.gfor { gap: 8px; margin-top: 2px; }
.gfor-opt > span { grid-auto-flow: column; justify-content: center; align-items: center; gap: 6px; padding: 6px 8px; border-width: 1.5px; border-radius: var(--r-sm); }
.gfor-opt i { font-size: 20px; }
.gfor-opt b { font-size: 14px; }
.gfor-opt em { display: none; }
.gfor-opt input:checked + span { transform: none; box-shadow: none; }
.occ-field > span { font-size: 13px; }
.occ-chips { gap: 5px; margin-top: 4px; }
.occ span { padding: 4px 10px; font-size: 12.5px; border-width: 1px; }
.occ-custom > span { font-size: 12px; }
.msg-sugs { gap: 5px; margin-top: -2px; }
.msg-sugs .sug { padding: 4px 9px; font-size: 12px; border-radius: 10px; }
.gift-card-note { margin: 0; padding: 7px 10px; font-size: 12px; line-height: 1.55; }
.gift-cta { gap: 10px; padding: 8px 11px; }
.gcta-ico { width: 34px; height: 34px; border-radius: 10px; }
.gcta-ico svg { width: 19px; height: 19px; }
.gcta-txt b { font-size: 14px; }
.gcta-txt small { font-size: 11.5px; }

/* ملخصات الأسعار (السلة وإتمام الطلب) */
.rows { gap: 6px; }
.row { font-size: 13.5px; }
.row.total { font-size: 16px; padding-top: 8px; margin-top: 2px; }
.ship-list { font-size: 12.5px; }
.cart-actions { gap: 8px; margin-top: 12px; }

/* مزايا المتجر: شارات صغيرة بدل قائمة طويلة */
.trust { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.trust li { gap: 5px; padding: 4px 9px; border-radius: 99px; background: var(--soft); font-size: 11.5px; line-height: 1.45; }
.trust svg { width: 13px; height: 13px; stroke-width: 2.6; }

/* بطاقات المنتجات */
.card-body { padding: 8px 9px; gap: 2px; }
.card-name { font-size: 13.5px; }
.card-action { padding: 0 9px 9px; }
.card-action .btn { min-height: 36px; font-size: 13px; }
.card-action .stepper { height: 36px; }
.badge { font-size: 11px; }

/* الأقسام والبانر في الرئيسية */
.tiles { gap: 10px; padding-top: 12px; }
.tile { flex-basis: 76px; gap: 4px; }
.tile-img { width: 76px; height: 96px; }
.tile-name { font-size: 12px; }
.gift-promo { margin-top: 10px; }
.gp { gap: 10px; padding: 10px 12px; }
.gp-art { width: 42px; height: 42px; border-radius: 12px; }
.gp-art svg { width: 24px; height: 24px; }
.gp-text b { font-size: 15px; }
.gp-text small { font-size: 12px; line-height: 1.5; }
.gp-go { padding: 6px 10px 6px 11px; font-size: 13px; }
.more-btn { min-width: 180px; }

/* صفحة المنتج */
.pdp { gap: 10px; }
.pdp-info { gap: 10px; }
.pdp h1 { font-size: clamp(19px, 5.2vw, 26px); }
.pdp .price b { font-size: 21px; }
.pdp .price s { font-size: 14px; }
.pdp-color { font-size: 13.5px; }
.buy { gap: 8px; }
.buy-alt { gap: 8px; }
.info-box { gap: 8px; padding: 10px 12px; font-size: 13px; }
.pdp-details h2 { font-size: 15px; padding-top: 8px; }
.reviews-block { padding: 16px 0 4px; gap: 10px; }

/* التذييل */
.footer { margin-top: 16px; padding: 20px 0 calc(84px + env(safe-area-inset-bottom)); font-size: 13px; }
.foot-about { font-size: 12.5px; line-height: 1.6; }
.foot-points { display: flex; flex-wrap: wrap; gap: 6px; }
.foot-points li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 600; text-align: start; }
.foot-points svg { width: 15px; height: 15px; }
.foot-acc summary { padding: 11px 2px; font-size: 14px; }
.foot-acc summary svg { width: 18px; height: 18px; }
.foot-follow > span { font-size: 14px; }
.foot-icons { gap: 8px; }
.foot-icons a { width: 40px; height: 40px; }
.footer-bottom { margin-top: 16px; padding-top: 12px; font-size: 11.5px; }
.foot-icons svg { width: 19px; height: 19px; }
.option small { display: inline; }
.option small + small::before { content: " · "; }
.option > span:nth-child(2) b { margin-bottom: 1px; }
.gift-cod, #payExtra > p { font-size: 12px !important; line-height: 1.55; }
.volume { gap: 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.55; }
.volume svg { width: 16px; height: 16px; }
.info-row { grid-template-columns: 18px 1fr; gap: 8px; }
.info-row svg { width: 18px; height: 18px; }
.info-row div { font-size: 12.5px; }
.perks { margin-top: -10px; padding-block: 8px; font-size: 12px; }
.pdp:has(.thumbs) .perks { margin-top: 0; }
.perk svg { width: 15px; height: 15px; }
@media (min-width: 860px) { .perks, .pdp:has(.thumbs) .perks { margin: 0; padding: 9px 12px; } }

/* ===== v23 — فيديو الإعلان: صورة غلاف + زر تشغيل لو الجوال منع التشغيل التلقائي ===== */
.ad-media { position: relative; }
.ad-media video { display: block; background: var(--line); }
.ad-play { display: none; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: rgba(0, 0, 0, .45); pointer-events: none; }
.ad-play::before { content: ""; position: absolute; top: 50%; left: 50%; transform: translate(-35%, -50%); border-style: solid; border-width: 13px 0 13px 21px; border-color: transparent transparent transparent #fff; }
.ad-paused .ad-play { display: block; }
.ad-paused { cursor: pointer; }
/* أكثر من إعلان: شريط يتسحب باليد مع نقاط تحت */
.ad-multi .ad-track { display: flex; align-items: center; gap: 10px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; border-radius: var(--r); }
.ad-multi .ad-track::-webkit-scrollbar { display: none; }
.ad-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; }
.ad-slide > .ad-media, .ad-slide > .ad-text { width: 100%; }
.ad-dots { display: flex; justify-content: center; gap: 2px; margin-top: 4px; }
.ad-dots button { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 2px; border: 0; background: none; cursor: pointer; }
.ad-dots button::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--text) 24%, transparent); transition: width .25s ease, background-color .25s ease; }
.ad-dots button[aria-current="true"]::before { width: 20px; background: var(--primary); }
@media (prefers-reduced-motion: reduce) { .ad-dots button::before { transition: none; } }
/* حركة أيقونة الهدية: كم مرة وبس، بدل ما تشتغل للأبد (أخف على الجوال) */
.gp-art, .ob-ico { animation-iteration-count: 3; }
/* زر المفضلة على كل بطاقة: بدون تأثير الضبابية (يثقّل التمرير في آيفون) */
.fav-btn { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--surface) 94%, transparent); }

/* =====================================================
   v24 — هيدر واضح وبسيط
   القائمة · الشعار · اللغة · العملة · السلة، وتحتهم البحث
===================================================== */
.icon-btn { width: 44px; height: 44px; background: transparent; }
.icon-btn:hover, .icon-btn:active { background: color-mix(in srgb, currentColor 14%, transparent); }
.icon-btn svg { width: 25px; height: 25px; stroke-width: 1.9; }
#menuBtn svg { fill: none; stroke: currentColor; stroke-width: 2.2; }
.cart-count { top: 1px; inset-inline-end: 0; min-width: 19px; height: 19px; line-height: 19px; font-size: 11.5px; font-weight: 800; box-shadow: 0 0 0 2px var(--head-bg, var(--primary)); }
.brand-logo { width: 38px; height: 38px; }
.search { height: 40px; border-radius: 12px; padding: 0 12px; }
.search svg { width: 18px; height: 18px; }
.search input { font-size: 15.5px; }
.search input::placeholder { opacity: .85; }
/* الجوال: القائمة · الشعار · اللغة · العملة · السلة، وتحتهم البحث */
.lang-btn, .cur-btn { height: 36px; background: color-mix(in srgb, currentColor 14%, transparent); }
.lang-btn { min-width: 42px; padding: 0 9px; font-size: 13px; letter-spacing: .02em; }
.cur-btn { padding: 0 10px; gap: 5px; font-size: 13px; }
#curFlag { font-size: 17px; }
@media (max-width: 759px) {
    .top-row { gap: 4px 6px; padding: 4px 0 10px; }
    .top-row.no-search { padding-bottom: 6px; }
}
/* الشعار: بدون قائمة آيفون عند الضغط الطويل (الضغط الطويل يفتح دخول صاحب المتجر) */
.brand { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* شاشة فتح لوحة التحكم (تظهر من أول ضغطة) */
.owner-loading { position: fixed; inset: 0; z-index: 95; display: grid; place-content: center; justify-items: center; gap: 14px; background: var(--bg); color: var(--text); font-size: 15px; }
.ol-spin { width: 40px; height: 40px; border-radius: 50%; border: 3.5px solid color-mix(in srgb, var(--primary) 18%, transparent); border-top-color: var(--primary); animation: ol-spin .8s linear infinite; }
@keyframes ol-spin { to { transform: rotate(360deg); } }
/* فتح المتجر من رابط لوحة التحكم: نخفي المتجر (وصوره ما تتحمّل) ونعرض الانتظار من أول لحظة */
html.owner-boot #view, html.owner-boot #footer, html.owner-boot .bars { display: none !important; }
html.owner-boot body::before { content: ""; position: fixed; inset: 0; z-index: 94; background: var(--bg); }
html.owner-boot body::after { content: ""; position: fixed; top: calc(50% - 38px); left: calc(50% - 20px); z-index: 94; width: 40px; height: 40px; box-sizing: border-box; border-radius: 50%; border: 3.5px solid color-mix(in srgb, var(--primary) 18%, transparent); border-top-color: var(--primary); animation: ol-spin .8s linear infinite; }
.free-miss { margin: 6px 0 0; padding: 8px 10px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--text); font-size: 13px; line-height: 1.6; }

/* =====================================================
   v31 — ستايل Apple: خط الجهاز، شريط زجاجي، وأزرار وخانات وقوائم ومفاتيح بأسلوب iOS
   (الألوان من هوية المتجر: البرغندي هو لون التمييز)
===================================================== */
html.tpl-apple {
    --font-head: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Arabic", "Segoe UI", system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Arabic", "Segoe UI", system-ui, sans-serif;
    --r: 18px;
    --r-sm: 12px;
    --muted: rgba(60, 60, 67, .62);
    --line: rgba(60, 60, 67, .14);
    --hair: rgba(60, 60, 67, .26);
    --fill: rgba(118, 118, 128, .12);
    --fill-2: rgba(118, 118, 128, .08);
    --soft: color-mix(in srgb, var(--primary) 7%, var(--surface));
    --img-bg: #F5F5F7;
    --ok: #248A3D;
    --ios-green: #34C759;
    --deal: #FF3B30;
    --cart-red: #FF3B30;
    --shadow: 0 2px 10px rgba(0, 0, 0, .05), 0 10px 30px rgba(0, 0, 0, .05);
    --shadow-up: 0 -1px 0 var(--hair);
    --head-bg: rgba(250, 250, 252, .78);
    --head-ink: var(--text);
    --glass: saturate(180%) blur(20px);
    --spring: cubic-bezier(.2, .8, .2, 1);
}
html.tpl-apple[data-mode="dark"] {
    --bg: #000000; --surface: #1C1C1E; --text: #FFFFFF;
    --muted: rgba(235, 235, 245, .6); --line: rgba(84, 84, 88, .42); --hair: rgba(84, 84, 88, .65);
    --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
    --soft: color-mix(in srgb, var(--primary) 30%, var(--surface)); --img-bg: #2C2C2E;
    --ok: #30D158; --ios-green: #30D158; --deal: #FF453A; --cart-red: #FF453A;
    --head-bg: rgba(22, 22, 24, .78);
    --shadow: none;
}
@media (prefers-color-scheme: dark) {
    html.tpl-apple[data-mode="auto"] {
        --bg: #000000; --surface: #1C1C1E; --text: #FFFFFF;
        --muted: rgba(235, 235, 245, .6); --line: rgba(84, 84, 88, .42); --hair: rgba(84, 84, 88, .65);
        --fill: rgba(118, 118, 128, .24); --fill-2: rgba(118, 118, 128, .16);
        --soft: color-mix(in srgb, var(--primary) 30%, var(--surface)); --img-bg: #2C2C2E;
        --ok: #30D158; --ios-green: #30D158; --deal: #FF453A; --cart-red: #FF453A;
        --head-bg: rgba(22, 22, 24, .78);
        --shadow: none;
    }
}
html.tpl-apple body { font-size: 16px; line-height: 1.55; letter-spacing: -.003em; -webkit-font-smoothing: antialiased; }
html.tpl-apple h1, html.tpl-apple h2, html.tpl-apple h3 { letter-spacing: -.02em; font-weight: 700; }

/* ----- الشريط العلوي: زجاج شفاف وأيقونات بلون التمييز ----- */
html.tpl-apple .top { background: var(--head-bg); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-bottom: .5px solid var(--hair); color: var(--text); }
html.tpl-apple .top-row { padding: 6px 0 8px; }
html.tpl-apple .icon-btn { width: 40px; height: 40px; background: transparent; color: var(--accent); }
html.tpl-apple .icon-btn:hover { background: var(--fill-2); }
html.tpl-apple .icon-btn svg { width: 24px; height: 24px; stroke-width: 1.6; }
html.tpl-apple .cur-btn, html.tpl-apple .lang-btn { height: 32px; padding: 0 10px; background: var(--fill); color: var(--text); font-weight: 600; font-size: 13px; }
html.tpl-apple .cart-count { top: 0; inset-inline-end: 0; min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; background: var(--cart-red); color: #fff; box-shadow: 0 0 0 2px var(--head-bg); }
html.tpl-apple .brand-name { font-weight: 700; letter-spacing: -.02em; }
html.tpl-apple .search { height: 38px; padding: 0 10px; gap: 6px; border-radius: 11px; background: var(--fill); box-shadow: none; color: var(--text); }
html.tpl-apple .search svg { width: 18px; height: 18px; stroke: var(--muted); stroke-width: 2.1; }
html.tpl-apple .search:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }

/* ----- الأشرطة ----- */
html.tpl-apple .bar { font-weight: 500; font-size: 13px; }
html.tpl-apple .bar-ship { background: var(--surface); border-bottom: .5px solid var(--hair); color: var(--text); }
html.tpl-apple .bar-ship.done { color: var(--ok); }
html.tpl-apple .meter { height: 4px; background: var(--fill); }
html.tpl-apple .meter span { background: var(--accent); }
html.tpl-apple .done .meter span { background: var(--ios-green); }
html.tpl-apple .bar-announce { background: var(--primary); }

/* ----- الأزرار: كبسولة، ضغطة ناعمة ----- */
html.tpl-apple .btn { border: 0; border-radius: 999px; font-weight: 600; letter-spacing: -.01em; min-height: 50px; font-size: 16px; transition: transform .25s var(--spring), opacity .2s, background .2s; }
html.tpl-apple .btn:active { transform: scale(.96); opacity: .82; }
html.tpl-apple .btn-primary:hover { filter: none; opacity: .92; }
html.tpl-apple .btn-ghost { background: var(--fill); color: var(--accent); }
html.tpl-apple .btn-ghost:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
html.tpl-apple .btn-gift, html.tpl-apple .buy .btn-gift { background: var(--soft); color: var(--accent); border: 0; }
html.tpl-apple .btn-sm { min-height: 36px; font-size: 14px; padding: 6px 16px; }
html.tpl-apple .link-btn { text-decoration: none; font-weight: 500; color: var(--accent); }
html.tpl-apple .link-btn:active { opacity: .5; }
html.tpl-apple .select { border: 0; background: var(--fill); border-radius: 9px; height: 34px; font-weight: 500; }

/* ----- الإعلان والواجهة ----- */
html.tpl-apple .ad-media, html.tpl-apple .ad-text { border-radius: var(--r); }
html.tpl-apple .hero:not(.has-image) { background: transparent; color: var(--text); }
html.tpl-apple .hero.pattern::before { display: none; }
html.tpl-apple .hero:not(.has-image) h1 { color: var(--heading, var(--accent)); font-size: clamp(28px, 8vw, 40px); letter-spacing: -.03em; }
html.tpl-apple .hero:not(.has-image) .hero-inner { padding: 18px 0 6px; }
html.tpl-apple .hero:not(.has-image) p { color: var(--muted); opacity: 1; }
html.tpl-apple .hero:not(.has-image) .hero-features li, html.tpl-apple .hero:not(.has-image) .hero-points li { background: var(--surface); color: var(--text); box-shadow: none; }
html.tpl-apple .hero:not(.has-image) svg { stroke: var(--accent); color: var(--accent); }

/* ----- الأقسام ----- */
html.tpl-apple .tile-img { border-radius: 16px; box-shadow: none; background: var(--surface); }
html.tpl-apple .tile.on .tile-img, html.tpl-apple .tile:hover .tile-img { box-shadow: 0 0 0 2px var(--accent); }
html.tpl-apple .tile-name { font-weight: 500; font-size: 12.5px; color: var(--text); }
html.tpl-apple .tile.on .tile-name { color: var(--accent); font-weight: 600; }
html.tpl-apple .section-head h1, html.tpl-apple .section-head h2 { font-size: 22px; }
html.tpl-apple .section-head .more { font-weight: 500; }
html.tpl-apple .chip { border: 0; background: var(--surface); font-weight: 500; min-height: 34px; padding: 0 14px; }
html.tpl-apple .chip.on { background: var(--text); color: var(--bg); }
html.tpl-apple[data-mode="dark"] .chip.on { background: #fff; color: #000; }

/* ----- بطاقة المنتج: بيضاء بدون إطار، وزر كبسولة ----- */
html.tpl-apple .card { border: 0; border-radius: var(--r); box-shadow: var(--shadow); transition: transform .3s var(--spring); }
html.tpl-apple .card:active { transform: scale(.985); }
html.tpl-apple .card-img { background: var(--img-bg); }
html.tpl-apple .card-body { padding: 10px 12px 10px; gap: 3px; }
html.tpl-apple .card-name { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
html.tpl-apple .price b { color: var(--text); font-weight: 600; }
html.tpl-apple .price s { color: var(--muted); }
html.tpl-apple .card-action { padding: 0 12px 12px; }
html.tpl-apple .card-action .btn { min-height: 38px; font-size: 14px; }
html.tpl-apple .stepper { background: var(--fill); border-radius: 999px; }
html.tpl-apple .stepper button { color: var(--accent); font-weight: 500; font-size: 22px; }
html.tpl-apple .stepper output { font-weight: 600; }
html.tpl-apple .badge { border-radius: 999px; font-weight: 600; font-size: 11px; padding: 2px 9px; box-shadow: none; background: rgba(255, 255, 255, .86); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); color: var(--text); }
html.tpl-apple .badge.hot { color: #BF4800; }
html.tpl-apple .badge.sale { background: var(--deal); color: #fff; }
html.tpl-apple .fav-btn { background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); box-shadow: none; color: #1C1C1E; }
html.tpl-apple .fav-btn.on { color: #FF2D55; }
html.tpl-apple .sw.on { box-shadow: 0 0 0 1.5px var(--accent); }

/* ----- صفحة المنتج ----- */
html.tpl-apple .stage { background: var(--img-bg); }
html.tpl-apple .stage-nav { background: rgba(255, 255, 255, .72); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); box-shadow: none; }
html.tpl-apple .thumbs button { border-radius: 10px; }
html.tpl-apple .pdp h1 { letter-spacing: -.03em; }
html.tpl-apple .pp-now { color: var(--text); font-weight: 700; letter-spacing: -.02em; }
html.tpl-apple .pp-was { font-weight: 500; color: var(--muted); }
html.tpl-apple .pchip { border: 0; border-radius: 999px; font-weight: 600; font-size: 13px; padding: 3px 11px; }
html.tpl-apple .perks { background: var(--surface); border-radius: 0; }
@media (min-width: 860px) { html.tpl-apple .perks { border-radius: var(--r-sm); } }
html.tpl-apple .perk svg { stroke: var(--ios-green); }
html.tpl-apple .variant { border: 0; border-radius: 14px; box-shadow: inset 0 0 0 .5px var(--hair); }
html.tpl-apple .variant.on { box-shadow: inset 0 0 0 2px var(--accent); }
html.tpl-apple .info-box, html.tpl-apple .offer, html.tpl-apple .review-product { border: 0; border-radius: var(--r); background: var(--surface); }
html.tpl-apple .offer { border: 0; }
html.tpl-apple .volume, html.tpl-apple .vol-hint, html.tpl-apple .hint, html.tpl-apple .out-note, html.tpl-apple .saved-note { border-radius: var(--r-sm); }
html.tpl-apple .pdp-details { border-top: .5px solid var(--hair); }
html.tpl-apple .trust svg { stroke: var(--ios-green); }
html.tpl-apple .buybar { background: var(--head-bg); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); border-top: .5px solid var(--hair); box-shadow: none; }
html.tpl-apple .bb-info b { color: var(--text); }

/* ----- السلة والطلب: مجموعات بيضاء مدوّرة (مثل الإعدادات) ----- */
html.tpl-apple .page-title { font-size: 32px; letter-spacing: -.03em; margin: 16px 2px 12px; }
html.tpl-apple .panel, html.tpl-apple .sum-mobile { border: 0; border-radius: var(--r); }
html.tpl-apple .panel h2 { font-size: 20px; }
html.tpl-apple .cart-line { border-bottom: .5px solid var(--hair); }
html.tpl-apple .cart-line img { border-radius: 12px; }
html.tpl-apple .cart-line .name { font-weight: 600; }
html.tpl-apple .row.total { border-top: .5px solid var(--hair); }
html.tpl-apple .cl-del:hover, html.tpl-apple .cl-del:focus-visible { color: var(--deal); }

/* الخانات */
html.tpl-apple .field > span:first-child { font-weight: 500; font-size: 13px; color: var(--muted); padding-inline-start: 4px; }
html.tpl-apple .input { border: 0; background: var(--fill); border-radius: 12px; min-height: 46px; padding: 10px 14px; font-size: 17px; transition: box-shadow .2s, background .2s; }
html.tpl-apple .input::placeholder { color: rgba(60, 60, 67, .4); }
html.tpl-apple[data-mode="dark"] .input::placeholder { color: rgba(235, 235, 245, .35); }
html.tpl-apple .input:focus { background: var(--surface); box-shadow: 0 0 0 2px var(--accent); }
html.tpl-apple .field.invalid .input { box-shadow: 0 0 0 2px var(--deal); background: color-mix(in srgb, var(--deal) 6%, var(--surface)); }
html.tpl-apple select.input { appearance: none; -webkit-appearance: none; padding-inline-end: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 14'%3E%3Cpath d='M1.5 5 5 1.5 8.5 5M1.5 9 5 12.5 8.5 9' fill='none' stroke='%238E8E93' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: left 14px center; background-size: 10px 14px; }
html.tpl-apple[dir="ltr"] select.input { background-position: right 14px center; }
html.tpl-apple .phone-wrap .dial { border: 0; background: var(--fill); border-radius: 12px 0 0 12px; color: var(--muted); }
html.tpl-apple .phone-wrap .input { border-radius: 0 12px 12px 0; border-left: .5px solid var(--hair); }
html.tpl-apple .phone-wrap select.dial-pick { background-color: var(--fill); }
html.tpl-apple .err { font-weight: 500; }

/* اختيار التوصيل والدفع: قائمة iOS بعلامة صح */
html.tpl-apple .choice { gap: 0; border-radius: 14px; overflow: hidden; background: var(--fill-2); }
html.tpl-apple .option { border: 0; border-radius: 0; background: transparent; padding: 13px 14px; grid-template-columns: 24px 1fr auto; align-items: center; }
html.tpl-apple .option + .option { box-shadow: inset 0 .5px 0 var(--hair); }
html.tpl-apple .option:has(input:checked) { background: transparent; }
html.tpl-apple .option b { font-weight: 600; }
html.tpl-apple .option input { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(60, 60, 67, .3); background: var(--surface) no-repeat center / 13px 13px; transition: background-color .2s, box-shadow .2s; }
html.tpl-apple .option input:checked { background-color: var(--accent); box-shadow: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4 5.6 10.4 11.5 3.8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
html.tpl-apple .option .opt-price { font-weight: 600; }

/* المفاتيح (بدل مربعات الاختيار): مثل iOS */
html.tpl-apple .check-line { justify-content: space-between; flex-direction: row-reverse; gap: 12px; font-weight: 500; padding: 6px 0; }
html.tpl-apple .check-line > span { flex: 1; min-width: 0; }
html.tpl-apple .check-line input { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 51px; height: 31px; margin: 0; border-radius: 999px; background: rgba(120, 120, 128, .16); cursor: pointer; transition: background-color .25s; }
html.tpl-apple[data-mode="dark"] .check-line input { background: rgba(120, 120, 128, .32); }
html.tpl-apple .check-line input::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .15), 0 3px 1px rgba(0, 0, 0, .06); transition: inset-inline-start .28s var(--spring); }
html.tpl-apple .check-line input:checked { background: var(--ios-green); }
html.tpl-apple .check-line input:checked::after { inset-inline-start: 22px; }
html.tpl-apple .check-line input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* أزرار التبديل (لي / هدية): مثل Segmented Control */
html.tpl-apple .seg2 { gap: 2px; padding: 2px; border: 0; border-radius: 10px; background: var(--fill); }
html.tpl-apple .seg2 span { min-height: 36px; border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--text); }
html.tpl-apple .seg2 svg { width: 18px; height: 18px; }
html.tpl-apple .seg2 input:checked + span { background: var(--surface); color: var(--text); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
html.tpl-apple[data-mode="dark"] .seg2 input:checked + span { background: #636366; }
html.tpl-apple .mini-seg { border: 0; background: var(--fill); padding: 2px; border-radius: 9px; }
html.tpl-apple .mini-seg button { border-radius: 7px; color: var(--text); font-weight: 600; }
html.tpl-apple .mini-seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 3px 8px rgba(0, 0, 0, .12), 0 3px 1px rgba(0, 0, 0, .04); }
html.tpl-apple .occ span, html.tpl-apple .occ-chips label span { border-radius: 999px; }

html.tpl-apple .coupon-box { border: 0; background: var(--fill-2); border-radius: var(--r-sm); }
html.tpl-apple .coupon-box summary { font-weight: 600; color: var(--accent); }
html.tpl-apple .bank-row { border: 0; background: var(--fill-2); border-radius: var(--r-sm); }
html.tpl-apple .copy { border: 0; background: var(--fill); color: var(--accent); border-radius: 999px; font-weight: 600; }
html.tpl-apple .gift-panel { border: 0; }
html.tpl-apple .free-miss { border-radius: var(--r-sm); }

/* صفحة الشكر */
html.tpl-apple .thanks-head .check { background: var(--ios-green); width: 72px; height: 72px; }
html.tpl-apple .thanks-head .check svg { stroke: #fff; width: 36px; height: 36px; stroke-width: 3; }
html.tpl-apple .step { border: 0; border-radius: var(--r); }
html.tpl-apple .order-no { font-family: var(--font-body); font-weight: 600; letter-spacing: .02em; }

/* ----- القوائم والنوافذ: ورقة iOS بمقبض، ومجموعات مثل الإعدادات ----- */
html.tpl-apple .sheet-backdrop { background: rgba(0, 0, 0, .32); }
html.tpl-apple .sheet-panel { background: var(--bg); }
html.tpl-apple .sheet.modal .sheet-panel { border-radius: 14px 14px 0 0; padding-top: 22px; animation: sheetUp .38s var(--spring); }
html.tpl-apple .sheet.modal .sheet-panel::before { content: ""; position: absolute; top: 7px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: rgba(60, 60, 67, .3); }
@media (min-width: 760px) { html.tpl-apple .sheet.modal .sheet-panel { border-radius: 14px; } html.tpl-apple .sheet.modal .sheet-panel::before { display: none; } }
@keyframes sheetUp { from { transform: translateY(100%); } }
html.tpl-apple .sheet-head h2 { font-size: 20px; }
html.tpl-apple .close { width: 30px; height: 30px; background: var(--fill); color: var(--muted); font-size: 18px; font-weight: 600; }
html.tpl-apple .cur-list { gap: 0; border-radius: 14px; overflow: hidden; background: var(--surface); }
html.tpl-apple .cur-list button { border: 0; border-radius: 0; background: transparent; }
html.tpl-apple .cur-list li + li button { box-shadow: inset 0 .5px 0 var(--hair); }
html.tpl-apple .cur-list button[aria-pressed="true"] { background: transparent; }
html.tpl-apple .cur-list button[aria-pressed="true"] .cur-rate::after { content: " ✓"; color: var(--accent); font-weight: 700; font-size: 16px; }
html.tpl-apple .sheet-added .sheet-head h2 svg { stroke: var(--ios-green); }
html.tpl-apple .added-actions { background: var(--bg); }
html.tpl-apple .notify-item, html.tpl-apple .added-offer { border: 0; background: var(--surface); border-radius: var(--r-sm); }

/* القائمة الجانبية: مجموعات بيضاء وأيقونات في مربعات ملوّنة */
html.tpl-apple .menu-head { border-bottom: 0; }
html.tpl-apple .menu-logo { border-radius: 12px; }
html.tpl-apple .mgroup { background: var(--surface); border-radius: 14px; padding: 0 14px; margin-top: 10px; }
html.tpl-apple .mgroup > .mrow + .mrow, html.tpl-apple .mgroup > .menu-cats + .mrow { border-top: .5px solid var(--hair); }
html.tpl-apple .mrow { font-weight: 500; font-size: 16px; min-height: 50px; }
html.tpl-apple .mi { width: 30px; height: 30px; border-radius: 8px; background: var(--primary); color: #fff; }
html.tpl-apple .mi svg { width: 18px; height: 18px; stroke-width: 1.9; }
html.tpl-apple .mi.flag { background: var(--fill); }
html.tpl-apple .mrow-gift .mi.gift { color: #fff; background: #FF2D55; }
html.tpl-apple .mrow-gift .ml { color: var(--text); font-weight: 500; }
html.tpl-apple .mchev { color: rgba(60, 60, 67, .3); }
html.tpl-apple .mgroup .menu-cat { background: var(--fill-2); }
html.tpl-apple .menu .menu-label { margin: 20px 16px 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
html.tpl-apple .mf { border: 0; background: var(--surface); border-radius: 14px; font-weight: 600; }
html.tpl-apple .mgroup.owner { border: 0; }

/* الإشعار: مثل HUD في iOS */
html.tpl-apple .toast { background: rgba(28, 28, 30, .88); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); color: #fff; font-weight: 500; border-radius: 14px; padding: 10px 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

/* زر السلة العائم وزر واتساب */
html.tpl-apple .cf-ring { box-shadow: 0 8px 24px rgba(0, 0, 0, .14); background: conic-gradient(var(--accent) var(--p, 0%), var(--fill) 0); }
html.tpl-apple .cf-in { background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); color: var(--accent); }
html.tpl-apple[data-mode="dark"] .cf-in { background: rgba(44, 44, 46, .92); }
html.tpl-apple .cf-pill.ok { background: var(--ios-green); }
html.tpl-apple .wa-float { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }

/* ----- الذيل: رمادي فاتح مثل مواقع Apple ----- */
html.tpl-apple .footer { background: var(--surface); color: var(--muted); border-top: .5px solid var(--hair); font-size: 13px; }
html.tpl-apple .footer h2 { color: var(--text); font-size: 13px; font-weight: 600; letter-spacing: 0; }
html.tpl-apple .footer a, html.tpl-apple .footer-brand strong { color: var(--text); }
html.tpl-apple .footer-brand img { filter: brightness(0); }
html.tpl-apple[data-mode="dark"] .footer-brand img { filter: none; }
html.tpl-apple .footer-links a { border: 0; background: var(--fill); }
html.tpl-apple .footer-bottom { border-top: .5px solid var(--hair); opacity: 1; }

/* بنر الهدية والبطاقات الأخرى */
html.tpl-apple .gp { border-radius: var(--r); }
html.tpl-apple .preview-flag { background: var(--head-bg); -webkit-backdrop-filter: var(--glass); backdrop-filter: var(--glass); color: var(--text); border-bottom: .5px solid var(--hair); }
html.tpl-apple .hero.hero-compact:not(.has-image) h1 { font-size: clamp(26px, 7.6vw, 38px); line-height: 1.2; letter-spacing: -.03em; }
html.tpl-apple .hero-mini li { opacity: 1; color: var(--muted); font-size: 12.5px; }
html.tpl-apple .gift-cta { border: 0; border-radius: var(--r); background: var(--surface); }
html.tpl-apple .gift-cta::after { display: none; }
html.tpl-apple .gift-cta:active { transform: scale(.985); }
html.tpl-apple .gcta-go { color: rgba(60, 60, 67, .3); }
html.tpl-apple .gfor-opt > span { border: 0; border-radius: 14px; background: var(--fill-2); }
html.tpl-apple .gfor-opt input:checked + span { box-shadow: inset 0 0 0 2px var(--gf); transform: none; }
html.tpl-apple .occ span { border: 0; background: var(--fill); font-weight: 500; }
html.tpl-apple .occ input:checked + span { background: var(--accent); color: #fff; }
html.tpl-apple .msg-sugs button, html.tpl-apple .sug { border: 0; background: var(--fill); border-radius: 999px; }

/* =====================================================
   v33 — هوية روا (ROA · IL RITO DEL CAFFÈ)
   Rosso #570418 · Crema #F2E9DA · Sabbia #E6D8C2 · Latte #FAF6EE · Pistacchio #D6DB89 · Espresso #23120D
   الخطوط: أميري للعناوين، IBM Plex للنصوص والأسعار، Cormorant للمسات اللاتينية، والشعار بالرقعة (SVG)
===================================================== */

/* عام: الشعار العريض والمتراكب، وعناصر الواجهة الخاصة بالهوية */
.brand-logo.wide { display: flex; width: auto; height: auto; border-radius: 0; overflow: visible; background: none; }
.brand-logo.wide img { display: block; width: auto; height: var(--wide-h, 30px); max-width: 46vw; object-fit: contain; filter: var(--wide-logo-filter, none); }
html:not(.head-light) .brand-logo.wide img { filter: brightness(0) invert(1); }
.menu-logo.wide { background: transparent; padding: 0; }
.menu-logo.wide img { height: 30px; filter: var(--wide-logo-filter, none); }
.footer-brand.stacked img { width: auto; height: 72px; filter: var(--foot-logo-filter, brightness(0) invert(1)); }
html[data-mode="dark"] { --wide-logo-filter: brightness(0) invert(.93); }
@media (prefers-color-scheme: dark) { html[data-mode="auto"] { --wide-logo-filter: brightness(0) invert(.93); } }
.hero-kicker { margin: 0; font-size: 11.5px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.hero-cta, .hero-art { display: none; }

html.tpl-roa {
    --roa-rosso: #570418;
    --roa-crema: #F2E9DA;
    --roa-sabbia: #E6D8C2;
    --roa-latte: #FAF6EE;
    --roa-pistacchio: #D6DB89;
    --roa-espresso: #23120D;
    --font-latin: "Cormorant Garamond", "Cormorant", "Times New Roman", serif;
    --surface: var(--roa-latte);
    --img-bg: var(--roa-sabbia);
    --soft: var(--roa-sabbia);
    --accent: var(--roa-rosso);
    --muted: color-mix(in srgb, var(--roa-espresso) 60%, var(--roa-crema));
    --line: rgba(87, 4, 24, .13);
    --hair: rgba(87, 4, 24, .2);
    --head-ink: var(--roa-rosso);
    --heading: var(--roa-rosso);
    --deal: var(--roa-rosso);
    --cart-red: var(--roa-rosso);
    --r: 18px;
    --r-sm: 12px;
    --shadow: 0 1px 2px rgba(35, 18, 13, .04), 0 6px 18px rgba(35, 18, 13, .05);
    --shadow-up: 0 -1px 0 var(--line), 0 -8px 24px rgba(35, 18, 13, .06);
    --foot-logo-filter: none;
    --art-saucer: var(--roa-latte);
    --art-ink: var(--roa-rosso);
    --art-coffee: var(--roa-espresso);
}
html.tpl-roa.head-light { --head-bg: var(--roa-crema); --head-ink: var(--roa-rosso); --logo-filter: none; }
html.tpl-roa[data-mode="dark"] {
    --bg: #1A0D09; --surface: #2A1712; --text: #F2E9DA;
    --img-bg: #3A2119; --soft: #3A2119;
    --accent: #E7C9A6; --heading: #F2E9DA;
    --muted: rgba(242, 233, 218, .62); --line: rgba(242, 233, 218, .13); --hair: rgba(242, 233, 218, .22);
    --head-ink: #F2E9DA; --shadow: none;
    --foot-logo-filter: brightness(0) invert(.93);
    --art-saucer: #3A2119; --art-ink: #F2E9DA; --art-coffee: #1A0D09;
}
html.tpl-roa.head-light[data-mode="dark"] { --head-bg: #1A0D09; --head-ink: #F2E9DA; }
@media (prefers-color-scheme: dark) {
    html.tpl-roa[data-mode="auto"] {
        --bg: #1A0D09; --surface: #2A1712; --text: #F2E9DA;
        --img-bg: #3A2119; --soft: #3A2119;
        --accent: #E7C9A6; --heading: #F2E9DA;
        --muted: rgba(242, 233, 218, .62); --line: rgba(242, 233, 218, .13); --hair: rgba(242, 233, 218, .22);
        --head-ink: #F2E9DA; --shadow: none;
        --foot-logo-filter: brightness(0) invert(.93);
        --art-saucer: #3A2119; --art-ink: #F2E9DA; --art-coffee: #1A0D09;
    }
    html.tpl-roa.head-light[data-mode="auto"] { --head-bg: #1A0D09; --head-ink: #F2E9DA; }
}
html.tpl-roa body { background: var(--bg); color: var(--text); }
html.tpl-roa h1, html.tpl-roa h2, html.tpl-roa h3 { font-family: var(--font-head); color: var(--heading); font-weight: 700; letter-spacing: 0; }

/* ----- الرأس: الشعار في المنتصف تماماً، القائمة يمين والسلة يسار ----- */
html.tpl-roa .top { background: var(--head-bg); color: var(--head-ink); border-bottom: 1px solid var(--line); box-shadow: none; }
html.tpl-roa .top-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "menu brand lang cur cart" "search search search search search"; padding: 8px 0 10px; gap: 8px 6px; }
html.tpl-roa .top-row.no-search { grid-template-areas: "menu brand lang cur cart"; }
html.tpl-roa .brand { justify-self: start; height: 44px; }
html.tpl-roa { --wide-h: 35px; }
html.tpl-roa .icon-btn { background: transparent; color: var(--head-ink); }
html.tpl-roa .icon-btn:hover { background: color-mix(in srgb, var(--head-ink) 8%, transparent); }
html.tpl-roa .icon-btn svg { width: 24px; height: 24px; stroke-width: 1.7; }
html.tpl-roa .cur-btn, html.tpl-roa .lang-btn { height: 34px; padding: 0 10px; background: transparent; color: var(--head-ink); box-shadow: inset 0 0 0 1px var(--hair); font-weight: 600; font-size: 13px; }
html.tpl-roa .cur-btn #curSym { display: none; }
html.tpl-roa .cur-btn { padding: 0 9px; }
html.tpl-roa .cart-count { background: var(--roa-rosso); color: var(--roa-crema); box-shadow: 0 0 0 2px var(--head-bg); }
html.tpl-roa[data-mode="dark"] .cart-count { background: var(--roa-crema); color: var(--roa-rosso); }
html.tpl-roa .search { height: 40px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); }
html.tpl-roa .search svg { stroke: var(--muted); }
html.tpl-roa .search:focus-within { box-shadow: inset 0 0 0 1.5px var(--accent); }
@media (max-width: 599px) { html.tpl-roa .lang-btn { display: none; } }
@media (min-width: 760px) {
    html.tpl-roa .top-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; grid-template-areas: "menu brand lang cur cart" "search search search search search"; }
    html.tpl-roa .search { width: min(100%, 560px); justify-self: center; }
    html.tpl-roa .cur-btn #curSym { display: inline; }
    html.tpl-roa { --wide-h: 42px; }
    html.tpl-roa .brand { height: 50px; }
}

/* ----- الأشرطة: برغندي وكريمي، وعداد بالفستقي ----- */
html.tpl-roa .bar { font-weight: 500; font-size: 13px; letter-spacing: .01em; }
html.tpl-roa .bar-ship, html.tpl-roa .bar-announce { background: var(--roa-rosso); color: var(--roa-crema); border: 0; }
html.tpl-roa .bar-ship.done { color: var(--roa-crema); }
html.tpl-roa .meter { height: 4px; background: rgba(242, 233, 218, .22); }
html.tpl-roa .meter span { background: var(--roa-crema); }
html.tpl-roa .bar-cart { background: var(--roa-sabbia); color: var(--roa-espresso); }
html.tpl-roa .bar-gift { background: var(--roa-sabbia); color: var(--roa-espresso); }

/* ----- الأزرار ----- */
html.tpl-roa .btn { border-radius: var(--r-pill); font-weight: 700; }
html.tpl-roa .btn-primary { background: var(--roa-rosso); color: var(--roa-crema); }
html.tpl-roa[data-mode="dark"] .btn-primary { background: var(--roa-crema); color: var(--roa-rosso); }
html.tpl-roa .btn-ghost { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); border-color: transparent; }
html.tpl-roa .link-btn { color: var(--accent); }

/* ----- الواجهة: صندوق رملي، تمهيد إيطالي، عنوان أميري، زر وفنجان ----- */
html.tpl-roa .hero, html.tpl-roa .hero:not(.has-image) { background: transparent; color: var(--heading); }
html.tpl-roa .hero.pattern::before { display: none; }
html.tpl-roa .hero-compact .hero-inner {
    margin-top: 14px; padding: 24px 20px 22px; border-radius: var(--r);
    background: var(--roa-sabbia);
    grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 12px; row-gap: 10px;
}
html.tpl-roa[data-mode="dark"] .hero-compact .hero-inner { background: var(--surface); }
html.tpl-roa .hero-compact .hero-inner > * { grid-column: 1; }
html.tpl-roa .hero-art { display: block; grid-column: 2 !important; grid-row: 1 / span 4; width: clamp(104px, 30vw, 190px); height: auto; }
html.tpl-roa .hero-kicker { font-family: var(--font-latin); font-size: 12.5px; font-weight: 600; letter-spacing: .34em; color: var(--accent); opacity: 1; justify-self: start; }
html.tpl-roa .hero-compact h1 { font-family: "Amiri", var(--font-head); font-size: clamp(29px, 8vw, 50px); line-height: 1.32; color: var(--heading); max-width: 11ch; text-wrap: balance; }
html.tpl-roa .hero-cta { display: inline-flex; justify-self: start; min-height: 46px; padding: 0 28px; font-size: 16px; margin-top: 4px; }
html.tpl-roa .hero-mini { display: none; }
html.tpl-roa .hero-proof { color: var(--muted); font-size: 12.5px; }
html.tpl-roa .hero-proof svg { stroke: var(--accent); }
html.tpl-roa .hero:not(.hero-compact) .hero-inner { background: var(--roa-sabbia); border-radius: var(--r); padding: 22px 18px; margin-top: 14px; }

/* ----- الأقسام: عنوان أميري + كلمة إيطالية ----- */
html.tpl-roa .section-head h1, html.tpl-roa .section-head h2 { font-size: 23px; color: var(--heading); }
html.tpl-roa .section-head .more { color: var(--accent); font-weight: 600; }
html.tpl-roa .section-head::after { content: var(--it-label, none); font-family: var(--font-latin); font-size: 12px; font-weight: 600; letter-spacing: .34em; color: var(--accent); direction: ltr; white-space: nowrap; }
html.tpl-roa .section-head:has(.more, select, .select)::after { display: none; }
html.tpl-roa #best { --it-label: "I PIÙ AMATI"; }
html.tpl-roa #sets { --it-label: "IN SET"; }
html.tpl-roa #new { --it-label: "NUOVO"; }
html.tpl-roa #related { --it-label: "TI PIACERÀ"; }
html.tpl-roa #reviews { --it-label: "DICONO DI NOI"; }
html.tpl-roa .intro { color: var(--muted); }

/* ----- الأقسام المصورة والفلاتر ----- */
html.tpl-roa .tile-img { border-radius: var(--r); background: var(--roa-sabbia); box-shadow: none; }
html.tpl-roa .tile.on .tile-img, html.tpl-roa .tile:hover .tile-img { box-shadow: 0 0 0 2px var(--accent); }
html.tpl-roa .tile-name { color: var(--text); font-weight: 600; }
html.tpl-roa .tile.on .tile-name { color: var(--accent); }
html.tpl-roa .chip { background: var(--surface); color: var(--text); border: 0; box-shadow: inset 0 0 0 1px var(--line); }
html.tpl-roa .chip.on { background: var(--roa-rosso); color: var(--roa-crema); box-shadow: none; }
html.tpl-roa[data-mode="dark"] .chip.on { background: var(--roa-crema); color: var(--roa-rosso); }
html.tpl-roa .select { border-radius: var(--r-pill); background-color: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border: 0; }

/* ----- بطاقة المنتج: صورة على رملي وجسم لاتيه ----- */
html.tpl-roa .card { background: var(--surface); border: 0; border-radius: var(--r); box-shadow: none; overflow: hidden; }
html.tpl-roa .card-img { background: var(--roa-sabbia); }
html.tpl-roa[data-mode="dark"] .card-img { background: var(--img-bg); }
html.tpl-roa .card-body { padding: 11px 12px 12px; gap: 3px; }
html.tpl-roa .card-name { color: var(--text); font-weight: 600; font-size: 14.5px; }
html.tpl-roa .price b { color: var(--accent); font-size: 16px; font-weight: 700; font-family: var(--font-body); }
html.tpl-roa .price s { color: var(--muted); }
html.tpl-roa .card-action .btn, html.tpl-roa .card-action button { border-radius: var(--r-pill); }
html.tpl-roa .badge { border-radius: 7px; padding: 3px 9px; font-size: 12px; font-weight: 700; box-shadow: none; }
html.tpl-roa .badge.hot { background: var(--roa-rosso); color: var(--roa-crema); }
html.tpl-roa .badge.sale { background: var(--roa-sabbia); color: var(--roa-rosso); }
html.tpl-roa .badge.out { background: var(--roa-espresso); color: var(--roa-crema); }
html.tpl-roa .fav-btn { background: var(--roa-latte); color: var(--roa-rosso); box-shadow: none; }
html.tpl-roa .fav-btn.on { color: var(--roa-rosso); }
html.tpl-roa .sw.on { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--accent); }
html.tpl-roa .stepper { background: var(--roa-sabbia); border-radius: var(--r-pill); }

/* ----- صفحة المنتج ----- */
html.tpl-roa .stage { background: var(--roa-sabbia); border-radius: var(--r); }
html.tpl-roa[data-mode="dark"] .stage { background: var(--img-bg); }
html.tpl-roa .pdp h1 { font-size: clamp(25px, 7vw, 34px); color: var(--heading); }
html.tpl-roa .pp-now { color: var(--accent); }
html.tpl-roa .pp-was { color: var(--muted); }
html.tpl-roa .perks, html.tpl-roa .info-box, html.tpl-roa .offer, html.tpl-roa .review-product, html.tpl-roa .pdp-details { background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
html.tpl-roa .perk svg, html.tpl-roa .trust svg { stroke: var(--accent); }
html.tpl-roa .variant { border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); border: 0; }
html.tpl-roa .variant.on { box-shadow: inset 0 0 0 2px var(--accent); }
html.tpl-roa .buybar { background: var(--surface); box-shadow: var(--shadow-up); border-top: 0; }
html.tpl-roa .bb-info b { color: var(--accent); }

/* ----- السلة والطلب ----- */
html.tpl-roa .page-title { color: var(--heading); }
html.tpl-roa .panel, html.tpl-roa .sum-mobile { background: var(--surface); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: var(--r); }
html.tpl-roa .panel h2 { color: var(--heading); }
html.tpl-roa .cart-line img { border-radius: var(--r-sm); background: var(--roa-sabbia); }
html.tpl-roa .row.total { color: var(--heading); }
html.tpl-roa .input { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--text); }
html.tpl-roa .input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); outline: none; }
html.tpl-roa .option { border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--line); }
html.tpl-roa .option:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: color-mix(in srgb, var(--accent) 5%, var(--bg)); }
html.tpl-roa .option input { accent-color: var(--roa-rosso); }
html.tpl-roa .check-line input { accent-color: var(--roa-rosso); }
html.tpl-roa .seg2 { background: var(--roa-sabbia); border-radius: var(--r-pill); }
html.tpl-roa .seg2 input:checked + span { background: var(--roa-rosso); color: var(--roa-crema); }
html.tpl-roa .coupon-box, html.tpl-roa .gift-panel, html.tpl-roa .bank-row { border-radius: var(--r-sm); }
html.tpl-roa .thanks-head .check { background: var(--roa-rosso); color: var(--roa-crema); }
html.tpl-roa .order-no { color: var(--accent); }

/* ----- القوائم والنوافذ ----- */
html.tpl-roa .sheet-panel { background: var(--surface); }
html.tpl-roa .sheet-head h2 { color: var(--heading); }
html.tpl-roa .menu-logo { background: transparent; padding: 0; }

/* ----- أسفل الصفحة: رملي مع الشعار المتراكب ----- */
html.tpl-roa .footer { background: var(--roa-sabbia); color: var(--roa-espresso); border-top: 0; }
html.tpl-roa[data-mode="dark"] .footer { background: #120806; color: var(--muted); }
html.tpl-roa .footer h2 { color: var(--heading); font-family: var(--font-head); }
html.tpl-roa .footer a { color: var(--accent); }
html.tpl-roa .footer-brand strong { color: var(--heading); }
html.tpl-roa .footer-links a, html.tpl-roa .footer-social a.fsoc-icon, html.tpl-roa .footer-social a:not(.fsoc-icon) { border-color: var(--hair); color: var(--accent); }
html.tpl-roa .footer-bottom { border-top-color: var(--line); opacity: .85; }
html.tpl-roa .foot-about { color: var(--muted); }
html.tpl-roa .foot-head .footer-brand.stacked img { height: 112px; }

/* السلة العائمة: حلقة التقدّم بالبرغندي */
/* السلة العائمة: الدائرة خضراء، والكلام والرقم أحمر، ولما يكتمل الشحن المجاني يصير كله أخضر */
html.tpl-roa { --cf-green: #3E8E41; --cf-red: #C62828; }
html.tpl-roa .cf-ring { background: conic-gradient(var(--cf-green) var(--p, 0%), color-mix(in srgb, var(--cf-green) 18%, var(--surface)) 0); }
html.tpl-roa .cf-in { background: var(--roa-latte); color: var(--cf-red); }
html.tpl-roa .cf-count, html.tpl-roa .cf-pill { background: var(--cf-red); color: #fff; }
html.tpl-roa .cart-float.cf-done .cf-in { color: var(--cf-green); }
html.tpl-roa .cart-float.cf-done .cf-count, html.tpl-roa .cf-pill.ok { background: var(--cf-green); color: #fff; }
html.tpl-roa[data-mode="dark"] .cf-ring { background: conic-gradient(var(--cf-green) var(--p, 0%), rgba(242, 233, 218, .2) 0); }
html.tpl-roa[data-mode="dark"] { --cf-red: #EF5350; --cf-green: #5DB563; }
html.tpl-roa[data-mode="dark"] .cf-in { background: var(--surface); color: var(--cf-red); }
/* أسفل الصفحة (روا): نصوص داكنة على الرملي */
html.tpl-roa .foot-points li { background: var(--roa-latte); color: var(--roa-espresso); }
html.tpl-roa .foot-points svg { stroke: var(--roa-rosso); }
html.tpl-roa .foot-acc, html.tpl-roa .foot-acc:last-of-type { border-color: var(--line); }
html.tpl-roa .foot-acc summary, html.tpl-roa .foot-follow > span { color: var(--heading); font-family: var(--font-head); }
html.tpl-roa .foot-lines li::before { background: var(--roa-rosso); }
html.tpl-roa .foot-icons a { border-color: var(--hair); color: var(--roa-rosso); background: var(--roa-latte); }
html.tpl-roa .foot-icons a.wa svg { fill: var(--roa-rosso); }
html.tpl-roa .foot-icons a.wa .wa-glyph { fill: var(--roa-latte); }
html.tpl-roa .foot .footer-bottom a { color: var(--roa-rosso); }
html.tpl-roa .foot-more { color: var(--roa-rosso); }
html.tpl-roa[data-mode="dark"] .foot-points li, html.tpl-roa[data-mode="dark"] .foot-icons a { background: var(--surface); color: var(--text); }
html.tpl-roa[data-mode="dark"] .foot-points svg, html.tpl-roa[data-mode="dark"] .foot-icons a, html.tpl-roa[data-mode="dark"] .foot .footer-bottom a, html.tpl-roa[data-mode="dark"] .foot-more { stroke: var(--roa-crema); color: var(--roa-crema); }
html.tpl-roa[data-mode="dark"] .foot-icons a.wa svg { fill: var(--roa-crema); }
html.tpl-roa[data-mode="dark"] .foot-icons a.wa .wa-glyph { fill: var(--surface); }
html.tpl-roa .gift-cta, html.tpl-roa .gp { border-radius: var(--r); }
html.tpl-roa .thanks-head .check svg { stroke: var(--roa-crema); }
html.tpl-roa[data-mode="dark"] .seg2 { background: var(--img-bg); }
html.tpl-roa[data-mode="dark"] .seg2 span { color: var(--text); }
html.tpl-roa[data-mode="dark"] .seg2 input:checked + span { background: var(--roa-crema); color: var(--roa-rosso); }
