/* =============================================================
   NEXORA SHOP — RETAIL / EDITORIAL REDESIGN
   Visual layer only. Does not modify commerce/business logic.
   ============================================================= */
:root{
  --neo-bg:#f4f6fb;
  --neo-surface:#ffffff;
  --neo-ink:#111827;
  --neo-muted:#697386;
  --neo-line:#e5e9f0;
  --neo-dark:#0d1424;
  --neo-dark-2:#131d31;
  --neo-blue:#315efb;
  --neo-cyan:#12b8c7;
  --neo-red:#e54b4b;
  --neo-green:#159b70;
  --neo-shadow:0 20px 60px rgba(20,30,55,.10);
  --neo-shadow-lg:0 30px 90px rgba(20,30,55,.16);
}

html{background:var(--neo-bg)}
body{
  background:
    radial-gradient(circle at 8% 6%,rgba(49,94,251,.08),transparent 22%),
    radial-gradient(circle at 92% 10%,rgba(18,184,199,.07),transparent 20%),
    linear-gradient(180deg,#f7f8fb 0%,#f4f6fb 58%,#eef1f7 100%);
  color:var(--neo-ink);
}
body::selection{background:#dce6ff;color:#172554}

/* Header: full-width commerce shell rather than floating cafe-style pill */
.topbar{
  position:sticky;top:0;z-index:80;
  width:100%;margin:0;padding:12px max(24px,calc((100% - 1420px)/2));
  padding-top:46px;
  border:0;border-radius:0;
  background:rgba(13,20,36,.95);
  box-shadow:0 12px 45px rgba(5,12,24,.17);
  backdrop-filter:blur(18px);
  display:grid;grid-template-columns:auto 1fr auto;grid-template-rows:auto auto;
  gap:12px 28px;
}
.topbar::before{
  content:'ارسال سریع  •  ضمانت بازگشت  •  پشتیبانی واقعی  •  قیمت و موجودی لحظه‌ای';
  position:absolute;inset:0 0 auto 0;height:32px;
  display:flex;align-items:center;justify-content:center;
  background:linear-gradient(90deg,#111a2c,#15284a,#111a2c);
  color:#afbdd6;font-size:9px;font-weight:700;letter-spacing:.06em;
  border-bottom:1px solid rgba(255,255,255,.07);
}
.brand{gap:12px}
.brand-mark{
  width:44px;height:44px;border-radius:13px;
  background:linear-gradient(135deg,#315efb,#14b8c7);
  color:#fff;border:0;box-shadow:0 10px 26px rgba(49,94,251,.28);
}
.brand-mark svg{width:21px;stroke-width:2.25}
.brand b{color:#fff;font-size:14px;letter-spacing:.18em}
.brand small{color:#98a8c3;font-size:8px;letter-spacing:.18em}
.desktop-nav{grid-column:1/-1;grid-row:2;justify-content:flex-start;gap:8px;padding-top:6px;border-top:1px solid rgba(255,255,255,.07)}
.desktop-nav a{
  padding:8px 13px;border-radius:9px;color:#aebbd0;font-size:12px;font-weight:700;transition:.2s ease;
}
.desktop-nav a:hover{background:rgba(255,255,255,.06);color:#fff}

.nav-actions{gap:7px}
.icon-btn{
  width:40px;height:40px;border-radius:11px;border-color:rgba(255,255,255,.10);
  background:rgba(255,255,255,.045);color:#e1e7f0;
}
.icon-btn:hover{transform:translateY(-2px);border-color:rgba(102,151,255,.5);background:rgba(49,94,251,.14)}
#cart-count{background:var(--neo-red);border-color:#0d1424;box-shadow:0 4px 12px rgba(229,75,75,.35)}

.page-shell{width:min(1420px,calc(100% - 42px));margin:30px auto 72px}

/* Home showcase */
.home-showcase{
  position:relative;overflow:hidden;margin-bottom:22px;padding:16px;
  border:1px solid #dfe5ef;border-radius:28px;
  background:linear-gradient(135deg,#0d1424 0%,#141f35 62%,#10264a 100%);
  box-shadow:var(--neo-shadow-lg);
}
.home-showcase::before{
  content:'';position:absolute;inset:-30% auto auto -10%;width:55%;height:150%;
  background:radial-gradient(circle,rgba(49,94,251,.22),transparent 62%);pointer-events:none;
}
.home-showcase-head{position:relative;z-index:2;padding:10px 12px 16px;border-bottom:1px solid rgba(255,255,255,.08)}
.home-showcase-head h2{font-size:25px;color:#fff;letter-spacing:-.03em}
.home-showcase-en{color:#7ea2ff}
.home-showcase-meta span{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.09);color:#b4c2d8}
.home-showcase-media{border:1px solid rgba(255,255,255,.08);border-radius:22px;background:#0a1020;box-shadow:inset 0 0 0 1px rgba(255,255,255,.02)}
.home-showcase-media::after{background:linear-gradient(90deg,rgba(5,10,19,.48),transparent 45%,rgba(49,94,251,.10))}
.home-showcase-copy h2{color:#fff}
.home-showcase-copy > p:not(.home-showcase-en){color:#aab7cc}
.home-showcase-bottom > strong{color:#fff}
.home-showcase-progress{background:rgba(255,255,255,.08)}
.home-showcase-progress i{background:linear-gradient(90deg,#315efb,#12b8c7)}

/* Hero */
.hero{
  min-height:560px;border:1px solid #dfe5ef;border-radius:30px;overflow:hidden;
  background:linear-gradient(115deg,#ffffff 0%,#fbfcff 46%,#eef4ff 100%);
  box-shadow:var(--neo-shadow);
  grid-template-columns:1.02fr .98fr;
}
.hero-copy{padding:70px 68px}
.eyebrow{color:#4a5a73;font-size:10px;font-weight:800;letter-spacing:.14em}
.eyebrow::before{background:linear-gradient(90deg,#315efb,#12b8c7)!important}
.hero h1{font-size:clamp(46px,5.4vw,82px);line-height:1.02;color:#0f172a;letter-spacing:-.065em;max-width:720px;margin:22px 0 17px}
.hero h1 span{color:#315efb}
.hero p{color:#5f6c80;max-width:650px;font-size:14px;line-height:2.15}
.hero-actions{gap:10px;margin-top:28px}
.btn{border-radius:12px;font-weight:800}
.btn-primary{background:linear-gradient(135deg,#315efb,#244bd1)!important;border-color:#315efb!important;box-shadow:0 10px 25px rgba(49,94,251,.22)}
.btn-ghost{background:#fff;border-color:#dce2ec;color:#25324a;box-shadow:0 4px 14px rgba(20,30,55,.05)}
.btn-ghost:hover{border-color:#a9b7ca;background:#f8faff}
.hero-visual{min-height:560px;background:linear-gradient(135deg,#0d1424,#15294b);padding:18px}
.hero-visual::before{display:none}
.generic-hero-art{
  height:100%;min-height:520px;border-radius:24px;
  background:
    radial-gradient(circle at 78% 20%,rgba(18,184,199,.30),transparent 18%),
    radial-gradient(circle at 23% 76%,rgba(49,94,251,.30),transparent 24%),
    linear-gradient(145deg,#0f172a,#12243c 54%,#0c1830);
  box-shadow:inset 0 0 80px rgba(0,0,0,.25);
}
.generic-hero-art::after{inset:7%;border-color:rgba(255,255,255,.07);border-radius:28px;transform:rotate(-5deg)}
.generic-hero-art::before{content:'';position:absolute;width:180px;height:180px;border-radius:50%;border:1px solid rgba(255,255,255,.08);top:18%;left:15%;box-shadow:0 0 0 30px rgba(255,255,255,.012),0 0 0 60px rgba(255,255,255,.008)}
.generic-hero-art span{font-size:clamp(58px,8vw,110px);letter-spacing:.13em;color:#fff;text-shadow:0 16px 40px rgba(0,0,0,.30)}
.generic-hero-art small{bottom:10%;color:#9db1d2;font-size:9px}
.hero-badge{right:30px;bottom:30px;border:1px solid rgba(255,255,255,.10);background:rgba(11,18,31,.76);box-shadow:0 12px 28px rgba(0,0,0,.18)}
.hero-badge strong{color:#74a2ff;font-size:16px}
.hero-badge span{color:#a5b3c8}

/* Stats strip */
.stats-band{margin-top:28px;border:1px solid #dfe5ef;border-radius:20px;background:#fff;box-shadow:var(--neo-shadow);overflow:hidden}
.stat{padding:20px 18px;border-inline-start:1px solid #edf0f5}
.stat:first-child{border-inline-start:0}
.stat strong{color:#0f172a;font-size:21px}
.stat span{color:#7a8698;font-size:9px;margin-top:4px}

/* Sections */
.section-head{margin:54px 0 18px;align-items:end}
.section-head h2{color:#111827;font-size:30px;letter-spacing:-.04em}
.section-head p{color:#7a8698}
.section-link{color:#315efb;font-weight:800}

/* Product grid / card */
.product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.product-card{
  background:#fff;border:1px solid #e1e6ee;border-radius:20px;box-shadow:0 8px 26px rgba(25,35,60,.05);overflow:hidden;
  transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease;
}
.product-card:hover{transform:translateY(-8px);border-color:#c8d3e4;box-shadow:0 24px 42px rgba(25,35,60,.12)}
.product-image{height:285px;background:#f7f9fc;border-bottom:1px solid #edf0f4}
.product-image::after{background:linear-gradient(180deg,transparent 64%,rgba(12,20,35,.05))}
.product-image img{filter:none;mix-blend-mode:multiply;transition:transform .35s ease}
.product-card:hover .product-image img{transform:scale(1.06)}
.product-pill{left:12px;top:12px;background:#fff;color:#e34a4a;border:1px solid #f1d0d0;box-shadow:0 5px 12px rgba(20,30,55,.06);font-weight:900}
.product-save{right:12px;top:12px;background:rgba(255,255,255,.92);color:#49566e;border-color:#e2e7ef}
.product-save.is-saved{background:#eef3ff;color:#315efb;border-color:#cbd8ff}
.product-info{padding:16px}
.product-info h3{color:#172033;font-size:15px;line-height:1.6;margin:6px 0 8px;min-height:48px}
.product-meta{color:#8590a2;font-size:9px}
.product-meta span:nth-child(1){color:#415168;font-weight:800}
.product-price{margin-top:15px;padding-top:13px;border-top:1px solid #edf0f4}
.product-price strong{color:#111827;font-size:18px}
.product-price del{color:#a5adbb;font-size:9px}
.product-actions{gap:7px;margin-top:12px}
.product-actions .btn{flex:1;justify-content:center;min-height:40px}
.product-compare-fallback{margin-top:10px}
.product-compare-fallback .ultimate-icon-chip{color:#6b7280;border-color:#e3e8ef;background:#fafbfc}

/* Empty / feedback */
.product-empty-state,.empty{background:#fff;border:1px dashed #cfd8e7;border-radius:20px;color:#6d788a;box-shadow:0 8px 25px rgba(25,35,60,.04)}
.product-empty-icon{background:#eef3ff;color:#315efb;border:1px solid #dbe5ff}

/* Shop controls */
.shop-toolbar{padding:12px;border:1px solid #dfe5ef;border-radius:18px;background:#fff;box-shadow:var(--neo-shadow);gap:10px}
.searchbox input,.field input,.field textarea,.field select,.global-searchbox input{background:#f9fafc;border:1px solid #dfe4ec;color:#182235;border-radius:11px}
.searchbox input:focus,.field input:focus,.field textarea:focus,.field select:focus,.global-searchbox input:focus{border-color:#8ca7ff;box-shadow:0 0 0 4px rgba(49,94,251,.08)}
.searchbox svg{color:#7f8ba1}
.filter-chip{background:#f6f8fb;color:#5f6b7e;border-color:#e1e6ee}
.filter-chip:hover{border-color:#b9c7df;color:#315efb;background:#f2f6ff}
.filter-chip.active{background:#315efb!important;color:#fff!important;border-color:#315efb!important;box-shadow:0 8px 18px rgba(49,94,251,.18)}

/* Product detail */
.product-detail{gap:28px}
.panel,.story-card{
  background:#fff;border:1px solid #dfe5ef;border-radius:24px;box-shadow:var(--neo-shadow);color:#111827
}
.product-detail-image{min-height:560px;background:#f7f9fc;border-color:#e1e6ee;border-radius:22px}
.product-detail-image img{object-fit:contain;padding:26px;mix-blend-mode:multiply}
.product-detail-copy h2{font-size:40px;color:#111827;letter-spacing:-.045em}
.product-detail-copy p{color:#67748a}
.detail-price{color:#315efb!important;font-size:30px;font-weight:900;margin-top:18px}
.detail-chip{background:#f8fafc;border:1px solid #e3e8ef;color:#647083;border-radius:14px}
.detail-chip strong{color:#172033}

/* Story */
.story-card{margin-top:56px;grid-template-columns:.95fr 1.05fr;overflow:hidden}
.generic-story-art{min-height:460px;background:linear-gradient(145deg,#0d1424,#1b3560)}
.generic-story-art span{color:#fff}
.generic-story-art::after{border-color:rgba(255,255,255,.08)}
.story-copy{padding:52px}
.story-copy h2{color:#101827;font-size:34px;line-height:1.25;letter-spacing:-.04em}
.story-copy>p{color:#68758a;line-height:2}
.story-point{padding:13px;border:1px solid #e5e9f0;border-radius:14px;background:#fbfcfe}
.mini-icon{background:#eef3ff;color:#315efb;border-color:#dce5ff}
.story-point h4{color:#1b2638}
.story-point p{color:#768196}

/* Admin */
.admin-top{margin-bottom:18px}
.admin-top h1{color:#111827;font-size:46px;letter-spacing:-.05em}
.admin-top p{color:#6d788b}
.admin-shell{grid-template-columns:250px 1fr;gap:18px}
.admin-side{top:102px;padding:10px;background:#0d1424;border:1px solid #1d2a40;border-radius:20px;box-shadow:0 18px 45px rgba(13,20,36,.10)}
.admin-side button{color:#a9b5c8;border-radius:11px;padding:11px 12px}
.admin-side button:hover{background:rgba(49,94,251,.12);color:#dce7ff;border-color:rgba(49,94,251,.24)}
.admin-side button.active{background:linear-gradient(135deg,rgba(49,94,251,.20),rgba(18,184,199,.10));color:#fff;border-color:rgba(93,133,255,.32);box-shadow:inset 3px 0 0 #315efb}
.admin-side button svg{color:#7f9bff}
.admin-main .panel{box-shadow:0 12px 34px rgba(25,35,60,.06)}
.panel-head{margin-bottom:18px}
.panel-head h3{color:#172033}
.panel-head p{color:#768196!important}
.status{border-radius:999px;background:#f2f5fa;border:1px solid #e0e6ef;color:#5f6b7c;padding:5px 9px}
.table-wrap{border:1px solid #e1e6ee;border-radius:16px;overflow:auto;background:#fff}
table thead th{background:#f7f9fc;color:#667287;border-bottom:1px solid #e1e6ee;font-size:10px}
table td{border-bottom-color:#edf0f4;color:#273348}
table tbody tr:hover{background:#fbfcff}

/* Modals / drawers */
.modal-backdrop,.drawer-backdrop{background:rgba(8,14,26,.62);backdrop-filter:blur(7px)}
.modal,.drawer-panel{background:#fff;border:1px solid #dde4ee;border-radius:22px;box-shadow:0 36px 110px rgba(7,14,27,.30);color:#111827}
.modal-head,.drawer-head{border-bottom-color:#e9edf3}
.modal-head h3,.drawer-head h3{color:#131d2e}
.modal-body{padding:24px}
.drawer-panel{border-inline-start:0;transform:translateX(100%)}
.drawer.open .drawer-panel{transform:translateX(0)}
.drawer-head{background:#fbfcfe}
.drawer-items{background:#fff}
.cart-item{border-bottom-color:#edf0f4}
.cart-item h4{color:#1e293b}
.cart-item p{color:#315efb;font-weight:800}
.stepper{border:1px solid #dde3ec;background:#f8fafc}
.stepper button{color:#315efb}
.drawer-foot{background:#fbfcfe;border-top-color:#e6eaf0}

/* Search modal / auth */
.search-modal{background:#fff}
.search-modal .global-searchbox{background:#f7f9fc;border-color:#e2e7ef}
.search-result{border-color:#e5e9ef;background:#fff}
.search-result:hover{background:#f8faff;border-color:#cfdafb}
.search-result-price{color:#315efb}
.auth-tabs{background:#f2f5f9;border-color:#e0e6ee;border-radius:12px}
.auth-tab{color:#6a7588}
.auth-tab.active{background:#fff;color:#315efb;box-shadow:0 4px 12px rgba(20,30,55,.07)}

/* Support */
.support-phone-card,.support-ticket-section{background:linear-gradient(135deg,#fff,#f7f9fd);border:1px solid #e0e6ee;border-radius:20px;box-shadow:0 8px 26px rgba(25,35,60,.05)}
.support-phone-card h3,.support-ticket-section h2{color:#172033}
.support-phone-card p,.support-ticket-section p{color:#728096}

/* Toast */
.toast{background:#121a29;border-color:#2b3850;color:#eef4ff;box-shadow:0 18px 50px rgba(8,14,26,.24)}
.toast.success{border-color:rgba(21,155,112,.45)}
.toast.error{border-color:rgba(229,75,75,.45)}

/* Footer */
.site-footer{width:min(1420px,calc(100% - 42px));padding-top:52px;margin-bottom:28px;border-top:1px solid #dce2eb}
.site-footer{color:#667286}
.footer-grid{grid-template-columns:1.4fr .8fr .8fr .8fr;gap:28px}
.footer-brand .brand-mark{box-shadow:none}
.site-footer h4{color:#162033}
.site-footer a,.site-footer span{color:#6d788b}
.footer-bottom{border-top:1px solid #e0e5ec;color:#7a8597}

/* tiny details */
.nav-badge{background:#315efb;color:#fff}
.live-badge{border:1px solid rgba(21,155,112,.22)!important;background:#effaf6!important;color:#13875f!important}
input[type="checkbox"]{accent-color:#315efb}
input[type="range"]{accent-color:#315efb}
::-webkit-scrollbar{width:9px;height:9px}
::-webkit-scrollbar-track{background:#eef1f5}
::-webkit-scrollbar-thumb{background:#c7cfdb;border-radius:999px}
::-webkit-scrollbar-thumb:hover{background:#aeb9c8}

@media (max-width:980px){
  .page-shell{width:min(100% - 26px,920px)}
  .topbar{padding-inline:14px}
  .hero{grid-template-columns:1fr}
  .hero-visual{min-height:420px}
  .generic-hero-art{min-height:380px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .admin-shell{grid-template-columns:1fr}
  .admin-side{position:static;display:flex;overflow:auto;gap:6px;padding:8px}
  .admin-side button{flex:0 0 auto;white-space:nowrap}
  .story-card{grid-template-columns:1fr}
}
@media (max-width:680px){
  .topbar{grid-template-columns:1fr auto;grid-template-rows:auto auto;padding-top:40px}
  .topbar::before{font-size:8px}
  .desktop-nav{display:none}
  .brand b{font-size:12px}
  .brand small{display:none}
  .nav-actions .icon-btn{width:36px;height:36px}
  .nav-actions{gap:4px}
  .page-shell{margin-top:18px;margin-bottom:44px}
  .home-showcase{padding:10px;border-radius:20px}
  .home-showcase-slide{grid-template-columns:1fr}
  .home-showcase-media{min-height:300px}
  .hero{border-radius:22px}
  .hero-copy{padding:42px 24px 34px}
  .hero h1{font-size:44px}
  .hero-visual{padding:10px;min-height:330px}
  .generic-hero-art{min-height:310px}
  .stats-band{grid-template-columns:repeat(2,1fr)}
  .stat{border-block-start:1px solid #edf0f4}
  .product-grid{grid-template-columns:1fr 1fr;gap:10px}
  .product-image{height:205px}
  .product-info{padding:12px}
  .product-info h3{font-size:13px;min-height:42px}
  .product-price strong{font-size:15px}
  .product-actions .btn{font-size:10px;min-height:37px;padding-inline:8px}
  .section-head h2{font-size:25px}
  .story-copy{padding:28px 22px}
  .story-copy h2{font-size:27px}
  .site-footer{width:calc(100% - 26px)}
  .footer-grid{grid-template-columns:1fr 1fr}
}
