/* ============================================================
   گاراژ موبایل — استایل اصلی قالب (تیره/طلایی، راست‌به‌چپ)
   ============================================================ */

:root {
  --radius: 10px;
  --background: #131313;
  --foreground: #f5f3ee;
  --card: #1d1c19;
  --border: #3a362c;
  --muted-foreground: #a7a196;
  --gold: #e8c766;
  --gold-2: #cf9f3f;
  --gold-glow: rgba(232, 199, 102, .55);
  --flip: 0;
}
html[data-theme="day"] {
  --flip: 1;
  --background: #fbf9f4;
  --foreground: #201d15;
  --card: #ffffff;
  --border: #e3ddcc;
  --muted-foreground: #746c58;
  --gold: #8a6a24;
  --gold-2: #c7a355;
  --gold-glow: rgba(138, 106, 36, .35);
}

* { box-sizing: border-box; }
html { direction: rtl; }
body { margin: 0; background: var(--background); color: var(--foreground); font-family: "Vazirmatn", Tahoma, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; margin: 0; padding: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: 0; }

.site-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 20px; }
.section-pad { padding: 40px 0; }
.section-title { text-align: center; margin-bottom: 26px; }
.section-title p { color: var(--gold); font-weight: 700; margin: 0 0 6px; font-size: 13px; }
.section-title h2 { font-size: 26px; margin: 0; }

.btn-gold { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; padding: 12px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; transition: .25s; }
.btn-gold:hover { box-shadow: 0 0 22px var(--gold-glow); }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--gold); color: var(--gold); padding: 11px 24px; border-radius: 999px; font-weight: 800; font-size: 14px; transition: .25s; }
.btn-outline:hover { background: var(--gold); color: #14110a; }

/* ---------- آیکن‌های داخلی ---------- */
.g-ico svg { width: 20px; height: 20px; display: block; }

/* ---------- هدر ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 12, 10, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
html[data-theme="day"] .site-header { background: rgba(251, 249, 244, .92); }
.header-row { height: 68px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; }
.brand-logo, .custom-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand strong { font-size: 16px; font-weight: 900; }
.main-nav { display: none; }
@media (min-width: 900px) { .main-nav { display: flex; justify-content: center; gap: 18px; font-size: 13px; font-weight: 600; } }
.main-nav a:hover { color: var(--gold); }
.main-nav li { position: relative; padding-bottom: 6px; }
.main-nav a { position: relative; display: inline-block; padding-bottom: 6px; }
.main-nav .current-menu-item > a, .main-nav .current_page_item > a, .main-nav .current-menu-parent > a { color: var(--gold); }
.main-nav .current-menu-item > a::after, .main-nav .current_page_item > a::after, .main-nav .current-menu-parent > a::after {
  content: ""; position: absolute; right: 0; left: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2)); box-shadow: 0 0 8px color-mix(in srgb, var(--gold) 60%, transparent);
}
.mobile-nav .current-menu-item > a, .mobile-nav .current_page_item > a { color: var(--gold); }
/* اگه منو از «ظاهر ← منوها» انتخاب شده باشه، خروجی وردپرس داخل <ul><li> می‌پیچه؛
   این چند خط همون رفتار ردیفی/افقی main-nav رو برای اون حالت هم تضمین می‌کنه. */
.main-nav ul { display: flex; justify-content: center; align-items: center; gap: 18px; list-style: none; margin: 0; padding: 0; }
.main-nav li { list-style: none; margin: 0; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--foreground); transition: .25s; }
html[data-theme="day"] .icon-btn { background: rgba(0,0,0,.02); }
.icon-btn:hover { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 14px -2px var(--gold); transform: translateY(-1px); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; }
@media (min-width: 900px) { .menu-button { display: none; } }
.mobile-nav { display: none; flex-direction: column; padding: 10px 20px 18px; border-top: 1px solid var(--border); }
.mobile-nav.is-open { display: flex; }
.mobile-nav a { display: block; padding: 10px 0; border-bottom: 1px solid var(--border); }
.mobile-nav ul { list-style: none; margin: 0; padding: 0; }
.mobile-nav li { list-style: none; margin: 0; }
@media (min-width: 900px) { .mobile-nav { display: none !important; } }

/* ---------- کلید روز/شب ---------- */
.theme-toggle { position: relative; direction: ltr; width: 48px; height: 26px; border-radius: 999px; overflow: hidden; background: linear-gradient(100deg, #10163a, #2b2f6b); border: 1px solid rgba(0,0,0,.25); }
html[data-theme="day"] .theme-toggle { background: linear-gradient(100deg, #5bb8ff, #b3e4ff); }
.theme-toggle .tt-knob { position: absolute; top: 3px; left: calc(100% - 23px); width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 36% 32%, #fff, #cfd6ea 60%, #9aa4c4); transition: left .5s; display: grid; place-items: center; }
html[data-theme="day"] .theme-toggle .tt-knob { left: 3px; background: radial-gradient(circle at 36% 32%, #fffde8, #ffd54a 60%, #ff9f0a); }
.theme-toggle .tt-knob svg { position: absolute; width: 12px; height: 12px; }
.theme-toggle .tt-moon { color: #5a6499; opacity: 1; }
.theme-toggle .tt-sun { color: #a35a00; opacity: 0; }
html[data-theme="day"] .theme-toggle .tt-moon { opacity: 0; }
html[data-theme="day"] .theme-toggle .tt-sun { opacity: 1; }
.theme-toggle .tt-stars, .theme-toggle .tt-cloud { display: none; }

/* ---------- هیرو ---------- */
.hero-wrap { position: relative; }
.hero { position: relative; height: 66vh; min-height: 420px; max-height: 640px; overflow: hidden; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s ease; }
.hero[data-mode="night"] .hero-photo.night, .hero[data-mode="day"] .hero-photo.day { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,.15) 50%); }
/* حالت روز: سایه‌ی روی عکس هیرو کم‌رنگ‌تره تا خود عکس واضح‌تر دیده بشه */
html[data-theme="day"] .hero-shade { background: linear-gradient(0deg, rgba(0,0,0,.45), rgba(0,0,0,.05) 55%); }
.hero-sky { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.sky-body { position: absolute; top: 24px; right: 5%; width: 46px; height: 46px; transition: transform 1.4s ease, opacity 1s ease; }
.sky-body i { position: absolute; display: block; }
.sky-sun { transform: translateY(160px); opacity: 0; }
.hero[data-mode="day"] .sky-sun { transform: none; opacity: 1; }
.sun-core { inset: 18%; border-radius: 50%; background: radial-gradient(circle at 40% 36%, #fffde8, #ffb62e 70%, #ff8a00); box-shadow: 0 0 14px 4px rgba(255,196,70,.8); }
.sun-rays { inset: -16%; border-radius: 50%; background: repeating-conic-gradient(from 0deg, rgba(255,220,110,.9) 0 5deg, transparent 5deg 22.5deg); -webkit-mask: radial-gradient(circle closest-side, transparent 50%, #000 55%, #000 76%, transparent 100%); }
.sky-moon { transform: translateY(160px); opacity: 0; }
.hero[data-mode="night"] .sky-moon { transform: none; opacity: 1; }
.moon-face { inset: 14%; border-radius: 50%; background: radial-gradient(circle at 34% 30%, #fff, #cfd6ea 60%, #9aa4c4); box-shadow: 0 0 14px 3px rgba(190,205,255,.6); }
.moon-halo { inset: -45%; border-radius: 50%; background: radial-gradient(circle closest-side, rgba(150,175,255,.35), transparent); }
.sky-stars { position: absolute; top: 0; right: 0; width: 46%; height: 60%; opacity: 0; transition: opacity 1s; }
.hero[data-mode="night"] .sky-stars { opacity: 1; }
.sky-stars i { position: absolute; border-radius: 50%; background: #fff; animation: twinkle 3s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

.hero-bar { position: relative; z-index: 5; margin: -46px auto 0; width: min(920px, calc(100% - 32px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 26px; border-radius: 24px; background: rgba(15,13,10,.85); backdrop-filter: blur(14px); border: 1px solid var(--gold); box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.hb-text h1 { margin: 0 0 4px; font-size: 30px; font-weight: 900; color: #fff; }
.hb-text p { margin: 0; font-size: 13px; color: var(--muted-foreground); }
.hero-actions { display: flex; gap: 10px; }
@media (max-width: 760px) { .hero-bar { flex-direction: column; align-items: stretch; text-align: center; gap: 12px; } .hb-text h1 { font-size: 24px; } }

/* ---------- نوار امتیازها ---------- */
.benefits-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
@media (max-width: 700px) { .benefits-bar { grid-template-columns: 1fr 1fr; } }
.benefit-card { padding: 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); text-align: center; }
.benefit-card b { display: block; font-size: 13.5px; margin-bottom: 4px; }
.benefit-card span { font-size: 11.5px; color: var(--muted-foreground); }

/* ---------- دسته‌بندی‌ها ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cat-card { display: block; border-radius: 18px; overflow: hidden; background: var(--card); border: 1px solid var(--border); transition: .3s; }
.cat-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.cat-photo { display: block; height: 130px; background-size: cover; background-position: center; }
.cat-card h3 { margin: 12px 14px 2px; font-size: 15px; }
.cat-count { display: block; margin: 0 14px 14px; font-size: 12px; color: var(--muted-foreground); }

/* ---------- کارت محصول (لیست/دسته‌بندی) ---------- */
ul.products { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; padding: 0 !important; margin: 0 !important; }
ul.products li.product, .product-card { list-style: none; background: var(--card); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; transition: .3s; }
ul.products li.product:hover, .product-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 16px 32px rgba(0,0,0,.35); }
/* محصولی که هنوز عکس واقعی نداره: زمینه‌ی طلایی‌رنگ + اسم محصول روش، تا وقتی عکس واقعی جایگزینش کنی */
.no-photo-label { position: absolute; inset: 14px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: 13px; font-weight: 800; color: var(--gold); line-height: 1.5; }
.ptag { position: absolute; top: 10px; right: 10px; padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 800; background: var(--gold); color: #14110a; }
.product-body { padding: 14px; }
.product-brand { font-size: 10.5px; color: var(--gold); font-weight: 800; letter-spacing: 1px; }
.product-body h3 { margin: 4px 0 8px; font-size: 14px; line-height: 1.6; min-height: 44px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-price, .price { color: var(--gold); font-weight: 900; font-size: 16px; }
.price del { color: var(--muted-foreground); font-size: 12px; font-weight: 400; margin-inline-end: 6px; }
.product-actions { display: flex; gap: 8px; margin-top: 12px; }
.add-cart-btn, a.button, button.button, input.button, a.add_to_cart_button { flex: 1; text-align: center; padding: 10px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a !important; font-weight: 800; font-size: 12.5px; transition: .25s; }
/* حالت روز: طلایی این حالت تیره‌تره، پس نوشته‌ی روش سفید خواناتره */
html[data-theme="day"] .add-cart-btn, html[data-theme="day"] a.button, html[data-theme="day"] button.button, html[data-theme="day"] input.button, html[data-theme="day"] a.add_to_cart_button { color: #fff !important; }
@keyframes spin { to { transform: rotate(360deg); } }
.product-ask { width: 40px; flex-shrink: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); }
.product-ask svg { width: 17px; height: 17px; color: #25d366; }

/* ---------- اسکرول‌ردیف ---------- */
.scroller-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.scroller-row h2 { margin: 0; font-size: 20px; }
.scroller-row a { color: var(--gold); font-size: 13px; font-weight: 700; }

/* ---------- باکس تماس ---------- */
.cx-box { border-radius: 26px; overflow: hidden; border: 1px solid var(--gold); }
.cx-inner { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) { .cx-inner { grid-template-columns: 1fr; } }
.cx-left { position: relative; min-height: 480px; }
.cx-map { position: absolute; inset: 0; }
.cx-map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.3) invert(.9) hue-rotate(180deg); }
html[data-theme="day"] .cx-map iframe { filter: none; }
.cx-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,9,7,.95), rgba(10,9,7,.3) 55%); }
.cx-left-content { position: relative; z-index: 2; height: 100%; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; gap: 16px; color: #fff; }
.cx-left h3 { margin: 0; font-size: 26px; }
.cx-rows { display: grid; gap: 8px; }
.cx-row { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.06); }
.cx-ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; flex-shrink: 0; }
.cx-row b { display: block; font-size: 12.5px; }
.cx-row small { font-size: 12px; opacity: .8; }
.cx-chans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cx-chan { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 4px; border-radius: 12px; background: rgba(255,255,255,.06); font-size: 11px; }
.cx-form { padding: 28px; background: var(--card); display: flex; flex-direction: column; gap: 12px; }
.cx-form-head h3 { margin: 0 0 4px; font-size: 18px; }
.cx-form-head p { margin: 0; font-size: 12px; color: var(--muted-foreground); }
.cx-input { display: block; }
.cx-input input, .cx-input textarea { width: 100%; padding: 12px 14px; border-radius: 12px; background: var(--background); border: 1px solid var(--border); }
.cx-input textarea { min-height: 100px; }
.cx-send { padding: 14px; border-radius: 12px; background: linear-gradient(135deg, #25d366, #128c4a); color: #fff; font-weight: 800; }

/* ---------- فوتر ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted-foreground); }

/* ---------- شبکه‌های اجتماعی کنار صفحه ---------- */
/* ---------- شبکه‌های اجتماعی شناور (چشمک‌زن) ---------- */
.floating-contacts { position: fixed; left: 10px; top: 50%; translate: 0 -50%; z-index: 70; display: flex; flex-direction: column; gap: 12px; }
.fc { position: relative; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: #333; box-shadow: 0 4px 14px rgba(0,0,0,.4); }
.fc svg { width: 21px; height: 21px; position: relative; z-index: 2; }
.fc-wa  { background: #25d366; }
.fc-ig  { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 75%, #515bd4); }
.fc-tg  { background: #2aabee; }
.fc-tel { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; }
.fc-up  { background: rgba(255,255,255,.08); border: 1px solid var(--gold); color: var(--gold); }
.fc-wa::before, .fc-ig::before, .fc-tg::before, .fc-tel::before {
  content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; z-index: 1;
  animation: fc-pulse 2.4s ease-out infinite;
}
.fc-wa::before { color: #25d366; } .fc-ig::before { color: #dd2a7b; } .fc-tg::before { color: #2aabee; } .fc-tel::before { color: var(--gold); }
.fc-ig:nth-of-type(1)::before { animation-delay: .3s; }
.fc-tg::before { animation-delay: .6s; }
.fc-tel::before { animation-delay: .9s; }
@keyframes fc-pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 640px) { .floating-contacts { left: 6px; gap: 9px; } .fc { width: 40px; height: 40px; } .fc svg { width: 18px; height: 18px; } }

/* ---------- رنگ‌بندی محصول (تک‌محصول) ---------- */
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 14px; }
.swatch-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--sw); border: 2px solid rgba(255,255,255,.2); }
.swatch-dot.is-on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.visually-hidden-swatch { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.generic-post, .page-content { max-width: 820px; margin-inline: auto; line-height: 2; }

/* ============================================================
   فاز دو: صفحه‌ی لوازم جانبی، صفحه‌ی تعمیرات، صفحه‌ی درباره ما
   ============================================================ */

/* ---------- لوازم جانبی: انتخاب مدل + تب دسته ---------- */
.acc-finder { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.acc-finder label { font-size: 13.5px; color: var(--muted-foreground); }
.acc-finder select { padding: 10px 14px; border-radius: 10px; background: var(--background); border: 1px solid var(--border); min-width: 220px; }
.acc-cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.acc-cat-tabs button { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; font-weight: 700; }
.acc-cat-tabs button.is-on { background: var(--gold); color: #14110a; border-color: transparent; }
.acc-cat-tabs .n { margin-inline-start: 4px; opacity: .7; }
.acc-results.is-loading { opacity: .5; }
.acc-results .no-results { text-align: center; padding: 40px 0; color: var(--muted-foreground); grid-column: 1/-1; }

/* ---------- تعمیرات ---------- */
.rp-svc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 40px; }
.rp-svc-card { position: relative; overflow: hidden; display: block; text-align: right; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; transition: .3s; }
.rp-svc-card:hover { border-color: var(--accent); transform: translateY(-6px); box-shadow: 0 18px 34px rgba(0,0,0,.35), 0 0 0 1px var(--accent), 0 0 40px -14px var(--accent); }
.rp-svc-card::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 60% at 100% 0%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); }
.rp-svc-ico { position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
.rp-svc-ico .g-ico svg { width: 26px; height: 26px; color: var(--accent); }
.rp-svc-card h3 { position: relative; z-index: 1; margin: 0 0 8px; font-size: 15.5px; }
.rp-svc-card p { position: relative; z-index: 1; margin: 0 0 12px; font-size: 12.5px; color: var(--muted-foreground); line-height: 1.9; min-height: 40px; }
.rp-svc-meta { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--accent); font-weight: 800; }
.rp-svc-meta .g-ico svg { width: 13px; height: 13px; }
.rp-estimator { background: var(--card); border: 1px solid var(--gold); border-radius: 22px; padding: 26px; }
.rp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.rp-row > span { min-width: 110px; font-size: 13px; font-weight: 700; color: var(--muted-foreground); }
.rp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rp-chip { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); font-size: 12.5px; }
.rp-chip.is-on { background: var(--gold); color: #14110a; border-color: transparent; }
.rp-result { margin-top: 20px; }
.rp-hint { color: var(--muted-foreground); font-size: 13px; }
.rp-result-box { background: var(--background); border: 1px solid var(--border); border-radius: 16px; padding: 20px; }
.rp-result-box h3 { margin: 0 0 10px; font-size: 15px; }
.rp-price { color: var(--gold); font-size: 26px; font-weight: 900; margin-bottom: 8px; }
.rp-price small { font-size: 13px; font-weight: 500; color: var(--muted-foreground); }
.rp-note { font-size: 12px; color: var(--muted-foreground); margin-bottom: 14px; }

/* ---------- درباره ما ---------- */
.ab-hero { position: relative; height: 320px; overflow: hidden; }
.ab-hero-photo { width: 100%; height: 100%; object-fit: cover; }
.ab-hero-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.85), rgba(0,0,0,.25)); }
.ab-hero-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 30px; color: #fff; }
.ab-hero-text h1 { margin: 0 0 6px; font-size: 30px; }
.ab-hero-text p { margin: 0; font-size: 13.5px; opacity: .85; }
.ab-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: -30px; position: relative; z-index: 2; }
.ab-stat { background: var(--card); border: 1px solid var(--gold); border-radius: 16px; padding: 20px; text-align: center; }
.ab-stat strong { display: block; font-size: 28px; color: var(--gold); font-weight: 900; }
.ab-stat span { font-size: 12px; color: var(--muted-foreground); }
.ab-story { max-width: 760px; margin-inline: auto; }
.ab-svc { padding: 22px; }
.buy-cta { text-align: center; background: var(--card); border: 1px solid var(--gold); border-radius: 20px; padding: 34px; }
.buy-cta h2 { margin: 0 0 16px; }

@media (max-width: 700px) {
  .rp-row { flex-direction: column; align-items: flex-start; }
  .rp-svc-grid { grid-template-columns: 1fr 1fr; }
  .ab-stats { grid-template-columns: 1fr; }
}

/* ---------- هیرو: عکس‌های جدید روز/شب، بدون زوم اضافه (نسبت اصلی عکس حفظ می‌شه) ---------- */
.hero { height: auto; aspect-ratio: 1983 / 793; min-height: 0; max-height: 700px; background: #0d0c0a; }
.hero-photo { object-fit: cover; object-position: center 40%; }
@media (max-width: 760px) { .hero { aspect-ratio: auto; height: 250px; min-height: 250px; } .hero-photo { object-position: 50% 40%; } }

/* ============================================================
   هدر: جستجو + ورود/ثبت‌نام (جمع‌وجور، تو موبایل فقط آیکن)
   ============================================================ */
.header-actions { gap: 8px; }
.acct-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--gold); color: var(--gold); font-size: 12.5px; font-weight: 800; white-space: nowrap; transition: .25s; }
.acct-btn svg { width: 17px; height: 17px; }
.acct-btn:hover, .acct-btn.is-in { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #14110a; box-shadow: 0 0 16px -3px var(--gold-glow); }
html[data-theme="day"] .acct-btn:hover, html[data-theme="day"] .acct-btn.is-in { background: linear-gradient(135deg, #8a6a24, #6b4f14); color: #fff; }
@media (max-width: 700px) {
  .acct-btn { width: 38px; padding: 0; justify-content: center; }
  .acct-txt { display: none; }
}
@media (max-width: 520px) {
  .header-actions { gap: 6px; }
  .icon-btn, .menu-button, .acct-btn { width: 34px; height: 34px; }
  .acct-btn { height: 34px; }
  .brand strong { display: none; }
}

.search-panel { display: none; border-top: 1px solid var(--border); background: var(--card); }
.search-panel.is-open { display: block; animation: sp-in .25s ease; }
@keyframes sp-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.search-form { display: flex; align-items: center; gap: 10px; padding-block: 12px; }
.search-form > .g-ico { color: var(--gold); flex-shrink: 0; }
.search-form input[type="search"] { flex: 1; min-width: 0; height: 42px; padding: 0 16px; border-radius: 999px; background: var(--background); border: 1px solid var(--border); color: var(--foreground); font-size: 14px; }
.search-form input[type="search"]:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 25%, transparent); }
.search-form .btn-gold { height: 42px; padding: 0 22px; justify-content: center; }
@media (max-width: 520px) { .search-form .btn-gold { padding: 0 14px; } .search-form > .g-ico { display: none; } }

/* ---------- خوانایی کلی (فرم‌ها و منوها تو هر دو حالت) ---------- */
::placeholder { color: var(--muted-foreground); opacity: .8; }
select option { background: var(--card); color: var(--foreground); }

/* ============================================================
   انیمیشن خوش‌آمدگویی
   ============================================================ */
.welcome-splash { display: none; }
html.splash-on .welcome-splash {
  position: fixed; inset: 0; z-index: 300; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: var(--background); color: var(--foreground); overflow: hidden; touch-action: none; overscroll-behavior: contain; cursor: pointer;
  transition: opacity .65s ease, transform .65s ease, visibility .65s;
  animation: ws-failsafe .1s linear 4.6s forwards; /* اگه جاوااسکریپت لود نشد، خودش بسته بشه */
}
html.splash-on .welcome-splash.is-leaving { opacity: 0; transform: scale(1.06); visibility: hidden; pointer-events: none; }
html.splash-on .welcome-splash.is-gone { display: none; }
@keyframes ws-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

.ws-glow { position: absolute; inset: 0; background: radial-gradient(46% 40% at 50% 38%, color-mix(in srgb, var(--gold) 26%, transparent), transparent 72%); animation: ws-glow 3s ease-in-out infinite alternate; }
@keyframes ws-glow { from { opacity: .55; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }

.ws-stage { position: relative; width: 210px; height: 250px; display: grid; place-items: center; margin-bottom: 8px; }
.ws-ring { position: absolute; left: 50%; top: 50%; width: 150px; height: 150px; margin: -75px 0 0 -75px; border-radius: 50%; border: 1.5px solid var(--gold); opacity: 0; animation: ws-ring 2.4s ease-out infinite; }
.ws-ring.r2 { animation-delay: .8s; } .ws-ring.r3 { animation-delay: 1.6s; }
@keyframes ws-ring { 0% { transform: scale(.5); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }

.ws-phone { position: relative; width: 116px; height: 232px; padding: 4px; border-radius: 30px; background: linear-gradient(160deg, #f6e4a8, #b98a2e 55%, #7a5a17);
  box-shadow: 0 24px 50px -14px rgba(0,0,0,.55), 0 0 40px -6px var(--gold-glow); animation: ws-drop .9s cubic-bezier(.2,1.2,.3,1) backwards, ws-float 3s ease-in-out .9s infinite alternate; }
@keyframes ws-drop { from { transform: translateY(-140px) rotate(-14deg) scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ws-float { from { transform: translateY(0) rotate(-1.5deg); } to { transform: translateY(-9px) rotate(1.5deg); } }
.ws-notch { position: absolute; top: 9px; left: 50%; translate: -50% 0; width: 34px; height: 8px; border-radius: 99px; background: #000; z-index: 3; }
.ws-screen { position: relative; height: 100%; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding-top: 40px; gap: 6px;
  background: radial-gradient(90% 60% at 50% 20%, #2b2415, #0b0a08 70%); animation: ws-on .7s ease .6s backwards; }
@keyframes ws-on { from { filter: brightness(0); } to { filter: none; } }
.ws-logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px #e8c766, 0 0 22px rgba(232,199,102,.6); animation: ws-pop .6s cubic-bezier(.2,1.4,.4,1) 1s backwards; }
@keyframes ws-pop { from { transform: scale(0); } to { transform: scale(1); } }
.ws-brand { font-size: 11px; letter-spacing: 3px; font-weight: 900; color: #e8c766; direction: ltr; animation: ws-fade .6s ease 1.25s backwards; }
@keyframes ws-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ws-apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.ws-apps i { width: 20px; height: 20px; border-radius: 6px; background: var(--c, #e8c766); animation: ws-pop .45s cubic-bezier(.2,1.4,.4,1) backwards; }
.ws-apps i:nth-child(1) { --c: #25d366; animation-delay: 1.4s; } .ws-apps i:nth-child(2) { --c: #29a9eb; animation-delay: 1.48s; }
.ws-apps i:nth-child(3) { --c: #e1306c; animation-delay: 1.56s; } .ws-apps i:nth-child(4) { --c: #e8c766; animation-delay: 1.64s; }
.ws-apps i:nth-child(5) { --c: #ff7a45; animation-delay: 1.72s; } .ws-apps i:nth-child(6) { --c: #8b7bff; animation-delay: 1.8s; }
.ws-scan { position: absolute; left: 0; right: 0; height: 46px; top: -46px; background: linear-gradient(180deg, transparent, rgba(232,199,102,.35), transparent); animation: ws-scan 1.8s ease-in-out .9s infinite; }
@keyframes ws-scan { to { top: 100%; } }

.ws-spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: ws-spark 2.2s ease-in-out infinite; }
.ws-spark.s1 { left: 8%; top: 24%; } .ws-spark.s2 { right: 6%; top: 40%; animation-delay: .5s; width: 6px; height: 6px; }
.ws-spark.s3 { left: 14%; bottom: 14%; animation-delay: 1s; width: 5px; height: 5px; } .ws-spark.s4 { right: 16%; top: 8%; animation-delay: 1.4s; }
@keyframes ws-spark { 0%, 100% { opacity: 0; transform: scale(.3) translateY(0); } 50% { opacity: 1; transform: scale(1) translateY(-14px); } }

.ws-hello { margin: 0; font-size: 34px; font-weight: 900; display: flex; gap: 10px; }
.ws-hello span { animation: ws-word .7s cubic-bezier(.2,1,.3,1) backwards; }
.ws-hello span:nth-child(1) { animation-delay: 1.1s; } .ws-hello span:nth-child(2) { animation-delay: 1.3s; }
@keyframes ws-word { from { opacity: 0; transform: translateY(24px) scale(.9); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
.ws-name { margin: 0; font-size: 22px; font-weight: 900; text-align: center; padding: 0 20px;
  background: linear-gradient(90deg, var(--gold-2), var(--gold), #fff3c4, var(--gold), var(--gold-2)); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: ws-word .7s cubic-bezier(.2,1,.3,1) 1.6s backwards, ws-shine 2.4s linear 1.6s infinite; }
html[data-theme="day"] .ws-name { background-image: linear-gradient(90deg, #6b4f14, #8a6a24, #c7a355, #8a6a24, #6b4f14); }
@keyframes ws-shine { to { background-position: -250% 0; } }
.ws-bar { width: 130px; height: 4px; margin-top: 18px; border-radius: 99px; background: color-mix(in srgb, var(--foreground) 14%, transparent); overflow: hidden; }
.ws-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold-2), var(--gold)); animation: ws-load 3.1s linear forwards; }
@keyframes ws-load { from { width: 0; } to { width: 100%; } }
.ws-skip { margin-top: 10px; font-size: 11.5px; color: var(--muted-foreground); animation: ws-fade .6s ease 2s backwards; }
@media (max-height: 560px) { .ws-stage { transform: scale(.7); margin: -30px 0; } .ws-hello { font-size: 26px; } }
@media (prefers-reduced-motion: reduce) { .welcome-splash *, .welcome-splash { animation: none !important; } }

/* ============================================================
   خوانایی حالت روز: هر دکمه/برچسبی که پس‌زمینه‌ی طلاییِ تیره داره، متن سفید می‌گیره
   (قبلاً متن مشکی روی طلایی تیره تو حالت روز کم‌رنگ و ناخوانا بود)
   ============================================================ */
html[data-theme="day"] :is(.btn-gold, .add-cart-btn, a.button, button.button, input.button, a.add_to_cart_button, .cx-ico, .fc-tel, .banner-icon,
  .vpn-badge, .single_add_to_cart_button, .wc-proceed-to-checkout .checkout-button, #place_order, .woocommerce-message .button, .woocommerce-error .button,
  .acc-cat-tabs button.is-on, .rp-chip.is-on, .shop-toolbar .tabs button.is-on, .ct-topic.is-on, .btn-outline:hover, .woocommerce-form-login__submit, .woocommerce-form-register__submit) {
  color: #fff !important; background-image: linear-gradient(135deg, #8a6a24, #6b4f14); background-color: #8a6a24;
}
html[data-theme="day"] .btn-outline:hover { border-color: #6b4f14; }

/* نوار عنوان هیرو همیشه تیره‌ست؛ پس متن و دکمه‌هاش تو حالت روز هم باید روشن بمونن */
html[data-theme="day"] .hero-bar .hb-text p { color: #d9d1bb; }
html[data-theme="day"] .hero-bar .btn-outline { color: #e8c766; border-color: #e8c766; }
html[data-theme="day"] .hero-bar .btn-outline:hover { color: #14110a !important; background: #e8c766; background-image: none; }
html[data-theme="day"] .hero-bar .btn-gold { background-image: linear-gradient(135deg, #e8c766, #cf9f3f); color: #14110a !important; }
