/* ================= پایه ================= */
.sh-wrap { width: min(1180px, 94%); margin: 0 auto; direction: rtl; color: var(--shop03); }
.sh-wrap *, .sh-wrap *::before, .sh-wrap *::after { box-sizing: border-box; }
.sh-wrap a { -webkit-tap-highlight-color: transparent; }
.sh-ico { width: 1.1em; height: 1.1em; flex: none; vertical-align: -0.17em; }
.muted { color: #6b7280; }

.sh-breadcrumb { margin: 26px 10px 12px 0; font-size: 13px; color: #6b7280; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.sh-breadcrumb a { color: #6b7280; text-decoration: none; }
.sh-breadcrumb a:hover { color: var(--shop01); }
.sh-current { color: var(--shop01); font-weight: 700; }
.sh-sep { direction: ltr; margin: 0 6px; opacity: 0.6; }

/* ================= Hero ================= */
.sh-hero {
    display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 28px;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.16), transparent 42%),
        linear-gradient(140deg, var(--shop01), var(--shop03));
    border-radius: 26px; padding: 34px; color: #fff; position: relative; overflow: hidden;
}
.sh-hero::after {
    content: ""; position: absolute; width: 320px; height: 320px;
    left: -110px; bottom: -150px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.07); pointer-events: none;
}
.sh-hero-text, .sh-hero-media { position: relative; z-index: 1; min-width: 0; }
.sh-kicker {
    display: inline-block; background: var(--shop02); color: #1e1b4b;
    font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.sh-title { font-size: clamp(24px, 4vw, 36px); line-height: 1.5; margin: 0 0 10px; }
.sh-sub { opacity: 0.92; line-height: 30px; font-size: 15px; margin: 0 0 18px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.sh-search {
    display: flex; align-items: center; gap: 6px;
    background: #fff; color: #6b7280; border-radius: 999px;
    padding: 5px 14px 5px 5px; max-width: 520px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.sh-search input { border: 0; flex: 1; min-width: 0; padding: 9px 6px; outline: 0; font: inherit; font-size: 14px; background: transparent; color: var(--shop03); }
.sh-search button { border: 0; background: var(--shop03); color: #fff; border-radius: 999px; padding: 10px 20px; cursor: pointer; font: inherit; font-size: 13px; }
.sh-stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 18px 0 0; }
.sh-stats li { display: flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, 0.14); border: 1px solid rgba(255, 255, 255, 0.2); backdrop-filter: blur(6px); padding: 8px 14px; border-radius: 999px; font-size: 13px; }
.sh-stats b { font-size: 15px; }

.sh-hero-media { display: none; align-items: center; justify-content: center; }
.sh-hero-media img { width: 100%; object-fit: cover; border-radius: 20px; border: 4px solid rgba(255, 255, 255, 0.35); }
.sh-float-card { position: absolute; bottom: 14px; right: 14px; background: #fff; color: var(--shop03); border-radius: 14px; padding: 10px 18px; text-align: center; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2); }
.sh-float-card b { display: block; font-size: 22px; }
.sh-float-card span { font-size: 12px; color: #6b7280; }

/* ================= چیپ‌ها و زیردسته‌ها ================= */
.sh-chips { display: flex; gap: 8px; overflow-x: auto; padding: 18px 2px 6px; scrollbar-width: none; }
.sh-chips::-webkit-scrollbar { display: none; }
.sh-chips a { white-space: nowrap; text-decoration: none; color: var(--shop03); background: var(--shop04); padding: 9px 16px; border-radius: 999px; font-size: 13px; transition: 0.2s; }
.sh-chips a:hover { filter: brightness(0.95); }
.sh-chips a.all { background: transparent; border: 1px dashed var(--shop01); color: var(--shop01); }
.sh-chips a.on { background: var(--shop01); color: #fff; }

.sh-subgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-top: 10px; }
.sh-subcard { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e8eaf6; border-radius: 16px; padding: 10px; text-decoration: none; color: inherit; transition: 0.2s; }
.sh-subcard:hover { border-color: var(--shop01); transform: translateY(-2px); }
.sh-subcard img, .sh-subico { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
.sh-subico { display: flex; align-items: center; justify-content: center; background: var(--shop04); color: var(--shop01); font-weight: 900; font-size: 22px; }
.sh-subcard div { flex: 1; min-width: 0; }
.sh-subcard b { display: block; font-size: 14px; }
.sh-subcard span { font-size: 12px; color: #6b7280; }
.sh-subcard .go { color: var(--shop01); }

/* ================= نوار فیلتر ================= */
.sh-bar { margin-top: 10px; background: #fff; border: 1px solid #e8eaf6; border-radius: 20px; padding: 14px; }
.sh-bar-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.sh-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.sh-group-label { color: #6b7280; margin-left: 4px; }
.sh-pill { display: inline-flex; align-items: center; gap: 5px; text-decoration: none; color: #4b5563; background: #f3f4f6; padding: 7px 14px; border-radius: 999px; font-size: 13px; white-space: nowrap; transition: 0.2s; }
.sh-pill:hover { background: #e5e7eb; }
.sh-pill.on { background: var(--shop03); color: #fff; }
.sh-pill-offer.on { background: #dc2626; }
.sh-active { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed #e8eaf6; font-size: 13px; color: #6b7280; }
.sh-tag { display: inline-flex; align-items: center; gap: 6px; background: var(--shop04); color: var(--shop01); text-decoration: none; padding: 5px 12px; border-radius: 999px; }
.sh-tag .sh-ico { width: 12px; height: 12px; }
.sh-tag:hover { background: #fee2e2; color: #dc2626; }
.sh-clear { color: #dc2626; text-decoration: none; font-weight: 700; }
.sh-result { margin: 16px 2px 12px; font-size: 13px; color: #6b7280; }

/* ================= کارت محصول ================= */
.prd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.prd-card { background: #fff; border: 1px solid #e8eaf6; border-radius: 20px; overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; animation: sh-rise 0.5s ease both; }
.prd-card:nth-child(2) { animation-delay: 0.05s; }
.prd-card:nth-child(3) { animation-delay: 0.1s; }
.prd-card:nth-child(4) { animation-delay: 0.15s; }
.prd-card:nth-child(n+5) { animation-delay: 0.2s; }
@keyframes sh-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.prd-card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(4, 120, 87, 0.16); }
.prd-card.is-oos { opacity: 0.75; }
.prd-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; height: 100%; }
.prd-cover { position: relative; background: var(--shop04); overflow: hidden; aspect-ratio: 1 / 1; }
.prd-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; display: block; }
.prd-card:hover .prd-cover img { transform: scale(1.06); }
.prd-nopic { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 70px; font-weight: 900; color: var(--shop01); }
.prd-oos-pill { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.55); font-weight: 800; color: #dc2626; font-size: 14px; }
.prd-flags { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.prd-off, .prd-feat, .prd-new { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; }
.prd-off { background: #dc2626; color: #fff; }
.prd-feat { background: var(--shop02); color: #1e1b4b; }
.prd-new { background: var(--shop01); color: #fff; }
.prd-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.prd-cat { font-size: 11px; color: var(--shop01); font-weight: 700; margin-bottom: 4px; }
.prd-body h3 { font-size: 17px; margin: 0 0 6px; line-height: 1.7; }
.prd-short { font-size: 13px; color: #6b7280; line-height: 24px; margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 48px; }
.prd-meta { display: flex; gap: 6px 14px; flex-wrap: wrap; list-style: none; font-size: 12px; background: #f8fafc; border-radius: 12px; padding: 9px 11px; margin: 0 0 10px; }
.prd-meta li { display: inline-flex; align-items: center; gap: 5px; min-width: 0; }
.prd-stock { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; margin: 0 0 10px; }
.prd-stock.ok { color: #16a34a; }
.prd-stock.warn { color: #b45309; }
.prd-stock.out { color: #dc2626; }
.prd-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #f1f2f8; }
.prd-price del { display: block; font-size: 12px; color: #dc2626; }
.prd-price b { font-size: 16px; }
.prd-price small { font-size: 11px; font-weight: 400; color: #6b7280; }
.prd-price .call { font-size: 15px; }
.prd-btn { display: inline-flex; align-items: center; gap: 4px; background: var(--shop01); color: #fff; font-size: 13px; padding: 9px 16px; border-radius: 12px; transition: 0.2s; }
.prd-card:hover .prd-btn { background: var(--shop03); }

.sh-empty { grid-column: 1 / -1; text-align: center; border: 1px dashed #a7ebf3; border-radius: 18px; padding: 48px 20px; background: #fbfffd; }
.sh-empty-ico { display: inline-flex; width: 64px; height: 64px; align-items: center; justify-content: center; border-radius: 50%; background: var(--shop04); color: var(--shop01); font-size: 28px; margin-bottom: 10px; }
.sh-empty b { display: block; font-size: 18px; margin-bottom: 4px; }
.sh-empty p { color: #6b7280; margin: 0 0 14px; }
.sh-empty a { display: inline-block; background: var(--shop01); color: #fff; text-decoration: none; padding: 10px 22px; border-radius: 12px; }

.sh-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin: 28px 0 8px; }
.sh-pager a, .sh-pager .gap { min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 12px; text-decoration: none; background: #fff; border: 1px solid #e8eaf6; color: var(--shop03); font-size: 14px; }
.sh-pager .gap { border: 0; background: transparent; }
.sh-pager a:hover { border-color: var(--shop01); }
.sh-pager a.on { background: var(--shop01); border-color: var(--shop01); color: #fff; font-weight: 800; }

.sh-about { background: var(--shop04); border-radius: 18px; padding: 24px; margin: 28px 0 0; line-height: 32px; color: #3d3d3d;}
.sh-about h2 { margin-top: 0; font-size: 20px; }
.sh-about p { margin-bottom: 0; text-align: justify; }

.sh-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 28px; background: linear-gradient(135deg, var(--shop03), var(--shop01)); color: #fff; border-radius: 22px; padding: 26px 30px; }
.sh-band h2 { margin: 0 0 4px; font-size: 20px; }
.sh-band p { margin: 0; opacity: 0.85; font-size: 14px; }
.sh-band-btn { direction: ltr; display: inline-flex; align-items: center; gap: 8px; background: var(--shop02); color: #1e1b4b; text-decoration: none; font-weight: 800; padding: 12px 24px; border-radius: 14px; }

/* ================= صفحه جزئیات ================= */
.shd-layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; }
.shd-col { min-width: 0; }
.shd-badges { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shd-pill { display: inline-flex; align-items: center; gap: 5px; background: var(--shop04); color: var(--shop01); font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.shd-pill.gold { background: var(--shop02); color: #1e1b4b; }
.shd-pill.red { background: #fee2e2; color: #dc2626; }
.shd-head h1 { font-size: clamp(22px, 3.4vw, 32px); line-height: 1.6; margin: 12px 0 8px; }
.shd-short { color: #4b5563; line-height: 30px; margin: 0 0 10px; }
.shd-cats { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 0; }
.shd-cats a { font-size: 12px; background: #f3f4f6; color: #4b5563; padding: 5px 12px; border-radius: 999px; text-decoration: none; }
.shd-cats a:hover { background: var(--shop04); color: var(--shop01); }

.shd-gallery { margin-top: 18px; }
.shd-main { position: relative; border-radius: 22px; overflow: hidden; border: 1px solid #e8eaf6; background: var(--shop04); }
.shd-main img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.shd-nopic { height: 100%; display: flex; align-items: center; justify-content: center; font-size: 100px; font-weight: 900; color: var(--shop01); }
.shd-zoom, .shd-arrow { position: absolute; border: 0; cursor: pointer; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--shop03); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2); font-size: 18px; }
.shd-zoom { top: 12px; left: 12px; }
.shd-arrow { top: 50%; transform: translateY(-50%); }
.shd-arrow.prev { left: 12px; }
.shd-arrow.next { right: 12px; transform: translateY(-50%) scaleX(-1); }
.shd-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding: 2px; scrollbar-width: thin; }
.shd-thumbs img { width: 84px; height: 60px; object-fit: cover; border-radius: 12px; cursor: pointer; border: 2px solid transparent; opacity: 0.7; flex: none; transition: 0.2s; }
.shd-thumbs img:hover { opacity: 1; }
.shd-thumbs img.on { border-color: var(--shop01); opacity: 1; }

.shd-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 18px; }
.shd-fact { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e8eaf6; border-radius: 16px; padding: 12px; min-width: 0; }
.shd-fact .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--shop04); color: var(--shop01); display: flex; align-items: center; justify-content: center; font-size: 18px; flex: none; }
.shd-fact div { min-width: 0; }
.shd-fact small { display: block; font-size: 11px; color: #6b7280; }
.shd-fact b { font-size: 13px; line-height: 1.6; word-break: break-word; }

.shd-stockbox { margin-top: 14px; background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 16px; padding: 13px 16px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #047857; }
.shd-stockbox.warn { background: #fffbeb; border-color: #fde68a; color: #b45309; }
.shd-stockbox.out { background: #fef2f2; border-color: #fecaca; color: #dc2626; }

.shd-nav { position: sticky; top: 0; z-index: 20; display: flex; gap: 6px; overflow-x: auto; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(8px); border: 1px solid #e8eaf6; border-radius: 16px; padding: 6px; margin: 22px 0 6px; scrollbar-width: none; }
.shd-nav::-webkit-scrollbar { display: none; }
.shd-nav a { white-space: nowrap; text-decoration: none; color: #4b5563; padding: 10px 16px; border-radius: 12px; font-size: 14px; transition: 0.2s; }
.shd-nav a.on { background: var(--shop01); color: #fff; font-weight: 800; }

.shd-sec { margin-top: 26px; scroll-margin-top: 80px; }
.shd-sec h2 { font-size: 20px; margin: 0 0 14px; position: relative; padding-right: 14px; }
.shd-sec h2::before { content: ""; position: absolute; right: 0; top: 50%; width: 5px; height: 22px; margin-top: -11px; border-radius: 4px; background: var(--shop02); }
.shd-prose { line-height: 34px; font-size: 15px; color: #374151; }
.shd-prose p { margin: 0 0 12px; }

.shd-perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.shd-perks li { display: flex; align-items: center; gap: 10px; background: var(--shop04); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.shd-perks .sh-ico { color: var(--shop01); font-size: 20px; }

.shd-specs { display: grid; gap: 8px; }
.shd-spec-row { display: flex; justify-content: space-between; gap: 12px; background: #fff; border: 1px solid #e8eaf6; border-radius: 12px; padding: 10px 14px; font-size: 14px; }
.shd-spec-row small { color: #6b7280; flex: none; }
.shd-spec-row b { text-align: left; word-break: break-word; }
.shd-spec-row.is-hidden { display: none; }
.shd-more { display: block; width: 100%; margin-top: 8px; border: 1px dashed var(--shop01); background: transparent; color: var(--shop01); padding: 11px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 14px; }
.shd-more:hover { background: var(--shop04); }

.shd-faq details { background: #fff; border: 1px solid #e8eaf6; border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
.shd-faq summary { cursor: pointer; padding: 14px 16px; font-weight: 700; font-size: 14px; list-style: none; position: relative; padding-left: 40px; }
.shd-faq summary::-webkit-details-marker { display: none; }
.shd-faq summary::after { content: "+"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--shop01); line-height: 1; }
.shd-faq details[open] summary::after { content: "−"; }
.shd-faq details[open] summary { background: var(--shop04); }
.shd-faq p { margin: 0; padding: 14px 16px; line-height: 2; font-size: 14px; color: #4b5563; }

/* ---- تنوع‌ها و باکس خرید ---- */
.shd-buy { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; }
.shd-pricebox { background: #fff; border: 1px solid #e8eaf6; border-radius: 22px; padding: 20px; text-align: center; box-shadow: 0 16px 40px rgba(4, 120, 87, 0.1); display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.shd-pricebox del { color: #dc2626; font-size: 14px; }
.shd-pricebox .now { font-size: 28px; line-height: 1.4; }
.shd-pricebox .now small { font-size: 13px; font-weight: 400; color: #6b7280; }
.shd-pricebox .save { display: block; margin: 6px 0; background: #ecfff3; color: #16a34a; font-size: 12px; font-weight: 700; padding: 6px 10px; border-radius: 10px; }
.shd-variants { text-align: right; margin-bottom: 8px; }
.shd-var-label { display: block; font-size: 12px; color: #6b7280; margin-bottom: 8px; }
.shd-var-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shd-variant { border: 1.5px solid #e8eaf6; background: #f8fafc; border-radius: 12px; padding: 8px 12px; cursor: pointer; font: inherit; text-align: center; transition: 0.2s; min-width: 0; }
.shd-variant b { display: block; font-size: 13px; color: var(--shop03); }
.shd-variant small { font-size: 11px; color: #6b7280; }
.shd-variant:hover { border-color: var(--shop01); }
.shd-variant.on { border-color: var(--shop01); background: var(--shop04); }
.shd-variant.out { opacity: 0.55; }
.shd-qty { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; }
.shd-qty button { width: 38px; height: 38px; border-radius: 12px; border: 1px solid #e8eaf6; background: #f8fafc; color: var(--shop03); cursor: pointer; font-size: 16px; display: flex; align-items: center; justify-content: center; }
.shd-qty button:hover { border-color: var(--shop01); color: var(--shop01); }
.shd-qty input { width: 56px; height: 38px; text-align: center; border: 1px solid #e8eaf6; border-radius: 12px; font: inherit; font-weight: 800; color: var(--shop03); }
.shd-qty input::-webkit-outer-spin-button, .shd-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.shd-cta { display: block; width: 100%; text-align: center; background: var(--shop01); color: #fff; text-decoration: none; font-weight: 800; padding: 14px; border-radius: 14px; margin-top: 10px; border: 0; cursor: pointer; font: inherit; font-size: 15px; box-shadow: 0 0 3px rgba(4, 120, 87); transition: 0.2s; }
.shd-cta:hover { background: var(--shop03); }
.shd-cta.disabled { background: #9ca3af; box-shadow: none; cursor: not-allowed; }
.shd-call { display: flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--shop01); color: var(--shop01); text-decoration: none; padding: 11px; border-radius: 14px; }
.shd-share { display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: #f3f4f6; color: #4b5563; padding: 10px; border-radius: 14px; cursor: pointer; font: inherit; font-size: 13px; }
.shd-mini { list-style: none; padding: 14px 0 0; margin: 8px 0 0; border-top: 1px dashed #e8eaf6; text-align: right; font-size: 13px; display: flex; flex-direction: column; gap: 10px; }
.shd-mini li { display: flex; align-items: center; gap: 8px; }
.shd-mini .sh-ico { color: var(--shop01); }
.shd-stocknote { font-size: 12px; font-weight: 700; margin: 2px 0 0; }
.shd-stocknote.ok { color: #16a34a; }
.shd-stocknote.out { color: #dc2626; }
.shd-related { margin-top: 40px; }
.shd-related h2 { font-size: 22px; margin: 0 0 16px; }
.shd-mbar { display: none; }

/* ---- لایت‌باکس ---- */
#shd-lightbox { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.92); display: none; align-items: center; justify-content: center; z-index: 99999; padding: 20px; }
#shd-lightbox.open { display: flex; }
#shd-lightbox-img { max-width: 100%; max-height: 90vh; border-radius: 14px; object-fit: contain; }
#shd-lightbox button { position: absolute; border: 0; cursor: pointer; width: 46px; height: 46px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 22px; }
#shd-lightbox button:hover { background: rgba(255, 255, 255, 0.3); }
.lb-close { top: 18px; left: 18px; }
.lb-arrow { top: 50%; margin-top: -23px; }
.lb-arrow.prev { right: 18px; }
.lb-arrow.next { left: 18px; transform: scaleX(-1); }

/* ================= سبد خرید ================= */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; margin-top: 18px; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; gap: 14px; background: #fff; border: 1px solid #e8eaf6; border-radius: 20px; padding: 14px; align-items: center; }
.ci-cover { width: 96px; height: 96px; border-radius: 14px; background: var(--shop04); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 34px; color: var(--shop01); }
.ci-cover img { width: 100%; height: 100%; object-fit: cover; }
.ci-info { flex: 1; min-width: 0; }
.ci-info b { display: block; font-size: 15px; line-height: 1.8; margin-bottom: 2px; }
.ci-info b a { color: inherit; text-decoration: none; }
.ci-info b a:hover { color: var(--shop01); }
.ci-var { font-size: 12px; color: var(--shop01); background: var(--shop04); display: inline-block; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.ci-unit { font-size: 12px; color: #6b7280; }
.ci-qty { display: flex; align-items: center; gap: 6px; background: #f8fafc; border: 1px solid #eef0f7; border-radius: 999px; padding: 4px; margin: 8px 0 0; width: max-content; }
.ci-qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #fff; color: var(--shop03); cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.ci-qty input { width: 42px; border: 0; background: transparent; text-align: center; font: inherit; font-weight: 800; color: var(--shop03); outline: 0; }
.ci-qty input::-webkit-outer-spin-button, .ci-qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.ci-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }
.ci-total { font-size: 16px; font-weight: 800; }
.ci-total small { font-size: 11px; font-weight: 400; color: #6b7280; }
.ci-remove { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #dc2626; cursor: pointer; font: inherit; font-size: 12px; padding: 4px; }

.cart-summary { background: #fff; border: 1px solid #e8eaf6; border-radius: 22px; padding: 20px; position: sticky; top: 16px; }
.cart-summary h2 { font-size: 17px; margin: 0 0 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #4b5563; padding: 8px 0; }
.sum-row b { color: var(--shop03); }
.sum-total { border-top: 1px dashed #e8eaf6; margin-top: 8px; padding-top: 14px; font-size: 16px; font-weight: 800; color: var(--shop03); }
.sum-note { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #6b7280; background: #f8fafc; border-radius: 12px; padding: 10px 12px; margin: 12px 0; }
.sum-note .sh-ico { color: var(--shop01); }
.cart-summary .shd-cta { margin: 0 0 10px; }
.link-back { display: flex; align-items: center; justify-content: center; gap: 6px; color: #4b5563; font-size: 13px; text-decoration: none; }
.link-back:hover { color: var(--shop01); }

/* ================= چک‌اوت ================= */
.co-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; margin-top: 18px; }
.co-card { background: #fff; border: 1px solid #e8eaf6; border-radius: 22px; padding: 22px; }
.co-card + .co-card { margin-top: 16px; }
.co-card > h2 { font-size: 17px; margin: 0 0 16px; display: flex; align-items: center; gap: 8px; }
.co-card > h2 .sh-ico { color: var(--shop01); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field.full { grid-column: 1 / -1; }
.f-field label { font-size: 12px; color: #6b7280; }
.f-field input, .f-field select, .f-field textarea { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 14px; color: var(--shop03); background: #fff; outline: 0; transition: 0.2s; width: 100%; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { border-color: var(--shop01); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.12); }
.f-field textarea { min-height: 88px; resize: vertical; }
.mini-items { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.mini-item { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.mini-item .mi-cover { width: 48px; height: 48px; border-radius: 10px; background: var(--shop04); overflow: hidden; flex: none; display: flex; align-items: center; justify-content: center; font-weight: 900; color: var(--shop01); }
.mini-item .mi-cover img { width: 100%; height: 100%; object-fit: cover; }
.mini-item div { flex: 1; min-width: 0; }
.mini-item b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-item small { color: #6b7280; font-size: 11px; }
.mini-item .mi-price { flex: none; font-weight: 700; font-size: 13px; }
.pay-note { display: flex; align-items: center; gap: 10px; border: 1px dashed var(--shop01); background: var(--shop04); border-radius: 14px; padding: 12px 14px; font-size: 13px; margin-top: 14px; }
.pay-note .sh-ico { color: var(--shop01); }

/* ================= سفارش‌ها ================= */
.ord-list { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.ord-card { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: #fff; border: 1px solid #e8eaf6; border-radius: 20px; padding: 16px 18px; text-decoration: none; color: inherit; transition: 0.2s; }
.ord-card:hover { border-color: var(--shop01); transform: translateY(-2px); }
.ord-num { font-size: 15px; font-weight: 800; }
.ord-num small { display: block; font-size: 12px; font-weight: 400; color: #6b7280; margin-top: 2px; }
.ord-meta { display: flex; align-items: center; gap: 14px; font-size: 13px; color: #4b5563; }
.ord-status { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; }
.st-pending { background: #fffbeb; color: #b45309; }
.st-paid, .st-delivered { background: #ecfdf5; color: #047857; }
.st-processing { background: #eff6ff; color: #2563eb; }
.st-shipped { background: #f5f3ff; color: #6d28d9; }
.st-canceled { background: #fef2f2; color: #dc2626; }
.od-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 26px; align-items: start; margin-top: 18px; }
.od-items { display: flex; flex-direction: column; gap: 12px; }
.od-item { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e8eaf6; border-radius: 16px; padding: 12px; }
.od-item .ci-cover { width: 72px; height: 72px; font-size: 26px; }
.od-box { background: #fff; border: 1px solid #e8eaf6; border-radius: 22px; padding: 20px; }
.od-box h2 { font-size: 16px; margin: 0 0 12px; }
.od-box + .od-box, .cart-summary + .shd-trust { margin-top: 12px; }
.od-addr { font-size: 14px; line-height: 2.2; color: #4b5563; }
.od-pays { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pay-row { display: flex; justify-content: space-between; gap: 10px; background: #f8fafc; border-radius: 12px; padding: 9px 12px; }
.pay-row.ok { background: #ecfdf5; }
.pay-row.bad { background: #fef2f2; }
.od-banner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-radius: 20px; padding: 16px 20px; margin-top: 18px; font-size: 14px; font-weight: 700; }
.od-banner.ok { background: #ecfdf5; border: 1px solid #a7f3d0; color: #047857; }
.od-banner.warn { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; }
.od-banner.bad { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.od-banner .shd-cta { width: auto; margin: 0; padding: 11px 22px; }

/* ================= ریسپانسیو ================= */
@media (max-width: 1000px) {
    .sh-hero { grid-template-columns: 1fr; padding: 26px; }
    .sh-hero-media img { max-height: 260px; }
    .shd-layout, .cart-layout, .co-layout, .od-grid { grid-template-columns: 1fr; }
    .shd-buy, .cart-summary { position: static; }
    .shd-mbar {
        position: fixed; bottom: 0; right: 0; left: 0; z-index: 90;
        display: flex; align-items: center; justify-content: space-between; gap: 12px;
        background: #fff; border-top: 1px solid #e8eaf6;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
        padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    }
    .shd-mbar .p b { font-size: 17px; display: block; }
    .shd-mbar .p small { font-size: 11px; font-weight: 400; color: #6b7280; }
    .shd-mbar .p del { display: block; font-size: 11px; color: #dc2626; }
    .shd-mbar .shd-cta { margin: 0; padding: 12px 28px; flex: none; }
    .shd.has-mbar, .cart-page.has-mbar, .checkout-page.has-mbar { padding-bottom: 80px; }
}
@media (max-width: 600px) {
    .sh-hero { padding: 20px 16px; border-radius: 20px; }
    .sh-sub { font-size: 14px; line-height: 28px; }
    .sh-search { max-width: none; }
    .sh-search button { padding: 10px 14px; }
    .sh-float-card { display: none; }
    .sh-bar { padding: 10px; }
    .sh-bar-row { flex-direction: column; align-items: stretch; }
    .sh-group { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .sh-group::-webkit-scrollbar { display: none; }
    .prd-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
    .prd-body { padding: 12px; }
    .prd-body h3 { font-size: 15px; }
    .cart-item { flex-wrap: wrap; }
    .ci-side { flex-direction: row; width: 100%; justify-content: space-between; align-items: center; }
    .f-grid { grid-template-columns: 1fr; }
    .shd-facts { grid-template-columns: 1fr 1fr; }
    .shd-main { border-radius: 16px; }
    .shd-sec h2 { font-size: 18px; }
    .shd-pricebox .now { font-size: 24px; }
    .sh-band { padding: 20px; }
    .sh-band-btn { width: 100%; justify-content: center; }
    .lb-arrow { display: none !important; }
}
@media (max-width: 380px) {
    .shd-facts { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .prd-card, .prd-cover img { animation: none; transition: none; }
}


.co-methods {
    display: grid;
    gap: 10px;
    margin: 24px 0 16px;
}

.co-method {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border: 1.5px solid var(--shop-border, #e5e7eb);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.co-method:hover { background: var(--shop-soft, #f8fafc); }
.co-method:has(input:checked) { border-color: var(--shop-primary, #047857); }

.co-method input { margin-top: 4px; accent-color: var(--shop-primary, #047857); }
.co-method input:disabled { cursor: not-allowed; }
.co-method:has(input:disabled) { opacity: .55; cursor: not-allowed; }

.co-method-body strong { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.co-method-body small { display: block; margin-top: 4px; color: var(--shop-muted, #6b7280); font-size: 12px; }



/* کارت به کارت در صفحه‌ی سفارش */
.shd-bank {
    margin-bottom: 24px;
    padding: 20px;
    border: 1.5px dashed var(--shop-primary, #047857);
    border-radius: 18px;
    background: var(--shop-soft, #f0fdf4);
}

.shd-bank-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.shd-bank-head i { color: var(--shop-primary, #047857); font-size: 20px; margin-top: 3px; }
.shd-bank-head strong { display: block; font-size: 15px; }
.shd-bank-head span { display: block; margin-top: 3px; color: var(--shop-muted, #6b7280); font-size: 12px; }

.shd-bank-info { display: grid; gap: 10px; margin-bottom: 16px; }
.shd-bank-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shd-bank-row span { color: var(--shop-muted, #6b7280); font-size: 12px; min-width: 110px; }
.shd-bank-row b { font-size: 14px; letter-spacing: 1px; }
.shd-bank-row b[dir="ltr"] { font-size: 17px; font-weight: 800; }

.shd-bank-copy {
    display: inline-flex; align-items: center; gap: 6px;
    border: 1px solid var(--shop-border, #e5e7eb); background: #fff;
    border-radius: 9px; padding: 6px 11px; font-size: 11px; cursor: pointer;
    transition: .2s ease;
}
.shd-bank-copy:hover { border-color: var(--shop-primary, #047857); color: var(--shop-primary, #047857); }

.shd-bank-form { display: grid; gap: 12px; }
.shd-bank-form label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; }
.shd-bank-form input[type="text"] {
    border: 1px solid var(--shop-border, #e5e7eb); border-radius: 10px;
    padding: 10px 12px; font-size: 13px;
}
.shd-bank-submit {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--shop-primary, #047857); color: #fff;
    border: 0; border-radius: 12px; padding: 12px 20px;
    font-size: 13px; font-weight: 700; cursor: pointer; transition: .2s ease;
}
.shd-bank-submit:hover { filter: brightness(1.1); }

.shd-bank.is-waiting { display: flex; gap: 12px; align-items: flex-start; }
.shd-bank.is-waiting i { color: #d97706; font-size: 20px; margin-top: 3px; }