:root {
    /* Vuexy's palette (the RaboTeb green); a store's own colour overrides these in StoreLayout. */
    --primary: var(--bs-primary, #208d44);
    --primary-hover: #1d7f3d;
    --primary-deep: #0d381b;
    --ink-green: #06130f;
    --mint: #79bb8f;
    --tint: #eef6f1;
    --accent: var(--primary);
    --bg: var(--bs-body-bg, #f8f7fa);
    --surface: #fff;
    --border: var(--bs-border-color, #dbdade);
    --text: var(--bs-heading-color, #5d596c);
    --muted: var(--bs-secondary-color, #a5a3ae);
    --success: var(--bs-success, #28c76f);
    --danger: var(--bs-danger, #ea5455);
    --radius: .5rem;
    --radius-lg: 1.25rem;
    --notch: 24px;
    --shadow: 0 .25rem 1.125rem rgba(75, 70, 92, .1);
    --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
a { color: var(--accent); text-decoration: none; }
img { max-width: 100%; display: block; }
h1 { font-size: 1.4rem; }
h2 { font-size: 1.1rem; margin-top: 1.5rem; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.st-icon { width: 1.35em; height: 1.35em; flex: none; }

/* Header */
.st-promo {
    display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem 1rem; text-align: center;
    color: #fff; font-size: .85rem; font-weight: 500; background: var(--primary) url(../img/leaf-pattern.svg);
}
.st-round { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 50%; color: var(--text); }
.st-round:hover { color: var(--primary); border-color: var(--primary); }
.st-round .badge { position: absolute; top: -4px; right: -4px; }
.inline { display: inline; }

/* Dropdown menus: plain <details>, so they need no script to open */
.st-menu { position: relative; }
.st-menu > summary { list-style: none; }
.st-menu > summary::-webkit-details-marker { display: none; }
.st-dropdown {
    position: absolute; top: calc(100% + .6rem); right: 0; z-index: 20; display: flex; flex-direction: column; gap: .1rem;
    min-width: 230px; max-height: 70vh; overflow-y: auto; padding: .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.st-menu.end .st-dropdown { right: auto; left: 0; }
.st-dropdown .st-icon { color: var(--primary); }

/* Buttons */
.st-btn-light { background: #fff; border-color: #fff; color: var(--primary-deep); }
.link { background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; font: inherit; }
.link.danger { color: var(--danger); }

/* Notched tabs: a block in the page colour bites into a section's corner. The concave
   joins are small squares painted page-colour outside a transparent quarter circle. */
.st-tab { position: absolute; z-index: 2; top: 0; right: 0; color: var(--text); background: var(--bg); padding: 0 .25rem 1rem 1.75rem; border-bottom-left-radius: var(--notch); }
.st-tab h1, .st-tab h2 { margin: 0; }
.st-tab::before, .st-tab::after { content: ""; position: absolute; width: var(--notch); height: var(--notch); background: radial-gradient(circle at 0 100%, transparent calc(var(--notch) - .5px), var(--bg) var(--notch)); }
.st-tab::before { top: 0; right: 100%; }
.st-tab::after { top: 100%; right: 0; }
.st-tab.bottom-left { top: auto; right: auto; bottom: 0; left: 0; padding: .9rem 1.75rem 0 0; border-radius: 0 var(--notch) 0 0; }
.st-tab.bottom-left::before, .st-tab.bottom-left::after { background: radial-gradient(circle at 100% 0, transparent calc(var(--notch) - .5px), var(--bg) var(--notch)); }
.st-tab.bottom-left::before { top: auto; bottom: 0; right: auto; left: 100%; }
.st-tab.bottom-left::after { top: auto; bottom: 100%; right: auto; left: 0; }
.st-tab.bottom-left a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; }
.st-tab.bottom-center { top: auto; right: 12%; bottom: 0; padding: .8rem 1.75rem 0; border-radius: var(--notch) var(--notch) 0 0; }
.st-tab.bottom-center::before { top: auto; bottom: 0; right: 100%; background: radial-gradient(circle at 0 0, transparent calc(var(--notch) - .5px), var(--bg) var(--notch)); }
.st-tab.bottom-center::after { top: auto; bottom: 0; right: auto; left: 100%; background: radial-gradient(circle at 100% 0, transparent calc(var(--notch) - .5px), var(--bg) var(--notch)); }
.st-tab h2 { position: relative; padding-inline-start: .8rem; font-size: 1.15rem; font-weight: 800; }
.st-tab h2::before { content: ""; position: absolute; right: 0; inset-block: .15em; width: 4px; border-radius: 4px; background: var(--primary); }

/* Home: quick links */
.st-stories { display: flex; gap: 1.5rem; overflow-x: auto; padding: 1.4rem .25rem 1rem; scrollbar-width: none; justify-content: safe center; }
.st-stories::-webkit-scrollbar { display: none; }
.st-stories a { flex: none; display: flex; flex-direction: column; align-items: center; gap: .5rem; width: 92px; color: var(--text); font-size: .9rem; font-weight: 500; }
.st-stories span {
    display: flex; align-items: center; justify-content: center; width: 84px; height: 84px; border-radius: 50%; color: var(--primary); font-size: 1.6rem;
    background: var(--tint); border: 3px solid #fff; box-shadow: 0 0 0 2.5px var(--primary); transition: transform .2s;
}
.st-stories a:hover span { transform: scale(1.06); }

/* Home: hero */
.st-hero { position: relative; aspect-ratio: 16 / 7.4; min-height: 380px; width: 100%; margin-top: .5rem; border-radius: var(--radius-lg); background: var(--primary-deep) url(../img/hero-shop.svg) center / cover; }
.st-hero > .st-tab:first-child { max-width: 58%; padding: 0 .4rem 1.4rem 2.5rem; }
.st-hero h1 { font-size: clamp(1.5rem, 3.1vw, 2.5rem); line-height: 1.5; font-weight: 800; }
.st-hero mark { display: table; margin-top: .3rem; padding: 0 .75rem; border-radius: 10px; color: var(--primary); background: var(--tint); font-weight: 700; }
.st-chips { position: absolute; top: 1.4rem; left: 1.4rem; display: flex; flex-wrap: wrap; gap: .5rem; max-width: 36%; }
.st-chips a { padding: .35rem .95rem; border-radius: 999px; color: #fff; font-size: .85rem; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.st-chips a:hover { background: rgba(255, 255, 255, .3); }
.st-spin { position: absolute; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 3; display: flex; align-items: center; justify-content: center; width: 118px; height: 118px; border-radius: 50%; color: #fff; background: var(--primary); box-shadow: 0 0 0 6px rgba(255, 255, 255, .22); font-size: 1.35rem; }
.st-spin svg:not(.st-icon) { position: absolute; inset: 0; width: 100%; height: 100%; animation: st-spin 22s linear infinite; }
/* direction: ltr keeps the run on the path from its start; Persian still reads correctly as one RTL run. */
.st-spin text { fill: #fff; font-size: 12px; font-weight: 500; direction: ltr; }
@keyframes st-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .st-spin svg:not(.st-icon) { animation: none; }
}

/* Home: categories */
.st-cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1rem; margin: 1.5rem 0 2.5rem; }
.st-cats a { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.1rem .75rem; text-align: center; color: var(--text); font-size: .9rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); transition: transform .2s, color .2s; }
.st-cats a .st-icon { width: 2.4rem; height: 2.4rem; color: var(--primary); }
.st-cats a:hover { transform: translateY(-4px); color: var(--primary); }

/* Home: products band */
.st-products { position: relative; margin: 2.5rem 0; padding: 4.4rem 1.75rem 4.2rem; border-radius: var(--radius-lg); background: var(--primary) url(../img/leaf-pattern.svg); }
.st-products .empty { color: #fff; }
.st-rail-wrap { position: relative; }
.st-rail { display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding-block: .25rem; scrollbar-width: none; }
.st-rail::-webkit-scrollbar { display: none; }
.st-rail > * { flex: 0 0 225px; scroll-snap-align: start; }
.st-arrow { position: absolute; top: 40%; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 50%; color: var(--primary); background: #fff; box-shadow: var(--shadow); cursor: pointer; }
.st-arrow.prev { right: -14px; }
.st-arrow.next { left: -14px; }
.st-arrow[hidden] { display: none; }

/* Home: club */
.st-club { position: relative; margin: 2.5rem 0; padding: 4.6rem 2.5rem 2.75rem; color: #fff; border-radius: var(--radius-lg); background: url(../img/leaf-pattern.svg), radial-gradient(90% 140% at 12% 20%, color-mix(in srgb, var(--primary) 80%, #000) 0, var(--primary-deep) 55%, var(--ink-green) 100%); }
.st-club-body { max-width: 680px; }
.st-club h3 { margin: 0 0 .75rem; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 800; line-height: 1.5; }
.st-club p { margin: 0 0 1.1rem; color: #cfe5db; line-height: 1.9; }
.st-club ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.st-club li { padding: .25rem .9rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .25); color: var(--mint); font-size: .85rem; }

/* Home: why us */
.st-why { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; margin: 2.5rem 0; }
.st-why-art { position: relative; min-height: 420px; height: 100%; border-radius: var(--radius-lg); background: var(--primary-deep) url(../img/hero-shop.svg) 50% 100% / auto 125%; }
.st-accordion { display: flex; flex-direction: column; border-right: 2px solid var(--tint); }
.st-accordion details { padding: 1.05rem 1.25rem; border-bottom: 1px solid var(--border); }
.st-accordion details:last-child { border-bottom: 0; }
.st-accordion details[open] { border-radius: 18px; border-bottom-color: transparent; box-shadow: var(--shadow); background: var(--surface); }
.st-accordion summary { display: flex; align-items: center; gap: .6rem; font-weight: 700; cursor: pointer; list-style: none; }
.st-accordion summary::-webkit-details-marker { display: none; }
.st-accordion summary .st-icon { color: var(--primary); }
.st-accordion details[open] summary { color: var(--primary); }
.st-accordion p { margin: .6rem 0 0; color: var(--muted); line-height: 1.9; }

/* Home: courses */
.st-courses { margin: 2.5rem 0; }
.st-courses header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.st-courses h2 { margin: 0; font-weight: 800; font-size: 1.25rem; border-right: 4px solid var(--primary); padding-right: .7rem; }
.st-courses header a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.st-course { display: flex; flex-direction: column; gap: .45rem; padding: .7rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 22px; }
.st-course:hover strong { color: var(--primary); }

/* Listing banner */
.st-banner { margin: 1.25rem 0 1.5rem; padding: 1.5rem 1.75rem; color: #fff; border-radius: 24px; background: var(--primary) url(../img/leaf-pattern.svg); }
.st-banner h1 { margin: 0; font-weight: 800; color: #fff; }

/* Catalog */
.page-title { margin: 1.25rem 0; font-weight: 800; padding-right: .7rem; border-right: 4px solid var(--primary); }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 1rem; }
.product-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .7rem; display: flex; flex-direction: column; gap: .55rem; transition: box-shadow .2s, transform .2s; }
.product-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.product-image { aspect-ratio: 1; background: var(--tint); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-image img { width: 100%; height: 100%; object-fit: cover; }
.product-image .placeholder { display: inline-flex; font-size: 3rem; color: color-mix(in srgb, var(--primary) 40%, #fff); }
.product-name { color: var(--text); font-weight: 500; min-height: 3em; line-height: 1.5; }
.product-price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.product-price.large { font-size: 1.5rem; margin: 1rem 0; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; padding-top: .55rem; border-top: 1px solid var(--border); min-height: 3.2rem; }
.st-add { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 0; border-radius: 12px; color: var(--primary); background: var(--tint); cursor: pointer; transition: background .15s, color .15s; }
.st-add:hover { color: #fff; background: var(--primary); }
.out-of-stock { color: var(--danger); text-align: center; padding: .5rem; }
.low-stock { color: #b26a00; margin-top: .5rem; }
.pager { display: flex; justify-content: center; gap: .3rem; margin: 2rem 0; flex-wrap: wrap; }
.pager a { padding: .35rem .75rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.pager a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.breadcrumb { display: flex; gap: .4rem; margin: 1rem 0; color: var(--muted); }
.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 1.5rem; }
.product-info h1 { margin-top: 0; font-weight: 800; }
.sku { color: var(--muted); }
.buy-box { display: flex; gap: .75rem; align-items: flex-end; }
.buy-box label { display: flex; flex-direction: column; color: var(--muted); width: 90px; }
.description { margin-top: 1.5rem; line-height: 1.9; white-space: pre-line; }

/* Cart / checkout */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; }
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cart-table th, .cart-table td { padding: .75rem; border-bottom: 1px solid var(--border); text-align: start; }
.cart-table tr:last-child td { border-bottom: 0; }
.cart-table th { color: var(--muted); font-weight: 500; background: #f7fbf9; }
.has-problem { background: #fff5f5; }
.problem { color: var(--danger); font-size: .85rem; }
.qty-form { display: inline-flex; gap: .3rem; }
.qty-form input { width: 70px; }
.summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; flex-direction: column; gap: .6rem; position: sticky; top: calc(var(--st-header-h, 130px) + 16px); }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.summary .total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--border); padding-top: .6rem; }
.hint { color: var(--muted); font-size: .85rem; }
.address-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; display: flex; flex-direction: column; gap: .9rem; }
.address-form h2 { margin: 0; }
.address-form label { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }

/* Auth */
.auth-box { max-width: 400px; margin: 3rem auto; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--primary); border-radius: 24px; box-shadow: var(--shadow); padding: 1.75rem; display: flex; flex-direction: column; gap: .8rem; }
.auth-box h1 { margin: 0; font-weight: 800; }
.auth-box form { display: flex; flex-direction: column; gap: .75rem; }
.auth-box .resend { margin-top: -.25rem; }

/* Orders */
.order-status { margin-bottom: 1rem; }
.status { padding: .1rem .6rem; border-radius: 999px; background: #eceef1; font-size: .85rem; }
.status-paid, .status-shipped { background: #e3f2fd; }
.status-delivered { background: var(--tint); }
.status-expired, .status-cancelled { background: #fdecea; }

/* Returns */
.return-box { margin-top: 1.5rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; }
.return-box summary { cursor: pointer; color: var(--accent); }
.return-box form { display: flex; flex-direction: column; gap: .6rem; margin-top: .75rem; }
.return-box label { display: flex; flex-direction: column; gap: .25rem; color: var(--muted); }

/* Online courses */
.progress { height: 8px; background: var(--tint); border-radius: 999px; overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--primary); }
.course-head { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.5rem; align-items: start; margin-bottom: 1rem; }
.course-head h1 { margin-top: 0; }
.lead { font-size: 1.05rem; line-height: 1.9; }
.course-link { margin-bottom: 1rem; }
.lessons { display: flex; flex-direction: column; gap: .5rem; }
.lesson { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.lesson summary { display: flex; align-items: center; gap: .6rem; padding: .8rem 1rem; cursor: pointer; list-style: none; }
.lesson summary::-webkit-details-marker { display: none; }
.lesson .check { width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #eceef1; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; }
.lesson.done .check { background: var(--success); color: #fff; }
.lesson-title { flex: 1; }
.lesson .tag { background: var(--tint); color: var(--success); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; }
.lesson .tag.muted { background: none; }
.lesson-body { padding: 0 1rem 1rem; display: flex; flex-direction: column; gap: .75rem; }
.lesson-body video, .lesson-body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; background: #000; }
.exam-box { position: static; }
.exam-timer { background: #fff4d6; border-radius: 8px; padding: .6rem 1rem; margin-bottom: 1rem; position: sticky; top: calc(var(--header-h) + 8px); z-index: 5; }
.exam-form { display: flex; flex-direction: column; gap: 1rem; }
.question { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; }
.question legend { font-weight: 500; padding: 0 .3rem; }
.option { display: flex; gap: .5rem; align-items: center; padding: .4rem 0; cursor: pointer; }
.option input { width: auto; }
.certificate { max-width: 800px; margin: 2rem auto; background: #fff; border: 8px double var(--primary); padding: 3rem; text-align: center; line-height: 2; }
.certificate h1 { font-size: 2rem; color: var(--primary); margin: .5rem 0; }
.cert-store { font-weight: 700; color: var(--muted); }
.cert-name, .cert-course { font-size: 1.5rem; font-weight: 700; }
.cert-meta { display: flex; justify-content: space-between; margin-top: 2rem; color: var(--muted); }
.cert-verify { color: var(--muted); font-size: .85rem; }
.no-print { text-align: center; }
@media print {
    .st-promo, .store-header, .store-footer, .no-print { display: none !important; }
    .certificate { border-width: 6px; margin: 0; }
}
@media (max-width: 800px) { .course-head { grid-template-columns: 1fr; } }

/* Feedback */
.empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }

/* Footer */
.st-credit { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; opacity: .9; }
.st-credit a { text-decoration: underline; text-underline-offset: 3px; }
.st-version { font-size: .75rem; opacity: .75; }

/* Below the full header row: search and nav take their own lines */
@media (max-width: 1100px) {
    /* The wrapped header is too tall to stay pinned. */
    :root { --header-h: 0px; }
    .store-header { position: static; }
    .header-row { flex-wrap: wrap; gap: .6rem .9rem; min-height: 76px; }
    .logo { order: 1; }
    .header-links { order: 2; margin-right: auto; }
    .search { order: 3; flex-basis: 100%; }
}

@media (max-width: 800px) {
    :root { --radius-lg: 24px; --notch: 20px; }
    .st-dropdown { min-width: min(260px, calc(100vw - 32px)); }

    .st-stories { gap: .85rem; justify-content: flex-start; }
    .st-stories a { width: 72px; font-size: .8rem; }
    .st-stories span { width: 66px; height: 66px; font-size: 1.25rem; }
    .st-hero { aspect-ratio: auto; height: 460px; min-height: 0; background-position: 50% 100%; }
    .st-hero > .st-tab:first-child { max-width: 86%; padding: 0 .3rem 1rem 1.25rem; }
    .st-hero h1 { font-size: 1.3rem; }
    .st-chips { display: none; }
    .st-spin { width: 92px; height: 92px; bottom: 4.4rem; left: 12%; transform: none; }
    .product-foot .product-price { font-size: .88rem; }
    .product-foot .out-of-stock { padding: 0; font-size: .82rem; }
    .st-add { width: 36px; height: 36px; }
    .st-tab.bottom-center { right: 8%; padding: .6rem 1.1rem 0; }
    .st-tab h2 { font-size: 1rem; }
    .st-cats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
    .st-cats a { padding: .85rem .4rem; font-size: .8rem; }
    .st-products { padding: 3.6rem 1rem 3.8rem; }
    .st-rail > * { flex-basis: 175px; }
    .st-arrow { display: none; }
    .st-club { padding: 3.8rem 1.25rem 2rem; }
    .st-why { grid-template-columns: 1fr; gap: 1.25rem; }
    .st-why-art { min-height: 280px; }

    .cart-layout, .product-detail { grid-template-columns: 1fr; }
    .summary { position: static; }
    .grid-2 { grid-template-columns: 1fr; }
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .cart-table th:nth-child(2), .cart-table td:nth-child(2) { display: none; }
    .st-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .st-footer-grid > :first-child { grid-column: 1 / -1; }
}

/* Company logo, payment choice and transfer details. */
.logo .logo-image { height: 2rem; width: auto; display: block; }
.st-trust { margin-top: .75rem; }
.pay-option { display: flex; gap: .5rem; align-items: center; font-weight: 500; }
.pay-option input { width: auto; }
.transfer-box { margin: 1rem 0; padding: 1rem; border: 1px solid var(--line, #e2e8e5); border-radius: 12px; }
.transfer-box .sum-row { padding: .35rem 0; }
.sum-row > :last-child { text-align: end; overflow-wrap: anywhere; }
.transfer-box form { display: grid; gap: .6rem; margin-top: .75rem; }

/* Selects match the text inputs. */
input[dir="ltr"] { text-align: left; }
input[dir="ltr"]::placeholder { direction: rtl; text-align: right; }

/* Listing: sort and filter bar (a plain GET form). */
.st-list-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: .75rem 1rem; margin: 0 0 1.25rem; }
.st-list-tools > label { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.st-filter { position: relative; }
.st-filter > summary {
    display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .55rem 1rem; cursor: pointer; list-style: none;
    border: 1px solid var(--border); border-radius: 14px; font-weight: 500;
}
.st-filter > summary::-webkit-details-marker { display: none; }
.st-filter[open] > summary { border-color: var(--primary); color: var(--primary); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.st-filter-body {
    position: absolute; z-index: 15; top: calc(100% + .4rem); right: 0; width: min(320px, calc(100vw - 32px));
    display: flex; flex-direction: column; gap: .7rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); box-shadow: var(--shadow);
}
.st-filter-body label { display: flex; flex-direction: column; gap: .3rem; color: var(--muted); }
.st-filter-body label.st-check { flex-direction: row; align-items: center; color: var(--text); }
.st-check input { width: 20px; height: 20px; }
.st-filter-actions { display: flex; gap: .5rem; }
.st-count { margin-inline-start: auto; align-self: center; color: var(--muted); font-size: .9rem; }

@media (pointer: coarse) {
    .btn, select, input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]) { min-height: 44px; }
    .pager a { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .link { min-height: 36px; }
}

@media (max-width: 800px) {
    /* 16px stops iOS from zooming into a focused field. */
    input, select, textarea { font-size: 16px; }
    .st-list-tools > label { flex: 1 1 auto; }
    .st-list-tools > label select { flex: 1; }
    .st-filter { flex: 0 0 auto; }
    .st-filter-body { position: static; width: auto; margin-top: .5rem; box-shadow: none; }
    .st-filter[open] { flex-basis: 100%; }
    /* The nav row wraps instead of pushing the page wider than the phone (a scroller would clip the dropdown). */
    .st-count { flex-basis: 100%; margin: 0; }
    .buy-box { flex-wrap: wrap; }
    .address-form, .auth-box { padding: 1rem; }
}

/* Tables marked .st-cards read as one card per row on phones (labels from data-label). */
@media (max-width: 640px) {
    .cart-table.st-cards { border: 0; background: none; overflow: visible; }
    .st-cards thead { display: none; }
    .st-cards, .st-cards tbody { display: block; width: 100%; }
    .st-cards tr { display: flex; flex-direction: column; margin-bottom: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
    .st-cards td { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: .55rem .9rem; border-bottom: 1px dashed var(--border); text-align: end; }
    .st-cards td:last-child { border-bottom: 0; }
    .st-cards td[data-label]::before { content: attr(data-label); color: var(--muted); font-size: .85rem; text-align: start; }
    .st-cards td.st-card-title { order: -1; display: block; font-weight: 700; text-align: start; border-bottom: 1px solid var(--border); }
    .cart-table.st-cards th:nth-child(2), .cart-table.st-cards td:nth-child(2) { display: flex; }
    .st-cards .qty-form { flex-wrap: wrap; justify-content: flex-end; }
}
/* ── On Vuexy ──────────────────────────────────────────── */
body { background: var(--bg); }
.st-icon { width: 1.25em; height: 1.25em; }
.st-round .badge { position: absolute; top: -4px; inset-inline-end: -4px; }
.landing-footer .app-brand-logo img { height: 36px; width: auto; }
.landing-footer .footer-top { padding-block: 3rem 2rem; }
.landing-footer .footer-bottom { padding-block: 1rem; }
.store-main { padding-top: 1.5rem; padding-bottom: 3rem; min-height: 50vh; }
.product-card, .summary, .product-detail, .cart-table { border-color: transparent; box-shadow: var(--shadow); }
.empty { color: var(--muted); text-align: center; padding: 3rem 1rem; }
.hint { color: var(--muted); font-size: .8125rem; }
.st-dropdown { min-width: 230px; }
.st-dropdown .dropdown-item { display: flex; align-items: center; gap: .5rem; }
.st-menu > summary.nav-link { cursor: pointer; }
@media (max-width: 767.98px) {
    .form-control, .form-select { font-size: 16px; }
    .store-main { padding-top: 1rem; }
}
/* Vuexy's landing footer is dark by design: the logo's deep green in place of the template's navy image. */
.light-style .landing-footer .footer-top { background: #0d381b radial-gradient(120% 140% at 100% 0, rgba(32, 141, 68, .55), transparent 60%); }
.light-style .landing-footer .footer-bottom { background-color: #0a2c15; border: 0 !important; }
.landing-footer .footer-bottom .badge { background: rgba(255, 255, 255, .12) !important; color: #d3d4dc !important; }
.landing-footer .app-brand-logo img { background: #fff; padding: .45rem .8rem; border-radius: .5rem; box-sizing: content-box; }


/* Order page: accounting's receiving accounts and the transfer / cheque forms. */
.transfer-box > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .5rem; }
.transfer-box > summary::-webkit-details-marker { display: none; }
.transfer-box > summary::before { content: "▸"; color: var(--muted, #6b7280); transition: transform .15s; }
.transfer-box[open] > summary::before { transform: rotate(90deg); }
.transfer-box > summary h2 { margin: 0; font-size: 1.1rem; }
.pay-account { border: 1px dashed var(--line, #e2e8e5); border-radius: 10px; padding: .6rem .8rem; margin: .5rem 0; }
.pay-account-title { font-weight: 700; margin-bottom: .25rem; }
.copyable { cursor: copy; border-bottom: 1px dotted currentColor; }
.copyable.copied::after { content: " ✓"; color: #16a34a; }

/* The customer's log of cart changes made by sales staff. */
.cart-changes .change.added { color: #16a34a; font-weight: 700; }
.cart-changes .change.removed { color: #dc2626; font-weight: 700; }
.cart-staff-note { margin-bottom: 1rem; }

/* "Added to cart" notice: the customer keeps shopping. */
.st-cart-toast { position: fixed; z-index: 1080; inset-inline: 1rem; bottom: 1rem; margin-inline: auto; max-width: 420px; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .8rem 1rem; border-radius: 12px; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); transition: opacity .5s, transform .5s; }
.st-cart-toast.ok { background: #16a34a; }
.st-cart-toast.err { background: #dc2626; }
.st-cart-toast a { color: #fff; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.st-cart-toast.hide { opacity: 0; transform: translateY(1rem); }
@keyframes st-bump { 50% { transform: scale(1.18); } }
.st-bump { animation: st-bump .45s ease; }

/* ── Header ───────────────────────────────────────────────────────────────
   Two rows: logo / search / account and cart, then the menu. Sticky with a solid background and the
   highest layer of the page content, so nothing slides over or under it when scrolling. */
.st-header { position: sticky; top: 0; z-index: 1030; background: var(--surface); box-shadow: 0 1px 0 var(--border); transition: box-shadow .2s; }
.st-header.scrolled { box-shadow: 0 6px 24px rgba(47, 43, 61, .1); }
.st-head-main { display: flex; align-items: center; gap: 1rem; min-height: 76px; padding-block: .65rem; }
.st-logo { flex: none; display: flex; align-items: center; }
.st-logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; }
.st-search { position: relative; flex: 1 1 auto; min-width: 0; max-width: 640px; margin-inline: auto; }
.st-search > .ti { position: absolute; inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 1.15rem; pointer-events: none; }
.st-search .form-control { height: 48px; padding-inline-start: 2.75rem; border-radius: 999px; background: var(--bg); border: 1px solid transparent; box-shadow: none; }
.st-search .form-control:focus { background: var(--surface); border-color: var(--primary); box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 32, 141, 68), .12); }
.st-actions { flex: none; display: flex; align-items: center; gap: .6rem; }
.st-icon-btn { position: relative; flex: none; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
    border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; transition: color .15s, border-color .15s; }
.st-icon-btn:hover { color: var(--primary); border-color: var(--primary); }
.st-cart .badge { position: absolute; top: -5px; inset-inline-end: -5px; min-width: 1.35rem; font-size: .7rem; line-height: 1; padding: .3rem .35rem; border: 2px solid var(--surface); }
.st-account { display: inline-flex; align-items: center; gap: .45rem; height: 46px; padding-inline: 1.1rem; border-radius: 999px; background: var(--primary); color: #fff;
    font-weight: 600; white-space: nowrap; cursor: pointer; list-style: none; transition: background .15s; }
.st-account::-webkit-details-marker { display: none; }
.st-account:hover { background: var(--primary-hover); color: #fff; }
.st-account > .ti { font-size: 1.2rem; }
.st-account .st-caret { font-size: .85rem; opacity: .8; }
.st-burger { display: none; }

/* Menu row */
.st-nav { border-top: 1px solid var(--border); background: var(--surface); }
.st-drawer-head { display: none; }
.st-nav-list { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: .35rem 0; }
.st-nav-list > li > a, .st-nav-list > li > details > summary { display: flex; align-items: center; gap: .4rem; padding: .55rem .9rem; border-radius: .5rem;
    color: var(--text); font-weight: 500; white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.st-nav-list > li > a:hover, .st-nav-list > li > details > summary:hover, .st-nav-list > li > details[open] > summary { color: var(--primary); background: var(--tint); }
.st-catmenu > summary { background: var(--tint); color: var(--primary) !important; font-weight: 700 !important; }
.st-caret { font-size: .8rem; transition: transform .15s; }
details[open] > summary .st-caret { transform: rotate(180deg); }

/* Dropdowns of the header sit above the page and the sticky header's own shadow. */
.st-header .st-dropdown { z-index: 1035; top: calc(100% + .4rem); }
.st-header .st-dropdown .dropdown-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .75rem; border-radius: .4rem; white-space: normal; }
.st-header .st-dropdown .dropdown-item .ti { font-size: 1.1rem; color: var(--primary); }
.st-header .st-menu.end .st-dropdown { right: auto; left: 0; }
[dir="ltr"] .st-header .st-menu.end .st-dropdown { left: auto; right: 0; }
/* Categories: a mega menu in columns instead of an 80-row list. */
.st-menu:not([open]) > .st-dropdown { display: none; }
.st-mega { width: min(960px, calc(100vw - 3rem)); grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .1rem .5rem; max-height: min(70vh, 560px); }
.st-menu[open] > .st-mega { display: grid; }
.st-mega .st-mega-all { grid-column: 1 / -1; font-weight: 700; background: var(--tint); }
.st-mega .st-icon { width: 1.1em; height: 1.1em; color: var(--primary); flex: none; }
.st-mega .dropdown-item span { overflow: hidden; text-overflow: ellipsis; }
/* A top-level category with its subcategories: one column block, the subcategories indented under it. */
.st-mega-group { display: flex; flex-direction: column; grid-row: span 2; padding-bottom: .35rem; }
.st-mega .st-mega-head { font-weight: 700; }
.st-mega .st-mega-sub { padding-inline-start: 2.1rem; font-size: .88rem; color: var(--muted, #666); }
.st-mega .st-mega-sub:hover { color: var(--primary); }
/* Subcategory chips on a category page. */
.st-subcats { display: flex; flex-wrap: wrap; gap: .5rem; margin: -.25rem 0 1rem; }
.st-subcats a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .85rem; border-radius: 999px; background: var(--surface);
    box-shadow: var(--shadow); color: inherit; text-decoration: none; font-size: .9rem; }
.st-subcats a:hover { color: var(--primary); }
.st-subcats .st-icon { width: 1.05em; height: 1.05em; color: var(--primary); }

/* Tablet and phone: menu in a drawer, search on its own row. */
@media (max-width: 991.98px) {
    .st-head-main { flex-wrap: wrap; gap: .6rem .75rem; min-height: 0; }
    .st-burger { display: inline-flex; }
    .st-actions { margin-inline-start: auto; }
    .st-search { order: 5; flex: 1 1 100%; max-width: none; margin: 0; }
    .st-search .form-control { height: 44px; }
    .st-nav { position: fixed; top: 0; bottom: 0; right: 0; z-index: 1100; width: min(330px, 88vw); border: 0; overflow-y: auto;
        box-shadow: 0 0 2.5rem rgba(0, 0, 0, .25); transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
    [dir="ltr"] .st-nav { right: auto; left: 0; transform: translateX(-100%); }
    .st-nav.show { transform: none; visibility: visible; }
    .st-nav-inner { padding: 0 1rem 1.5rem; }
    .st-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; margin-bottom: .5rem; border-bottom: 1px solid var(--border); }
    .st-drawer-head img { height: 32px; width: auto; }
    .st-nav-list { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: .1rem; }
    .st-nav-list > li > a, .st-nav-list > li > details > summary { padding: .8rem .75rem; }
    .st-header .st-mega { position: static; width: auto; grid-template-columns: 1fr; max-height: none; box-shadow: none; border: 0; padding: .25rem 0 .5rem; margin-inline-start: .75rem; }
    .st-menu-overlay { position: fixed; inset: 0; z-index: 1090; background: rgba(47, 43, 61, .5); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
    .st-nav.show + .st-menu-overlay { opacity: 1; visibility: visible; }
}
@media (min-width: 992px) { .st-menu-overlay { display: none; } }
@media (max-width: 575.98px) {
    .st-head-main { padding-block: .55rem; }
    .st-logo img { height: 30px; max-width: 130px; }
    .st-account { width: 44px; height: 44px; padding: 0; justify-content: center; }
    .st-account span, .st-account .st-caret { display: none; }
    .st-icon-btn { width: 44px; height: 44px; }
}

/* Nothing on the page may be wider than the screen. */
html, body { overflow-x: clip; }

/* ── Product page ─────────────────────────────────────────────────────────
   Image and buy box side by side (the image stays in view on wide screens), then the description,
   the specifications and related products at full width. */
.breadcrumb { flex-wrap: wrap; font-size: .875rem; margin: .25rem 0 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary); }
.pd { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2rem; align-items: start; }
.pd-gallery { position: sticky; top: calc(var(--st-header-h, 130px) + 1rem); }
.pd-image { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.pd-image img { width: 100%; height: 100%; object-fit: contain; }
.pd-image .placeholder { font-size: 5rem; color: color-mix(in srgb, var(--primary) 40%, #fff); }
.pd-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; scrollbar-width: thin; padding-bottom: .25rem; }
.pd-thumb { flex: 0 0 4.25rem; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 2px solid transparent; box-shadow: var(--shadow); }
.pd-thumb img { width: 100%; height: 100%; object-fit: contain; }
.pd-thumb.is-on, .pd-thumb:focus-visible { border-color: var(--primary); }
.pd-main { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.pd-cat { align-self: flex-start; padding: .25rem .75rem; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .8125rem; font-weight: 600; }
.pd-title { margin: 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 800; line-height: 1.6; color: var(--bs-heading-color, #2f2b3d); }
.pd-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; color: var(--muted); font-size: .875rem; }
.pd-meta strong { color: var(--text); font-weight: 600; }
.pd-keyspecs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .5rem; }
.pd-keyspecs li { display: flex; flex-direction: column; gap: .15rem; padding: .6rem .8rem; border-radius: .75rem; background: var(--bg); }
.pd-keyspecs span { color: var(--muted); font-size: .78rem; }
.pd-keyspecs strong { color: var(--text); font-size: .9rem; font-weight: 600; overflow-wrap: anywhere; }
.pd-more { align-self: flex-start; font-size: .875rem; font-weight: 600; }
.pd-buy { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem; margin-top: .25rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.pd-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.pd-price { font-size: 1.6rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.pd-stock { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem; border-radius: 999px; font-size: .8125rem; font-weight: 600; }
.pd-stock.in { color: #15803d; background: #dcfce7; }
.pd-stock.low { color: #b45309; background: #fef3c7; }
.pd-stock.out { color: #b91c1c; background: #fee2e2; }
.pd-buy-form { display: flex; gap: .75rem; align-items: stretch; }
.pd-qty { display: flex; align-items: center; flex: none; border: 1px solid var(--border); border-radius: .75rem; overflow: hidden; background: var(--surface); }
.pd-qty .form-control { width: 3.5rem; border: 0; text-align: center; font-weight: 700; padding: 0; height: 48px; -moz-appearance: textfield; }
.pd-qty .form-control::-webkit-outer-spin-button, .pd-qty .form-control::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pd-qty-btn { width: 42px; height: 48px; border: 0; background: none; color: var(--text); font-size: 1.05rem; cursor: pointer; }
.pd-qty-btn:hover { color: var(--primary); background: var(--tint); }
.pd-add { flex: 1; min-height: 50px; border-radius: .75rem; font-weight: 700; }
.pd-oos-note { padding: .8rem 1rem; border-radius: .75rem; background: var(--bg); color: var(--text); font-size: .9rem; line-height: 1.8; }
.pd-trust { list-style: none; margin: 0; padding: .9rem 0 0; border-top: 1px dashed var(--border); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
.pd-trust li { display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; font-size: .78rem; color: var(--text); line-height: 1.6; }
.pd-trust .ti { font-size: 1.5rem; color: var(--primary); }

.pd-tabs { position: sticky; top: var(--st-header-h, 130px); z-index: 5; display: flex; gap: .25rem; margin: 2.5rem 0 0; padding: .4rem; overflow-x: auto; scrollbar-width: none;
    background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: 0 1px 0 var(--border); }
.pd-tabs a { padding: .6rem 1rem; border-radius: .6rem; color: var(--text); font-weight: 600; white-space: nowrap; }
.pd-tabs a:hover { color: var(--primary); background: var(--tint); }
.pd-section { scroll-margin-top: calc(var(--st-header-h, 130px) + 4rem); padding: 1.5rem; background: var(--surface); }
.pd-section + .pd-section { border-top: 1px solid var(--border); }
.pd-section:last-of-type, .pd-related { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.pd-section h2 { margin: 0 0 1rem; font-size: 1.15rem; font-weight: 800; color: var(--bs-heading-color, #2f2b3d); }
.pd-prose { max-width: 820px; line-height: 2.1; color: var(--text); }
.pd-prose p { margin: 0 0 1rem; }
.pd-prose h3 { margin: 1.5rem 0 .6rem; font-size: 1rem; font-weight: 700; color: var(--bs-heading-color, #2f2b3d); }
.pd-specs { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 2rem; max-width: 980px; }
.pd-specs > div { display: grid; grid-template-columns: minmax(110px, 2fr) 3fr; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.pd-specs dt { color: var(--muted); font-weight: 500; }
.pd-specs dd { margin: 0; color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.pd-related { margin-top: 2rem; border-radius: var(--radius-lg); }
.pd-related-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.pd-related-head h2 { margin: 0; }
.pd-related .st-rail > .product-card { flex: 0 0 210px; }
.pd-bar { display: none; }

@media (max-width: 991.98px) {
    .pd { grid-template-columns: 1fr; gap: 1.25rem; }
    .pd-gallery { position: static; }
    .pd-image { max-width: 520px; margin-inline: auto; width: 100%; }
    .pd-specs { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .pd-section { padding: 1.1rem; }
    .pd-buy { padding: 1rem; }
    .pd-trust { grid-template-columns: 1fr; }
    .pd-trust li { flex-direction: row; text-align: start; gap: .6rem; }
    .pd-tabs { top: var(--st-header-h, 112px); margin-top: 1.5rem; }
    /* The price and button stay on screen; the page and the chat button make room for them. */
    .pd-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 1020; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: var(--surface); box-shadow: 0 -6px 20px rgba(47, 43, 61, .12); }
    .pd-bar-price { font-weight: 800; color: var(--primary); white-space: nowrap; }
    .pd-bar .btn { border-radius: .75rem; font-weight: 700; }
    body:has(.pd-bar) .store-main { padding-bottom: 6rem; }
    body:has(.pd-bar) #st-chat { bottom: 84px; }
    body:has(.pd-bar) .st-cart-toast { bottom: 84px; }
}

/* ── Cart ────────────────────────────────────────────────────────────────── */
.cart-layout { grid-template-columns: minmax(0, 1fr) 360px; }
.cart-items { padding: 0; overflow: hidden; border: 0; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.cart-items-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border); }
.cart-items-head h1 { margin: 0; font-size: 1.2rem; font-weight: 800; color: var(--bs-heading-color, #2f2b3d); }
.cart-items-head small { margin-inline-start: .4rem; color: var(--muted); font-size: .85rem; font-weight: 500; }
.cart-continue { font-size: .875rem; font-weight: 600; white-space: nowrap; }
.cart-item { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto auto; grid-template-areas: "img body actions total"; align-items: center; gap: 1rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: 0; }
.cart-item.has-problem { background: #fff7f7; }
.ci-img { grid-area: img; width: 88px; height: 88px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: .9rem; background: var(--bg); color: var(--muted); font-size: 2rem; }
.ci-img img { width: 100%; height: 100%; object-fit: contain; }
.ci-body { grid-area: body; display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ci-name { color: var(--bs-heading-color, #2f2b3d); font-weight: 600; line-height: 1.7; }
.ci-name:hover { color: var(--primary); }
.ci-unit { color: var(--muted); font-size: .8125rem; }
.ci-problem { color: var(--danger); font-size: .8125rem; font-weight: 600; }
.ci-actions { grid-area: actions; display: flex; align-items: center; gap: .5rem; }
.ci-actions .pd-qty .form-control { height: 40px; width: 2.75rem; }
.ci-actions .pd-qty-btn { height: 40px; width: 36px; }
.ci-remove { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: .6rem; background: none; color: var(--muted); font-size: 1.15rem; cursor: pointer; }
.ci-remove:hover { color: var(--danger); background: #fee2e2; }
.ci-total { grid-area: total; min-width: 130px; text-align: end; font-weight: 800; color: var(--bs-heading-color, #2f2b3d); white-space: nowrap; }
.cart-summary { padding: 1.25rem; gap: .85rem; border-radius: var(--radius-lg); }
.cart-summary h2 { margin: 0 0 .25rem; font-size: 1.05rem; font-weight: 800; color: var(--bs-heading-color, #2f2b3d); }
.cart-summary .sum-row { color: var(--text); }
.cart-summary .total { font-size: 1.15rem; color: var(--bs-heading-color, #2f2b3d); }
.free-ship { padding: .75rem; border-radius: .75rem; background: var(--tint); }
.free-ship-text { display: flex; align-items: center; gap: .4rem; font-size: .8125rem; font-weight: 600; color: var(--primary); margin-bottom: .5rem; }
.free-ship-bar { height: 6px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 18%, #fff); overflow: hidden; }
.free-ship-bar span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.cart-trust { list-style: none; margin: .25rem 0 0; padding: .75rem 0 0; border-top: 1px dashed var(--border); display: grid; gap: .45rem; font-size: .8125rem; color: var(--muted); }
.cart-trust .ti { color: var(--primary); margin-inline-end: .3rem; }
.cart-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 4rem 1.5rem; text-align: center; border: 0; box-shadow: var(--shadow); border-radius: var(--radius-lg); }
.cart-empty > .ti { font-size: 4rem; color: color-mix(in srgb, var(--primary) 45%, #fff); }
.cart-empty h1 { margin: 0; font-size: 1.3rem; font-weight: 800; }
.cart-empty p { margin: 0 0 .5rem; color: var(--muted); }
@media (max-width: 991.98px) { .cart-layout { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) {
    .cart-item { grid-template-columns: 72px minmax(0, 1fr); grid-template-areas: "img body" "actions total"; gap: .75rem; padding: 1rem; }
    .ci-img { width: 72px; height: 72px; }
    .ci-total { min-width: 0; }
}

/* ── Checkout ────────────────────────────────────────────────────────────── */
.co-steps { list-style: none; display: flex; align-items: center; justify-content: center; gap: .5rem; margin: .5rem 0 1.5rem; padding: 0; flex-wrap: wrap; }
.co-steps li { display: flex; align-items: center; gap: .4rem; padding: .45rem .9rem; border-radius: 999px; color: var(--muted); font-size: .875rem; font-weight: 600; background: var(--surface); box-shadow: 0 1px 0 var(--border); }
.co-steps li + li::before { content: ""; width: 28px; height: 2px; margin-inline-end: .5rem; background: var(--border); }
.co-steps li.done, .co-steps li.done a { color: var(--primary); }
.co-steps li.current { color: #fff; background: var(--primary); box-shadow: none; }
.co-main { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
.co-card { padding: 1.25rem; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.co-card h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font-size: 1.05rem; font-weight: 800; color: var(--bs-heading-color, #2f2b3d); }
.co-card h2 .ti { color: var(--primary); font-size: 1.3rem; }
.co-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.co-fields label { display: flex; flex-direction: column; gap: .35rem; color: var(--text); font-size: .875rem; font-weight: 500; }
.co-fields .co-wide { grid-column: 1 / -1; }
.pay-cards { display: grid; gap: .75rem; }
.pay-card { position: relative; display: flex; align-items: flex-start; gap: .9rem; padding: 1rem; border: 1.5px solid var(--border); border-radius: 1rem; cursor: pointer; transition: border-color .15s, background .15s; }
.pay-card:hover { border-color: color-mix(in srgb, var(--primary) 50%, #fff); }
.pay-card input { position: absolute; opacity: 0; pointer-events: none; }
.pay-card:has(input:checked) { border-color: var(--primary); background: var(--tint); }
.pay-card:has(input:focus-visible) { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-card-icon { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: .75rem; background: var(--bg); color: var(--primary); font-size: 1.4rem; }
.pay-card:has(input:checked) .pay-card-icon { background: var(--primary); color: #fff; }
.pay-card-text { display: flex; flex-direction: column; gap: .2rem; }
.pay-card-text strong { color: var(--bs-heading-color, #2f2b3d); }
.pay-card-text small { color: var(--muted); line-height: 1.8; }
.pay-card::after { content: ""; position: absolute; top: 1rem; inset-inline-end: 1rem; width: 20px; height: 20px; border: 2px solid var(--border); border-radius: 50%; }
.pay-card:has(input:checked)::after { border: 6px solid var(--primary); }
.pay-card-text { padding-inline-end: 1.75rem; }
.co-items { list-style: none; margin: 0 0 .25rem; padding: 0 0 .75rem; display: grid; gap: .7rem; border-bottom: 1px dashed var(--border); max-height: 320px; overflow-y: auto; }
.co-items li { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: .7rem; }
.co-item-img { position: relative; width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; border-radius: .7rem; background: var(--bg); color: var(--muted); }
.co-item-img img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.co-item-img b { position: absolute; top: -6px; inset-inline-start: -6px; min-width: 20px; height: 20px; padding: 0 .3rem; display: flex; align-items: center; justify-content: center;
    border-radius: 999px; background: var(--bs-heading-color, #2f2b3d); color: #fff; font-size: .7rem; }
.co-item-name { font-size: .8125rem; line-height: 1.7; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-item-price { font-size: .8125rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 575.98px) {
    .co-fields { grid-template-columns: 1fr; }
    .co-card { padding: 1rem; }
    .co-steps li { padding: .35rem .65rem; font-size: .78rem; }
    .co-steps li + li::before { width: 12px; }
}

/* Advisor's order for a customer (/o/{token}) and the customer's profile. */
.proposal-head { padding: 1.5rem; margin-bottom: 1.5rem; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow);
    background: linear-gradient(135deg, var(--tint), var(--surface) 60%); }
.proposal-head h1 { margin: .6rem 0 .4rem; font-size: 1.35rem; font-weight: 800; color: var(--bs-heading-color, #2f2b3d); }
.proposal-head p { margin: 0; color: var(--text); line-height: 1.9; }
.proposal-badge { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--primary); color: #fff; font-size: .8rem; font-weight: 600; }
.proposal-note { display: flex; gap: .6rem; margin: 1rem 0 0; padding: .9rem 1rem; border-radius: .9rem; background: var(--surface); border-inline-start: 4px solid var(--primary); line-height: 1.9; }
.proposal-note .ti { color: var(--primary); font-size: 1.3rem; flex: none; }
.profile-form { max-width: 860px; }
.usage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 575.98px) { .usage-cards { grid-template-columns: 1fr; } }
/* Order page: payments so far (deposit and instalments) and what is left. */
.pay-history { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.pay-history h2 { margin: 0 0 .75rem; font-size: 1.05rem; font-weight: 800; }
.pay-progress { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.pay-progress span { display: block; height: 100%; border-radius: inherit; background: var(--primary); }
.pay-totals { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: .75rem 0; font-size: .875rem; color: var(--muted); }
.pay-totals strong { color: var(--bs-heading-color, #2f2b3d); }
.pay-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pay-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .65rem .8rem; border-radius: .75rem; background: var(--bg); }
.pay-item-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pay-item-main small { color: var(--muted); }
.pay-item-status { flex: none; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #e5e7eb; color: #374151; }
.pay-item.verified .pay-item-status { background: #dcfce7; color: #15803d; }
.pay-item.pendingreview .pay-item-status { background: #fef3c7; color: #b45309; }
.pay-item.failed .pay-item-status { background: #fee2e2; color: #b91c1c; }
/* Order page: the warehouse photo of the goods, approved by the advisor. */
.packing-photos { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.packing-photos h2 { display: flex; align-items: center; gap: .45rem; margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 800; }
.packing-photos h2 .ti { color: var(--primary); }
.packing-photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .75rem; }
.packing-photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem; border: 1px solid var(--border); }
/* ── مشاوره فوری (callback request) ── */
.consult-box { margin: .9rem 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.consult-box > summary { display: flex; align-items: center; gap: .65rem; padding: .7rem .85rem; cursor: pointer; list-style: none; }
.consult-box > summary::-webkit-details-marker { display: none; }
.consult-box > summary > .ti-headset { flex: 0 0 auto; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 1.25rem; }
.consult-box > summary > span { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.5; }
.consult-box > summary strong { color: var(--text); font-size: .95rem; }
.consult-box > summary small { color: var(--muted); font-size: .8rem; }
.consult-caret { color: var(--muted); transition: transform .2s; }
.consult-box[open] .consult-caret { transform: rotate(180deg); }
.consult-form { display: grid; gap: .45rem; padding: 0 .85rem .85rem; }
.consult-form .form-label { margin: .2rem 0 0; font-size: .82rem; }
.consult-hint { margin: 0 0 .2rem; color: var(--muted); font-size: .82rem; line-height: 1.7; }
.consult-mobile { padding: .45rem .65rem; border-radius: var(--radius); background: var(--tint); font-size: .88rem; }
.consult-form .btn { margin-top: .35rem; }
.consult-off { color: var(--muted); font-size: .78rem; line-height: 1.7; }
.consult-done { display: flex; gap: .7rem; align-items: flex-start; margin: .9rem 0; padding: .8rem .9rem; border-radius: var(--radius); background: var(--tint); color: var(--primary-deep); }
.consult-done > .ti { font-size: 1.5rem; color: var(--primary); }
.consult-done > div { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; line-height: 1.7; }
.ltr { direction: ltr; unicode-bidi: embed; }

/* ── Purchases from before the store (imported) ── */
.legacy-orders { margin-top: 1.75rem; }
.legacy-orders h2 { margin: 0 0 .25rem; font-size: 1.1rem; font-weight: 800; }
.legacy-orders .hint { margin: 0 0 .75rem; color: var(--muted); font-size: .85rem; }
.legacy-items { max-width: 420px; white-space: pre-line; font-size: .85rem; line-height: 1.8; }

/* ── Paying on terms: cheque plans and purchase credit ── */
.terms-choice { margin: 1rem 0; }
.terms-choice > h2, .cheque-case-head h2 { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 800; }
.terms-card { margin-bottom: .75rem; padding: 1rem 1.1rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.terms-card-head { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.terms-card-head .ti { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tint); color: var(--primary); font-size: 1.2rem; }
.terms-card p { margin: 0 0 .6rem; font-size: .9rem; line-height: 1.9; }
.terms-calc { margin: .5rem 0 .75rem; padding: .6rem .8rem; border-radius: var(--radius); background: var(--bg); }
.terms-calc .sum-row { padding: .2rem 0; font-size: .88rem; }
.terms-form { display: grid; gap: .5rem; max-width: 420px; }
.cheque-case { margin: 1rem 0; padding: 1rem 1.1rem; border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.cheque-case-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.cheque-stage { padding: .2rem .7rem; border-radius: 999px; background: var(--tint); color: var(--primary-deep); font-size: .82rem; font-weight: 700; }
.cheque-stage.bad { background: rgba(234, 84, 85, .12); color: var(--danger); }
.cheque-stage.ok { background: rgba(40, 199, 111, .14); color: #1a8a4a; }
.cheque-list { display: grid; gap: .6rem; margin: .75rem 0; }
.cheque-item { padding: .75rem .9rem; border: 1px solid var(--border); border-inline-start: 4px solid var(--muted); border-radius: var(--radius); }
.cheque-item.ok { border-inline-start-color: var(--success); }
.cheque-item.bad { border-inline-start-color: var(--danger); }
.cheque-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.cheque-status { margin-inline-start: auto; font-size: .82rem; font-weight: 700; color: var(--text); }
.cheque-meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .4rem; font-size: .84rem; color: var(--muted); }
.cheque-form-box { margin-top: .5rem; }
.cheque-form-box > summary { cursor: pointer; color: var(--primary); font-weight: 600; font-size: .9rem; }
.cheque-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem .75rem; margin-top: .6rem; }
.cheque-form .btn { grid-column: 1 / -1; justify-self: start; }
.credit-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .6rem; margin-bottom: .75rem; }
.credit-card { display: flex; flex-direction: column; gap: .2rem; padding: .8rem .9rem; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.credit-card span { color: var(--muted); font-size: .82rem; }
.credit-card strong { font-size: 1.05rem; }
.credit-card.ok strong { color: var(--primary); }
.credit-overdue td { color: var(--danger); }

/* ── Club wallets: cashback and gift credit, apart from points ── */
.club-wallets { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; margin: .75rem 0; }
.club-wallets > div { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; border-radius: var(--radius); background: var(--tint); }
.club-wallets span { font-size: .8rem; color: var(--muted); }
.club-wallets strong { color: var(--primary-deep); }
.club-wallets small { font-size: .74rem; color: var(--muted); }

/* ── Phase 3: packages, campaign ladder, suggestions, reviews, points ── */
.cart-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.cart-progress { padding: 1rem 1.25rem; border: 1px solid color-mix(in srgb, var(--primary) 30%, transparent); background: var(--tint); }
.cp-head { display: flex; gap: .75rem; align-items: flex-start; }
.cp-head > i { font-size: 1.6rem; color: var(--primary); }
.cp-banner, .cp-percent, .cp-note { font-size: .85rem; color: var(--text); }
.cp-percent { margin-top: .4rem; font-weight: 700; color: var(--primary-deep); }
.cp-bar { position: relative; height: 10px; margin: 1rem 0 .5rem; border-radius: 99px; background: rgba(0,0,0,.08); }
.cp-bar > span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 99px; background: var(--primary); transition: width .3s; }
.cp-mark { position: absolute; top: 50%; width: 14px; height: 14px; margin-inline-start: -7px; transform: translateY(-50%); border: 2px solid var(--primary); border-radius: 50%; background: var(--surface); }
.cp-mark.reached { background: var(--primary); }
.cp-steps { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.cp-steps li { display: flex; align-items: center; gap: .3rem; color: var(--muted); }
.cp-steps li.reached { color: var(--primary-deep); font-weight: 700; }
.cp-steps small { color: var(--muted); font-weight: 400; }
.cp-next { margin-top: .5rem; font-weight: 700; color: var(--primary-deep); }
.cp-rewards { margin-top: .4rem; font-size: .85rem; color: var(--success); font-weight: 700; }
.ci-discount { font-size: .8rem; color: var(--success); }
.ci-note { font-size: .8rem; color: var(--muted); }
.ci-total del, .bt-price del, .bp-price del, .summary del { color: var(--muted); font-size: .85em; margin-inline-end: .25rem; }
.cb-items { margin: .25rem 0; padding-inline-start: 1.1rem; font-size: .85rem; color: var(--text); }
.cart-bundle .ci-img i, .cart-gift .ci-img i { font-size: 2rem; color: var(--primary); }
.sum-row.discount span:last-child { color: var(--success); }

.suggestions h2 { margin: 0 0 .75rem; font-size: 1.1rem; font-weight: 800; }
.sg-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .75rem; }
.sg-item { display: flex; gap: .75rem; padding: .75rem; }
.sg-img { flex: 0 0 72px; height: 72px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); background: var(--tint); overflow: hidden; }
.sg-img img { width: 100%; height: 100%; object-fit: contain; }
.sg-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.sg-name { font-weight: 700; color: var(--text); line-height: 1.4; }
.sg-reason { margin: .2rem 0 .4rem; font-size: .8rem; color: var(--muted); }
.sg-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: auto; }
.sg-price { font-weight: 800; color: var(--primary-deep); font-size: .9rem; }

.bundle-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.bundle-tile { display: flex; flex-direction: column; overflow: hidden; }
.bt-head { display: flex; align-items: center; justify-content: center; height: 160px; background: var(--tint); }
.bt-head > img { width: 100%; height: 100%; object-fit: cover; }
.bt-icons { display: flex; gap: .25rem; }
.bt-icons img { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius); background: var(--surface); }
.bt-body { display: flex; flex-direction: column; gap: .5rem; padding: 1rem; flex: 1; }
.bt-name { font-weight: 800; color: var(--text); font-size: 1.05rem; }
.bt-items { margin: 0; padding-inline-start: 1.1rem; font-size: .85rem; }
.bt-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem; margin-top: auto; }
.bt-price strong { font-size: 1.15rem; color: var(--primary-deep); }
.bt-save { font-size: .75rem; color: var(--success); font-weight: 700; }
.bundle-page { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1rem; align-items: start; }
.bp-items { margin: 1rem 0 0; padding: 0; list-style: none; }
.bp-items li { display: flex; align-items: center; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.bp-img { flex: 0 0 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: var(--tint); border-radius: var(--radius); overflow: hidden; }
.bp-img img { width: 100%; height: 100%; object-fit: contain; }
.bp-name { flex: 1; font-weight: 700; color: var(--text); }
.bp-price { white-space: nowrap; font-weight: 700; }
.page-title { font-size: 1.5rem; font-weight: 800; margin: .5rem 0; }
.page-lead { color: var(--muted); margin-bottom: 1rem; }

.pd-offer { margin-bottom: .5rem; padding: .5rem .75rem; border-radius: var(--radius); background: var(--tint); color: var(--primary-deep); font-weight: 700; font-size: .9rem; }
.pd-points { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .5rem; font-size: .9rem; }
.pd-points.only { margin-bottom: .5rem; padding: .6rem .75rem; border-radius: var(--radius); background: #fff6e0; }
.pd-points i { color: #f0a500; }
.points-balance { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-bottom: 1rem; }
.points-card .product-image { position: relative; }
.points-only-badge { position: absolute; top: .5rem; inset-inline-start: .5rem; padding: .15rem .5rem; border-radius: 99px; background: #f0a500; color: #fff; font-size: .75rem; font-weight: 700; }

.stars { display: inline-flex; gap: 1px; color: #f0a500; font-size: 1rem; }
.rv-summary { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.rv-avg { font-size: 2rem; font-weight: 800; color: var(--text); }
.rv-count { color: var(--muted); font-size: .85rem; }
.rv-list { margin: 0 0 1rem; padding: 0; list-style: none; }
.rv-item { padding: .9rem 0; border-bottom: 1px solid var(--border); }
.rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; }
.rv-head time { color: var(--muted); font-size: .8rem; margin-inline-start: auto; }
.rv-badge { font-size: .75rem; color: var(--success); }
.rv-text { margin: .5rem 0; white-space: pre-line; }
.rv-photo { max-width: 160px; max-height: 160px; border-radius: var(--radius); object-fit: cover; }
.rv-reply { margin-top: .5rem; padding: .6rem .8rem; border-inline-start: 3px solid var(--primary); background: var(--tint); border-radius: var(--radius); font-size: .9rem; }
.rv-reply p { margin: .25rem 0 0; }
.rv-mine { margin-top: 1rem; }
.rv-rating { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; border: 0; padding: 0; margin: .5rem 0; }
.rv-rating legend { float: right; width: 100%; font-size: .9rem; margin-bottom: .25rem; }
.rv-rating input { position: absolute; opacity: 0; }
.rv-rating label { cursor: pointer; font-size: 1.6rem; color: #d6d4dc; }
.rv-rating input:checked ~ label, .rv-rating label:hover, .rv-rating label:hover ~ label { color: #f0a500; }
.rv-rating input:focus-visible + label { outline: 2px solid var(--primary); outline-offset: 2px; }

@media (max-width: 900px) {
    .bundle-page { grid-template-columns: 1fr; }
}

/* ── Phase 4: stepped forms, consultation, community, salon services ─────────────────────────────── */
.wz { display: flex; flex-direction: column; gap: 1rem; }
.wz fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.wz-progress { display: flex; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.wz-progress li { flex: 1; font-size: .8rem; color: var(--muted); border-top: 3px solid var(--border); padding-top: .35rem; text-align: center; }
.wz-progress li.on { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.wz-nav { display: flex; gap: .5rem; justify-content: flex-end; flex-wrap: wrap; }
.wz-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .4rem .8rem; }
.wz-check { display: flex; align-items: center; gap: .45rem; padding: .35rem 0; }
.wz-check img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius); }
.wz-q { margin-bottom: .9rem; }
.wz-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.wz-chip { position: relative; }
.wz-chip input { position: absolute; opacity: 0; inset: 0; }
.wz-chip span { display: inline-block; padding: .35rem .8rem; border: 1px solid var(--border); border-radius: 2rem; background: var(--surface); cursor: pointer; }
.wz-chip input:checked + span { border-color: var(--primary); background: var(--tint); color: var(--primary); font-weight: 600; }
.wz-chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.wz-guide { background: var(--tint); border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .75rem; }
.wz-guide p { margin: .2rem 0; }
.wz-done { display: flex; gap: 1rem; align-items: flex-start; }
.wz-done > i { font-size: 2.5rem; color: var(--success); }

.st-consult { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin: 2rem 0; }
.st-consult-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.st-consult-form .form-select { width: auto; }
.st-consult-links { grid-column: 1 / -1; display: flex; gap: 1.25rem; flex-wrap: wrap; }
@media (max-width: 767px) { .st-consult { grid-template-columns: 1fr; } }

.cm-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cm-stories { display: flex; gap: .75rem; overflow-x: auto; padding: .5rem 0 1rem; scrollbar-width: thin; }
.cm-story { flex: 0 0 96px; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; color: var(--text); }
.cm-story img, .cm-story > span { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid var(--primary); display: grid; place-items: center; background: var(--tint); font-size: 1.6rem; color: var(--primary); }
.cm-story small { font-size: .72rem; line-height: 1.3; }
.cm-challenge { display: flex; gap: .8rem; align-items: center; background: #fff8e6; border: 1px solid #f5d98c; border-radius: var(--radius); padding: .75rem 1rem; margin-bottom: .75rem; flex-wrap: wrap; }
.cm-challenge > i { font-size: 1.8rem; color: #c48a00; }
.cm-challenge > div { flex: 1; min-width: 200px; }
.cm-challenge small { display: block; color: var(--muted); }
.cm-challenge p { margin: .3rem 0 0; }
.cm-filters { display: flex; gap: .5rem; margin: 1rem 0; flex-wrap: wrap; }
.cm-filters .form-select, .cm-filters .form-control { width: auto; flex: 1 1 160px; }
.cm-feed { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 1rem; align-items: start; }
.cm-feed.compact { grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.cm-post { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.cm-post.featured { border-color: #f5d98c; box-shadow: 0 0 0 2px #fff1c7; }
.cm-post.official { border-color: var(--primary); }
.cm-post-head { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; flex-wrap: wrap; }
.cm-post-head small { display: block; color: var(--muted); font-size: .78rem; }
.cm-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--tint); display: inline-grid; place-items: center; color: var(--primary); flex: none; }
.cm-avatar.lg { width: 96px; height: 96px; font-size: 2.4rem; }
.cm-avatar.official { background: var(--primary); color: #fff; }
.cm-badge { display: inline-flex; align-items: center; gap: .2rem; font-size: .72rem; padding: .1rem .5rem; border-radius: 2rem; background: var(--tint); color: var(--primary-deep); }
.cm-badge.featured { background: #fff1c7; color: #8a6100; }
.cm-badge.official { background: var(--primary); color: #fff; }
.cm-media { display: grid; gap: 2px; background: #000; }
.cm-media.multi { grid-template-columns: 1fr 1fr; }
.cm-media img, .cm-media video { width: 100%; max-height: 420px; object-fit: cover; display: block; background: #000; }
.cm-media video { object-fit: contain; }
.cm-text { padding: .75rem 1rem 0; margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.cm-products { list-style: none; padding: .5rem 1rem; margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.cm-products li { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.cm-products li > a { display: flex; align-items: center; gap: .5rem; color: var(--text); flex: 1; min-width: 0; }
.cm-products img { width: 40px; height: 40px; object-fit: cover; border-radius: var(--radius); }
.cm-verified { font-size: .75rem; color: var(--success); white-space: nowrap; }
.cm-post-foot { display: flex; align-items: center; gap: .25rem; padding: .5rem 1rem .75rem; border-top: 1px solid var(--border); margin-top: auto; flex-wrap: wrap; }
.cm-act { border: 0; background: none; color: var(--text); padding: .3rem .5rem; border-radius: var(--radius); display: inline-flex; gap: .25rem; align-items: center; }
.cm-act:hover { background: var(--tint); }
.cm-act.on { color: var(--primary); font-weight: 600; }
.cm-act:disabled { opacity: .5; }
.cm-date { margin-inline-start: auto; color: var(--muted); }
.cm-pager { display: flex; justify-content: center; gap: .5rem; margin: 1.5rem 0; }
.cm-single { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.cm-comments { list-style: none; padding: 0; margin: 0; }
.cm-comments ul { list-style: none; padding-inline-start: 1.5rem; margin: 0; }
.cm-comments li.official > .cm-comment { background: var(--tint); }
.cm-comment { padding: .6rem .75rem; border-radius: var(--radius); margin-bottom: .4rem; }
.cm-comment small { color: var(--muted); margin-inline-start: .4rem; }
.cm-comment p { margin: .25rem 0 0; white-space: pre-line; overflow-wrap: anywhere; }
.cm-reply summary, .cm-report summary { cursor: pointer; color: var(--primary); font-size: .85rem; }
.cm-profile { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; margin-bottom: 1rem; }
.cm-handle { color: var(--muted); }
.cm-meta { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin: .4rem 0; }
.cm-badges { display: flex; gap: .3rem; flex-wrap: wrap; }
.cm-account { display: grid; grid-template-columns: 2fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 991px) { .cm-account { grid-template-columns: 1fr; } }
.cm-invites { list-style: none; padding: 0; margin: 0; }
.cm-invites li { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .5rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.cm-invites small { color: var(--muted); display: block; }
.cm-invite { display: flex; gap: .75rem; align-items: center; background: var(--tint); border-radius: var(--radius); padding: .75rem 1rem; flex-wrap: wrap; }
.cm-invite > i { font-size: 1.8rem; color: var(--primary); }
.cm-invite > div { flex: 1; min-width: 200px; }
.cm-invite small { display: block; color: var(--muted); }
.cm-status { font-size: .8rem; padding: .1rem .5rem; border-radius: 2rem; background: var(--tint); }
.cm-status.s-Published { background: #dff7e9; color: #127a3e; }
.cm-status.s-NeedsChanges { background: #fff1c7; color: #8a6100; }
.cm-status.s-Rejected { background: #fde2e2; color: #b42318; }
.cm-mine { display: block; overflow-x: auto; }
.cm-keep { display: flex; gap: .5rem; flex-wrap: wrap; }
.cm-terms { background: var(--bg); border-radius: var(--radius); padding: .75rem 1rem; margin-top: 1rem; font-size: .9rem; }

.sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.sv-card { display: flex; flex-direction: column; gap: .4rem; color: var(--text); }
.sv-card img { width: 100%; height: 160px; object-fit: cover; border-radius: var(--radius); }
.sv-icon { height: 120px; display: grid; place-items: center; font-size: 2.5rem; color: var(--primary); background: var(--tint); border-radius: var(--radius); }
.sv-card small { color: var(--muted); }
.sv-facts { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); font-size: .9rem; }
.sv-page { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
@media (max-width: 991px) { .sv-page { grid-template-columns: 1fr; } }
.sv-days { display: flex; gap: .4rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .75rem; }
.sv-day { flex: none; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); padding: .4rem .7rem; font-size: .85rem; }
.sv-day.on { border-color: var(--primary); background: var(--primary); color: #fff; }
.sv-slots { display: flex; gap: .4rem; flex-wrap: wrap; }
.sv-slot { position: relative; display: inline-block; }
.sv-slot input { position: absolute; opacity: 0; inset: 0; }
.sv-slot span, span.sv-slot { display: inline-block; padding: .4rem .8rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); font-variant-numeric: tabular-nums; cursor: pointer; }
.sv-slot input:checked + span { border-color: var(--primary); background: var(--tint); color: var(--primary); font-weight: 600; }
.sv-slot input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.sv-status { font-size: .8rem; padding: .1rem .5rem; border-radius: 2rem; background: var(--tint); }
.sv-status.s-Confirmed { background: #dff7e9; color: #127a3e; }
.sv-status.s-Requested { background: #fff1c7; color: #8a6100; }
.sv-status.s-Cancelled, .sv-status.s-Expired, .sv-status.s-NoShow { background: #f1f1f2; color: var(--muted); }
.sv-vouchers { list-style: none; padding: 0; margin: 0; }
.sv-vouchers li { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.sv-vouchers small { display: block; color: var(--muted); }
.sv-voucher-actions { display: flex; gap: .4rem; align-items: flex-start; flex-wrap: wrap; }
.sv-gift { display: flex; flex-direction: column; gap: .4rem; margin-top: .4rem; min-width: 220px; }

/* ── Customer portal (/account, /account/club) ── */
.pt-hello { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pt-hello .page-lead { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.pt-chip { display: inline-flex; align-items: center; gap: .2rem; padding: .1rem .6rem; border-radius: 999px; background: var(--tint); color: var(--primary); font-size: .8rem; font-weight: 600; }
.pt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem; margin: .5rem 0 1.25rem; }
.pt-stat { display: grid; gap: .15rem; padding: 1rem 1.1rem; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
a.pt-stat:hover { border-color: var(--primary); }
.pt-stat > .ti { font-size: 1.5rem; color: var(--primary); }
.pt-stat > span { color: var(--muted); font-size: .85rem; }
.pt-stat > strong { font-size: 1.25rem; font-weight: 800; }
.pt-stat > small { color: var(--muted); font-size: .78rem; }
.pt-stat.is-due { border-color: #fca5a5; }
.pt-stat.is-due > .ti, .pt-stat.is-due > strong { color: #b91c1c; }
.pt-stat.is-wait > .ti { color: #b45309; }
.pt-stat.is-ok > strong { color: #15803d; }
.pt-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; }
.pt-col { display: grid; gap: 1.1rem; min-width: 0; }
.pt-block h2 { flex-wrap: wrap; }
.pt-more { margin-inline-start: auto; font-size: .8rem; font-weight: 500; }
.pt-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.pt-list > li { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem .8rem; border-radius: .75rem; background: var(--bg); flex-wrap: wrap; }
.pt-list-tight > li { padding: .45rem .7rem; }
.pt-list-main { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.pt-list-main small { color: var(--muted); }
.pt-list-end { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: flex-end; }
.pt-list-end small { color: var(--muted); font-size: .75rem; }
.pt-list-end form { margin: 0; }
.pt-link { font-size: .8rem; display: inline-flex; align-items: center; gap: .2rem; }
.pt-kv { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: .75rem 0 0; font-size: .9rem; }
.pt-kv dt { color: var(--muted); font-weight: 400; }
.pt-kv dd { margin: 0; text-align: left; }
.pt-club-tier { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .5rem; }
.pt-club-tier strong { font-size: 1.15rem; }
.pt-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .75rem; }
.pt-code { font-family: ui-monospace, monospace; letter-spacing: .05em; }
.pt-join { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; }
.pt-tiers { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pt-tiers li { display: grid; padding: .55rem .8rem; border-radius: .75rem; background: var(--bg); border-inline-start: 4px solid var(--border); }
.pt-tiers li small { color: var(--muted); }
.pt-tiers li.is-current { border-inline-start-color: var(--primary); background: var(--tint); }
@media (max-width: 991.98px) {
    .pt-grid, .pt-join { grid-template-columns: minmax(0, 1fr); }
}

/* ── مشاوره آنلاین (/advice) ── */
.adv-status { display: inline-flex; align-items: center; gap: .15rem; font-size: .85rem; color: var(--muted); }
.adv-status.is-on { color: #15803d; }
.adv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.adv-card { display: flex; flex-direction: column; gap: .6rem; padding: 1.4rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); scroll-margin-top: calc(var(--st-header-h, 130px) + 16px); }
.adv-card:target { border-color: var(--primary); }
.adv-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 1rem; background: var(--tint); color: var(--primary); font-size: 1.6rem; }
.adv-card h2 { margin: .2rem 0 0; font-size: 1.15rem; font-weight: 800; }
.adv-card p { margin: 0; color: var(--muted); flex: 1; }
.adv-actions { display: grid; gap: .5rem; margin-top: .4rem; }
.adv-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: .35rem; }
.adv-form { font-size: .85rem; display: inline-flex; align-items: center; gap: .25rem; }

/* Menu items with a short dropdown (آموزش، مشاوره آنلاین); in the phone drawer they open in place. */
@media (max-width: 991.98px) {
    .st-header .st-navdrop .st-dropdown { position: static; box-shadow: none; border: 0; padding: .25rem 0 .5rem; margin-inline-start: .75rem; min-width: 0; }
}
.cm-cta { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ── Order survey after delivery (/survey/{token}) ─────────────────────────────────────────────── */
.survey-card { max-width: 560px; margin: 2rem auto; padding: 1.5rem; }
.survey-card h1 { font-size: 1.4rem; margin: .75rem 0 .25rem; }
.survey-items { font-size: .9rem; color: var(--bs-secondary-color, #6f6b7d); margin: .5rem 0 1rem; }
.survey-form .survey-rating { display: flex; width: 100%; margin: .75rem 0; }
.survey-form .survey-rating legend { font-weight: 600; }
.survey-form .survey-rating label { font-size: 2rem; }
.survey-done .survey-scores { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin: .5rem 0 1rem; color: #f0a500; }
.survey-done .survey-scores span { color: inherit; white-space: nowrap; }
