﻿.divContentIn{background:#fff}
.mid{text-align:right;}
.hp{position:absolute;top:0;right:0;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.pd{overflow-x:clip}
.pd a{color:inherit;text-decoration:none}
.pd .bc{font-size:12px;color:var(--g3);margin-bottom:14px}.pd .bc span{margin:0 6px}
.pd .grid{display:grid;grid-template-columns:420px 1fr 360px;gap:24px;align-items:start}
.pd .gal{position:sticky;top:90px}
.pd .main-img{border:1px solid var(--g1);border-radius:12px;padding:16px;text-align:center}
.pd .main-img img{max-width:100%;max-height:380px;object-fit:contain}
.pd .thumbs{display:flex;gap:8px;margin-top:10px;overflow:auto}
.pd .thumbs img{width:64px;height:64px;object-fit:cover;border:1px solid var(--g2);border-radius:8px;cursor:pointer;padding:2px}
.pd .thumbs img.on{border-color:var(--blue)}
.pd .cat{color:var(--blue);font-size:13px;margin-bottom:8px}
.pd h1{font-size:19px;margin:0 0 12px;font-weight:700}
.pd .meta{display:flex;gap:10px;align-items:center;border-top:1px solid var(--g1);padding:14px 0;flex-wrap:wrap;font-size:12px}
.pd .chip{background:var(--g1);border-radius:20px;padding:6px 12px}
.pd .rate b{color:#23254e}.pd .rate i{color:#ffb400;font-style:normal}
.pd h3{font-size:16px;margin:22px 0 12px}
.pd .color{display:flex;align-items:center;gap:8px;font-weight:700}
.pd .dot{width:14px;height:14px;border-radius:50%;background:#000;display:inline-block}
.pd .sw{width:46px;height:46px;border-radius:50%;background:#111;border:3px solid var(--blue);box-shadow:inset 0 0 0 3px #fff;margin-top:12px;color:#fff;display:flex;align-items:center;justify-content:center}
.pd .ins{display:flex;align-items:center;gap:12px;border:1px solid var(--g2);border-radius:10px;padding:16px}
.pd .ins .t{flex:1;font-size:13px}.pd .ins .p{margin-top:8px;font-weight:700}
.pd .disc{background:var(--red);color:#fff;border-radius:20px;padding:2px 8px;font-size:12px;margin-right:6px}
.pd .old{color:#c0c2c5;text-decoration:line-through;font-size:12px;margin-right:6px}
.pd .specs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;max-height:150px;overflow:hidden;position:relative}
.pd .specs.open{max-height:none}
.pd .spec{background:var(--g1);border-radius:8px;padding:10px 12px;font-size:12px}
.pd .spec small{display:block;color:var(--g3);margin-bottom:6px}.pd .spec b{font-size:13px}
.pd .more{display:block;margin:14px auto;border:1px solid var(--g2);background:#fff;border-radius:8px;padding:10px 20px;cursor:pointer;font-family:inherit}
.pd .note{font-size:12px;color:var(--g3);line-height:2;margin:18px 0}
.pd .plus{border:1px solid var(--g2);border-radius:10px;padding:16px;margin-bottom:12px}
.pd .plus h4{margin:0 0 8px;color:#a4198f;font-size:15px}
.pd .plus p{margin:4px 0;font-size:12px;color:var(--g3)}
/* buy box */
.pd .buy{border:1px solid var(--g2);border-radius:12px;padding:16px;background:#f9f9f9;position:sticky;top:90px}
.pd .buy h4{margin:0 0 14px;font-size:15px}
.pd .seller{display:flex;justify-content:space-between;align-items:center;font-size:14px;padding-bottom:12px;border-bottom:1px solid var(--g2);margin-bottom:14px}
.pd .seller .sm{font-size:11px;color:var(--g3)}.pd .seller .ok{background:#d6f5e0;color:#0a8a3c;border-radius:10px;padding:2px 8px;font-size:11px}
.pd .price{display:flex;flex-direction:column;align-items:flex-start;gap:6px;margin-bottom:12px}
.pd .price .row{text-align:center;gap:8px}
.pd .price .now{font-size:22px;font-weight:800}.pd .price .cur{font-size:11px;color:var(--g3)}
/* qty */
.pd .qty{display:flex;align-items:center;justify-content:space-between;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);border:1px solid rgba(0,0,0,.06);border-radius:10px;padding:8px 18px;margin-bottom:12px}
.pd .qty .lbl{font-size:13px;font-weight:bold}.pd .qty .lbl small{display:block;color:var(--g3);font-size:11px;margin-top:2px}
.pd .qty .ctl{display:flex;align-items:center;gap:4px;border:1px solid var(--g2);border-radius:8px}
.pd .qty button{width: 34px;height:25px;border: 0;background: none;font-size: 20px;color: #000000;cursor: pointer;line-height: 1;margin: 4%;background: #f4f4f4;border-radius: 5px;}
.pd .qty button:disabled{color:#ccc;cursor:not-allowed}
.pd .qty input{width:40px;text-align:center;border:0;font-size:15px;font-weight:700;font-family:inherit;background:none}
.pd .btn-add{display:block;width:100%;background:var(--red);color:#fff;border:0;border-radius:8px;padding:14px;font-size:15px;font-weight:700;text-align:center;cursor:pointer;font-family:inherit}
.pd .btn-add.dis{background:#c0c2c5;pointer-events:none}
.pd .li{display:flex;gap:10px;align-items:center;padding:14px 0;border-top:1px solid var(--g2);margin-top:14px;font-size:13px}
.pd .li svg{width:22px;height:22px;stroke:var(--blue);fill:none;stroke-width:1.8}
@media(max-width:1100px){.pd .grid{grid-template-columns:1fr}.pd .gal,.pd .buy{position:static}.pd .specs{grid-template-columns:repeat(2,1fr)}}

.pd .rt{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px;font-size:13px}
.pd .rt-rate{display:inline-flex;align-items:center;gap:6px;color:#81858b}
.pd .rt-rate svg{width:18px;height:18px;fill:#f5a623;flex:none}
.pd .rt-rate b{font-size:15px;font-weight:800;color:#1d1d1f}
.pd .rt-chip{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:980px;background:#f5f5f7;color:#1d1d1f;font-weight:700;transition:background .25s,transform .25s}
.pd .rt-chip:hover{background:#ebebf0;transform:translateY(-1px)}
.pd .rt-chip svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pd .rt-chip.ai{background:#f1ecff;color:#6a3fd0}
.pd .rt-chip.ai svg{width:14px;height:14px;fill:currentColor;stroke:none}
#rbox{scroll-margin-top:130px}

/* ===== این بلوک را به انتهای /css/product.css اضافه کنید ===== */

/* ۱) رفع اسکرول افقی (honeypot) */
.hp{position:absolute;top:0;right:0;width:1px;height:1px;opacity:0;overflow:hidden;pointer-events:none}
.pd{overflow-x:clip}

/* ۲) ردیف امتیاز زیر عنوان */
.pd .rt{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 14px;font-size:13px}
.pd .rt-rate{display:inline-flex;align-items:center;gap:6px;color:#81858b}
.pd .rt-rate svg{width:18px;height:18px;fill:#f5a623;flex:none}
.pd .rt-rate b{font-size:15px;font-weight:800;color:#1d1d1f}
.pd .rt-chip{display:inline-flex;align-items:center;gap:6px;padding:9px 14px;border-radius:980px;background:#f5f5f7;color:#1d1d1f;font-weight:700;transition:background .25s,transform .25s}
.pd .rt-chip:hover{background:#ebebf0;transform:translateY(-1px)}
.pd .rt-chip svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.pd .rt-chip.ai{background:#f1ecff;color:#6a3fd0}
.pd .rt-chip.ai svg{width:14px;height:14px;fill:currentColor;stroke:none}
#rbox{scroll-margin-top:130px}

/* ۳) باکس ورود / عضویت و فرم نظر */
.pr-login{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px}
.pr-login-btns{display:flex;gap:10px}
.pr-login .pr-btn{display:inline-block;text-decoration:none;padding:10px 26px}
.pr-btn-o{background:none!important;color:#cc9c0e!important;border:1px solid #cc9c0e}
.pr-form{position:relative}
.pr-me{margin-bottom:10px;color:#7a7f99;font-size:13px}
.pr-me b{color:#1c1f3a}

/* ۴) مشخصات پایین صفحه: کارت‌های دو ستونه مثل عکس */
.pd #specs2{display:grid;grid-template-columns:1fr;gap:12px;max-height:none;overflow:visible}
.pd #specs2 .spec{display:grid;grid-template-columns:minmax(110px,26%) 1fr;gap:12px;background:none;padding:0;border-radius:0;box-shadow:none;transform:none}
.pd #specs2 .spec small,.pd #specs2 .spec b{display:flex;align-items:center;margin:0;padding:18px 22px;min-height:58px;box-sizing:border-box;background:#f5f5f7;border-radius:16px;font-size:13px;line-height:1.9;white-space:normal}
.pd #specs2 .spec small{color:#81858b;font-weight:400}
.pd #specs2 .spec b{color:#1d1d1f;font-weight:500}
@media(max-width:600px){
  .pd #specs2 .spec{grid-template-columns:1fr 1.4fr;gap:8px}
  .pd #specs2 .spec small,.pd #specs2 .spec b{padding:14px 16px}
}


.foot2{
  display:grid; grid-template-columns:repeat(4,1fr); gap:16px;
  margin:40px 0 20px; padding-top:28px;
  border-top:1px solid #f0f0f3; direction:rtl;
}
.fi{
  position:relative; overflow:hidden;
  display:flex; align-items:center; gap:14px;
  padding:18px 18px;
  background:linear-gradient(180deg,#fff,#fafafc);
  border:1px solid #eeeef2; border-radius:20px;
  box-shadow:0 1px 2px rgba(0,0,0,.03);
  transition:transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s;
  opacity:0; transform:translateY(24px);
  cursor:default; isolation:isolate;
}
.foot2.in .fi{
  opacity:1; transform:none;
  transition:opacity .7s ease calc(var(--d)*.12s), transform .8s cubic-bezier(.2,.8,.2,1) calc(var(--d)*.12s),
             box-shadow .45s cubic-bezier(.2,.8,.2,1), border-color .3s;
}
/* درخشش نور که با موس حرکت می‌کند */
.fi::before{
  content:""; position:absolute; inset:0; z-index:-1; opacity:0;
  background:radial-gradient(260px circle at var(--mx,50%) var(--my,50%), rgba(184,74,168,.13), transparent 60%);
  transition:opacity .35s;
}
.foot2.in .fi:hover{
  transform:translateY(-6px) scale(1.02);
  box-shadow:0 18px 40px -12px rgba(30,20,60,.22), 0 4px 10px rgba(0,0,0,.05);
  border-color:#e2dff0;
  transition-delay:0s;
}
.fi:hover::before{ opacity:1; }

.fi-ico{
  flex:none; width:54px; height:54px; border-radius:16px;
  display:grid; place-items:center; color:#fff;
  box-shadow:0 8px 18px -6px var(--sh), inset 0 1px 0 rgba(255,255,255,.35);
  transition:transform .5s cubic-bezier(.2,.8,.2,1);
}
.fi-ico svg{ width:28px; height:28px; }
.fi:hover .fi-ico{ transform:rotate(-8deg) scale(1.1); }

.c1{ background:linear-gradient(135deg,#ff9a3c,#ff5e3a); --sh:rgba(255,94,58,.55); }
.c2{ background:linear-gradient(135deg,#34d399,#059669); --sh:rgba(5,150,105,.5); }
.c3{ background:linear-gradient(135deg,#60a5fa,#4f46e5); --sh:rgba(79,70,229,.5); }
.c4{ background:linear-gradient(135deg,#d46bc6,#8e3a9d); --sh:rgba(142,58,157,.5); }

.fi-t{ display:flex; flex-direction:column; gap:3px; min-width:0; }
.fi-t b{ font-size:14px; font-weight:800; color:#1d1d1f; }
.fi-t small{ font-size:12px; color:#86868b; line-height:1.6; }

@media (max-width:900px){ .foot2{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:480px){ .foot2{ grid-template-columns:1fr; } .fi{ padding:14px; } }
@media (prefers-reduced-motion:reduce){
  .fi,.foot2.in .fi{ transition:none; opacity:1; transform:none; }
}

/* ===== ستون وسط صفحه محصول — تم اپل (بعد از product.css لود شود) ===== */
.pd .mid{--ap:#0071e3;--ink:#1d1d1f;--sub:#6e6e73;--fill:#f5f5f7;--line:#e8e8ed;--pur:#a4198f;color:var(--ink)}
.pd .mid svg{flex:none}

/* مسیر دسته‌بندی آبی بالای عنوان */
.pd .mid-bc{display:flex;flex-wrap:wrap;gap:8px;font-size:13px;margin-bottom:10px}
.pd .mid-bc a{color:var(--ap)}
.pd .mid-bc .crumb{display:inline}
.pd .mid-bc .crumb+.crumb::before{content:"/";color:#c7c7cc;margin-inline-end:8px}

.pd .mid h1{font-size:20px;font-weight:800;text-align:right;margin:0 0 10px}

/* چیپ‌ها */
.pd .mid .meta{border-top:1px solid var(--line);padding:18px 0 4px;gap:10px}
.pd .mid .chip{display:inline-flex;align-items:center;gap:6px;background:var(--fill);color:var(--ink);
  border-radius:980px;padding:8px 14px;font-size:12px;transition:background .25s,transform .25s}
.pd .mid .chip:hover{background:#ebebf0;transform:translateY(-1px)}
.pd .mid .chip svg{width:12px;height:12px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}

.pd .mid h3{font-size:19px;font-weight:800;letter-spacing:-.01em;margin:34px 0 14px}

/* رنگ */
.pd .mid .clr{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:800;margin-top:30px}
.pd .mid .clr .dot{width:15px;height:15px;border-radius:50%;background:#111;border:1px solid var(--line)}
.pd .mid .sws{display:flex;gap:14px;margin-top:16px}
.pd .mid .sw{width:40px;height:40px;border-radius:50%;background:var(--c,#111);margin:0;
  display:flex;align-items:center;justify-content:center;border:1px solid var(--line);
  box-shadow:inset 0 0 0 4px #fff;transition:transform .25s}
.pd .mid .sw.on{border:3px solid var(--ap);box-shadow:inset 0 0 0 3px #fff;outline:0}
.pd .mid .sw svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}

/* ویژگی‌ها */
/* ویژگی‌ها: گرید ۳ ستونه کارتی */
.pd .mid .specs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;
  max-height:none;overflow:visible;background:none;border-radius:0;padding:0;line-height:1.6}
.pd .mid .specs::after{display:none}
.pd .mid .spec{background:var(--fill);border-radius:14px;padding:16px 18px;min-width:0}
.pd .mid .spec:hover{box-shadow: 0 10px 30px rgba(0, 0, 0, .08);transform: translateY(-2px);}
.pd .mid .spec small{display:block;color:#81858b;font-size:13px;font-weight:400;
  margin-bottom:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pd .mid .spec b{display:block;color:var(--ink);font-size:14px;font-weight:800;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* حالت بسته: فقط ۳ ردیف (۹ کارت) */
.pd .mid .specs:not(.open) .spec:nth-child(n+10){display:none}
@media(max-width:380px){
  .pd .mid .specs{grid-template-columns:repeat(2,1fr)}
  .pd .mid .specs:not(.open) .spec:nth-child(n+7){display:none}
}
.pd .mid .specs.open{max-height:3000px}
.pd .mid .specs::after{content:"";position:absolute;inset:auto 0 0 0;height:80px;pointer-events:none;
  background:linear-gradient(to top,var(--fill) 10%,rgba(245,245,247,0));transition:opacity .3s}
.pd .mid .specs.open::after{opacity:0}
.pd .mid .specs p{margin:0 0 10px}
.pd .mid .specs img{max-width:100%;height:auto;border-radius:14px}
.pd .mid .specs table{width:100%;border-collapse:collapse}
.pd .mid .specs td,.pd .mid .specs th{padding:10px 0;border-bottom:1px solid #e3e3e8;text-align:right;vertical-align:top}

.pd .mid .more-row{display:flex;align-items:center;gap:18px;margin:24px 0}
.pd .mid .more-row::before,.pd .mid .more-row::after{content:"";flex:1;height:1px;background:var(--line)}
.pd .mid .more{display:inline-flex;align-items:center;gap:14px;margin:0;border:1px solid #d2d2d7;background:#fff;
  border-radius:16px;padding:12px 24px;font-size:14px;font-weight:700;color:var(--ink);cursor:pointer;font-family:inherit;
  transition:background .25s,box-shadow .25s}
.pd .mid .more:hover{background:var(--fill);box-shadow:0 4px 14px rgba(0,0,0,.06)}
.pd .mid .more svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;transition:transform .35s}
.pd .mid .more.open svg{transform:rotate(90deg)}

/* توضیحات و نکته */
.pd .mid .desc{font-size:14px;line-height:2.2;color:#424245;margin:0}
.pd .mid .info-note{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:2.1;color:var(--sub);margin:22px 0 28px}
.pd .mid .info-note svg{width:20px;height:20px;margin-top:6px;fill:#86868b}

/* باکس پلاس و تسهیلات */
.pd .mid .plus{position:relative;border:1px solid var(--line);border-radius:22px;padding:22px 24px 24px;margin-bottom:16px;
  background:#fff;box-shadow:0 2px 14px rgba(0,0,0,.04);overflow:hidden;transition:box-shadow .3s,transform .3s}
.pd .mid .plus:hover{box-shadow:0 10px 30px rgba(0,0,0,.08);transform:translateY(-2px)}
.pd .mid .plus h4{display:flex;align-items:center;gap:10px;margin:0;font-size:16px;font-weight:400;color:var(--pur)}
.pd .mid .plus h4 b{font-weight:800}
.pd .mid .plus h4 svg{width:26px;height:26px;stroke:var(--pur);fill:none;stroke-width:1.8;stroke-linejoin:round}
.pd .mid .plus.plain h4{color:var(--ink);font-weight:800}
.pd .mid .tl{list-style:none;position:relative;margin:14px 0 0;padding:0 28px 0 0}
.pd .mid .tl::before{content:"";position:absolute;right:16px;top:16px;bottom:16px;width:1px;background:#e6c7e1}
.pd .mid .plus.plain .tl::before{background:#d2d2d7}
.pd .mid .tl li{position:relative;padding:7px 0;font-size:13px;color:var(--sub)}
.pd .mid .tl li::before{content:"";position:absolute;right:-15px;top:50%;width:7px;height:7px;border-radius:50%;
  background:var(--pur);transform:translateY(-50%)}
.pd .mid .plus.plain .tl li::before{background:var(--ap)}
.pd .mid .plus .sub{display:inline-flex;align-items:center;gap:8px;margin:14px 0 0 0;color:var(--ap);font-size:15px;font-weight:700}
.pd .mid .plus .sub svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.pd .mid .plus .truck{position:absolute;left:10px;bottom:6px;width:92px;height:auto}

@media(max-width:600px){.pd .mid h1{font-size:21px}}


/* گالری کوچک زیر عکس */
.pd .gthumbs{display:flex;gap:10px;margin-top:8px;padding:4px 4px 12px;overflow-x:auto}
.pd .gt{flex:none;width:72px;height:72px;padding:4px;border:1px solid var(--g1);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .2s,transform .2s}
.pd .gt:hover{border-color:var(--g2);transform:translateY(-2px)}
.pd .gt img{width:100%;height:100%;object-fit:cover;border-radius:10px;display:block}
.pd .main-img{cursor:zoom-in}

/* ===== اسکرول‌بار مدرن (سبک اپل) ===== */
.pd .gthumbs,.lb-strip{
  scrollbar-width:thin;                                   /* فایرفاکس */
  scrollbar-color:transparent transparent;
  scroll-behavior:smooth;
  -webkit-overflow-scrolling:touch;
  overscroll-behavior-x:contain;
  scroll-snap-type:x proximity;
}
.pd .gthumbs:hover,.lb-strip:hover{scrollbar-color:rgba(0,0,0,.28) transparent}

/* کروم، سافاری، اج */
.pd .gthumbs::-webkit-scrollbar,.lb-strip::-webkit-scrollbar{height:10px;display:block}
.pd .gthumbs::-webkit-scrollbar-track,.lb-strip::-webkit-scrollbar-track{background:transparent;margin:0 14px}
.pd .gthumbs::-webkit-scrollbar-thumb,.lb-strip::-webkit-scrollbar-thumb{
  background:transparent;border-radius:999px;
  border:3px solid transparent;background-clip:padding-box;   /* باریک و شناور */
  transition:background-color .3s}
.pd .gthumbs:hover::-webkit-scrollbar-thumb,
.lb-strip:hover::-webkit-scrollbar-thumb{background-color:rgba(0,0,0,.28)}
.pd .gthumbs::-webkit-scrollbar-thumb:hover,
.lb-strip::-webkit-scrollbar-thumb:hover{background-color:rgba(0,0,0,.5)}
.pd .gthumbs::-webkit-scrollbar-thumb:active,
.lb-strip::-webkit-scrollbar-thumb:active{background-color:rgba(0,0,0,.6)}

/* بندانگشتی‌ها هنگام اسکرول جایگیر شوند */
.pd .gt,.lb-strip img{scroll-snap-align:center}
.pd .gthumbs{padding-bottom:12px}

  .demo{width:min(360px,92vw)}
  /* ===== شروع: بلوک مزیت‌ها ===== */
  .tb-list{
    list-style:none;margin:0 0 14px;padding:6px 18px;
    background:rgba(255,255,255,.72);
    -webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);
    border:1px solid rgba(0,0,0,.06);border-radius:18px;
    box-shadow:0 1px 2px rgba(0,0,0,.04),0 8px 24px rgba(0,0,0,.04);
  }
  .tb-item{
    display:flex;align-items:center;gap:14px;padding:14px 0;
    font-size:14px;line-height:1.7;color:#1d1d1f;font-weight:500;
    transition:transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .tb-item + .tb-item{border-top:1px solid rgba(0,0,0,.07)}
  .tb-ico{
    flex:none;width:38px;height:38px;border-radius:11px;display:grid;place-items:center;
    background:var(--tint);color:var(--c);
    transition:transform .35s cubic-bezier(.2,.8,.2,1),box-shadow .35s;
  }
  .tb-ico svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
  .tb-item:hover .tb-ico{transform:scale(1.08) rotate(-4deg);box-shadow:0 6px 14px var(--tint)}
  .tb-item:hover{transform:translateX(-3px)}
  .tb-secure{--c:#1a9d4a;--tint:rgba(26,157,74,.11)}
  .tb-shield{--c:#0071e3;--tint:rgba(0,113,227,.10)}
  .tb-stock{--c:#ff8a00;--tint:rgba(255,138,0,.12)}
  @media (prefers-reduced-motion:reduce){.tb-item,.tb-ico{transition:none}.tb-item:hover,.tb-item:hover .tb-ico{transform:none}}
  /* ===== پایان ===== */
 
.btn{width:100%;border:0;border-radius:14px;padding:14px;background:#0071e3;color:#fff;font:500 15px 'Vazirmatn',Tahoma,sans-serif}

.low-stock{display:flex; align-items:center; justify-content:flex-start; gap:4px;margin:10px 0 14px; padding:9px 12px;background:#fff1f1c7; border-radius:10px;direction:rtl;}
.low-stock .low-txt{color:#d32f2f; font-weight:700; font-size:13px; line-height:1.6;}
.low-stock .low-ico{ width:25px; height:25px; flex:none;}

:root{ --ac:#ef4056; --hdr:0px; } /* اگر هدر سایت fixed است، --hdr را برابر ارتفاعش بگذارید */

/* ---------- نوار تب ---------- */
/* ---------- نوار تب ---------- */
.pt-bar{
  position:sticky; top:var(--hdr); z-index:30;
  background:#fff; border-bottom:1px solid #ececf0;
  margin:36px 0 0; direction:rtl;
}
.pt-in{ display:flex; gap:4px; overflow-x:auto; scrollbar-width:none; }
.pt-in::-webkit-scrollbar{ display:none; }
.pt-tab{
  position:relative; flex:none; padding:16px 20px;
  font-size:14px; font-weight:600; color:#62666d; text-decoration:none;
  transition:color .3s;
}
.pt-tab::after{
  content:""; position:absolute; right:0; left:0; bottom:-1px; height:3px;
  background:var(--ac); border-radius:3px 3px 0 0;
  transform:scaleX(0); transform-origin:center;
  transition:transform .4s cubic-bezier(.2,.8,.2,1);
}
.pt-tab:hover{ color:#22252b; }
.pt-tab.on{ color:var(--ac); }
.pt-tab.on::after{ transform:scaleX(1); }

/* ---------- چیدمان پایین ---------- */
.lower{
  display:grid; grid-template-columns:minmax(0,1fr) 370px; gap:32px;
  direction:rtl; align-items:start; margin-top:8px;
}
.lower-main{ min-width:0; }

.sec{ padding:34px 0 30px; border-bottom:8px solid #f3f3f6; scroll-margin-top:90px; }
.sec:last-child{ border-bottom:0; }
.sec-h{
  display:inline-block; margin:0 0 22px; padding-bottom:12px;
  font-size:18px; font-weight:800; color:#1d1d1f;
  border-bottom:3px solid var(--ac);
}
.sec .desc{ line-height:2.2; font-size:14px; color:#3d4047; }
.sec .rich{ line-height:2.1; font-size:14px; color:#3d4047; }
.sec .rich img{ max-width:100%; height:auto; border-radius:12px; }
.empty{ color:#8b8f97; font-size:13px; padding:20px 0; }

/* ---------- باکس چسبان چپ ---------- */
.lower-side{ position:sticky; top:calc(var(--hdr) + 72px); }
.sbox{
  background:#f9f9fb; border:1px solid #e6e6ec; border-radius:16px;
  padding:20px;
}
.sb-head{ display:flex; align-items:center; gap:14px; padding-bottom:16px; border-bottom:1px solid #e3e3e9; }
.sb-img{ width:76px; height:76px; object-fit:contain; border-radius:10px; flex:none; background:#fff; }
.sb-info{ min-width:0; }
.sb-title{
  font-size:13px; line-height:1.9; color:#23262b;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
.sb-color{ margin-top:6px; font-size:12px; color:#555; display:flex; align-items:center; gap:6px; }
.sb-color .dot{ width:14px; height:14px; border-radius:50%; background:#111a6b; display:inline-block; }

.sb-list{ list-style:none; margin:16px 0 0; padding:0; display:grid; gap:14px; }
.sb-list li{ display:flex; align-items:center; gap:10px; font-size:13px; color:#555a62; }
.sb-list svg{ width:20px; height:20px; flex:none; color:#6b7280; }
.sb-list li.ok svg{ color:#2563eb; }

.sb-price{ display:flex; align-items:baseline; gap:6px; margin:26px 0 8px; }
.sb-price b{ font-size:24px; font-weight:800; color:#1d1d1f; }
.sb-price span{ font-size:12px; color:#777; }

.sb-low{ margin:6px 0 14px; padding:0; background:none; }
.sb-btn{
  display:block; text-align:center; width:100%; padding:14px 0;
  background:var(--ac); color:#fff; border-radius:10px; font-weight:800; font-size:14px;
  text-decoration:none; transition:transform .25s, box-shadow .25s, filter .25s;
}
.sb-btn:hover{ transform:translateY(-2px); box-shadow:0 10px 22px -8px rgba(239,64,86,.7); }
.sb-btn.dis{ background:#c9ccd3; pointer-events:none; box-shadow:none; }

/* ---------- موبایل ---------- */
@media (max-width:900px){
  .lower{ grid-template-columns:1fr; }
  .lower-side{
    position:fixed; right:0; left:0; bottom:0; top:auto; z-index:40;
    background:#fff; box-shadow:0 -6px 24px rgba(0,0,0,.1);
    padding:10px 14px; order:2;  top: auto !important;
    height: auto;
  }
  .sbox{ display:flex; align-items:center; gap:12px; padding:0; background:none; border:0; }
  .sb-head,.sb-list{ display:none; }
  .sb-price{ margin:0; flex-direction:column; align-items:flex-start; gap:0; }
  .sb-price b{ font-size:16px; }
  .sb-low{ display:none; }
  .sb-btn{ flex:1; padding:12px 0; }
  .pd{ padding-bottom:80px; }

}

/*off*/
/* ===================== بنر تایمر (تک‌خطی، ساده، بدون سایه) ===================== */
.flash{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  flex-wrap:nowrap; white-space:nowrap;
  padding:8px 12px; margin-bottom:10px; border-radius:14px; color:#fff;
  background:#e5283e;
}

/* عنوان */
.fl-title{display:flex;align-items:center;gap:8px;min-width:0}
.fl-fire{width:26px;height:26px;flex:none;transform-origin:50% 100%;animation:flFire .9s ease-in-out infinite alternate}
@keyframes flFire{0%{transform:scale(1) rotate(-4deg)}100%{transform:scale(1.12) rotate(4deg)}}
.fl-txt{min-width:0}
.fl-txt b{display:block;font-size:15px;font-weight:900;line-height:1.3}
.fl-txt small{display:block;font-size:11px;opacity:.95;line-height:1.3;overflow:hidden;text-overflow:ellipsis}

/* تایمر */
.fl-time{display:flex;align-items:center;gap:4px;direction:ltr;flex:none}
.fl-grp{display:flex;align-items:center;gap:4px}
.fl-cell{
  display:flex;flex-direction:column;align-items:center;min-width:42px;padding:3px 6px 2px;
  background:rgba(0,0,0,.28); border-radius:9px;
}
.fl-cell b{
  font-size:20px;line-height:1.1;font-weight:900;font-variant-numeric:tabular-nums;
  color:#fff;display:inline-block;
}
.fl-cell b.flip{animation:flFlip .4s cubic-bezier(.2,.9,.3,1.3)}
@keyframes flFlip{0%{transform:translateY(-50%) scale(.85);opacity:0}100%{transform:none;opacity:1}}
.fl-cell small{font-size:9px;opacity:.9;line-height:1.2}
.fl-sep{font-style:normal;font-size:18px;font-weight:900;line-height:1;margin-bottom:8px;opacity:.8}

/* حالت اضطرار: کمتر از ۱ ساعت */
.flash.urgent{background:#c40018}
.flash.urgent .fl-cell b{color:#ffeb3b}
.flash.urgent .fl-fire{animation-duration:.4s}

/* موبایل: متن کوچک عنوان مخفی شود تا در یک خط بماند */
@media(max-width:560px){
  .fl-txt small{display:none}
  .fl-txt b{font-size:13px}
  .fl-fire{width:22px;height:22px}
  .fl-cell{min-width:36px;padding:3px 4px 2px}
  .fl-cell b{font-size:17px}
}
@media(max-width:380px){
  .fl-fire{display:none}
}

@media(prefers-reduced-motion:reduce){
  .fl-fire,.fl-cell b.flip{animation:none!important}
}

/* ===== کارت تخفیف (تک‌خطی، ثابت، بدون سایه) ===== */
.dc{margin-bottom:6px}
.dc-top{display:flex;align-items:center;flex-wrap:nowrap;gap:10px;white-space:nowrap}

.dc-badge{
  position:relative;overflow:hidden;isolation:isolate;flex:none;
  display:inline-flex;align-items:center;gap:6px;
  padding:4px 12px 4px 6px;border-radius:30px;color:#fff;
  background:#e5283e;
}
/* نور عبوری ملایم (بدون تغییر اندازه) */
.dc-badge::before{
  content:"";position:absolute;top:0;bottom:0;width:30px;left:-50px;z-index:-1;
  background:linear-gradient(100deg,transparent,rgba(255,255,255,.5),transparent);
  transform:skewX(-20deg);animation:dcShine 3s ease-in-out infinite;
}
@keyframes dcShine{0%{left:-50px}55%,100%{left:130%}}

/* آیکن درصد: دایرهٔ زرد با علامت ٪ */
.dc-ico{
  flex:none;width:26px;height:26px;border-radius:50%;
  display:inline-flex;align-items:center;justify-content:center;
  background:#ffeb3b;
  animation:dcWiggle 2.4s ease-in-out infinite;
}
@keyframes dcWiggle{
  0%,70%,100%{transform:rotate(0)}
  76%{transform:rotate(-14deg)}
  82%{transform:rotate(14deg)}
  88%{transform:rotate(-8deg)}
  94%{transform:rotate(8deg)}
}

.dc-badge b{font-size:18px;font-weight:900;line-height:1}
.dc-badge em{font-style:normal;font-size:13px;font-weight:800}

/* قیمت قبلی با خط قرمز مورب */
.dc-old{
  position:relative;flex:none;color:#9aa0a6;font-size:16px;font-weight:700;padding:0 3px;
  font-variant-numeric:tabular-nums;
}
.dc-old::after{
  content:"";position:absolute;left:-2px;right:-2px;top:50%;margin-top:-1px;height:2px;border-radius:2px;
  background:#e5283e;transform:rotate(-8deg);transform-origin:center;
}

/* نسخهٔ کوچک (باکس چسبان) */
.dc-sm .dc-top{gap:8px}
.dc-sm .dc-badge{padding:3px 10px 3px 5px}
.dc-sm .dc-ico{width:22px;height:22px}
.dc-sm .dc-badge b{font-size:15px}
.dc-sm .dc-badge em{font-size:12px}
.dc-sm .dc-old{font-size:14px}

@media(prefers-reduced-motion:reduce){
  .dc-badge::before,.dc-ico{animation:none!important}
}


/* ===== انتخاب رنگ ===== */
.pd .cpick{margin:14px 0 16px}

/* ---- هدر ---- */
.pd .cp-lbl{display:flex;align-items:center;gap:10px;margin:0 0 8px;font-size:14px;color:#6e6e73}

.pd .cp-t{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:800;color:#1d1d1f}
.pd .cp-t svg{
  width:18px!important;height:18px!important;max-width:18px;max-height:18px;
  flex:none;fill:none;stroke:#8e3a9d;stroke-width:1.8;
  stroke-linecap:round;stroke-linejoin:round;
}
.pd .cp-t svg circle{fill:#8e3a9d;stroke:none}
.pd .cp-t::after{content:"";width:1px;height:14px;background:#d2d2d7;margin-inline-start:2px}

.pd .cp-pill{display:inline-flex;align-items:center;gap:7px;padding:0;background:none;border:0;box-shadow:none;border-radius:0;font-size:14px}
.pd .cp-pill b{font-weight:700;color:#1d1d1f}
.pd .cp-dot{
  width:12px!important;height:12px!important;flex:none;border-radius:4px;display:inline-block;
  background:var(--c,#999);box-shadow:inset 0 0 0 1px rgba(0,0,0,.12);transition:background .3s;
}

/* ---- کاشی‌ها ---- */
.pd .cp-list{display:flex;flex-wrap:wrap;gap:10px;margin-top:8px}

.swb{
  position:relative;display:flex;flex-direction:column;align-items:center;gap:9px;
  min-width:68px;padding:10px 10px 9px;border:0;border-radius:18px;
  background:transparent;cursor:pointer;font-family:inherit;
  transition:background .3s,box-shadow .35s,transform .35s cubic-bezier(.2,.8,.2,1);
}
.swb:hover{background:#f5f5f7;transform:translateY(-3px)}
.swb.on{background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.05),0 0 0 1px rgba(0,0,0,.05)}

.swb .orb{
  position:relative;width:46px;height:46px;border-radius:13px;
  display:grid;place-items:center;background:var(--c);
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08);
  transition:transform .45s cubic-bezier(.34,1.56,.64,1),box-shadow .35s,border-radius .35s;
}
.swb:hover .orb{transform:scale(1.06)}
.swb.on .orb{
  transform:translateY(-2px) scale(1.08);border-radius:15px;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.08),0 12px 20px -8px var(--c);
}

.swb.on .orb::after{
  content:"";position:absolute;inset:0;border-radius:inherit;background:var(--c);
  z-index:-1;animation:orbRing .65s ease-out;
}
@keyframes orbRing{from{opacity:.5;transform:scale(1)}to{opacity:0;transform:scale(1.7)}}

/* تیک: اندازه قفل */
.swb .ck{
  width:22px!important;height:22px!important;fill:none;stroke:#fff;stroke-width:3;
  stroke-linecap:round;stroke-linejoin:round;
  stroke-dasharray:26;stroke-dashoffset:26;opacity:0;
  filter:drop-shadow(0 1px 2px rgba(0,0,0,.35));
}
.swb.on .ck{opacity:1;animation:ckDraw .45s .08s cubic-bezier(.65,0,.35,1) forwards}
@keyframes ckDraw{to{stroke-dashoffset:0}}
.swb.light .ck{stroke:#1d1d1f;filter:none}

.swb .nm{font-size:12px;color:#6e6e73;line-height:1.4;white-space:nowrap;transition:color .3s}
.swb.on .nm{color:#1d1d1f;font-weight:800}

.swb:focus-visible{outline:2px solid #0071e3;outline-offset:2px}

@media(prefers-reduced-motion:reduce){
  .swb,.swb .orb,.swb .ck{transition:none!important}
  .swb.on .orb::after,.swb.on .ck{animation:none!important}
  .swb.on .ck{stroke-dashoffset:0}
}

#sec-comments{--pr-c:#cc9c0e;--pr-b:#e8e8ef;--pr-t:#1c1f3a;--pr-m:#7a7f99;--pr-bg:#fff}
#sec-comments .pr-box{border:1px solid var(--pr-b);border-radius:18px;padding:18px;margin-bottom:16px;background:var(--pr-bg)}

/* امتیاز */
.pr-rb{display:grid;grid-template-columns:150px 1fr 1fr;gap:22px;align-items:center}
.pr-avg{text-align:center}
.pr-num{display:block;font-size:44px;font-weight:800;line-height:1.1;color:var(--pr-t)}
.pr-stars{position:relative;display:inline-block;direction:rtl;color:#d9dbe6;font-size:20px;letter-spacing:2px}
.pr-fill{position:absolute;right:0;top:0;width:0;overflow:hidden;white-space:nowrap;color:#f5a623;transition:width .8s ease}
.pr-cnt{display:block;font-size:12px;color:var(--pr-m);margin-top:4px}
.pr-bars{display:flex;flex-direction:column;gap:6px}
.pr-row{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--pr-m)}
.pr-l{width:28px}.pr-n{width:26px;text-align:left}
.pr-t{flex:1;height:8px;border-radius:8px;background:#eef0f6;overflow:hidden}
.pr-f{display:block;height:100%;width:0;border-radius:8px;background:linear-gradient(90deg,#f5a623,#ffcf5c);transition:width .8s ease}
.pr-in{text-align:center}
.pr-in b{display:block;margin-bottom:8px}
.pr-pick{display:inline-flex;direction:rtl;gap:4px}
.pr-pick span{font-size:32px;line-height:1;color:#d9dbe6;cursor:pointer;transition:transform .15s,color .15s}
.pr-pick span.f{color:#f5a623}
.pr-pick span:hover{transform:scale(1.2)}
.pr-pick.done span{cursor:default}.pr-pick.done span:hover{transform:none}
.pr-lbl{min-height:20px;font-weight:700;color:var(--pr-c);margin-top:4px}
.pr-msg{display:block;font-size:12px;color:var(--pr-m);margin-top:4px}

/* اشتراک‌گذاری */
.pr-share{display:flex;flex-wrap:wrap;align-items:center;gap:14px}
.pr-lk{display:flex;align-items:center;gap:8px;flex:1;min-width:220px;border:1px dashed var(--pr-b);border-radius:12px;padding:6px 6px 6px 10px}
.pr-lk span#url{flex:1;direction:ltr;text-align:left;font-size:12px;color:var(--pr-m);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pr-lk button{border:0;cursor:pointer;border-radius:9px;padding:7px 12px;color:#fff;font:inherit;font-size:12px;background:linear-gradient(135deg,#ddae66,#cc9c0e)}
.pr-soc{display:flex;gap:8px}
.pr-soc a{position:relative;width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;transition:transform .2s}
.pr-soc a:hover{transform:translateY(-3px)}
.pr-soc svg{width:20px;height:20px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pr-soc .sc{position:absolute;top:-6px;right:-4px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#14173b;color:#fff;font-size:10px;line-height:18px;text-align:center}
.pr-soc .sc:empty{display:none}

/* فرم نظر */
.pr-form input[type=text],.pr-form textarea{display:block;width:100%;box-sizing:border-box;border:1px solid var(--pr-b);border-radius:12px;padding:10px 12px;margin-bottom:10px;font:inherit;background:transparent;color:inherit}
.pr-form input:focus,.pr-form textarea:focus{outline:0;border-color:var(--pr-c)}
.pr-rate{display:inline-flex;direction:rtl;gap:2px;vertical-align:middle}
.pr-rate span{font-size:24px;line-height:1;color:#d9dbe6;cursor:pointer}
.pr-rate span.f{color:#f5a623}
.pr-btn{border:0;cursor:pointer;border-radius:12px;padding:11px 30px;color:#fff;font:inherit;font-weight:700;background:linear-gradient(135deg,#ddae66,#cc9c0e)}
.pr-btn:disabled{opacity:.6;cursor:default}

/* لیست نظرات */
.pr-cm{border:1px solid var(--pr-b);border-radius:16px;padding:14px 16px;margin-bottom:10px}
.pr-cm .h{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px}
.pr-cm .who{display:flex;align-items:center;gap:10px}
.pr-av{width:38px;height:38px;border-radius:50%;background:linear-gradient(135deg,#ddae66,#cc9c0e);flex:none}
.pr-cm small{display:block;color:var(--pr-m);font-size:12px}
.pr-cm p{margin:0;line-height:2;text-align:justify}
.pr-st{direction:rtl;color:#d9dbe6;font-size:15px;white-space:nowrap}
.pr-st span.f{color:#f5a623}

@media(max-width:760px){.pr-rb{grid-template-columns:1fr}}