/* =========================================================
   نسخه دسکتاپ — طراحی ادیتوریال و حرفه‌ای (کاملاً جدا از موبایل)
   ========================================================= */
.d-top { background: var(--ink); color: #f4e6cf; font-size: 13px; text-align: center; padding: 7px; letter-spacing: .2px; }
.d-header { position: sticky; top: 0; z-index: 100; background: rgba(248,244,238,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.d-wrap { max-width: 1360px; margin: 0 auto; padding: 0 32px; }
.d-head-row { display: flex; align-items: center; gap: 28px; height: 78px; }
.d-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 30px; line-height: 1; white-space: nowrap; }
.d-logo .sun { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd98a, var(--sun) 60%, var(--sun-deep)); box-shadow: 0 0 0 6px var(--sun-soft), 0 8px 20px -6px var(--sun-deep); display: grid; place-items: center; font-size: 22px; color: #7a4300; }
.d-logo small { display: block; font-family: var(--font); font-size: 11px; color: var(--muted); font-weight: 500; margin-top: 4px; }
.d-search { flex: 1; max-width: 560px; position: relative; }
.d-search input { width: 100%; height: 48px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; padding: 0 48px 0 16px; outline: none; transition: .2s; }
.d-search input:focus { border-color: var(--sun); box-shadow: 0 0 0 4px var(--sun-soft); }
.d-search .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.d-actions { display: flex; gap: 8px; margin-right: auto; }
.d-act { position: relative; height: 48px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; transition: .2s; }
.d-act:hover { border-color: var(--ink); }
.d-act.cart { background: var(--ink); color: #fff; border-color: var(--ink); }
.d-act .cnt { position: absolute; top: -7px; left: -7px; background: var(--sun); color: #2a1700; font-size: 12px; font-weight: 800; min-width: 22px; height: 22px; border-radius: 11px; display: grid; place-items: center; border: 2px solid var(--paper); }

.d-nav { display: flex; gap: 4px; height: 50px; align-items: center; }
.d-nav a { padding: 8px 16px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--ink-2); position: relative; transition: .2s; }
.d-nav a:hover, .d-nav a.on { color: var(--ink); background: #fff; }
.d-nav a.on::after { content: ""; position: absolute; bottom: -7px; right: 30%; left: 30%; height: 3px; border-radius: 3px; background: var(--sun); }
.d-nav .sale-link { color: var(--sale); margin-right: auto; }

/* Hero */
.d-hero { display: grid; grid-template-columns: 2.1fr 1fr; gap: 20px; margin: 28px auto 10px; }
.d-slider { position: relative; border-radius: 28px; overflow: hidden; height: 470px; background: #2b1d14; box-shadow: var(--shadow-lg); }
.d-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; display: flex; align-items: center; }
.d-slide.on { opacity: 1; }
.d-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.d-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(20,12,4,.82) 0%, rgba(20,12,4,.35) 55%, transparent 100%); }
.d-slide-text { position: relative; z-index: 2; color: #fff; padding: 0 56px; max-width: 560px; }
.d-slide-text .kick { display: inline-block; background: var(--sun); color: #2a1700; font-weight: 800; padding: 4px 14px; border-radius: 30px; font-size: 13px; }
.d-slide-text h2 { font-family: var(--display); font-size: 58px; font-weight: 400; line-height: 1.15; margin: 14px 0 8px; }
.d-slide-text p { font-size: 18px; opacity: .9; margin: 0 0 24px; }
.d-dots { position: absolute; bottom: 22px; right: 56px; display: flex; gap: 8px; z-index: 3; }
.d-dots button { width: 10px; height: 10px; border-radius: 10px; border: 0; background: rgba(255,255,255,.45); transition: .3s; padding: 0; }
.d-dots button.on { width: 34px; background: var(--sun); }
.d-side-promos { display: grid; grid-template-rows: 1fr 1fr; gap: 20px; }
.d-promo { border-radius: 24px; padding: 26px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; min-height: 0; }
.d-promo.a { background: linear-gradient(135deg, #e5383b, #b31d2f); }
.d-promo.b { background: linear-gradient(135deg, #1f2a52, #0e1531); }
.d-promo b { font-family: var(--display); font-size: 34px; font-weight: 400; line-height: 1.1; }
.d-promo span { opacity: .85; font-size: 14px; }
.d-promo .big-ico { position: absolute; top: 10px; left: 18px; font-size: 92px; opacity: .25; transform: rotate(-12deg); }

/* دسته‌بندی‌ها */
.d-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; margin: 34px 0; }
.d-cat { background: #fff; border-radius: 20px; padding: 20px 10px; text-align: center; transition: .25s; border: 1.5px solid transparent; cursor: pointer; }
.d-cat:hover, .d-cat.on { transform: translateY(-4px); border-color: var(--sun); box-shadow: var(--shadow); }
.d-cat .ic { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--sun-soft); display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.d-cat .ic img { width: 100%; height: 100%; object-fit: cover; }
.d-cat b { font-size: 15px; }

/* عنوان بخش */
.d-sec-head { display: flex; align-items: end; justify-content: space-between; margin: 46px 0 18px; }
.d-sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 36px; margin: 0; line-height: 1; }
.d-sec-head h2 em { font-style: normal; color: var(--sun-deep); }
.d-sec-head p { margin: 6px 0 0; color: var(--muted); }

/* نوار شگفت‌انگیز */
.d-deals { background: linear-gradient(135deg, #e5383b 0%, #a3152a 100%); border-radius: 28px; padding: 26px; display: grid; grid-template-columns: 220px 1fr; gap: 22px; align-items: center; }
.d-deals-intro { color: #fff; text-align: center; }
.d-deals-intro b { font-family: var(--display); font-weight: 400; font-size: 40px; line-height: 1.1; display: block; }
.d-deals-intro .pct { font-size: 70px; line-height: 1; margin: 6px 0; }
.d-row-scroll { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.d-row-scroll > * { flex: 0 0 230px; scroll-snap-align: start; }

/* شاپ: سایدبار + گرید */
.d-shop { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.d-filters { position: sticky; top: 150px; background: #fff; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); max-height: calc(100vh - 170px); overflow: auto; }
.d-filters h4 { margin: 14px 0 8px; font-size: 14px; display: flex; justify-content: space-between; }
.d-filters h4:first-child { margin-top: 0; }
.f-list { display: flex; flex-wrap: wrap; gap: 6px; }
.f-opt { border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 5px 11px; font-size: 13px; transition: .15s; }
.f-opt.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.f-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1.5px var(--line); padding: 0; }
.f-color.on { box-shadow: 0 0 0 2.5px var(--ink); }
.f-price { display: flex; gap: 6px; }
.f-price input { width: 50%; padding: 8px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 13px; }
.f-switch { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; font-weight: 600; font-size: 14px; }
.d-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.d-toolbar .ttl { font-weight: 800; margin-left: 10px; }
.d-sort { border: 0; background: none; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.d-sort.on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -4px rgba(0,0,0,.2); }
.d-toolbar .count { margin-right: auto; color: var(--muted); font-size: 14px; }
.d-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

/* کارت محصول دسکتاپ */
.dc { background: #fff; border-radius: 22px; overflow: hidden; transition: transform .3s, box-shadow .3s; cursor: pointer; position: relative; }
.dc:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.dc-media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: #f1ebe2; }
.dc-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity .5s, transform .8s; position: absolute; inset: 0; }
.dc-media img.alt { opacity: 0; }
.dc:hover .dc-media img.alt { opacity: 1; }
.dc:hover .dc-media img.main { transform: scale(1.05); }
.dc-badges { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.dc-new { background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 20px; }
.dc-fav { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 17px; transition: .2s; }
.dc-fav.on { color: var(--sale); }
.dc-quick { position: absolute; bottom: 12px; left: 12px; right: 12px; z-index: 2; transform: translateY(70px); transition: .3s; }
.dc:hover .dc-quick { transform: none; }
.dc-body { padding: 14px 16px 16px; }
.dc-type { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; }
.dc-title { font-weight: 700; margin: 2px 0 8px; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dc-foot { display: flex; align-items: end; justify-content: space-between; }
.dc-colors { display: flex; gap: 3px; }
.dc-colors .dot { width: 13px; height: 13px; }

/* اعتماد */
.d-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 56px 0; }
.d-trust div { background: #fff; border-radius: 20px; padding: 22px; display: flex; gap: 14px; align-items: center; }
.d-trust i { font-style: normal; font-size: 34px; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--sun-soft); flex-shrink: 0; }
.d-trust b { display: block; }
.d-trust span { font-size: 13px; color: var(--muted); }

.d-footer { background: var(--ink); color: #d9cfc2; margin-top: 60px; padding: 50px 0 24px; }
.d-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; }
.d-footer h4 { color: #fff; margin: 0 0 12px; }
.d-footer a { display: block; padding: 3px 0; opacity: .8; }
.d-footer a:hover { opacity: 1; color: var(--sun); }
.d-footer .copy { border-top: 1px solid #3a322a; margin-top: 30px; padding-top: 18px; font-size: 13px; text-align: center; opacity: .6; }

/* جزئیات محصول دسکتاپ */
.pd-desk { width: min(1180px, 96vw); max-width: none; padding: 0; border-radius: 28px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1fr; max-height: 92vh; }
.pd-gal { background: #f1ebe2; display: grid; grid-template-columns: 82px 1fr; gap: 12px; padding: 18px; position: sticky; top: 0; max-height: 92vh; }
.pd-thumbs { display: flex; flex-direction: column; gap: 10px; overflow: auto; }
.pd-thumbs img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 12px; cursor: pointer; opacity: .55; transition: .2s; border: 2px solid transparent; }
.pd-thumbs img.on { opacity: 1; border-color: var(--sun); }
.pd-main { position: relative; border-radius: 18px; overflow: hidden; cursor: zoom-in; }
.pd-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.pd-info { padding: 30px 34px; overflow: auto; max-height: 92vh; }
.pd-crumb { font-size: 13px; color: var(--muted); }
.pd-title { font-size: 28px; margin: 6px 0 4px; line-height: 1.4; }
.pd-code { font-size: 13px; color: var(--muted); }
.pd-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0; }
.pd-price-box { background: var(--paper); border-radius: 18px; padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; margin: 16px 0; }
.pd-price-box .price-new { font-size: 28px; }
.pd-price-box .price-old { font-size: 16px; }
.pd-label { font-weight: 700; margin: 18px 0 8px; display: flex; justify-content: space-between; font-size: 14.5px; }
.pd-colors { display: flex; gap: 10px; flex-wrap: wrap; }
.pd-color { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 30px; padding: 5px 14px 5px 6px; background: #fff; font-size: 13.5px; }
.pd-color .dot { width: 24px; height: 24px; }
.pd-color.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.pd-sizes { display: flex; gap: 8px; flex-wrap: wrap; }
.pd-size { min-width: 54px; height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; position: relative; }
.pd-size.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-size:disabled { opacity: .35; text-decoration: line-through; }
.pd-size .low { position: absolute; top: -8px; left: -6px; background: var(--warn); color: #fff; font-size: 10px; border-radius: 8px; padding: 0 5px; }
.pd-buy { display: flex; gap: 10px; margin: 22px 0 14px; }
.pd-buy .btn-sun { flex: 1; height: 54px; font-size: 16px; }
.pd-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 14px 0; }
.pd-feats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; font-size: 13px; }
.pd-feats b { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.pd-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.pd-tabs button { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; }
.pd-tabs button.on { color: var(--ink); border-color: var(--sun); }
.pd-tab { padding: 14px 0; font-size: 14.5px; }
.rv { border-bottom: 1px solid var(--line); padding: 10px 0; }
.rv .stars { color: var(--sun); }
.rv .reply { background: var(--paper); border-radius: 10px; padding: 8px 12px; font-size: 13px; margin-top: 6px; }
