/* ==========================================================================
   استایل صفحات
   ========================================================================== */

/* ---------- بنر اصلی ---------- */
.hero { position: relative; min-height: clamp(460px, 62vh, 620px); display: flex; align-items: center; background: var(--navy-950); color: #fff; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); z-index: -2; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(270deg, rgba(7, 15, 34, .96) 0%, rgba(7, 15, 34, .82) 38%, rgba(7, 15, 34, .25) 70%, rgba(7, 15, 34, .1) 100%); }
.hero__inner { padding-block: 64px; }
.hero__content { max-width: 600px; display: grid; gap: 20px; justify-items: start; }
.hero h1 { font-size: var(--fs-2xl); color: #fff; line-height: 1.35; font-weight: 900; letter-spacing: -.3px; }
.hero h1 span { color: #ff8a5c; }
.hero p { font-size: var(--fs-md); color: #c9d3e8; line-height: 2; max-width: 52ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 44px); margin-top: 18px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }
.hero__stats li { display: grid; line-height: 1.4; }
.hero__stats strong { font-size: 1.6rem; font-weight: 900; }
.hero__stats span { font-size: var(--fs-sm); color: #9eabc8; }
.eyebrow--dark { background: rgba(240, 90, 40, .16); color: #ff9b73; border: 1px solid rgba(240, 90, 40, .35); }

/* ---------- نوار اعتماد ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: -44px; position: relative; z-index: 2; }
.trust__item { display: flex; align-items: center; gap: 14px; padding: 22px 24px; }
.trust__item + .trust__item { border-inline-start: 1px solid var(--border); }
.trust__item strong { display: block; font-size: var(--fs-sm); font-weight: 800; }
.trust__item small { color: var(--muted); font-size: var(--fs-xs); }
.trust__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-50); color: var(--accent); flex-shrink: 0; }

/* ---------- کارت‌های دسته‌بندی ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cat-card { display: grid; justify-items: center; text-align: center; gap: 4px; padding: 18px 10px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); transition: .3s var(--ease); }
.cat-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat-card__img { width: 100%; aspect-ratio: 1; max-width: 120px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 8px; overflow: hidden; transition: background .3s; }
.cat-card:hover .cat-card__img { background: var(--accent-50); }
.cat-card__img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .4s var(--ease); }
.cat-card:hover .cat-card__img img { transform: scale(1.08) rotate(-3deg); }
.cat-card__name { font-weight: 800; font-size: var(--fs-sm); line-height: 1.6; }
.cat-card__count { font-size: var(--fs-xs); color: var(--muted); }
.cat-card--all { background: var(--navy-800); border-color: var(--navy-800); align-content: center; color: #fff; }
.cat-card--all .cat-card__name { font-size: var(--fs-base); }
.cat-card--all .cat-card__count { color: #a9b6d4; }
.cat-card--all:hover { background: var(--accent); border-color: var(--accent); }
.cat-card--all:hover .cat-card__count { color: #fff; }

/* ---------- پیشنهاد ویژه ---------- */
.offers { background: radial-gradient(1200px 400px at 85% 0%, #1d3a75 0%, transparent 60%), var(--navy-900); color: #fff; }
.offers__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.offers__head h2 { color: #fff; font-size: var(--fs-xl); margin-top: 10px; }
.offers__head p { color: #a9b6d4; }
.countdown { display: flex; align-items: center; gap: 8px; direction: ltr; }
.countdown > div { display: grid; justify-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; padding: 8px 12px; min-width: 66px; }
.countdown strong { font-size: 1.6rem; font-weight: 900; line-height: 1.2; font-variant-numeric: tabular-nums; }
.countdown small { font-size: 11px; color: #a9b6d4; }
.countdown > span { font-size: 1.4rem; font-weight: 800; color: var(--accent); }
.offers .pcard { border-color: transparent; color: var(--text); }
.offers__more { text-align: center; margin-top: 28px; }

/* ---------- بنرهای تبلیغاتی ---------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding-bottom: var(--section); }
.promo { position: relative; display: flex; align-items: flex-end; min-height: 260px; border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: #fff; }
.promo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.promo:hover img { transform: scale(1.05); }
.promo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(7, 15, 34, .92) 0%, rgba(7, 15, 34, .4) 55%, rgba(7, 15, 34, 0) 100%); }
.promo__txt { padding: 28px; display: grid; gap: 8px; justify-items: start; }
.promo__txt small { color: #ffb08f; font-weight: 700; }
.promo__txt h3 { color: #fff; font-size: var(--fs-lg); }

/* ---------- برندها ---------- */
.brand-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.brand-tile { display: grid; justify-items: center; text-align: center; padding: 22px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; transition: .25s var(--ease); gap: 2px; }
.brand-tile strong { font-size: 1.15rem; font-weight: 900; color: var(--navy-800); }
.brand-tile span { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .5px; color: var(--muted); text-transform: uppercase; font-family: system-ui, sans-serif; }
.brand-tile small { font-size: 11px; color: var(--muted); margin-top: 6px; }
.brand-tile:hover { border-color: var(--navy-800); background: var(--navy-800); }
.brand-tile:hover strong, .brand-tile:hover span, .brand-tile:hover small { color: #fff; }

/* ---------- مزایا ---------- */
.section-head--center { justify-content: center; text-align: center; }
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefit { background: #fff; border-radius: var(--radius-lg); padding: 28px 24px; border: 1px solid var(--border); transition: .3s var(--ease); }
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.benefit__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--navy-800); color: #fff; margin-bottom: 18px; }
.benefit:hover .benefit__icon { background: var(--accent); }
.benefit h3 { font-size: var(--fs-md); margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: var(--fs-sm); line-height: 2; }

/* ---------- سرصفحه‌ها ---------- */
.page-head { background: var(--surface-2); border-bottom: 1px solid var(--border); padding-bottom: 28px; }
.page-head h1 { font-size: var(--fs-xl); }
.page-head--sm { padding-bottom: 20px; }
.cat-hero { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cat-hero__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 28px; min-height: 200px; }
.cat-hero .breadcrumb { color: #a9b6d4; }
.cat-hero .breadcrumb [aria-current] { color: #fff; }
.cat-hero h1 { color: #fff; font-size: var(--fs-xl); }
.cat-hero p { color: #c9d3e8; max-width: 60ch; margin-top: 4px; }
.cat-hero__count { display: inline-block; margin-top: 12px; font-size: var(--fs-xs); font-weight: 700; padding: 3px 12px; border-radius: 99px; background: rgba(255, 255, 255, .12); }
.cat-hero__count:empty { display: none; }
.cat-hero__inner > img { width: 170px; height: 170px; object-fit: contain; background: #fff; border-radius: 50%; padding: 18px; box-shadow: 0 0 0 8px rgba(255, 255, 255, .08); flex-shrink: 0; }

.cat-chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 4px; scrollbar-width: none; }
.cat-chips::-webkit-scrollbar { display: none; }
.cat-chips a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--border); font-size: var(--fs-sm); font-weight: 600; transition: .2s; background: #fff; }
.cat-chips a img { width: 28px; height: 28px; object-fit: contain; border-radius: 50%; background: var(--surface-2); }
.cat-chips a:hover { border-color: var(--navy-800); }
.cat-chips a.is-active { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }

.cat-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding-top: 28px; }
.cat-row { display: flex; gap: 18px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius); transition: .25s var(--ease); background: #fff; }
.cat-row:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-2px); }
.cat-row img { width: 110px; height: 110px; object-fit: contain; background: var(--surface-2); border-radius: var(--radius); padding: 8px; mix-blend-mode: multiply; flex-shrink: 0; }
.cat-row h2 { font-size: var(--fs-md); }
.cat-row p { color: var(--muted); font-size: var(--fs-sm); line-height: 1.9; }

/* ---------- لیست محصولات و فیلتر ---------- */
.listing { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding-top: 28px; align-items: start; }
.filters { position: sticky; top: 148px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; max-height: calc(100vh - 168px); display: flex; flex-direction: column; }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); }
.filters__head h2 { font-size: var(--fs-base); display: flex; align-items: center; gap: 8px; }
.filters__reset { font-size: var(--fs-xs); color: var(--accent-600); font-weight: 700; }
.filters__reset:hover { text-decoration: underline; }
.filters__close, .filters__foot { display: none; }
.filters__body { overflow: auto; padding: 4px 18px 18px; }
.fgroup { padding: 14px 0; border-bottom: 1px solid var(--border); }
.fgroup:last-child { border-bottom: 0; }
.fgroup__title { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: var(--fs-sm); cursor: pointer; list-style: none; margin-bottom: 8px; }
.fgroup__title::-webkit-details-marker { display: none; }
details.fgroup:not([open]) .fgroup__title { margin-bottom: 0; }
details.fgroup[open] .fgroup__title .icon { transform: rotate(180deg); }
.fgroup__title .icon { transition: transform .2s; }
.fgroup__list { display: grid; max-height: 260px; overflow: auto; }
.fgroup__list .checkbox small { font-size: 10px; }
.fsearch { position: relative; }
.fsearch .icon { position: absolute; top: 50%; right: 12px; transform: translateY(-50%); color: var(--muted); }
.fsearch input { padding-right: 38px; min-height: 42px; }

.range { position: relative; height: 32px; margin: 4px 4px 10px; }
.range__track { position: absolute; top: 50%; inset-inline: 0; height: 5px; border-radius: 9px; background: var(--surface-3); transform: translateY(-50%); }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--navy-800); border-radius: 9px; }
.range input[type=range] { position: absolute; inset: 0; width: 100%; margin: 0; appearance: none; background: none; pointer-events: none; height: 32px; }
.range input[type=range]::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-800); cursor: grab; box-shadow: var(--shadow-sm); }
.range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--navy-800); cursor: grab; }
.range input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(240, 90, 40, .35); }
.range__inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range__inputs .field label { font-size: var(--fs-xs); }
.range__inputs input { min-height: 40px; text-align: center; font-size: var(--fs-sm); }

.toolbar { display: flex; align-items: center; gap: 12px; padding: 8px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; margin-bottom: 14px; min-height: 56px; }
.toolbar__filter { display: none; }
.toolbar__badge { background: var(--accent); color: #fff; border-radius: 99px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: 11px; }
.sortbar { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.sortbar__label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-2); margin-inline-end: 6px; }
.sortbar__opt { font-size: var(--fs-sm); padding: 6px 12px; border-radius: 8px; color: var(--muted); transition: .15s; }
.sortbar__opt:hover { color: var(--text); background: var(--surface-2); }
.sortbar__opt[aria-checked=true] { color: var(--accent-600); background: var(--accent-50); font-weight: 700; }
.sortselect { display: none; }
.toolbar__count { margin-inline-start: auto; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; }
.toolbar__count strong { color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--navy-100); color: var(--navy-800); font-size: var(--fs-xs); font-weight: 700; transition: .15s; }
.chip:hover { background: var(--navy-800); color: #fff; }
.loadmore { text-align: center; margin-top: 28px; }
.filters-overlay { display: none; }

/* ---------- صفحه محصول ---------- */
.pdp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { position: sticky; top: 148px; display: grid; gap: 12px; }
.gallery__main { position: relative; aspect-ratio: 1; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #fff; cursor: zoom-in; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease, opacity .15s; }
.gallery__main.is-zoom img { transform: scale(1.9); }
.gallery__main img.is-switching { opacity: 0; }
.gallery__badge { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: var(--fs-sm); }
.gallery__hint { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); font-size: 11px; color: var(--muted); background: rgba(255, 255, 255, .9); padding: 3px 12px; border-radius: 99px; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.gallery__main.is-zoom .gallery__hint { opacity: 0; }
@media (hover: none) { .gallery__hint { display: none; } }
.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumb { width: 84px; height: 84px; border: 2px solid var(--border); border-radius: 12px; overflow: hidden; background: #fff; transition: border-color .2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }
.gallery__thumb:hover { border-color: var(--navy-700); }

.pdp__info { display: grid; gap: 18px; }
.pdp__brandrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: var(--fs-sm); }
.pdp__title { font-size: var(--fs-xl); line-height: 1.5; }
.pdp__en { color: var(--muted); font-size: var(--fs-sm); margin-top: -12px; text-align: right; font-family: system-ui, sans-serif; }
.pdp__quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0; }
.pdp__quick div { background: var(--surface-2); border-radius: 10px; padding: 10px 14px; }
.pdp__quick dt { font-size: var(--fs-xs); color: var(--muted); }
.pdp__quick dd { margin: 0; font-weight: 700; font-size: var(--fs-sm); }
.pdp__quick a { color: var(--navy-700); }
.pdp__quick a:hover { color: var(--accent-600); }

.buybox { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 22px; display: grid; gap: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.buybox__stock .stock { font-size: var(--fs-sm); }
.buybox__price { display: grid; gap: 2px; justify-items: start; }
.buybox__old { display: flex; gap: 10px; align-items: center; }
.buybox__price strong { font-size: 1.7rem; font-weight: 900; }
.buybox__save { color: var(--success); font-weight: 700; font-size: var(--fs-sm); }
.buybox__save .currency { color: var(--success); }
.buybox__row { display: flex; gap: 12px; }
.buybox__row .qty { height: 54px; }
.buybox__add { flex: 1; }
.buybox__trust { display: grid; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--border-strong); font-size: var(--fs-sm); color: var(--text-2); }
.buybox__trust li { display: flex; align-items: center; gap: 10px; }
.buybox__trust .icon { color: var(--success); }
.sample-note { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.link { color: var(--navy-700); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
#inCartNote { display: flex; align-items: center; gap: 6px; color: var(--success); }
#inCartNote:empty { display: none; }

.ptabs { margin-top: 56px; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ptabs__nav { display: flex; background: var(--surface-2); border-bottom: 1px solid var(--border); overflow-x: auto; }
.ptabs__nav button { padding: 16px 22px; font-weight: 700; font-size: var(--fs-sm); color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; transition: .2s; }
.ptabs__nav button:hover { color: var(--text); }
.ptabs__nav button[aria-selected=true] { color: var(--accent-600); border-color: var(--accent); background: #fff; }
.ptabs__panel { padding: 28px; }
.ptabs__panel h2 { font-size: var(--fs-md); margin-bottom: 12px; }
.ptabs__panel p { color: var(--text-2); line-height: 2.1; max-width: 80ch; }
.spec-table { width: 100%; max-width: 720px; border-collapse: collapse; font-size: var(--fs-sm); }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--border); }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.spec-table td { font-weight: 700; }
.cars { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cars li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 10px; background: var(--navy-100); color: var(--navy-800); font-weight: 700; font-size: var(--fs-sm); }
.similar { padding-bottom: 0; }

.sticky-buy { display: none; }

/* ---------- سبد خرید ---------- */
.steps { display: flex; gap: 8px; margin-top: 14px; counter-reset: s; font-size: var(--fs-sm); flex-wrap: wrap; }
.steps li { counter-increment: s; display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; }
.steps li::before { content: counter(s, persian); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--border-strong); font-weight: 800; font-size: var(--fs-xs); }
.steps li + li::after { order: -1; content: ''; width: 32px; height: 2px; background: var(--border-strong); }
.steps li.is-active { color: var(--navy-900); }
.steps li.is-active::before { background: var(--accent); color: #fff; border-color: var(--accent); }
.steps li.is-done::before { background: var(--success); border-color: var(--success); }
.steps li.is-active::after { background: var(--accent); }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card__head h2 { font-size: var(--fs-md); display: flex; align-items: center; gap: 8px; }
.card__head h2 .muted { font-size: var(--fs-sm); font-weight: 500; }
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; padding-top: 28px; }
.cart-main { display: grid; gap: 24px; min-width: 0; }
.citems { padding: 0 22px; }
.citem { display: grid; grid-template-columns: 100px 1fr auto auto 40px; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--border); }
.citem:last-child { border-bottom: 0; }
.citem__img img { width: 100px; height: 100px; object-fit: contain; border: 1px solid var(--border); border-radius: 12px; }
.citem__info { display: grid; gap: 4px; min-width: 0; }
.citem__name { font-weight: 700; line-height: 1.6; }
.citem__name:hover { color: var(--accent-600); }
.citem__total { display: grid; justify-items: end; min-width: 150px; }
.citem__total strong { font-size: var(--fs-md); }
.citem__save { color: var(--success); font-size: var(--fs-xs); font-weight: 700; }
.citem__save .currency { color: var(--success); }
.checkout .form { padding: 22px; }
.ship-methods { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.ship-methods legend { font-weight: 700; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 8px; }
.ship { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; transition: .2s; }
.ship:hover { border-color: var(--border-strong); }
.ship.is-active, .ship:has(input:checked) { border-color: var(--navy-800); background: var(--navy-100); }
.ship.is-disabled { opacity: .55; cursor: not-allowed; }
.ship input { accent-color: var(--navy-800); width: 18px; height: 18px; margin: 0; }
.ship__txt { display: grid; flex: 1; line-height: 1.6; }
.ship__txt small { color: var(--muted); font-size: var(--fs-xs); }
.ship__cost { font-weight: 800; font-size: var(--fs-sm); }
.free { color: var(--success); font-weight: 800; }

.summary { position: sticky; top: 148px; padding: 22px; display: grid; gap: 16px; }
.summary h2 { font-size: var(--fs-md); }
.summary dl { margin: 0; display: grid; gap: 12px; }
.summary dl div { display: flex; justify-content: space-between; gap: 10px; font-size: var(--fs-sm); }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; }
.summary .is-discount dd, .summary .is-discount dd .currency { color: var(--red); }
.summary__total { padding-top: 14px; border-top: 1px solid var(--border); }
.summary__total dt { color: var(--text); font-weight: 800; }
.summary__total dd { font-size: 1.25rem; font-weight: 900; }
.summary__note { display: flex; gap: 6px; align-items: flex-start; }
.summary__note .icon { margin-top: 3px; }
.free-progress { display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--warn); }
.free-progress p { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bar { height: 6px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), #ffa05c); border-radius: 99px; transition: width .4s var(--ease); margin-inline-start: 0; }

.empty.card { margin-top: 28px; }
.success { max-width: 640px; margin: 32px auto 0; padding: 40px 32px; text-align: center; display: grid; gap: 16px; justify-items: center; }
.success__icon { width: 80px; height: 80px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.success h2 { font-size: var(--fs-xl); }
.success p { color: var(--muted); line-height: 2; }
.success__code { display: grid; gap: 2px; background: var(--surface-2); padding: 12px 28px; border-radius: 12px; border: 1px dashed var(--border-strong); }
.success__code span { font-size: var(--fs-xs); color: var(--muted); }
.success__code strong { font-size: 1.3rem; letter-spacing: 1px; color: var(--navy-800); }
.success__items { width: 100%; display: grid; gap: 8px; text-align: right; }
.success__items li { display: flex; align-items: center; gap: 12px; font-size: var(--fs-sm); padding: 8px; border-bottom: 1px solid var(--border); }
.success__items img { width: 48px; height: 48px; object-fit: contain; }
.success__items span { flex: 1; }
.success__totals { width: 100%; margin: 0; display: grid; gap: 8px; }
.success__totals div { display: flex; justify-content: space-between; font-size: var(--fs-sm); }
.success__totals div:last-child { font-size: var(--fs-md); font-weight: 900; }
.success__totals dd { margin: 0; }
.success__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- درباره ما ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-top: var(--section); }
.about__media img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; box-shadow: var(--shadow-lg); }
.about__text { display: grid; gap: 16px; justify-items: start; }
.about__text h2 { font-size: var(--fs-xl); }
.about__text p { color: var(--text-2); line-height: 2.1; }
.about__checks { display: grid; gap: 10px; }
.about__checks li { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: var(--fs-sm); }
.about__checks [data-icon] { width: 26px; height: 26px; border-radius: 50%; background: var(--success-50); color: var(--success); display: grid; place-items: center; flex-shrink: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 28px 12px; border-radius: var(--radius-lg); background: var(--navy-800); color: #fff; display: grid; gap: 4px; }
.stat strong { font-size: 2rem; font-weight: 900; color: #ff8a5c; }
.stat span { color: #c9d3e8; font-size: var(--fs-sm); }
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px); margin-top: var(--section); }
.cta-band h2 { color: #fff; font-size: var(--fs-lg); }
.cta-band p { color: #c9d3e8; margin-top: 6px; }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- تماس با ما ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; padding-top: 32px; align-items: start; }
.contact__cards { display: grid; gap: 14px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.info-card__icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.info-card h3 { font-size: var(--fs-base); margin-bottom: 2px; }
.info-card p { color: var(--text-2); font-size: var(--fs-sm); line-height: 2; }
.info-card a:hover { color: var(--accent-600); }
.info-card--social { display: grid; gap: 14px; background: var(--navy-800); border-color: var(--navy-800); }
.info-card--social h3 { color: #fff; }
.contact__form { padding: clamp(22px, 3vw, 32px); }
.contact__form h2 { font-size: var(--fs-lg); }
.contact__form > .muted { margin-bottom: 20px; }
.contact__form .btn[type=submit] { justify-self: start; }
.form-success { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 32px 0; }
.form-success__icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--success-50); color: var(--success); }
.form-success p { color: var(--muted); }
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.faq summary { padding: 18px 22px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.4rem; color: var(--accent); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--text-2); line-height: 2; }

/* ==========================================================================
   واکنش‌گرا
   ========================================================================== */
@media (max-width: 1180px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .sortbar { display: none; }
  .sortselect { display: block; }
  .sortselect select { min-height: 40px; padding: 6px 12px; font-size: var(--fs-sm); }
}
@media (max-width: 1000px) {
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(3) { border-inline-start: 0; }
  .trust__item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .benefits { grid-template-columns: repeat(2, 1fr); }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; top: auto; bottom: 0; inset-inline: 0; max-height: 86vh; z-index: 110; border-radius: 20px 20px 0 0; transform: translateY(105%); transition: transform .3s var(--ease); visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__close, .filters__foot { display: inline-grid; }
  .filters__foot { display: block; padding: 14px 18px; border-top: 1px solid var(--border); }
  .filters-overlay { display: block; position: fixed; inset: 0; background: rgba(7, 15, 34, .55); z-index: 105; opacity: 0; visibility: hidden; transition: .25s; }
  .filters-overlay.is-open { opacity: 1; visibility: visible; }
  .toolbar__filter { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .cart-layout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .about, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cat-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .filters, .gallery, .summary { top: 120px; }
  .sticky-buy { position: fixed; bottom: 0; inset-inline: 0; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px -12px rgba(11, 22, 48, .25); transform: translateY(100%); transition: transform .3s var(--ease); }
  .sticky-buy.is-visible { transform: none; }
  .sticky-buy > div { display: grid; min-width: 0; line-height: 1.5; }
  .sticky-buy small { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 680px) {
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(0deg, rgba(7, 15, 34, .97) 0%, rgba(7, 15, 34, .85) 55%, rgba(7, 15, 34, .45) 100%); }
  .hero__inner { padding-block: 120px 72px; }
  .hero__actions .btn { flex: 1; --h: 50px; padding: 0 16px; }
  .hero__stats strong { font-size: 1.3rem; }
  .trust { grid-template-columns: 1fr 1fr; margin-top: -32px; }
  .trust__item { padding: 14px; gap: 10px; flex-direction: column; align-items: flex-start; }
  .trust__icon { width: 40px; height: 40px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-card { padding: 12px 6px; }
  .cat-card__name { font-size: var(--fs-xs); }
  .brand-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .brand-tile { padding: 14px 6px; }
  .brand-tile strong { font-size: var(--fs-base); }
  .promos { grid-template-columns: 1fr; }
  .promo { min-height: 210px; }
  .benefits { grid-template-columns: 1fr; }
  .countdown > div { min-width: 56px; padding: 6px 8px; }
  .countdown strong { font-size: 1.3rem; }
  .cat-hero__inner > img { width: 96px; height: 96px; padding: 10px; }
  .cat-hero__inner { align-items: flex-start; }
  .toolbar { padding: 8px 10px; gap: 8px; }
  .pdp__quick { grid-template-columns: 1fr 1fr; }
  .buybox { padding: 16px; }
  .buybox__row { flex-direction: column; }
  .buybox__row .qty { align-self: flex-start; }
  .gallery__thumb { width: 68px; height: 68px; }
  .ptabs__panel { padding: 20px 16px; }
  .spec-table th, .spec-table td { padding: 10px; }
  .citems { padding: 0 14px; }
  .citem { grid-template-columns: 76px 1fr auto; grid-template-areas: "img info del" "qty qty total"; gap: 10px 12px; align-items: start; }
  .citem__img { grid-area: img; } .citem__img img { width: 76px; height: 76px; }
  .citem__info { grid-area: info; } .citem__qty { grid-area: qty; } .citem__total { grid-area: total; min-width: 0; align-self: center; }
  .citem__del { grid-area: del; width: 32px; height: 32px; justify-self: end; }
  .citem .qty { height: 38px; } .citem .qty button { width: 34px; }
  .checkout .form { padding: 16px; }
  .card__head { padding: 14px 16px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat strong { font-size: 1.5rem; }
  .steps li + li::after { width: 10px; }
  .steps { font-size: 11px; gap: 6px; flex-wrap: nowrap; }
  .steps li::before { width: 24px; height: 24px; }
}
@media (max-width: 400px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: repeat(2, 1fr); }
}
