/* ============================================================
   گاراژ موبایل — استایل صفحات جدید (v2): هیرو صفحات داخلی، ویترین
   برند، وی‌پی‌ان، فوتر چندستونه، گالری، فرم‌های AJAX، پنل مدیریت
   ============================================================ */

/* ---------- هیرو صفحات داخلی ---------- */
.page-hero { padding: 46px 0 34px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--card), transparent); }
.page-hero .crumbs { font-size: 12.5px; color: var(--muted-foreground); margin-bottom: 14px; }
.page-hero .crumbs a:hover { color: var(--gold); }
.page-hero .crumb-sep { opacity: .5; margin: 0 4px; }
.page-hero h1 { margin: 0 0 8px; font-size: 30px; }
.page-hero h1 .gold { color: var(--gold); }
.page-hero p { margin: 0; max-width: 640px; color: var(--muted-foreground); font-size: 14px; line-height: 1.9; }

.center-row { text-align: center; margin-top: 24px; }
.section-divider { border: 0; border-top: 1px solid var(--border); margin: 8px 0 0; }
.cat-photo-icon { display: grid; place-items: center; }
.cat-photo-icon .g-ico svg { width: 34px; height: 34px; color: var(--gold); }
.benefit-ico, .why-ico { display: block; margin-bottom: 8px; }
.benefit-ico svg, .why-ico svg { width: 22px; height: 22px; color: var(--gold); }
.why-ico { display: inline-flex; margin-inline-end: 8px; vertical-align: middle; }
.why-list li { display: flex; align-items: center; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.why-list-wide { max-width: 760px; margin-inline: auto; display: grid; gap: 4px; }

/* ---------- اسکرولر با فلش ---------- */
.scroller-wrap { position: relative; }
/* دقیقاً مطابق سایت اصلی HTML — این کلاس هم رو ul.products (صفحه‌ی اصلی/فروش) میاد و اسکرول افقی می‌سازه */
ul.products.product-scroller { display: flex !important; flex-wrap: nowrap !important; gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 4px 6px 10px !important; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: 6px; scrollbar-width: none; -ms-overflow-style: none; }
ul.products.product-scroller::-webkit-scrollbar { display: none; height: 0; }
ul.products.product-scroller .product-card { min-width: 210px; flex-shrink: 0; scroll-snap-align: start; }
.scroller-arrow { position: absolute; top: 40%; width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--border); display: grid; place-items: center; font-size: 18px; z-index: 4; transition: .2s; }
.scroller-arrow:hover { border-color: var(--gold); color: var(--gold); }
.scroller-arrow.prev { right: -6px; } .scroller-arrow.next { left: -6px; }
@media (max-width: 700px) { .scroller-arrow { display: none; } ul.products.product-scroller { gap: 14px; } }

/* ---------- بنرها ---------- */
.banner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .banner-grid { grid-template-columns: 1fr; } }
.banner-card { position: relative; border-radius: 22px; overflow: hidden; min-height: 300px; background: var(--card); border: 1px solid var(--border); }
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.2)); }
.banner-body { position: relative; z-index: 2; padding: 26px; color: #fff; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; }
.banner-icon { width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); display: grid; place-items: center; color: #14110a; margin-bottom: 4px; }
.banner-icon svg { width: 22px; height: 22px; }
.banner-body h3 { margin: 0; font-size: 20px; }
.banner-body p { margin: 0 0 8px; font-size: 13px; opacity: .85; }

/* ---------- وی‌پی‌ان ---------- */
.vpn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.vpn-card { position: relative; overflow: hidden; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 26px 22px 22px; text-align: center; transition: .3s; }
.vpn-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 55% at 50% 0%, rgba(95,180,255,.14), transparent 70%); }
.vpn-card.is-featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 18px 34px -10px rgba(0,0,0,.4); }
.vpn-card:hover { transform: translateY(-4px); border-color: #5fb4ff; }
.vpn-logo { position: relative; z-index: 1; display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 16px; background: rgba(95,180,255,.14); }
.vpn-logo .g-ico svg { width: 26px; height: 26px; color: #5fb4ff; }
.vpn-actions { position: relative; z-index: 1; display: flex; gap: 8px; }
.vpn-badge { position: absolute; top: -11px; left: 50%; translate: -50% 0; z-index: 2; display: inline-flex; align-items: center; gap: 4px; background: var(--gold); color: #14110a; font-size: 11px; font-weight: 800; padding: 4px 14px; border-radius: 999px; }
.vpn-badge .g-ico svg { width: 11px; height: 11px; }
.vpn-card h3 { position: relative; z-index: 1; margin: 0 0 6px; font-size: 16px; }
.vpn-card p { position: relative; z-index: 1; margin: 0 0 14px; font-size: 12.5px; color: var(--muted-foreground); min-height: 32px; }
.vpn-price { position: relative; z-index: 1; font-size: 20px; font-weight: 900; color: var(--gold); margin-bottom: 14px; }
.vpn-price del { color: var(--muted-foreground); font-size: 12px; font-weight: 400; }

/* ---------- گالری ---------- */
.gallery-mosaic { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; gap: 12px; }
.gallery-mosaic .gm-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gallery-mosaic .gm-item { position: relative; border-radius: 16px; overflow: hidden; }
.gallery-mosaic .gm-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-mosaic .gm-item figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 8px 12px; font-size: 11.5px; color: #fff; background: linear-gradient(0deg, rgba(0,0,0,.75), transparent); }
@media (max-width: 760px) { .gallery-mosaic { grid-template-columns: repeat(2, 1fr); } .gallery-mosaic .gm-item:nth-child(1) { grid-column: span 2; } }

/* ---------- فوتر چندستونه ---------- */
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; padding: 34px 0 10px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col b { display: block; margin-bottom: 10px; font-size: 13.5px; color: var(--gold); }
.footer-brand { display: block; font-size: 18px; font-weight: 900; margin-bottom: 8px; }
.footer-col p { margin: 0 0 8px; font-size: 12.5px; color: var(--muted-foreground); line-height: 1.9; }
.footer-nav { display: grid; gap: 8px; }
.footer-nav a { font-size: 12.5px; color: var(--muted-foreground); }
.footer-nav a:hover { color: var(--gold); }

/* ---------- ویترین برند (فروش موبایل / ساعت) ---------- */
.shop-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 26px; }
.shop-toolbar .tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shop-toolbar .tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; }
.shop-toolbar .tabs button.is-on { background: var(--gold); color: #14110a; border-color: transparent; }
.shop-toolbar .tools { display: flex; gap: 10px; flex-wrap: wrap; }
.tool-search { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.tool-search svg { width: 16px; height: 16px; opacity: .6; }
.tool-search input { background: transparent; border: 0; outline: none; width: 140px; }
.tool-sort select, [data-shop-sort] { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); }
.shop-section { margin-bottom: 40px; }
.shop-section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.shop-section-head h2 { margin: 0; font-size: 18px; }
.shop-count { font-size: 12px; color: var(--muted-foreground); }

/* ---------- کارت محصول: افزوده‌ها ---------- */
.ptag-cond { top: auto; bottom: 10px; right: 10px; background: var(--background); color: var(--gold); border: 1px solid var(--gold); }
.product-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.product-specs span { font-size: 10.5px; padding: 3px 8px; border-radius: 999px; background: var(--background); color: var(--muted-foreground); border: 1px solid var(--border); }
.g-specs { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.g-specs .g-spec { font-size: 12px; padding: 6px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.g-specs .g-spec-cond { color: var(--gold); border-color: var(--gold); }
.g-ask-wa { display: inline-flex; margin-top: 10px; }

/* ---------- فرم‌های AJAX (پیام/تعمیر) ---------- */
.lead-msg { font-size: 12.5px; min-height: 16px; }
.lead-msg.is-ok { color: #5fd48a; }
.lead-msg.is-err { color: #ff8a8a; }
.hp-field { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.cx-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; width: fit-content; }
.cx-status.is-open { background: rgba(95,212,138,.15); color: #5fd48a; }
.cx-status.is-closed { background: rgba(255,138,138,.15); color: #ff8a8a; }
.ct-live { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin: 10px 0 18px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--border); }
.ct-live i { width: 8px; height: 8px; border-radius: 50%; }
.ct-live.is-open i { background: #5fd48a; } .ct-live.is-closed i { background: #ff8a8a; }

.ct-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.ct-channel { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 20px 12px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); text-align: center; }
.ct-channel:hover { border-color: var(--gold); }
.ct-ch-ico svg { width: 24px; height: 24px; color: var(--gold); }
.ct-channel small { color: var(--muted-foreground); font-size: 11.5px; }

.ct-main { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
@media (max-width: 860px) { .ct-main { grid-template-columns: 1fr; } }
.ct-form { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.ct-topic { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; }
.ct-topic.is-on { background: var(--gold); color: #14110a; border-color: transparent; }
.ct-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .ct-fields { grid-template-columns: 1fr; } }
.ct-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ct-info { display: grid; gap: 12px; align-content: start; }
.ct-map { border-radius: 18px; overflow: hidden; border: 1px solid var(--border); height: 220px; }
.ct-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(.9) hue-rotate(180deg); }
html[data-theme="day"] .ct-map iframe { filter: none; }

/* ---------- تخمین‌گر تعمیر: درجه‌ی قطعه + فرم درخواست ---------- */
.rp-grades { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rp-lead { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--border); display: grid; gap: 10px; }
.rp-lead-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 540px) { .rp-lead-row { grid-template-columns: 1fr; } }
.rp-lead input { padding: 11px 14px; border-radius: 10px; background: var(--background); border: 1px solid var(--border); width: 100%; }
.rp-lead-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- باکس وی‌پی‌ان: جمع‌وجور، برچسب «پرطرفدارترین» کامل دیده بشه، قیمت رنگی، واتساپ کوچک + تلگرام بزرگ ---------- */
.vpn-card { padding: 22px 18px 18px; border-radius: 22px; }
.vpn-card.is-featured { padding-top: 48px; border-color: var(--gold); background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 10%, var(--card)), var(--card) 55%); }
.vpn-card .vpn-badge { top: 0; left: 0; right: 0; translate: none; width: 100%; justify-content: center; gap: 6px; padding: 8px 10px; border-radius: 0;
  font-size: 13px; font-weight: 900; letter-spacing: .3px; background: linear-gradient(90deg, var(--gold-2), var(--gold), var(--gold-2)); color: #14110a; box-shadow: 0 6px 16px -6px var(--gold-glow); }
.vpn-card .vpn-badge .g-ico svg { width: 14px; height: 14px; }
.vpn-logo { width: 46px; height: 46px; margin-bottom: 10px; border-radius: 14px; }
.vpn-card h3 { font-size: 15.5px; }
.vpn-card p { margin-bottom: 12px; min-height: 0; line-height: 1.7; }
.vpn-card .vpn-price { --price: #3ddc97; display: flex; align-items: baseline; justify-content: center; gap: 4px; margin: 0 0 14px; padding: 10px 12px; border-radius: 16px;
  font-size: 22px; font-weight: 900; color: var(--price); background: linear-gradient(135deg, rgba(61,220,151,.14), rgba(61,220,151,.03)); border: 1px solid rgba(61,220,151,.4);
  box-shadow: inset 0 0 20px -8px var(--price), 0 8px 20px -12px var(--price); text-shadow: 0 0 14px rgba(61,220,151,.28); }
.vpn-card .vpn-price ins { text-decoration: none; }
.vpn-card .vpn-price bdi, .vpn-card .vpn-price .woocommerce-Price-currencySymbol { font-size: .5em; font-weight: 700; color: var(--price); opacity: .8; }
html[data-theme="day"] .vpn-card .vpn-price { --price: #0b7a4b; text-shadow: none; background: linear-gradient(135deg, rgba(11,122,75,.10), rgba(11,122,75,.02)); border-color: rgba(11,122,75,.32); }
.vpn-actions { align-items: center; justify-content: space-between; gap: 10px; }
.vpn-actions .add-cart-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; height: 38px; border-radius: 999px; font-size: 12px; background: #25d366; color: #fff !important; box-shadow: 0 6px 16px -8px #25d366; }
html[data-theme="day"] .vpn-actions .add-cart-btn { background: #1ea952; }
.vpn-actions .add-cart-btn .g-ico svg { width: 15px; height: 15px; }
.vpn-actions .add-cart-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.vpn-actions .pask { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 50%; border: 0; color: #fff; background: linear-gradient(135deg, #37bbfe, #1a8fd8); box-shadow: 0 8px 20px -8px #29a9eb; }
.vpn-actions .pask svg { width: 30px; height: 30px; }
.vpn-actions .pask:hover { transform: scale(1.08) rotate(-6deg); box-shadow: 0 10px 26px -6px #29a9eb; color: #fff; }

/* ---------- باکس وی‌پی‌ان: تو حالت روز دکمه‌ی خرید سبز بمونه (نه طلایی) ---------- */
html[data-theme="day"] .vpn-actions .add-cart-btn { background-image: none; background-color: #1ea952; color: #fff !important; }

/* ============================================================
   رضایت مشتریان: کارت‌های عمودی جمع‌وجور (عکس/ویدیو) با اسکرول افقی
   ============================================================ */
.rv-demo { margin: -10px 0 16px; padding: 9px 14px; text-align: center; font-size: 12.5px; border-radius: 12px; border: 1px dashed var(--gold); color: var(--gold); background: color-mix(in srgb, var(--gold) 8%, transparent); }
.rv-wrap { position: relative; }
.rv-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 12px; -webkit-overflow-scrolling: touch; }
.rv-track::-webkit-scrollbar { display: none; }
.rv-card { position: relative; flex: 0 0 auto; width: 214px; aspect-ratio: 3 / 4.3; padding: 0; overflow: hidden; scroll-snap-align: start; text-align: right; color: #fff; font: inherit;
  border-radius: 22px; border: 1px solid var(--border); background: var(--card); transition: transform .3s ease, border-color .3s, box-shadow .3s; }
button.rv-card { cursor: pointer; }
button.rv-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 20px 38px -14px rgba(0,0,0,.5), 0 0 30px -10px var(--gold-glow); }
.rv-media { position: absolute; inset: 0; display: block; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 22%, #1d1c19), #14130f); }
.rv-media img, .rv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rv-ph { position: absolute; inset: 0; display: grid; place-items: center; color: color-mix(in srgb, var(--gold) 70%, transparent); }
.rv-ph svg { width: 44px; height: 44px; }
.rv-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.35) 42%, transparent 68%); pointer-events: none; }
.rv-play { position: absolute; top: 12px; left: 12px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #14110a; box-shadow: 0 0 0 6px rgba(255,255,255,.18); animation: rv-pulse 2s ease-out infinite; }
.rv-play svg { width: 16px; height: 16px; margin-inline-start: 2px; }
@keyframes rv-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.5); } 100% { box-shadow: 0 0 0 14px rgba(255,255,255,0); } }
.rv-body { position: absolute; inset-inline: 0; bottom: 0; z-index: 2; display: grid; gap: 5px; padding: 14px; }
.rv-stars { font-size: 13px; letter-spacing: 2px; color: #ffcf4d; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.rv-text { font-size: 12.5px; line-height: 1.75; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.rv-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 2px; }
.rv-who b { font-size: 13px; font-weight: 900; }
.rv-who em { font-style: normal; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: rgba(255,255,255,.18); backdrop-filter: blur(4px); }
.rv-arrow { position: absolute; top: 42%; z-index: 5; width: 40px; height: 40px; border-radius: 50%; display: none; place-items: center; font-size: 26px; line-height: 1; padding-bottom: 3px;
  color: var(--foreground); background: var(--card); border: 1px solid var(--gold); box-shadow: 0 8px 20px rgba(0,0,0,.35); transition: .2s; }
.rv-arrow:hover { background: var(--gold); color: #14110a; }
html[data-theme="day"] .rv-arrow:hover { color: #fff; }
.rv-next { left: -14px; } .rv-prev { right: -14px; }
@media (min-width: 900px) { .rv-arrow { display: grid; } .rv-track { gap: 18px; } }
@media (max-width: 520px) { .rv-card { width: 62vw; max-width: 230px; } }

/* ---------- پنجره‌ی نمایش عکس/ویدیو ---------- */
.media-modal { position: fixed; inset: 0; z-index: 250; display: none; }
.media-modal.is-open { display: grid; place-items: center; animation: sp-in .25s ease; }
.mm-overlay { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(4px); }
.mm-box { position: relative; z-index: 1; width: min(92vw, 860px); max-height: 88vh; display: grid; }
.mm-close { position: absolute; top: -46px; left: 0; background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.4); }
.mm-stage { display: grid; place-items: center; border-radius: 18px; overflow: hidden; background: #000; }
.mm-img, .mm-video { max-width: 100%; max-height: 82vh; width: auto; height: auto; display: block; }
.mm-frame { width: min(92vw, 860px); aspect-ratio: 16 / 9; max-height: 82vh; border: 0; }
