﻿/* فروشگاه ماکان — پوسته‌ی ظاهری فروشگاه (فقط ظاهر؛ هیچ ساختار یا عملکردی تغییر نمی‌کند) */
:root{
  --st-o:#ff7a00;--st-o2:#ffa24a;--st-n:#0f1d3a;--st-n2:#1b2f5c;
  --st-bg:#f5f6fa;--st-line:#e6e9f1;--st-m:#6b7388;--st-g:#16a34a;--st-r:#e11d48;
}
body{background:var(--st-bg)!important;font-family:Vazirmatn,Tahoma,Arial,sans-serif}

/* ---------- سربرگ ---------- */
.store-header,.cart-header{background:#fff!important;box-shadow:0 2px 14px rgba(15,29,58,.07)!important;border-bottom:0!important}
.store-brand-icon{background:linear-gradient(135deg,var(--st-o),var(--st-o2))!important;border-radius:13px!important;color:#fff}
.store-search input{background:var(--st-bg)!important;border:1px solid var(--st-line)!important;border-radius:14px!important}
.store-search input:focus{border-color:var(--st-o)!important;box-shadow:0 0 0 3px rgba(255,122,0,.15)!important}
.cart-button{background:var(--st-n)!important;color:#fff!important;border-radius:12px!important;border:0!important}
.cart-count{background:var(--st-o)!important;color:#fff!important}

/* ---------- بنر اصلی ---------- */
.store-hero{
  background:radial-gradient(circle at 15% 20%,#2c4a8f 0,transparent 45%),linear-gradient(135deg,var(--st-n),var(--st-n2))!important;
  border-radius:26px!important;color:#fff!important;box-shadow:0 22px 50px rgba(15,29,58,.22)!important;
}
.store-hero h1{color:#fff!important;font-weight:900!important;line-height:1.6!important}
.store-hero p{color:rgba(255,255,255,.82)!important;line-height:2!important}
.hero-badge{background:rgba(255,255,255,.14)!important;color:#fff!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:999px!important}

/* ---------- نوار اعتماد ---------- */
.st-trust{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:18px 0 6px}
.st-trust div{background:#fff;border:1px solid var(--st-line);border-radius:16px;padding:14px;display:flex;gap:12px;align-items:center;font-size:14px}
.st-trust i{font-style:normal;font-size:26px}
.st-trust b{display:block;color:var(--st-n)}.st-trust span{color:var(--st-m);font-size:12px}

/* ---------- تیتر بخش‌ها ---------- */
.section-title{font-weight:900!important;color:var(--st-n)!important}
.section-title::before{content:"";display:inline-block;width:6px;height:22px;background:var(--st-o);border-radius:4px;margin-left:10px;vertical-align:-4px}
.section-subtitle{color:var(--st-m)!important}

/* ---------- دسته‌بندی ---------- */
.category-pill{background:#fff!important;border:1px solid var(--st-line)!important;color:var(--st-n2)!important;border-radius:999px!important;font-weight:700!important;transition:.2s}
.category-pill:hover{border-color:var(--st-o2)!important;color:var(--st-o)!important;transform:translateY(-2px)}
.category-pill.active{background:linear-gradient(135deg,var(--st-o),var(--st-o2))!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 18px rgba(255,122,0,.3)}

/* ---------- کارت محصول ---------- */
.product-grid{gap:18px!important}
.product-card{background:#fff!important;border:1px solid var(--st-line)!important;border-radius:20px!important;overflow:hidden;transition:transform .25s,box-shadow .25s!important;box-shadow:none!important}
.product-card:hover{transform:translateY(-6px)!important;box-shadow:0 20px 40px rgba(15,29,58,.14)!important}
.product-image-box{background:linear-gradient(135deg,#f3f5fb,#e8ecf6)!important}
.product-name{font-weight:800!important;color:var(--st-n)!important;line-height:1.8!important}
.product-category{color:var(--st-m)!important}
.current-price{color:var(--st-n)!important;font-weight:900!important}
.old-price{color:var(--st-m)!important}
.badge-discount{background:var(--st-r)!important;color:#fff!important;border-radius:10px!important;font-weight:800!important}
.badge-featured{background:var(--st-o)!important;color:#fff!important;border-radius:10px!important}
.add-cart-button{background:var(--st-n)!important;color:#fff!important;border:0!important;border-radius:12px!important;font-weight:800!important;transition:.2s}
.add-cart-button:hover{background:var(--st-o)!important}
.add-cart-button.disabled{background:#cbd2e1!important;color:#fff!important}

/* ---------- صفحه‌ی محصول ---------- */
.topbar{background:#fff!important;box-shadow:0 2px 14px rgba(15,29,58,.07)!important;border-bottom:0!important}
.back-link,.cart-link{border-radius:12px!important;font-weight:700!important}
.cart-link{background:var(--st-n)!important;color:#fff!important}
.product-layout{background:#fff!important;border:1px solid var(--st-line)!important;border-radius:24px!important;padding:24px!important;box-shadow:none!important}
.gallery-main{background:linear-gradient(135deg,#f3f5fb,#e8ecf6)!important;border-radius:20px!important}
.thumb{border-radius:14px!important;border:2px solid transparent!important}
.thumb.active{border-color:var(--st-o)!important}
.product-title{font-weight:900!important;color:var(--st-n)!important;line-height:1.7!important}
.category{background:#fff1e0!important;color:var(--st-o)!important;border-radius:999px!important;font-weight:700!important}
.price-box{background:var(--st-bg)!important;border:0!important;border-radius:20px!important;padding:18px!important}
.price-current{color:var(--st-n)!important;font-weight:900!important}
.discount-label{background:var(--st-r)!important;color:#fff!important;border-radius:8px!important;font-weight:800!important}
.stock-available{color:var(--st-g)!important;font-weight:800!important}
.buy-box{background:#fff!important;border:1px solid var(--st-line)!important;border-radius:20px!important}
.quantity{border-radius:12px!important;border:1px solid var(--st-line)!important}
.add-to-cart{background:linear-gradient(135deg,var(--st-o),var(--st-o2))!important;color:#fff!important;border:0!important;border-radius:14px!important;font-weight:800!important;box-shadow:0 10px 22px rgba(255,122,0,.35)!important;transition:.2s}
.add-to-cart:hover{transform:translateY(-2px)}
.add-to-cart.disabled{background:#cbd2e1!important;box-shadow:none!important}
.description-box{background:#fff!important;border:1px solid var(--st-line)!important;border-radius:20px!important}

/* ---------- سبد خرید ---------- */
.cart-item{background:#fff!important;border:1px solid var(--st-line)!important;border-radius:18px!important;box-shadow:none!important}
.summary{background:#fff!important;border:1px solid var(--st-line)!important;border-radius:22px!important;box-shadow:0 10px 30px rgba(15,29,58,.06)!important}
.sale-price,.summary-total{color:var(--st-n)!important;font-weight:900!important}
.checkout-button{background:linear-gradient(135deg,var(--st-o),var(--st-o2))!important;color:#fff!important;border:0!important;border-radius:14px!important;font-weight:800!important;box-shadow:0 10px 22px rgba(255,122,0,.35)!important}
.option-item{border-radius:14px!important}
.option-item:hover{border-color:var(--st-o2)!important}

/* ---------- موبایل ---------- */
@media(max-width:900px){
  .st-trust{grid-template-columns:1fr 1fr}
  .product-layout{padding:14px!important;border-radius:20px!important}
  .store-hero{border-radius:20px!important}
}
@media(max-width:480px){
  .product-grid{gap:10px!important}
  .st-trust div{padding:10px;font-size:13px}
}

/* ---------- اصلاح تناسب تصویر کارت ---------- */
.product-card{display:flex!important;flex-direction:column}
.product-image-box{width:100%!important;aspect-ratio:1/1;height:auto!important;margin:0!important}
.product-image-box img{width:100%!important;height:100%!important;object-fit:cover!important;padding:0!important}
.product-placeholder{width:100%;height:100%;display:grid!important;place-items:center;font-size:72px}
.product-body{flex:1;display:flex;flex-direction:column}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}}

/* ---------- اصلاح صفحه‌ی محصول ---------- */
.category{display:inline-block!important;width:max-content!important;max-width:100%;padding:5px 14px!important}
.buy-box{padding:18px!important;overflow:hidden}
.buy-row{display:flex!important;gap:12px;align-items:stretch;flex-wrap:wrap}
.buy-row .quantity{width:90px!important;flex:0 0 auto}
.buy-row .add-to-cart{flex:1 1 180px;min-height:48px}

/* ---------- سربرگ جدید ---------- */
.st-topbar{background:linear-gradient(90deg,var(--st-n),var(--st-n2))!important;border-bottom:0!important;box-shadow:none!important;padding:7px 20px!important}
.st-topbar a{background:rgba(255,255,255,.1)!important;color:#fff!important;border:1px solid rgba(255,255,255,.16)!important;border-radius:999px!important;padding:6px 14px!important;font-size:12px!important;transition:.2s}
.st-topbar a:hover{background:var(--st-o)!important;border-color:var(--st-o)!important}
.store-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96)!important;backdrop-filter:blur(10px);border-bottom:1px solid var(--st-line)!important;box-shadow:0 6px 22px rgba(15,29,58,.07)!important}
.store-header-inner{grid-template-columns:auto minmax(220px,1fr) auto!important;gap:18px!important;padding:14px 22px!important}
.store-brand-title{font-size:19px!important;font-weight:900!important;color:var(--st-n)!important}
.store-brand-subtitle{color:var(--st-o)!important;font-weight:700!important}
.store-brand-icon{width:46px!important;height:46px!important;box-shadow:0 8px 18px rgba(255,122,0,.35)}
.store-search{position:relative}
.store-search input{height:48px!important;padding-right:46px!important;font-size:14px!important}
.store-header-inner .store-header-actions{display:flex!important;align-items:center;justify-content:flex-end!important;gap:8px!important;flex-wrap:nowrap!important;padding:0!important;margin:0!important}
.store-header-inner .store-header-actions a,.store-header-inner .store-header-actions button{height:44px;border-radius:12px!important;white-space:nowrap}
.store-header-inner .store-header-actions a[href*="register"]{background:var(--st-bg)!important;color:var(--st-n)!important;border:1px solid var(--st-line)!important}
.store-header-inner .store-header-actions a[href*="login"]{background:linear-gradient(135deg,var(--st-o),var(--st-o2))!important;color:#fff!important;border:0!important;box-shadow:0 8px 18px rgba(255,122,0,.3)}
.st-cart-btn{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 16px;border-radius:12px;background:var(--st-n);color:#fff;font-weight:800;font-size:14px;white-space:nowrap;text-decoration:none;transition:.2s}
.st-cart-btn:hover{background:var(--st-o)}
.st-cart-btn b{background:var(--st-o);color:#fff;border-radius:999px;min-width:22px;height:22px;display:inline-grid;place-items:center;font-size:12px;padding:0 6px}
@media(max-width:900px){
  .store-header-inner{grid-template-columns:1fr auto!important;gap:10px!important;padding:10px 14px!important}
  .store-search{grid-column:1/-1;order:3}
  .st-cart-btn span{display:none}
  .store-header-inner .store-header-actions{order:2}
}


/* دکمه‌های کنار جستجو */
.st-searchrow{display:flex;align-items:center;gap:8px;min-width:0}
.st-searchrow .store-search{flex:1;min-width:0}
.st-link{display:inline-flex;align-items:center;height:48px;padding:0 14px;border-radius:12px;background:var(--st-bg);border:1px solid var(--st-line);color:var(--st-n);font-size:13px;font-weight:800;white-space:nowrap;text-decoration:none;transition:.2s}
.st-link:hover{border-color:var(--st-o2);color:var(--st-o)}
.st-link-dark{background:var(--st-n);color:#fff;border-color:var(--st-n)}
.st-link-dark:hover{background:var(--st-o);color:#fff;border-color:var(--st-o)}
@media(max-width:900px){.st-searchrow{flex-wrap:wrap}.st-searchrow .store-search{flex-basis:100%}.st-link{flex:1;justify-content:center;height:42px}}

/* سبد خرید کنار ثبت‌نام/ورود در یک ردیف */
.store-header-inner{grid-template-columns:auto minmax(260px,1fr) auto auto!important}
.store-header-inner .st-cart-btn{grid-column:auto}
@media(max-width:900px){
  .store-header-inner{grid-template-columns:1fr auto auto!important}
  .store-header-inner .st-searchrow{grid-column:1/-1;order:5}
}


/* نوار دسته‌بندی زیر هدر */
.st-catnav{background:#fff;border-bottom:1px solid var(--st-line);display:flex;gap:4px;overflow-x:auto;padding:8px 22px;scrollbar-width:none}
.st-catnav a{white-space:nowrap;padding:9px 16px;border-radius:10px;font-size:14px;font-weight:700;color:var(--st-n2);text-decoration:none;transition:.2s}
.st-catnav a:hover{background:#fff1e0;color:var(--st-o)}
.st-catnav a.on{background:linear-gradient(135deg,var(--st-o),var(--st-o2));color:#fff}

/* کاشی‌های رنگی دسته‌ها */
.st-tiles{display:grid;grid-template-columns:repeat(5,1fr);gap:14px;margin:18px 0 6px}
.st-tile{border-radius:20px;padding:22px 18px;min-height:140px;color:#fff;display:flex;flex-direction:column;justify-content:space-between;text-decoration:none;position:relative;overflow:hidden;transition:transform .25s,box-shadow .25s}
.st-tile:hover{transform:translateY(-5px);box-shadow:0 18px 34px rgba(15,29,58,.2)}
.st-tile::after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;background:rgba(255,255,255,.14);left:-30px;bottom:-40px}
.st-tile-title{font-size:18px;font-weight:900;line-height:1.6}
.st-tile-cta{font-size:12px;font-weight:700;background:rgba(255,255,255,.2);padding:6px 12px;border-radius:999px;width:max-content}
.st-tile-1{background:linear-gradient(135deg,#ff7a00,#ff4d6d)}
.st-tile-2{background:linear-gradient(135deg,#0f1d3a,#2c4a8f)}
.st-tile-3{background:linear-gradient(135deg,#0ea5a4,#0f766e)}
.st-tile-4{background:linear-gradient(135deg,#7c3aed,#4f46e5)}
.st-tile-5{background:linear-gradient(135deg,#f59e0b,#d97706)}

/* حالت بدون محصول */
.st-empty{background:#fff;border:1px dashed #cfd6e6;border-radius:24px;text-align:center;padding:48px 20px;margin:28px 0}
.st-empty-icon{font-size:64px}
.st-empty h2{margin:10px 0 6px;color:var(--st-n);font-size:24px}
.st-empty p{color:var(--st-m);max-width:480px;margin:0 auto 18px;line-height:2}
.st-empty-btn{display:inline-block;background:linear-gradient(135deg,var(--st-o),var(--st-o2));color:#fff;border-radius:14px;padding:13px 26px;font-weight:800;text-decoration:none;box-shadow:0 10px 22px rgba(255,122,0,.35)}
@media(max-width:900px){.st-tiles{grid-template-columns:repeat(2,1fr)}.st-catnav{padding:8px 14px}}


/* ---------- بنر جدید ---------- */
.store-hero{display:grid!important;grid-template-columns:1.15fr 1fr!important;align-items:center;gap:20px;min-height:380px;padding:46px 54px!important;
  background:radial-gradient(circle at 85% 15%,rgba(255,122,0,.35) 0,transparent 40%),radial-gradient(circle at 10% 90%,rgba(44,74,143,.7) 0,transparent 50%),linear-gradient(135deg,#0b1530,#1b2f5c)!important}
.hero-sports-poster{display:none!important}
.store-hero-content{position:relative;z-index:2}
.store-hero h1{font-size:44px!important;margin:14px 0 10px!important}
.st-hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:20px}
.st-hero-btn{display:inline-block;background:linear-gradient(135deg,var(--st-o),var(--st-o2));color:#fff;border-radius:14px;padding:14px 28px;font-weight:800;text-decoration:none;box-shadow:0 12px 26px rgba(255,122,0,.4);transition:.2s}
.st-hero-btn:hover{transform:translateY(-2px)}
.st-hero-btn-ghost{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.3);box-shadow:none}
.st-hero-stats{display:flex;gap:22px;flex-wrap:wrap;margin-top:24px;color:rgba(255,255,255,.78);font-size:13px}
.st-hero-stats b{color:var(--st-o2);font-size:16px;margin-left:4px}
.st-hero-art{position:relative;height:320px}
.st-orb{position:absolute;border-radius:50%}
.st-orb-1{width:290px;height:290px;background:linear-gradient(135deg,var(--st-o),#ff4d6d);left:50%;top:50%;transform:translate(-50%,-50%);box-shadow:0 30px 70px rgba(255,122,0,.45)}
.st-orb-2{width:340px;height:340px;border:2px dashed rgba(255,255,255,.25);left:50%;top:50%;transform:translate(-50%,-50%)}
.st-hero-big{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);font-size:150px;filter:drop-shadow(0 20px 28px rgba(0,0,0,.4))}
.st-card-float{position:absolute;background:rgba(255,255,255,.96);color:var(--st-n);border-radius:16px;padding:12px 16px;display:grid;grid-template-columns:auto 1fr;column-gap:10px;align-items:center;box-shadow:0 16px 34px rgba(0,0,0,.28);animation:stfloat 5s ease-in-out infinite}
.st-card-float i{font-style:normal;font-size:26px;grid-row:span 2}
.st-card-float b{font-size:14px}.st-card-float span{font-size:11px;color:var(--st-m)}
.st-cf-1{right:0;top:12px}.st-cf-2{left:0;top:110px;animation-delay:1.2s}.st-cf-3{right:20px;bottom:6px;animation-delay:2.4s}
@keyframes stfloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@media(max-width:900px){
  .store-hero{grid-template-columns:1fr!important;padding:28px 20px!important;min-height:0}
  .store-hero h1{font-size:28px!important}
  .st-hero-art{height:230px}
  .st-orb-1{width:190px;height:190px}.st-orb-2{width:230px;height:230px}.st-hero-big{font-size:100px}
  .st-cf-2{top:70px}
  .st-card-float{padding:8px 12px}.st-card-float i{font-size:20px}
}

/* اصلاح عرض متن بنر */
.store-hero-content{max-width:none!important;width:100%!important;flex:none!important}
.store-hero h1{font-size:38px!important;line-height:1.7!important;max-width:none!important}
.store-hero p{max-width:520px!important}


/* اسکرول نرم + ورزش‌های مختلف دور جایزه */
html{scroll-behavior:smooth}
.st-sport{position:absolute;width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);display:grid;place-items:center;font-size:28px;backdrop-filter:blur(4px);animation:stfloat 6s ease-in-out infinite}
.st-sp-1{left:12%;top:6%}.st-sp-2{right:8%;top:46%;animation-delay:1s}.st-sp-3{left:6%;bottom:18%;animation-delay:2s}
.st-sp-4{right:26%;top:2%;animation-delay:3s}.st-sp-5{left:30%;bottom:0;animation-delay:1.6s}.st-sp-6{right:2%;bottom:20%;animation-delay:.6s}
.st-hero-big{font-size:130px!important}

/* کارت‌های محصول جمع‌وجورتر */
.product-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:14px!important}
.product-card{border-radius:16px!important}
.product-name{font-size:14px!important;line-height:1.7!important}
.current-price{font-size:15px!important}
.product-codes-row,.product-info-row{font-size:11px!important}
.add-cart-button{padding:9px 10px!important;font-size:13px!important}
@media(max-width:1200px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}}
@media(max-width:900px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.st-sport{width:40px;height:40px;font-size:20px}}

/* اصلاح هدر فروشگاه در موبایل */
@media(max-width:900px){
  .store-header-inner{display:flex!important;flex-wrap:wrap;align-items:center}
  .store-brand{flex:1 1 auto;min-width:0}
  .store-header-inner .store-header-actions{flex:0 0 auto}
  .st-cart-btn{padding:0 12px}
  .st-searchrow{flex:1 1 100%;width:100%;max-width:100%;order:5}
  .st-searchrow .store-search{flex:1 1 100%;width:100%;max-width:100%}
  .st-searchrow .store-search input{width:100%;min-width:0}
  .st-link{flex:1 1 calc(50% - 4px);min-width:0;white-space:normal;text-align:center;justify-content:center;height:auto;padding:10px 8px;font-size:12px;line-height:1.5}
  .store-header-actions a,.store-header-actions button{padding:0 10px!important;min-width:0!important}
}

/* ردیف کد کالا/فروشنده در کارت موبایل */
.product-codes-row{display:flex!important;flex-wrap:wrap;gap:4px}
.product-code-item,.seller-code-item{white-space:normal!important;word-break:break-all;max-width:100%;font-size:10px!important}
@media(max-width:900px){.product-body{padding:10px!important}}


/* نوار خلاصه‌ی انتساب خرید (باشگاه/مربی/کلاس) */
.st-rewardbar{max-width:1450px;margin:10px auto 0;padding:0 22px}
.st-rewardbar div{background:#fff6ec;border:1px solid #ffd9b3;color:#9a3412;border-radius:12px;padding:9px 14px;font-size:13px;font-weight:700;display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.st-rewardbar a{color:#ff7a00;text-decoration:none;margin-right:auto}


/* هدر فشرده‌ی موبایل: به‌جای ۲۲۵px فقط یک ردیف + جستجو؛ هنگام اسکرول جستجو جمع می‌شود */
.st-only-m{display:none!important}
@media(max-width:900px){
  .store-header-inner{padding:8px 12px!important;gap:8px!important;row-gap:8px!important;flex-wrap:wrap}
  .store-brand{gap:8px!important}
  .store-brand-icon{width:38px!important;height:38px!important;font-size:19px!important;border-radius:12px!important}
  .store-brand-title{font-size:16px!important}
  .store-brand-subtitle{display:none!important}
  .store-header-inner .store-header-actions{gap:6px!important}
  .store-header-inner .store-header-actions a,.store-header-inner .store-header-actions button{height:38px!important;min-width:0!important;padding:0 10px!important;font-size:12px!important;border-radius:10px!important}
  .store-header-actions>span{display:none!important}
  .st-cart-btn{height:38px!important;padding:0 10px!important;border-radius:10px!important}
  .st-searchrow .st-link{display:none!important}
  .st-searchrow{order:5;flex:1 1 100%}
  .store-search input{height:42px!important;border-radius:12px!important}
  .store-header.st-compact .st-searchrow{display:none}
  .st-catnav{padding:6px 10px}
  .st-catnav a{padding:8px 13px;font-size:13px}
  .st-only-m{display:inline-flex!important;background:var(--st-bg);border:1px solid var(--st-line)}
}


/* صفحه‌ی اصلی در موبایل: محصولات زودتر دیده شوند (قبلاً ۱۹۰۰px پایین‌تر بودند) */
@media(max-width:700px){
  .store-hero{min-height:0!important;padding:18px 16px!important;border-radius:20px!important;margin:10px 0!important}
  .store-hero-content{min-height:0!important;padding:0!important}
  .store-hero h1{font-size:23px!important;line-height:1.55!important;margin:10px 0 6px!important}
  .store-hero p{font-size:13px!important;line-height:1.9!important;margin:0 0 12px!important}
  .store-hero .st-hero-art,.store-hero .hero-sports-poster,.st-hero-stats{display:none!important}
  .st-hero-cta{display:flex!important;gap:8px!important;flex-wrap:nowrap!important}
  .st-hero-btn{flex:1;min-width:0;padding:11px 8px!important;font-size:13px!important;text-align:center;white-space:nowrap}
  .st-trust{display:flex!important;overflow-x:auto;gap:8px!important;padding:2px 2px 8px!important;scrollbar-width:none}
  .st-trust>div{flex:0 0 auto;min-width:0;padding:8px 12px!important}
  .st-trust>div span{display:none!important}
  .st-tiles{display:flex!important;overflow-x:auto;gap:10px!important;padding-bottom:8px;scrollbar-width:none}
  .st-tile{flex:0 0 132px;min-height:84px!important;height:84px!important;padding:12px!important}
  .st-tile .st-tile-cta{display:none!important}
  .section:has(.category-list){display:none}
}


/* کارت کالا در موبایل: تمیزتر، بدون کدهای داخلی */
.stock-low{color:#c2410c;font-weight:800}
.stock-ok{color:#15803d;font-weight:700}
@media(max-width:700px){
  .product-codes-row{display:none!important}
  .product-name{font-size:14px!important;line-height:1.7;min-height:48px}
  .current-price{font-size:15px!important}
  .old-price{font-size:12px!important}
  .add-cart-button{min-height:44px;font-size:13px!important}
}


/* صفحه‌ی کالا در موبایل: نوار خرید ثابت پایین (قیمت دیده شود، دکمه همیشه در دسترس باشد) */
@media(max-width:700px){
  body:has(.buy-box){padding-bottom:120px}
  .buy-box{position:fixed!important;left:0;right:0;bottom:0;z-index:60;margin:0!important;padding:10px 12px calc(10px + env(safe-area-inset-bottom))!important;border-radius:18px 18px 0 0!important;background:#fff!important;box-shadow:0 -8px 24px rgba(15,29,58,.16)!important;border:0!important}
  .buy-box .buy-title{display:none!important}
  .buy-box .buy-row{display:flex!important;gap:10px;align-items:center;margin:0!important}
  .buy-box .quantity{width:72px!important;height:48px!important;flex:0 0 72px;text-align:center}
  .buy-box .add-to-cart{flex:1;height:48px!important;font-size:15px!important}
  .gallery-main{max-height:300px!important;height:300px!important}
}


/* سبد خرید: کنترل تعداد */
.qty-form{display:inline-flex;align-items:center;gap:0;border:1px solid var(--st-line,#e4e8f0);border-radius:12px;overflow:hidden;background:#fff;margin:6px 0}
.qty-btn{width:42px;height:40px;border:0;background:#f4f6fb;font-size:20px;font-weight:800;color:#0f1d3a;cursor:pointer;font-family:inherit}
.qty-btn:disabled{opacity:.35;cursor:not-allowed}
.qty-val{min-width:44px;text-align:center;font-size:15px}
.product-image-empty{display:grid;place-items:center;font-size:34px;background:#f1f3f8;border-radius:14px}
.cart-note{margin:14px 0 0;padding:10px 12px;border-radius:10px;background:#f8fafc;color:#475569;font-size:12px;text-align:center}


/* ورودی فایل در فرم‌های کالا: خوانا و متناسب با عرض موبایل */
input[type=file]{max-width:100%;padding:10px!important;height:auto!important;font-family:inherit;font-size:13px;background:#fff;border:1px dashed #cbd5e1!important;border-radius:12px!important}
input[type=file]::file-selector-button{margin-inline-end:10px;padding:8px 14px;border:0;border-radius:10px;background:#0f1d3a;color:#fff;font-family:inherit;font-weight:700;cursor:pointer}
select{font-family:inherit}


/* آزمایش دو نسخه‌ی بنر: ?hero=a (کادر سورمه‌ای، بدون ایموجی، جمله‌ی تبلیغی) و ?hero=b (بدون کادر، رنگ صفحه) */
.store-hero .st-hero-art,.store-hero .hero-sports-poster,.store-hero .st-hero-stats{display:none!important}
.store-hero{min-height:0!important}
.store-hero-content{max-width:760px;margin-inline:auto;text-align:center}
.store-hero.hero-b{background:transparent!important;box-shadow:none!important;border:0!important;padding:26px 8px 10px!important}
.store-hero.hero-b::before,.store-hero.hero-b::after{display:none!important}
.store-hero.hero-b .hero-badge{display:none}
.store-hero.hero-b h1{color:#0f1d3a!important}
.store-hero.hero-b p{color:#475569!important}
.store-hero.hero-b .st-hero-cta{justify-content:center}
.store-hero.hero-b .st-hero-btn-ghost{background:#fff!important;color:#0f1d3a!important;border:1px solid #cbd5e1!important}
.store-hero.hero-a{padding:34px 22px!important}
.store-hero.hero-a .st-hero-cta{justify-content:center}


/* نوار متحرک دسته‌ها و جدیدترین محصولات (محصول تازه به‌محض ثبت به نوار اضافه می‌شود) */
@keyframes stMarq{from{transform:translateX(0)}to{transform:translateX(50%)}}
@keyframes stShine{0%{transform:translateX(-140%) skewX(-18deg)}60%,100%{transform:translateX(260%) skewX(-18deg)}}
.st-tiles{display:block!important;overflow:hidden;margin:18px 0 6px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent);mask-image:linear-gradient(90deg,transparent,#000 5%,#000 95%,transparent)}
.st-track{display:flex;width:max-content;animation:stMarq 45s linear infinite}
.st-tiles:hover .st-track,.st-tiles:active .st-track{animation-play-state:paused}
.st-set{display:flex;gap:14px;padding-inline-end:14px}
.st-tile{flex:0 0 200px;width:200px}
.st-tile::before{content:"";position:absolute;top:0;bottom:0;width:38%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.28),transparent);animation:stShine 4.5s ease-in-out infinite;pointer-events:none}
.st-tile-new .st-tile-title{font-size:16px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media(max-width:700px){.st-tile{flex-basis:150px;width:150px;min-height:96px!important;height:96px!important;padding:12px!important}.st-tile .st-tile-cta{display:inline-block!important;font-size:11px;padding:4px 9px}.st-tile-title{font-size:15px}.st-set{gap:10px;padding-inline-end:10px}.st-track{animation-duration:38s}}
@media (prefers-reduced-motion:reduce){.st-track{animation:none}.st-tiles{overflow-x:auto}.st-tile::before{animation:none}}



@media(max-width:700px){
  .st-tile:not(.st-tile-new) .st-tile-cta{display:none!important}
  .st-tile{flex-basis:160px!important;width:160px!important}
  .st-tile-new .st-tile-cta{white-space:nowrap;font-size:10.5px}
}


/* بنر: متن وسط‌چین (حالت قبل) + سه کادر ایستاده‌ی «فروشگاه‌های معتبر» + حباب و خط درخشان */
.store-hero.hero-b{position:relative;overflow:hidden;display:block!important;background:linear-gradient(135deg,#ffffff,#f3f6fd)!important;border:1px solid #e4e8f0!important;border-radius:24px!important;box-shadow:0 10px 30px rgba(15,29,58,.07)!important;padding:26px 22px!important;margin:14px 0!important}
.hero-grid{position:relative;z-index:1;display:grid;grid-template-columns:1.25fr 1fr;gap:22px;align-items:stretch}
.hero-grid .store-hero-content{max-width:none!important;margin:0!important;display:flex!important;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:10px!important}
.hero-grid h1{font-size:clamp(22px,3.4vw,38px)!important;line-height:1.7!important;margin:10px 0 8px!important;color:#0f1d3a!important;text-align:center!important}
.hero-grid p{max-width:520px;color:#475569!important;text-align:center!important;margin:0 auto 16px!important}
.hero-grid .st-hero-cta{justify-content:center;max-width:none;width:auto}
.hero-ads{display:flex;flex-direction:column;gap:8px}
.ads-title{font-size:12px;font-weight:800;color:#64748b;text-align:center}
.ads-row{flex:1;display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.ad-card{position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;padding:14px 8px;border-radius:18px;color:#fff;text-decoration:none;min-height:190px;box-shadow:0 10px 22px rgba(15,29,58,.16);transition:transform .25s}
.ad-card:hover{transform:translateY(-4px)}
.ad-card b{font-size:14px;line-height:1.5}
.ad-card small{font-size:11px;opacity:.88;line-height:1.5}
.ad-logo{width:54px;height:54px;border-radius:16px;background:rgba(255,255,255,.22);display:grid;place-items:center;font-size:24px;font-weight:900;overflow:hidden}
.ad-logo img{width:100%;height:100%;object-fit:cover}
.ad-1{background:linear-gradient(160deg,#ff7a00,#ff4d6d)}.ad-2{background:linear-gradient(160deg,#0f1d3a,#2c4a8f)}.ad-3{background:linear-gradient(160deg,#0ea5a4,#0f766e)}
.ad-empty{background:repeating-linear-gradient(135deg,#f8fafc,#f8fafc 10px,#f1f5f9 10px,#f1f5f9 20px)!important;color:#475569;border:2px dashed #cbd5e1;box-shadow:none}
.ad-empty .ad-logo{background:#e2e8f0;color:#64748b}
/* حباب‌های شفاف و خط درخشان */
@keyframes hbFloat{0%,100%{transform:translate(0,0) scale(1)}50%{transform:translate(16px,-14px) scale(1.14)}}
@keyframes hShine{0%{transform:translateX(-160%) skewX(-18deg)}55%,100%{transform:translateX(420%) skewX(-18deg)}}
.hero-fx{position:absolute;pointer-events:none;z-index:0}
.hb1,.hb2,.hb3,.hb4{border-radius:50%;animation:hbFloat 7s ease-in-out infinite}
.hb1{width:150px;height:150px;background:rgba(255,122,0,.13);left:-40px;top:-50px}
.hb2{width:90px;height:90px;background:rgba(37,99,235,.10);right:30%;bottom:-30px;animation-delay:1.2s}
.hb3{width:60px;height:60px;background:rgba(14,165,164,.14);left:36%;top:14px;animation-delay:2.4s}
.hb4{width:120px;height:120px;background:rgba(124,58,237,.09);right:-30px;top:30%;animation-delay:3.4s}
.hshine{top:0;bottom:0;width:22%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.85),transparent);animation:hShine 6s ease-in-out infinite;z-index:2}
@media(max-width:860px){
  .hero-grid{grid-template-columns:1fr;gap:14px}
  .ad-card{min-height:150px;padding:10px 6px}.ad-logo{width:44px;height:44px;font-size:20px}.ad-card b{font-size:12.5px}
}
@media (prefers-reduced-motion:reduce){.hb1,.hb2,.hb3,.hb4,.hshine{animation:none}}


/* بنر: لایه‌ی نازک صورتی زیر متن و کادرها؛ سه کادر تا لبه‌ی پایین بنر کشیده شدند */
.store-hero.hero-b{background:linear-gradient(135deg,#fff5f8,#ffe9f0 55%,#fff1f6)!important;border-color:#fbd5e1!important}
.hero-fx.hshine{background:linear-gradient(90deg,transparent,rgba(255,255,255,.75),transparent)}
@media(min-width:861px){
  .store-hero.hero-b{padding-bottom:0!important}
  .hero-ads{margin-bottom:0}
  .ads-row{align-items:stretch}
  .ad-card{min-height:250px;border-radius:18px 18px 0 0;padding-bottom:26px;box-shadow:0 -4px 18px rgba(15,29,58,.12)}
  .ad-card:hover{transform:translateY(-4px)}
  .hero-grid .store-hero-content{padding-bottom:26px!important}
}
@media(max-width:860px){.store-hero.hero-b{padding-bottom:18px!important}.ad-card{min-height:170px}}


/* گوشی: تیتر بنر کمی بزرگ‌تر؛ مانیتور: صورتی کم‌رنگ‌تر */
@media(max-width:860px){.hero-grid h1{font-size:26px!important}}
@media(min-width:861px){
  .store-hero.hero-b{background:linear-gradient(135deg,#fffafc,#fff2f6 55%,#fffafc)!important;border-color:#fde4ec!important}
}


/* کادرهای تبلیغاتی: بزرگ‌تر، از بالا کشیده، با فاصله از لبه‌ی پایین بنر */
@media(min-width:861px){
  .store-hero.hero-b{padding:22px 22px 24px!important}
  .hero-ads{align-self:stretch}
  .ads-row{height:100%}
  .ad-card{min-height:290px;border-radius:20px!important;padding:18px 10px!important;box-shadow:0 12px 26px rgba(15,29,58,.16)!important}
  .ad-logo{width:64px;height:64px;font-size:28px}
  .ad-card b{font-size:16px}
  .ad-card small{font-size:12px}
  .hero-grid .store-hero-content{padding-bottom:10px!important}
}


/* کادرهای تبلیغاتی: کمی بالاتر، با فاصله‌ی بیشتر از لبه‌ی پایین بنر */
@media(min-width:861px){
  .store-hero.hero-b{padding:12px 22px 38px!important}
  .ad-card{min-height:268px}
  .hero-grid{align-items:start}
  .hero-grid .store-hero-content{align-self:center}
}
@media(max-width:860px){.store-hero.hero-b{padding-bottom:26px!important}}


/* متن‌های چرخان بنر: چهار متن در یک خانه روی هم؛ ارتفاع ثابت و محو شدن نرم */
.hero-rot{display:grid;width:100%}
.hero-rot .rv{grid-area:1/1;opacity:0;visibility:hidden;transition:opacity .6s ease,visibility .6s;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.hero-rot .rv.on{opacity:1;visibility:visible}
.hero-rot h1{font-size:clamp(20px,3vw,34px)!important;line-height:1.7!important;margin:10px 0 8px!important;color:#0f1d3a!important;text-align:center!important}
.hero-rot p{max-width:560px;color:#475569!important;text-align:center!important;margin:0 auto 14px!important;line-height:2!important}
@media(max-width:860px){.hero-rot h1{font-size:24px!important}.hero-rot p{font-size:13px}}
@media (prefers-reduced-motion:reduce){.hero-rot .rv{transition:none}}


/* گوشی: «بازگشت به سایت» اولین گزینه‌ی نوار دسته‌هاست (قبلاً آخر نوار و از دید بیرون بود) */
@media(max-width:900px){.st-catnav .st-back{background:#0f1d3a!important;color:#fff!important;border-color:#0f1d3a!important;font-weight:800}}
