/* ===== تم رنگی ===== */
@font-face { font-family: 'Vazirmatn'; src: url('../fontt/Vazir-FD.woff') format('woff'); font-display: swap; }
:root {
    --teal-deep: #0B4F4A;
    --teal: #0E6E67;
    --turquoise: #1FA79A;
    --turquoise-light: #5FC9BC;
    --green-turquoise: #3C8F6F;
    --sand: #E9DEC0;
    --sand-light: #F6F0DE;
    --sand-dark: #D8C89E;
    --gold: #C7973F;
    --ink: #22281F;
    --ink-soft: #4A5245;
    --white: #FFFFFF;
    --off: #D6334A;                 /* رنگ نشان تخفیف */
    --promo-bg: var(--teal);        /* رنگ پس‌زمینه کانتینر اسلایدر فروش (در دیجی‌کالا قرمز است) */
    --shadow: 0 10px 30px rgba(11, 79, 74, 0.12);
    --radius: 14px;
    --font-display: 'Vazirmatn', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; direction: rtl; }
body { font-family: var(--font-display), Tahoma, sans-serif; direction: rtl; color: var(--ink); background: var(--sand-light); line-height: 1.9; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.container { width: min(1200px, 100% - 32px); margin-inline: auto; }

/* ===== آیکون SVG ===== */
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
.ic.sm { width: .9em; height: .9em; }

/* ===== دکمه‌ها و چیپ ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 18px; border-radius: 10px; border: 1.5px solid transparent; font-size: .9rem; transition: .2s; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); }
.btn-ghost { border-color: var(--teal); color: var(--teal); background: transparent; }
.btn-ghost:hover { background: var(--teal); color: var(--white); }
.btn-gold { background: var(--gold); color: var(--ink); font-weight: 700; padding: 10px 26px; }
.btn-gold:hover { background: var(--sand); }
.chip { display: inline-block; font-size: .75rem; padding: 1px 12px; border-radius: 99px; background: rgba(31,167,154,.14); color: var(--teal); }
.chip.gold { background: rgba(199,151,63,.18); color: #7a5712; }
.muted { color: var(--ink-soft); font-size: .88rem; }

/* ===== هدر ===== */
#site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 2px 14px rgba(11,79,74,.1); }
.topbar { background: var(--teal-deep); color: var(--sand); font-size: .78rem; padding: 4px 0; text-align: center; }
.head-row { display: flex; align-items: center; gap: 18px; padding: 10px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--teal-deep); font-size: 1.15rem; white-space: nowrap; }
.brand img { width: 42px; height: 42px; }
.brand.light { color: var(--sand); }
.search { flex: 1; display: flex; max-width: 560px; margin-inline: auto; background: var(--sand-light); border-radius: 12px; border: 1px solid var(--sand-dark); overflow: hidden; }
.search input { flex: 1; border: 0; background: transparent; padding: 8px 14px; min-width: 0; }
.search input:focus { outline: none; }
.search button { border: 0; background: var(--teal); color: var(--white); padding: 0 16px; font-size: 1.1rem; }
.login { display: flex; align-items: center; gap: 8px; color: var(--teal); font-size: .9rem; white-space: nowrap; }
.login .ic { font-size: 1.3rem; }
.burger { display: none; background: none; border: 0; font-size: 1.7rem; color: var(--teal-deep); }
.main-nav { background: var(--teal); position: relative; }
.main-nav > .container > ul { display: flex; flex-wrap: wrap; }
.main-nav a { display: block; padding: 10px 16px; color: var(--white); font-size: .95rem; }

/* هاور منو: بدون رنگ و بدون پس‌زمینه؛ فقط خط زیر متن */
.main-nav > .container > ul > li > a { position: relative; }
.main-nav > .container > ul > li > a::after { content: ''; position: absolute; inset-inline: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--white); transform: scaleX(0); transition: transform .22s ease; }
.main-nav > .container > ul > li > a:hover::after,
.main-nav > .container > ul > li:hover > a::after,
.main-nav > .container > ul > li:focus-within > a::after { transform: scaleX(1); }

.has-mega { position: static; }
.mega { display: none; position: absolute; inset-inline: 0; top: 100%; background: var(--white); border-top: 3px solid var(--gold); box-shadow: var(--shadow); padding: 18px max(16px, calc((100% - 1200px) / 2)); }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega-head { color: var(--teal-deep); font-weight: 800; margin-bottom: 10px; }
.mega ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 18px; }
.mega a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 8px 10px; }
.mega a .ic { color: var(--gold); font-size: 1.3rem; }
.mega a span { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 7px; text-decoration-thickness: 2px; transition: text-decoration-color .2s; }
.mega a:hover span { text-decoration-color: var(--teal); }          /* فقط خط زیر؛ بدون رنگ پس‌زمینه */

/* ===== طرح هندسی / جعبه تصویر ===== */
.img-box { position: relative; width: 100%; aspect-ratio: var(--ratio, 4/3); overflow: hidden; background: var(--sand-light); }
.img-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* ===== اسلایدر اصلی ===== */
.hero { position: relative; }
#hero-slider { position: relative; width: 100%; height: clamp(200px, 40vw, 620px); overflow: hidden; background: var(--teal-deep); }
.slide-link { display: block; width: 100%; height: 100%; }
.slide-link img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.slide.active { opacity: 1; visibility: visible; }
.s-btn { position: absolute; top: 50%; translate: 0 -50%; z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(246,240,222,.92); color: var(--teal-deep); font-size: 1.4rem; display: grid; place-items: center; }
.s-btn:hover { background: var(--gold); }
.s-btn.prev { right: 14px; } .s-btn.next { left: 14px; }
.dots { position: absolute; bottom: 16px; inset-inline: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.dots button { width: 10px; height: 10px; border-radius: 99px; border: 0; background: rgba(246,240,222,.5); transition: .3s; padding: 0; }
.dots button.active { width: 30px; background: var(--gold); }

/* ===== سکشن‌ها ===== */
.section { padding: 56px 0; }
.section.alt { background: var(--white); }
.section.dark { background: var(--teal-deep); color: var(--sand); }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 30px; }
.sec-head h2 { color: var(--teal-deep); font-size: 1.7rem; }
.dark .sec-head h2 { color: var(--white); }
.sec-head h2::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gold), var(--turquoise)); margin: 8px auto 10px; }
.sec-head p { color: var(--ink-soft); } .dark .sec-head p { color: var(--sand-dark); }
.grid { display: grid; gap: 22px; }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s; }
.card:hover { transform: translateY(-4px); }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { color: var(--teal-deep); font-size: 1.05rem; line-height: 1.7; }
.card .btn { align-self: flex-start; }
.card .muted .ic, .meta .ic { color: var(--turquoise); }
.meta { font-size: .85rem; color: var(--ink-soft); }
.news-meta { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink-soft); }
.news-card p { font-size: .9rem; color: var(--ink-soft); }
.news-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; }
.more-row { text-align: center; margin-top: 26px; }

/* ===== دسته‌بندی‌های دایره‌ای (مانند دیجی‌کالا) ===== */
.cat-circles { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px 18px; margin: 0 auto 30px; max-width: 880px; }
.cat-circle { width: 104px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .84rem; line-height: 1.6; color: var(--ink); }
.cat-circle .disc { width: 80px; height: 80px; border-radius: 50%; display: grid; place-items: center; background: #E3F2F0; color: var(--teal); font-size: 2rem; border: 2px solid transparent; transition: transform .2s, border-color .2s, box-shadow .2s; }
.cat-circle:hover .disc { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.cat-circle.active .disc { background: var(--teal); color: var(--white); border-color: var(--teal); }
.cat-circle.active { font-weight: 700; color: var(--teal-deep); }

/* ===== فیلتر Dropdown ===== */
.toolbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar label { font-weight: 700; color: var(--teal-deep); }
.toolbar .count { margin-inline-start: auto; color: var(--ink-soft); font-size: .88rem; }
.dd { position: relative; width: min(340px, 100%); }
.dd-btn { width: 100%; display: flex; align-items: center; gap: 10px; background: var(--white); border: 1.5px solid var(--sand-dark); border-radius: 12px; padding: 9px 14px; text-align: start; transition: border-color .2s; }
.dd-btn:hover, .dd.open .dd-btn { border-color: var(--teal); }
.dd-btn .ic:first-child { color: var(--teal); font-size: 1.35rem; }
.dd-label { flex: 1; font-weight: 700; }
.dd-btn .chev { transition: transform .2s; color: var(--ink-soft); }
.dd.open .chev { transform: rotate(180deg); }
.dd-list { display: none; position: absolute; z-index: 30; top: calc(100% + 6px); inset-inline: 0; background: var(--white); border: 1px solid var(--sand-dark); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; max-height: 340px; overflow: auto; }
.dd.open .dd-list { display: block; }
.dd-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.dd-list li .ic { color: var(--gold); font-size: 1.25rem; }
.dd-list li span { flex: 1; }
.dd-list li small { color: var(--ink-soft); font-size: .75rem; }
.dd-list li:hover, .dd-list li:focus { background: var(--sand-light); outline: none; }
.dd-list li[aria-selected="true"] { background: #E3F2F0; color: var(--teal-deep); font-weight: 700; }
.empty { grid-column: 1 / -1; text-align: center; padding: 30px; color: var(--ink-soft); }
.empty.on-promo { color: var(--white); margin: auto; }

/* ===== اسلایدر فروش (الگوی «شگفت‌انگیز» دیجی‌کالا) ===== */
.promo { display: flex; align-items: stretch; gap: 16px; background: var(--promo-bg); border-radius: 22px; padding: 16px; position: relative; }
.promo-side { flex: 0 0 168px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; color: var(--white); padding: 8px 0; }
.promo-mark { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.16); font-size: 2rem; }
.promo-side h3 { font-size: 1.3rem; line-height: 1.6; }
.promo-side p { font-size: .8rem; opacity: .85; line-height: 1.7; }
.cd { display: flex; align-items: center; gap: 4px; font-weight: 700; direction: ltr; }
.cd span { min-width: 34px; background: var(--white); color: var(--ink); border-radius: 6px; padding: 0 4px; font-size: .95rem; text-align: center; }
.btn-light { display: inline-flex; align-items: center; gap: 6px; background: #f2f2f4; color: var(--ink); border: 0; border-radius: 10px; padding: 7px 16px; font-size: .84rem; }
.btn-light:hover { background: var(--white); }
.promo-main { position: relative; flex: 1; min-width: 0; display: flex; }
.track { display: flex; gap: 3px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; overscroll-behavior-x: contain; flex: 1; }
.track::-webkit-scrollbar { display: none; }
.promo-track .cell { flex: 0 0 min(190px, 46%); scroll-snap-align: start; display: flex; }
.promo-track .cell:first-child .pcard { border-start-start-radius: 12px; border-end-start-radius: 12px; }
.promo-track .cell:last-child .pcard { border-start-end-radius: 12px; border-end-end-radius: 12px; }
.pcard { background: var(--white); display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 14px; width: 100%; color: var(--ink); }
.pcard .img-box { background: var(--white); border-radius: 8px; }
.pcard h3 { font-size: .86rem; font-weight: 500; line-height: 1.9; min-height: 3.8em; color: var(--ink-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard:hover h3 { color: var(--teal); }
.p-off { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.badge-off { background: var(--off); color: var(--white); font-size: .75rem; font-weight: 700; padding: 0 8px; border-radius: 99px; }
.p-off del { color: #a1a3a8; font-size: .8rem; }
.p-price { display: flex; align-items: baseline; gap: 4px; margin-top: auto; }
.p-price strong { font-size: 1.12rem; color: var(--ink); }
.p-price small { font-size: .72rem; color: var(--ink-soft); }
.p-price.out { color: #9a3b32; font-size: .85rem; } .p-price.ask { color: var(--teal); font-size: .85rem; }
.p-nav { position: absolute; top: 40%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--white); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.25); display: grid; place-items: center; font-size: 1.15rem; z-index: 3; transition: opacity .2s; }
.p-nav.prev { right: -8px; } .p-nav.next { left: -8px; }
.p-nav[hidden], .p-nav.off { opacity: 0; pointer-events: none; }
.promo.expanded { flex-direction: column; }
.promo.expanded .promo-side { flex-direction: row; flex-wrap: wrap; flex-basis: auto; justify-content: center; }
.promo.expanded .promo-track { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); overflow: visible; }
.promo.expanded .p-nav { display: none; }
.promo.expanded .pcard { border-radius: 10px; }

/* ===== بانک هنرمندان: کانتینر رنگی + اسلایدر کارت شناسایی ===== */
.artists-panel { position: relative; border-radius: 28px; padding: 40px 28px 34px; color: var(--white); overflow: hidden;
  background: radial-gradient(circle at 15% 10%, rgba(31,167,154,.35), transparent 45%), linear-gradient(135deg, var(--teal-deep), var(--teal)); }
.artists-panel::before { content: ''; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background: repeating-conic-gradient(from 45deg at 50% 50%, #fff 0 25%, transparent 0 50%) 0 0 / 46px 46px; }
.artists-panel .sec-head { position: relative; margin-bottom: 8px; } .artists-panel .sec-head h2 { color: var(--white); } .artists-panel .sec-head p { color: var(--sand); }
.artists-panel .promo-main { position: relative; }
.badge-track { padding: 104px 12px 28px; gap: 28px; scroll-snap-type: x mandatory; }
.badge-track .p-nav { top: 56%; }
.badge { position: relative; flex: 0 0 258px; height: 436px; perspective: 1400px; scroll-snap-align: center; outline-offset: 6px; }
.lanyard { position: absolute; z-index: 6; top: -84px; left: 0; width: 100%; height: 110px; pointer-events: none; filter: drop-shadow(0 4px 4px rgba(0,0,0,.25)); }
.badge-inner { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.4,.2,.2,1); }
.badge:hover .badge-inner, .badge:focus-within .badge-inner, .badge.flipped .badge-inner { transform: rotateY(180deg); }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #E7EAEE; border-radius: 22px; padding: 30px 11px 11px; box-shadow: 0 18px 36px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.6); }
.face.back { transform: rotateY(180deg); }
.slot { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 44px; height: 8px; border-radius: 8px; background: #C9CED4; box-shadow: inset 0 1px 2px rgba(0,0,0,.25); }
.panel { position: relative; height: 100%; background: var(--white); border-radius: 16px; overflow: hidden; color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; }
.band { position: relative; width: 100%; height: 68px; background: var(--teal); clip-path: polygon(0 0, 100% 0, 100% 62%, 86% 100%, 0 100%); display: flex; align-items: flex-start; padding: 12px 16px; }
.band::after { content: ''; position: absolute; top: 0; left: 0; width: 34%; height: 100%; background: var(--teal-deep); clip-path: polygon(0 0, 100% 0, 40% 100%, 0 100%); }
.b-logo { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 800; position: relative; z-index: 1; }
.b-logo img { width: 24px; height: 24px; }
.band .b-logo { color: var(--white); }
.avatar { width: 92px; height: 92px; border-radius: 50%; margin-top: -22px; border: 4px solid var(--white); box-shadow: 0 4px 14px rgba(0,0,0,.18); display: grid; place-items: center; overflow: hidden; color: var(--white); position: relative; z-index: 2; flex: none;
  background: linear-gradient(135deg, var(--teal), var(--turquoise)); }
.avatar[style*="--av:1"] { background: linear-gradient(135deg, #1F4E8C, #5B8FCB); }
.avatar[style*="--av:2"] { background: linear-gradient(135deg, #B5523B, #E39A6B); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar .av-ic { font-size: 2.6rem; stroke-width: 1.4; }
.avatar.big { width: 150px; height: 150px; margin: 0; border-color: rgba(255,255,255,.9); } .avatar.big .av-ic { font-size: 4.2rem; }
.panel h3 { margin-top: 8px; font-size: 1.12rem; color: var(--ink); line-height: 1.6; }
.desig { font-size: .82rem; color: var(--ink-soft); font-style: italic; margin-bottom: 8px; }
.info { width: 100%; padding: 0 16px; font-size: .8rem; text-align: start; display: grid; gap: 1px; }
.info div { display: flex; gap: 10px; } .info dt { width: 46px; color: var(--ink-soft); flex: none; } .info dd { font-weight: 700; }
.barcode { width: 140px; height: 32px; margin-top: auto; fill: var(--ink); } .bc-id { font-size: .68rem; letter-spacing: 1px; margin: 2px 0 12px; color: var(--ink-soft); direction: ltr; }
.b-top { margin-top: 22px; } .b-top .b-logo { color: var(--teal-deep); font-size: 1rem; }
.b-list { text-align: start; padding: 0 20px; margin-top: 20px; font-size: .84rem; line-height: 1.9; }
.b-list li { position: relative; padding-inline-start: 16px; margin-bottom: 8px; color: var(--ink-soft); }
.b-list li::before { content: ''; position: absolute; top: .72em; inset-inline-start: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.b-date { font-size: .82rem; margin-top: 6px; } .b-date span { color: var(--gold); font-weight: 700; }
.b-sign { margin-top: 18px; width: 70%; } .b-sign i { display: block; height: 1px; background: var(--ink-soft); margin-bottom: 4px; } .b-sign span { font-size: .75rem; color: var(--ink-soft); }
.b-btn { margin-top: 14px; position: relative; z-index: 2; padding: 6px 20px; }
.b-foot { position: absolute; bottom: 0; inset-inline: 0; height: 56px; background: var(--teal); clip-path: polygon(0 40%, 70% 40%, 100% 0, 100% 100%, 0 100%); }
.b-foot::after { content: ''; position: absolute; inset: 0; background: var(--teal-deep); clip-path: polygon(0 70%, 45% 70%, 62% 40%, 100% 40%, 100% 100%, 0 100%); }

/* ===== نگارخانه ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 180px; gap: 14px; }
.g-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.g-item .img-box { height: 100%; aspect-ratio: auto; }
.g-item.tall { grid-row: span 2; } .g-item.wide { grid-column: span 2; }
.g-item figcaption { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; padding: 8px 12px; color: var(--white); font-size: .85rem; background: linear-gradient(transparent, rgba(11,79,74,.88)); }

/* ===== درباره / تماس ===== */
.about { display: grid; grid-template-columns: 1.2fr 1fr; gap: 34px; align-items: center; }
.about h2 { color: var(--white); margin-bottom: 10px; } .about p { margin-bottom: 10px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: rgba(255,255,255,.08); border: 1px solid rgba(233,222,192,.25); border-radius: var(--radius); padding: 18px; text-align: center; }
.stat b { display: block; font-size: 1.4rem; color: var(--gold); }
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; }
.contact form { display: grid; gap: 12px; background: var(--sand-light); padding: 20px; border-radius: var(--radius); }
.contact input, .contact textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--sand-dark); border-radius: 10px; background: var(--white); }
.contact-list { display: grid; gap: 10px; align-content: start; } .contact-list .ic { color: var(--turquoise); }
.form-msg { color: var(--green-turquoise); font-size: .85rem; min-height: 1.4em; }

/* ===== صفحات داخلی ===== */
.page { padding: 34px 0 60px; min-height: 60vh; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--ink-soft); margin-bottom: 18px; }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 5px; } .crumbs .ic { font-size: .8rem; opacity: .6; align-self: center; }
.auth { max-width: 420px; margin: 0 auto; background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); display: grid; gap: 12px; }
.auth h1 { color: var(--teal-deep); font-size: 1.4rem; text-align: center; }
.auth input { width: 100%; padding: 10px 14px; border: 1px solid var(--sand-dark); border-radius: 10px; }
.sub-title { color: var(--teal-deep); font-size: 1.35rem; margin: 40px 0 16px; display: flex; align-items: center; gap: 10px; }
.sub-title::after { content: ''; flex: 1; height: 2px; background: linear-gradient(90deg, var(--sand-dark), transparent); }

/* صفحه اثر (سبک دیجی‌کالا) */
.pd { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.pd-gallery .img-box { border-radius: var(--radius); box-shadow: var(--shadow); background: var(--white); }
.pd-info h1 { color: var(--ink); font-size: 1.4rem; line-height: 1.8; margin: 8px 0 12px; }
.pd-info .sub { color: var(--ink-soft); font-size: .88rem; }
.specs { margin-top: 18px; background: var(--white); border-radius: var(--radius); padding: 6px 18px; box-shadow: var(--shadow); }
.specs div { display: flex; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--sand-dark); font-size: .92rem; } .specs div:last-child { border: 0; }
.specs dt { width: 110px; color: var(--ink-soft); flex: none; } .specs dd { font-weight: 700; }
.pd-desc { margin-top: 16px; color: var(--ink-soft); }
.buy { position: sticky; top: 140px; background: var(--white); border: 1px solid var(--sand-dark); border-radius: var(--radius); padding: 18px; display: grid; gap: 12px; box-shadow: var(--shadow); }
.buy .artist-mini { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--sand); }
.buy .artist-mini .avatar { width: 46px; height: 46px; margin: 0; border-width: 2px; box-shadow: none; } .buy .artist-mini .av-ic { font-size: 1.4rem; }
.buy .artist-mini small { display: block; color: var(--ink-soft); line-height: 1.5; } .buy .artist-mini a:hover b { text-decoration: underline; text-underline-offset: 5px; }
.buy-price { display: grid; gap: 4px; }
.buy-price .p-off { min-height: 0; } .buy-price .p-price strong { font-size: 1.6rem; }
.buy .btn { width: 100%; padding: 11px; }
.buy-note { font-size: .78rem; color: var(--ink-soft); display: flex; gap: 6px; align-items: flex-start; } .buy-note .ic { color: var(--green-turquoise); margin-top: 6px; }

/* صفحه هنرمند */
.ar-hero { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; padding: 34px; border-radius: 26px; color: var(--white);
  background: radial-gradient(circle at 12% 15%, rgba(31,167,154,.4), transparent 45%), linear-gradient(135deg, var(--teal-deep), var(--teal)); box-shadow: var(--shadow); }
.ar-hero h1 { font-size: 1.9rem; line-height: 1.6; } .ar-hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.ar-hero .chip { background: rgba(255,255,255,.16); color: var(--white); }
.ar-stats { display: flex; flex-wrap: wrap; gap: 12px; }
.ar-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(233,222,192,.3); border-radius: 12px; padding: 8px 18px; text-align: center; min-width: 110px; } .ar-stat b { display: block; font-size: 1.2rem; color: var(--gold); line-height: 1.6; } .ar-stat span { font-size: .8rem; color: var(--sand); }
.ar-cols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-top: 30px; }
.ar-box { background: var(--white); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); } .ar-box h2 { color: var(--teal-deep); font-size: 1.2rem; margin-bottom: 10px; } .ar-box p { color: var(--ink-soft); margin-bottom: 10px; }
.feat { display: grid; gap: 12px; } .feat li { display: flex; gap: 12px; align-items: flex-start; }
.feat .tick { width: 34px; height: 34px; border-radius: 50%; background: #E3F2F0; color: var(--teal); display: grid; place-items: center; flex: none; } .feat b { display: block; color: var(--teal-deep); line-height: 1.7; } .feat span { font-size: .86rem; color: var(--ink-soft); line-height: 1.7; display: block; }
.ar-hero + .actions-row { margin-top: 14px; }

/* بلاگ و مقاله */
.blog-head { text-align: center; margin-bottom: 26px; } .blog-head h1 { color: var(--teal-deep); font-size: 2rem; } .blog-head p { color: var(--ink-soft); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 24px; }
.filter { border: 1px solid var(--sand-dark); background: var(--white); border-radius: 99px; padding: 3px 18px; font-size: .86rem; }
.filter.active, .filter:hover { background: var(--teal); color: var(--white); border-color: var(--teal); }
.feature-post { display: grid; grid-template-columns: 1.1fr 1fr; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px; }
.feature-post .img-box { height: 100%; aspect-ratio: auto; min-height: 280px; } .feature-post .body { padding: 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; } .feature-post h2 { color: var(--teal-deep); line-height: 1.7; } .feature-post p { color: var(--ink-soft); }
.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.article { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.article .img-box { border-radius: 0; }
.article-body { padding: 26px 32px 34px; }
.article-body h1 { color: var(--teal-deep); font-size: 1.8rem; line-height: 1.8; margin: 10px 0; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .85rem; color: var(--ink-soft); align-items: center; } .article-meta span { display: inline-flex; gap: 5px; align-items: center; }
.article .lead { font-size: 1.1rem; color: var(--ink); background: var(--sand-light); border-inline-start: 4px solid var(--gold); padding: 12px 16px; border-radius: 6px; margin: 18px 0; line-height: 2.1; }
.article h2 { color: var(--teal-deep); font-size: 1.3rem; margin: 26px 0 8px; }
.article p { color: var(--ink-soft); margin-bottom: 12px; line-height: 2.1; font-size: 1.02rem; }
.article-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--sand); flex-wrap: wrap; }
.side-box { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: sticky; top: 140px; } .side-box h3 { color: var(--teal-deep); margin-bottom: 10px; }
.side-box li + li { border-top: 1px dashed var(--sand-dark); } .side-box a { display: flex; gap: 12px; padding: 10px 0; align-items: center; } .side-box .img-box { width: 70px; flex: none; border-radius: 10px; } .side-box a span { font-size: .88rem; line-height: 1.7; } .side-box a:hover span { text-decoration: underline; text-underline-offset: 5px; }

/* ===== فوتر ===== */
#site-footer { background: var(--teal-deep); color: var(--sand); }
.brands-band { background: var(--white); padding: 30px 0 26px; border-top: 4px solid var(--gold); }
.brands-band h4 { text-align: center; color: var(--teal-deep); font-size: 1.05rem; margin-bottom: 16px; }
.brand-row { display: grid; grid-template-columns: repeat(8, 1fr); gap: 12px; }
.brand-tile { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--sand); border-radius: 12px; background: var(--sand-light); color: var(--teal-deep); font-weight: 800; font-size: .88rem; transition: transform .2s, border-color .2s; }
.brand-tile:hover { transform: translateY(-3px); border-color: var(--gold); }
.brand-tile img { max-height: 40px; width: auto; }
.brand-ico { position: relative; width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 28px; padding: 44px 0 26px; }
.foot-grid h4 { color: var(--gold); margin-bottom: 10px; }
.foot-grid li { padding: 2px 0; } .foot-grid a:hover { text-decoration: underline; text-underline-offset: 5px; }
.foot-grid p { font-size: .88rem; margin: 10px 0; }
.foot-grid .contact-list .ic { color: var(--turquoise-light); }
.social { display: flex; gap: 10px; } .social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: grid; place-items: center; font-size: 1.15rem; }
.social a:hover { background: var(--gold); color: var(--ink); text-decoration: none; }
.copy { border-top: 1px solid rgba(233,222,192,.2); padding: 12px 0; font-size: .82rem; text-align: center; }

/* ===== واکنش‌گرا ===== */
@media (max-width: 1100px) {
  .mega ul { grid-template-columns: repeat(3, 1fr); } .gallery { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: minmax(0, 360px) 1fr; } .buy { grid-column: 1 / -1; position: static; }
  .brand-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; } .login span { display: none; } .search { max-width: none; }
  .main-nav { display: none; } .main-nav.open { display: block; }
  .main-nav > .container > ul { flex-direction: column; } .main-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav > .container > ul > li > a::after { inset-inline: 8px; bottom: 6px; }
  .mega { position: static; display: none; box-shadow: none; padding: 6px 10px; border-top: 0; background: var(--teal-deep); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; } .has-mega.open .mega { display: block !important; }
  .mega ul { grid-template-columns: 1fr 1fr; } .mega a { color: var(--sand); padding: 6px; } .mega-head { display: none; }
  .mega a span { text-decoration-color: transparent; } .mega a:hover span { text-decoration-color: var(--sand); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .ar-cols, .article-wrap, .feature-post { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 150px; }
  .promo { flex-direction: column; } .promo-side { flex-direction: row; flex-wrap: wrap; flex-basis: auto; justify-content: space-between; text-align: start; } .promo-side p { display: none; }
  .p-nav { display: none; }
  .ar-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ar-stats, .ar-hero .chips { justify-content: center; }
  .pd { grid-template-columns: 1fr; } .side-box { position: static; }
}
@media (max-width: 600px) {
  .head-row { gap: 10px; flex-wrap: wrap; } .brand { font-size: 1rem; } .brand img { width: 34px; height: 34px; }
  .search { order: 5; flex-basis: 100%; } .topbar { display: none; }
  .grid.g3 { grid-template-columns: 1fr; }
  .cat-circles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; } .cat-circle { flex: none; width: 88px; } .cat-circle .disc { width: 68px; height: 68px; font-size: 1.7rem; }
  .toolbar .count { margin-inline-start: 0; width: 100%; }
  .s-btn { width: 34px; height: 34px; font-size: 1.1rem; } .section { padding: 38px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; } .g-item.wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr; } .mega ul { grid-template-columns: 1fr; } .brand-row { grid-template-columns: repeat(2, 1fr); }
  .artists-panel { padding: 30px 10px 22px; border-radius: 20px; } .badge { flex-basis: 244px; }
  .article-body { padding: 18px; } .article-body h1 { font-size: 1.4rem; } .ar-hero { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ===== اسلایدر دیدگاه خریداران (صفحه اصلی) ===== */
.rv-track { gap: 18px; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.rv-track .cell { flex: 0 0 min(340px, 84%); scroll-snap-align: start; display: flex; }
.rv-track ~ .p-nav { top: 46%; }
.rv-card { width: 100%; background: var(--sand-light); border: 1px solid var(--sand); border-radius: 16px; padding: 18px 18px 16px; display: flex; flex-direction: column; gap: 10px; }
.rv-top { display: flex; align-items: center; gap: 12px; } .rv-top b { display: block; line-height: 1.5; } .rv-top small { color: var(--ink-soft); font-size: .78rem; }
.rv-av { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; flex: none; background: hsl(var(--h, 170) 32% 40%); }
.stars { display: inline-flex; gap: 2px; } .stars .ic { font-size: .95rem; color: #CFC8B2; } .stars .ic.on { fill: currentColor; color: var(--gold); }
.rv-card blockquote { font-size: .93rem; line-height: 2; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.rv-prod { margin-top: auto; font-size: .8rem; color: var(--teal); padding-top: 8px; border-top: 1px dashed var(--sand-dark); }
.rv-prod:hover { text-decoration: underline; text-underline-offset: 5px; }

/* ===== درباره: لوگو ===== */
.about-logo { display: grid; place-items: center; }
.about-logo img { width: min(240px, 60%); aspect-ratio: 1; border-radius: 25%; border: 3px solid rgba(233,222,192,.45); box-shadow: 0 0 0 10px rgba(233,222,192,.08); }

/* ===== صفحه اثر: امتیاز، تب‌ها، مشخصات، دیدگاه ===== */
.pd-rate { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink-soft); } .pd-rate b { color: var(--ink); } .pd-rate:hover span { text-decoration: underline; text-underline-offset: 5px; } .pd-rate.none { font-size: .84rem; }
.pd-tabs { position: sticky; top: 146px; z-index: 20; display: flex; gap: 6px; background: var(--white); border-radius: 12px; margin-top: 30px; padding: 0 10px; box-shadow: var(--shadow); }
.pd-tabs a { position: relative; padding: 13px 18px; font-weight: 700; color: var(--ink-soft); font-size: .93rem; }
.pd-tabs a::after { content: ''; position: absolute; inset-inline: 12px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.pd-tabs a.active { color: var(--teal-deep); } .pd-tabs a.active::after, .pd-tabs a:hover::after { transform: scaleX(1); }
.pd-sec { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 26px; margin-top: 22px; scroll-margin-top: 210px; }
.pd-sec h2 { color: var(--teal-deep); font-size: 1.25rem; margin-bottom: 12px; } .pd-sec > p { color: var(--ink-soft); line-height: 2.1; margin-bottom: 8px; }
.pd-sec h3 { font-size: 1rem; color: var(--ink); margin: 22px 0 8px; }
.spec-table div { display: flex; gap: 16px; padding: 11px 14px; border-bottom: 1px solid #efece3; font-size: .93rem; } .spec-table div:first-child { border-top: 1px solid #efece3; }
.spec-table div:nth-child(odd) { background: #FBF9F3; }
.spec-table dt { flex: 0 0 160px; color: var(--ink-soft); } .spec-table dd { flex: 1; font-weight: 500; }
.rv-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 30px; align-items: start; }
.rv-sum { border: 1px solid var(--sand); border-radius: 14px; padding: 18px; display: grid; gap: 14px; background: var(--sand-light); } .rv-sum.empty-sum { color: var(--ink-soft); font-size: .92rem; }
.rv-big { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 10px; } .rv-big strong { font-size: 2.3rem; line-height: 1.2; color: var(--ink); } .rv-big span { color: var(--ink-soft); font-size: .85rem; }
.rv-big .stars { grid-column: 1 / -1; } .rv-big small { grid-column: 1 / -1; color: var(--ink-soft); }
.rv-bars { display: grid; gap: 6px; font-size: .8rem; } .rv-bars li { display: flex; align-items: center; gap: 8px; } .rv-bars i { flex: 1; height: 7px; background: #E4DEC9; border-radius: 9px; overflow: hidden; } .rv-bars b { display: block; height: 100%; background: var(--gold); } .rv-bars em { width: 22px; font-style: normal; color: var(--ink-soft); }
.rv-recp { font-size: .86rem; color: var(--ink-soft); } .rv-recp strong { color: var(--green-turquoise); }
.rv-form { margin-top: 18px; display: grid; gap: 10px; width: 500px; } .rv-form h3 { margin: 0; }
.rv-form input, .rv-form textarea { width: 100%; padding: 10px 14px; border: 1px solid var(--sand-dark); border-radius: 10px; background: var(--white); }
.rv-pick { display: flex; align-items: center; gap: 4px; font-size: .88rem; } .rv-pick span { margin-inline-end: 6px; color: var(--ink-soft); }
.rv-pick button { background: none; border: 0; padding: 2px; font-size: 1.5rem; color: #CFC8B2; } .rv-pick button.on { color: var(--gold); } .rv-pick button.on .ic { fill: currentColor; }
.rv-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 6px; font-size: .86rem; } .rv-sort span { color: var(--ink-soft); }
.rv-sort button { border: 0; background: none; padding: 3px 10px; border-radius: 99px; color: var(--ink-soft); } .rv-sort button.active { background: #E3F2F0; color: var(--teal-deep); font-weight: 700; }
.rv-item { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid #efece3; } .rv-item:last-child { border-bottom: 0; }
.rv-main { flex: 1; min-width: 0; } .rv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .rv-head time { margin-inline-start: auto; color: var(--ink-soft); font-size: .78rem; }
.rv-buyer { font-size: .72rem; color: var(--green-turquoise); background: #E4F3EC; padding: 0 9px; border-radius: 99px; }
.rv-rate { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; } .rv-rec { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; } .rv-rec.yes { color: var(--green-turquoise); } .rv-rec.no { color: #9a3b32; }
.rv-main > p { line-height: 2.05; color: var(--ink); font-size: .95rem; }
.rv-reply { margin-top: 10px; background: var(--sand-light); border-inline-start: 3px solid var(--teal); border-radius: 8px; padding: 8px 14px; } .rv-reply b { font-size: .8rem; color: var(--teal-deep); } .rv-reply p { font-size: .88rem; color: var(--ink-soft); line-height: 1.9; }
.rv-like { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; background: none; border: 1px solid var(--sand-dark); border-radius: 99px; padding: 1px 12px; font-size: .78rem; color: var(--ink-soft); } .rv-like i { font-style: normal; } .rv-like.on { border-color: var(--teal); color: var(--teal); background: #E3F2F0; }
@media (max-width: 900px) {
  .rv-grid { grid-template-columns: 1fr; } .pd-tabs { top: 112px; overflow-x: auto; } .pd-tabs a { white-space: nowrap; padding: 12px 12px; }
  .spec-table dt { flex-basis: 110px; } .pd-sec { padding: 18px 14px; } .about-logo { margin-top: 10px; }
}

.brand-tile.has-logo .brand-ico, .brand-tile.has-logo .brand-name { display: none; }

.rv-grid.solo { grid-template-columns: minmax(0, 560px); }

/* ==========================================================================
   MARKETPLACE LAYER — هدر، کارت محصول، بخش‌های فروش، فروشگاه، سبد
   سلسله‌مراتب: سطح ۱ محصولات (زمینه روشن و تیره با کارت سفید) > سطح ۲ دسته/هنرمند/اصالت > سطح ۳ میراث > سطح ۴ مجله
   ========================================================================== */
:root { --gold-deep: #7a5712; --line: #E4DABA; --ok: #2F7D5B; --warn: #A8631A; --bad: #9A3B32; }
.no-scroll { overflow: hidden; }

/* ----- هدر ----- */
.head-row { gap: 16px; }
.search { position: relative; display: block; max-width: 620px; border: 0; background: none; overflow: visible; }
.search-box { display: flex; background: var(--white); border-radius: 12px; border: 1.5px solid var(--sand-dark); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.search-box:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14,110,103,.14); }
.search-box input { flex: 1; border: 0; background: transparent; padding: 10px 14px; min-width: 0; }
.search-box input:focus { outline: none; }
.search-box button { border: 0; background: var(--teal); color: var(--white); padding: 0 18px; font-size: 1.15rem; }
.search-box button:hover { background: var(--teal-deep); }
.sr { position: absolute; inset-inline: 0; top: calc(100% + 6px); background: var(--white); border-radius: 14px; box-shadow: 0 16px 40px rgba(11,79,74,.22); border: 1px solid var(--line); padding: 8px; max-height: min(70vh, 520px); overflow: auto; z-index: 70; }
.sr[hidden] { display: none; }
.sr-g { padding: 6px 4px 8px; }
.sr-g + .sr-g { border-top: 1px solid var(--line); }
.sr-g h4 { font-size: .8rem; color: var(--ink-soft); font-weight: 600; padding: 2px 8px 4px; }
.sr-i { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; }
.sr-i:hover, .sr-i:focus-visible { background: var(--sand-light); }
.sr-i b { display: block; font-size: .9rem; font-weight: 600; line-height: 1.6; }
.sr-i small { display: block; font-size: .78rem; color: var(--ink-soft); line-height: 1.5; }
.sr-th { width: 40px; flex: none; border-radius: 8px; overflow: hidden; }
.sr-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: #E3F2F0; color: var(--teal); font-size: 1.2rem; }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 8px; }
.sr-chips a { padding: 3px 14px; border-radius: 99px; background: var(--sand-light); border: 1px solid var(--line); font-size: .85rem; }
.sr-chips a:hover { border-color: var(--teal); color: var(--teal); }
.sr-empty { padding: 14px; color: var(--ink-soft); font-size: .9rem; }
.sr-all { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 4px; padding: 10px 12px; border-radius: 10px; background: var(--teal); color: var(--white); font-size: .9rem; }
.sr-all:hover { background: var(--teal-deep); }
.head-actions { display: flex; align-items: center; gap: 6px; }
.h-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 0; background: none; color: var(--teal-deep); font-size: 1.45rem; }
.h-btn:hover { background: var(--sand-light); }
.h-count { position: absolute; top: 2px; inset-inline-start: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--ink); font: 700 .7rem/19px var(--font-display); text-align: center; font-style: normal; }
.h-count[hidden] { display: none; }
.mega-head { display: flex; justify-content: space-between; align-items: center; }
.mega-head a { color: var(--teal); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; }

/* ----- هیرو: نوار اقدام ----- */
.hero-bar { background: var(--teal-deep); color: var(--sand); }
.hero-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 0; flex-wrap: wrap; }
.hero-bar p { display: grid; line-height: 1.7; }
.hero-bar p strong { color: var(--white); font-size: 1.08rem; }
.hero-bar p span { font-size: .88rem; color: var(--sand-dark); }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline-light { border-color: rgba(233,222,192,.6); color: var(--sand); padding: 10px 22px; }
.btn-outline-light:hover { background: var(--sand); color: var(--teal-deep); }
.hero-bar .btn-gold { padding: 10px 28px; }

/* ----- ریتم بخش‌ها ----- */
.section.tight { padding: 40px 0 28px; }
.section.l1 { background: linear-gradient(180deg, var(--sand-light), #fff 70%); padding-top: 40px; }
.section.dark.masters { background: radial-gradient(circle at 85% 0, rgba(31,167,154,.28), transparent 50%), var(--teal-deep); }
.ph { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.ph-t { display: flex; align-items: center; gap: 12px; }
.ph-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--teal); color: var(--white); font-size: 1.5rem; flex: none; }
.ph h2 { color: var(--teal-deep); font-size: 1.5rem; line-height: 1.5; }
.ph p { color: var(--ink-soft); font-size: .92rem; max-width: 640px; }
.dark .ph h2 { color: var(--white); } .dark .ph p { color: var(--sand-dark); } .dark .ph-ic { background: var(--gold); color: var(--ink); }
.ph-all { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal); padding: 6px 4px; border-bottom: 2px solid transparent; white-space: nowrap; }
.ph-all:hover { border-color: var(--gold); }
.dark .ph-all { color: var(--gold); }
.chips-row { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips-row button { flex: none; padding: 5px 16px; border-radius: 99px; border: 1.5px solid var(--sand-dark); background: var(--white); color: var(--ink); font-size: .88rem; }
.chips-row button:hover { border-color: var(--teal); }
.chips-row button.on { background: var(--teal); color: var(--white); border-color: var(--teal); }

/* ----- شبکه دسته‌ها ----- */
.ct-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.ct { position: relative; display: flex; flex-direction: column; background: var(--white); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); transition: transform .22s, box-shadow .22s, border-color .22s; }
.ct:hover, .ct:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.ct-img { position: relative; width: 100%; aspect-ratio: 1/1; overflow: hidden; background: var(--sand-light); }
.ct-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: transform .5s ease; }
.ct:hover .ct-img img { transform: scale(1.05); }
.ct-ic { position: absolute; z-index: 2; top: 8px; inset-inline-start: 8px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.94); color: var(--teal); font-size: 1.15rem; }
.ct-body { padding: 8px 10px 0; display: grid; line-height: 1.6; }
.ct-body b { font-size: .92rem; color: var(--teal-deep); }
.ct-body small { color: var(--ink-soft); font-size: .76rem; }
.ct-go { display: flex; align-items: center; justify-content: space-between; margin: 4px 10px 10px; font-size: .78rem; color: var(--teal); }
.ct:hover .ct-go { color: var(--gold-deep); }

/* ----- کارت محصول ----- */
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pgrid.g3 { grid-template-columns: repeat(3, 1fr); }
.pc { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: box-shadow .22s, transform .22s, border-color .22s; }
.pc:hover, .pc:focus-within { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--sand-dark); }
.pc-media { position: relative; }
.pc-media .img-box img { transition: transform .5s ease; }
.pc:hover .pc-media .img-box img { transform: scale(1.04); }
.pc-seal { position: absolute; z-index: 3; top: 10px; inset-inline-start: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 1px 10px 1px 8px; border-radius: 99px; background: var(--gold); color: var(--ink); font-size: .74rem; font-weight: 700; }
.pc-wish { position: absolute; z-index: 3; top: 8px; inset-inline-end: 8px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--ink-soft); display: grid; place-items: center; font-size: 1.2rem; box-shadow: 0 1px 6px rgba(0,0,0,.15); transition: color .15s, transform .15s; }
.pc-wish:hover { color: var(--off); transform: scale(1.08); }
.pc-wish[aria-pressed="true"] { color: var(--off); }
.pc-wish[aria-pressed="true"] .ic, .btn[data-wish][aria-pressed="true"] .ic { fill: currentColor; }
.btn[data-wish][aria-pressed="true"] { color: var(--off); border-color: var(--off); background: transparent; }
.pc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.pc-cat { align-self: flex-start; font-size: .76rem; color: var(--teal); background: rgba(31,167,154,.12); padding: 0 10px; border-radius: 99px; line-height: 1.8; }
.pc-cat:hover { background: var(--teal); color: var(--white); }
.pc h3 { font-size: .98rem; font-weight: 700; line-height: 1.8; color: var(--ink); min-height: 3.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }   /* کل کارت قابل کلیک؛ نام هنرمند و دکمه‌ها بالاتر قرار می‌گیرند */
.pc:hover .pc-link { color: var(--teal); }
.pc-artist, .pc-cat, .pc-add, .pc-wish { position: relative; z-index: 4; }
.pc-wish, .pc-seal { position: absolute; }
.pc-artist { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft); border-bottom: 1px dashed transparent; }
.pc-artist .ic { color: var(--gold); }
.pc-artist:hover { color: var(--teal); border-color: var(--teal); }
.pc-buy { margin-top: auto; padding-top: 8px; display: grid; gap: 2px; }
.pc .p-price strong { font-size: 1.2rem; color: var(--teal-deep); }
.pc .p-price.out strong { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1px; font-weight: 500; }
.pc-stock { font-size: .78rem; display: inline-flex; align-items: center; gap: 6px; }
.pc-stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pc-stock.in { color: var(--ok); } .pc-stock.low { color: var(--warn); } .pc-stock.out { color: var(--bad); }
.pc-add { margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 12px; border-radius: 10px; border: 1.5px solid var(--teal); background: var(--teal); color: var(--white); font-size: .9rem; font-weight: 600; transition: background .2s, color .2s; }
.pc-add:hover { background: var(--teal-deep); border-color: var(--teal-deep); }
.pc-add.ghost { background: transparent; color: var(--teal); } .pc-add.ghost:hover { background: var(--teal); color: var(--white); }
.pc-add.disabled { background: #eceae2; border-color: #eceae2; color: var(--ink-soft); cursor: not-allowed; }
.pc.is-out .img-box { opacity: .6; }
.dark .pc { border-color: transparent; }

/* ریل افقی */
.rail { position: relative; }
.rail-track { gap: 16px; padding: 4px 2px 12px; }
.rail-track .cell { flex: 0 0 min(250px, 68%); scroll-snap-align: start; display: flex; }
.rail .p-nav { top: 44%; }

/* ----- خرید بر اساس هنر ----- */
.craft-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.craft-tabs button { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 0; background: none; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -1px; font-size: .95rem; }
.craft-tabs button .ic { font-size: 1.25rem; color: var(--gold); }
.craft-tabs button:hover { color: var(--teal); }
.craft-tabs button[aria-selected="true"] { color: var(--teal-deep); font-weight: 700; border-color: var(--teal); }
.craft-panel { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.cp-story { background: var(--white); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; position: sticky; top: 130px; }
.cp-img { position: relative; width: 100%; aspect-ratio: var(--ratio, 4/3); overflow: hidden; }
.cp-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cp-txt { padding: 16px 18px 20px; display: grid; gap: 10px; }
.cp-txt h3 { color: var(--teal-deep); font-size: 1.25rem; }
.cp-txt p { font-size: .92rem; color: var(--ink-soft); }
.cp-main h4 { color: var(--teal-deep); margin: 0 0 10px; font-size: 1.05rem; }
.cp-main .pgrid { margin-bottom: 24px; }
.cp-artists { display: flex; flex-wrap: wrap; gap: 10px; }
.cp-artists a { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 8px 14px 8px 18px; }
.cp-artists a:hover { border-color: var(--teal); }
.cp-artists .avatar { width: 40px; height: 40px; flex: none; }
.cp-artists b { display: block; font-size: .9rem; line-height: 1.5; } .cp-artists small { color: var(--ink-soft); font-size: .78rem; }

/* ----- کارت هنرمند (Marketplace) ----- */
.artists-panel .am-track { gap: 16px; padding: 6px 4px 14px; }
.am-track .cell { flex: 0 0 min(290px, 80%); display: flex; scroll-snap-align: start; }
.am { width: 100%; display: flex; flex-direction: column; gap: 12px; background: var(--white); color: var(--ink); border-radius: 18px; padding: 16px; }
.am-top { display: flex; align-items: center; gap: 12px; }
.am-top .avatar { width: 64px; height: 64px; flex: none; }
.am h3 { font-size: 1.05rem; line-height: 1.6; } .am h3 a:hover { color: var(--teal); }
.am-top p { color: var(--teal); font-size: .85rem; line-height: 1.6; }
.am-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--ink-soft); }
.am-meta .ic { color: var(--gold); margin-inline-end: 4px; }
.am-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.am-thumbs a { border-radius: 10px; overflow: hidden; display: block; }
.am-btn { margin-top: auto; }

/* ----- اصالت و اعتماد ----- */
#authenticity { background: var(--sand-light); }
.trust-wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; margin-bottom: 34px; }
.auth-main h2 { color: var(--teal-deep); font-size: 1.7rem; margin-bottom: 6px; }
.auth-main > p { color: var(--ink-soft); margin-bottom: 14px; max-width: 520px; }
.trust { display: grid; gap: 10px; margin-bottom: 18px; }
.trust li { display: flex; gap: 12px; align-items: flex-start; }
.trust li > span { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: #E3F2F0; color: var(--teal); font-size: 1.25rem; }
.trust b { display: block; font-size: .95rem; line-height: 1.6; } .trust small { color: var(--ink-soft); font-size: .84rem; line-height: 1.6; display: block; }
.cert { background: var(--white); border: 1.5px solid var(--gold); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); position: relative; }
.cert::before { content: ''; position: absolute; inset: 6px; border: 1px dashed var(--sand-dark); border-radius: 13px; pointer-events: none; }
.cert-top { display: flex; align-items: center; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; position: relative; }
.cert-top .ic { width: 40px; height: 40px; color: var(--gold); }
.cert-top b { color: var(--teal-deep); display: block; line-height: 1.5; } .cert-top small { color: var(--ink-soft); font-size: .8rem; }
.cert dl { position: relative; }
.cert dl div { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px dotted var(--line); font-size: .88rem; }
.cert dt { color: var(--ink-soft); flex: none; } .cert dd { font-weight: 600; text-align: end; }
.cert-link { position: relative; display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--teal); font-weight: 700; font-size: .9rem; }
.auth-products { margin-bottom: 40px; }
.reviews-wrap { border-top: 1px solid var(--line); padding-top: 30px; }

/* ----- داستان هنر ----- */
.story { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--white); border-radius: 20px; overflow: hidden; border: 1px solid var(--line); margin-bottom: 26px; }
.story-img { position: relative; min-height: 280px; height: 100%; overflow: hidden; }
.story-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.story-img .art { position: absolute; }
.story-body { padding: 26px 28px; display: grid; gap: 10px; align-content: center; }
.story-body h3 { color: var(--teal-deep); font-size: 1.35rem; line-height: 1.7; }
.story-body .chip { justify-self: start; }
.story-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ----- نگارخانه ----- */
.g-link { display: block; height: 100%; }
.g-item figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.g-item figcaption em { font-style: normal; font-size: .78rem; opacity: 0; transform: translateY(4px); transition: .22s; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; color: var(--gold); }
.g-item:hover figcaption em, .g-link:focus-visible figcaption em { opacity: 1; transform: none; }
.g-item .img-box img { transition: transform .5s ease; } .g-item:hover .img-box img { transform: scale(1.04); }

/* ----- کشوی علاقه‌مندی / سبد ----- */
#drawer { position: fixed; inset: 0; z-index: 100; }
#drawer[hidden] { display: none; }
.dr-back { position: absolute; inset: 0; background: rgba(11,40,38,.5); }
.dr { position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: min(420px, 100%); background: var(--white); display: flex; flex-direction: column; box-shadow: -10px 0 40px rgba(0,0,0,.25); animation: drIn .25s ease; }
@keyframes drIn { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.dr-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.dr-head h2 { font-size: 1.15rem; color: var(--teal-deep); }
.dr-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand-light); font-size: 1.2rem; display: grid; place-items: center; }
.dr-body { flex: 1; overflow: auto; padding: 8px 18px; }
.dr-row { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.dr-row > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dr-row b { font-size: .9rem; line-height: 1.7; } .dr-row small { color: var(--ink-soft); }
.dr-th { width: 72px; flex: none; border-radius: 10px; overflow: hidden; }
.dr-pr { font-weight: 700; color: var(--teal-deep); font-size: .92rem; }
.dr-rm { border: 0; background: none; color: var(--ink-soft); font-size: 1.1rem; padding: 6px; border-radius: 8px; }
.dr-rm:hover { color: var(--off); background: var(--sand-light); }
.qty { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--sand-dark); border-radius: 10px; width: max-content; margin-top: 4px; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font-size: 1.1rem; } .qty button:disabled { opacity: .35; cursor: not-allowed; }
.qty span { min-width: 22px; text-align: center; }
.dr-add { justify-self: start; margin-top: 4px; padding: 4px 14px; border-radius: 8px; border: 1.5px solid var(--teal); background: none; color: var(--teal); font-size: .84rem; } .dr-add:hover { background: var(--teal); color: var(--white); }
.dr-empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 60px 10px; color: var(--ink-soft); }
.dr-empty .ic { width: 52px; height: 52px; color: var(--sand-dark); }
.dr-foot { padding: 0 18px 16px; display: grid; gap: 10px; }
.dr-foot:not(:empty) { border-top: 1px solid var(--line); padding-top: 14px; }
.dr-total { display: flex; justify-content: space-between; align-items: baseline; } .dr-total strong { font-size: 1.2rem; color: var(--teal-deep); } .dr-total small { font-size: .75rem; font-weight: 400; }
.dr-foot p { font-size: .8rem; color: var(--ink-soft); }
#toast { position: fixed; z-index: 120; bottom: 22px; inset-inline: 0; margin-inline: auto; width: max-content; max-width: calc(100% - 32px); background: var(--teal-deep); color: var(--white); padding: 10px 22px; border-radius: 12px; box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .25s; font-size: .92rem; }
#toast.on { opacity: 1; transform: none; }

/* ----- صفحه فروشگاه ----- */
.shop { display: grid; grid-template-columns: 270px 1fr; gap: 24px; align-items: start; }
.shop-f { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 6px 16px 16px; position: sticky; top: 130px; max-height: calc(100vh - 150px); overflow: auto; }
.f-g { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-g h3 { font-size: .95rem; color: var(--teal-deep); margin-bottom: 8px; }
.f-list button { display: flex; justify-content: space-between; width: 100%; padding: 4px 10px; border: 0; background: none; border-radius: 8px; text-align: start; font-size: .88rem; }
.f-list button:hover:not(:disabled) { background: var(--sand-light); }
.f-list button.on { background: #E3F2F0; color: var(--teal-deep); font-weight: 700; }
.f-list button:disabled { color: #a9a99c; cursor: not-allowed; } .f-list small { color: var(--ink-soft); }
.f-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.f-chips button { padding: 2px 12px; border-radius: 99px; border: 1.5px solid var(--sand-dark); background: none; font-size: .84rem; }
.f-chips button.on { background: var(--teal); color: var(--white); border-color: var(--teal); }
.shop-f select, .sort select { width: 100%; padding: 8px 10px; border: 1px solid var(--sand-dark); border-radius: 10px; background: var(--white); }
.f-g input[type=range] { width: 100%; accent-color: var(--teal); }
.f-chk { display: flex; gap: 8px; align-items: center; font-size: .9rem; padding: 3px 0; } .f-chk input { accent-color: var(--teal); width: 16px; height: 16px; }
.f-reset { width: 100%; margin-top: 14px; }
.shop-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.shop-top h1 { font-size: 1.5rem; color: var(--teal-deep); line-height: 1.6; }
.sort { display: flex; align-items: center; gap: 8px; font-size: .88rem; white-space: nowrap; } .sort select { width: auto; }
.shop .pgrid { grid-template-columns: repeat(3, 1fr); }
.shop-ftoggle { display: none; }
.rel-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; font-size: .9rem; }
.rel-row a { padding: 0 14px; border-radius: 99px; background: var(--white); border: 1px solid var(--line); } .rel-row a:hover { border-color: var(--teal); color: var(--teal); }
.shop-empty { grid-column: 1 / -1; text-align: center; padding: 50px 10px; display: grid; gap: 14px; justify-items: center; color: var(--ink-soft); }

/* ----- صفحه اثر: جعبه خرید ----- */
.buy .btn { width: 100%; }
.buy .btn-ghost[data-wish] { gap: 8px; }

/* ----- واکنش‌گرا ----- */
@media (max-width: 1100px) {
  .ct-grid { grid-template-columns: repeat(5, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); } .shop .pgrid { grid-template-columns: repeat(2, 1fr); }
  .craft-panel { grid-template-columns: 1fr; } .cp-story { position: static; display: grid; grid-template-columns: 1fr 1.3fr; }
  .trust-wrap, .story { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .shop-ftoggle { display: inline-flex; justify-self: start; }
  .shop-f { display: none; position: static; max-height: none; } .shop-f.open { display: block; }
  .ph h2 { font-size: 1.25rem; }
  .pgrid.g3 { grid-template-columns: repeat(2, 1fr); }
  .head-actions { margin-inline-start: auto; }
}
@media (max-width: 700px) {
  .ct-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .ct { flex: 0 0 132px; scroll-snap-align: start; }
  .pgrid, .shop .pgrid, .pgrid.g3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc-body { padding: 10px 10px 12px; } .pc h3 { font-size: .88rem; min-height: 3.4em; } .pc .p-price strong { font-size: 1.02rem; }
  .pc-add { padding: 8px 6px; font-size: .82rem; } .pc-add span { white-space: nowrap; }
  .pc-artist { font-size: .78rem; }
  .cp-story { grid-template-columns: 1fr; }
  .hero-bar-row { padding: 12px 0; } .hero-bar p span { display: none; } .hero-cta { width: 100%; } .hero-cta .btn { flex: 1; padding-inline: 10px; }
  .story-body { padding: 18px; }
  .ph-all span { font-size: .85rem; }
  .rail-track .cell { flex-basis: 62%; }
}
@media (max-width: 600px) {
  .head-row { flex-wrap: wrap; } .head-actions { gap: 0; } .h-btn { width: 38px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .section.tight { padding-top: 26px; }
}

/* ==========================================================================
   مرحله صفحه اصلی (۲): فونت بزرگ‌تر، دسته‌های دایره‌ای، کارت محصول با تصویر بزرگ،
   فیلتر گرد، «خرید بر اساس هنر» با پس‌زمینه تصویری، گالری زاویه‌ها و زوم
   ========================================================================== */
html { font-size: 112.5%; }                      /* پایه ۱۸ پیکسل؛ همه rem ها بزرگ‌تر می‌شوند */
body { line-height: 1.95; }
.container { width: min(1320px, 100% - 32px); }
.muted { font-size: .95rem; }
.chip { font-size: .82rem; }
.btn { font-size: 1rem; padding: 9px 20px; }
.main-nav a { font-size: 1.02rem; }
.sec-head p, .ph p { font-size: 1rem; }

/* ----- دسته‌ها: آیکون‌های دایره‌ای ظریف ----- */
.cc-row { display: flex; justify-content: center; gap: 22px 26px; padding: 6px 0 4px; }
.cc { width: 112px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: var(--ink); transition: transform .22s; }
.cc-disc { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--white); color: var(--teal); border: 1px solid var(--sand-dark); box-shadow: 0 0 0 5px rgba(199,151,63,.10), 0 6px 16px rgba(11,79,74,.07); font-size: 2rem; transition: color .22s, background .22s, border-color .22s, box-shadow .22s; }
.cc-disc .ic { stroke-width: 1.15; width: 1.05em; height: 1.05em; }
.cc b { font-size:10px; font-weight: 600; line-height: 1.7; color: var(--teal-deep); }
.cc:hover, .cc:focus-visible { transform: translateY(-4px); }
.cc:hover .cc-disc, .cc:focus-visible .cc-disc { background: var(--teal); color: var(--white); border-color: var(--teal); box-shadow: 0 0 0 5px rgba(14,110,103,.14), 0 10px 22px rgba(11,79,74,.18); }
.cc.is-soon { opacity: .6; }
#categories .ph { margin-bottom: 18px; }

/* ----- فیلتر آثار منتخب: کپسولی و گرد ----- */
.chips-row { justify-content: center; flex-wrap: wrap; gap: 10px; overflow: visible; margin-bottom: 26px; }
.chips-row button { padding: 7px 24px; border-radius: 999px; font-size: 1rem; background: var(--white); border: 1.5px solid var(--sand-dark); box-shadow: 0 2px 8px rgba(11,79,74,.05); transition: background .2s, color .2s, border-color .2s, transform .2s; }
.chips-row button:hover { transform: translateY(-1px); }
.chips-row button.on { box-shadow: 0 6px 16px rgba(14,110,103,.28); }

/* ----- کارت محصول: تصویر بزرگ‌تر ----- */
.pgrid { gap: 22px; }
.pc { border-radius: 20px; }
.pc-media .img-box { border-radius: 0; }
.pc-body { padding: 14px 16px 16px; gap: 6px; }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pc-cat { font-size: .82rem; }
.pc-code { font-size: .8rem; color: var(--ink-soft); background: var(--sand-light); border: 1px solid var(--line); padding: 0 10px; border-radius: 99px; line-height: 1.8; white-space: nowrap; }
.pc h3 { font-size: 1.08rem; min-height: 3.6em; }
.pc-artist { font-size: .92rem; align-items: flex-start; }
.pc-artist .ic { margin-top: .45em; }
.pc-artist > span { display: grid; line-height: 1.6; }
.pc-artist b { font-weight: 700; color: var(--teal-deep); }
.pc-artist small { font-size: .78rem; color: var(--ink-soft); }
.pc .p-price strong { font-size: 1.3rem; }
.pc-add { font-size: 1rem; padding: 10px 12px; }
.pc-seal { font-size: .8rem; }
.rail-track .cell { flex: 0 0 min(300px, 72%); }
.p-off del { font-size: .9rem; } .badge-off { font-size: .82rem; }

/* ----- فروشنده: برند به‌جای عکس و نام شخصی ----- */
.avatar.brand-av { display: grid; place-items: center; font-weight: 800; color: var(--white); background: linear-gradient(135deg, var(--teal), var(--turquoise)); }
.avatar.brand-av > span { font-size: 1.3rem; line-height: 1; } .avatar.big.brand-av > span { font-size: 3.4rem; }
.avatar.brand-av > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.buy .artist-mini em { display: block; font-style: normal; font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.buy .artist-mini b { font-size: 1.05rem; }

/* ----- خرید بر اساس هنر: تصویر رشته = پس‌زمینه کل بخش ----- */
.crafts-sec { position: relative; isolation: isolate; color: var(--white); background: var(--teal-deep); overflow: hidden; padding: 64px 0 72px; }
.crafts-bg { position: absolute; inset: 0; z-index: -1; }
.crafts-bg::after { content: ''; position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(8,44,41,.78), rgba(8,44,41,.58) 45%, rgba(8,44,41,.82)); }
.cb-layer { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
.cb-layer.on { opacity: 1; }
.cb-layer img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.cb-layer .art { position: absolute; }
.crafts-sec .ph h2, .crafts-sec .ph-all { color: var(--white); } .crafts-sec .ph p { color: var(--sand); }
.crafts-sec .ph-ic { background: var(--gold); color: var(--ink); }
.craft-tabs { border: 0; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; overflow: visible; }
.craft-tabs button { border: 1.5px solid rgba(255,255,255,.35); border-radius: 999px; margin: 0; padding: 7px 22px; background: rgba(255,255,255,.12); color: var(--white); font-size: 1rem; backdrop-filter: blur(6px); transition: background .2s, color .2s, border-color .2s; }
.craft-tabs button .ic { color: var(--gold); }
.craft-tabs button:hover { background: rgba(255,255,255,.22); color: var(--white); }
.craft-tabs button[aria-selected="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); font-weight: 700; } .craft-tabs button[aria-selected="true"] .ic { color: var(--ink); }
.craft-panel { grid-template-columns: 380px 1fr; gap: 26px; }
.cp-info { position: sticky; top: 130px; display: grid; gap: 12px; padding: 24px 26px; border-radius: 22px; background: rgba(8,44,41,.58); border: 1px solid rgba(233,222,192,.32); backdrop-filter: blur(10px); box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.cp-info .chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; }
.cp-info h3 { font-size: 1.6rem; color: var(--white); line-height: 1.6; }
.cp-info p { color: var(--sand); font-size: 1.02rem; line-height: 2.1; }
.cp-facts { display: flex; gap: 12px; }
.cp-facts li { flex: 1; text-align: center; padding: 6px 8px; border-radius: 14px; background: rgba(255,255,255,.1); }
.cp-facts b { display: block; font-size: 1.4rem; color: var(--gold); line-height: 1.5; } .cp-facts span { font-size: .85rem; color: var(--sand); }
.crafts-sec .cp-main h4 { color: var(--white); font-size: 1.15rem; }
.crafts-sec .cp-main .pgrid { margin-bottom: 28px; }
.crafts-sec .cp-artists a { background: rgba(255,255,255,.94); }

/* ----- صفحه اثر: گالری زاویه‌ها و زوم ----- */
.pd-gallery { display: grid; gap: 12px; align-content: start; }
.gal-main { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); cursor: zoom-in; touch-action: pan-y; user-select: none; }
.gal-main.is-zoomed { cursor: grab; touch-action: none; } .gal-main.is-zoomed:active { cursor: grabbing; }
.gal-stage { position: relative; transform-origin: center; transition: transform .18s ease-out; will-change: transform; }
.gal-main.is-zoomed .gal-stage { transition: none; }
.gal-slide { display: none; } .gal-slide.on { display: block; }
.gal-slide .img-box { border-radius: 0; box-shadow: none; }
.gal-tools { position: absolute; z-index: 5; top: 12px; inset-inline-start: 12px; display: grid; gap: 8px; }
.gal-tools button, .gal-nav { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.94); color: var(--teal-deep); display: grid; place-items: center; font-size: 1.25rem; box-shadow: 0 2px 10px rgba(0,0,0,.2); transition: background .2s, color .2s; }
.gal-tools button:hover, .gal-nav:hover { background: var(--teal); color: var(--white); }
.gal-nav { position: absolute; z-index: 5; top: 50%; translate: 0 -50%; } .gal-nav.prev { inset-inline-end: 12px; } .gal-nav.next { inset-inline-start: 12px; }
.gal-main.is-zoomed .gal-nav { display: none; }
.gal-count { position: absolute; z-index: 5; bottom: 12px; inset-inline-end: 12px; padding: 0 12px; border-radius: 99px; background: rgba(11,79,74,.78); color: var(--white); font-size: .84rem; }
.gal-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gal-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--white); opacity: .72; transition: opacity .2s, border-color .2s, transform .2s; }
.gal-thumbs button:hover { opacity: 1; transform: translateY(-2px); } .gal-thumbs button.on { opacity: 1; border-color: var(--gold); }
.gal-thumbs .img-box { border-radius: 0; }
.gal-hint { display: flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink-soft); }
.pd-gallery .img-box { box-shadow: none; }
.lb { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(6,30,28,.95); color: var(--white); }
.lb-top { display: flex; align-items: center; gap: 14px; padding: 12px 18px; } .lb-top b { flex: 1; font-size: 1.05rem; } .lb-n { font-size: .9rem; color: var(--sand-dark); }
.lb-x { width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); display: grid; place-items: center; font-size: 1.3rem; }
.lb-view { position: relative; flex: 1; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; touch-action: pan-y; }
.lb-view.is-zoomed { cursor: grab; touch-action: none; }
.lb-stage { width: min(88vh, 92vw); transform-origin: center; transition: transform .18s ease-out; }
.lb-view.is-zoomed .lb-stage { transition: none; }
.lb-slide { display: none; } .lb-slide.on { display: block; } .lb-slide .img-box { border-radius: 12px; }
.lb-bar { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 12px 16px 18px; }
.lb-bar button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: var(--white); display: grid; place-items: center; font-size: 1.3rem; } .lb-bar button:hover { background: var(--gold); color: var(--ink); }
.lb-zv { min-width: 56px; text-align: center; font-size: .95rem; }
body.no-scroll { overflow: hidden; }

/* ----- بلاگ هنرمندان ----- */
.blog-cta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 0 0 22px; padding: 14px 20px; border-radius: 18px; background: var(--white); border: 1px dashed var(--gold); }
.blog-cta > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(199,151,63,.18); color: var(--gold-deep); font-size: 1.3rem; flex: none; }
.blog-cta p { flex: 1; min-width: 220px; color: var(--ink-soft); font-size: .98rem; } .blog-cta p b { color: var(--teal-deep); }
.nc-by { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--gold-deep) !important; }

@media (max-width: 1100px) {
  .craft-panel { grid-template-columns: 1fr; } .cp-info { position: static; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  html { font-size: 106.25%; }
  .cc-row { gap: 16px 10px; } .cc { width: 88px; } .cc-disc { width: 62px; height: 62px; font-size: 1.65rem; } .cc b { font-size: .86rem; }
  .chips-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .craft-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .pc-body { padding: 10px 10px 12px; } .pc h3 { font-size: .95rem; } .pc-code { font-size: .72rem; padding: 0 7px; }
  .gal-thumbs { gap: 6px; } .gal-tools button, .gal-nav { width: 38px; height: 38px; }
  .crafts-sec { padding: 44px 0 52px; } .cp-info { padding: 18px; }
}
.cp-info .chip { background: rgba(199,151,63,.28); color: #F6E7C0; }
.crafts-sec .cp-artists a { color: var(--ink); } .crafts-sec .cp-artists b { color: var(--teal-deep); }
.rv-grid > *, .rv-sum, .rv-big { min-width: 0; } .rv-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) { .rv-grid:not(.solo) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.rv-form { width: 100%; max-width: 500px; }



@media (max-width: 1100px) {
  .mega ul { grid-template-columns: repeat(3, 1fr); } .gallery { grid-template-columns: repeat(3, 1fr); }
  .pd { grid-template-columns: minmax(0, 360px) 1fr; } .buy { grid-column: 1 / -1; position: static; }
  .brand-row { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 900px) {
  .burger { display: block; } .login span { display: none; } .search { max-width: none; }
  .main-nav { display: none; } .main-nav.open { display: block; }
  .main-nav > .container > ul { flex-direction: column; } .main-nav a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .main-nav > .container > ul > li > a::after { inset-inline: 8px; bottom: 6px; }
  .mega { position: static; display: none; box-shadow: none; padding: 6px 10px; border-top: 0; background: var(--teal-deep); }
  .has-mega:hover .mega, .has-mega:focus-within .mega { display: none; } .has-mega.open .mega { display: block !important; }
  .mega ul { grid-template-columns: 1fr 1fr; } .mega a { color: var(--sand); padding: 6px; } .mega-head { display: none; }
  .mega a span { text-decoration-color: transparent; } .mega a:hover span { text-decoration-color: var(--sand); }
  .grid.g3 { grid-template-columns: repeat(2, 1fr); }
  .about, .contact, .ar-cols, .article-wrap, .feature-post { grid-template-columns: 1fr; } .foot-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 150px; }
  .promo { flex-direction: column; } .promo-side { flex-direction: row; flex-wrap: wrap; flex-basis: auto; justify-content: space-between; text-align: start; } .promo-side p { display: none; }
  .p-nav { display: none; }
  .ar-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .ar-stats, .ar-hero .chips { justify-content: center; }
  .pd { grid-template-columns: 1fr; } .side-box { position: static; }
}
@media (max-width: 600px) {
  .head-row { gap: 10px; flex-wrap: wrap; } .brand { font-size: 1rem; } .brand img { width: 34px; height: 34px; }
  .search { order: 5; flex-basis: 100%; } .topbar { display: none; }
  .grid.g3 { grid-template-columns: 1fr; }
  .cat-circles { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; } .cat-circle { flex: none; width: 88px; } .cat-circle .disc { width: 68px; height: 68px; font-size: 1.7rem; }
  .toolbar .count { margin-inline-start: 0; width: 100%; }
  .s-btn { width: 34px; height: 34px; font-size: 1.1rem; } .section { padding: 38px 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; } .g-item.wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: 1fr; } .mega ul { grid-template-columns: 1fr; } .brand-row { grid-template-columns: repeat(2, 1fr); }
  .artists-panel { padding: 30px 10px 22px; border-radius: 20px; } .badge { flex-basis: 244px; }
  .article-body { padding: 18px; } .article-body h1 { font-size: 1.4rem; } .ar-hero { padding: 24px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (max-width: 900px) {
  .rv-grid { grid-template-columns: 1fr; } .pd-tabs { top: 112px; overflow-x: auto; } .pd-tabs a { white-space: nowrap; padding: 12px 12px; }
  .spec-table dt { flex-basis: 110px; } .pd-sec { padding: 18px 14px; } .about-logo { margin-top: 10px; }
}

@media (max-width: 1100px) {
  .ct-grid { grid-template-columns: repeat(5, 1fr); }
  .pgrid { grid-template-columns: repeat(3, 1fr); } .shop .pgrid { grid-template-columns: repeat(2, 1fr); }
  .craft-panel { grid-template-columns: 1fr; } .cp-story { position: static; display: grid; grid-template-columns: 1fr 1.3fr; }
  .trust-wrap, .story { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .shop { grid-template-columns: 1fr; }
  .shop-ftoggle { display: inline-flex; justify-self: start; }
  .shop-f { display: none; position: static; max-height: none; } .shop-f.open { display: block; }
  .ph h2 { font-size: 1.25rem; }
  .pgrid.g3 { grid-template-columns: repeat(2, 1fr); }
  .head-actions { margin-inline-start: auto; }
}
@media (max-width: 700px) {
  .ct-grid { display: flex; overflow-x: auto; scroll-snap-type: x proximity; gap: 12px; padding-bottom: 8px; scrollbar-width: none; }
  .ct { flex: 0 0 132px; scroll-snap-align: start; }
  .pgrid, .shop .pgrid, .pgrid.g3 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .pc-body { padding: 10px 10px 12px; } .pc h3 { font-size: .88rem; min-height: 3.4em; } .pc .p-price strong { font-size: 1.02rem; }
  .pc-add { padding: 8px 6px; font-size: .82rem; } .pc-add span { white-space: nowrap; }
  .pc-artist { font-size: .78rem; }
  .cp-story { grid-template-columns: 1fr; }
  .hero-bar-row { padding: 12px 0; } .hero-bar p span { display: none; } .hero-cta { width: 100%; } .hero-cta .btn { flex: 1; padding-inline: 10px; }
  .story-body { padding: 18px; }
  .ph-all span { font-size: .85rem; }
  .rail-track .cell { flex-basis: 62%; }
}
@media (max-width: 600px) {
  .head-row { flex-wrap: wrap; } .head-actions { gap: 0; } .h-btn { width: 38px; }
  .search { order: 5; flex-basis: 100%; max-width: none; }
  .section.tight { padding-top: 26px; }
}


@media (max-width: 1100px) {
  .craft-panel { grid-template-columns: 1fr; } .cp-info { position: static; }
  .pgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  html { font-size: 106.25%; }
  .cc-row { gap: 16px 10px; } .cc { width: 88px; } .cc-disc { width: 62px; height: 62px; font-size: 1.65rem; } .cc b { font-size: .86rem; }
  .chips-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; } .craft-tabs { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .pc-body { padding: 10px 10px 12px; } .pc h3 { font-size: .95rem; } .pc-code { font-size: .72rem; padding: 0 7px; }
  .gal-thumbs { gap: 6px; } .gal-tools button, .gal-nav { width: 38px; height: 38px; }
  .crafts-sec { padding: 44px 0 52px; } .cp-info { padding: 18px; }
}
.cp-info .chip { background: rgba(199,151,63,.28); color: #F6E7C0; }
.crafts-sec .cp-artists a { color: var(--ink); } .crafts-sec .cp-artists b { color: var(--teal-deep); }
.rv-grid > *, .rv-sum, .rv-big { min-width: 0; } .rv-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 901px) { .rv-grid:not(.solo) { grid-template-columns: minmax(0, 340px) minmax(0, 1fr); } }
.rv-form { width: 100%; max-width: 500px; }



@media (min-width: 1600px) {
  .container { width: min(1440px, calc(100% - 64px)); }
  .section { padding-block: clamp(56px, 4vw, 76px); }
  .grid.g3 { gap: 26px; }
  .pgrid, .pgrid.g3, .shop .pgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
  .container { width: calc(100% - 36px); }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid, .pgrid.g3, .shop .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pd { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .head-row { gap: 12px; }
}

@media (max-width: 900px) {
  :root { --page-gutter: 18px; }
  .head-row { gap: 10px; }
  .brand { flex: 0 0 auto; }
  .head-actions { min-width: 0; }
  .search { flex: 1 1 240px; }
  .main-nav { max-width: 100%; }
  .main-nav > .container > ul { max-height: min(72vh, 620px); overflow-y: auto; overscroll-behavior: contain; }
  .mega ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pgrid, .pgrid.g3, .shop .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ct-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pd { grid-template-columns: minmax(0, 1fr); }
  .buy { position: static; width: 100%; }
  .about, .contact, .ar-cols, .article-wrap, .feature-post,
  .craft-panel, .trust-wrap, .story { grid-template-columns: minmax(0, 1fr); }
  .cp-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth-main, .auth-main > *, .article-body { min-width: 0; }
  .auth { padding: clamp(16px, 3vw, 28px); }
}

@media (max-width: 700px) {
  :root { --page-gutter: 14px; }
  html { font-size: 100%; scroll-padding-top: 72px; }
  body { line-height: 1.8; }
  .container { width: calc(100% - 28px); }
  .head-row { display: flex; flex-wrap: wrap; align-items: center; }
  .brand { font-size: .98rem; gap: 7px; }
  .brand img { width: 32px; height: 32px; }
  .head-actions { margin-inline-start: auto; }
  .search { order: 10; flex: 1 0 100%; max-width: none; }
  .search-box { width: 100%; }
  .search input, .search-box input { min-height: 42px; }
  .login { white-space: normal; }
  .login span { display: none; }
  .topbar { display: none; }
  .section { padding-block: 34px; }
  .sec-head { margin-bottom: 22px; padding-inline: 4px; }
  .sec-head h2 { font-size: clamp(1.2rem, 5vw, 1.55rem); }
  .grid.g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pgrid, .pgrid.g3, .shop .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .pc-body, .card-body { padding: 10px; }
  .pc h3, .card h3 { font-size: .9rem; line-height: 1.65; }
  .pc .p-price strong { font-size: .98rem; }
  .pc-add { padding: 8px 6px; font-size: .8rem; }
  .pc-add span { white-space: normal; }
  .ct-grid { display: flex; overflow-x: auto; gap: 10px; padding-bottom: 8px; }
  .ct { flex: 0 0 clamp(118px, 38vw, 150px); }
  .cat-circles, .cc-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; padding: 4px 2px 10px; }
  .cat-circle, .cc { flex: 0 0 auto; }
  .toolbar { gap: 8px; }
  .toolbar .count { width: 100%; margin-inline-start: 0; }
  .filter-row, .form-row { display: grid; grid-template-columns: minmax(0, 1fr); }
  .shop-f { padding: 14px; }
  .hero-bar-row { flex-wrap: wrap; gap: 12px; }
  .hero-cta { width: 100%; display: flex; flex-wrap: wrap; }
  .hero-cta .btn { flex: 1 1 130px; }
  #hero-slider { height: clamp(180px, 58vw, 360px); }
  .s-btn { width: 34px; height: 34px; }
  .dots { bottom: 9px; }
  .promo { gap: 12px; }
  .promo-main, .track { min-width: 0; max-width: 100%; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(100px, 30vw, 150px); }
  .g-item.wide { grid-column: span 2; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .article-body { padding: 16px; }
  .article-body h1 { font-size: 1.3rem; }
  .ar-hero { padding: 22px 14px; }
  .ar-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .ar-stat { min-width: 0; padding: 8px; }
  .cp-story { grid-template-columns: minmax(0, 1fr); }
  .blog-cta { padding: 12px; gap: 10px; }
  .blog-cta p { min-width: 0; }
  .rv-form { max-width: 100%; }
  .pd-tabs { top: 0; position: relative; }
  .specs dt, .info dt { width: auto; max-width: 38%; }
  .specs dl, .info dl { gap: 8px; }
  .lb-top { padding: 10px 12px; gap: 8px; }
  .lb-stage { width: 96vw; }
  .lb-bar { gap: 8px; padding: 10px; }
  .lb-bar button { width: 40px; height: 40px; }
}

@media (max-width: 420px) {
  :root { --page-gutter: 10px; }
  .container { width: calc(100% - 20px); }
  .head-row { gap: 8px; }
  .brand { font-size: .88rem; }
  .brand img { width: 29px; height: 29px; }
  .h-btn { width: 34px; height: 38px; }
  .grid.g3 { gap: 9px; }
  .pgrid, .pgrid.g3, .shop .pgrid { gap: 8px; }
  .pc-body, .card-body { padding: 8px; }
  .pc h3, .card h3 { font-size: .84rem; }
  .pc-add { font-size: .76rem; }
  .btn { padding: 8px 11px; }
  .sec-head h2 { font-size: 1.15rem; }
  .ar-stats { grid-template-columns: minmax(0, 1fr); }
  .mega ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 350px) {
  .container { width: calc(100% - 16px); }
  .grid.g3 { grid-template-columns: minmax(0, 1fr); }
  .pgrid, .pgrid.g3, .shop .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .pc h3 { font-size: .8rem; }
  .pc-add { padding-inline: 4px; }
  .head-actions { gap: 0; }
  .h-btn { width: 31px; }
}

@media (hover: none) {
  .card:hover, .cc:hover { transform: none; }
  .main-nav a, .btn, .h-btn, .pc-add { -webkit-tap-highlight-color: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

