/* =====================================================================
   pages.css — listing (category / products / brand), categories, brands, cart and content pages.
   Loaded on every template except home and product (layout.jinja). RTL-first, logical properties only.
   ===================================================================== */

/* ---------- page shell, breadcrumb, page title ---------- */
.pg { padding-block-start: 14px; }
@media (min-width: 768px) { .pg { padding-block-start: 22px; } }
.container.pg__narrow { max-width: calc(900px + 2 * var(--gutter)); }
.pg__card { padding: clamp(18px, 3vw, 36px); border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }

.crumbs { margin-block-end: 14px; color: var(--c-muted); font-size: .8125rem; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px; }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "/"; margin-inline: 8px; opacity: .45; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--c-primary); }
.crumbs [aria-current] { max-width: 62vw; overflow: hidden; color: var(--c-text); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }

.pgh { margin-block-end: clamp(18px, 3vw, 28px); }
.pgh__title { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem); line-height: 1.3; overflow-wrap: anywhere; }
.pgh__sub { margin-block-start: 6px; color: var(--c-muted); }

/* ---------- empty states ---------- */
.empty { display: grid; justify-items: center; gap: 12px; padding: clamp(40px, 8vw, 80px) 16px; border: 1px dashed var(--c-border); border-radius: var(--radius); background: #fff; text-align: center; }
.empty__icon { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.empty__icon .ic { width: 32px; height: 32px; }
.empty__title { font-size: 1.15rem; }
.empty__text { max-width: 46ch; color: var(--c-muted); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 4px; }

/* ---------- category / brand / search header ---------- */
.chd { display: flex; align-items: center; gap: 16px; margin-block: 6px 20px; }
.chd__img { flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: 50%; background: var(--c-surface); box-shadow: 0 0 0 4px var(--c-primary-soft); }
.chd__img img { width: 100%; height: 100%; object-fit: cover; }
.chd__logo { display: grid; place-items: center; flex: none; width: 120px; height: 76px; padding: 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; }
.chd__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.chd__copy { display: grid; gap: 6px; min-width: 0; }
.chd__title { font-size: clamp(1.35rem, 1.05rem + 1.2vw, 2rem); line-height: 1.3; overflow-wrap: anywhere; }
.chd__desc { max-width: 76ch; color: var(--c-muted); font-size: .9375rem; }
.chd__q { color: var(--c-primary); }
@media (max-width: 575px) { .chd--brand { align-items: flex-start; } .chd__logo { width: 92px; height: 60px; } }

/* ---------- per-category image slider (categories_page_category_images_slider_sections) ---------- */
.lsl { --cr-arrow-top: 50%; margin-block-end: clamp(16px, 2.5vw, 28px); }
.lsl .cr__track { border-radius: 0; }
.lsl--round .cr__track { border-radius: var(--radius); }
.lsl__slide, .lsl__slide a, .lsl__slide picture { display: block; }
.lsl__img { width: 100%; height: auto; }
.lsl .cr__arrow--prev { inset-inline-start: 14px; }
.lsl .cr__arrow--next { inset-inline-end: 14px; }
.lsl .cr__dots { position: absolute; z-index: 2; inset-inline: 0; inset-block-end: 12px; margin: 0; --dots: #fff; }
.lsl .cr__dot { position: relative; }
.lsl .cr__dot::after { content: ""; position: absolute; inset: 8px; border-radius: inherit; box-shadow: 0 0 0 1px rgb(0 0 0 / 14%); } /* the ring of the painted 8px dot (the button is 24px), visible on light slides */

/* ---------- banner rows (category + cart) ---------- */
.lbn { margin-block-end: clamp(16px, 2.5vw, 28px); }
.lbn--bg { padding-block: clamp(18px, 3vw, 36px); background: var(--lbn-bg); }
.lbn__head { display: grid; gap: 4px; margin-block-end: 14px; text-align: center; }
.lbn--full .lbn__head { padding-inline: var(--gutter); }
.lbn__title { font-size: clamp(1.15rem, 1rem + .8vw, 1.5rem); }
.lbn__text { color: var(--c-muted); }
.lbn__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(var(--lbn-cols-m, 1), minmax(0, 1fr)); }
@media (min-width: 768px) { .lbn__grid { grid-template-columns: repeat(var(--lbn-cols, 1), minmax(0, 1fr)); } }
.lbn__item { display: block; overflow: hidden; border-radius: var(--radius); background: var(--c-surface); }
.lbn--sharp .lbn__item { border-radius: 0; }
.lbn__item picture { display: block; }
.lbn__img { width: 100%; height: auto; transition: transform .6s var(--ease); }
a.lbn__item:hover .lbn__img { transform: scale(1.03); }

/* ---------- sub-categories + brands strips ---------- */
.lsc { --cr-arrow-top: 40%; margin-block: 4px 22px; }
.lsc__title { margin-block-end: 12px; font-size: 1.05rem; }
.lsc .cr__track { grid-auto-columns: 92px; gap: 14px; padding-block: 4px; }
@media (min-width: 768px) { .lsc .cr__track { grid-auto-columns: 112px; gap: 18px; } }
.lsc .cr__arrow { width: 36px; height: 36px; }
.lsc .cr__arrow--prev { inset-inline-start: -6px; }
.lsc .cr__arrow--next { inset-inline-end: -6px; }
.lsc__item { display: grid; justify-items: center; align-content: start; gap: 8px; text-align: center; }
.lsc__img { display: grid; place-items: center; width: 82px; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--c-border); border-radius: 50%; background: var(--c-surface); color: var(--c-muted); transition: border-color .2s, box-shadow .2s; }
@media (min-width: 768px) { .lsc__img { width: 96px; } }
.lsc__img img { width: 100%; height: 100%; object-fit: cover; }
a.lsc__item:hover .lsc__img, a.lsc__item:hover .lsc__logo { border-color: var(--c-primary); box-shadow: 0 0 0 3px var(--c-primary-soft); }
.lsc__name { display: -webkit-box; overflow: hidden; font-size: .8125rem; font-weight: 600; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
a.lsc__item:hover .lsc__name { color: var(--c-primary); }
@media (max-width: 767px) {
  .lsc--m-grid .cr__track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); overflow: visible; }
  .lsc--m-grid .cr__arrow { display: none; }
}
@media (min-width: 768px) {
  .lsc--d-grid .cr__track { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); overflow: visible; }
  .lsc--d-grid .cr__arrow { display: none; }
}
.lsc--brands .cr__track { grid-auto-columns: 128px; }
@media (min-width: 768px) { .lsc--brands .cr__track { grid-auto-columns: 152px; } }
.lsc__brand { width: 100%; }
.lsc__brand .lsc__name { display: block; min-block-size: 1.5em; overflow: visible; line-height: 1.5; overflow-wrap: anywhere; -webkit-line-clamp: unset; }
.lsc__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 5 / 3; padding: 10px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; color: var(--c-muted); transition: border-color .2s, box-shadow .2s; }
.lsc__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ---------- listing: toolbar ---------- */
.lst { margin-block-start: 6px; }
.lst__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-block-end: 18px; padding: 10px 12px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.lst__fbtn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding-inline: 16px; border: 1px solid var(--c-border); border-radius: var(--pill); background: #fff; font-size: .875rem; font-weight: 600; transition: border-color .2s; }
.lst__fbtn:hover { border-color: var(--c-text); }
.lst__fbtn .ic { width: 18px; height: 18px; }
.lst__dot { position: absolute; inset-block-start: 7px; inset-inline-end: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--c-primary); }
.lst__count { color: var(--c-muted); font-size: .875rem; }
.lst__sort { display: inline-flex; align-items: center; gap: 8px; margin-inline-start: auto; font-size: .875rem; }
.lst__sort-label { color: var(--c-muted); white-space: nowrap; }
.lst__sort select { width: auto; min-height: 40px; padding-block: 0; border-radius: var(--pill); font-size: .875rem; font-weight: 600; cursor: pointer; }
@media (max-width: 767px) {
  .lst__bar { gap: 8px; padding: 10px; }
  .lst__count { order: -1; width: 100%; font-size: .8125rem; }
  .lst__fbtn, .lst__sort { flex: 1 1 0; margin: 0; }
  .lst__sort-label { display: none; }
  .lst__sort select { width: 100%; }
}

/* ---------- listing: filter panel (dialog: drawer on mobile, inline for side/top on desktop) ---------- */
.lf__heading { display: flex; align-items: center; gap: 8px; }
.lf__heading .ic { width: 20px; height: 20px; }
.lf__body { display: grid; align-content: start; gap: 22px; }
.lf__block { display: grid; gap: 12px; min-width: 0; }
.lf__block + .lf__block { padding-block-start: 20px; border-block-start: 1px solid var(--c-border); }
.lf__title { font-size: .9375rem; font-weight: 700; }
.lf__attrs { font-size: .875rem; }
/* vitrin:products/filters.jinja turns itself into a fixed bottom sheet parked at top:100% below 769px (opened by
   its own toggleProductAttributeMobile); inside our drawer that sheet sat off-screen, so keep it inline */
.lf__attrs .product-attributes, .lf__attrs .product-attributes-light-box { position: static; width: auto; min-width: 0; height: auto; padding: 0; background: none; }
.lf__attrs .product-attributes-light-box-top-section { display: none; }
.lf__attrs .products-filters-container { height: auto; max-height: none; overflow: visible; opacity: 1; font-size: inherit; }
.lf__attrs .filtration-header { position: static; width: auto; padding: 0 0 7px; border: 0; }
.lf__attrs .products-filters-attribute-form { margin-top: 0; padding-bottom: 0; }
.lf__attrs .d-none { display: none; } /* Bootstrap class the include toggles (its clear link) */
/* one price filter: the theme's slider. The include's own price block (0–1000 "SAR") stays in its form, hidden, so an
   attribute filter keeps the current price; its submit stays as the attributes' button; no attributes, no block */
.lf__attrs .attribute-group:has(.attribute-price-body) .attribute-header, .lf__attrs .attribute-price-body .form-row { display: none; }
.lf__attrs:not(:has(input[type="checkbox"])) { display: none; }
@media (min-width: 992px) {
  .lst--f-side .lst__body { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 26px; align-items: start; }
  .lst--f-side .lst__fbtn, .lst--f-top .lst__fbtn { display: none; }
  .lst--f-side .lf:not([open]), .lst--f-top .lf:not([open]) {
    position: static; z-index: auto; display: flex; flex-direction: column; inset: auto; width: auto; height: auto; max-height: none;
    border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; animation: none;
  }
  .lst--f-side .lf:not([open]) { position: sticky; inset-block-start: calc(var(--hd-h, 72px) + 16px); max-height: calc(100vh - var(--hd-h, 72px) - 32px); }
  .lf:not([open]) .lf__close { display: none; }
  .lf:not([open]) .drawer__head { padding-block: 14px; }
  .lst--f-top .lf:not([open]) { margin-block-end: 20px; }
  .lst--f-top .lf:not([open]) .lf__body { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px 28px; }
  .lst--f-top .lf:not([open]) .lf__block + .lf__block { padding-block-start: 0; border: 0; }
}

/* price range (from_price / to_price, max = categories_page_price_slider_max) */
.lpr__range { --a: 0%; --b: 100%; position: relative; height: 28px; }
.lpr__range::before, .lpr__fill { content: ""; position: absolute; inset-block-start: 50%; height: 4px; border-radius: 4px; transform: translateY(-50%); }
.lpr__range::before { inset-inline: 0; background: var(--c-border); }
.lpr__fill { inset-inline-start: var(--a); inset-inline-end: calc(100% - var(--b)); background: var(--c-primary); }
.lpr__range input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.lpr__range input[type="range"]:focus { box-shadow: none; }
.lpr__range input::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.lpr__range input::-webkit-slider-thumb { width: 20px; height: 20px; margin-block-start: 4px; border: 2px solid var(--c-primary); border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); cursor: grab; pointer-events: auto; -webkit-appearance: none; }
.lpr__range input::-moz-range-track { background: transparent; }
.lpr__range input::-moz-range-thumb { width: 16px; height: 16px; border: 2px solid var(--c-primary); border-radius: 50%; background: #fff; cursor: grab; pointer-events: auto; }
.lpr__range input:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--c-primary-soft); }
.lpr__range input:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--c-primary-soft); }
.lpr__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lpr__inputs input { min-height: 40px; }

/* ---------- listing: load more / pagination ---------- */
.lst__more { display: grid; justify-items: center; gap: 10px; margin-block-start: 28px; text-align: center; }
.lst__progress { color: var(--c-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.lst__track { display: block; width: min(240px, 60%); height: 3px; overflow: hidden; border-radius: 3px; background: var(--c-border); }
.lst__track span { display: block; width: calc(var(--v, 0) * 1%); height: 100%; border-radius: inherit; background: var(--c-primary); transition: width .3s; }
.lst__more-btn { min-width: 200px; }
.lst__spin { display: none; }
.lst__more.is-loading .lst__spin { display: inline-block; }
.lst__more.is-loading .lst__more-btn, .lst__more.is-auto .lst__more-btn { display: none; }

.pgn { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-block-start: 32px; }
.pgn__a { display: grid; place-items: center; min-width: 42px; height: 42px; padding-inline: 10px; border: 1px solid var(--c-border); border-radius: var(--pill); background: #fff; font-size: .875rem; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color .2s, background .2s, color .2s; }
a.pgn__a:hover { border-color: var(--c-text); }
.pgn__a.is-active { border-color: var(--c-text); background: var(--c-text); color: #fff; }
.pgn__gap { padding-inline: 4px; color: var(--c-muted); }
.pgn__step .ic { width: 18px; height: 18px; }

/* ---------- categories page ---------- */
.cc { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.cc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.cc__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-surface); }
.cc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.cc:hover .cc__media img { transform: scale(1.05); }
.cc__ph { display: grid; place-items: center; height: 100%; color: var(--c-muted); }
.cc__ph .ic, .brc__logo > .ic { width: 36px; height: 36px; }
.cc__body { display: grid; gap: 6px; padding: 14px; }
.cc__name { font-size: 1rem; }
.cc__name a:hover { color: var(--c-primary); }
.cc__count { color: var(--c-muted); font-size: .8125rem; }
.cc__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 4px; }
.cc__sub { display: inline-block; padding: 3px 10px; border-radius: var(--pill); background: var(--c-surface); font-size: .75rem; transition: background .2s, color .2s; }
.cc__sub:hover { background: var(--c-primary-soft); color: var(--c-primary-dark); }

/* ---------- brands page ---------- */
/* minmax(0, 1fr): a large logo (Zid serves 320 px) widened the card's only column past the card and the page */
.brc { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: start; gap: 8px; height: 100%; padding: 18px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; text-align: center; transition: box-shadow .25s, border-color .25s, transform .25s; }
.brc:hover { border-color: var(--c-primary); box-shadow: var(--shadow); transform: translateY(-2px); }
.brc__logo { display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1; color: var(--c-muted); }
.brc__logo img { max-width: 80%; max-height: 100%; object-fit: contain; }
.brc__name { font-weight: 700; }
.brc__count { color: var(--c-muted); font-size: .8125rem; }
.brc__desc { display: -webkit-box; overflow: hidden; color: var(--c-muted); font-size: .8125rem; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* ---------- cart page ---------- */
.cp__title { display: flex; align-items: baseline; gap: 8px; margin-block-end: 18px; }
.cp__count { color: var(--c-muted); font-size: .6em; font-weight: 600; }
.cp__grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) {
  .cp__grid { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; }
  .cp__aside { position: sticky; inset-block-start: calc(var(--hd-h, 72px) + 16px); }
}
.cp__main, .cp__aside { display: grid; gap: 16px; min-width: 0; }
.cp__items { min-height: 120px; transition: opacity .2s; }
.cp__items.is-busy { opacity: .5; pointer-events: none; }
/* Zid's v2 cart list include (vitrin:v2/cart/products_list.jinja) is Tailwind markup and we ship no Tailwind:
   the utilities it uses are defined here, scoped to the list (lg = Tailwind's 1024px) */
.cp__items .cart-product-item { padding-block: 16px; }
.cp__items .cart-product-item + .cart-product-item { border-block-start: 1px solid var(--c-border); }
.cp__items .block { display: block; }
.cp__items .flex { display: flex; }
.cp__items .hidden { display: none; }
.cp__items .flex-col { flex-direction: column; }
.cp__items .flex-1 { flex: 1 1 0%; }
.cp__items .shrink-0 { flex-shrink: 0; }
.cp__items .min-w-0 { min-width: 0; }
.cp__items .items-start { align-items: flex-start; }
.cp__items .items-center { align-items: center; }
.cp__items .items-end { align-items: flex-end; }
.cp__items .justify-between { justify-content: space-between; }
.cp__items .justify-center { justify-content: center; }
.cp__items .gap-1 { gap: 4px; }
.cp__items .gap-2 { gap: 8px; }
.cp__items .gap-2\.5 { gap: 10px; }
.cp__items .gap-4 { gap: 16px; }
.cp__items .size-4 { width: 16px; height: 16px; }
.cp__items .size-8 { width: 32px; height: 32px; }
.cp__items .size-20 { width: 80px; height: 80px; }
.cp__items .size-full { width: 100%; height: 100%; }
.cp__items .w-48 { width: 192px; }
.cp__items .overflow-hidden { overflow: hidden; }
.cp__items .rounded { border-radius: var(--radius-xs); }
.cp__items .object-cover { object-fit: cover; }
.cp__items .text-sm { font-size: .875rem; }
.cp__items .font-medium { font-weight: 500; }
.cp__items .text-foreground { color: var(--c-text); }
.cp__items .text-destructive { color: var(--c-danger); }
.cp__items .line-through { text-decoration: line-through; }
.cp__items .line-clamp-2 { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cp__items .hover\:underline:hover { text-decoration: underline; }
.cp__items .hover\:bg-secondary:hover { background: var(--c-surface); }
.cp__items .transition-colors { transition: background-color .2s, color .2s; }
.cp__items .animate-spin { animation: spin 1s linear infinite; }
@media (min-width: 1024px) {
  .cp__items .lg\:block { display: block; }
  .cp__items .lg\:flex { display: flex; }
  .cp__items .lg\:hidden { display: none; }
  .cp__items .lg\:flex-row { flex-direction: row; }
  .cp__items .lg\:flex-col { flex-direction: column; }
  .cp__items .lg\:flex-none { flex: none; }
  .cp__items .lg\:items-start { align-items: flex-start; }
  .cp__items .lg\:justify-start { justify-content: flex-start; }
  .cp__items .lg\:gap-2 { gap: 8px; }
  .cp__items .lg\:gap-6 { gap: 24px; }
  .cp__items .lg\:w-48 { width: 192px; }
  .cp__items .lg\:w-full { width: 100%; }
}
/* safety net for markup this shim doesn't know: unsized icons and icon buttons stay visible and tappable */
.cp__items button { min-width: 32px; min-height: 32px; }
.cp__items svg:not([class]) { width: 16px; height: 16px; }
.cp__items .qty-input { display: inline-flex; align-items: center; height: 40px; border: 1px solid var(--c-border); border-radius: var(--pill); }
.cp__items .qty-input-full { width: 100%; max-width: 160px; }
.cp__items .qty-input-btn { display: grid; place-items: center; flex: none; width: 36px; height: 100%; }
.cp__items .qty-input-btn:disabled { opacity: .4; cursor: not-allowed; }
.cp__items .qty-input-btn svg { width: 16px; height: 16px; }
.cp__items .qty-input-field { flex: 1; width: 40px; min-width: 0; height: 100%; min-height: 0; padding: 0; border: 0; background: none; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.cp__items .qty-input-field:focus { box-shadow: none; }
.cp__items .qty-input:focus-within { border-color: var(--c-primary); }
.cp__items .qty-input-field::-webkit-inner-spin-button, .cp__items .qty-input-field::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.cp__continue { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: var(--c-muted); font-size: .875rem; font-weight: 600; }
.cp__continue:hover { color: var(--c-primary); }
.cp__wallet:empty { display: none; }
.cp .lbn { margin-block: clamp(28px, 4vw, 48px) 0; }

/* free shipping bar */
.fsb { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--radius); background: var(--c-primary-soft); }
.fsb__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c-primary); }
.fsb__copy { display: grid; flex: 1; gap: 8px; min-width: 0; }
.fsb__msg { font-size: .875rem; font-weight: 500; }
.fsb__msg b { color: var(--c-primary); }
.fsb__track { display: block; height: 6px; overflow: hidden; border-radius: 6px; background: #fff; }
.fsb__fill { display: block; width: calc(var(--v, 0) * 1%); height: 100%; border-radius: inherit; background: var(--c-primary); transition: width .4s var(--ease); }
.fsb.is-done { background: color-mix(in srgb, var(--c-success) 10%, #fff); }
.fsb.is-done .fsb__icon, .fsb.is-done .fsb__msg { color: var(--c-success); }
.fsb.is-done .fsb__fill { background: var(--c-success); }

/* gift row */
.cpg { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed color-mix(in srgb, var(--c-primary) 45%, transparent); border-radius: var(--radius); background: #fff; }
.cpg__icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary); }
.cpg__copy { display: grid; flex: 1; gap: 2px; min-width: 0; }
.cpg__title { font-weight: 700; }
.cpg__meta, .cpg__msg { color: var(--c-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.cpg__actions { display: flex; align-items: center; gap: 6px; }
.cpg__remove { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--c-muted); transition: background .2s, color .2s; }
.cpg__remove:hover { background: var(--c-surface); color: var(--c-danger); }
.cpg__remove .ic { width: 17px; height: 17px; }

/* order summary */
.cps { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.cps__title { font-size: 1.1rem; }
.cps__totals { display: grid; gap: 10px; font-size: .9rem; }
.cps__row { display: flex; justify-content: space-between; gap: 12px; }
.cps__row dt { color: var(--c-muted); }
.cps__row dd { margin: 0; font-weight: 600; text-align: end; }
.cps__row.is-discount dd { color: var(--c-success); }
.cps__row.is-total { padding-block-start: 12px; border-block-start: 1px dashed var(--c-border); font-size: 1.05rem; }
.cps__row.is-total dt, .cps__row.is-total dd { color: var(--c-text); font-weight: 800; }
.cps__coupon .coupon input { min-height: 42px; }
.cps__coupon .coupon .btn { min-height: 42px; }
.cps__applied { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: var(--radius-sm); background: color-mix(in srgb, var(--c-success) 10%, #fff); color: var(--c-success); font-size: .875rem; }
.cps__applied span { flex: 1; }
.cps__applied .ic { width: 17px; height: 17px; }
.cps__remove { color: var(--c-text); font-size: .8125rem; font-weight: 600; text-decoration: underline; }
.cps__actions { display: grid; gap: 10px; }
.cps__applepay:empty, .cps__widgets:empty { display: none; }

/* features under the summary */
.cpf { display: grid; gap: 10px; }
.cpf__item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; }
.cpf__icon { flex: none; width: 44px; height: 44px; object-fit: contain; }
.cpf__copy { display: grid; gap: 2px; min-width: 0; }
.cpf__title { color: var(--cpf-t, var(--c-text)); font-size: .9rem; font-weight: 700; }
.cpf__text { color: var(--cpf-s, var(--c-muted)); font-size: .8125rem; white-space: pre-line; }

/* suggested products */
.cp-sug, .bpost__rel { margin-block-start: clamp(36px, 5vw, 64px); }
.cp-sug__cell { height: 100%; }
.cp-skel { height: 100%; min-height: 320px; border-radius: var(--radius); background: linear-gradient(90deg, var(--c-surface), #fff, var(--c-surface)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* ---------- blog listing + cards ---------- */
.pills { display: flex; gap: 8px; margin-block-end: 22px; padding-block-end: 4px; overflow-x: auto; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills .chip { flex: none; }
.pills__tag { display: flex; align-items: center; gap: 8px; margin-block: -8px 18px; color: var(--c-muted); font-size: .875rem; }
.pills__tag a { display: grid; place-items: center; }
.pills__tag .ic { width: 14px; height: 14px; }
.bcard-grid { gap: clamp(16px, 2vw, 26px); }
.bcard { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s; }
.bcard:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.bcard__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface); }
.bcard__img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.bcard:hover .bcard__img { transform: scale(1.04); }
.bcard__ph { display: grid; place-items: center; height: 100%; color: var(--c-muted); }
.bcard__ph .ic { width: 40px; height: 40px; }
.bcard__body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 16px 18px 18px; }
.bcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--c-muted); font-size: .75rem; }
.bcard__cat { padding: 2px 10px; border-radius: var(--pill); background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 600; }
.bcard__title { font-size: 1.05rem; line-height: 1.45; }
.bcard__title a { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bcard__title a:hover { color: var(--c-primary); }
.bcard__text { display: -webkit-box; overflow: hidden; color: var(--c-muted); font-size: .875rem; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.bcard__more { display: inline-flex; align-items: center; gap: 6px; margin-block-start: auto; padding-block-start: 6px; color: var(--c-primary); font-size: .875rem; font-weight: 600; }
.bcard__more .ic { width: 16px; height: 16px; transition: transform .25s; }
.bcard__more:hover .ic { transform: translateX(-4px); }
[dir="ltr"] .bcard__more:hover .ic { transform: scaleX(-1) translateX(-4px); }

/* ---------- blog post ---------- */
.bpost__head, .bpost__wrap { max-width: calc(880px + 2 * var(--gutter)); }
.bpost__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block: 4px 12px; color: var(--c-muted); font-size: .8125rem; }
.bpost__meta time { display: inline-flex; align-items: center; gap: 6px; }
.bpost__meta .ic { width: 15px; height: 15px; }
.bpost__title { font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.4rem); line-height: 1.3; overflow-wrap: anywhere; }
.bpost__cover { margin-block: 22px; }
.bpost__cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.bpost__content { max-inline-size: 70ch; margin-inline: auto; font-size: 1.0625rem; }
.bpost__content h2 { margin-block-start: 1.4em; font-size: 1.4rem; }
.bpost__content h3 { margin-block-start: 1.2em; font-size: 1.15rem; }
.bpost__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-block-start: 28px; padding-block-start: 18px; border-block-start: 1px solid var(--c-border); }
.bpost__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.share { display: flex; align-items: center; gap: 8px; }
.share__label { display: inline-flex; align-items: center; gap: 6px; margin-inline-end: 4px; color: var(--c-muted); font-size: .875rem; }
.share__label .ic { width: 17px; height: 17px; }
.share__a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--c-border); border-radius: 50%; background: #fff; transition: background .2s, color .2s, border-color .2s; }
.share__a:hover { border-color: var(--c-text); background: var(--c-text); color: #fff; }
.share__a .ic { width: 17px; height: 17px; }

/* ---------- shipping & payment ---------- */
.shp-sec { margin-block-end: clamp(28px, 4vw, 44px); }
.shp-sec__title { display: flex; align-items: center; gap: 10px; margin-block-end: 14px; font-size: 1.15rem; }
.shp-sec__title .ic { width: 22px; height: 22px; color: var(--c-primary); }
.shp-sec__note { margin-block-start: 12px; color: var(--c-muted); font-size: .875rem; }
.shp { display: grid; gap: 10px; }
.shp__row { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.shp__row--head { display: none; }
.shp__cell { display: flex; justify-content: space-between; gap: 12px; font-size: .875rem; }
.shp__cell[data-label]::before { content: attr(data-label); flex: none; color: var(--c-muted); }
.shp__val { text-align: end; }
.shp__co { align-items: center; justify-content: flex-start; padding-block-end: 10px; border-block-end: 1px solid var(--c-border); font-size: .95rem; }
@media (min-width: 768px) {
  .shp { gap: 0; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
  .shp__row { grid-template-columns: 1.3fr 1.7fr 1fr 1fr; align-items: center; gap: 16px; border: 0; border-block-start: 1px solid var(--c-border); border-radius: 0; }
  .shp__row--head { display: grid; border-block-start: 0; background: var(--c-surface); color: #626977; font-size: .8125rem; font-weight: 700; } /* --c-muted is 4.47:1 on --c-surface */
  .shp__cell { display: block; }
  .shp__cell[data-label]::before { display: none; }
  .shp__val { text-align: start; }
  .shp__co { display: flex; padding: 0; border: 0; }
}
.shp__co { gap: 12px; }
.shp__logo, .bank__logo { display: grid; place-items: center; flex: none; width: 56px; height: 40px; padding: 4px; border: 1px solid var(--c-border); border-radius: var(--radius-xs); background: #fff; color: var(--c-muted); }
.shp__logo img, .bank__logo img { max-height: 100%; object-fit: contain; }
.shp__cities, .shp__cities li, .shp__more, .shp__more summary { display: inline; }
.shp__cities li:not(:last-child)::after { content: "، "; }
[dir="ltr"] .shp__cities li:not(:last-child)::after { content: ", "; }
.shp__more summary { margin-inline-start: 4px; color: var(--c-primary); font-weight: 600; cursor: pointer; list-style: none; }
.shp__more summary::-webkit-details-marker { display: none; }
.shp__more[open] summary { display: none; }
.shp__more[open] .shp__cities::before { content: "، "; }
[dir="ltr"] .shp__more[open] .shp__cities::before { content: ", "; }
.shp__ok { display: inline-flex; align-items: center; gap: 6px; color: var(--c-success); font-weight: 600; }
.shp__ok .ic { width: 16px; height: 16px; }
.pay-icons { display: flex; flex-wrap: wrap; gap: 10px; }
.pay-icons li { display: grid; place-items: center; min-width: 84px; height: 52px; padding: 8px 14px; border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: #fff; }
.pay-icons img { width: auto; max-height: 32px; }
.bank { display: grid; align-content: start; gap: 12px; padding: 16px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.bank__head { display: flex; align-items: center; gap: 12px; padding-block-end: 12px; border-block-end: 1px solid var(--c-border); }
.bank__rows { display: grid; gap: 10px; }
.bank__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .875rem; }
.bank__row dt { flex: none; color: var(--c-muted); }
.bank__row dd { display: flex; align-items: center; gap: 6px; min-width: 0; margin: 0; font-weight: 600; }
.bank__row bdi { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.bank__copy { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--c-surface); transition: background .2s, color .2s; }
.bank__copy:hover { background: var(--c-primary); color: var(--c-on-primary); }
.bank__copy .ic { width: 15px; height: 15px; }

/* ---------- reviews & questions ---------- */
.phd { display: flex; align-items: center; gap: 14px; margin-block: 6px 22px; padding: 12px 14px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; transition: border-color .2s; }
.phd:hover { border-color: var(--c-primary); }
.phd__img { display: grid; place-items: center; flex: none; width: 64px; height: 64px; overflow: hidden; border-radius: var(--radius-sm); background: var(--c-surface); color: var(--c-muted); }
.phd__img img { width: 100%; height: 100%; object-fit: cover; }
.phd__copy { display: grid; flex: 1; gap: 4px; min-width: 0; }
.phd__name { font-weight: 700; }
.phd__go { display: inline-flex; align-items: center; gap: 6px; color: var(--c-primary); font-size: .8125rem; font-weight: 600; white-space: nowrap; }
.phd__go .ic { width: 16px; height: 16px; }
@media (max-width: 575px) { .phd__go { display: none; } }
.rv { display: grid; gap: 24px; align-items: start; }
@media (min-width: 992px) {
  .rv { grid-template-columns: 340px minmax(0, 1fr); gap: 32px; }
  .rv__side { position: sticky; inset-block-start: calc(var(--hd-h, 72px) + 16px); }
}
.rv__side { display: grid; gap: 16px; }
.rv__score { display: grid; justify-items: center; gap: 6px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; text-align: center; }
.rv__avg { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.rv__score .stars { color: #e5e7eb; }
.rv__score .stars .ic { width: 20px; height: 20px; }
.rv__bars { display: grid; gap: 6px; width: 100%; margin-block-start: 8px; font-size: .8125rem; }
.rv__bars li { display: grid; grid-template-columns: 12px 14px 1fr 28px; align-items: center; gap: 8px; }
.rv__bars .ic { width: 13px; height: 13px; fill: #f59e0b; stroke: none; }
.rv__bar { height: 6px; overflow: hidden; border-radius: 6px; background: var(--c-surface); }
.rv__bar span { display: block; width: calc(var(--v, 0) * 1%); height: 100%; border-radius: inherit; background: #f59e0b; }
.rvf { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.rvf__title { font-size: 1.05rem; font-weight: 700; }
.rvf__rate { display: grid; gap: 6px; margin: 0; padding: 0; border: 0; }
.rvf__rate legend { margin-block-end: 6px; padding: 0; color: var(--c-muted); font-size: .875rem; }
.rvf__stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rvf__stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.rvf__stars label { color: #d1d5db; cursor: pointer; transition: color .15s; }
.rvf__stars label .ic { width: 30px; height: 30px; fill: currentColor; stroke: none; }
.rvf__stars input:checked ~ label, .rvf__stars label:hover, .rvf__stars label:hover ~ label { color: #f59e0b; }
.rvf__stars input:focus-visible + label { border-radius: 4px; outline: 2px solid var(--c-primary); outline-offset: 2px; }
.rvf textarea { resize: vertical; }
.chk { display: flex; align-items: center; gap: 8px; font-size: .875rem; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--c-primary); }
.rv__list { display: grid; gap: 14px; min-width: 0; }
.rvc, .qa { display: grid; gap: 10px; padding: 16px 18px; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.rvc__head { display: flex; align-items: center; gap: 12px; }
.rvc__avatar { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--c-primary-soft); color: var(--c-primary-dark); font-weight: 800; }
.rvc__who { flex: 1; min-width: 0; }
.rvc__name { font-size: .9rem; font-weight: 700; }
.rvc__date { color: var(--c-muted); font-size: .75rem; }
.rvc .stars { color: #e5e7eb; }
.rvc__text { line-height: 1.75; overflow-wrap: anywhere; }
.rvc__imgs { display: flex; flex-wrap: wrap; gap: 8px; }
.rvc__imgs img { width: 72px; height: 72px; object-fit: cover; border-radius: var(--radius-xs); }
.rvc__reply { padding: 12px 14px; border-inline-start: 3px solid var(--c-primary); border-radius: var(--radius-xs); background: var(--c-surface); font-size: .875rem; }
.rvc__reply-by { display: flex; align-items: center; gap: 6px; margin-block-end: 4px; font-weight: 700; }
.rvc__reply-by .ic { width: 16px; height: 16px; }
.qa { gap: 8px; }
.qa__q { display: flex; gap: 10px; font-weight: 700; }
.qa__tag { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 8px; background: var(--c-text); color: #fff; font-size: .75rem; font-weight: 800; }
.qa__tag--a { background: var(--c-primary); color: var(--c-on-primary); }
.qa__by { padding-inline-start: 36px; color: var(--c-muted); font-size: .75rem; }
.qa__a { display: flex; gap: 10px; padding: 12px; border-radius: var(--radius-sm); background: var(--c-surface); }
.qa__wait { display: flex; align-items: center; gap: 6px; padding-inline-start: 36px; color: var(--c-warning); font-size: .8125rem; }
.qa__wait .ic { width: 15px; height: 15px; }

/* ---------- 404 ---------- */
.e404 { display: grid; justify-items: center; gap: 14px; max-width: 680px; padding-block: clamp(32px, 8vw, 80px); text-align: center; }
.e404__code { background: linear-gradient(135deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 35%, #fff)); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: clamp(5rem, 3rem + 10vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.e404__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); }
.e404__text { max-width: 52ch; color: var(--c-muted); }
.e404__search { display: flex; gap: 8px; width: 100%; max-width: 520px; margin-block-start: 6px; }
.e404__search input { flex: 1; min-height: 50px; padding-inline: 20px; border-radius: var(--pill); }
.e404__search .btn { min-height: 50px; }
.e404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-block-start: 6px; }
@media (max-width: 480px) { .e404__search .btn span { display: none; } }
