/* =================== فروشگاه =================== */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* نوار اطلاع‌رسانی */
.topbar { background: var(--pine-900); color: #d6ebe3; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 12px; }
.topbar a { display: inline-flex; align-items: center; gap: 6px; }
.topbar .ann { font-weight: 500; }

/* هدر */
.header { background: var(--paper); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; z-index: 60; }
.header-main { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-mark { width: 44px; height: 44px; border-radius: 13px; background: var(--pine-700); display: grid; place-items: center; position: relative; }
.logo-mark::before, .logo-mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; }
.logo-mark::before { width: 20px; height: 6px; }
.logo-mark::after { width: 6px; height: 20px; }
.logo-mark span { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); top: -3px; left: -3px; border: 2px solid var(--paper); }
.logo-text { line-height: 1.3; }
.logo-text b { display: block; font-size: 17px; font-weight: 800; color: var(--pine-900); }
.logo-text small { color: var(--muted); font-size: 11.5px; }
.search { flex: 1; position: relative; max-width: 560px; }
.search input { background: var(--cream); border-color: transparent; padding-right: 44px; border-radius: 12px; height: 48px; }
.search input:focus { background: var(--paper); }
.search > .ic { position: absolute; right: 14px; top: 14px; color: var(--muted); }
.search-drop { position: absolute; top: calc(100% + 8px); inset-inline: 0; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); overflow: hidden; z-index: 70; }
.search-drop a.row { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line-2); }
.search-drop a.row:hover { background: var(--pine-50); }
.search-drop img, .search-drop .ph { width: 44px; height: 44px; border-radius: 9px; object-fit: cover; }
.search-drop .all { display: block; text-align: center; padding: 10px; font-weight: 700; color: var(--pine-600); font-size: 14px; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 11px; font-weight: 600; font-size: 14px; position: relative; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.hbtn:hover { border-color: var(--pine-200); color: var(--pine-700); }
.hbtn .badge { position: absolute; top: -7px; left: -7px; min-width: 21px; height: 21px; border-radius: 99px; background: var(--coral); color: #fff; font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; border: 2px solid var(--paper); font-weight: 800; }
.hbtn.primary { background: var(--pine-700); color: #fff; border-color: var(--pine-700); }
.hbtn.primary:hover { background: var(--pine-800); color: #fff; }

/* منوی دسته‌ها */
.nav { border-top: 1px solid var(--line-2); }
.nav .container { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.nav-link:hover, .nav-item:hover > .nav-link { background: var(--pine-50); color: var(--pine-700); }
.nav-link .ic { color: var(--pine-500); }
.mega { position: absolute; top: 100%; right: 0; min-width: 260px; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line-2); padding: 10px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease); z-index: 65; }
.nav-item:hover .mega { opacity: 1; visibility: visible; transform: none; }
.nav-link { white-space: nowrap; }
.nav-cats { background: var(--pine-50); color: var(--pine-700) !important; }
.mega.wide { width: min(920px, calc(100vw - 40px)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 12px; padding: 18px; }
.mega-col { padding: 4px; }
.mega .mega-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); margin-bottom: 2px; }
.mega .mega-head .ic-box { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--pine-700); }
.mega-col a:not(.mega-head) { padding: 4px 12px 4px 0; margin-inline-start: 42px; color: var(--ink-2); font-size: 13.5px; }
.mega a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.mega a:hover { background: var(--pine-50); color: var(--pine-700); }
.nav .spacer { flex: 1; }
.nav .help-link { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }

/* هیرو */
.hero { padding: 24px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 16px; }
.hero-slide { border-radius: var(--radius-lg); min-height: 360px; padding: 44px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.hero-slide.pine { background: var(--pine-700); color: #fff; }
.hero-slide.cream { background: var(--cream-2); color: var(--pine-900); }
.hero-slide.coral { background: #f6d9cc; color: #5a2414; }
.hero-slide.sky { background: #d9e9f6; color: #18395c; }
.hero-slide h1, .hero-slide h2 { font-size: 38px; max-width: 460px; margin-bottom: 12px; line-height: 1.35; position: relative; z-index: 2; }
.hero-slide p { max-width: 400px; opacity: .88; font-size: 16px; position: relative; z-index: 2; }
.hero-slide .btn { align-self: flex-start; position: relative; z-index: 2; }
.hero-slide.pine .btn { background: var(--coral); }
.hero-slide img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.hero-art { position: absolute; left: 24px; bottom: 0; width: 38%; height: 86%; z-index: 1; }
.hero-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.hero-mini { border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; min-height: 172px; }
.hero-mini h3 { font-size: 20px; margin-bottom: 4px; position: relative; z-index: 2; }
.hero-mini p { font-size: 14px; margin: 0 0 10px; opacity: .85; position: relative; z-index: 2; }
.hero-mini .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; position: relative; z-index: 2; }
.hero-mini .deco { position: absolute; left: -20px; top: -20px; width: 150px; height: 150px; border-radius: 50%; opacity: .5; }
.slides { position: relative; display: grid; }
.slides > .hero-slide { grid-area: 1 / 1; }
.hero-slide h1, .hero-slide h2, .hero-slide p { max-width: min(460px, 56%); }
.slides .dots { position: absolute; bottom: 18px; right: 44px; display: flex; gap: 6px; z-index: 3; }
.slides .dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; padding: 0; transition: width .2s; }
.slides .dots button.on { width: 26px; background: #fff; }

/* مزایا */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 24px 0; }
.perk { display: flex; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 14px 16px; }
.perk .ic-box { width: 44px; height: 44px; border-radius: 12px; background: var(--pine-100); color: var(--pine-700); display: grid; place-items: center; flex-shrink: 0; }
.perk b { display: block; font-size: 14px; }
.perk small { color: var(--muted); font-size: 12.5px; }

/* بخش‌ها */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 22px; margin: 0; display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ""; width: 6px; height: 24px; border-radius: 3px; background: var(--coral); }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.section-head .more { display: inline-flex; gap: 4px; align-items: center; font-weight: 700; color: var(--pine-600); font-size: 14px; white-space: nowrap; }

/* دسته‌ها */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.cat-tile { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 18px 10px 14px; text-align: center; transition: .2s var(--ease); }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.cat-tile .ic-box { width: 60px; height: 60px; border-radius: 18px; margin: 0 auto 10px; display: grid; place-items: center; color: var(--pine-700); }
.cat-tile b { font-size: 14px; font-weight: 700; display: block; line-height: 1.5; }
.tint-mint { background: var(--tint-mint); } .tint-peach { background: var(--tint-peach); color: #9a4a2a !important; }
.tint-sky { background: var(--tint-sky); color: #275d92 !important; } .tint-sand { background: var(--tint-sand); color: #7b5c1d !important; }
.tint-lilac { background: var(--tint-lilac); color: #5d43a0 !important; } .tint-rose { background: var(--tint-rose); color: #a3374a !important; }

/* کارت محصول */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(212px, 1fr)); gap: 14px; }
.products.row-scroll { grid-auto-flow: column; grid-auto-columns: minmax(212px, 1fr); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.products.row-scroll > * { scroll-snap-align: start; }
.pcard { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; position: relative; transition: box-shadow .2s, border-color .2s; }
.pcard:hover { box-shadow: var(--shadow); border-color: transparent; }
.pcard .media { aspect-ratio: 1; border-radius: 11px; overflow: hidden; background: var(--cream); margin-bottom: 12px; position: relative; }
.pcard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.pcard:hover .media img { transform: scale(1.04); }
.pcard .tags { position: absolute; top: 18px; right: 18px; display: flex; flex-direction: column; gap: 4px; z-index: 2; align-items: flex-start; }
.tag-off { background: var(--coral); color: #fff; font-weight: 800; font-size: 12px; padding: 2px 9px; border-radius: 7px; }
.tag-rx { background: var(--purple-100); color: var(--purple); font-weight: 700; font-size: 11px; padding: 2px 8px; border-radius: 7px; display: inline-flex; gap: 4px; align-items: center; }
.pcard .brand { font-size: 12px; color: var(--muted); font-weight: 600; }
.pcard h3 { font-size: 14px; font-weight: 600; line-height: 1.75; margin: 2px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.5em; color: var(--ink); }
.pcard .foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price { display: flex; flex-direction: column; line-height: 1.4; }
.price del { color: var(--muted); font-size: 12.5px; }
.price b { font-size: 16.5px; font-weight: 800; color: var(--ink); }
.price .cur { font-size: 11px; }
.add-btn { width: 40px; height: 40px; border-radius: 11px; border: 0; background: var(--pine-100); color: var(--pine-700); display: grid; place-items: center; cursor: pointer; transition: .15s; flex-shrink: 0; }
.add-btn:hover { background: var(--pine-700); color: #fff; }
.add-btn.loading { opacity: .5; pointer-events: none; }
.oos { font-size: 13px; color: var(--muted); font-weight: 600; }
.pcard .rating { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }

/* تصویر جایگزین محصول */
.ph { width: 100%; height: 100%; display: grid; place-items: center; }
.ph .ic { opacity: .55; }

/* بنر میانی */
.mid-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mid-banner { border-radius: var(--radius-lg); padding: 30px; min-height: 180px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.mid-banner h3 { font-size: 22px; margin-bottom: 6px; position: relative; z-index: 2; }
.mid-banner p { position: relative; z-index: 2; opacity: .85; margin-bottom: 14px; }
.mid-banner .btn { align-self: flex-start; position: relative; z-index: 2; }
.mid-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* باشگاه مشتریان (نوار صفحه اصلی) */
.club { background: var(--pine-900); color: #e5f2ed; border-radius: var(--radius-lg); padding: 34px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; align-items: center; position: relative; overflow: hidden; }
.club h2 { color: #fff; font-size: 26px; margin-bottom: 6px; }
.club p { margin: 0; opacity: .8; }
.club-item { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 18px; }
.club-item .big { font-size: 34px; font-weight: 800; color: #ffb59f; line-height: 1.2; }
.club-item b { color: #fff; display: block; margin-bottom: 2px; }
.club-item small { opacity: .75; }

/* برندها */
.brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.brand-tile { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); height: 84px; display: grid; place-items: center; padding: 12px; font-weight: 800; color: var(--ink-2); text-align: center; transition: .2s; }
.brand-tile:hover { border-color: var(--pine-200); color: var(--pine-700); }
.brand-tile img { max-height: 54px; width: auto; }
.brand-tile small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }

/* مقالات */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .2s; }
.post-card:hover { box-shadow: var(--shadow); }
.post-card .cover { aspect-ratio: 16/9; background: var(--pine-100); overflow: hidden; }
.post-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 16px 18px 18px; }
.post-card h3 { font-size: 16px; line-height: 1.7; margin-bottom: 6px; }
.post-card p { color: var(--muted); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-card .meta { font-size: 12px; color: var(--muted); margin-bottom: 6px; display: flex; gap: 10px; }

/* فوتر */
.footer { background: var(--paper); border-top: 1px solid var(--line-2); margin-top: 64px; padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer h4 { font-size: 15px; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; font-size: 14px; color: var(--ink-2); }
.footer li a:hover { color: var(--pine-600); }
.footer .contact li { display: flex; gap: 8px; align-items: flex-start; }
.footer .contact .ic { color: var(--pine-500); margin-top: 4px; }
.footer .trust { display: flex; gap: 10px; margin-top: 12px; }
.footer .trust > div { width: 84px; height: 84px; border: 1px dashed var(--line); border-radius: 12px; display: grid; place-items: center; font-size: 11px; color: var(--muted); text-align: center; }
.footer-bottom { border-top: 1px solid var(--line-2); margin-top: 32px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.socials { display: flex; gap: 8px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; color: var(--pine-700); }

/* نوار پایین موبایل */
.bottom-nav { display: none; }

/* مسیر صفحه */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; font-size: 13px; color: var(--muted); margin: 18px 0; }
.crumbs a:hover { color: var(--pine-600); }
.crumbs .sep { opacity: .5; }

/* لیست محصولات */
.listing { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
.filters { position: sticky; top: 140px; }
.filter-box { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.filter-box:last-child { border-bottom: 0; }
.filter-box h4 { font-size: 14px; margin-bottom: 10px; }
.filter-box .scroll { max-height: 220px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 600; padding: 4px 0; cursor: pointer; }
.listing-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.listing-top h1 { font-size: 22px; margin: 0; }
.sort-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.sort-tabs a { font-size: 13px; padding: 6px 12px; border-radius: 9px; color: var(--muted); font-weight: 600; }
.sort-tabs a.on { background: var(--pine-700); color: #fff; }
.sort-tabs a:hover:not(.on) { background: var(--paper); color: var(--ink); }
.subcats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.subcats a { background: var(--paper); border: 1px solid var(--line); padding: 6px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; }
.subcats a:hover { border-color: var(--pine-500); color: var(--pine-700); }
.seo-text { margin-top: 36px; font-size: 14.5px; color: var(--ink-2); line-height: 2.1; }
.filter-toggle { display: none; }

/* صفحه محصول */
.pd { display: grid; grid-template-columns: 1fr 1.1fr 320px; gap: 28px; align-items: start; }
.gallery .main { aspect-ratio: 1; border-radius: var(--radius-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line-2); }
.gallery .main img { width: 100%; height: 100%; object-fit: contain; }
.gallery .thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery .thumbs button { width: 68px; height: 68px; border-radius: 11px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--paper); }
.gallery .thumbs button.on { border-color: var(--pine-600); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-info h1 { font-size: 24px; line-height: 1.6; margin-bottom: 4px; }
.pd-info .en { color: var(--muted); font-size: 14px; direction: ltr; text-align: right; margin-bottom: 12px; }
.pd-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.pd-meta a { color: var(--pine-600); font-weight: 600; }
.pd-short { font-size: 15px; color: var(--ink-2); line-height: 2; }
.specs-mini { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 6px; }
.specs-mini li { display: flex; gap: 8px; font-size: 14px; }
.specs-mini li span { color: var(--muted); min-width: 110px; }
.buy-box { position: sticky; top: 140px; }
.buy-box .price b { font-size: 26px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 16px; }
.variants label { cursor: pointer; }
.variants input { display: none; }
.variants span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 600; transition: .15s; }
.variants input:checked + span { border-color: var(--pine-600); background: var(--pine-50); color: var(--pine-700); }
.variants input:disabled + span { opacity: .4; text-decoration: line-through; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: var(--paper); }
.qty button { width: 40px; height: 44px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: var(--pine-700); }
.qty button:hover { background: var(--pine-50); }
.qty input { width: 46px; border: 0; text-align: center; padding: 0; min-height: 44px; border-radius: 0; font-weight: 700; }
.qty input:focus { box-shadow: none; }
.buy-perks { list-style: none; padding: 0; margin: 16px 0 0; font-size: 13px; color: var(--ink-2); display: grid; gap: 8px; }
.buy-perks li { display: flex; gap: 8px; align-items: center; }
.buy-perks .ic { color: var(--pine-500); }
.rx-note { background: var(--purple-100); color: #4b2f88; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; display: flex; gap: 10px; margin-bottom: 14px; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; }
.tabs button, .tabs a { background: none; border: 0; padding: 12px 16px; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs .on { color: var(--pine-700); border-color: var(--pine-600); }
.prose { font-size: 15px; line-height: 2.15; color: var(--ink-2); }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.4em; }
.prose a { color: var(--pine-600); text-decoration: underline; text-underline-offset: 4px; }
.prose img { border-radius: var(--radius); margin: 1em 0; }
.prose ul, .prose ol { padding-right: 22px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.spec-table td:first-child { color: var(--muted); width: 34%; background: var(--cream); }
.review { padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.review .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.review .who b { color: var(--ink); font-size: 14px; }
.review .reply { background: var(--pine-50); border-radius: 10px; padding: 10px 14px; font-size: 13.5px; margin-top: 8px; }
.faq details { border: 1px solid var(--line-2); border-radius: 12px; padding: 0 16px; margin-bottom: 8px; background: var(--paper); }
.faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { color: var(--ink-2); font-size: 14px; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rating-input input { display: none; }
.rating-input label { cursor: pointer; color: #d9d2c3; }
.rating-input label:hover, .rating-input label:hover ~ label, .rating-input input:checked ~ label { color: #e6a417; }
.rating-input label svg { fill: currentColor; }

/* سبد و تسویه */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 24px; align-items: start; }
.cart-item { display: grid; grid-template-columns: 88px 1fr auto; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line-2); align-items: center; }
.cart-item:last-child { border-bottom: 0; }
.cart-item .img { width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: var(--cream); }
.cart-item .img img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cart-item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.summary-row { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; }
.summary-row.total { font-size: 17px; font-weight: 800; border-top: 1px dashed var(--line); margin-top: 8px; padding-top: 14px; }
.summary-row.save { color: var(--coral-600); font-weight: 600; }
.sticky-col { position: sticky; top: 140px; }
.steps { display: flex; gap: 8px; margin: 18px 0 22px; align-items: center; }
.steps .step { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.steps .step i { width: 28px; height: 28px; border-radius: 50%; background: var(--line); color: var(--ink-2); display: grid; place-items: center; font-style: normal; font-size: 13px; }
.steps .step.on { color: var(--pine-700); }
.steps .step.on i { background: var(--pine-700); color: #fff; }
.steps .step.done i { background: var(--pine-100); color: var(--pine-700); }
.steps .bar { flex: 1; height: 2px; background: var(--line); max-width: 80px; }
.choice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: 10px; background: var(--paper); transition: .15s; }
.choice:hover { border-color: var(--pine-200); }
.choice:has(input:checked) { border-color: var(--pine-600); background: var(--pine-50); }
.choice input { margin-top: 5px; }
.choice .grow b { display: block; font-size: 14.5px; }
.choice .grow small { color: var(--muted); }
.upload-zone { border: 2px dashed var(--pine-200); border-radius: 14px; padding: 24px; text-align: center; background: var(--pine-50); cursor: pointer; display: block; transition: .15s; }
.upload-zone:hover, .upload-zone.drag { border-color: var(--pine-500); background: var(--pine-100); }
.upload-zone .ic { margin: 0 auto 8px; color: var(--pine-500); }
.free-ship { background: var(--pine-50); border-radius: 12px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 14px; }

/* حساب کاربری */
.account { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; margin-top: 24px; }
.acc-side { position: sticky; top: 140px; }
.acc-user { padding: 20px; display: flex; gap: 12px; align-items: center; border-bottom: 1px solid var(--line-2); }
.avatar { width: 48px; height: 48px; border-radius: 14px; background: var(--pine-100); color: var(--pine-700); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex-shrink: 0; }
.acc-menu { padding: 8px; }
.acc-menu a, .acc-menu button { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); width: 100%; background: none; border: 0; cursor: pointer; text-align: right; }
.acc-menu a:hover, .acc-menu button:hover { background: var(--cream); }
.acc-menu a.on { background: var(--pine-50); color: var(--pine-700); }
.acc-menu .ic { color: var(--pine-500); }
.stat { padding: 18px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line-2); }
.stat small { color: var(--muted); font-weight: 600; display: flex; gap: 6px; align-items: center; }
.stat b { font-size: 22px; display: block; margin-top: 4px; }
.wallet-hero { background: var(--pine-800); color: #fff; border-radius: var(--radius-lg); padding: 28px; position: relative; overflow: hidden; }
.wallet-hero .amount { font-size: 36px; font-weight: 800; line-height: 1.3; }
.wallet-hero .cur { color: #cfe7de; }
.wallet-hero::after { content: ""; position: absolute; left: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 36px solid rgba(255,255,255,.06); }
.credit-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line-2); gap: 10px; }
.credit-row:last-child { border-bottom: 0; }
.countdown { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 99px; background: var(--pine-100); color: var(--pine-700); white-space: nowrap; }
.countdown.warn { background: var(--amber-100); color: var(--amber); }
.countdown.danger { background: var(--red-100); color: var(--red); }
.ref-link { display: flex; gap: 8px; background: var(--cream); border: 1px dashed var(--pine-200); border-radius: 12px; padding: 6px 6px 6px 6px; align-items: center; }
.ref-link input { border: 0; background: transparent; direction: ltr; font-weight: 600; min-height: 38px; }
.ref-link input:focus { box-shadow: none; }
.track { display: flex; justify-content: space-between; position: relative; margin: 10px 0 6px; }
.track::before { content: ""; position: absolute; top: 15px; right: 8%; left: 8%; height: 3px; background: var(--line); }
.track .bar-fill { position: absolute; top: 15px; right: 8%; height: 3px; background: var(--pine-600); transition: width .5s; }
.track .st { text-align: center; position: relative; z-index: 1; flex: 1; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.track .st i { width: 32px; height: 32px; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); display: grid; place-items: center; margin: 0 auto 6px; font-style: normal; }
.track .st.on { color: var(--pine-700); }
.track .st.on i { border-color: var(--pine-600); background: var(--pine-600); color: #fff; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; }
.msg.me { background: var(--paper); border: 1px solid var(--line-2); margin-inline-start: auto; border-top-left-radius: 4px; }
.msg.them { background: var(--pine-50); border: 1px solid var(--pine-100); border-top-right-radius: 4px; }
.msg .meta { font-size: 12px; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; }
.msg.internal { background: var(--amber-100); border: 1px dashed #e9cf8f; }

/* ورود */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 430px; padding: 34px; }
.auth-card h1 { font-size: 22px; }
.otp-input { text-align: center; letter-spacing: 12px; font-size: 24px !important; font-weight: 800; direction: ltr; }

/* درگاه آزمایشی */
.gw { max-width: 460px; margin: 40px auto; }
.gw-head { background: #1d3557; color: #fff; padding: 20px 24px; border-radius: var(--radius) var(--radius) 0 0; display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 1100px) {
  .pd { grid-template-columns: 1fr 1fr; }
  .buy-box { grid-column: 1 / -1; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .club { grid-template-columns: 1fr 1fr; }
  .club > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .header-main { flex-wrap: wrap; gap: 10px; min-height: 64px; padding: 10px 0; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input { height: 44px; }
  .nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .hero-slide { min-height: 280px; padding: 28px; }
  .hero-slide h1, .hero-slide h2 { font-size: 26px; }
  .hero-art { width: 40%; left: 10px; }
  .perks { grid-template-columns: 1fr 1fr; }
  .listing { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 120; background: rgba(10,25,20,.45); display: none; padding: 0; }
  .filters.open { display: block; }
  .filters > .card { position: absolute; bottom: 0; inset-inline: 0; max-height: 82vh; overflow-y: auto; border-radius: 22px 22px 0 0; }
  .filter-toggle { display: inline-flex; }
  .cart-layout, .account { grid-template-columns: 1fr; }
  .acc-side { position: static; }
  .acc-menu { display: flex; overflow-x: auto; gap: 4px; }
  .acc-menu a, .acc-menu button { white-space: nowrap; width: auto; }
  .acc-user { display: none; }
  .sticky-col { position: static; }
  .posts { grid-template-columns: 1fr 1fr; }
  .mid-banners { grid-template-columns: 1fr; }
  .hbtn .lbl { display: none; }
  .topbar .hide-m { display: none; }
  body.store { padding-bottom: 72px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; inset-inline: 0; z-index: 90; background: var(--paper); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); padding: 4px; position: relative; }
  .bottom-nav a.on { color: var(--pine-700); }
  .bottom-nav .badge { position: absolute; top: 0; right: calc(50% - 20px); background: var(--coral); color: #fff; font-size: 10px; min-width: 17px; height: 17px; border-radius: 99px; display: grid; place-items: center; font-weight: 800; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .logo-text small, .hide-sm { display: none !important; }
  .logo-text b { font-size: 15px; }
  .header-actions { gap: 6px; }
  .hbtn { padding: 9px 11px; }
  .logo-mark { width: 38px; height: 38px; }
  .hero-side { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero-slide h1, .hero-slide h2, .hero-slide p { max-width: none; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .products.row-scroll { grid-auto-columns: 46%; }
  .pcard { padding: 9px; }
  .pcard h3 { font-size: 13px; }
  .price b { font-size: 15px; }
  .add-btn { width: 36px; height: 36px; }
  .pd { grid-template-columns: 1fr; }
  .pd-info h1 { font-size: 20px; }
  .cart-item { grid-template-columns: 70px 1fr; padding: 14px; }
  .cart-item .img { width: 70px; height: 70px; }
  .cart-item .side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .posts { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr 1fr; gap: 8px; }
  .perk { padding: 10px; gap: 8px; }
  .perk .ic-box { width: 36px; height: 36px; }
  .club { grid-template-columns: 1fr; padding: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .section { margin: 30px 0; }
  .section-head h2 { font-size: 18px; }
  .auth-card { padding: 24px; }
  .steps .step span { display: none; }
  .wallet-hero .amount { font-size: 28px; }
}
