/* ==========================================================================
   Radin Printer — Components
   ========================================================================== */

/* ---------------------------------------------------------------- Hero */
.hero { padding-block: 22px 6px; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.08fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}
.hero-main {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(620px 340px at 6% -24%, rgba(37, 99, 235, .07), transparent 70%),
        radial-gradient(520px 320px at 98% 120%, rgba(255, 212, 0, .12), transparent 72%),
        linear-gradient(155deg, #ffffff 0%, #f4f9ff 56%, #ecf4fe 100%);
    min-height: 500px;
}
.slides { position: relative; height: 100%; min-height: 500px; }
.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity .7s var(--ease), visibility .7s;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-inner {
    height: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    align-items: center;
    gap: 12px;
    padding: 36px 46px 48px;
}
.slide-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
    min-width: 0;
}
.slide-eyebrow {
    display: inline-flex; align-items: center; gap: 7px; align-self: flex-start;
    background: linear-gradient(180deg, #fffceb, #fff5d1);
    border: 1px solid #f3e5a8;
    color: #7c6110;
    font-size: 11.5px; font-weight: 700;
    padding: 6px 13px; border-radius: 999px;
}
.slide-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255, 212, 0, .18); }
.slide h1, .slide h2 { color: var(--navy-800); font-size: 34px; line-height: 1.5; margin: 0; letter-spacing: -.4px; }
.slide h2 em {
    font-style: normal;
    padding-inline: 4px;
    border-radius: 5px;
    background: linear-gradient(180deg, transparent 66%, rgba(255, 212, 0, .65) 66%);
}
.slide p { color: var(--muted); font-size: 13.5px; margin: 0; max-width: 430px; line-height: 2; }
.slide-cta { display: flex; gap: 10px; margin-top: 4px; flex-wrap: wrap; }
.btn.gold {
    background: linear-gradient(180deg, #ffdb26, #f2bd00);
    color: #10305c;
    border-color: transparent;
}
.btn.gold:hover { background: linear-gradient(180deg, #ffe04a, #f6c400); box-shadow: 0 20px 36px -16px rgba(242, 189, 0, .65); }
.slide-cta .btn.ghost { background: #fff; border-color: var(--line-strong); color: var(--navy-800); }
.slide-cta .btn.ghost:hover { background: var(--blue-25); border-color: var(--blue-300); }

.hero-stats { display: flex; align-items: center; margin-top: 8px; }
.hero-stats .stat { padding-inline: 24px; border-inline-start: 1px solid var(--line-strong); }
.hero-stats .stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
.hero-stats b { display: block; font-size: 22px; font-weight: 800; color: var(--navy-800); line-height: 1.45; }
.hero-stats span { font-size: 11px; color: var(--muted); }

.slide-visual { position: relative; height: 100%; min-height: 350px; }
.pedestal {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: min(330px, 94%);
    aspect-ratio: 1;
}
.pedestal::before {
    content: '';
    position: absolute; inset: -38px; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(37, 99, 235, .12), transparent 74%);
}
.pedestal::after {
    content: '';
    position: absolute; inset: -15px; border-radius: 50%;
    border: 1.6px dashed rgba(214, 168, 0, .5);
}
.pedestal-disc {
    position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
    background: linear-gradient(165deg, #ffffff, #e4eefb);
    box-shadow: 0 34px 64px -28px rgba(16, 42, 76, .42), 0 0 0 10px rgba(255, 255, 255, .55);
}
.pedestal-disc img { width: 100%; height: 100%; object-fit: cover; }
.float-badge, .float-chip {
    position: absolute; z-index: 3;
    display: flex; align-items: center; gap: 9px;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    padding: 9px 13px;
    box-shadow: 0 18px 34px -18px rgba(16, 42, 76, .4);
    /* backdrop-filter حذف شد — عنصر متحرک با بلور باعث هنگ می‌شد */
    animation: rpFloaty 5.5s ease-in-out infinite alternate;
}
.float-badge { top: 8%; inset-inline-start: 1%; color: var(--navy-800); }
.float-chip { bottom: 8%; inset-inline-end: 2%; animation-delay: -2.7s; }
.float-badge svg, .float-chip svg { width: 21px; height: 21px; flex-shrink: 0; }
.float-badge svg { color: var(--green); }
.float-chip svg { color: var(--amber); }
.float-badge b, .float-chip b { display: block; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.float-badge small, .float-chip small { display: block; font-size: 10px; color: var(--muted); }
@keyframes rpFloaty { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .float-badge, .float-chip { animation: none; } }

.slider-dots {
    position: absolute;
    bottom: 20px;
    inset-inline: 0;
    display: flex; gap: 7px; justify-content: center; z-index: 3;
}
.slider-dots button {
    width: 26px; height: 5.5px; border-radius: 99px; border: 0;
    background: #c9d9ee;
    transition: .3s;
    cursor: pointer;
}
.slider-dots button.active { background: linear-gradient(90deg, #ffdb26, #f2b800); width: 44px; }
.slider-arrows { position: absolute; bottom: 14px; inset-inline-end: 20px; display: flex; gap: 6px; z-index: 3; }
.slider-arrows button {
    width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line-strong);
    background: #fff; color: var(--navy-800);
    display: inline-flex; align-items: center; justify-content: center;
}
.slider-arrows button:hover { background: var(--blue-25); }
.slider-arrows svg { width: 17px; height: 17px; }

.hero-side { display: grid; grid-template-rows: 1fr 1fr auto; gap: 14px; }
.hero-tile {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 148px;
    background: #eef5ff;
    box-shadow: var(--shadow-xs);
    border: 1px solid var(--line);
}
.hero-tile img {
    position: absolute; inset: 0;
    width: 100%; height: 100%; object-fit: cover;
    transition: transform .5s var(--ease);
}
.hero-tile:hover img { transform: scale(1.05); }
.hero-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(270deg, rgba(7, 22, 46, .88) 10%, rgba(7, 22, 46, .45) 55%, rgba(7, 22, 46, .05));
}
.hero-tile-body { position: relative; z-index: 2; padding: 18px 22px; color: #fff; max-width: 78%; }
.hero-tile-body b { display: block; font-size: 17px; line-height: 1.5; }
.hero-tile-body small { display: block; color: #bfd4ee; font-size: 11.5px; margin-top: 3px; }
.hero-tile-body span {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 9px; font-size: 11.5px; font-weight: 700;
    background: #fff; color: var(--navy-800);
    padding: 5px 11px; border-radius: 8px;
}
.hero-tile-body span svg { width: 13px; height: 13px; }

/* Countdown card (روز: سفید / شب: سرمه‌ای — در dark.css) */
.countdown-card {
    background:
        radial-gradient(280px 150px at 88% -10%, rgba(37, 99, 235, .08), transparent 70%),
        linear-gradient(160deg, #ffffff, #f1f7ff);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 17px 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 11px;
}
.countdown-card::before {
    content: '';
    position: absolute; width: 120px; height: 120px; border-radius: 50%;
    background: rgba(37, 99, 235, .08); filter: blur(20px);
    bottom: -46px; left: -34px;
}
.cd-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: relative; }
.cd-title { font-size: 14.5px; font-weight: 800; color: var(--navy-800); }
.cd-title small { display: block; font-size: 10.5px; font-weight: 500; color: var(--muted); margin-top: 2px; }
.cd-badge { background: linear-gradient(180deg, #ffdb26, #f2bd00); color: #10305c; font-size: 10.5px; font-weight: 800; padding: 4px 9px; border-radius: 8px; white-space: nowrap; }
.cd-timer { display: flex; align-items: center; gap: 6px; position: relative; direction: ltr; justify-content: center; }
.cd-cell {
    background: #f2f7ff;
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 7px 4px;
    text-align: center;
    min-width: 52px;
}
.cd-cell b { display: block; font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.cd-cell span { font-size: 9px; color: var(--muted); }
.cd-sep { color: var(--muted-2); font-size: 14px; font-weight: 700; padding-bottom: 10px; }
.cd-chips { display: flex; gap: 7px; justify-content: center; flex-wrap: wrap; position: relative; }
.cd-chip {
    background: rgba(255, 212, 0, .16);
    border: 1px solid rgba(214, 168, 0, .38);
    color: #7c6110;
    font-size: 11.5px; font-weight: 800;
    padding: 2px 11px; border-radius: 999px;
}
.cd-link { text-align: center; font-size: 11.5px; font-weight: 700; color: var(--blue-600); display: inline-flex; align-items: center; gap: 5px; justify-content: center; position: relative; }
.cd-link:hover { color: var(--navy-800); }

/* ---------------------------------------------------------------- Feature strip */
.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 20px;
}
.feature {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    transition: background .2s;
}
.feature:hover { background: var(--blue-25); }
.feature .f-ico {
    width: 44px; height: 44px; border-radius: 13px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(150deg, #eaf2ff, #f7fbff);
    color: var(--blue-600);
    border: 1px solid #dfeafb;
}
.feature .f-ico svg { width: 22px; height: 22px; }
.feature b { display: block; font-size: 12.5px; }
.feature small { display: block; font-size: 11px; color: var(--muted-2); margin-top: 1px; }

/* ---------------------------------------------------------------- Category cards */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}
.cat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
    transition: .25s var(--ease);
    position: relative;
    overflow: hidden;
}
.cat-card::after {
    content: '';
    position: absolute; inset: auto 0 0 0; height: 3px;
    background: linear-gradient(90deg, var(--blue-400), var(--blue-700));
    transform: scaleX(0);
    transition: transform .3s var(--ease);
}
.cat-card:hover { transform: translateY(-4px); border-color: #c9dcf5; box-shadow: var(--shadow); }
.cat-card:hover::after { transform: scaleX(1); }
.cat-card .c-img {
    width: 100%;
    height: 96px;
    border-radius: 12px;
    background: linear-gradient(180deg, #f8fbff, #f0f6ff);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cat-card .c-img img {
    width: 100%; height: 92px; object-fit: contain;
    padding: 3px;
    mix-blend-mode: multiply;
    transition: transform .3s var(--ease);
    filter: drop-shadow(0 6px 10px rgba(16, 42, 76, .08));
}
.cat-card:hover .c-img img { transform: scale(1.07) translateY(-2px); }
.cat-card b { font-size: 12.5px; font-weight: 700; line-height: 1.6; color: var(--ink); }
.cat-card small { font-size: 10.5px; color: var(--muted-2); }

/* ---------------------------------------------------------------- Product card */
.product-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: .25s var(--ease);
    height: 100%;
}
.product-card:hover {
    border-color: #c7dbf5;
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}
.pc-media {
    position: relative;
    border-radius: 14px;
    background: linear-gradient(180deg, #fbfdff, #f3f8ff);
    border: 1px solid #eef4fd;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 11px;
}
.pc-media img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform .35s var(--ease);
}
.product-card:hover .pc-media img { transform: scale(1.06); }
.pc-badges { position: absolute; top: 8px; inset-inline-start: 8px; display: flex; flex-direction: column; gap: 4px; z-index: 2; }
.pc-badge {
    font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px;
    background: var(--red); color: #fff;
    box-shadow: 0 4px 10px -4px rgba(225, 29, 72, .6);
}
.pc-badge.new { background: var(--green); box-shadow: 0 4px 10px -4px rgba(18, 161, 92, .5); }
.pc-badge.out { background: #64748b; box-shadow: none; }
.pc-fav {
    position: absolute; top: 8px; inset-inline-end: 8px;
    width: 30px; height: 30px; border-radius: 9px;
    background: #fff;
    border: 1px solid var(--line);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--muted); z-index: 2;
    transition: .2s;
    /* backdrop-filter حذف شد — روی هر کارت محصول تکرار می‌شد و سنگین بود */
}
.pc-fav:hover { color: var(--red); border-color: #fecdd3; }
.pc-fav.active { color: var(--red); background: #fff1f4; border-color: #fecdd3; }
.pc-fav svg { width: 15px; height: 15px; }
.pc-brand { font-size: 10.5px; color: var(--muted-2); font-weight: 600; margin-bottom: 3px; display: flex; align-items: center; gap: 6px; }
.pc-brand .b-chip { background: #f1f6fd; border-radius: 5px; padding: 1px 6px; color: #5b7ba6; }
.pc-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.75;
    color: var(--ink);
    min-height: 45px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}
.pc-title:hover { color: var(--blue-600); }
.pc-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 8px; min-height: 20px; }
.pc-stock { font-size: 10.5px; color: var(--green); display: inline-flex; align-items: center; gap: 4px; }
.pc-stock::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.pc-stock.out { color: #94a3b8; }
.pc-rating { display: inline-flex; align-items: center; gap: 2px; color: #f59e0b; }
.pc-rating svg { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.pc-price-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 4px; }
.pc-price { display: flex; flex-direction: column; gap: 1px; }
.pc-price .old { font-size: 11px; color: var(--muted-2); text-decoration: line-through; display: flex; align-items: center; gap: 5px; }
.pc-price .val { font-size: 16px; font-weight: 800; color: var(--navy-800); letter-spacing: -.3px; display: flex; align-items: baseline; gap: 4px; }
.pc-price .val span { font-size: 10.5px; font-weight: 500; color: var(--muted); }
.pc-price .contact { font-size: 12px; font-weight: 700; color: var(--blue-600); }
.pc-add {
    width: 38px; height: 38px; border-radius: 11px;
    border: 1px solid #dbe7f8;
    background: var(--blue-50);
    color: var(--blue-600);
    display: inline-flex; align-items: center; justify-content: center;
    transition: .2s;
    flex-shrink: 0;
}
.pc-add:hover { background: var(--blue-600); border-color: var(--blue-600); color: #fff; box-shadow: var(--shadow-blue); }
.pc-add:disabled { opacity: .5; background: #f1f5f9; color: #94a3b8; border-color: #e2e8f0; }
.pc-add svg { width: 18px; height: 18px; }

.product-card.list {
    flex-direction: row;
    gap: 16px;
    padding: 14px;
}
.product-card.list .pc-media { width: 200px; flex-shrink: 0; aspect-ratio: 1; margin: 0; }
.product-card.list .pc-body { flex: 1; display: flex; flex-direction: column; }
.product-card.list .pc-title { font-size: 15px; min-height: 0; -webkit-line-clamp: 2; }
.product-card.list .pc-desc { font-size: 12px; color: var(--muted); line-height: 1.9; margin: 4px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card.list .pc-price-row { margin-top: auto; }

/* ---------------------------------------------------------------- Promo banner */
.promo {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    min-height: 230px;
    display: flex;
    align-items: center;
    margin-block: 30px 6px;
    background: linear-gradient(120deg, #0f2c52, #173f7c 55%, #1d4ed8);
    box-shadow: var(--shadow);
}
.promo::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: .35;
}
.promo::after {
    content: '';
    position: absolute;
    width: 420px; height: 420px; border-radius: 50%;
    background: rgba(56, 189, 248, .25);
    filter: blur(60px);
    top: -160px; left: -80px;
}
.promo-body { position: relative; z-index: 2; padding: 34px 40px; color: #fff; max-width: 58%; }
.promo-body .eyebrow {
    display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .3px;
    background: rgba(255, 212, 0, .14); color: var(--gold);
    border: 1px solid rgba(255, 212, 0, .25);
    padding: 3px 10px; border-radius: 999px; margin-bottom: 10px;
}
.promo-body h3 { color: #fff; font-size: 25px; line-height: 1.5; margin-bottom: 6px; }
.promo-body p { color: #c5d9f1; font-size: 13px; margin-bottom: 16px; }
.promo-body .promo-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.promo-body .btn.ghost { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }
.promo-img {
    position: absolute;
    inset-inline-start: 30px;
    bottom: -10px;
    height: 250px;
    z-index: 2;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .3));
}
.promo-timer { display: flex; gap: 6px; direction: ltr; margin-bottom: 14px; }
.promo-timer .cell {
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px; padding: 5px 8px; text-align: center; min-width: 46px;
    /* backdrop-filter حذف شد — هر ثانیه رندر مجدد می‌شد و هنگ می‌ساخت */
}
.promo-timer .cell b { display: block; font-size: 17px; font-weight: 800; font-variant-numeric: tabular-nums; }
.promo-timer .cell span { font-size: 9px; color: #b9d1ec; }

/* =========================================
   استایل اصلاح‌شده برندها (یک خطی و جمع‌وجور)
   ========================================= */
.brands {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; 
    scrollbar-width: none; 
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    margin-top: 26px;
    height: 88px; /* ارتفاع ثابت و کوتاه برای کارت‌ها */
}
.brands::-webkit-scrollbar { display: none; }

.brand-item {
    flex: 1 0 110px; /* تقسیم مساوی فضا با حداقل عرض */
    display: flex; 
    align-items: center; 
    justify-content: center;
    padding: 10px 15px;
    transition: .25s;
    height: 100%; /* پر کردن دقیق ارتفاع */
}
.brand-item:last-child { border-inline-end: 0; }

.brand-item:hover { background: var(--blue-25); }

/* محدود کردن قاطع سایز لوگوها */
/* محدود کردن سایز لوگوها و نمایش رنگی از همون اول */
.brand-item img {
    max-height: 38px !important; 
    max-width: 110px !important; 
    width: auto;
    object-fit: contain;
    opacity: 0.9; /* کمی شفافیت برای اینکه چشم رو اذیت نکنه */
    transition: all .25s ease;
}

.brand-item:hover img { 
    opacity: 1; 
    transform: scale(1.08); /* افکت زوم ملایم موقع هاور */
}

/* ---------------------------------------------------------------- Blog cards */
.blog-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: .25s var(--ease);
    height: 100%;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.blog-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #eef5ff; }
.blog-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .blog-media img { transform: scale(1.05); }
.blog-date {
    position: absolute; top: 10px; inset-inline-start: 10px;
    background: #fff;
    border-radius: 9px; padding: 4px 9px; font-size: 10.5px; font-weight: 700; color: var(--navy-800);
    text-align: center; line-height: 1.3;
}
.blog-date b { display: block; font-size: 14px; color: var(--blue-600); }
.blog-body { padding: 14px 15px 16px; display: flex; flex-direction: column; flex: 1; }
.blog-body .cat { font-size: 10.5px; color: var(--blue-600); font-weight: 700; margin-bottom: 5px; }
.blog-title { font-size: 13.5px; font-weight: 700; line-height: 1.85; color: var(--ink); min-height: 50px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card:hover .blog-title { color: var(--blue-600); }
.blog-meta { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; font-size: 10.5px; color: var(--muted-2); border-top: 1px dashed var(--line); }
.blog-meta span { display: inline-flex; align-items: center; gap: 4px; }
.blog-meta svg { width: 13px; height: 13px; }

/* ---------------------------------------------------------------- Cart drawer */
.cart-drawer .drawer-head { background: #fbfdff; }
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-line {
    display: flex; gap: 10px; padding: 10px;
    border: 1px solid var(--line); border-radius: 13px; background: #fff;
}
.cart-line img { width: 64px; height: 64px; object-fit: contain; border-radius: 9px; background: #f8fbff; border: 1px solid var(--line); padding: 3px; flex-shrink: 0; }
.cart-line .cl-main { flex: 1; min-width: 0; }
.cart-line .cl-name { font-size: 12px; font-weight: 600; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-line .cl-price { font-size: 12.5px; font-weight: 800; color: var(--navy-800); margin-top: 4px; }
.cart-line .cl-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; gap: 8px; }
.cl-remove { border: 0; background: none; color: var(--muted-2); font-size: 11px; display: inline-flex; align-items: center; gap: 4px; }
.cl-remove:hover { color: var(--red); }
.cl-remove svg { width: 13px; height: 13px; }
.cart-drawer .drawer-foot { background: #fff; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; }
.cart-total-row b { font-size: 16px; color: var(--navy-800); }
.cart-drawer .btn { width: 100%; }

/* Qty stepper */
.qty {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    overflow: hidden;
    background: #fff;
    height: 32px;
}
.qty button {
    width: 28px; height: 100%; border: 0; background: #f7fbff; color: var(--blue-600);
    display: inline-flex; align-items: center; justify-content: center; font-size: 16px;
    transition: .15s;
}
.qty button:hover { background: var(--blue-50); }
.qty button:disabled { color: #cbd5e1; background: #f8fafc; }
.qty span { min-width: 28px; text-align: center; font-size: 12.5px; font-weight: 700; }
.qty.lg { height: 44px; }
.qty.lg button { width: 40px; }
.qty.lg span { min-width: 42px; font-size: 15px; }

/* Tabs */
.tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--line);
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 18px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
    border: 0; background: none; padding: 11px 16px; font-size: 13.5px; font-weight: 700;
    color: var(--muted); position: relative; white-space: nowrap;
}
.tab::after {
    content: ''; position: absolute; inset-inline: 12px; bottom: -1px; height: 2.5px;
    border-radius: 2px 2px 0 0; background: var(--blue-600); transform: scaleX(0); transition: .2s;
}
.tab.active { color: var(--blue-600); }
.tab.active::after { transform: scaleX(1); }

/* Skeleton grid */
.sk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Modal */
.modal-back {
    position: fixed; inset: 0; background: rgba(7, 22, 46, .55);
    /* backdrop-filter حذف شد — بلور تمام‌صفحه روی پاپ‌آپ‌ها عامل اصلی هنگ بود */
    z-index: 150;
    display: flex; align-items: center; justify-content: center; padding: 18px;
    opacity: 0; pointer-events: none; transition: .25s;
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
    background: #fff; border-radius: 20px; width: min(540px, 100%);
    box-shadow: var(--shadow-lg); transform: translateY(10px) scale(.99);
    transition: .25s var(--ease); max-height: 90vh; overflow: auto;
}
.modal-back.open .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head b { font-size: 15px; }
.modal-body { padding: 20px; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-start; background: #fbfdff; }


/* ==========================================================================
   افکت سایه سه بعدی جامع (دولایه و شدید) برای کارت‌ها، بخش‌ها و دکمه‌ها
   ========================================================================== */

/* ---------------------------------------------------- */
/* ۱. باکس‌های بزرگ، اسلایدرها و کارت‌ها */
/* ---------------------------------------------------- */
.hero-main,
.hero-tile,
.countdown-card,
.features,
.brands,
.promo,
.card,
.product-card,
.cat-card,
.blog-card,
.filter-card,
.summary-card,
.account-panel,
.order-card,
.checkout-card,
.upsell,
.product-top,
.product-tabs,
.invoice-sheet,
.content-card {
    box-shadow: 
        0 10px 20px -5px rgba(16, 42, 76, 0.15),   /* لایه اول: سایه نزدیک */
        0 25px 50px -12px rgba(16, 42, 76, 0.3) !important; /* لایه دوم: سایه دور و تیره */
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    border: 1px solid rgba(228, 237, 249, 0.9);
}

/* افکت هاور برای کارت‌ها (شناور شدن به بالا) */
.hero-main:hover,
.hero-tile:hover,
.promo:hover,
.card:hover,
.product-card:hover,
.cat-card:hover,
.blog-card:hover,
.account-panel:hover,
.upsell:hover,
.product-top:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 15px 30px -5px rgba(16, 42, 76, 0.2),
        0 35px 60px -15px rgba(16, 42, 76, 0.4) !important;
}

/* ---------------------------------------------------- */
/* ۲. دکمه‌ها (شامل دکمه‌های داخل بدنه، شبح و آیکونی) */
/* ---------------------------------------------------- */
.btn,
.btn.ghost,
.btn.soft,
.btn.dark,
.view-toggle,
.search-btn,
.pc-add,
.slider-arrows button,
.pagination button,
.chip,
.nav-call,
.fc-card {
    box-shadow: 
        0 4px 8px -2px rgba(16, 42, 76, 0.1),
        0 12px 24px -6px rgba(16, 42, 76, 0.18) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

/* افکت هاور دکمه‌ها */
.btn:hover,
.btn.ghost:hover,
.btn.soft:hover,
.pc-add:hover,
.pagination button:hover,
.chip:hover,
.slider-arrows button:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 16px -4px rgba(16, 42, 76, 0.15),
        0 20px 32px -8px rgba(16, 42, 76, 0.25) !important;
}

/* ---------------------------------------------------- */
/* ۳. فیلدهای فرم (حس فرورفتگی یا برجستگی ملایم) */
/* ---------------------------------------------------- */
.input,
.select,
.textarea,
.coupon-box input {
    box-shadow: 
        inset 0 2px 4px rgba(16, 42, 76, 0.05), 
        0 2px 4px rgba(16, 42, 76, 0.05) !important;
    transition: box-shadow 0.2s ease !important;
}

.input:focus,
.select:focus,
.textarea:focus {
    box-shadow: 
        0 6px 15px rgba(37, 99, 235, 0.15) !important;
}

/* ---------------------------------------------------- */
/* ۴. استثناها (جلوگیری از به هم ریختگی در هدر و فوتر) */
/* ---------------------------------------------------- */
.site-header .btn,
.site-header .icon-btn,
.footer-socials a {
    box-shadow: none !important; /* هدر و فوتر نباید سایه اضافه بگیرند */
}

/* =========================================
   منوی کشویی جستجو (اختصاصی)
   ========================================= */
.search-cat-wrap {
    position: relative;
    flex-shrink: 0;
    border-inline-end: 1px solid var(--line-strong);
    margin-inline-end: 4px;
}

.search-cat-btn {
    background: transparent;
    border: 0;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ink-soft);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: .2s;
    border-radius: 8px;
}
.search-cat-btn:hover { color: var(--blue-600); background: rgba(37,99,235,.05); }
.search-cat-wrap.open .search-cat-btn { color: var(--blue-600); }
.search-cat-btn svg { width: 14px; height: 14px; opacity: 0.6; transition: transform .2s; }
.search-cat-wrap.open .search-cat-btn svg { transform: rotate(180deg); }

.search-cat-drop {
    position: absolute;
    top: calc(100% + 10px);
    inset-inline-start: 0;
    width: 180px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all .2s ease;
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.search-cat-wrap.open .search-cat-drop {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.scd-item {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--ink-soft);
    border-radius: 8px;
    cursor: pointer;
    transition: .15s;
}
.scd-item:hover {
    background: var(--blue-25);
    color: var(--blue-600);
}
.scd-item.selected {
    background: var(--blue-600);
    color: #fff;
    font-weight: 700;
}

/* =========================================
   استایل اصلاح‌شده کادر رمز عبور با دکمه چشم
   ========================================= */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* فاصله از سمت چپ کادر تا متن زیر آیکون نرود */
.password-wrapper .input {
    padding-left: 44px !important; /* فاصله اختصاصی برای سمت چپ */
    padding-right: 14px !important; 
}

.toggle-password {
    position: absolute;
    left: 10px; /* آیکون همیشه سمت چپ */
    right: auto;
    background: none;
    border: none;
    color: var(--muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: .2s;
    z-index: 2; /* بالاتر از متن قرار بگیرد */
}

.toggle-password:hover {
    color: var(--blue-600);
    background: var(--blue-25);
}

.toggle-password svg {
    width: 20px;
    height: 20px;
}

/* اصلاح رنگ آیکون در حالت شب */
html[data-theme="dark"] .toggle-password {
    color: #8fa6c4;
}
html[data-theme="dark"] .toggle-password:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}


/* =========================================
   استایل کادرهای ۵ گانه کد تایید (OTP)
   ========================================= */
.otp-container {
    display: flex;
    flex-direction: row; /* اجبار به ردیفی بودن */
    flex-wrap: nowrap; /* جلوگیری از شکستن به خط بعد */
    gap: 8px;
    justify-content: center; /* وسط‌چین کردن کادرها */
    margin-bottom: 5px;
}

.otp-box {
    flex: 1; /* تقسیم مساوی فضا */
    min-width: 0;
    max-width: 55px; /* حداکثر عرض هر کادر */
    height: 58px; /* ارتفاع کادر */
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    border: 2px solid var(--line-strong);
    border-radius: 12px;
    background: #ffffff;
    color: var(--navy-800);
    transition: all 0.2s ease;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.otp-box:focus {
    border-color: var(--blue-500);
    outline: none;
    background: #f8fbff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

/* حالت شب (Dark Mode) */
html[data-theme="dark"] .otp-box {
    background: #0f1d38; /* پس زمینه سرمه‌ای تیره */
    border-color: #2a3d63;
    color: #ffffff;
    box-shadow: none;
}

html[data-theme="dark"] .otp-box:focus {
    border-color: var(--blue-400);
    background: #13254a;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

/* حذف کردن استایل قهوه‌ای رنگ خطا از کادرها در حالت شب */
html[data-theme="dark"] .otp-box.invalid {
    border-color: var(--red) !important;
    background: #0f1d38 !important;
    box-shadow: 0 0 0 2px rgba(225, 29, 72, 0.3) !important;
}