/* ==========================================================================
   قالب فروشگاه — «کارت»
   رنگ‌ها: لاجوردی + جوهری + طلایی (رنگ چیپ کارت)
   فونت: استعداد (Estedad) — داخل سایت، بدون وابستگی به Google Fonts
   ========================================================================== */
@font-face{font-family:'Estedad';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('../fonts/estedad-arabic-wght-normal.woff2') format('woff2');
  unicode-range:U+0600-06FF,U+0750-077F,U+200C-200E,U+2010-2011,U+FB50-FDFF,U+FE70-FEFC}
@font-face{font-family:'Estedad';font-style:normal;font-weight:100 900;font-display:swap;
  src:url('../fonts/estedad-latin-wght-normal.woff2') format('woff2');
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --paper:#F4F3F9;        /* زمینه‌ی صفحه */
  --surface:#FFFFFF;
  --ink:#1F1B3D;          /* متن اصلی و فوتر */
  --ink-2:#2E2960;
  --brand:#4C3BCF;        /* لاجوردی: دکمه‌ها و لینک‌ها */
  --brand-2:#3D2EB5;
  --brand-soft:#ECEAFD;
  --gold:#F2B33D;         /* چیپ کارت، نشان‌ها */
  --gold-soft:#FFF4DC;
  --line:#E5E3EF;
  --muted:#6E6A85;
  --text-2:#4A4664;
  --sale:#E5484D;
  --ok:#15803D; --ok-soft:#DCFCE7;
  --wait:#A16207; --wait-soft:#FEF3C7;
  --err:#B91C1C; --err-soft:#FEE2E2;
  --radius:14px;
  --radius-sm:10px;
  --shadow:0 14px 34px -14px rgba(31,27,61,.28);
  --shadow-sm:0 1px 2px rgba(31,27,61,.06);

  /* نام‌های قدیمی (برای قالب‌ها و پلاگین‌هایی که از آن‌ها استفاده می‌کنند) */
  --primary:var(--ink);
  --primary-2:var(--ink-2);
  --accent:#DCD8FF;
  --accent-deep:var(--brand);
  --card:var(--surface);
  --bg:var(--paper);
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{overflow-x:hidden}
body{font-family:'Estedad',Tahoma,system-ui,sans-serif;background:var(--paper);color:var(--ink);
  line-height:1.85;font-size:15px;font-feature-settings:"ss01"}
a{color:inherit;text-decoration:none}
img{max-width:100%;display:block}
button,input,textarea,select{font-family:inherit}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:6px}
.container{max-width:1180px;margin:0 auto;padding:0 20px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* ---------- هدر ---------- */
.site-header{background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.site-header__inner{display:flex;align-items:center;gap:28px;height:72px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:19px;color:var(--ink);flex-shrink:0}
.brand__logo{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
  background:var(--brand);color:#fff;font-size:19px;font-weight:800;position:relative;overflow:hidden}
.brand__logo::after{content:"";position:absolute;width:12px;height:9px;border-radius:2px;background:var(--gold);
  left:5px;bottom:6px;opacity:.95}
.brand__img{max-height:44px;max-width:170px;object-fit:contain}

.mainnav{flex:1}
.mainnav__list{display:flex;gap:4px;list-style:none}
.mainnav__list a{display:block;padding:8px 14px;border-radius:9px;color:var(--text-2);font-weight:600;font-size:14.5px;transition:background .15s,color .15s}
.mainnav__list a:hover{background:var(--paper);color:var(--ink)}
.mainnav__list a[aria-current="page"]{color:var(--brand);background:var(--brand-soft)}

.header-actions{display:flex;align-items:center;gap:6px;margin-inline-start:auto}
.action{position:relative;height:42px;min-width:42px;border-radius:11px;display:inline-flex;align-items:center;justify-content:center;gap:7px;
  color:var(--ink);transition:background .15s;padding:0 10px;font-size:14px;font-weight:700}
.action:hover{background:var(--paper)}
.action--login{border:1px solid var(--line);padding:0 14px}
.action__phone{direction:ltr;font-size:13px}
.action__count{position:absolute;top:3px;left:3px;background:var(--brand);color:#fff;font-size:10.5px;font-weight:700;
  min-width:18px;height:18px;padding:0 4px;border-radius:9px;display:grid;place-items:center;line-height:1}
.action__count.is-empty{background:var(--line);color:var(--muted)}

@media(max-width:860px){
  .site-header__inner{height:60px;gap:12px;flex-wrap:wrap}
  .brand{font-size:17px}
  .brand__logo{width:34px;height:34px;font-size:17px}
  .action__phone{display:none}
  .action--user{padding:0}
  .mainnav{order:3;flex-basis:100%;margin:0 -20px;overflow-x:auto;scrollbar-width:none;border-top:1px solid var(--line)}
  .mainnav::-webkit-scrollbar{display:none}
  .mainnav__list{padding:6px 16px;gap:2px;white-space:nowrap}
  .mainnav__list a{padding:5px 12px;font-size:13.5px}
}
@media(max-width:400px){.action__label{display:none}.action--login{padding:0 10px}}

/* ---------- دکمه‌ها ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;cursor:pointer;
  font-weight:700;border-radius:var(--radius-sm);transition:background .15s,border-color .15s,color .15s,transform .1s;
  font-size:15px;padding:11px 24px;line-height:1.6;text-align:center}
.btn:active{transform:translateY(1px)}
.btn[disabled]{opacity:.5;cursor:not-allowed;transform:none}
.btn--primary{background:var(--brand);color:#fff}
.btn--primary:hover{background:var(--brand-2)}
.btn--lg{padding:13px 30px;font-size:15.5px}
.btn--ghost{background:var(--surface);border-color:var(--line);color:var(--ink)}
.btn--ghost:hover{border-color:var(--brand);color:var(--brand)}
.btn--quiet{background:transparent;color:var(--ink);border-color:var(--line)}
.btn--quiet:hover{background:var(--surface);border-color:var(--ink)}
.btn--add{width:100%;background:var(--ink);color:#fff;padding:9px 12px;font-size:13.5px;margin-top:12px}
.btn--add:hover{background:var(--brand)}
.btn--add[disabled]{background:var(--line);color:var(--muted);opacity:1}

/* ---------- هیرو + دسته‌ی کارت‌ها ---------- */
.hero{padding:56px 0 0;overflow:hidden}
.hero__inner{display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:40px;min-height:380px}
.hero__text h1{font-size:44px;font-weight:850;line-height:1.45;letter-spacing:-.4px;margin-bottom:18px;max-width:13em;text-wrap:balance}
.hero__text p{color:var(--text-2);font-size:16.5px;line-height:2.05;max-width:34em;margin-bottom:30px}
.hero__actions{display:flex;gap:10px;flex-wrap:wrap}

.hero__art{display:grid;place-items:center;min-height:340px}
.deck{position:relative;width:330px;aspect-ratio:1.586;margin-left:60px}
.deck__card{position:absolute;inset:0;border-radius:18px;padding:22px 24px;color:#fff;display:flex;flex-direction:column;
  justify-content:flex-end;gap:4px;box-shadow:0 24px 40px -18px rgba(31,27,61,.55);transform-origin:20% 110%;
  animation:deal .9s cubic-bezier(.2,.8,.2,1) both}
.deck__card::before{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,rgba(255,255,255,.16),rgba(255,255,255,0) 45%)}
.deck__card--ink{background:var(--ink);--r:-15deg;--x:-78px;--y:26px;animation-delay:.05s}
.deck__card--gold{background:var(--gold);color:var(--ink);--r:-7deg;--x:-38px;--y:8px;animation-delay:.15s}
.deck__card--brand{background:var(--brand);--r:3deg;--x:22px;--y:-10px;animation-delay:.25s}
.deck__card{transform:translate(var(--x),var(--y)) rotate(var(--r))}
@keyframes deal{from{transform:translate(0,30px) rotate(0)}to{transform:translate(var(--x),var(--y)) rotate(var(--r))}}
.deck__chip{position:absolute;top:24px;right:24px;width:44px;height:33px;border-radius:7px;
  background:linear-gradient(135deg,#F8CF6E,#E3A12A);box-shadow:inset 0 0 0 1px rgba(0,0,0,.08)}
.deck__chip::before,.deck__chip::after{content:"";position:absolute;inset:8px 0;border-top:1px solid rgba(80,50,0,.35);border-bottom:1px solid rgba(80,50,0,.35)}
.deck__chip::after{inset:0 14px;border:0;border-left:1px solid rgba(80,50,0,.35);border-right:1px solid rgba(80,50,0,.35)}
.deck__type{font-size:13px;font-weight:600;opacity:.85}
.deck__num{direction:ltr;text-align:right;font-size:19px;font-weight:700;letter-spacing:1.5px}
.deck__card--ink .deck__type,.deck__card--gold .deck__type{position:absolute;top:20px;right:24px}
.deck__card--ink .deck__num,.deck__card--gold .deck__num{position:absolute;top:44px;right:24px;font-size:14px;opacity:.7}
.deck__name{position:absolute;top:26px;left:24px;font-size:13px;font-weight:800;opacity:.9}

.facts{list-style:none;display:grid;grid-template-columns:repeat(3,1fr);margin:48px 0 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.fact{display:flex;align-items:center;gap:14px;padding:20px 4px}
.fact + .fact{border-right:1px solid var(--line);padding-right:24px}
.fact svg{color:var(--brand);flex-shrink:0}
.fact strong{display:block;font-size:14.5px;font-weight:800;line-height:1.6}
.fact small{color:var(--muted);font-size:12.5px}

@media(max-width:860px){
  .hero{padding-top:28px}
  .hero__inner{grid-template-columns:1fr;gap:10px;min-height:0}
  .hero__text h1{font-size:30px}
  .hero__text p{font-size:15px;margin-bottom:22px}
  .hero__art{order:-1;min-height:0;padding:18px 0 36px}
  .deck{width:205px;margin-left:50px}
  .deck__card{padding:16px 18px;border-radius:14px}
  .deck__card--ink{--x:-54px;--y:18px}
  .deck__card--gold{--x:-27px;--y:6px}
  .deck__card--brand{--x:14px;--y:-8px}
  .deck__chip{top:16px;right:18px;width:34px;height:25px}
  .deck__num{font-size:15px}
  .deck__name{top:18px;left:18px;font-size:11.5px}
  .deck__card--ink .deck__type,.deck__card--gold .deck__type{top:12px;right:18px;font-size:11.5px}
  .deck__card--ink .deck__num,.deck__card--gold .deck__num{top:32px;right:18px;font-size:12px}
  .facts{margin-top:28px}
  .fact{flex-direction:column;align-items:flex-start;gap:4px;padding:12px 0}
  .fact + .fact{padding-right:12px}
  .fact strong{font-size:13px}
  .fact small{font-size:11.5px;line-height:1.7}
}

/* ---------- محصولات ---------- */
.archive{padding:48px 20px 72px}
.archive__header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:22px}
.archive__header h2{font-size:24px;font-weight:850}
.archive__count{color:var(--muted);font-size:14px}

.products{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}
@media(max-width:1000px){.products{grid-template-columns:repeat(3,1fr)}}
@media(max-width:700px){.products{grid-template-columns:1fr 1fr;gap:12px}}

.product{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);display:flex;flex-direction:column;
  overflow:hidden;transition:border-color .15s,box-shadow .15s}
.product:hover{border-color:#C9C3F5;box-shadow:var(--shadow)}
.product__media{position:relative;display:block;background:var(--paper);aspect-ratio:4/3;margin:8px 8px 0;border-radius:10px;padding:12px}
.product__media img{width:100%;height:100%;object-fit:contain}
.product__badge{position:absolute;top:8px;right:8px;background:var(--gold);color:var(--ink);font-size:11.5px;font-weight:800;
  padding:2px 10px;border-radius:7px;z-index:2;line-height:1.8}
.product__badge.is-sale{background:var(--sale);color:#fff}
.product__body{padding:12px 14px 14px;display:flex;flex-direction:column;flex:1}
.product__cat{color:var(--brand);font-size:12px;font-weight:700;margin-bottom:2px}
.product__title{font-size:15px;font-weight:700;line-height:1.75;margin-bottom:10px}
.product__title a:hover{color:var(--brand)}
.product__foot{margin-top:auto}
.product__price{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.product__price del{color:var(--muted);font-size:12.5px}
.product__price ins{text-decoration:none;color:var(--ink);font-weight:800;font-size:17px}
.product__price .unit{font-size:12px;font-weight:500;color:var(--muted)}
.product.is-out .product__media img{opacity:.45;filter:grayscale(.6)}
.product__stars{display:none}
@media(max-width:700px){
  .product__media{margin:6px 6px 0;padding:8px}
  .product__body{padding:10px 10px 12px}
  .product__title{font-size:13.5px;line-height:1.7}
  .product__price ins{font-size:15px}
  .btn--add{font-size:13px;padding:8px 6px;margin-top:10px}
}

/* ---------- صفحه‌ی محصول ---------- */
.single{padding:26px 20px 72px}
.breadcrumb{font-size:13px;color:var(--muted);margin-bottom:20px;display:flex;gap:8px;flex-wrap:wrap}
.breadcrumb a:hover{color:var(--brand)}
.single__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:44px;align-items:start}
.single__media{position:relative;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:36px;
  aspect-ratio:1.4;display:grid;place-items:center}
.single__media img{width:100%;height:100%;max-width:340px;object-fit:contain;border-radius:12px}
.single__media .product__badge{top:14px;right:14px}
.single__info h1{font-size:30px;font-weight:850;line-height:1.55;margin:4px 0 14px;text-wrap:balance}
.single__price{display:flex;align-items:baseline;gap:12px;margin-bottom:10px}
.single__price ins{text-decoration:none;font-size:30px;font-weight:850;color:var(--ink)}
.single__price .unit{font-size:15px;font-weight:500;color:var(--muted)}
.single__price del{color:var(--muted);font-size:16px}
.single__stock{display:flex;align-items:center;gap:8px;color:var(--ok);font-weight:600;font-size:14px;margin-bottom:22px}
.single__dot{width:8px;height:8px;border-radius:50%;background:currentColor;box-shadow:0 0 0 4px var(--ok-soft)}
.single__stock.is-out{color:var(--err)}
.single__stock.is-out .single__dot{box-shadow:0 0 0 4px var(--err-soft)}
.single__buy{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:22px}
.single__buy .btn{flex:1;min-width:200px}
.single__desc{color:var(--text-2);line-height:2.1;max-width:38em;margin-bottom:18px}
.single__notes{list-style:none;display:grid;gap:8px}
.single__notes li{position:relative;padding-right:18px;color:var(--muted);font-size:13.5px}
.single__notes li::before{content:"";position:absolute;right:2px;top:.75em;width:6px;height:6px;border-radius:2px;background:var(--gold)}
.qty{width:60px;height:50px;text-align:center;border:1px solid var(--line);border-radius:var(--radius-sm);font-size:16px}
@media(max-width:860px){
  .single__grid{grid-template-columns:1fr;gap:20px}
  .single__media{padding:22px;aspect-ratio:1.586}
  .single__info h1{font-size:23px}
  .single__price ins{font-size:25px}
}

/* ---------- فوتر ---------- */
.site-footer{background:var(--ink);color:#C9C6DD;margin-top:30px}
.footer__grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1.3fr;gap:36px;padding:52px 20px 38px}
.brand--footer{color:#fff;margin-bottom:14px}
.footer__desc{font-size:14px;line-height:2.1;color:#A8A4C3;max-width:30em}
.footer__col h4,.footer__support h4{color:#fff;font-size:15px;margin-bottom:14px;font-weight:800}
.footer__col ul{list-style:none}
.footer__col li{margin-bottom:9px}
.footer__col a{font-size:14px;color:#A8A4C3;transition:color .15s}
.footer__col a:hover{color:#fff}
.footer__support p{font-size:13.5px;line-height:2;color:#A8A4C3;margin-bottom:14px}
.footer__tg{display:inline-flex;align-items:center;gap:8px;background:var(--brand);color:#fff;border-radius:var(--radius-sm);
  padding:9px 16px;font-weight:700;font-size:14px;transition:background .15s}
.footer__tg:hover{background:var(--brand-2)}
.footer__bar{border-top:1px solid rgba(255,255,255,.08)}
.footer__bar-inner{display:flex;align-items:center;justify-content:space-between;padding:16px 20px;font-size:13px;color:#8F8AAE;gap:16px}
.footer__banks{max-width:300px;opacity:.8}
@media(max-width:900px){.footer__grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.footer__grid{grid-template-columns:1fr;gap:26px;padding-top:40px}.footer__bar-inner{flex-direction:column;text-align:center}}

/* ---------- پیام‌ها و توست ---------- */
.flash-area{margin-top:16px}
.flash{padding:11px 16px;border-radius:var(--radius-sm);margin-bottom:10px;font-weight:600;font-size:14px;border:1px solid transparent}
.flash--success{background:var(--ok-soft);color:var(--ok);border-color:#BBF7D0}
.flash--error{background:var(--err-soft);color:var(--err);border-color:#FECACA}
.cart-toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%) translateY(160%);
  background:var(--ink);color:#fff;padding:12px 22px;border-radius:12px;font-weight:600;
  font-size:14px;box-shadow:0 14px 34px rgba(31,27,61,.35);z-index:200;transition:transform .3s cubic-bezier(.2,.8,.2,1)}
.cart-toast.is-show{transform:translateX(-50%) translateY(0)}
.cart-toast.is-error{background:var(--sale)}

/* ---------- عنوان صفحه ---------- */
.cart{padding:30px 20px 72px}
.page-title{font-size:25px;font-weight:850;margin-bottom:22px;line-height:1.6}

/* ---------- سبد خرید ---------- */
.cart__grid{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}
.cart__items{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:6px 20px 20px}
.cart-row{display:grid;grid-template-columns:64px 1fr 130px 130px 36px;align-items:center;gap:14px;
  padding:16px 0;border-bottom:1px solid var(--line);transition:opacity .2s}
.cart-row__img{width:64px;height:64px;object-fit:contain;background:var(--paper);border-radius:10px;padding:6px}
.cart-row__title{font-weight:700;font-size:15px;display:block;line-height:1.7}
.cart-row__title:hover{color:var(--brand)}
.cart-row__unit{color:var(--muted);font-size:13px}
.cart-row__total{font-weight:800;color:var(--ink);font-size:15px;text-align:left}
.cart-row__total small{font-weight:500;color:var(--muted);font-size:11px}
.cart-row__del{width:34px;height:34px;border:1px solid var(--line);border-radius:9px;background:var(--surface);color:var(--muted);
  cursor:pointer;font-size:14px;transition:.15s}
.cart-row__del:hover{background:var(--err-soft);border-color:#FECACA;color:var(--err)}
.cart-row.is-busy{opacity:.5;pointer-events:none}
.cart__update{margin-top:16px}

.cart__summary{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;position:sticky;top:92px}
.cart__summary h3{font-size:16px;font-weight:800;margin-bottom:12px}
.summary-line{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px dashed var(--line);font-size:14px;color:var(--text-2)}
.summary-line--total{border-bottom:0;border-top:1px solid var(--ink);margin-top:6px;padding-top:12px;
  font-size:16.5px;font-weight:800;color:var(--ink)}
.cart__checkout{width:100%;margin-top:16px}
.cart__continue{display:block;text-align:center;margin-top:12px;color:var(--muted);font-size:14px}
.cart__continue:hover{color:var(--brand)}

.cart-empty{text-align:center;padding:64px 20px;background:var(--surface);border:1px dashed #CFCBE3;border-radius:var(--radius)}
.cart-empty__icon{font-size:56px;margin-bottom:10px;filter:grayscale(.2)}
.cart-empty p{color:var(--muted);margin-bottom:20px;font-size:15.5px}
.cart-empty p:last-child{margin-bottom:0}

/* ---------- تسویه ---------- */
.checkout-form{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:24px}
.checkout-form h3{font-size:16px;font-weight:800;margin-bottom:16px}
.checkout-form label{display:flex;flex-direction:column;gap:7px;margin-bottom:16px;font-weight:600;font-size:13px;color:var(--text-2)}
.checkout-form input,.checkout-form textarea{font-size:14px;padding:11px 14px;
  border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper);outline:none;transition:.15s}
.checkout-form input:focus,.checkout-form textarea:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px var(--brand-soft)}
.checkout-account{display:flex;flex-direction:column;gap:4px;background:var(--paper);border:1px solid var(--line);
  border-radius:var(--radius-sm);padding:14px 16px;margin-bottom:14px}
.checkout-account__label{color:var(--muted);font-size:13px}
.checkout-account__phone{font-size:19px;font-weight:800;color:var(--ink)}
.checkout-note{color:var(--muted);font-size:13px;line-height:2}

.pay-methods{display:flex;flex-direction:column;gap:8px;margin-top:6px}
.pay-method{display:flex;align-items:center;gap:11px;border:1px solid var(--line);border-radius:var(--radius-sm);
  padding:12px 15px;cursor:pointer;background:var(--surface);transition:.15s;font-weight:600;font-size:14px}
.pay-method:hover{border-color:var(--brand)}
.pay-method.is-selected{border-color:var(--brand);background:var(--brand-soft)}
.pay-method input{width:18px;height:18px;accent-color:var(--brand)}
.pay-method--link{justify-content:space-between}
.pay-method__go{color:var(--brand);font-weight:700;font-size:13px}

/* ---------- استپر تعداد ---------- */
.qty-stepper{display:flex;align-items:center;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;background:var(--surface)}
.qty-stepper__btn{width:44px;height:50px;border:0;background:transparent;cursor:pointer;
  font-size:20px;font-weight:600;color:var(--ink);transition:background .15s;line-height:1}
.qty-stepper__btn:hover{background:var(--brand-soft);color:var(--brand)}
.qty-stepper__input{width:52px;height:50px;border:0;border-right:1px solid var(--line);
  border-left:1px solid var(--line);background:#fff;text-align:center;
  font-size:16px;font-weight:700;outline:none;-moz-appearance:textfield;appearance:textfield}
.qty-stepper__input::-webkit-outer-spin-button,.qty-stepper__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.cart-row .qty-stepper{justify-self:start}
.cart-row .qty-stepper__btn{width:36px;height:40px;font-size:17px}
.cart-row .qty-stepper__input{width:42px;height:40px;font-size:15px}

@media(max-width:820px){
  .cart__grid{grid-template-columns:1fr}
  .cart__summary{position:static}
  .cart-row{grid-template-columns:54px 1fr auto;grid-template-areas:'img info info' 'img stepper total' 'img del del';gap:8px 12px}
  .cart-row__img{grid-area:img;width:54px;height:54px}.cart-row__info{grid-area:info}
  .cart-row .qty-stepper{grid-area:stepper}
  .cart-row__total{grid-area:total;text-align:right}.cart-row__del{grid-area:del;justify-self:end}
}

/* ---------- ورود ---------- */
.auth{padding:48px 20px 72px;display:grid;place-items:center}
.auth-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow);
  padding:38px 32px;width:100%;max-width:420px;text-align:center}
.auth-card__icon{font-size:40px;margin-bottom:10px;width:68px;height:68px;margin-inline:auto;border-radius:18px;
  background:var(--brand-soft);display:grid;place-items:center}
.auth-card h1{font-size:22px;font-weight:850;margin-bottom:6px}
.auth-card__sub{color:var(--muted);font-size:14px;margin-bottom:24px;line-height:2}
.auth-form{text-align:right}
.auth-form label{display:block;font-weight:600;font-size:13px;color:var(--text-2);margin-bottom:8px}
.auth-form__btn{width:100%;margin-top:18px}
.auth-back{display:inline-block;margin-top:16px;color:var(--muted);font-size:14px}
.auth-back:hover{color:var(--brand)}

.phone-field{display:flex;flex-direction:row-reverse;border:1px solid var(--line);border-radius:var(--radius-sm);overflow:hidden;
  background:var(--paper);transition:.15s}
.phone-field:focus-within{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px var(--brand-soft)}
.phone-field__cc{background:var(--ink);color:#fff;font-weight:700;font-size:15px;padding:0 15px;display:grid;place-items:center;direction:ltr}
.phone-field__input{flex:1;min-width:0;width:100%;border:0;background:transparent;outline:none;padding:13px 15px;
  font-size:17px;letter-spacing:2px;direction:ltr;text-align:right}

.otp-input{width:100%;min-width:0;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--paper);
  padding:15px;font-size:28px;letter-spacing:14px;text-align:center;outline:none;transition:.15s;font-weight:700}
.otp-input:focus{border-color:var(--brand);background:#fff;box-shadow:0 0 0 3px var(--brand-soft)}

.demo-code{background:var(--gold-soft);border:1px dashed var(--gold);color:#7A5300;border-radius:var(--radius-sm);
  padding:13px 15px;margin-bottom:20px;font-size:14px;font-weight:600;text-align:center}
.demo-code strong{font-size:22px;letter-spacing:5px;display:inline-block;margin:0 4px;color:#5C3E00}
.demo-code small{display:block;font-weight:400;color:#9A6E12;margin-top:6px;font-size:12px}

/* ---------- حساب کاربری ---------- */
.account-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap}
.account-head .page-title{margin-bottom:4px}
.account-phone{color:var(--muted);font-size:15px;font-weight:600}
.account-section{font-size:17px;font-weight:800;margin:28px 0 14px}
.orders-list{display:grid;gap:12px}
.order-item{display:block;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:16px 20px;transition:border-color .15s}
.order-item:hover{border-color:#C9C3F5}
.order-item__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.order-item__id{font-weight:800;font-size:15px}
.order-item__products{list-style:none;display:flex;flex-direction:column;gap:4px;
  padding:10px 0;border-top:1px dashed var(--line);border-bottom:1px dashed var(--line);font-size:14px;color:var(--text-2)}
.order-item__products li{display:flex;justify-content:space-between}
.order-item__products span{color:var(--muted)}
.order-item__foot{display:flex;justify-content:space-between;align-items:center;padding-top:10px}
.order-item__total{font-weight:800;font-size:16px;color:var(--ink)}
.order-item__view{color:var(--brand);font-size:13px;font-weight:700}

.pill{display:inline-block;padding:2px 12px;border-radius:7px;font-size:12px;font-weight:700;line-height:1.9}
.pill--ok{background:var(--ok-soft);color:var(--ok)}
.pill--off{background:var(--err-soft);color:var(--err)}
.pill--wait{background:var(--wait-soft);color:var(--wait)}

.acc-order{display:flex;flex-direction:column;gap:16px}
.acc-card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px 22px}
.acc-card h3{font-size:16px;font-weight:800;margin-bottom:14px}
.acc-card__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.acc-card__head h3{margin-bottom:0}
.muted-note{color:var(--muted);font-size:14px}
.acc-card--notes{border-color:var(--brand);background:#FAF9FF}
.cust-note{background:#fff;border:1px solid var(--line);border-radius:var(--radius-sm);padding:13px 15px;margin-bottom:10px}
.cust-note:last-child{margin-bottom:0}
.cust-note__body{font-size:15px;line-height:2;color:var(--ink);white-space:pre-wrap}
.cust-note__date{font-size:12px;color:var(--muted);margin-top:6px}

/* ---------- نتیجه‌ی سفارش ---------- */
.order-success{max-width:580px;margin:10px auto;background:var(--surface);border:1px solid var(--line);border-radius:18px;
  padding:32px 30px;text-align:center}
.order-success__check{width:64px;height:64px;border-radius:50%;font-size:32px;display:grid;place-items:center;margin:0 auto 18px}
.order-success h1{font-size:22px;font-weight:850;margin-bottom:6px}
.order-success__box{text-align:right;background:var(--paper);border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin:20px 0}
.order-success__box .pill--ok{background:var(--ok-soft);color:var(--ok)}
.order-success__box .pill--off{background:var(--err-soft);color:var(--err)}
.order-success__note{color:var(--muted);font-size:14px;margin-bottom:20px}
.order-result--ok{background:var(--ok-soft);color:#16A34A}
.order-result--fail{background:var(--err-soft);color:#DC2626}
.order-result--wait{background:var(--wait-soft);color:var(--wait)}
.order-result__actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}

/* صفحه‌ی نتیجه فشرده است تا لایسنس و جزئیات روی گوشی بدون اسکرول دیده شوند */
.os-head{display:flex;align-items:center;gap:14px;text-align:right;margin-bottom:18px}
.os-head .order-success__check{width:52px;height:52px;font-size:26px;margin:0;flex-shrink:0}
.os-head__text{min-width:0}
.os-head h1{font-size:20px;margin-bottom:0;line-height:1.6}
.os-head__meta{color:var(--muted);font-size:13px}
.os-head__meta strong{color:var(--ink)}
.order-page .order-success__box{margin:0 0 14px}
.order-page .summary-line:last-child{border-bottom:0}
.order-page .lic-card--success{margin:0 0 14px}
.os-facts{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:0 0 16px;text-align:right}
.os-fact{background:var(--paper);border:1px solid var(--line);border-radius:10px;padding:7px 12px;min-width:0;
  display:flex;flex-direction:column;gap:1px;line-height:1.6}
.os-fact span{color:var(--muted);font-size:12px}
.os-fact b{font-size:13px;font-weight:700;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.os-fact b[dir=ltr]{text-align:right}
.os-fact .pill{align-self:flex-start;padding:0 12px;font-size:12px}

@media(max-width:760px){
  .order-page{padding:10px 10px 30px;line-height:1.7}
  .order-page .order-success{margin:0;padding:14px 14px 16px}
  .os-head{gap:10px;margin-bottom:12px}
  .os-head .order-success__check{width:40px;height:40px;font-size:20px}
  .os-head h1{font-size:16px}
  .os-head__meta{font-size:12px}
  .page-order-result .mainnav{display:none}
  .order-page .lic-card{padding:12px}
  .order-page .lic-card--success{margin-bottom:12px}
  .order-page .lic-card__head{margin-bottom:8px;flex-wrap:nowrap;gap:6px}
  .order-page .lic-card__head h3{font-size:14px;white-space:nowrap}
  .order-page .lic-card__tools{gap:5px}
  .order-page .lic-btn{padding:4px 10px;font-size:12px;white-space:nowrap}
  .order-page .lic-item{flex-direction:row}
  .order-page .lic-item__code{padding:8px 10px;font-size:13px;line-height:1.6}
  .order-page .lic-item__copy{padding:0 12px;min-width:56px}
  .order-page .lic-group__help{padding:7px 10px;font-size:12px;line-height:1.8;margin-bottom:8px}
  .order-page .lic-group + .lic-group{margin-top:10px;padding-top:10px}
  .order-page .lic-card__note{display:none}
  .order-page .order-success__box{padding:4px 12px;margin-bottom:12px}
  .order-page .summary-line{padding:6px 0;font-size:13px}
  .order-page .summary-line--total{margin-top:2px;padding-top:8px;font-size:14px}
  .order-page .os-facts{gap:6px;margin-bottom:12px}
  .order-page .os-fact{padding:5px 10px}
  .order-page .order-success__note{font-size:13px;margin-bottom:12px}
}
