/* CrystalShop storefront. Mobile first, RTL, dark by default with a light theme. */
:root {
    --bg: #0b0d12;
    --bg-soft: #10131a;
    --surface: #151922;
    --surface-2: #1c212d;
    --line: #262c3a;
    --text: #f2f4f9;
    --muted: #9aa3b6;
    --c1: #22d3ee;
    --c2: #8b5cf6;
    --c3: #f472b6;
    --grad: linear-gradient(135deg, var(--c1), var(--c2));
    --grad-warm: linear-gradient(135deg, #f472b6, #fb923c);
    --danger: #fb7185;
    --ok: #34d399;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, .55);
    --radius: 18px;
    --header-h: 112px;
    --nav-h: 68px;
    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f5f6fb;
    --bg-soft: #eceef6;
    --surface: #ffffff;
    --surface-2: #f1f3fa;
    --line: #e2e5f0;
    --text: #12141b;
    --muted: #5d667c;
    --shadow: 0 10px 30px -14px rgba(40, 50, 90, .28);
    color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Vazirmatn", system-ui, sans-serif;
    line-height: 1.8;
    min-height: 100vh;
    padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
.container { width: min(1240px, 100% - 28px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ltr { direction: ltr; unicode-bidi: isolate; }

/* ---------- buttons & chips ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    min-height: 46px; padding: 0 1.4rem; border-radius: 14px; border: 1px solid transparent;
    font-weight: 600; transition: transform .2s, box-shadow .25s, background .2s, border-color .2s;
    background: var(--surface-2); color: var(--text); white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #07090d; box-shadow: 0 8px 24px -10px var(--c2); }
.btn-primary:hover { box-shadow: 0 12px 30px -8px var(--c2); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--c1); }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 1rem; font-size: .9rem; border-radius: 12px; }
.chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .9rem; border-radius: 99px;
    background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; color: var(--muted);
}
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- announcement + header ---------- */
.announce {
    background: var(--grad); color: #07090d; font-size: .82rem; font-weight: 600; text-align: center; padding: .35rem 1rem; overflow: hidden;
}
.header {
    position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.header.scrolled { border-color: var(--line); box-shadow: 0 6px 24px -16px #000; }
.header-in { min-height: 60px; padding-block: .45rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; }
.logo { display: flex; align-items: center; gap: .5rem; font-weight: 800; font-size: 1.25rem; letter-spacing: -.3px; }
.logo svg { width: 30px; height: 30px; }
.nav-desktop { display: none; gap: .25rem; margin-inline-start: 1.5rem; }
.nav-desktop a { padding: .4rem .9rem; border-radius: 10px; color: var(--muted); font-weight: 500; transition: color .2s, background .2s; }
.nav-desktop a:hover, .nav-desktop a.active { color: var(--text); background: var(--surface-2); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: .25rem; }
.icon-btn {
    position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px;
    background: transparent; border: 0; color: var(--text); transition: background .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); }
.icon-btn:active { transform: scale(.92); }
.badge-dot {
    position: absolute; top: 3px; inset-inline-start: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px;
    background: var(--grad-warm); color: #12090a; font-size: .7rem; font-weight: 800; display: grid; place-items: center;
    transform: scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1);
}
.badge-dot.on { transform: scale(1); }
.badge-dot.bump { animation: bump .5s; }
@keyframes bump { 40% { transform: scale(1.55); } }
.search-pill {
    order: 10; flex: 1 1 100%; display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 1rem; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); color: var(--muted); text-align: start; transition: border-color .2s;
}
.search-pill:hover { border-color: var(--c1); }
.theme-icon-moon { display: none; }
:root[data-theme="light"] .theme-icon-sun { display: none; }
:root[data-theme="light"] .theme-icon-moon { display: block; }

/* ---------- bottom nav (mobile) ---------- */
.bottom-nav {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 45; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom); background: color-mix(in srgb, var(--surface) 90%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
}
.bn-item {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    font-size: .72rem; color: var(--muted); background: none; border: 0; height: 100%; transition: color .2s;
}
.bn-item.active, .bn-item:active { color: var(--c1); }
.bn-item .badge-dot { top: 8px; inset-inline-start: calc(50% - 22px); }
.bn-fab {
    width: 62px; height: 62px; margin-top: -30px; border-radius: 50%; display: grid; place-items: center; justify-self: center;
    background: var(--grad); color: #07090d; border: 5px solid var(--bg); box-shadow: 0 10px 24px -8px var(--c2);
    transition: transform .25s cubic-bezier(.3, 1.5, .5, 1);
}
.bn-fab:active { transform: scale(.88) rotate(-8deg); }
.bn-fab .icon { width: 26px; height: 26px; }

/* ---------- overlays: search, menu, drawer, sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(4, 6, 10, .6); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.panel {
    position: fixed; z-index: 70; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
    transition: transform .38s cubic-bezier(.2, .9, .25, 1), opacity .3s; display: flex; flex-direction: column;
}
.drawer { top: 0; bottom: 0; left: 0; width: min(420px, 100%); transform: translateX(-110%); border-radius: 0; }
.drawer.on { transform: none; }
.menu-panel { top: 0; bottom: 0; right: 0; width: min(330px, 86%); transform: translateX(110%); }
.menu-panel.on { transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-head h3 { font-size: 1.1rem; }
.panel-body { flex: 1; overflow-y: auto; padding: 1rem 1.1rem; overscroll-behavior: contain; }
.panel-foot { padding: 1rem 1.1rem calc(1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.menu-links a { display: flex; align-items: center; gap: .8rem; padding: .85rem .6rem; border-radius: 12px; font-weight: 600; }
.menu-links a:hover { background: var(--surface-2); }

.search-overlay { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; opacity: 0; pointer-events: none; transform: translateY(-12px); transition: opacity .25s, transform .25s; }
.search-overlay.on { opacity: 1; pointer-events: auto; transform: none; }
.search-top { display: flex; gap: .6rem; align-items: center; padding: .8rem 0; }
.search-top input {
    flex: 1; min-height: 52px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
    padding: 0 1.1rem; font: inherit; font-size: 1.05rem; outline: none; transition: border-color .2s, box-shadow .2s;
}
.search-top input:focus { border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 20%, transparent); }
.suggest { display: grid; gap: .6rem; padding-bottom: 2rem; }
.suggest a { display: flex; align-items: center; gap: .9rem; padding: .6rem; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, border-color .2s; }
.suggest a:hover { transform: translateX(-4px); border-color: var(--c1); }
.suggest img { width: 72px; height: 54px; object-fit: contain; border-radius: 10px; background: var(--surface-2); }
.suggest .s-title { font-weight: 600; font-size: .95rem; }
.suggest .s-price { color: var(--c1); font-size: .85rem; }

.sheet { inset-inline: 0; bottom: 0; border-radius: 26px 26px 0 0; transform: translateY(105%); max-height: 88vh; padding-bottom: env(safe-area-inset-bottom); }
.sheet.on { transform: none; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 10px auto 0; }
@media (min-width: 720px) {
    .sheet { inset-inline: 0; margin-inline: auto; width: min(520px, 100%); bottom: 50%; border-radius: 26px; transform: translateY(60%) scale(.95); opacity: 0; pointer-events: none; }
    .sheet.on { transform: translateY(50%); opacity: 1; pointer-events: auto; }
}

/* ---------- toast ---------- */
.toast-wrap { position: fixed; z-index: 100; inset-inline: 0; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); display: grid; justify-items: center; gap: .5rem; pointer-events: none; }
.toast { background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow); padding: .7rem 1.1rem; border-radius: 14px; display: flex; align-items: center; gap: .6rem; animation: toast-in .4s cubic-bezier(.2, 1.2, .3, 1); max-width: calc(100% - 28px); }
.toast.out { animation: toast-out .3s forwards; }
.toast .ok { color: var(--ok); }
@keyframes toast-in { from { transform: translateY(20px) scale(.9); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* ---------- fly-to-cart ---------- */
.fly { position: fixed; z-index: 120; width: 70px; height: 52px; pointer-events: none; transition: transform .75s cubic-bezier(.5, -0.2, .3, 1), opacity .75s; }
.fly img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- sections ---------- */
.section { padding-block: 2.2rem; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.section-head h2 { font-size: 1.35rem; font-weight: 800; position: relative; padding-inline-start: 1rem; }
.section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; top: .35em; bottom: .35em; width: 5px; border-radius: 9px; background: var(--grad); }
.section-head a { color: var(--c1); font-weight: 600; font-size: .92rem; display: inline-flex; gap: .3rem; align-items: center; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; } .reveal[data-d="2"] { transition-delay: .16s; } .reveal[data-d="3"] { transition-delay: .24s; }

/* ---------- banner slider (full width) ---------- */
.bsl-wrap { padding: 0; }
.bsl { position: relative; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); isolation: isolate; }
.bsl-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.bsl-track::-webkit-scrollbar { display: none; }
.bsl-slide { flex: none; width: 100%; scroll-snap-align: center; aspect-ratio: 8 / 3; max-height: 680px; overflow: hidden; }
.bsl-slide a, .bsl-slide picture { display: block; width: 100%; height: 100%; }
.bsl-slide img { display: block; width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; transform: scale(1.001); }
/* The visible slide slowly settles from a slight zoom. */
.bsl-slide.is-active img { animation: bsl-zoom 7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes bsl-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@media (max-width: 719px) { .bsl-square .bsl-slide { aspect-ratio: 1 / 1; } }
/* Soft shade at the bottom keeps the controls readable on any artwork. */
.bsl-shade { position: absolute; inset-inline: 0; bottom: 0; height: 90px; background: linear-gradient(to top, rgba(0, 0, 0, .38), transparent); pointer-events: none; z-index: 1; }
.bsl-arrow {
    position: absolute; z-index: 2; top: 50%; translate: 0 -50%; width: 48px; height: 48px; border-radius: 50%; display: none; place-items: center; color: #fff;
    border: 1px solid rgba(255, 255, 255, .28); background: rgba(10, 12, 18, .35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    opacity: 0; transition: opacity .3s, transform .25s, background .2s;
}
.bsl:hover .bsl-arrow, .bsl-arrow:focus-visible { opacity: 1; }
.bsl-arrow:hover { background: rgba(10, 12, 18, .6); transform: scale(1.1); }
.bsl-arrow:active { transform: scale(.92); }
.bsl-prev { right: 22px; } .bsl-next { left: 22px; }
.bsl-count {
    position: absolute; z-index: 2; top: 14px; inset-inline-end: 14px; display: flex; gap: .3rem; align-items: baseline; padding: .15rem .8rem; border-radius: 99px;
    color: #fff; font-size: .8rem; background: rgba(10, 12, 18, .4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .2);
}
.bsl-count b { font-size: 1rem; }
.bsl-count span { opacity: .75; }
/* Segmented progress: the filled segment is also the autoplay timer. */
.bsl-dots { position: absolute; z-index: 2; inset-inline: 0; bottom: 14px; display: flex; justify-content: center; gap: .4rem; pointer-events: none; }
.bsl-dots button { pointer-events: auto; position: relative; width: 26px; height: 22px; padding: 0; border: 0; background: none; }
.bsl-dots button i { position: absolute; inset-inline: 0; top: 9px; height: 4px; border-radius: 9px; background: rgba(255, 255, 255, .4); overflow: hidden; transition: background .3s; }
.bsl-dots button i::after { content: ""; position: absolute; inset: 0; background: #fff; border-radius: inherit; transform: scaleX(0); transform-origin: right; }
.bsl-dots button.done i::after { transform: scaleX(1); }
.bsl-dots button.on i::after { animation: bsl-fill var(--bsl-time, 5s) linear forwards; }
.bsl.is-paused .bsl-dots button.on i::after { animation-play-state: paused; }
.bsl.no-autoplay .bsl-dots button.on i::after { animation: none; transform: scaleX(1); }
@keyframes bsl-fill { to { transform: scaleX(1); } }
@media (min-width: 720px) { .bsl-dots button { width: 40px; } }
.bsl-fallback { display: grid; gap: 1rem; align-items: center; padding: 1.8rem 1.4rem; border-radius: 22px; background: var(--grad); color: #07090d; }
.bsl-fallback h1 { font-size: clamp(1.6rem, 6vw, 2.6rem); font-weight: 900; line-height: 1.3; margin-block: .5rem; }
.bsl-fallback .gradient-text { background: none; color: #fff; }
.bsl-fallback .chip { background: rgba(255, 255, 255, .35); border-color: transparent; color: #07090d; }
.bsl-fallback .btn { background: #07090d; color: #fff; width: fit-content; }
@media (min-width: 1024px) { .bsl-arrow { display: grid; } .bsl-fallback { grid-template-columns: 1fr auto; padding: 2.6rem 3rem; } }
.bsl-fallback { margin-top: 1rem; }

.marquee { border-block: 1px solid var(--line); background: var(--bg-soft); overflow: hidden; white-space: nowrap; }
.marquee-track { display: flex; width: max-content; animation: marq var(--marq-dur, 28s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; min-width: 100vw; justify-content: space-around; gap: 2.4rem; padding: .8rem 1.2rem; }
.marquee span { display: inline-flex; gap: .6rem; align-items: center; color: var(--muted); font-weight: 600; }
.marquee i { width: 8px; height: 8px; border-radius: 2px; background: var(--grad); transform: rotate(45deg); display: inline-block; }
@keyframes marq { to { transform: translateX(50%); } }

/* ---------- categories & brands ---------- */
.cat-row { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x proximity; padding-top: .5rem; padding-bottom: .6rem; scrollbar-width: none; margin-inline: -14px; padding-inline: 14px; }
.cat-row::-webkit-scrollbar { display: none; }
/* Soft fade on both edges hints that the row scrolls; the mouse can drag it. */
.cat-row { -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent); mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent); }
.cat-row.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.cat-row.dragging a { pointer-events: none; }
.cat-card img { -webkit-user-drag: none; user-select: none; }
.row-wrap { position: relative; }
.row-btn {
    display: none; position: absolute; z-index: 3; top: calc(50% - 22px); width: 44px; height: 44px; border-radius: 50%; place-items: center; color: var(--text);
    background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: blur(8px);
    transition: transform .2s, border-color .2s, opacity .2s;
}
.row-btn:hover { border-color: var(--c1); transform: scale(1.08); }
.row-btn:active { transform: scale(.94); }
.row-btn-start { right: -14px; } .row-btn-end { left: -14px; }
@media (min-width: 1024px) { .row-btn.on { display: grid; } .cat-row { scroll-snap-type: none; } }
.cat-card {
    flex: none; width: 112px; scroll-snap-align: start; display: grid; justify-items: center; gap: .5rem; padding: 1rem .6rem; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-weight: 600; font-size: .92rem;
    transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), border-color .2s, box-shadow .3s;
}
.cat-card img { width: 52px; height: 52px; border-radius: 16px; }
.cat-card:hover { transform: translateY(-6px) rotate(-1.5deg); border-color: var(--c1); box-shadow: var(--shadow); }
.cat-card small { color: var(--muted); font-weight: 400; }

/* ---------- product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.h-scroll { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -14px; padding: 0 14px .8rem; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .card { flex: none; width: 62%; max-width: 280px; scroll-snap-align: start; }
.card {
    position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; transition: transform .35s cubic-bezier(.2, .9, .3, 1), border-color .25s, box-shadow .35s;
}
.card:hover { border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); box-shadow: var(--shadow); }
.card-media { position: relative; display: block; aspect-ratio: 1 / .76; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface)); overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 4%; transition: opacity .45s, transform .6s cubic-bezier(.2, .9, .3, 1); }
.card-media img.alt { opacity: 0; transform: scale(.94) rotate(-4deg); }
.card:hover .card-media img.main { transform: scale(1.08) rotate(3deg); }
.card:hover .card-media img.has-alt.main { opacity: 0; }
.card:hover .card-media img.alt { opacity: 1; transform: none; }
.no-photo { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }
.discount-badge {
    position: absolute; top: .6rem; inset-inline-start: .6rem; z-index: 2; padding: .1rem .6rem; border-radius: 99px; font-size: .78rem; font-weight: 800;
    background: var(--grad-warm); color: #190a0c;
}
.heart {
    position: absolute; top: .45rem; inset-inline-end: .45rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(8px); border: 0; color: var(--text); transition: transform .25s cubic-bezier(.3, 1.8, .5, 1);
}
.heart:active { transform: scale(.8); }
.heart.on { color: #fb7185; }
.heart.on .icon { fill: currentColor; animation: pop .45s; }
@keyframes pop { 40% { transform: scale(1.4); } }
.card-body { padding: .75rem .85rem .9rem; display: grid; gap: .25rem; flex: 1; }
.card-brand { font-size: .76rem; color: var(--muted); }
.card-title { font-weight: 600; font-size: .92rem; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.2em; }
.price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: .1rem .6rem; margin-top: .2rem; }
.price { font-weight: 800; font-size: 1rem; }
.price small { font-weight: 500; color: var(--muted); font-size: .72rem; margin-inline-start: .2rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .8rem; }
.card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: .5rem; margin-top: auto; }
.quick-add {
    flex: none; width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center;
    border: 0; background: var(--grad); color: #07090d; box-shadow: 0 8px 18px -8px var(--c2); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.quick-add:hover { transform: scale(1.12) rotate(90deg); }
.quick-add:active { transform: scale(.88); }

/* ---------- promo banner ---------- */
.promo {
    position: relative; overflow: hidden; border-radius: 26px; padding: 1.6rem 1.4rem; background: var(--grad-warm); color: #1b0a10;
    display: grid; gap: .6rem; isolation: isolate;
}
.promo::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .35); z-index: -1; }
.promo h3 { font-size: 1.5rem; font-weight: 900; }
.promo .btn { background: #12090c; color: #fff; width: fit-content; }

/* ---------- size guide (opened on demand from the product page) ---------- */
.finder { display: grid; gap: 1rem; }
.finder-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; font-weight: 600; }
.finder-row b { font-size: 1.1rem; }
.finder input[type=range] { width: 100%; accent-color: var(--c1); height: 36px; }
.finder-result { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.1rem; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 600; }
.finder-result b { font-size: 2.4rem; line-height: 1; }

/* ---------- shop page ---------- */
.page-head { padding-block: 1.4rem .6rem; }
.page-head h1 { font-size: 1.6rem; font-weight: 800; }
.crumbs { color: var(--muted); font-size: .85rem; display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem; }
.crumbs a:hover { color: var(--c1); }
.toolbar { display: flex; gap: .6rem; align-items: center; overflow-x: auto; padding-block: .6rem; scrollbar-width: none; position: sticky; top: var(--header-h); z-index: 20; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); margin-inline: -14px; padding-inline: 14px; }
.toolbar::-webkit-scrollbar { display: none; }
.pill { flex: none; padding: .35rem 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); font-size: .88rem; font-weight: 600; transition: all .2s; }
.pill { display: inline-flex; align-items: center; gap: .45rem; }
.pill-icon { width: 22px; height: 22px; border-radius: 7px; object-fit: cover; flex: none; }
.pill:hover { border-color: var(--c1); }
.pill.on { background: var(--grad); color: #07090d; border-color: transparent; }
select.pill { appearance: none; padding-inline-end: 1rem; color: var(--text); }
.shop-layout { display: grid; gap: 1rem; }
.filters { display: none; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--muted); display: grid; gap: .8rem; justify-items: center; }
.load-more { display: grid; place-items: center; padding: 1.6rem 0; }

/* ---------- product page ---------- */
.pdp { display: grid; gap: 1.2rem; padding-block: .6rem 2rem; }
.gallery { position: relative; }
.gallery-main { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 24px; background: radial-gradient(circle at 50% 40%, var(--surface-2), var(--surface)); border: 1px solid var(--line); scrollbar-width: none; }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main .slide { flex: none; width: 100%; aspect-ratio: 1 / .85; scroll-snap-align: center; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 7%; }
.dots { display: flex; justify-content: center; gap: .4rem; margin-top: .7rem; }
.dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: all .3s; }
.dots i.on { width: 24px; background: var(--grad); }
.thumbs { display: none; }
.pdp-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; }
.pdp-info h1 { font-size: 1.45rem; font-weight: 800; line-height: 1.6; }
.pdp-price { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.pdp-price .price { font-size: 1.7rem; }
.save-chip { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); border-radius: 99px; padding: .05rem .7rem; font-size: .82rem; font-weight: 700; }
.size-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.size-btn { min-width: 52px; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 700; transition: all .2s cubic-bezier(.3, 1.5, .5, 1); }
.size-btn:hover { border-color: var(--c1); transform: translateY(-2px); }
.size-btn.on { background: var(--grad); color: #07090d; border-color: transparent; transform: scale(1.06); }
.size-btn:disabled, .size-btn.out { opacity: .4; text-decoration: line-through; cursor: not-allowed; transform: none; border-style: dashed; }
.color-grid { display: flex; flex-wrap: wrap; gap: .6rem; }
.color-btn { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--line); background: transparent; padding: 3px; transition: all .2s; }
.color-btn i { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35); }
.color-btn:hover { border-color: var(--c1); transform: translateY(-2px); }
.color-btn.on { border-color: var(--c1); box-shadow: 0 0 0 2px var(--c1); }
.color-btn:disabled { opacity: .35; cursor: not-allowed; transform: none; position: relative; }
.color-btn:disabled::after { content: ""; position: absolute; inset: 50% -2px auto; border-top: 2px solid var(--danger); transform: rotate(-45deg); }
.color-dot { display: inline-block; width: .8em; height: .8em; border-radius: 50%; margin-inline-end: .3em; vertical-align: -.05em; box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .4); }
.size-btn.shake { animation: shake .4s; border-color: var(--danger); }
@keyframes shake { 25% { transform: translateX(6px); } 50% { transform: translateX(-6px); } 75% { transform: translateX(4px); } }
.field-label { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: .5rem; }
.linkish { color: var(--c1); background: none; border: 0; font-weight: 600; font-size: .88rem; padding: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); height: 48px; }
.qty button { width: 44px; height: 100%; border: 0; background: none; font-size: 1.3rem; }
.qty b { min-width: 2ch; text-align: center; }
.buy-row { display: flex; gap: .6rem; align-items: center; }
.buy-row .btn-primary { flex: 1; min-width: 0; min-height: 52px; font-size: 1rem; padding-inline: .8rem; }
.buy-row [data-share] { display: none; }
@media (min-width: 640px) { .buy-row [data-share] { display: grid; } }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.trust div { display: flex; gap: .5rem; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem; font-size: .82rem; color: var(--muted); }
.trust .icon { color: var(--c1); }
.desc { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.2rem; color: var(--muted); }
.sticky-buy {
    position: fixed; inset-inline: 0; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); z-index: 44; padding: .6rem 14px;
    background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
    display: flex; align-items: center; gap: .8rem; transform: translateY(120%); transition: transform .35s;
}
.sticky-buy.on { transform: none; }
.sticky-buy .price { font-size: 1.05rem; }
.sticky-buy .btn { flex: 1; }

/* ---------- cart & checkout ---------- */
.cart-layout { display: grid; gap: 1rem; padding-bottom: 2rem; }
.line { display: grid; grid-template-columns: 92px 1fr; gap: .9rem; padding: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; align-items: center; }
.line + .line { margin-top: .7rem; }
.line img { width: 92px; height: 74px; object-fit: contain; background: var(--surface-2); border-radius: 12px; }
.line-title { font-weight: 600; font-size: .92rem; }
.line-meta { color: var(--muted); font-size: .8rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.line-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .4rem; flex-wrap: wrap; }
.line .qty { height: 38px; } .line .qty button { width: 34px; }
.rm { color: var(--danger); background: none; border: 0; font-size: .82rem; display: inline-flex; gap: .2rem; align-items: center; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.1rem; display: grid; gap: .7rem; align-content: start; }
.sum-row { display: flex; justify-content: space-between; color: var(--muted); }
.sum-row.total { color: var(--text); font-weight: 800; font-size: 1.1rem; padding-top: .7rem; border-top: 1px dashed var(--line); }
.ship-bar { height: 8px; border-radius: 9px; background: var(--surface-2); overflow: hidden; }
.ship-bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 9px; transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.ship-text { font-size: .85rem; color: var(--muted); }
.ship-text b { color: var(--c1); }

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem; display: grid; gap: 1rem; }
.field { display: grid; gap: .35rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 50px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg-soft); color: var(--text);
    padding: .6rem 1rem; font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--c1); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c1) 18%, transparent); }
.field .err, .validation-summary-errors, .text-danger { color: var(--danger); font-size: .84rem; }
.validation-summary-errors ul { margin: 0; padding-inline-start: 1.1rem; }
.addr-card { display: flex; gap: .8rem; align-items: start; padding: .9rem 1rem; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .2s; }
.addr-card:has(input:checked) { border-color: var(--c1); background: color-mix(in srgb, var(--c1) 8%, var(--surface)); }
.addr-card input { accent-color: var(--c1); margin-top: .45rem; }
.auth-wrap { min-height: 60vh; display: grid; place-items: center; padding-block: 2rem; }
.auth-card { width: min(440px, 100%); }
.status { display: inline-block; padding: .05rem .7rem; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-2); }
.status.Delivered, .status.Paid { color: var(--ok); }
.status.Cancelled, .status.Rejected { color: var(--danger); }
.status.Accepted { color: var(--c1); }
.order-card { display: grid; gap: .5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.order-card + .order-card { margin-top: .7rem; }

.success { text-align: center; display: grid; gap: .8rem; justify-items: center; padding: 3rem 0; position: relative; overflow: hidden; }
.success .check { width: 92px; height: 92px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #07090d; animation: pop .7s cubic-bezier(.3, 1.6, .5, 1); }
.success .check .icon { width: 46px; height: 46px; stroke-width: 2.6; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 3.4s linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); } }

/* ---------- footer ---------- */
.footer { margin-top: 2rem; background: var(--bg-soft); border-top: 1px solid var(--line); padding-block: 2rem 1.2rem; color: var(--muted); font-size: .9rem; }
.footer-grid { display: grid; gap: 1.6rem; }
.footer h4 { color: var(--text); margin-bottom: .6rem; }
.footer a { display: block; padding: .15rem 0; }
.footer a:hover { color: var(--c1); }
.copy { margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); text-align: center; font-size: .82rem; }

.to-top { display: none; }

/* Single-column grids must be allowed to shrink below their content (scrollers inside would stretch the page). */
.pdp, .cart-layout, .shop-layout { grid-template-columns: minmax(0, 1fr); }
.pdp > *, .cart-layout > *, .shop-layout > * { min-width: 0; }

/* ---------- desktop ---------- */
@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
    .h-scroll .card { width: 260px; }
    .trust { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
    :root { --header-h: 72px; }
    body { padding-bottom: 0; }
    .bottom-nav, .sticky-buy, .mobile-only { display: none !important; }
    .nav-desktop { display: flex; }
    .header-in { flex-wrap: nowrap; height: var(--header-h); min-height: 0; padding-block: 0; }
    .search-pill { order: 0; flex: 0 1 320px; margin-inline-start: auto; }
    .header-actions { margin-inline-start: 0; }
    .grid { grid-template-columns: repeat(4, 1fr); }
    .cat-card { width: 150px; }
    .h-scroll { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; }
    .h-scroll .card { width: auto; max-width: none; }
    .shop-layout { grid-template-columns: 250px 1fr; align-items: start; }
    .filters { display: grid; gap: 1rem; position: sticky; top: calc(var(--header-h) + 16px); }
    .toolbar { position: static; margin-inline: 0; padding-inline: 0; background: none; backdrop-filter: none; }
    .toolbar .only-mobile { display: none; }
    .pdp { grid-template-columns: 1.1fr 1fr; gap: 2.4rem; }
    .gallery { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
    .thumbs { display: flex; gap: .6rem; margin-top: .8rem; }
    .thumbs button { width: 84px; height: 66px; padding: 4px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface); overflow: hidden; transition: border-color .2s; }
    .thumbs button.on { border-color: var(--c1); }
    .thumbs img { width: 100%; height: 100%; object-fit: contain; }
    .dots { display: none; }
    .cart-layout { grid-template-columns: 1fr 380px; align-items: start; }
    .summary { position: sticky; top: calc(var(--header-h) + 16px); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .toast-wrap { bottom: 24px; }
    .section { padding-block: 3rem; }
    .promo { grid-template-columns: 1fr auto; align-items: center; padding: 2.2rem 2.6rem; }
    .to-top { display: grid; position: fixed; z-index: 30; inset-inline-start: 24px; bottom: 24px; opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; transform: translateY(10px); width: 46px; height: 46px; border-radius: 50%; place-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
    .to-top.on { opacity: 1; pointer-events: auto; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
    .js .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}

.mobile-hide { display: none; }
.desk-only { display: none; }
@media (min-width: 1024px) { .mobile-hide { display: grid; } .desk-only { display: inline; } }
.text-danger { color: var(--danger); font-size: .85rem; }

/* ---------- customer panel ---------- */
.panel-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-block: 1rem 2rem; }
.panel-side { display: grid; gap: .8rem; align-content: start; }
.panel-user { display: flex; align-items: center; gap: .8rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.panel-user small { display: block; color: var(--muted); font-size: .8rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #07090d; font-weight: 800; font-size: 1.2rem; flex: none; }
/* Phones: the menu is a row of tabs that scrolls sideways. */
.panel-nav { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
.panel-nav::-webkit-scrollbar { display: none; }
.panel-nav a, .panel-logout button {
    flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--line); background: var(--surface);
    font-weight: 600; font-size: .9rem; transition: all .2s; white-space: nowrap;
}
.panel-nav a .icon, .panel-logout .icon { width: 18px; height: 18px; }
.panel-nav a:hover { border-color: var(--c1); }
.panel-nav a.on { background: var(--grad); color: #07090d; border-color: transparent; }
.panel-logout { margin: 0; }
.panel-logout button { color: var(--danger); }
.panel-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.panel-main { min-width: 0; }
.panel-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.flash { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: 14px; margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface); }
.flash .icon { width: 20px; height: 20px; flex: none; }
.flash-ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }
.flash-err { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.stat { display: grid; gap: .1rem; padding: 1rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); transition: transform .25s cubic-bezier(.3, 1.4, .5, 1), border-color .2s; }
.stat:hover { transform: translateY(-3px); border-color: var(--c1); }
.stat b { font-size: 1.7rem; line-height: 1.2; }
.stat span { color: var(--muted); font-size: .85rem; }
.order-link { transition: border-color .2s, transform .2s; }
.order-link:hover { border-color: var(--c1); transform: translateY(-2px); }
.order-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; }
.order-code { color: var(--muted); font-size: .9rem; }
.thumbs-row { display: flex; gap: .4rem; }
.thumb { width: 54px; height: 44px; border-radius: 10px; background: var(--surface-2); display: grid; place-items: center; overflow: hidden; color: var(--muted); font-size: .8rem; font-weight: 700; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }
.order-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; color: var(--muted); font-size: .88rem; }
.order-meta b { color: var(--text); }
.steps { display: flex; margin-bottom: 1.2rem; }
.step { flex: 1; display: grid; justify-items: center; gap: .3rem; position: relative; color: var(--muted); font-size: .82rem; text-align: center; }
.step i { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 2px solid var(--line); position: relative; z-index: 1; }
.step i .icon { width: 16px; height: 16px; stroke-width: 3; }
.step::before { content: ""; position: absolute; top: 14px; inset-inline-start: 50%; width: 100%; height: 3px; background: var(--line); }
.step:last-child::before { display: none; }
.step.done::before { background: var(--c1); }
.step.done i, .step.now i { background: var(--grad); border-color: transparent; color: #07090d; }
.step.done, .step.now { color: var(--text); font-weight: 600; }
.status.Accepted { color: var(--c1); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem; padding: .3rem; border-radius: 14px; background: var(--surface-2); }
.auth-tabs a { text-align: center; padding: .5rem; border-radius: 11px; font-weight: 700; color: var(--muted); transition: all .2s; }
.auth-tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

@media (min-width: 1024px) {
    .panel-layout { grid-template-columns: 270px minmax(0, 1fr); gap: 1.6rem; padding-block: 1.6rem 3rem; }
    .panel-side { position: sticky; top: calc(var(--header-h) + 16px); align-self: start; }
    .panel-nav { flex-direction: column; overflow: visible; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: .5rem; gap: .15rem; }
    .panel-nav a, .panel-logout button { border: 0; background: none; border-radius: 12px; padding: .65rem .9rem; width: 100%; }
    .panel-nav a:hover { background: var(--surface-2); }
    .panel-nav a.on { background: var(--grad); }
    .panel-logout { margin-top: .3rem; border-top: 1px solid var(--line); padding-top: .3rem; }
    .stat-grid { grid-template-columns: repeat(4, 1fr); }
    .panel-cols { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
}

/* ---------- about page / enamad ---------- */
.about { max-width: 780px; padding-block: 2rem 1rem; display: grid; gap: 2rem; }
.about-hero { position: relative; text-align: center; padding: 2.4rem 1rem; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.about-hero::before { content: ""; position: absolute; inset: -40% 20% auto; height: 80%; background: var(--grad); opacity: .16; filter: blur(70px); animation: aboutGlow 7s ease-in-out infinite alternate; }
.about-hero > * { position: relative; }
.about-gem svg { width: 3.2rem; height: 3.2rem; animation: aboutFloat 4s ease-in-out infinite; }
.about h1 { font-size: 2rem; margin: .5rem 0 .6rem; }
.about h2 { font-size: 1.1rem; margin-bottom: .6rem; }
.about-lead { color: var(--muted); line-height: 2; }
.about-text p { line-height: 2.1; font-size: 1.02rem; color: var(--muted); margin-bottom: .9rem; }
.about-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; text-align: center; }
.about-stats > div { position: relative; display: grid; justify-items: center; gap: .15rem; padding: 1.5rem .8rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s; }
.about-stats > div::after { content: ""; position: absolute; inset-inline: 25%; bottom: 0; height: 2px; background: var(--grad); opacity: .5; transition: inset-inline .3s, opacity .3s; }
.about-stats > div:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c1) 55%, var(--line)); box-shadow: var(--shadow); }
.about-stats > div:hover::after { inset-inline: 0; opacity: 1; }
.about-stats .icon { width: 1.5rem; height: 1.5rem; color: var(--c1); margin-bottom: .3rem; }
.about-stats b { font-size: 2.2rem; line-height: 1.2; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.about-stats span { color: var(--muted); font-size: .9rem; }
.about-card { padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.about-card-note { color: var(--muted); font-size: .92rem; line-height: 1.9; margin-bottom: .5rem; }
.about-cta { text-align: center; }
.f-line { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.f-line .icon { width: 1.1rem; height: 1.1rem; color: var(--c1); flex: none; }
a.f-line:hover { color: var(--c1); }
@keyframes aboutFloat { 50% { transform: translateY(-6px) rotate(4deg); } }
@keyframes aboutGlow { to { transform: translateX(14%) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { .about-hero::before, .about-gem svg { animation: none; } }
.enamad { margin-top: 1.4rem; display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; }
.enamad img { max-height: 90px; width: auto; }
.footer .enamad a { display: inline-block; }
.footer .f-info { display: flex; align-items: center; gap: .5rem; padding: .25rem 0; }
.footer .f-info .icon { width: 1.1rem; height: 1.1rem; flex: none; color: var(--c1); }
.footer .f-info bdi { overflow-wrap: anywhere; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; } }
.logo-img { height: 34px; width: auto; max-width: 120px; object-fit: contain; }
.about-gem img { height: 3.6rem; width: auto; max-width: 160px; object-fit: contain; animation: aboutFloat 4s ease-in-out infinite; }
.socials { display: flex; gap: .5rem; margin-top: .8rem; }
.footer .socials a, .socials a { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); transition: transform .25s, color .25s, border-color .25s; }
.socials a:hover { transform: translateY(-3px); color: var(--c1); border-color: var(--c1); }
.socials .icon { width: 1.15rem; height: 1.15rem; }
.about-card .socials { margin-top: .6rem; }

/* contact card on the about page */
.about-card h2 { font-size: 1.25rem; font-weight: 800; }
.about-card-note { font-size: .95rem; }
.contact-list { display: grid; gap: .7rem; margin-top: .4rem; }
@media (min-width: 700px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
.contact-item { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-soft); transition: transform .25s, border-color .25s, box-shadow .25s; }
a.contact-item:hover { transform: translateY(-3px); border-color: var(--c1); box-shadow: var(--shadow); }
.ci-ico { flex: none; width: 2.8rem; height: 2.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; }
.ci-ico .icon { width: 1.3rem; height: 1.3rem; color: #fff; }
.ci-txt { display: grid; min-width: 0; text-align: start; }
.ci-txt small { color: var(--muted); font-size: .8rem; }
.ci-txt b { font-size: 1.1rem; font-weight: 800; color: var(--text); overflow-wrap: anywhere; text-align: start; }
.socials.labeled { gap: .7rem; flex-wrap: wrap; margin-top: 1rem; }
.socials.labeled a { width: auto; height: auto; padding: .65rem 1.1rem; gap: .5rem; display: inline-flex; align-items: center; border-radius: 999px; font-weight: 800; font-size: .98rem; }
.socials.labeled a:hover { background: var(--grad); color: #fff; border-color: transparent; }
.socials.labeled .icon { width: 1.3rem; height: 1.3rem; }

/* about page: address on its own, social cards in each app's colour */
.contact-address { margin-top: .7rem; }
.contact-list + .socials.labeled { margin-top: .7rem; }
.socials.labeled { display: grid; gap: .7rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .socials.labeled { grid-template-columns: repeat(3, 1fr); } }
.socials.labeled a { display: flex; align-items: center; gap: .8rem; width: auto; height: auto; padding: .9rem 1rem; border-radius: 14px; border: 0; color: #fff; text-align: start; }
.socials.labeled a .icon { width: 1.7rem; height: 1.7rem; flex: none; padding: .35rem; box-sizing: content-box; border-radius: 50%; background: rgba(255, 255, 255, .22); color: #fff; }
.socials.labeled .soc-txt { display: grid; }
.socials.labeled .soc-txt b { font-size: 1.05rem; font-weight: 800; color: #fff; }
.socials.labeled .soc-txt small { font-size: .8rem; color: rgba(255, 255, 255, .85); }
.socials.labeled a.soc-instagram { background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888); }
.socials.labeled a.soc-telegram { background: #229ed9; }
.socials.labeled a.soc-whatsapp { background: #25d366; }
.socials.labeled a:hover { color: #fff; border: 0; transform: translateY(-3px); filter: brightness(1.08); box-shadow: var(--shadow); }

/* ---------- compact footer on phones ---------- */
@media (max-width: 719px) {
    .footer { padding-block: 1.4rem 1rem; margin-top: 1rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
    .f-brand, .f-contact, .f-help { grid-column: 1 / -1; }
    .f-brand { order: 1; } .f-contact { order: 2; } .f-shop { order: 3; } .f-account { order: 4; } .f-help { order: 5; }
    .f-brand p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.8; }
    .f-brand .socials { margin-top: .7rem; }
    .footer h4 { margin-bottom: .3rem; font-size: .95rem; }
    .footer a { padding-block: .4rem; }
    .f-contact h4, .f-help h4 { display: none; }
    .f-contact { display: grid; gap: .5rem; }
    .f-contact .f-info { padding: .55rem 1rem; min-height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; }
    .f-contact a.f-info:active { border-color: var(--c1); }
    .f-contact span.f-info { font-weight: 500; color: var(--muted); font-size: .85rem; }
    .f-help { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .9rem; border-top: 1px solid var(--line); }
    .f-help a, .f-help .f-info { display: inline-flex; padding: .4rem .8rem; border-radius: 999px; border: 1px solid var(--line); font-size: .82rem; }
    .f-help .f-info .icon { width: 1rem; height: 1rem; }
    .copy { margin-top: 1rem; padding-top: .8rem; }
}

/* footer: social pills in each app's colour + about link; help column removed */
.footer .socials.pills { flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.footer .socials.pills a { display: inline-flex; align-items: center; gap: .4rem; width: auto; height: auto; padding: .45rem .9rem; border-radius: 999px; border: 0; color: #fff; font-weight: 700; font-size: .85rem; }
.footer .socials.pills a .icon { width: 1.1rem; height: 1.1rem; color: #fff; }
.footer .socials.pills a:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.1); }
.socials.pills a.soc-instagram { background: linear-gradient(135deg, #f09433, #dc2743 55%, #bc1888); }
.socials.pills a.soc-telegram { background: #229ed9; }
.socials.pills a.soc-whatsapp { background: #25d366; }
.footer a.f-about { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; padding: .5rem 1rem; border-radius: 12px; border: 1px solid var(--c1); color: var(--c1); font-weight: 800; }
.footer a.f-about .icon { width: 1rem; height: 1rem; }
.footer a.f-about:hover { background: var(--grad); color: #fff; border-color: transparent; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
@media (min-width: 720px) and (max-width: 899px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .f-brand, .f-contact { grid-column: 1 / -1; }
}
