/* ==========================================================================
   فروشگاه — webadmin/assets/front/shop.css
   از متغیرهای cms.css استفاده می‌کند (--cms-primary, --cms-radius, ...) تا با هر قالبی هماهنگ باشد.
   هر قالب می‌تواند --shop-cols یا رنگ‌ها را بازنویسی کند.
   ========================================================================== */
.shop-wrap { padding-block: clamp(20px, 4vw, 48px); color: var(--cms-ink, #171a21); }
.shop-wrap *, .shop-block * { box-sizing: border-box; }
.shop-wrap [hidden], .shop-block [hidden] { display: none !important; }
.shop-muted { color: var(--cms-muted, #5d6472); font-size: .9em; }
.shop-title { font-size: clamp(1.3rem, 2.4vw, 1.8rem); margin: 0 0 18px; }
.shop-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* مسیر */
.shop-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .85rem; color: var(--cms-muted, #5d6472); margin-bottom: 16px; }
.shop-crumbs a { color: inherit; text-decoration: none; }
.shop-crumbs a:hover { color: var(--cms-primary, #4f46e5); }

/* هشدار */
.shop-alert { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; line-height: 1.9; font-size: .95rem; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }
.shop-alert--err { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.shop-empty { padding: 48px 20px; text-align: center; background: var(--cms-soft, #f5f6fa); border-radius: var(--cms-radius, 14px); color: var(--cms-muted, #5d6472); }
.shop-empty a { color: var(--cms-primary, #4f46e5); }

/* سرصفحه و دسته‌ها */
.shop-head h1 { margin: 0 0 8px; font-size: clamp(1.4rem, 2.8vw, 2rem); }
.shop-intro { color: var(--cms-muted, #5d6472); line-height: 2; margin-bottom: 16px; max-width: 900px; }
.shop-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.shop-cat { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--cms-line, rgba(0,0,0,.1)); border-radius: 999px; text-decoration: none; color: inherit; background: var(--cms-surface, #fff); font-size: .9rem; transition: border-color .2s, color .2s; }
.shop-cat:hover { border-color: var(--cms-primary, #4f46e5); color: var(--cms-primary, #4f46e5); }
.shop-cat img { width: 28px; height: 28px; object-fit: cover; border-radius: 50%; }

/* فیلترها */
.shop-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; padding: 12px; background: var(--cms-soft, #f5f6fa); border-radius: var(--cms-radius, 14px); }
.shop-filters input[type=search] { flex: 1 1 220px; }
.shop-filters input[type=text] { width: 110px; }
.shop-filters input[type=search], .shop-filters input[type=text], .shop-filters select { padding: 8px 12px; border: 1px solid var(--cms-line, rgba(0,0,0,.12)); border-radius: 10px; font: inherit; background: #fff; color: inherit; }
.shop-filters label { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; cursor: pointer; }
.shop-filters button { padding: 8px 16px; border: 0; border-radius: 10px; background: var(--cms-primary, #4f46e5); color: var(--cms-on-primary, #fff); font: inherit; cursor: pointer; }
.shop-count { font-size: .85rem; color: var(--cms-muted, #5d6472); margin: 0 0 12px; }

/* شبکه و کارت محصول */
.shop-grid { --shop-cols: 4; display: grid; grid-template-columns: repeat(var(--shop-cols), minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.shop-block .shop-grid { --shop-cols: inherit; }
.shop-block { --shop-cols: 4; margin-block: clamp(20px, 4vw, 40px); }
@media (max-width: 1024px) { .shop-grid, .shop-block { --shop-cols: 3 !important; } }
@media (max-width: 720px)  { .shop-grid, .shop-block { --shop-cols: 2 !important; } }
.shop-block-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; }
.shop-block-head h2 { margin: 0; font-size: clamp(1.1rem, 2vw, 1.4rem); }
.shop-block-head a { color: var(--cms-primary, #4f46e5); text-decoration: none; font-size: .9rem; white-space: nowrap; }

.shop-card { position: relative; display: flex; flex-direction: column; background: var(--cms-surface, #fff); border: 1px solid var(--cms-line, rgba(0,0,0,.1)); border-radius: var(--cms-radius, 14px); overflow: hidden; transition: box-shadow .25s var(--cms-ease, ease), transform .25s var(--cms-ease, ease); }
.shop-card:hover { box-shadow: var(--cms-shadow, 0 10px 28px -12px rgba(15,20,30,.18)); transform: translateY(-2px); }
.shop-card__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; background: var(--cms-soft, #f5f6fa); overflow: hidden; }
.shop-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 6%; transition: transform .4s var(--cms-ease, ease); }
.shop-card:hover .shop-card__media img { transform: scale(1.04); }
.shop-card__noimg { font-size: 42px; opacity: .45; }
.shop-card__off { position: absolute; top: 10px; right: 10px; background: #e11d48; color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.shop-card__body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px 14px; gap: 10px; }
.shop-card__title { margin: 0; font-size: .95rem; font-weight: 600; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.shop-card__title a { color: inherit; text-decoration: none; }
.shop-card__title a::after { content: ""; position: absolute; inset: 0; }
.shop-card__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.shop-card.is-out { opacity: .75; }
.shop-card.is-out .shop-card__media img { filter: grayscale(.7); }

.shop-price { display: flex; flex-direction: column; line-height: 1.5; font-variant-numeric: tabular-nums; }
.shop-price del { color: var(--cms-muted, #5d6472); font-size: .8rem; }
.shop-price strong { font-size: 1rem; font-weight: 800; }
.shop-price small { font-weight: 400; font-size: .75rem; color: var(--cms-muted, #5d6472); }
.shop-price--lg strong { font-size: 1.5rem; }
.shop-price--lg del { font-size: .95rem; }
.shop-add { position: relative; z-index: 2; flex: none; width: 38px; height: 38px; border-radius: 12px; border: 0; background: var(--cms-primary, #4f46e5); color: var(--cms-on-primary, #fff); display: grid; place-items: center; cursor: pointer; transition: transform .15s, filter .2s; }
.shop-add:hover { filter: brightness(1.08); }
.shop-add:active { transform: scale(.94); }
.shop-add.is-busy { opacity: .6; pointer-events: none; }
.shop-add.is-done { background: #059669; }
.shop-out { color: #b91c1c; font-size: .85rem; font-weight: 700; }
.shop-out--lg { font-size: 1.05rem; margin: 0 0 12px; }

/* صفحه‌بندی */
.shop-pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.shop-pager a, .shop-pager span { min-width: 38px; height: 38px; padding: 0 10px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--cms-line, rgba(0,0,0,.1)); text-decoration: none; color: inherit; font-size: .9rem; }
.shop-pager .is-current { background: var(--cms-primary, #4f46e5); border-color: var(--cms-primary, #4f46e5); color: var(--cms-on-primary, #fff); font-weight: 700; }

/* صفحه محصول */
.shop-product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(20px, 4vw, 48px); align-items: start; margin-bottom: 40px; }
@media (max-width: 860px) { .shop-product { grid-template-columns: 1fr; } }
.shop-gallery__main { position: relative; aspect-ratio: 1; background: var(--cms-soft, #f5f6fa); border-radius: var(--cms-radius, 14px); display: grid; place-items: center; overflow: hidden; }
.shop-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.shop-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; }
.shop-gallery__thumbs button { flex: none; width: 70px; height: 70px; padding: 4px; border: 2px solid transparent; border-radius: 12px; background: var(--cms-soft, #f5f6fa); cursor: pointer; }
.shop-gallery__thumbs button.is-active { border-color: var(--cms-primary, #4f46e5); }
.shop-gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.shop-summary h1 { margin: 0 0 6px; font-size: clamp(1.3rem, 2.6vw, 1.9rem); line-height: 1.6; }
.shop-subtitle { margin: 0 0 8px; color: var(--cms-muted, #5d6472); direction: auto; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 16px; font-size: .9rem; margin-bottom: 14px; }
.shop-meta a { color: var(--cms-primary, #4f46e5); text-decoration: none; }
.shop-short { line-height: 2; color: var(--cms-muted, #5d6472); margin-bottom: 18px; }
.shop-buybox { padding: 18px; border: 1px solid var(--cms-line, rgba(0,0,0,.1)); border-radius: var(--cms-radius, 14px); background: var(--cms-surface, #fff); }
.shop-buy { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.shop-stock-warn { color: #b45309; font-size: .88rem; margin: 8px 0 0; }
.shop-note { font-size: .85rem; color: var(--cms-muted, #5d6472); margin: 10px 0 0; line-height: 1.8; }
.shop-note--warn { color: #b45309; }
.shop-qty { display: inline-flex; align-items: center; border: 1px solid var(--cms-line, rgba(0,0,0,.14)); border-radius: 12px; overflow: hidden; background: #fff; }
.shop-qty button { width: 38px; height: 42px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: inherit; }
.shop-qty input { width: 48px; height: 42px; border: 0; text-align: center; font: inherit; font-weight: 700; -moz-appearance: textfield; background: transparent; color: inherit; }
.shop-qty input::-webkit-outer-spin-button, .shop-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.shop-fav { margin-top: 12px; border: 0; background: none; color: var(--cms-muted, #5d6472); cursor: pointer; font: inherit; font-size: .9rem; padding: 0; }
.shop-fav[aria-pressed=true] { color: #e11d48; }
.shop-stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.shop-stars i { font-style: normal; color: #d1d5db; }

/* دکمه‌ها */
.shop-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--cms-line, rgba(0,0,0,.14)); background: var(--cms-surface, #fff); color: inherit; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; transition: filter .2s, transform .15s; }
.shop-btn--primary { background: var(--cms-primary, #4f46e5); border-color: var(--cms-primary, #4f46e5); color: var(--cms-on-primary, #fff); flex: 1; }
.shop-btn--primary:hover { filter: brightness(1.08); }
.shop-btn--block { display: flex; width: 100%; margin-top: 10px; }
.shop-btn--ghost { background: transparent; }
.shop-btn.is-disabled, .shop-btn[disabled] { opacity: .5; pointer-events: none; }

/* توضیحات، مشخصات و نظرات */
.shop-tabs { max-width: 900px; }
.shop-tabs h2 { font-size: 1.2rem; margin: 32px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--cms-line, rgba(0,0,0,.1)); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.shop-tabs h2 small { font-size: .85rem; font-weight: 400; color: var(--cms-muted, #5d6472); }
.shop-desc { line-height: 2.1; }
.shop-desc img { max-width: 100%; height: auto; border-radius: 10px; }
.shop-specs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.shop-specs th, .shop-specs td { padding: 10px 14px; border-bottom: 1px solid var(--cms-line, rgba(0,0,0,.08)); text-align: start; }
.shop-specs th { width: 180px; color: var(--cms-muted, #5d6472); font-weight: 500; background: var(--cms-soft, #f5f6fa); }
.shop-review { padding: 14px 0; border-bottom: 1px solid var(--cms-line, rgba(0,0,0,.08)); }
.shop-review header { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: .92rem; }
.shop-review time { margin-inline-start: auto; color: var(--cms-muted, #5d6472); font-size: .82rem; }
.shop-review p { margin: 8px 0 0; line-height: 2; }
.shop-plus { color: #047857; font-size: .9rem; } .shop-minus { color: #b91c1c; font-size: .9rem; }
.shop-reply { margin-top: 10px; background: var(--cms-soft, #f5f6fa); border-radius: 10px; padding: 10px 14px; font-size: .9rem; line-height: 1.9; }
.shop-tag { font-size: .72rem; background: #ecfdf5; color: #047857; padding: 1px 8px; border-radius: 999px; }

/* فرم‌ها */
.shop-form label { display: flex; flex-direction: column; gap: 6px; font-size: .9rem; font-weight: 600; margin-bottom: 12px; }
.shop-form input[type=text], .shop-form input[type=tel], .shop-form input[type=number], .shop-form select, .shop-form textarea { padding: 10px 12px; border: 1px solid var(--cms-line, rgba(0,0,0,.14)); border-radius: 10px; font: inherit; font-weight: 400; background: #fff; color: inherit; width: 100%; }
.shop-form input:focus, .shop-form select:focus, .shop-form textarea:focus { outline: 0; border-color: var(--cms-primary, #4f46e5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cms-primary, #4f46e5) 18%, transparent); }
.shop-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .shop-row { grid-template-columns: 1fr; } }
.shop-review-form { margin-top: 24px; padding: 18px; background: var(--cms-soft, #f5f6fa); border-radius: var(--cms-radius, 14px); }
.shop-review-form h3 { margin: 0 0 12px; font-size: 1rem; }
.shop-check { flex-direction: row !important; align-items: center; font-weight: 400 !important; cursor: pointer; }
.shop-radio { flex-direction: row !important; align-items: flex-start; gap: 10px !important; padding: 12px 14px; border: 1px solid var(--cms-line, rgba(0,0,0,.12)); border-radius: 12px; cursor: pointer; }
.shop-radio:has(input:checked) { border-color: var(--cms-primary, #4f46e5); background: color-mix(in srgb, var(--cms-primary, #4f46e5) 6%, transparent); }
.shop-radio span { display: flex; flex-direction: column; gap: 2px; }
.shop-radio small { font-weight: 400; color: var(--cms-muted, #5d6472); }
.shop-checkout fieldset { border: 1px solid var(--cms-line, rgba(0,0,0,.1)); border-radius: var(--cms-radius, 14px); padding: 16px 18px 6px; margin: 0 0 16px; background: var(--cms-surface, #fff); }
.shop-checkout legend { font-weight: 800; padding: 0 8px; }
.shop-terms { margin: 12px 0; font-size: .88rem; }
.shop-terms div { max-height: 180px; overflow: auto; line-height: 1.9; padding: 8px 0; color: var(--cms-muted, #5d6472); }

/* سبد و جمع */
.shop-cart, .shop-checkout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
@media (max-width: 900px) { .shop-cart, .shop-checkout { grid-template-columns: 1fr; } }
.shop-line { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto auto 32px; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--cms-line, rgba(0,0,0,.08)); }
@media (max-width: 600px) { .shop-line { grid-template-columns: 64px minmax(0, 1fr) 32px; } .shop-line .shop-qty, .shop-line__total { grid-column: 2; } }
.shop-line__img { width: 76px; height: 76px; border-radius: 12px; background: var(--cms-soft, #f5f6fa); display: grid; place-items: center; overflow: hidden; text-decoration: none; font-size: 26px; }
.shop-line__img img { width: 100%; height: 100%; object-fit: contain; }
.shop-line__info a { color: inherit; text-decoration: none; font-weight: 600; line-height: 1.8; }
.shop-line__info del { font-size: .8rem; }
.shop-line__problem { color: #b91c1c; font-size: .82rem; margin: 4px 0 0; }
.shop-line__problem:empty { display: none; }
.shop-line.is-problem { background: #fff7f7; }
.shop-line__total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-line__rm { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--cms-soft, #f5f6fa); cursor: pointer; font-size: 18px; color: var(--cms-muted, #5d6472); }
.shop-line__rm:hover { background: #fee2e2; color: #b91c1c; }
.shop-cart__sum { position: sticky; top: 90px; padding: 18px; border: 1px solid var(--cms-line, rgba(0,0,0,.1)); border-radius: var(--cms-radius, 14px); background: var(--cms-surface, #fff); }
.shop-cart__sum h2, .shop-box h2 { font-size: 1.05rem; margin: 0 0 12px; }
.shop-cart__sum dl, .shop-box dl { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: .95rem; }
.shop-cart__sum dd, .shop-box dd { margin: 0; text-align: left; font-variant-numeric: tabular-nums; }
.shop-total { font-weight: 800; font-size: 1.05rem; padding-top: 8px; border-top: 1px dashed var(--cms-line, rgba(0,0,0,.15)); }
.shop-saving { color: #047857; }
.shop-mini { list-style: none; margin: 0 0 12px; padding: 0; font-size: .9rem; }
.shop-mini li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--cms-line, rgba(0,0,0,.1)); }
.shop-mini b { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* سفارش */
.shop-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.shop-order__head .shop-title { margin-bottom: 4px; }
.shop-status { display: inline-block; padding: 4px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem; background: #eef0f5; color: #475569; }
.shop-status--pending { background: #fffbeb; color: #b45309; } .shop-status--paid { background: #ecfdf5; color: #047857; }
.shop-status--process { background: #eff6ff; color: #1d4ed8; } .shop-status--sent { background: #eef2ff; color: #4338ca; }
.shop-status--cancelled { background: #fef2f2; color: #b91c1c; }
.shop-steps { display: flex; list-style: none; padding: 0; margin: 20px 0; counter-reset: s; }
.shop-steps li { flex: 1; text-align: center; font-size: .85rem; color: var(--cms-muted, #5d6472); position: relative; padding-top: 34px; counter-increment: s; }
.shop-steps li::before { content: counter(s); position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; display: grid; place-items: center; font-weight: 700; z-index: 1; color: #6b7280; }
.shop-steps li::after { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: #e5e7eb; }
.shop-steps li:first-child::after { display: none; }
.shop-steps li.is-done { color: inherit; font-weight: 700; }
.shop-steps li.is-done::before, .shop-steps li.is-done::after { background: var(--cms-primary, #4f46e5); color: #fff; }
.shop-box { padding: 18px; border: 1px solid var(--cms-line, rgba(0,0,0,.1)); border-radius: var(--cms-radius, 14px); background: var(--cms-surface, #fff); margin-bottom: 16px; line-height: 1.9; }
.shop-box--pay { border-color: var(--cms-primary, #4f46e5); }
.shop-card-info { background: var(--cms-soft, #f5f6fa); padding: 12px 14px; border-radius: 10px; margin: 10px 0; font-weight: 700; direction: rtl; }
.shop-order__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .shop-order__grid { grid-template-columns: 1fr; } }
.shop-inline { display: flex; gap: 8px; flex-wrap: wrap; }
.shop-inline input { flex: 1 1 200px; padding: 10px 12px; border: 1px solid var(--cms-line, rgba(0,0,0,.14)); border-radius: 10px; font: inherit; }
.shop-timeline { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.shop-timeline li { padding: 6px 0; border-bottom: 1px dashed var(--cms-line, rgba(0,0,0,.1)); display: flex; justify-content: space-between; gap: 10px; }
.shop-timeline time { color: var(--cms-muted, #5d6472); font-size: .85rem; }
.shop-lookup { max-width: 420px; }
.shop-subtitle-h { font-size: 1.1rem; margin: 28px 0 10px; }
.shop-orders { list-style: none; padding: 0; margin: 0; }
.shop-orders li { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cms-line, rgba(0,0,0,.08)); font-size: .92rem; }
.shop-orders a { font-weight: 700; color: var(--cms-primary, #4f46e5); }

/* لینک سبد و دکمه شناور */
.shop-cart-link { position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: inherit; }
.shop-cart-link b, .shop-fab b { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #e11d48; color: #fff; font-size: 11px; display: inline-grid; place-items: center; font-weight: 700; }
.shop-fab { position: fixed; bottom: 20px; left: 20px; z-index: 900; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: var(--cms-primary, #4f46e5); color: var(--cms-on-primary, #fff); text-decoration: none; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); font-weight: 700; font-size: .9rem; transition: transform .2s; }
.shop-fab:hover { transform: translateY(-2px); }
.shop-fab.is-bump { animation: shopBump .45s; }
@keyframes shopBump { 30% { transform: scale(1.15); } 60% { transform: scale(.95); } }
.shop-toast { position: fixed; bottom: 84px; left: 50%; transform: translate(-50%, 20px); z-index: 1000; padding: 12px 18px; border-radius: 12px; background: #111827; color: #fff; font-size: .9rem; opacity: 0; transition: .25s; max-width: calc(100vw - 32px); display: flex; gap: 12px; align-items: center; }
.shop-toast.show { opacity: 1; transform: translate(-50%, 0); }
.shop-toast.err { background: #991b1b; }
.shop-toast a { color: #a5b4fc; font-weight: 700; white-space: nowrap; }

@media print {
    .shop-fab, .shop-toast, .shop-crumbs, .shop-box--pay form { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { .shop-card, .shop-card__media img, .shop-fab { transition: none; } }

/* کد تخفیف */
.shop-coupon { margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px dashed var(--cms-line, rgba(0,0,0,.12)); }
.shop-coupon label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.shop-coupon__row { display: flex; gap: 6px; }
.shop-coupon__row input { flex: 1; min-width: 0; padding: 9px 12px; border: 1px dashed var(--cms-line, rgba(0,0,0,.2)); border-radius: 10px; font: inherit; letter-spacing: 1px; text-transform: uppercase; background: #fff; color: inherit; }
.shop-coupon__row input[readonly] { border-style: solid; border-color: #10b981; background: #ecfdf5; }
.shop-coupon__row .shop-btn { padding: 8px 14px; flex: none; }
.shop-coupon__msg { margin: 6px 0 0; font-size: .82rem; min-height: 0; }
.shop-coupon__msg:empty { display: none; }
.shop-coupon__msg.is-ok { color: #047857; }
.shop-coupon__msg.is-err { color: #b91c1c; }
.shop-radio[hidden] { display: none !important; }
.shop-radio em { font-style: normal; font-weight: 400; color: var(--cms-muted, #5d6472); }

/* تنوع محصول و چند فروشنده */
.shop-variants{margin-bottom:16px}
.shop-variants__label{display:block;font-size:.9rem;margin-bottom:8px}
.shop-variants__list{display:flex;flex-wrap:wrap;gap:8px}
.shop-variant{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1.5px solid var(--cms-line,rgba(0,0,0,.14));border-radius:999px;text-decoration:none;color:inherit;font-size:.88rem;background:#fff;transition:border-color .2s}
.shop-variant i{width:16px;height:16px;border-radius:50%;border:1px solid rgba(0,0,0,.15);display:inline-block}
.shop-variant:hover{border-color:var(--cms-primary,#4f46e5)}
.shop-variant.is-active{border-color:var(--cms-primary,#4f46e5);color:var(--cms-primary,#4f46e5);font-weight:700;box-shadow:0 0 0 3px color-mix(in srgb,var(--cms-primary,#4f46e5) 14%,transparent)}
.shop-variant.is-out{opacity:.5;text-decoration:line-through}
.shop-seller-line{display:flex;flex-wrap:wrap;gap:6px 18px;font-size:.88rem;color:var(--cms-muted,#5d6472);padding-bottom:12px;margin-bottom:12px;border-bottom:1px dashed var(--cms-line,rgba(0,0,0,.12))}
.shop-seller-line b{color:var(--cms-ink,#171a21)}
.shop-offers{margin-top:16px;border:1px solid var(--cms-line,rgba(0,0,0,.1));border-radius:var(--cms-radius,14px);background:var(--cms-surface,#fff);overflow:hidden}
.shop-offers h3{margin:0;padding:12px 16px;font-size:.95rem;background:var(--cms-soft,#f5f6fa)}
.shop-offer{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;padding:12px 16px;border-top:1px solid var(--cms-line,rgba(0,0,0,.08))}
.shop-offer small{display:block;color:var(--cms-muted,#5d6472);font-size:.78rem;margin-top:2px}
.shop-offer .shop-btn{padding:8px 14px;font-size:.85rem}
@media(max-width:560px){.shop-offer{grid-template-columns:1fr auto}.shop-offer form{grid-column:1/-1}.shop-offer .shop-btn{width:100%}}
.shop-line__meta{font-size:.8rem;color:var(--cms-muted,#5d6472);display:flex;flex-wrap:wrap;gap:4px 12px;margin:2px 0}
