/* Shared components. Geometry follows remasgallery.com, skin follows
   tabdealgold.ir. */

/* ---------- product card (244px / 172px) */
.pc{position:relative;width:244px;display:flex;flex-direction:column}
.pc-link{display:flex;flex-direction:column;gap:10px}
.pc-media{position:relative;width:100%;aspect-ratio:1;border-radius:var(--radius-md);overflow:hidden;background:#fff;border:1px solid var(--gray-200);box-shadow:inset 0 0 28px 8px rgba(16,24,40,.03)}
.pc-media img{width:100%;height:100%;object-fit:cover;transition:transform .8s ease}
.pc:hover .pc-media img{transform:scale(1.05)}
.pc-weight{position:absolute;top:8px;left:8px;background:rgba(249,250,251,.92);border-radius:8px;padding:3px 8px;font-size:12px;color:var(--gray-900);font-weight:600;backdrop-filter:blur(6px)}
.pc-wage{position:absolute;bottom:8px;right:8px;background:var(--blue-50);border:1px solid var(--blue-100);border-radius:var(--radius-pill);padding:2px 9px;font-size:11px;font-weight:800;color:var(--blue-700)}
.pc-wage.is-low{background:var(--yellow-100);border-color:#ffe8a3;color:var(--gold-700)}
.pc-out{position:absolute;inset:0;display:grid;place-items:center;background:rgba(255,255,255,.55);font-weight:800;color:var(--gray-600);font-size:14px}
.pc.is-out .pc-media img{filter:grayscale(.6);opacity:.75}
.pc-fav{position:absolute;top:8px;right:8px;width:32px;height:32px;border-radius:10px;display:grid;place-items:center;color:var(--gray-400);background:rgba(255,255,255,.85);backdrop-filter:blur(6px);transition:.18s;z-index:2}
.pc-fav svg{width:20px;height:20px}
.pc-fav:hover{color:var(--red)}
.pc-fav.is-on{color:var(--red)}
.pc-fav.is-on svg{fill:currentColor}
.pc-body{display:flex;flex-direction:column;gap:6px;padding:0 2px}
.pc-name{font-size:14px;font-weight:600;color:var(--gray-900);line-height:1.7;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden}
.pc-price{font-size:13px;color:var(--gray-500);display:flex;align-items:baseline;flex-wrap:wrap;gap:4px}
.pc-price b{font-size:16px;font-weight:800;color:var(--blue-700)}
.pc-old{text-decoration:line-through;color:var(--gray-400);font-size:12px;width:100%}
.pc-off{position:absolute;top:44px;right:8px;background:var(--gold-600);color:#fff;border-radius:8px;padding:1px 7px;font-size:11px;font-weight:800}
@media (max-width:576px){
  .pc{width:172px}
  .pc-weight{top:6px;left:6px;font-size:11px;padding:2px 6px}
  .pc-fav{top:4px;right:4px}
  .pc-price b{font-size:15px}
}
.pc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:28px 16px}
.pc-grid .pc{width:100%}
@media (max-width:576px){.pc-grid{grid-template-columns:repeat(2,1fr);gap:20px 10px}}

/* ---------- drag track */
.track{display:flex;gap:16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding-bottom:4px;cursor:grab;overscroll-behavior-x:contain}
.track.is-dragging{cursor:grabbing;scroll-snap-type:none;scroll-behavior:auto;user-select:none}
.track.is-dragging a{pointer-events:none}
.track-item{flex:0 0 auto;scroll-snap-align:start}
@media (max-width:768px){.track{gap:10px;margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter);scroll-padding-inline:var(--gutter)}}

/* ---------- pill tabs (Remas product tabs) */
.ptabs{display:flex;gap:12px;flex-wrap:nowrap;overflow-x:auto}
.ptab{min-width:116px;padding:8px 14px;border-radius:var(--radius-pill);background:var(--gray-50);border:1px solid var(--gray-200);color:var(--gray-900);font-size:15px;font-weight:500;transition:.18s;white-space:nowrap;text-align:center}
.ptab:hover{background:var(--gray-100)}
.ptab.is-active{background:var(--yellow-100);border-color:#ffe8a3;color:var(--gold-700);font-weight:800;box-shadow:0 8px 22px rgba(198,138,38,.10)}
@media (max-width:768px){.ptabs{gap:6px}.ptab{min-width:auto;padding:6px 12px;font-size:13px}}

/* segmented tabs (tabdealgold.ir .tabs/.range) */
.seg{display:inline-flex;gap:4px;background:var(--gray-100);padding:4px;border-radius:14px}
.seg button{padding:7px 14px;border-radius:10px;color:var(--gray-500);font-weight:800;font-size:12px;transition:.18s;white-space:nowrap}
.seg button.is-active{background:#fff;color:var(--blue-700);box-shadow:var(--shadow-sm)}
.seg-blue button.is-active{background:var(--grad-blue);color:#fff;box-shadow:0 10px 20px rgba(11,111,251,.17)}

/* underline tabs */
.utabs{display:flex;gap:4px;border-bottom:1px solid var(--gray-200);overflow-x:auto}
.utab{padding:12px 16px;font-size:14px;font-weight:700;color:var(--gray-500);border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap;transition:.18s}
.utab:hover{color:var(--gray-800)}
.utab.is-active{color:var(--blue-700);border-bottom-color:var(--blue-600)}

/* ---------- accordion (Remas FAQ) */
.acc{border:1px solid var(--gray-200);border-radius:var(--radius-lg);background:#fff;overflow:hidden;box-shadow:var(--shadow-sm)}
.acc-item+.acc-item{border-top:1px solid var(--gray-200)}
.acc-q{margin:0}
.acc-head{width:100%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 24px;text-align:right;font-size:16px;font-weight:800;color:var(--blue-900);transition:background .18s;line-height:1.7}
.acc-head:hover{background:var(--gray-50)}
.acc-head svg{width:22px;height:22px;color:var(--gray-400);transition:transform .3s;flex-shrink:0}
.acc-item.is-open{background:var(--blue-50)}
.acc-item.is-open .acc-head svg{transform:rotate(180deg);color:var(--blue-700)}
.acc-body{max-height:0;overflow:hidden;transition:max-height .3s ease}
.acc-inner{padding:0 24px 22px;font-size:14px;color:var(--gray-600);line-height:2}
.acc-inner p{margin:0}
@media (max-width:768px){.acc{border-radius:var(--radius-md)}.acc-head{padding:18px 16px;font-size:14px}.acc-inner{padding:0 16px 18px}}

/* ---------- breadcrumb */
.crumbs{padding:16px 0}
.crumbs ol{display:flex;align-items:center;flex-wrap:wrap;gap:4px;font-size:13px;color:var(--gray-500)}
.crumbs li{display:inline-flex;align-items:center;gap:4px}
.crumbs a:hover{color:var(--blue-700)}
.crumbs svg{width:14px;height:14px;color:var(--gray-400)}
.crumbs [aria-current]{color:var(--gray-800);font-weight:600}

/* ---------- pagination */
.pager{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin-top:40px}
.pg{min-width:40px;height:40px;padding:0 8px;border-radius:12px;display:grid;place-items:center;border:1px solid var(--gray-200);background:#fff;font-weight:700;color:var(--gray-700);transition:.18s}
.pg:hover{border-color:var(--blue-500);color:var(--blue-700)}
.pg.is-active{background:var(--grad-blue);border-color:transparent;color:#fff;box-shadow:0 10px 20px rgba(11,111,251,.17)}
.pg svg{width:18px;height:18px}
.pg-gap{color:var(--gray-400);padding:0 4px}

/* ---------- modal & bottom sheet */
.modal{position:fixed;inset:0;z-index:11000;display:flex;align-items:center;justify-content:center;padding:16px;visibility:hidden}
.modal.is-open{visibility:visible}
.modal-backdrop{position:absolute;inset:0;background:rgba(7,29,58,.55);backdrop-filter:blur(4px);opacity:0;transition:opacity .22s}
.modal.is-open .modal-backdrop{opacity:1}
.modal-box{position:relative;background:#fff;border-radius:var(--radius-lg);box-shadow:var(--shadow-md);width:100%;max-width:560px;max-height:calc(100vh - 32px);display:flex;flex-direction:column;opacity:0;transform:translateY(16px) scale(.98);transition:opacity .22s,transform .22s}
.modal.is-open .modal-box{opacity:1;transform:none}
.modal-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 20px;border-bottom:1px solid var(--gray-200)}
.modal-head h2{font-size:17px;font-weight:900;color:var(--blue-900)}
.modal-x{position:absolute;top:10px;left:10px;z-index:2}
.modal-body{padding:20px;overflow:auto}
.modal-foot{padding:14px 20px;border-top:1px solid var(--gray-200);display:flex;gap:10px;justify-content:flex-end}
@media (max-width:768px){
  .modal-sheet{align-items:flex-end;padding:0}
  .modal-sheet .modal-box{max-width:none!important;border-radius:24px 24px 0 0;max-height:88vh;transform:translateY(100%)}
  .modal-sheet.is-open .modal-box{transform:none}
  .modal-sheet .modal-head::before{content:"";position:absolute;top:6px;left:50%;transform:translateX(-50%);width:40px;height:4px;border-radius:9px;background:var(--gray-300)}
}

/* ---------- toast */
.toasts{position:fixed;top:20px;left:50%;transform:translateX(-50%);z-index:12000;display:flex;flex-direction:column;gap:8px;align-items:center;pointer-events:none;width:max-content;max-width:calc(100vw - 32px)}
.toast{display:flex;align-items:center;gap:10px;background:var(--blue-900);color:#fff;padding:12px 18px;border-radius:15px;box-shadow:var(--shadow-md);font-size:13px;font-weight:600;animation:toastIn .25s ease both}
.toast svg{width:20px;height:20px;color:var(--yellow-400)}
.toast-success svg{color:#4ade80}
.toast-error svg{color:#fca5a5}
.toast.is-out{opacity:0;transform:translateY(-8px);transition:.3s}
@keyframes toastIn{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}

/* ---------- dual range */
.drange{position:relative;padding-top:6px}
.dr-track{position:relative;height:4px;border-radius:9px;background:var(--gray-200);margin:10px 9px}
.dr-fill{position:absolute;top:0;bottom:0;background:var(--grad-blue);border-radius:9px}
.drange input[type=range]{position:absolute;top:2px;right:0;left:0;width:100%;margin:0;height:28px;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
.drange input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:20px;height:20px;border-radius:50%;background:#fff;border:2px solid var(--blue-600);box-shadow:0 2px 6px rgba(11,111,251,.25);cursor:pointer}
.drange input[type=range]::-moz-range-thumb{pointer-events:auto;width:18px;height:18px;border-radius:50%;background:#fff;border:2px solid var(--blue-600);cursor:pointer}
.drange input[type=range]::-webkit-slider-runnable-track{background:none}
.dr-vals{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:var(--gray-500);margin-top:14px}
.dr-vals b{color:var(--gray-900);font-weight:800}

/* ---------- stars */
.stars{display:inline-flex;gap:1px;direction:ltr}
.star svg{width:16px;height:16px;color:var(--gray-300)}
.star.is-on svg{color:var(--gold-500);fill:var(--gold-500)}
.stars-lg .star svg{width:22px;height:22px}

/* ---------- empty state */
.empty{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:48px 16px}
.empty-ic{width:88px;height:88px;border-radius:28px;background:linear-gradient(135deg,var(--blue-50),var(--yellow-100));display:grid;place-items:center;color:var(--gold-600);margin-bottom:6px}
.empty-ic svg{width:42px;height:42px}
.empty h3{font-size:18px;color:var(--blue-900);font-weight:900}
.empty p{color:var(--gray-500);max-width:420px}
.empty .btn{margin-top:10px}

/* ---------- blog card (Remas 3-card grid) */
.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.blog-card{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);overflow:hidden;display:flex;flex-direction:column;box-shadow:var(--shadow-sm);transition:transform .2s,box-shadow .2s}
.blog-card:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.bc-img{display:block;height:188px;background:linear-gradient(135deg,#fff8df,#edf5ff);overflow:hidden}
.bc-img img{width:100%;height:100%;object-fit:cover}
.bc-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:12px;flex:1}
.bc-body h3{font-size:17px;font-weight:900;color:var(--blue-900);line-height:1.7}
.bc-body h3 a:hover{color:var(--blue-700)}
.bc-body p{font-size:14px;color:var(--gray-500);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.9}
.bc-more{margin-top:auto;align-self:flex-start;color:var(--blue-700);font-size:12px;font-weight:800;border-bottom:2px solid currentColor;padding-bottom:2px}
@media (max-width:1024px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media (max-width:640px){.blog-grid{grid-template-columns:1fr}}

/* ---------- Swiper skin */
.swiper-pagination-bullet{width:10px;height:10px;background:#fff;opacity:.55;transition:width .25s,background .25s;border-radius:99px}
.swiper-pagination-bullet-active{width:30px;opacity:1;background:var(--grad-gold)}
.swiper-dark .swiper-pagination-bullet{background:var(--blue-100);opacity:1}
.swiper-dark .swiper-pagination-bullet-active{background:var(--blue-700);width:20px}
.swiper-nav{width:40px;height:40px;border-radius:12px;background:#fff;box-shadow:var(--shadow-sm);display:grid;place-items:center;color:var(--blue-900);border:1px solid var(--gray-200)}
.swiper-nav svg{width:20px;height:20px}
.swiper-nav.swiper-button-disabled{opacity:.4}

/* ---------- stat / info tiles */
.stat{background:#fff;border:1px solid var(--gray-200);border-radius:var(--radius-lg);padding:18px;box-shadow:var(--shadow-sm);display:flex;align-items:center;justify-content:space-between;gap:12px}
.stat span{color:var(--gray-500);font-size:13px}
.stat b{color:var(--blue-900);font-size:18px}
.stat-ic{width:44px;height:44px;border-radius:16px;background:var(--yellow-100);color:var(--gold-700);display:grid;place-items:center;flex-shrink:0}
.stat-ic.blue{background:var(--blue-100);color:var(--blue-700)}
.stat-ic svg{width:22px;height:22px}

/* ---------- page hero (inner pages) */
.page-hero{padding:8px 0 28px}
.page-hero h1{font-size:28px;font-weight:900;color:var(--blue-900);letter-spacing:-.6px;line-height:1.5}
.page-hero p{color:var(--gray-600);margin-top:6px;font-size:15px}
@media (max-width:576px){.page-hero h1{font-size:22px}.page-hero p{font-size:13px}}

/* feature tile (tabdealgold.ir .feature) */
.feature{background:#fff;border:1px solid var(--gray-200);border-radius:26px;padding:22px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden}
.feature::after{content:"";position:absolute;left:-45px;bottom:-45px;width:120px;height:120px;border-radius:50%;background:rgba(11,111,251,.05)}
.feature.gold::after{background:rgba(255,214,107,.16)}
.feature .f-ic{width:46px;height:46px;border-radius:17px;display:grid;place-items:center;margin-bottom:14px;background:var(--blue-100);color:var(--blue-700)}
.feature.gold .f-ic{background:var(--yellow-100);color:var(--gold-700)}
.feature .f-ic svg{width:25px;height:25px}
.feature h3{margin:0 0 8px;color:var(--blue-900);font-size:17px;font-weight:900}
.feature p{margin:0;color:var(--gray-600);font-size:14px}

/* placeholder art (Tabdeal .article-img vibe) */
.ph-art{position:relative;overflow:hidden;background:linear-gradient(135deg,#fff8df,#edf5ff);border-radius:inherit}
.ph-art::before{content:"";position:absolute;width:46%;height:26%;border-radius:18px;background:linear-gradient(135deg,#fff1a8,#d99a2c,#8b5b0e);right:12%;bottom:16%;transform:rotate(-8deg);box-shadow:0 20px 30px rgba(155,104,20,.22)}
.ph-art::after{content:"";position:absolute;width:55%;aspect-ratio:1;border-radius:50%;background:rgba(11,111,251,.10);left:-12%;top:-18%}
.ph-art>span{position:absolute;inset:auto 0 12px;text-align:center;font-weight:900;color:var(--blue-900);font-size:13px;z-index:1}

/* ---------- pending (licences/seals not issued yet): blurred content + label */
.pending{position:relative;isolation:isolate}
.pending>.pending-body{filter:blur(6px);opacity:.65;pointer-events:none;user-select:none}
.pending-label{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:2;display:inline-flex;align-items:center;gap:6px;
  padding:7px 14px;border-radius:999px;background:rgba(7,29,58,.88);color:#fff;font-size:12px;font-weight:800;white-space:nowrap;
  box-shadow:0 10px 24px rgba(7,29,58,.22);border:1px solid rgba(255,214,107,.45)}
.pending-label svg{width:15px;height:15px;color:var(--yellow-400)}
