/* ══════════════════════════════════════════════════════════
   چی‌مغز | style.css (نسخه اصلاح‌شده)
   ══════════════════════════════════════════════════════════ */

/* ── reset & base ── */
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'IRANSansX', 'Vazirmatn', sans-serif;
    background: #f8f9fa;
    color: #26302d;
    margin: 0;
}
a {
    text-decoration: none;
    color: inherit;
}
button {
    font-family: inherit;
    cursor: pointer;
}
:focus-visible {
    outline: 2px solid #368c78;
    outline-offset: 2px;
}

.lucide {
    width: 20px;
    height: 20px;
    stroke-width: 1.6;
}
.lucide-sm {
    width: 16px;
    height: 16px;
    stroke-width: 1.6;
}
.lucide-lg {
    width: 24px;
    height: 24px;
    stroke-width: 1.6;
}
.lucide-xl {
    width: 28px;
    height: 28px;
    stroke-width: 1.6;
}
.icon-btn .lucide {
    width: 20px;
    height: 20px;
}

/* ── متغیرهای رنگی (منبع واحد رنگ برند) ── */
:root {
    --primary: #368c78;
    --primary-dark: #296a5c;
    --primary-light: #e6f2ef;
    --secondary: #cba552;
    --secondary-dark: #a8853e;
    --secondary-light: #f5ede0;
    --ink: #26302d;
    --ink-soft: #5c6864;
    --bg: #fbf9f6;
    --line: #e7e2da;
    --white: #ffffff;
    --shadow-soft: 0 4px 20px rgba(38, 48, 45, 0.06);
    --shadow-strong: 0 14px 40px rgba(38, 48, 45, 0.14);
}

/* ── navbar ── */
.navbar-outer {
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background .4s ease;
}
.navbar-outer.scrolled {
    background: rgba(251, 249, 246, .92);
    backdrop-filter: blur(10px);
}
.navbar {
    background: transparent;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 28px;
    height: 72px;
    border-bottom: 1px solid transparent;
    transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.navbar-outer.scrolled .navbar {
    box-shadow: var(--shadow-soft);
    border-bottom-color: var(--line);
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    flex-shrink: 0;
    transition: color .3s ease;
}
.navbar-outer.scrolled .brand {
    color: var(--ink);
}
.brand-mark {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
}
.brand-name {
    font-size: 19px;
    font-weight: 800;
    line-height: 1;
}
.brand-tag {
    font-size: 11px;
    font-weight: 500;
    margin-top: 2px;
    display: block;
    opacity: .85;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
}
.nav-links a {
    color: rgba(255, 255, 255, .85);
    font-size: 14.5px;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background .3s ease, color .3s ease;
    position: relative;
}
.navbar-outer.scrolled .nav-links a {
    color: var(--ink-soft);
}
.nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}
.nav-links a.active {
    color: #ffffff;
}
.navbar-outer.scrolled .nav-links a.active {
    color: var(--primary);
}
.nav-links a.active::after {
    content: "";
    position: absolute;
    right: 13px;
    left: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}
.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    flex-shrink: 0;
}
.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, .85);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    transition: background .3s ease, color .3s ease, transform .3s;
}
.navbar-outer.scrolled .icon-btn {
    color: var(--ink-soft);
}
.icon-btn:hover {
    background: rgba(255, 255, 255, .2);
    color: #ffffff;
}
.navbar-outer.scrolled .icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.icon-btn:active {
    transform: scale(.92);
}

/* ── سرچ‌باکس + فیلترهای دسته در نوار جستجو ── */
.search-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 4px 14px;
    min-height: 48px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: width .35s, opacity .3s, background .3s ease, border-color .3s ease;
}
.navbar-outer.scrolled .search-box {
    background: var(--bg);
    border-color: var(--line);
}
.search-box.open {
    width: 420px;
    opacity: 1;
    margin-inline-end: 4px;
}
.search-box input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 13.5px;
    width: 140px;
    color: #ffffff;
    flex-shrink: 0;
}
.navbar-outer.scrolled .search-box input {
    color: var(--ink);
}
.search-box input::placeholder {
    color: rgba(255, 255, 255, .65);
}
.navbar-outer.scrolled .search-box input::placeholder {
    color: #9aa6a1;
}
.search-box .search-filters {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-right: 4px;
    flex-shrink: 0;
}
.filter-chip {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    padding: 3px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
}
/* روی بک‌گراند سفید (بعد از اسکرول یا در پنل موبایل)، باید کنتراست کافی
   در حالت پیش‌فرض هم داشته باشد، نه فقط در هاور/اکتیو */
.navbar-outer.scrolled .filter-chip,
.mobile-filters .filter-chip {
    background: #eef2f0;
    border: 1px solid #dbe4e0;
    color: var(--ink-soft);
    font-weight: 600;
}
.filter-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.navbar-outer.scrolled .filter-chip:hover,
.mobile-filters .filter-chip:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 4px 10px rgba(54, 140, 120, 0.25);
}
.filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 2px 8px rgba(54, 140, 120, 0.3);
}
.navbar-outer.scrolled .filter-chip.active,
.mobile-filters .filter-chip.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary-dark);
    box-shadow: 0 2px 8px rgba(54, 140, 120, 0.3);
}
@media (max-width: 900px) {
    /* روی موبایل سرچ داخل پنل موبایل جابه‌جا می‌شود، نه این‌که کامل حذف شود */
    .search-box,
    .search-btn,
    .divider {
        display: none !important;
    }
}
@media (max-width: 600px) {
    .search-box .search-filters {
        gap: 2px;
    }
    .filter-chip {
        font-size: 9px;
        padding: 1px 6px;
    }
}

.divider {
    width: 1px;
    height: 26px;
    background: rgba(255, 255, 255, .25);
    margin: 0 4px;
    flex-shrink: 0;
    transition: background .3s ease;
}
.navbar-outer.scrolled .divider {
    background: var(--line);
}

.auth-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px 6px 12px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 13px;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .1);
    color: #ffffff;
    transition: background .3s ease, border-color .3s ease, color .3s ease, transform .2s;
    white-space: nowrap;
    backdrop-filter: blur(4px);
}
.navbar-outer.scrolled .auth-btn {
    border-color: var(--line);
    background: var(--primary-light);
    color: var(--primary-dark);
}
.auth-btn:hover {
    background: rgba(255, 255, 255, .2);
    transform: scale(1.02);
}
.navbar-outer.scrolled .auth-btn:hover {
    background: #d4e9e3;
}
.auth-btn .lucide {
    width: 18px;
    height: 18px;
}

/* ── سبد خرید ── */
.cart-badge {
    position: absolute;
    top: 1px;
    left: 1px;
    background: var(--secondary);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
}
.cart-group {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 4px 4px 4px 12px;
    transition: background .35s;
}
.cart-group:hover {
    background: var(--primary-light);
}
.cart-group:hover .icon-btn {
    color: var(--primary);
}
.cart-price {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    transition: color .3s ease;
}
.navbar-outer.scrolled .cart-price {
    color: var(--ink);
}
.cart-price small {
    font-weight: 500;
    color: rgba(255, 255, 255, .75);
    font-size: 11px;
    margin-inline-start: 2px;
}
.navbar-outer.scrolled .cart-price small {
    color: var(--ink-soft);
}
.cart-preview {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    width: min(300px, 90vw);
    max-width: 90vw;
    padding: 16px;
    z-index: 50;
}
.cart-preview.open {
    display: block;
    animation: fadeIn 0.25s ease;
}
.cart-preview-close {
    background: var(--bg);
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: background .2s, color .2s;
}
.cart-preview-close:hover {
    background: var(--primary-light);
    color: var(--primary);
}
@media (max-width: 380px) {
    .cart-preview {
        left: 50%;
        transform: translateX(-50%);
    }
}

.hamburger {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: transparent;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    transition: color .3s ease;
}
.navbar-outer.scrolled .hamburger {
    color: var(--ink);
}
.hamburger .lucide {
    width: 22px;
    height: 22px;
}

@media(max-width:1080px) {
    .navbar {
        gap: 10px;
        padding: 0 20px;
    }
    .nav-links a {
        padding: 9px 10px;
        font-size: 13.5px;
    }
    .search-box.open {
        width: 260px;
    }
    .cart-price {
        display: none;
    }
    .brand-tag {
        display: none;
    }
}
@media(max-width:900px) {
    .nav-links {
        display: none;
    }
    .hamburger {
        display: flex;
    }
    .navbar {
        gap: 10px;
        padding: 0 16px;
        height: 64px;
    }
    .cart-group {
        padding: 4px;
    }
    .auth-btn span {
        display: none;
    }
}

/* ── mobile panel ── */
.mobile-panel {
    position: fixed;
    inset: 0;
    background: rgba(38, 48, 45, .35);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.mobile-panel.open {
    opacity: 1;
    pointer-events: auto;
}
.mobile-sheet {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 0 0 20px 20px;
    padding: 18px 20px 26px;
    transform: translateY(-16px);
    transition: transform .25s;
    box-shadow: var(--shadow-strong);
}
.mobile-panel.open .mobile-sheet {
    transform: translateY(0);
}
.mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 14px;
    margin-bottom: 12px;
}
.mobile-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    color: var(--ink);
}
.mobile-filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.mobile-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--ink);
    font-weight: 600;
    font-size: 15.5px;
    padding: 13px 10px;
    border-bottom: 1px solid var(--line);
    border-radius: 10px;
    transition: background .3s;
}
.mobile-links a:hover {
    background: var(--primary-light);
    color: var(--primary);
}
.mobile-links a .lucide {
    width: 16px;
    height: 16px;
    color: var(--ink-soft);
    transform: scaleX(-1);
}
.mobile-bottom-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}
.mobile-bottom-row .pill {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    border-radius: 12px;
    padding: 12px;
    font-weight: 600;
    font-size: 13.5px;
    transition: background .3s, transform .2s;
    cursor: pointer;
}
.mobile-bottom-row .pill:active {
    transform: scale(.97);
}

/* ── Auth Modal ── */
.auth-overlay {
    position: fixed;
    inset: 0;
    background: rgba(38, 48, 45, .55);
    backdrop-filter: blur(8px);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s ease;
}
.auth-overlay.open {
    opacity: 1;
    pointer-events: auto;
}
.auth-modal {
    background: #fff;
    border-radius: 28px;
    max-width: 440px;
    width: 100%;
    padding: 36px 32px 32px;
    box-shadow: 0 30px 80px rgba(38, 48, 45, 0.25);
    transform: translateY(20px) scale(.96);
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.auth-overlay.open .auth-modal {
    transform: translateY(0) scale(1);
}
.auth-modal .close-btn {
    position: absolute;
    top: 16px;
    left: 20px;
    background: var(--bg);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ink-soft);
    transition: background .25s, color .25s, transform .2s;
}
.auth-modal .close-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
    transform: rotate(90deg);
}
.auth-modal .close-btn .lucide {
    width: 20px;
    height: 20px;
}
.auth-header {
    text-align: center;
    margin-bottom: 24px;
}
.auth-header .icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #d4e9e3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(54, 140, 120, 0.15);
}
.auth-header .icon-wrap .lucide {
    width: 28px;
    height: 28px;
    stroke-width: 1.6;
}
.auth-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--ink);
    margin: 0 0 4px;
}
.auth-header .sub {
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}
.field-group {
    margin-bottom: 18px;
}
.field-group.hidden-group {
    display: none;
}
.field-group.slide-up {
    animation: slideUp .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
@keyframes slideUp {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: translateY(0); }
}
.field-group label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
    margin-bottom: 5px;
}
.field-group .input-wrap {
    position: relative;
}
.field-group .input-wrap .lucide {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--ink-soft);
    opacity: .6;
}
.field-group input {
    width: 100%;
    padding: 14px 46px 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 14px;
    font-family: inherit;
    font-size: 15px;
    background: var(--bg);
    color: var(--ink);
    transition: border-color .25s, box-shadow .25s;
    outline: none;
    direction: ltr;
}
.field-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(54, 140, 120, 0.10);
}
.field-group input::placeholder {
    color: #b0bdb8;
}
.field-group input:disabled {
    opacity: .7;
    background: #f1f3f0;
}
.error-msg {
    color: #dc3545;
    font-size: 12px;
    font-weight: 500;
    margin-top: 5px;
    display: none;
}
.error-msg.show {
    display: block;
}
.resend-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
    color: var(--ink-soft);
}
.resend-btn {
    background: transparent;
    border: none;
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 8px;
    transition: background .2s;
}
.resend-btn:hover:not(:disabled) {
    background: var(--primary-light);
}
.resend-btn:disabled {
    opacity: .4;
    cursor: not-allowed;
}
#timerDisplay {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--ink-soft);
}
.btn-auth {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 16px;
    background: var(--primary);
    color: #fff;
    transition: background .3s, transform .2s, box-shadow .3s;
    box-shadow: 0 8px 28px rgba(54, 140, 120, 0.30);
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-auth:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(54, 140, 120, 0.35);
}
.btn-auth:active {
    transform: scale(.97);
}
.btn-auth:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}
.btn-auth .spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: none;
}
.btn-auth.loading .spinner {
    display: block;
}
.btn-auth.loading .btn-text {
    display: none;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.auth-footer-text {
    text-align: center;
    font-size: 12px;
    color: var(--ink-soft);
    margin-top: 16px;
}
.auth-footer-text a {
    color: var(--primary);
    font-weight: 600;
}
.auth-footer-text a:hover {
    text-decoration: underline;
}
.auth-success-state {
    text-align: center;
    padding: 20px 0 10px;
}
.auth-success-state .icon-big {
    width: 72px;
    height: 72px;
    margin: 0 auto 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4f0e8, var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-success-state .icon-big .lucide {
    width: 36px;
    height: 36px;
    stroke-width: 1.6;
}
.auth-success-state h2 {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 4px;
}
.auth-success-state p {
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 20px;
}

/* ── هیرو ── */
.hero-overlay {
    background: linear-gradient(135deg, rgba(54, 140, 120, 0.85) 0%, rgba(42, 111, 95, 0.75) 100%);
}
@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
}

/* ── دسته‌بندی‌های دایره‌ای ── */
.category-card .icon-wrapper {
    transition: all 0.3s cubic-bezier(.4, 0, .2, 1);
}
.category-card .cat-name {
    transition: color 0.3s ease;
}
.category-card:focus-visible .icon-wrapper,
.category-card:hover .icon-wrapper {
    transform: scale(1.04);
}

/* ── کارت‌های محصولات تخصصی + محصولات اصلی ── */
.card-header {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.chip {
    display: inline-block;
    white-space: nowrap;
    line-height: 1.5;
}
.product-card {
    transition: all 0.3s ease;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
}
.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(54, 140, 120, 0.12);
}
.product-card .product-img {
    transition: transform 0.5s ease;
}
.product-card:hover .product-img {
    transform: scale(1.05);
}
.shadow-cardHover {
    box-shadow: 0 20px 40px rgba(38, 48, 45, 0.10);
}
.tnum {
    font-variant-numeric: tabular-nums;
}
.badge-wholesale {
    background-color: var(--secondary);
    color: #ffffff;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-retail {
    background-color: var(--primary);
    color: #ffffff;
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.65rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-discount {
    background-color: #22c55e;
    color: #ffffff;
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.6rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
.badge-stock {
    background-color: var(--primary-light);
    color: var(--primary-dark);
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}
.savings-note {
    font-size: 0.62rem;
    color: #1a9c5c;
    font-weight: 600;
    margin-top: 2px;
}
.text-ink\/50 { color: rgba(38, 48, 45, 0.5); }
.text-ink\/70 { color: rgba(38, 48, 45, 0.7); }
.text-ink\/40 { color: rgba(38, 48, 45, 0.4); }
.text-ink\/35 { color: rgba(38, 48, 45, 0.35); }
.border-black\/5 { border-color: rgba(0, 0, 0, 0.05); }

.add-cart-btn {
    background: var(--primary);
    color: #fff;
    transition: background .2s, transform .15s;
}
.add-cart-btn:hover {
    background: var(--primary-dark);
}
.add-cart-btn:disabled {
    background: var(--primary-dark);
    opacity: .85;
    cursor: default;
}

/* ══════════════════════════════════════════════════════════
   کارت محصول - ریدیزاین (pv2)
   همان اطلاعات قبلی (تصویر، نوع، دسته، ویژگی‌ها، حداقل خرید،
   قیمت/تخفیف/صرفه‌جویی، موجودی، دکمه افزودن) با چیدمان جدید
   ══════════════════════════════════════════════════════════ */
.pv2 {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .05);
    box-shadow: 0 4px 16px rgba(38, 48, 45, .05);
    transition: transform .3s ease, box-shadow .3s ease;
}
.pv2:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(54, 140, 120, .16);
}
.pv2-media {
    position: relative;
    height: 176px;
    overflow: hidden;
    background: var(--primary-light);
}
.pv2-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .55s ease;
}
.pv2:hover .pv2-img {
    transform: scale(1.08);
}
.pv2-media::after {
    /* گرادیانت ملایم پایین تصویر تا خوانایی چیپ‌های روی عکس بهتر شود */
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 46%;
    background: linear-gradient(to top, rgba(15, 26, 24, .28), transparent);
    pointer-events: none;
}
.pv2-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .15);
}
.pv2-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: #ef4444;
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
    padding: 4px 9px;
    border-radius: 999px;
    box-shadow: 0 4px 10px rgba(239, 68, 68, .35);
}
.pv2-stock-dot {
    position: absolute;
    bottom: 10px;
    left: 12px;
    z-index: 2;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .55);
}
.pv2-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    gap: 8px;
}
.pv2-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-direction: row-reverse;
    justify-content: space-between;
}
.pv2-name-row .chip-primary,
.pv2-name-row .chip-secondary {
    background: #f5ede0;
    color: #a8853e;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .1px;
    flex-shrink: 0;
}
.pv2-title {
    font-weight: 700;
    font-size: .95rem;
    line-height: 1.5;
    color: var(--ink);
    margin: 0;
}
.pv2-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.pv2-feature {
    background: var(--primary-light);
    color: var(--primary-dark);
    padding: 3px 9px;
    border-radius: 8px;
    font-size: .68rem;
    font-weight: 600;
}
.pv2-min {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .72rem;
    color: var(--ink-soft);
    margin: 0;
}
.pv2-min .lucide-sm {
    color: var(--primary);
    width: 14px;
    height: 14px;
}
.pv2-min--empty {
    min-height: 14px;
}
.pv2-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}
.pv2-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.pv2-old {
    font-size: .7rem;
    color: rgba(38, 48, 45, .35);
    text-decoration: line-through;
}
.pv2-current {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary-dark);
}
.pv2-current small {
    font-size: .65rem;
    font-weight: 500;
    color: rgba(38, 48, 45, .4);
}
.pv2-current--sale {
    color: #cc5b3a;
}
.pv2-savings {
    font-size: .64rem;
    font-weight: 700;
    color: #1a9c5c;
    background: #eafbf2;
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    width: fit-content;
    margin-top: 2px;
}
.pv2-add-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: .76rem;
    font-weight: 700;
    flex-shrink: 0;
}
@media (max-width: 380px) {
    .pv2-add-btn span { display: none; }
    .pv2-add-btn { padding: 10px; }
}

/* ── فوتر ── */
.footer-link {
    transition: color 0.2s;
    color: #cbd5e1;
}
.footer-link:hover {
    color: var(--secondary);
}
.newsletter-msg {
    font-size: 12px;
    color: #7fdcb4;
    margin-top: 6px;
    min-height: 14px;
}

/* ── Toast (سمت راست، هماهنگ با چیدمان RTL) ── */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toast {
    background: #1e293b;
    color: #fff;
    padding: 14px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    transform: translateX(20px);
    opacity: 0;
    animation: toastIn 0.4s ease forwards;
    max-width: 360px;
    border-right: 5px solid var(--secondary);
}
.toast.success { border-right-color: #22c55e; }
.toast.error { border-right-color: #ef4444; }
.toast.info { border-right-color: var(--primary); }
@keyframes toastIn {
    to { transform: translateX(0); opacity: 1; }
}
@keyframes toastOut {
    to { transform: translateX(30px); opacity: 0; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}



.cart-preview-price {
    margin: 0 0 7px;
    color: var(--ink-soft);
    font-size: 11px;
}


.best-category-card{display:flex;align-items:center;gap:12px;padding:16px;background:#fff;border:1px solid #e8ecea;border-radius:18px;text-decoration:none;color:#26302d;transition:.22s;box-shadow:0 4px 16px rgba(38,48,45,.04)}
.best-category-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(54,140,120,.12);border-color:#b9ddd4}
.best-category-card .best-category-icon{width:46px;height:46px;border-radius:14px;display:flex;align-items:center;justify-content:center;background:#e6f2ef;color:#368c78;flex:0 0 46px}
.best-category-card span:nth-child(2){display:flex;flex-direction:column;gap:3px}.best-category-card b{font-size:14px}.best-category-card small{color:#7a8581;font-size:10px}.best-category-card .arrow{margin-inline-start:auto;color:#cba552;width:17px}
.pv2-stock-dot{display:none!important}
.cart-preview-topline{display:flex;align-items:center;justify-content:space-between;gap:8px}.cart-preview-topline .cart-preview-name{flex:1}.cart-preview-topline .cart-preview-qty{flex:0 0 auto}

/* v3: no feature chips inside cart preview */
.cart-preview-features { display:none !important; }

/* v3: center the All products label */
[data-filter-nav="all"],
a[href*="All%20products"],
a[href*="All%20products.html"] {
    text-align: center !important;
    justify-content: center !important;
}
/* =========================================================
   SHOPPING CART NAVBAR
   Same white navbar style as index.html
   ========================================================= */

.shopping-cart-navbar-outer {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
}

.shopping-cart-navbar {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 28px;
    height: 72px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

/* Logo / Brand */
.shopping-cart-navbar .brand {
    color: var(--ink);
}

.shopping-cart-navbar .brand-tag {
    color: var(--ink-soft);
}

/* Navigation */
.shopping-cart-navbar .nav-links {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 1;
    min-width: 0;
}

.shopping-cart-navbar .nav-links a {
    color: var(--ink-soft);
    font-size: 14.5px;
    font-weight: 600;
    padding: 9px 13px;
    border-radius: 10px;
    white-space: nowrap;
    transition: background .3s ease, color .3s ease;
    position: relative;
}

.shopping-cart-navbar .nav-links a:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.shopping-cart-navbar .nav-links a.active {
    color: var(--primary);
}

.shopping-cart-navbar .nav-links a.active::after {
    content: "";
    position: absolute;
    right: 13px;
    left: 13px;
    bottom: 2px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
}

/* Actions */
.shopping-cart-navbar .nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-inline-start: auto;
    flex-shrink: 0;
}

.shopping-cart-navbar .icon-btn {
    color: var(--ink-soft);
}

.shopping-cart-navbar .icon-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Search */
.shopping-cart-navbar .search-box {
    background: var(--bg);
    border-color: var(--line);
}

.shopping-cart-navbar .search-box input {
    color: var(--ink);
}

.shopping-cart-navbar .search-box input::placeholder {
    color: var(--ink-soft);
}

/* Auth */
.shopping-cart-navbar .auth-btn {
    color: var(--ink-soft);
}

.shopping-cart-navbar .auth-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Cart */
.shopping-cart-navbar .cart-group {
    color: var(--ink-soft);
}

.shopping-cart-navbar .cart-group:hover {
    color: var(--primary);
}

/* Responsive */
@media (max-width: 1080px) {
    .shopping-cart-navbar {
        gap: 10px;
        padding: 0 20px;
    }

    .shopping-cart-navbar .nav-links a {
        padding: 9px 10px;
        font-size: 13.5px;
    }
}

@media (max-width: 900px) {
    .shopping-cart-navbar .nav-links {
        display: none;
    }

    .shopping-cart-navbar {
        gap: 10px;
        padding: 0 16px;
        height: 64px;
    }
}
/* ==================== CART PAGE ==================== */
        body { background:#f7f9f8; }
        .cart-page { min-height:100vh; }
        .cart-wrap { margin:0 144px; }

        /* ==================== CART PAGE HEAD — redesigned ==================== */
        .cart-page-head {
            position:relative;
            display:flex;
            align-items:center;
            justify-content:space-between;
            gap:28px;
            margin:22px 0 30px;
            padding:22px 24px;
            min-height:104px;
            background:#fff;
            border:1px solid #e7e2da;
            border-radius:22px;
            box-shadow:0 8px 26px rgba(38,48,45,.045);
            overflow:hidden;
        }
        .cart-page-head::after {
            content:"";
            position:absolute;
            width:150px;
            height:150px;
            left:-65px;
            top:-75px;
            border-radius:50%;
            background:#e6f2ef;
            opacity:.55;
            pointer-events:none;
        }

        .cart-head-copy {
            position:relative;
            z-index:1;
            display:flex;
            align-items:center;
            gap:16px;
            min-width:0;
        }

        .cart-head-icon {
            width:54px;
            height:54px;
            flex:0 0 54px;
            display:flex;
            align-items:center;
            justify-content:center;
            border-radius:16px;
            background:#e6f2ef;
            color:#368c78;
            border:1px solid #d6ebe5;
        }

        .cart-eyebrow {
            margin:0 0 5px;
            color:#cba552;
            font-size:11px;
            font-weight:900;
            letter-spacing:.1px;
        }

        .cart-page-title {
            margin:0;
            color:#26302d;
            font-size:29px;
            font-weight:900;
            letter-spacing:-.6px;
            line-height:1.25;
        }

        .cart-page-subtitle {
            margin:5px 0 0;
            color:#7a8581;
            font-size:12px;
            line-height:1.7;
        }

        .cart-back {
            position:relative;
            z-index:2;
            display:inline-flex;
            align-items:center;
            justify-content:center;
            gap:8px;
            min-width:126px;
            padding:11px 17px;
            border:1px solid #d9e5e1;
            border-radius:13px;
            background:#f8fbfa;
            color:#296a5c;
            text-decoration:none;
            font-size:12px;
            font-weight:900;
            white-space:nowrap;
            transition:all .2s ease;
        }

        .cart-back .lucide {
            transition:transform .2s ease;
        }

        .cart-back:hover {
            transform:translateY(-2px);
            border-color:#b9ddd4;
            background:#e6f2ef;
            color:#368c78;
            box-shadow:0 7px 16px rgba(54,140,120,.10);
        }

        .cart-back:hover .lucide {
            transform:translateX(3px);
        }

        .cart-layout { display:grid; grid-template-columns:minmax(0,1.55fr) minmax(310px,.75fr); gap:22px; align-items:start; }
        .cart-panel, .cart-summary {
            background:#fff; border:1px solid #e5ebe8; border-radius:22px;
            box-shadow:0 8px 28px rgba(38,48,45,.055);
        }
        .cart-panel { padding:7px 22px; overflow:hidden; }
        .cart-panel-head {
            display:flex; align-items:center; justify-content:space-between; gap:10px;
            padding:17px 0 14px; border-bottom:1px solid #edf1ef;
        }
        .cart-panel-title { margin:0; color:#26302d; font-size:17px; font-weight:900; }
        .cart-panel-count { color:#7a8581; font-size:12px; }

        .cart-item {
            display:grid; grid-template-columns:92px minmax(0,1fr) auto;
            gap:17px; align-items:center; padding:18px 0; border-bottom:1px solid #edf1ef;
        }
        .cart-item:last-child { border-bottom:0; }
        .cart-item-image {
            width:92px; height:92px; object-fit:cover; border-radius:17px;
            background:#f7f8f7; border:1px solid #eef1ef;
        }
        .cart-item-main { min-width:0; }
        .cart-item-top { display:flex; align-items:center; gap:8px; flex-wrap:wrap; margin-bottom:7px; }
        .cart-item-tag {
            display:inline-flex; align-items:center; padding:4px 9px; border-radius:999px;
            background:#e6f2ef; color:#296a5c; font-size:10px; font-weight:900;
        }
        .cart-item-name { margin:0; color:#26302d; font-size:16px; font-weight:900; }
        .cart-features { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:8px; }
        .cart-feature { padding:4px 8px; border-radius:999px; background:#f4f6f5; color:#69746f; font-size:10px; font-weight:700; }
        .cart-unit-price { margin:0; color:#7a8581; font-size:12px; }
        .cart-item-total { margin-top:8px; color:#26302d; font-size:14px; font-weight:900; }

        .cart-item-actions { display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
        /* تعداد کالا در سبد خرید — دقیقاً هم‌استایل cart-preview-qty در index */
        .cart-remove {
            display:inline-flex; align-items:center; gap:5px; border:0; background:transparent;
            color:#a3ada9; font:inherit; font-size:11px; font-weight:700; cursor:pointer; padding:4px 2px;
        }
        .cart-remove:hover { color:#dc3545; }

        .cart-summary { position:sticky; top:20px; padding:22px; }
        .summary-top { display:flex; align-items:center; justify-content:space-between; margin-bottom:18px; }
        .summary-title { margin:0; color:#26302d; font-size:18px; font-weight:900; }
        .summary-icon {
            width:40px; height:40px; display:flex; align-items:center; justify-content:center;
            border-radius:13px; background:#e6f2ef; color:#368c78;
        }
        .summary-row { display:flex; justify-content:space-between; gap:16px; padding:11px 0; color:#66716d; font-size:13px; }
        .summary-row strong { color:#34403c; font-weight:800; }
        .summary-total {
            display:flex; align-items:center; justify-content:space-between; gap:15px;
            margin-top:8px; padding:17px 0 4px; border-top:1px solid #e7ece9;
            color:#26302d; font-size:16px; font-weight:900;
        }
        .summary-total strong { color:#368c78; font-size:19px; }
        .checkout-main {
            width:100%; margin-top:18px; border:0; border-radius:14px; padding:14px 16px;
            background:#368c78; color:#fff; font:inherit; font-size:14px; font-weight:900;
            cursor:pointer; transition:.2s; box-shadow:0 8px 18px rgba(54,140,120,.18);
        }
        .checkout-main:hover:not(:disabled) { background:#296a5c; transform:translateY(-2px); }
        .checkout-main:disabled { cursor:not-allowed; box-shadow:none; }
        .summary-note { margin:12px 0 0; color:#909a96; font-size:10px; line-height:1.8; text-align:center; }

        .empty-cart { text-align:center; padding:72px 20px; }
        .empty-icon {
            width:76px; height:76px; margin:0 auto 16px; display:flex; align-items:center; justify-content:center;
            border-radius:22px; background:#e6f2ef; color:#368c78;
        }
        .empty-cart h2 { margin:0 0 7px; color:#26302d; font-size:20px; font-weight:900; }
        .empty-cart p { margin:0 0 20px; color:#7a8581; font-size:13px; }
        .empty-link {
            display:inline-flex; align-items:center; justify-content:center; gap:7px; padding:11px 17px;
            border-radius:12px; background:#368c78; color:#fff; text-decoration:none; font-size:13px; font-weight:800;
        }
        /* ==================== HEADER سبد خرید ==================== */

.cart-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

/* ===== بخش چپ ===== */
.cart-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.cart-header-icon-wrapper {
    position: relative;
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f2ef;
    border-radius: 16px;
    border: 1px solid #d6ebe5;
}

.cart-header-icon {
    width: 26px;
    height: 26px;
    color: #368c78;
    stroke-width: 1.8;
}

.cart-header-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #cba552;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 8px rgba(203, 165, 82, 0.35);
}

.cart-header-text {
    min-width: 0;
}

.cart-header-breadcrumb {
    margin: 0 0 4px;
    font-size: 11px;
    color: #909a96;
    font-weight: 500;
}

.cart-header-breadcrumb a {
    color: #368c78;
    text-decoration: none;
    transition: color 0.2s;
}

.cart-header-breadcrumb a:hover {
    color: #296a5c;
}

.cart-header-separator {
    margin: 0 6px;
    color: #cbd5d1;
}

.cart-header-title {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: #26302d;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cart-header-subtitle {
    margin: 4px 0 0;
    font-size: 13px;
    color: #7a8581;
    font-weight: 500;
}

.cart-header-divider {
    margin: 0 6px;
    color: #dce1de;
}

.cart-header-subtitle span {
    color: #26302d;
    font-weight: 700;
}

/* ===== بخش راست ===== */
.cart-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.cart-header-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #f8fbfa;
    border: 1px solid #d9e5e1;
    color: #296a5c;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cart-header-back:hover {
    background: #e6f2ef;
    border-color: #b9ddd4;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(54, 140, 120, 0.08);
}

.cart-header-back-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.cart-header-back:hover .cart-header-back-icon {
    transform: translateX(3px);
}

.cart-header-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid #edf1ef;
    color: #a3ada9;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.cart-header-clear:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #dc2626;
}

.cart-header-clear-icon {
    width: 16px;
    height: 16px;
}

/* ===== نوار پیشرفت ===== */
.cart-header-progress {
    margin-top: 22px;
    padding-top: 20px;
    position: relative;
    z-index: 1;
}

.cart-header-progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 0;
}

.cart-header-progress-step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #b3bdb9;
    font-size: 12px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cart-header-progress-step.active {
    color: #368c78;
}

.cart-header-progress-step.active .cart-header-progress-number {
    background: #368c78;
    color: #fff;
    border-color: #368c78;
}

.cart-header-progress-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #dce1de;
    font-size: 11px;
    font-weight: 800;
    color: #b3bdb9;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.cart-header-progress-label {
    font-size: 12px;
    font-weight: 600;
}

.cart-header-progress-line {
    width: 48px;
    height: 2px;
    background: #dce1de;
    margin: 0 8px;
    flex-shrink: 0;
    border-radius: 2px;
}

/* ===== ریسپانسیو ===== */
@media (max-width: 768px) {
    .cart-header {
        padding: 20px;
        border-radius: 18px;
    }

    .cart-header-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .cart-header-left {
        gap: 14px;
    }

    .cart-header-icon-wrapper {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
    }

    .cart-header-icon {
        width: 22px;
        height: 22px;
    }

    .cart-header-title {
        font-size: 22px;
    }

    .cart-header-actions {
        width: 100%;
        gap: 8px;
    }

    .cart-header-back,
    .cart-header-clear {
        flex: 1;
        justify-content: center;
        padding: 10px 14px;
        font-size: 12px;
    }

    .cart-header-progress {
        margin-top: 16px;
        padding-top: 16px;
    }

    .cart-header-progress-steps {
        flex-wrap: wrap;
        gap: 4px;
    }

    .cart-header-progress-line {
        width: 24px;
        margin: 0 4px;
    }

    .cart-header-progress-label {
        display: none;
    }

    .cart-header-progress-step {
        gap: 4px;
    }

    .cart-header-progress-number {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .cart-header {
        padding: 16px;
    }

    .cart-header-title {
        font-size: 19px;
    }

    .cart-header-subtitle {
        font-size: 12px;
    }

    .cart-header-breadcrumb {
        font-size: 10px;
    }

    .cart-header-back span,
    .cart-header-clear span {
        display: none;
    }

    .cart-header-back,
    .cart-header-clear {
        flex: 1;
        padding: 10px;
    }

    .cart-header-back-icon,
    .cart-header-clear-icon {
        width: 18px;
        height: 18px;
    }
}

        @media (max-width:850px) {
            .cart-layout { grid-template-columns:1fr; }
            .cart-summary { position:static; }
        }
        @media (max-width:600px) {
            .cart-page { padding:22px 12px 48px; }
            .cart-page-head {
                align-items:flex-start;
                flex-direction:column;
                margin-top:12px;
                padding:17px;
                gap:15px;
                min-height:0;
            }
            .cart-page-title { font-size:23px; }
            .cart-head-copy { align-items:flex-start; gap:12px; }
            .cart-head-icon { width:44px; height:44px; flex-basis:44px; border-radius:13px; }
            .cart-back { width:100%; justify-content:center; }
            .cart-page-head::before { width:4px; }
            .cart-page-head::after { width:110px; height:110px; left:-55px; top:-55px; }
            .cart-panel { padding:5px 14px; border-radius:18px; }
            .cart-item { grid-template-columns:72px minmax(0,1fr); gap:12px; align-items:start; }
            .cart-item-image { width:72px; height:72px; border-radius:14px; }
            .cart-item-actions { grid-column:2; align-items:flex-start; flex-direction:row; flex-wrap:wrap; }
            .cart-item-name { font-size:14px; }
            .cart-item-total { font-size:13px; }
            .cart-summary { border-radius:18px; padding:18px; }
        }

        /* نوبار سبد خرید همیشه سفید است (بدون حالت شفاف روی هیرو) */
        .shopping-cart-navbar-outer .brand,
        .shopping-cart-navbar-outer .nav-links a,
        .shopping-cart-navbar-outer .icon-btn,
        .shopping-cart-navbar-outer .hamburger,
        .shopping-cart-navbar-outer .cart-price,
        .shopping-cart-navbar-outer .auth-btn { color: var(--ink-soft); }
        .shopping-cart-navbar-outer .brand { color: var(--ink); }
        .shopping-cart-navbar-outer .search-box { background: var(--bg); border-color: var(--line); }
        .shopping-cart-navbar-outer .search-box input { color: var(--ink); }
        .shopping-cart-navbar-outer .search-box input::placeholder { color: #9aa6a1; }
        .shopping-cart-navbar-outer .filter-chip { background:#eef2f0; border:1px solid #dbe4e0; color:var(--ink-soft); }
        .shopping-cart-navbar-outer .auth-btn { border-color: var(--line); background: var(--primary-light); color: var(--primary-dark); }
        .shopping-cart-navbar-outer .divider { background: var(--line); }
        
        /* =========================================================
   طراحی جدید سبد خرید (یکپارچه، بدون باکس، پس‌زمینه سفید)
   ========================================================= */

/* ۱. سفید کردن کامل پس‌زمینه سایت */
body {
    background: #ffffff !important;
}

/* ۲. تنظیم چیدمان اصلی */
.cart-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

/* ۳. هدر سبد خرید: جدا از لی‌اوت، بدون باکس، با مارجین کمتر */
.cart-header {
    padding: 8px 0 20px;
    margin-bottom: 16px; /* مارجین کمتر */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    position: relative;
}

.cart-header::before { display: none; } /* حذف دایره تزئینی پس‌زمینه */

.cart-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.cart-header-left { display: flex; align-items: center; gap: 18px; min-width: 0; }
.cart-header-text { min-width: 0; }
.cart-header-breadcrumb { margin: 0 0 4px; font-size: 11px; color: #909a96; font-weight: 500; }
.cart-header-breadcrumb a { color: #368c78; text-decoration: none; transition: color 0.2s; }
.cart-header-breadcrumb a:hover { color: #296a5c; }
.cart-header-separator { margin: 0 6px; color: #cbd5d1; }
.cart-header-title { margin: 0; font-size: 26px; font-weight: 900; color: #26302d; letter-spacing: -0.5px; line-height: 1.2; }

.cart-header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.cart-header-back {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px;
    border-radius: 10px; background: transparent; border: 1px solid #e0e0e0; color: #5c6864;
    font-size: 13px; font-weight: 600; text-decoration: none; transition: all 0.2s ease; white-space: nowrap;
}
.cart-header-back:hover { background: #f5f5f5; border-color: #d0d0d0; color: #26302d; }
.cart-header-back-icon { width: 16px; height: 16px; transition: transform 0.2s ease; }
.cart-header-back:hover .cart-header-back-icon { transform: translateX(3px); }

.cart-header-clear {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 14px;
    border-radius: 10px; background: transparent; border: 1px solid transparent; color: #a3ada9;
    font-size: 13px; font-weight: 600; transition: all 0.2s ease; cursor: pointer; white-space: nowrap;
}
.cart-header-clear:hover { background: #fef2f2; border-color: #fca5a5; color: #dc2626; }
.cart-header-clear-icon { width: 16px; height: 16px; }

.cart-header-progress { margin-top: 16px; padding-top: 16px;}
.cart-header-progress-steps { display: flex; align-items: center; justify-content: center; gap: 0; }
.cart-header-progress-step { display: flex; align-items: center; gap: 8px; color: #b3bdb9; font-size: 12px; font-weight: 600; transition: color 0.3s ease; }
.cart-header-progress-step.active { color: #368c78; }
.cart-header-progress-step.active .cart-header-progress-number { background: #368c78; color: #fff; border-color: #368c78; }
.cart-header-progress-number {
    display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
    border: 2px solid #dce1de; font-size: 11px; font-weight: 800; color: #b3bdb9; transition: all 0.3s ease; flex-shrink: 0;
}
.cart-header-progress-label { font-size: 12px; font-weight: 600; }
.cart-header-progress-line { width: 40px; height: 2px; background: #dce1de; margin: 0 8px; flex-shrink: 0; border-radius: 2px; }

/* ۴. حذف باکس‌ها و ایجاد طراحی یکپارچه (Single Page Layout) */
.cart-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    align-items: start;
}

.cart-panel {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
}

.cart-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 0 0 16px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px;
}

.cart-panel-title { margin: 0; color: #26302d; font-size: 16px; font-weight: 800; }
.cart-panel-count { color: #7a8581; font-size: 12px; }

/* استایل آیتم‌های سبد خرید */
.cart-item {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 24px 0;
    border-bottom: 1px solid #f5f5f5;
}
.cart-item:last-child { border-bottom: 0; }

.cart-item-image {
    width: 80px; height: 80px; object-fit: cover; border-radius: 12px;
    background: #fafafa; border: 1px solid #f0f0f0;
}

.cart-item-main { min-width: 0; }
.cart-item-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.cart-item-tag {
    display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 999px;
    background: #e6f2ef; color: #296a5c; font-size: 10px; font-weight: 700;
}
.cart-item-name { margin: 0; color: #26302d; font-size: 15px; font-weight: 800; }
.cart-features { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.cart-feature { padding: 3px 7px; border-radius: 6px; background: #f7f7f7; color: #69746f; font-size: 10px; font-weight: 600; }
.cart-unit-price { margin: 0; color: #7a8581; font-size: 12px; }
.cart-item-total { margin-top: 6px; color: #26302d; font-size: 15px; font-weight: 800; }

.cart-item-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.cart-remove {
    display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent;
    color: #a3ada9; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; padding: 4px 2px; transition: color 0.2s;
}
.cart-remove:hover { color: #dc2626; }

/* خلاصه سفارش: تمایز بسیار ظریف بدون ایجاد حس "باکس جداگانه" */
.cart-summary {
    background: #fafafa; 
    border: none;
    border-radius: 16px;
    box-shadow: none;
    padding: 24px;
    position: sticky;
    top: 96px; 
}

.summary-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.summary-title { margin: 0; color: #26302d; font-size: 16px; font-weight: 800; }
.summary-icon {
    width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
    border-radius: 10px; background: #e6f2ef; color: #368c78;
}
.summary-row { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; color: #66716d; font-size: 13px; }
.summary-row strong { color: #34403c; font-weight: 700; }
.summary-total {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
    margin-top: 8px; padding-top: 16px; border-top: 1px dashed #e0e0e0;
    color: #26302d; font-size: 15px; font-weight: 800;
}
.summary-total strong { color: #368c78; font-size: 18px; }

.checkout-main {
    width: 100%; margin-top: 20px; border: 0; border-radius: 12px; padding: 14px 16px;
    background: #368c78; color: #fff; font: inherit; font-size: 14px; font-weight: 800;
    cursor: pointer; transition: .2s;
}
.checkout-main:hover:not(:disabled) { background: #296a5c; transform: translateY(-1px); }
.checkout-main:disabled { cursor: not-allowed; opacity: 0.6; }
.summary-note { margin: 14px 0 0; color: #909a96; font-size: 11px; line-height: 1.6; text-align: center; }

.empty-cart { text-align: center; padding: 60px 20px; }
.empty-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #f5f5f5; color: #a3ada9;
}
.empty-cart h2 { margin: 0 0 8px; color: #26302d; font-size: 18px; font-weight: 800; }
.empty-cart p { margin: 0 0 20px; color: #7a8581; font-size: 13px; }
.empty-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px;
    border-radius: 10px; background: #368c78; color: #fff; text-decoration: none; font-size: 13px; font-weight: 700; transition: background 0.2s;
}
.empty-link:hover { background: #296a5c; }

/* ریسپانسیو (موبایل و تبلت) */
@media (max-width: 900px) {
    .cart-layout { grid-template-columns: 1fr; gap: 32px; }
    .cart-summary { position: static; }
}

@media (max-width: 600px) {
    .cart-wrap { padding: 16px 16px 0; }
    .cart-header-title { font-size: 20px; }
    .cart-header-actions { width: 100%; gap: 8px; margin-top: 8px; }
    .cart-header-back, .cart-header-clear { flex: 1; justify-content: center; padding: 10px 12px; font-size: 12px; }
    .cart-header-progress-label { display: none; }
    .cart-header-progress-line { width: 20px; margin: 0 4px; }
    
    .cart-item { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; align-items: start; }
    .cart-item-image { width: 70px; height: 70px; }
    .cart-item-actions { grid-column: 2; align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 12px; }
    .cart-summary { padding: 20px; border-radius: 12px; }
}
/* =========================================================
   Progress Steps - طراحی ساده و مینیمال
   ========================================================= */

.cart-header-progress {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0;
    max-width: 70%;
    margin: 0 auto;
}

/* هر مرحله */
.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
}

/* دایره آیکون */
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}

.step-icon {
    width: 20px;
    height: 20px;
    color: #a3ada9;
    stroke-width: 1.8;
}

/* عنوان مرحله */
.step-title {
    font-size: 12px;
    font-weight: 600;
    color: #909a96;
    transition: color 0.25s ease;
}

/* حالت فعال */
.progress-step.active .step-circle {
    background: #368c78;
    border-color: #368c78;
}

.progress-step.active .step-icon {
    color: #ffffff;
}

.progress-step.active .step-title {
    color: #26302d;
    font-weight: 700;
}

/* حالت تکمیل‌شده (برای مراحل قبلی در صفحات بعدی) */
.progress-step.completed .step-circle {
    background: #e6f2ef;
    border-color: #368c78;
}

.progress-step.completed .step-icon {
    color: #368c78;
}

.progress-step.completed .step-title {
    color: #368c78;
}

/* خط اتصال */
.progress-line {
    flex: 1;
    height: 1.5px;
    background: #e8e8e8;
    margin: 0 10px;
    margin-bottom: 28px; /* برای هم‌ترازی با وسط دایره‌ها */
    border-radius: 1px;
}

/* خط اتصال بین مراحل تکمیل‌شده */
.progress-step.completed + .progress-line {
    background: #368c78;
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .step-circle {
        width: 38px;
        height: 38px;
    }

    .step-icon {
        width: 17px;
        height: 17px;
    }

    .step-title {
        font-size: 11px;
    }

    .progress-line {
        margin: 0 6px;
        margin-bottom: 24px;
    }
}
/* =========================================================
   Checkout Steps - مراحل چک‌اوت
   ========================================================= */

.checkout-step {
    animation: fadeInStep 0.35s ease;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.checkout-step-header {
    margin-bottom: 28px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f0f0;
}

.checkout-step-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 800;
    color: #26302d;
}

.checkout-step-subtitle {
    margin: 0;
    font-size: 13px;
    color: #7a8581;
}

/* ── فرم ارسال ── */
.shipping-form {
    max-width: 780px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #26302d;
    margin-bottom: 6px;
}

.form-field .req {
    color: #dc2626;
    font-size: 12px;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #26302d;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: #368c78;
    box-shadow: 0 0 0 3px rgba(54, 140, 120, 0.1);
}

.form-field input.invalid,
.form-field select.invalid,
.form-field textarea.invalid {
    border-color: #dc2626;
    background: #fef2f2;
}

.field-error {
    display: none;
    font-size: 11px;
    color: #dc2626;
    margin-top: 4px;
    font-weight: 500;
}

.field-error.show {
    display: block;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.btn-back-step {
    padding: 12px 22px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    background: transparent;
    color: #5c6864;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-back-step:hover {
    background: #f5f5f5;
    border-color: #d0d0d0;
}

.btn-back-step.small {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    font-size: 12px;
}

.btn-next-step {
    padding: 12px 28px;
    border: none;
    border-radius: 10px;
    background: #368c78;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-next-step:hover {
    background: #296a5c;
    transform: translateY(-1px);
}

/* ── مرحله پرداخت ── */
.payment-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.payment-method {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border: 1.5px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.payment-method:hover {
    border-color: #c8d5d0;
    background: #fafbfa;
}

.payment-method.selected {
    border-color: #368c78;
    background: #f5faf8;
    box-shadow: 0 4px 16px rgba(54, 140, 120, 0.08);
}

.pm-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d0d0d0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s;
}

.payment-method.selected .pm-radio {
    border-color: #368c78;
}

.pm-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #368c78;
    transform: scale(0);
    transition: transform 0.2s;
}

.payment-method.selected .pm-dot {
    transform: scale(1);
}

.pm-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #f0f4f2;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #368c78;
}

.pm-icon.snappay {
    background: #fff3e0;
    color: #e65100;
}

.pm-icon-svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
}

.pm-info {
    flex: 1;
    min-width: 0;
}

.pm-title {
    margin: 0 0 3px;
    font-size: 14px;
    font-weight: 700;
    color: #26302d;
}

.pm-desc {
    margin: 0;
    font-size: 12px;
    color: #7a8581;
    line-height: 1.5;
}

.pm-badge {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    background: #fff3e0;
    color: #e65100;
    font-size: 10px;
    font-weight: 700;
    border-radius: 999px;
}

/* ── خلاصه نهایی ── */
.final-summary {
    background: #fafafa;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 96px;
}

.fs-title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: #26302d;
    padding-bottom: 14px;
    border-bottom: 1px solid #ececec;
}

.fs-row {
    display: flex;
    justify-content: space-between;
    padding: 9px 0;
    font-size: 13px;
    color: #5c6864;
}

.fs-row strong {
    color: #26302d;
    font-weight: 700;
}

.fs-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    margin-top: 8px;
    border-top: 1px dashed #d8d8d8;
    font-size: 14px;
    font-weight: 700;
    color: #26302d;
}

.fs-total strong {
    color: #368c78;
    font-size: 17px;
    font-weight: 800;
}

.btn-pay {
    width: 100%;
    margin-top: 18px;
    padding: 14px;
    border: none;
    border-radius: 12px;
    background: #368c78;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-pay:hover:not(:disabled) {
    background: #296a5c;
    transform: translateY(-1px);
}

.btn-pay:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-pay-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.fs-note {
    margin: 12px 0 0;
    font-size: 11px;
    color: #909a96;
    text-align: center;
    line-height: 1.6;
}

/* ── صفحه موفقیت ── */
.success-box {
    text-align: center;
    padding: 60px 20px;
    max-width: 520px;
    margin: 0 auto;
}

.success-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e6f2ef;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.success-icon-svg {
    width: 42px;
    height: 42px;
    color: #368c78;
    stroke-width: 2;
}

.success-title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 800;
    color: #26302d;
}

.success-sub {
    margin: 0;
    font-size: 13px;
    color: #7a8581;
}

.success-code {
    display: inline-block;
    margin: 14px 0 18px;
    padding: 12px 24px;
    background: #f5faf8;
    border: 1.5px dashed #368c78;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 800;
    color: #368c78;
    letter-spacing: 1px;
    font-variant-numeric: tabular-nums;
    direction: ltr;
}

.success-desc {
    font-size: 13px;
    color: #5c6864;
    line-height: 1.7;
    margin: 0 0 28px;
}

.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    background: #368c78;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.btn-success:hover {
    background: #296a5c;
}

/* ── ریسپانسیو ── */
@media (max-width: 900px) {
    .payment-layout {
        grid-template-columns: 1fr;
    }
    .final-summary {
        position: static;
    }
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .form-actions {
        flex-direction: column-reverse;
    }
    .btn-back-step,
    .btn-next-step {
        width: 100%;
    }
    .payment-method {
        padding: 14px;
        gap: 12px;
    }
    .pm-icon {
        width: 40px;
        height: 40px;
    }
    .pm-title {
        font-size: 13px;
    }
    .pm-desc {
        font-size: 11px;
    }
    .success-title {
        font-size: 20px;
    }
    .success-code {
        font-size: 15px;
        padding: 10px 18px;
    }
}
/* =========================================================
   ALL PRODUCTS PAGE
   هدر هم‌استایل صفحه سبد خرید (بدون مراحل پرداخت) + نوار
   جستجو/فیلتر داخل صفحه + گرید کارت محصولات (pv2 از style.css)
   ========================================================= */

body { background: #ffffff; }

.products-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 64px;
}

/* ── هدر صفحه (برگرفته از cart-header) ── */
.products-header {
    padding: 8px 0 20px;
    margin-bottom: 8px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    position: relative;
}
.products-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}
.products-header-text { min-width: 0; }
.products-header-breadcrumb { margin: 0 0 4px; font-size: 11px; color: #909a96; font-weight: 500; }
.products-header-breadcrumb a { color: #368c78; text-decoration: none; transition: color .2s; }
.products-header-breadcrumb a:hover { color: #296a5c; }
.products-header-separator { margin: 0 6px; color: #cbd5d1; }
.products-header-title { margin: 0; font-size: 26px; font-weight: 900; color: #26302d; letter-spacing: -.5px; line-height: 1.2; }
.products-header-subtitle { margin: 5px 0 0; font-size: 13px; color: #7a8581; font-weight: 500; }
.products-header-subtitle span { color: #26302d; font-weight: 700; }

.products-header-back {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 18px;
    border-radius: 10px; background: transparent; border: 1px solid #e0e0e0; color: #5c6864;
    font-size: 13px; font-weight: 600; text-decoration: none; transition: all .2s ease; white-space: nowrap;
}
.products-header-back:hover { background: #f5f5f5; border-color: #d0d0d0; color: #26302d; }
.products-header-back .lucide { width: 16px; height: 16px; transition: transform .2s ease; }
.products-header-back:hover .lucide { transform: translateX(3px); }

/* ── نوار جستجو و فیلتر داخل صفحه ── */
.products-toolbar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
.products-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 11px 16px;
}
.products-search .lucide { color: var(--ink-soft); flex-shrink: 0; }
.products-search input {
    border: none;
    background: transparent;
    outline: none;
    font-family: inherit;
    font-size: 14px;
    width: 100%;
    color: var(--ink);
}
.products-filters-row {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.products-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.products-filter-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    flex-shrink: 0;
}
.pf-chip {
    background: #eef2f0;
    border: 1px solid #dbe4e0;
    color: var(--ink-soft);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    transition: all .2s ease;
    white-space: nowrap;
}
.pf-chip:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pf-chip.active { background: var(--primary); color: #fff; border-color: var(--primary-dark); box-shadow: 0 2px 8px rgba(54,140,120,.3); }

.products-count { font-size: 12.5px; color: var(--ink-soft); margin: 0 0 16px; }
.products-count span { color: var(--ink); font-weight: 800; }

/* ── گرید کارت‌ها ── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

.products-empty {
    text-align: center;
    padding: 70px 20px;
    grid-column: 1 / -1;
}
.products-empty .empty-icon {
    width: 72px; height: 72px; margin: 0 auto 16px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: #f5f5f5; color: #a3ada9;
}
.products-empty h2 { margin: 0 0 6px; color: #26302d; font-size: 17px; font-weight: 800; }
.products-empty p { margin: 0; color: #7a8581; font-size: 13px; }

@media (max-width: 768px) {
    .products-wrap { padding: 16px 16px 48px; }
    .products-header-title { font-size: 21px; }
    .products-header-back span { display: none; }
    .products-header-back { padding: 10px; }
    .products-toolbar { padding: 12px; }
    .products-filters-row { gap: 12px; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
}
/* =========================================================
   Confirm Modal - مودال تایید خالی کردن سبد
   ========================================================= */

.confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(38, 48, 45, 0.5);
    backdrop-filter: blur(6px);
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.confirm-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.confirm-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 400px;
    width: 100%;
    padding: 32px 28px 26px;
    box-shadow: 0 20px 60px rgba(38, 48, 45, 0.2);
    text-align: center;
    transform: scale(0.94) translateY(10px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-overlay.open .confirm-modal {
    transform: scale(1) translateY(0);
}

.confirm-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #fef2f2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.confirm-icon-svg {
    width: 30px;
    height: 30px;
    color: #dc2626;
    stroke-width: 1.8;
}

.confirm-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 800;
    color: #26302d;
}

.confirm-desc {
    margin: 0 0 24px;
    font-size: 13px;
    color: #7a8581;
    line-height: 1.7;
}

.confirm-actions {
    display: flex;
    gap: 10px;
}

.btn-confirm-cancel,
.btn-confirm-ok {
    flex: 1;
    padding: 12px 18px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.btn-confirm-cancel {
    background: #f5f5f5;
    color: #5c6864;
    border: 1px solid #e0e0e0;
}

.btn-confirm-cancel:hover {
    background: #ececec;
    color: #26302d;
}

.btn-confirm-ok {
    background: #dc2626;
    color: #fff;
}

.btn-confirm-ok:hover {
    background: #b91c1c;
    transform: translateY(-1px);
}

@media (max-width: 480px) {
    .confirm-modal {
        padding: 26px 22px 22px;
    }
    .confirm-title {
        font-size: 16px;
    }
    .confirm-desc {
        font-size: 12px;
    }
    .confirm-actions {
        flex-direction: column-reverse;
    }
}
/* ══════════════════════════════════════════════════════════
   اصلاحات نهایی ریسپانسیو (مخصوص موبایل و تبلت)
   این بخش را به انتهای فایل style.css اضافه کنید
   ══════════════════════════════════════════════════════════ */

/* ۱. اصلاح نوبار (Navbar) در موبایل: فشرده‌سازی و جلوگیری از بهم‌ریختگی */
@media (max-width: 768px) {
    .navbar, .shopping-cart-navbar {
        padding: 0 12px !important;
        height: 60px !important;
        gap: 8px !important;
    }
    .brand-mark {
        width: 34px !important;
        height: 34px !important;
    }
    .brand-name {
        font-size: 15px !important;
    }
    .brand-tag {
        display: none !important; /* حذف زیرعنوان در موبایل برای فضای بیشتر */
    }
    .icon-btn {
        width: 36px !important;
        height: 36px !important;
    }
    .auth-btn span {
        display: none !important; /* فقط آیکون آدمک نمایش داده شود */
    }
    .auth-btn {
        padding: 6px !important;
    }
}

/* ۲. اصلاح گرید محصولات: ۲ ستونه در تبلت/موبایل بزرگ، ۱ ستونه در موبایل کوچک */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .pv2-media {
        height: 130px !important;
    }
    .pv2-body {
        padding: 10px !important;
        gap: 6px !important;
    }
    .pv2-title {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }
    .pv2-current {
        font-size: 0.85rem !important;
    }
    .pv2-add-btn {
        padding: 8px 10px !important;
        font-size: 0.7rem !important;
        min-width: auto !important;
    }

}

@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr !important; /* تک ستونه در گوشی‌های کوچک */
        gap: 16px !important;
    }
    .pv2-media {
        height: 180px !important;
    }
}

/* ۳. اصلاح نوار فیلترها: جلوگیری از شکستن دکمه‌ها و اسکرول افقی تمیز */
@media (max-width: 768px) {
    .products-toolbar {
        gap: 12px !important;
    }
    .products-filters-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .products-filter-group {
        width: 100% !important;
        overflow-x: auto !important; /* اسکرول افقی نرم اگر دکمه‌ها جا نشدند */
        flex-wrap: nowrap !important;
        padding-bottom: 6px !important;
        -webkit-overflow-scrolling: touch;
    }
    .products-filter-label {
        display: none !important; /* حذف کلمات "نوع:" یا "دسته:" در موبایل */
    }
    .pf-chip {
        flex-shrink: 0 !important;
        font-size: 0.75rem !important;
        padding: 6px 12px !important;
    }
}

/* ۴. اصلاح صفحه سبد خرید در موبایل: چیدمان ستونی و خوانایی بهتر */
@media (max-width: 768px) {
    .cart-wrap {
        padding: 16px 12px 0 !important;
    }
    .cart-header {
        padding: 12px 0 16px !important;
    }
    .cart-header-title {
        font-size: 1.25rem !important;
    }
    .cart-header-actions {
        width: 100% !important;
        margin-top: 12px !important;
        gap: 8px !important;
    }
    .cart-header-back, .cart-header-clear {
        flex: 1 !important;
        justify-content: center !important;
        padding: 10px !important;
    }
    .cart-header-back span, .cart-header-clear span {
        display: none !important; /* در موبایل فقط آیکون دکمه‌ها نمایش داده شود */
    }
    
    /* چیدمان آیتم‌های سبد خرید */
    .cart-item {
        grid-template-columns: 70px 1fr !important;
        gap: 12px !important;
        padding: 16px 0 !important;
    }
    .cart-item-image {
        width: 70px !important;
        height: 70px !important;
        border-radius: 10px !important;
    }
    .cart-item-actions {
        grid-column: 1 / -1 !important; /* انتقال دکمه‌های حذف و تعداد به ردیف جدید */
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        margin-top: 10px !important;
        padding-top: 10px !important;
        border-top: 1px dashed #e0e0e0 !important;
    }
    
    /* خلاصه سفارش */
    .cart-summary {
        position: static !important;
        padding: 16px !important;
        margin-top: 24px !important;
        border-radius: 12px !important;
    }
}

/* ۵. اصلاح مراحل چک‌اوت (پرداخت) در موبایل */
@media (max-width: 600px) {
    .progress-steps {
        max-width: 100% !important;
        gap: 4px !important;
    }
    .step-circle {
        width: 36px !important;
        height: 36px !important;
    }
    .step-title {
        font-size: 10px !important;
    }
    .progress-line {
        margin: 0 4px !important;
        margin-bottom: 22px !important;
    }
    .form-grid {
        grid-template-columns: 1fr !important; /* فرم‌ها تک ستونه شوند */
    }
    .payment-layout {
        grid-template-columns: 1fr !important;
    }
    .final-summary {
        position: static !important;
        margin-top: 24px !important;
    }
}


/* ══════════════════════════════════════════════════════════
   یکسان‌سازی نهایی .cart-qty با .pv2-qty-control
   (صفحه سبد خرید = کارت محصول = پیش‌نمایش سبد)
   ══════════════════════════════════════════════════════════ */

/* کانتینر */
.cart-qty,
.add-cart-btn.pv2-add-btn.pv2-qty-control {
    display: inline-flex !important;
    flex-direction: row !important;
    direction: ltr !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-width: 104px !important;
    height: 38px !important;
    padding: 4px 5px !important;
    border: 1px solid #b9ddd4 !important;
    border-radius: 10px !important;
    background: #e6f2ef !important;
    color: #296a5c !important;
    cursor: default !important;
    transition: none !important;
    box-shadow: none !important;
}

/* دکمه‌های + و − */
.cart-qty button,
.cart-qty .qty-btn,
.add-cart-btn.pv2-add-btn.pv2-qty-control .qty-btn {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    border: 0 !important;
    border-radius: 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(54,140,120,.10) !important;
    color: #296a5c !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
}

.cart-qty button:hover,
.cart-qty .qty-btn:hover,
.add-cart-btn.pv2-add-btn.pv2-qty-control .qty-btn:hover {
    background: #368c78 !important;
    color: #fff !important;
}

/* عدد تعداد */
.cart-qty strong,
.cart-qty .qty-value,
.add-cart-btn.pv2-add-btn.pv2-qty-control .qty-value {
    min-width: 24px !important;
    text-align: center !important;
    color: #296a5c !important;
    font-size: 12px !important;
    font-weight: 800 !important;
}

/* جلوگیری از تداخل .add-cart-btn پایه */
.cart-qty:hover,
.add-cart-btn.pv2-add-btn.pv2-qty-control:hover {
    background: #e6f2ef !important;
    transform: none !important;
    box-shadow: none !important;
}

/* ══════════════════════════════════════════════════════════
   صفحه معرفی محصول (product-detail)
   ساختار منطبق بر قالب، هماهنگ با دیزاین‌سیستم چی‌مغز
   ══════════════════════════════════════════════════════════ */

/* ── کانتینر صفحه ── */
.pd-wrap { max-width: 1280px; margin: 0 auto; padding: 24px 24px 72px; }

/* ── مسیر راهنما ── */
.pd-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #909a96; margin-bottom: 26px; flex-wrap: wrap; }
.pd-breadcrumb a { color: var(--primary); text-decoration: none; font-weight: 600; transition: color .2s; }
.pd-breadcrumb a:hover { color: var(--primary-dark); }
.pd-breadcrumb .lucide-sm { width: 14px; height: 14px; color: #cbd5d1; }
.pd-breadcrumb .current { color: var(--ink); font-weight: 700; }

/* ── چیدمان دوستونه (گالری + اطلاعات) ── */
.pd-top { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 48px; align-items: start; }

/* ── گالری تصویر ── */
.pd-media { position: sticky; top: 96px; }
.pd-main-image { position: relative; border-radius: 24px; overflow: hidden; background: var(--primary-light); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.pd-main-image img { width: 100%; height: 460px; object-fit: cover; display: block; transition: transform .6s ease; }
.pd-main-image:hover img { transform: scale(1.05); }
.pd-main-badge { position: absolute; top: 14px; right: 14px; z-index: 2; }
.pd-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-top: 14px; }
.pd-thumb { border: 2px solid transparent; border-radius: 14px; overflow: hidden; cursor: pointer; padding: 0; background: #fff; opacity: .7; transition: all .25s ease; }
.pd-thumb img { width: 100%; height: 74px; object-fit: cover; display: block; }
.pd-thumb:hover { opacity: 1; transform: translateY(-2px); }
.pd-thumb.active { border-color: var(--primary); opacity: 1; box-shadow: 0 6px 16px rgba(54,140,120,.18); }

/* ── اطلاعات محصول ── */
.pd-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.pd-title { margin: 0 0 10px; font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: -.5px; line-height: 1.35; }
.pd-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; font-size: 12px; color: var(--ink-soft); }
.pd-stars { display: inline-flex; gap: 2px; }
.pd-stars .lucide-sm { width: 15px; height: 15px; color: #d7dedb; }
.pd-stars .filled { color: var(--secondary); fill: currentColor; }
.pd-sku { color: #909a96; font-variant-numeric: tabular-nums; }
.pd-excerpt { color: var(--ink-soft); font-size: 14px; line-height: 1.9; margin: 0 0 18px; }
.pd-features { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

/* ── باکس قیمت ── */
.pd-price-box { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 16px; padding: 18px 20px; margin-bottom: 20px; }
.pd-price-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-old-price { color: rgba(38,48,45,.35); text-decoration: line-through; font-size: 14px; }
.pd-current-price { font-size: 26px; font-weight: 900; color: var(--primary-dark); }
.pd-current-price small { font-size: 12px; font-weight: 500; color: rgba(38,48,45,.45); }
.pd-current-price--sale { color: #cc5b3a; }
.pd-savings { font-size: 11px; font-weight: 700; color: #1a9c5c; background: #eafbf2; padding: 3px 8px; border-radius: 8px; }
.pd-min-note { display: flex; align-items: center; gap: 6px; margin: 10px 0 0; font-size: 12px; color: var(--ink-soft); }
.pd-min-note .lucide-sm { color: var(--primary); }

/* ── نوار ارسال/ضمانت ── */
.pd-shipping { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.pd-shipping-item { display: inline-flex; align-items: center; gap: 7px; background: var(--primary-light); color: var(--primary-dark); border: 1px solid #d6ebe5; border-radius: 12px; padding: 8px 14px; font-size: 12px; font-weight: 700; }
.pd-shipping-item.gold { background: var(--secondary-light); color: var(--secondary-dark); border-color: #ebdbc1; }

/* ── اکشن‌ها (تعداد + افزودن) ── */
.pd-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.pd-add-btn { flex: 1; min-width: 200px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary); color: #fff; border: none; border-radius: 12px; padding: 12px 22px; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; transition: all .2s ease; box-shadow: 0 8px 18px rgba(54,140,120,.18); }
.pd-add-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.pd-wishlist-btn { width: 46px; height: 46px; flex: 0 0 46px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-soft); cursor: pointer; transition: all .2s; }
.pd-wishlist-btn:hover { color: #dc2626; border-color: #fca5a5; background: #fef2f2; }

/* ── اشتراک‌گذاری + روش‌های پرداخت ── */
.pd-extra { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px dashed var(--line); padding-top: 18px; }
.pd-social { display: flex; align-items: center; gap: 8px; }
.pd-social-label { font-size: 12px; font-weight: 700; color: var(--ink-soft); margin-left: 4px; }
.pd-social a { width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #f1f4f2; color: var(--ink-soft); transition: all .2s; }
.pd-social a:hover { background: var(--primary); color: #fff; }
.pd-payments { display: flex; align-items: center; gap: 6px; }
.pd-pay-chip { padding: 5px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; font-weight: 700; }

/* ── تب‌ها ── */
.pd-tabs { margin-top: 72px; }
.pd-tab-head { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.pd-tab-link { padding: 13px 22px; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--ink-soft); position: relative; transition: all .2s; border-radius: 12px 12px 0 0; }
.pd-tab-link:hover { color: var(--primary); background: var(--primary-light); }
.pd-tab-link.active { color: var(--primary); }
.pd-tab-link.active::after { content: ""; position: absolute; right: 12px; left: 12px; bottom: -1px; height: 2.5px; border-radius: 2px; background: var(--primary); }
.pd-tab-content { display: none; padding: 28px 4px; animation: pdFade .3s ease; }
.pd-tab-content.active { display: block; }
@keyframes pdFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.pd-desc-text { color: var(--ink-soft); font-size: 14px; line-height: 2; margin: 0 0 18px; max-width: 820px; }
.pd-desc-box { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 16px; padding: 20px 22px; max-width: 820px; }
.pd-desc-box h4 { margin: 0 0 12px; font-size: 15px; font-weight: 800; color: var(--ink); }
.pd-desc-list { list-style: none; margin: 0; padding: 0; }
.pd-desc-list li { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--ink-soft); }
.pd-desc-list li .lucide-sm { color: var(--primary); flex-shrink: 0; }

/* جدول اطلاعات تکمیلی */
.pd-attr-wrap { max-width: 820px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.pd-attr-table { width: 100%; border-collapse: collapse; }
.pd-attr-table th, .pd-attr-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 13px; text-align: right; }
.pd-attr-table tr:last-child th, .pd-attr-table tr:last-child td { border-bottom: 0; }
.pd-attr-table th { color: var(--ink); font-weight: 800; width: 180px; background: #fafafa; }
.pd-attr-table td { color: var(--ink-soft); }

/* آکاردئون ارسال */
.pd-acc { max-width: 820px; }
.pd-acc-item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 10px; background: #fff; overflow: hidden; }
.pd-acc-title { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 18px; border: none; background: transparent; cursor: pointer; font-family: inherit; font-size: 13px; font-weight: 800; color: var(--ink); text-align: right; }
.pd-acc-title .lucide-sm { transition: transform .25s; color: var(--ink-soft); }
.pd-acc-item.open .pd-acc-title .lucide-sm { transform: rotate(180deg); color: var(--primary); }
.pd-acc-body { display: none; padding: 0 18px 16px; font-size: 13px; color: var(--ink-soft); line-height: 2; }
.pd-acc-item.open .pd-acc-body { display: block; }

/* ── نظرات ── */
.pd-reviews { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 40px; align-items: start; }
.pd-rating-card { background: #fafafa; border: 1px solid #f0f0f0; border-radius: 16px; padding: 24px; text-align: center; position: sticky; top: 96px; }
.pd-rating-big { font-size: 44px; font-weight: 900; color: var(--ink); line-height: 1; }
.pd-rating-outof { font-size: 12px; color: var(--ink-soft); margin: 6px 0 10px; }
.pd-rating-card .pd-stars { justify-content: center; }
.pd-rating-bars { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.pd-bar-row { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.pd-bar-track { flex: 1; height: 6px; border-radius: 4px; background: #e8ecea; overflow: hidden; }
.pd-bar-fill { height: 100%; border-radius: 4px; background: var(--secondary); }

.pd-review-form { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.pd-review-form h4 { margin: 0 0 16px; font-size: 15px; font-weight: 800; color: var(--ink); }
.pd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.pd-input { width: 100%; padding: 11px 14px; border: 1.5px solid #e0e0e0; border-radius: 10px; font-family: inherit; font-size: 13px; background: #fff; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.pd-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(54,140,120,.1); }
textarea.pd-input { resize: vertical; min-height: 90px; }

.pd-comments { display: flex; flex-direction: column; gap: 14px; }
.pd-comment { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.pd-comment-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.pd-comment-author { font-size: 13px; font-weight: 800; color: var(--ink); }
.pd-comment-date { font-size: 11px; color: #909a96; }
.pd-comment-text { margin: 0; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }

/* ── محصولات مرتبط ── */
.pd-related { margin-top: 80px; }
.pd-related-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.pd-related-sub { font-size: 12px; color: var(--secondary-dark); font-weight: 700; display: block; margin-bottom: 4px; }
.pd-related-title { margin: 0; font-size: 22px; font-weight: 900; color: var(--ink); }
.pd-related-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ── ریسپانسیو صفحه محصول ── */
@media (max-width: 1024px) { .pd-related-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 900px) {
    .pd-top { grid-template-columns: 1fr; gap: 32px; }
    .pd-media { position: static; }
    .pd-reviews { grid-template-columns: 1fr; }
    .pd-rating-card { position: static; }
}
@media (max-width: 600px) {
    .pd-wrap { padding: 16px 16px 56px; }
    .pd-title { font-size: 21px; }
    .pd-main-image img { height: 300px; }
    .pd-thumbs { gap: 8px; }
    .pd-thumb img { height: 58px; }
    .pd-current-price { font-size: 21px; }
    .pd-form-grid { grid-template-columns: 1fr; }
    .pd-related-grid { grid-template-columns: 1fr; }
    .pd-tab-link { padding: 11px 14px; font-size: 12.5px; }
    .pd-extra { flex-direction: column; align-items: flex-start; }
}
/* ══════════════════════════════════════════════════════════
   اصلاح استایل cart-preview (پیش‌نمایش سبد خرید)
   ══════════════════════════════════════════════════════════ */

.cart-preview {
    width: min(380px, 92vw);
    padding: 14px;
}

.cart-preview-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #eef1ef;
}

.cart-preview-image {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--bg);
    flex: 0 0 54px;
    border: 1px solid var(--line);
}

.cart-preview-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cart-preview-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.cart-preview-name {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.cart-preview-price {
    margin: 0;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 600;
}

.cart-preview-remove {
    border: none;
    background: transparent;
    color: #b8c0bd;
    padding: 4px;
    flex: 0 0 auto;
    cursor: pointer;
    transition: color .2s;
}
.cart-preview-remove:hover { color: #dc3545; }

/* ── کنترل تعداد داخل پیش‌نمایش (کوچک‌تر و فشرده‌تر) ── */
.cart-preview .add-cart-btn.pv2-add-btn.pv2-qty-control {
    min-width: 82px !important;
    height: 30px !important;
    padding: 2px 4px !important;
    gap: 5px !important;
    border-radius: 8px !important;
    background: #e6f2ef !important;
    border: 1px solid #b9ddd4 !important;
    direction: ltr !important;
}

.cart-preview .add-cart-btn.pv2-add-btn.pv2-qty-control .qty-btn {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    background: rgba(54,140,120,.10) !important;
    color: #296a5c !important;
}

.cart-preview .add-cart-btn.pv2-add-btn.pv2-qty-control .qty-btn:hover {
    background: #368c78 !important;
    color: #fff !important;
}

.cart-preview .add-cart-btn.pv2-add-btn.pv2-qty-control .qty-value {
    min-width: 18px !important;
    font-size: 11px !important;
    color: #296a5c !important;
}

/* ── جلوگیری از تداخل .add-cart-btn پایه ── */
.cart-preview .add-cart-btn.pv2-add-btn.pv2-qty-control:hover {
    background: #e6f2ef !important;
    transform: none !important;
}

@media (max-width: 420px) {
    .cart-preview {
        width: calc(100vw - 20px);
        left: 50%;
        transform: translateX(-50%);
    }
    .cart-preview-name { max-width: 100px; }
}

/* ══════════════════════════════════════════════════════════
   تب‌های صفحه محصول (طراحی جدید)
   ══════════════════════════════════════════════════════════ */

.pd-tabs-container {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e7e2da;
    overflow: hidden;
    margin-top: 32px;
}

.pd-tabs-nav {
    display: flex;
    border-bottom: 1px solid #e7e2da;
    overflow-x: auto;
    scrollbar-width: none;
}

.pd-tabs-nav::-webkit-scrollbar {
    display: none;
}

.pd-tab-button {
    padding: 16px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #5c6864;
    background: transparent;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.pd-tab-button:hover {
    color: #368c78;
    background: #f8f9fa;
}

.pd-tab-button.active {
    color: #368c78;
    border-bottom-color: #368c78;
}

.pd-tab-panel {
    padding: 24px;
    display: none;
}

.pd-tab-panel.active {
    display: block;
}

/* ── نظرات و امتیاز ── */
.pd-rating-summary {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: start;
}

.pd-rating-big-number {
    text-align: center;
    padding: 20px;
    background: #e6f2ef;
    border-radius: 12px;
}

.pd-rating-big-number .number {
    font-size: 48px;
    font-weight: 800;
    color: #368c78;
    line-height: 1;
}

.pd-rating-big-number .out-of {
    font-size: 14px;
    color: #5c6864;
    margin-top: 8px;
}

.pd-rating-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pd-rating-bar {
    display: grid;
    grid-template-columns: 60px 1fr 40px;
    gap: 12px;
    align-items: center;
}

.pd-rating-bar-label {
    font-size: 13px;
    color: #5c6864;
}

.pd-rating-bar-track {
    height: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    overflow: hidden;
}

.pd-rating-bar-fill {
    height: 100%;
    background: #368c78;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.pd-rating-bar-percent {
    font-size: 12px;
    font-weight: 600;
    color: #26302d;
    text-align: left;
}
/* ── توضیحات محصول ── */
.pd-desc-text { 
    color: var(--ink-soft); 
    font-size: 14px; 
    line-height: 2; 
    margin: 0 0 18px; 
    max-width: 820px; 
}

.pd-desc-box { 
    background: #fafafa; 
    border: 1px solid #f0f0f0; 
    border-radius: 16px; 
    padding: 24px; 
    max-width: 820px; 
    margin-top: 20px;
}

.pd-desc-box h4 { 
    margin: 0 0 16px; 
    font-size: 15px; 
    font-weight: 800; 
    color: var(--ink); 
    display: flex;
    align-items: center;
    gap: 8px;
}

.pd-desc-box h4::before {
    content: "";
    width: 4px;
    height: 18px;
    background: var(--primary);
    border-radius: 2px;
}

.pd-desc-list { 
    list-style: none; 
    margin: 0; 
    padding: 0; 
}

.pd-desc-list li { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    padding: 10px 14px; 
    font-size: 13px; 
    color: var(--ink-soft); 
    border-radius: 10px;
    transition: background 0.2s;
    margin-bottom: 4px;
}

.pd-desc-list li:hover {
    background: #fff;
}

.pd-desc-list li .lucide-sm { 
    color: var(--primary); 
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    background: var(--primary-light);
    padding: 3px;
    border-radius: 50%;
}

/* ── ویژگی‌های کلیدی (کارت‌های کوچک) ── */
.pd-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.pd-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e7e2da;
    transition: all 0.2s ease;
}

.pd-feature-item:hover {
    background: var(--primary-light);
    border-color: #b9ddd4;
    transform: translateY(-1px);
}

.pd-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.pd-feature-text {
    font-size: 12px;
    font-weight: 600;
    color: var(--ink);
}

/* ── جدول اطلاعات تکمیلی ── */
.pd-attr-wrap { 
    max-width: 820px; 
    border: 1px solid var(--line); 
    border-radius: 16px; 
    overflow: hidden; 
    background: #fff; 
}

.pd-attr-table { 
    width: 100%; 
    border-collapse: collapse; 
}

.pd-attr-table th, 
.pd-attr-table td { 
    padding: 14px 20px; 
    border-bottom: 1px solid var(--line); 
    font-size: 13px; 
    text-align: right; 
}

.pd-attr-table tr:last-child th, 
.pd-attr-table tr:last-child td { 
    border-bottom: 0; 
}

.pd-attr-table th { 
    color: var(--ink); 
    font-weight: 800; 
    width: 180px; 
    background: #fafafa; 
}

.pd-attr-table td { 
    color: var(--ink-soft); 
}

.pd-attr-table tr:hover td {
    background: var(--primary-light);
}

/* ── آکاردئون ارسال ── */
.pd-acc { 
    max-width: 820px; 
}

.pd-acc-item { 
    border: 1px solid var(--line); 
    border-radius: 14px; 
    margin-bottom: 10px; 
    background: #fff; 
    overflow: hidden; 
    transition: all 0.25s ease;
}

.pd-acc-item:hover {
    border-color: #b9ddd4;
}

.pd-acc-title { 
    width: 100%; 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 10px; 
    padding: 16px 20px; 
    border: none; 
    background: transparent; 
    cursor: pointer; 
    font-family: inherit; 
    font-size: 13px; 
    font-weight: 800; 
    color: var(--ink); 
    text-align: right; 
}

.pd-acc-title .lucide-sm { 
    transition: transform .3s ease; 
    color: var(--ink-soft); 
}

.pd-acc-item.open .pd-acc-title {
    color: var(--primary);
}

.pd-acc-item.open .pd-acc-title .lucide-sm { 
    transform: rotate(180deg); 
    color: var(--primary); 
}

.pd-acc-body { 
    display: none; 
    padding: 0 20px 18px; 
    font-size: 13px; 
    color: var(--ink-soft); 
    line-height: 2; 
}

.pd-acc-item.open .pd-acc-body { 
    display: block; 
    animation: pdFade .3s ease;
}

/* ── فرم نظر ── */
.pd-review-form { 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: 16px; 
    padding: 24px; 
    margin-bottom: 24px; 
}

.pd-review-form h4 { 
    margin: 0 0 16px; 
    font-size: 15px; 
    font-weight: 800; 
    color: var(--ink); 
}

.pd-form-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 14px; 
    margin-bottom: 14px; 
}

.pd-input { 
    width: 100%; 
    padding: 11px 14px; 
    border: 1.5px solid #e0e0e0; 
    border-radius: 10px; 
    font-family: inherit; 
    font-size: 13px; 
    background: #fff; 
    color: var(--ink); 
    outline: none; 
    transition: border-color .2s, box-shadow .2s; 
}

.pd-input:focus { 
    border-color: var(--primary); 
    box-shadow: 0 0 0 3px rgba(54,140,120,.1); 
}

textarea.pd-input { 
    resize: vertical; 
    min-height: 90px; 
}

/* ── نظرات کاربران ── */
.pd-comments { 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.pd-comment { 
    background: #fff; 
    border: 1px solid var(--line); 
    border-radius: 16px; 
    padding: 18px 20px; 
}

.pd-comment-head { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 10px; 
    margin-bottom: 8px; 
    flex-wrap: wrap; 
}

.pd-comment-author { 
    font-size: 13px; 
    font-weight: 800; 
    color: var(--ink); 
}

.pd-comment-date { 
    font-size: 11px; 
    color: #909a96; 
}

.pd-comment-text { 
    margin: 0; 
    font-size: 13px; 
    color: var(--ink-soft); 
    line-height: 1.9; 
}

/* ── ریسپانسیو تب‌ها ── */
@media (max-width: 900px) {
    .pd-tabs-container { margin-top: 24px; }
    .pd-tab-button { padding: 14px 18px; font-size: 13px; }
    .pd-tab-panel { padding: 20px 16px; }
    .pd-rating-summary { grid-template-columns: 1fr; }
    .pd-rating-big-number { max-width: 200px; margin: 0 auto; }
}

@media (max-width: 600px) {
    .pd-features-grid { grid-template-columns: 1fr; }
    .pd-desc-box { padding: 16px; }
    .pd-form-grid { grid-template-columns: 1fr; }
    .pd-attr-table th, 
    .pd-attr-table td { padding: 10px 12px; font-size: 12px; }
    .pd-attr-table th { width: 120px; }
}
/* ══════════════════════════════════════════════════════════
   بخش تماس - کپسول دو رنگ
   ══════════════════════════════════════════════════════════ */

.cx-section {
    padding: 76px 0;
    background: #fff;
}

.cx-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

.cx-header {
    text-align: center;
    margin-bottom: 44px;
}

.cx-capsule {
    display: flex;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(38, 48, 45, .12);
}



/* ══════════════════════════════════════════════════════════
   فوتر - نسخه نهایی (کارت شناور با گوشه‌های گرد)
   ══════════════════════════════════════════════════════════ */

.cf-footer {
    position: relative;
    background: linear-gradient(180deg, #fdfaf5 0%, var(--secondary-light) 100%);
    border-radius: 40px 40px 0 0;
    box-shadow: 0 -20px 50px rgba(38, 48, 45, .06);
    overflow: hidden;
    padding-top: 50px;
}

.cf-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
}

.cf-watermark {
    position: absolute;
    top: -14px;
    left: -8px;
    font-size: 120px;
    font-weight: 900;
    color: var(--primary);
    opacity: .045;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

.cf-deco-dots {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--primary) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: .05;
    pointer-events: none;
    z-index: 1;
}

/* ── ردیف بالا ── */
.cf-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    padding-bottom: 34px;
    border-bottom: 1px dashed #ddd0b8;
}

.cf-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}
.cf-brand img { width: 38px; height: 38px; object-fit: contain; }
.cf-brand span { font-size: 20px; font-weight: 900; color: var(--ink); }

.cf-tagline {
    margin: 0 0 14px;
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 260px;
    line-height: 1.8;
}

.cf-social { display: flex; gap: 8px; }
.cf-social a {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
    transition: all .25s ease;
}
.cf-social a:hover {
    background: var(--primary); color: #fff; border-color: var(--primary);
    transform: translateY(-3px);
}

/* ── کارت خبرنامه شناور ── */
.cf-newsletter-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 22px;
    padding: 20px 24px;
    box-shadow: 0 16px 40px rgba(38, 48, 45, .09);
    flex: 0 1 380px;
}

.cf-newsletter-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: var(--secondary-light);
    color: var(--secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cf-newsletter-inline { flex: 1; min-width: 0; }
.cf-newsletter-inline label {
    display: block;
    font-size: 12.5px;
    font-weight: 800;
    color: var(--ink);
    margin-bottom: 9px;
}
.cf-newsletter-row { display: flex; gap: 7px; }
.cf-newsletter-row input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    color: var(--ink);
    font-family: inherit;
    font-size: 12.5px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
    min-width: 0;
}
.cf-newsletter-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(54, 140, 120, .1);
}
.cf-newsletter-row button {
    flex: 0 0 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, transform .2s;
}
.cf-newsletter-row button:hover {
    background: var(--secondary-dark);
    transform: scale(1.06);
}
.cf-newsletter-msg { margin: 8px 2px 0; font-size: 11.5px; min-height: 14px; }

/* ── کاشی‌های دسترسی سریع ── */
.cf-tiles {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    padding: 34px 0;
}

.cf-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink-soft);
    transition: transform .25s ease, color .25s ease;
}

.cf-tile-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(38, 48, 45, .05);
    transition: all .25s ease;
}
.cf-tile-a { color: var(--primary); }
.cf-tile-b { color: var(--secondary-dark); }

.cf-tile:hover { transform: translateY(-4px); color: var(--ink); }
.cf-tile:hover .cf-tile-a { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(54,140,120,.25); }
.cf-tile:hover .cf-tile-b { background: var(--secondary); color: #fff; box-shadow: 0 10px 24px rgba(203,165,82,.3); }

/* ── نوار تماس پیلی ── */
.cf-contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 4px 0 40px;
}
.cf-pill {
    display: flex; align-items: center; gap: 7px;
    background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
    font-size: 12px; font-weight: 600; padding: 9px 15px; border-radius: 999px;
}
.cf-pill .lucide-sm { color: var(--secondary-dark); }

/* ── نوار پایینی ── */
.cf-bottom {
    position: relative;
    z-index: 2;
    background: #26302d;
    padding: 15px 0;
}
.cf-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; flex-wrap: wrap;
}
.cf-copyright { margin: 0; font-size: 11.5px; color: #9aa6a1; }

.cf-trust { display: flex; gap: 10px; flex-wrap: wrap; }
.cf-trust-pill {
    display: flex; align-items: center; gap: 6px;
    font-size: 10.5px; font-weight: 600; color: #cbd5d1;
    background: rgba(255,255,255,.06);
    padding: 6px 12px;
    border-radius: 999px;
}
.cf-trust-pill .lucide-sm { color: #7fdcb4; }

/* ── ریسپانسیو ── */
@media (max-width: 900px) {
    .cf-watermark { font-size: 90px; }
    .cf-tiles { grid-template-columns: repeat(3, 1fr); }
    .cf-newsletter-card { flex-basis: 100%; }
}

@media (max-width: 600px) {
    .cf-footer { padding-top: 32px; border-radius: 26px 26px 0 0; }
    .cf-watermark { font-size: 56px; top: -6px; }
    .cf-top-row { gap: 20px; padding-bottom: 24px; }
    .cf-newsletter-card { flex-direction: column; align-items: stretch; padding: 18px; }
    .cf-tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 24px 0; }
    .cf-tile-icon { width: 48px; height: 48px; }
    .cf-tile { font-size: 10.5px; }
    .cf-contact-pills { padding-bottom: 26px; }
    .cf-container { padding: 0 16px; }
    .cf-bottom-inner { flex-direction: column; text-align: center; gap: 10px; }
}
.chat-widget {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 1000;
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(54, 140, 120, 0.35);
  transition: all 0.3s ease;
  position: relative;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(54, 140, 120, 0.45);
}
.chat-toggle .lucide { width: 26px; height: 26px; }
.chat-toggle.active { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.chat-toggle.active .chat-icon-default { display: none; }
.chat-toggle:not(.active) .chat-icon-close { display: none; }
.chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fff;
  animation: chatPulse 2s infinite;
}
@keyframes chatPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}
.chat-window {
  position: absolute;
  bottom: 80px;
  left: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 500px;
  max-height: calc(100vh - 120px);
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(38, 48, 45, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.9) translateY(20px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.chat-window.open {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}
.chat-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.chat-header-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.chat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-avatar .lucide-sm { width: 20px; height: 20px; }
.chat-header-info h4 { margin: 0 0 2px; font-size: 15px; font-weight: 800; }
.chat-status { display: flex; align-items: center; gap: 5px; font-size: 11px; opacity: 0.9; }
.chat-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.chat-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.chat-close:hover { background: rgba(255, 255, 255, 0.25); }
.chat-close .lucide-sm { width: 18px; height: 18px; }
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #f8f9fa;
}
.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: messageSlide 0.3s ease;
}
@keyframes messageSlide {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.chat-message-received { align-self: flex-start; }
.chat-message-sent { align-self: flex-end; flex-direction: row-reverse; }
.chat-message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-message-avatar .lucide-sm { width: 16px; height: 16px; }
.chat-message-content {
  background: #fff;
  padding: 12px 16px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}
.chat-message-received .chat-message-content { border-bottom-left-radius: 4px; }
.chat-message-sent .chat-message-content { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.chat-message-content p { margin: 0 0 4px; font-size: 13px; line-height: 1.6; }
.chat-message-time { font-size: 10px; opacity: 0.6; }
.chat-quick-replies {
  padding: 12px 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid #e7e2da;
  background: #fff;
}
.quick-reply {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.quick-reply:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.chat-input-area {
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  border-top: 1px solid #e7e2da;
  background: #fff;
}
.chat-input-area input {
  flex: 1;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  font-family: inherit;
  font-size: 13px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.chat-input-area input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(54, 140, 120, 0.1); }
.chat-input-area button {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--primary);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.chat-input-area button:hover { background: var(--primary-dark); transform: scale(1.05); }
.chat-input-area button .lucide-sm { width: 18px; height: 18px; }
@media (max-width: 480px) {
  .chat-widget { bottom: 16px; left: 16px; }
  .chat-toggle { width: 54px; height: 54px; }
  .chat-toggle .lucide { width: 22px; height: 22px; }
  .chat-window { width: calc(100vw - 32px); height: calc(100vh - 100px); bottom: 70px; }
}

  /* ══════════════════════════════════════════════════════════
   بخش تماس - ریدیزاین رسمی و فشرده
   ══════════════════════════════════════════════════════════ */

.cx-section {
    padding: 56px 0;
    background: #ffffff;
}

.cx-container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── هدر ── */
.cx-header {
    text-align: center;
    margin-bottom: 32px;
}

.cx-eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.2px;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 16px;
    border-radius: 999px;
    text-transform: uppercase;
}

.cx-heading {
    font-size: 24px;
    font-weight: 900;
    color: var(--ink);
    margin: 10px 0 6px;
}

.cx-desc {
    font-size: 13px;
    color: var(--ink-soft);
    max-width: 480px;
    margin: 0 auto;
}

/* ── کپسول ── */
.cx-capsule {
    display: flex;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(38, 48, 45, .08);
    border: 1px solid var(--line);
}

/* ── پنل اطلاعات ── */
.cx-info {
    flex: 0 0 38%;
    background: var(--primary);
    color: #fff;
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.cx-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.cx-deco-1 {
    width: 160px;
    height: 160px;
    top: -60px;
    right: -50px;
    background: rgba(255, 255, 255, .05);
}
.cx-deco-2 {
    width: 90px;
    height: 90px;
    bottom: -30px;
    left: -20px;
    background: rgba(203, 165, 82, .12);
}

.cx-info-title {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 6px;
}

.cx-info-desc {
    position: relative;
    z-index: 1;
    font-size: 12.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, .7);
    margin: 0 0 22px;
}

.cx-info-items {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.cx-info-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cx-info-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cx-info-icon .lucide-sm {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, .6);
}

.cx-info-item > div {
    display: flex;
    flex-direction: column;
}

.cx-info-label {
    font-size: 10px;
    color: rgba(255, 255, 255, .4);
    text-transform: uppercase;
    letter-spacing: .5px;
}

.cx-info-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #fff;
}

.cx-social {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 8px;
}

.cx-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .6);
    transition: all .25s ease;
}

.cx-social a:hover {
    background: var(--secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* ── پنل فرم ── */
.cx-form {
    flex: 1;
    background: #fff;
    padding: 36px 38px;
}

.cx-form-title {
    margin: 0 0 18px;
    font-size: 16px;
    font-weight: 800;
    color: var(--ink);
}

.cx-field {
    margin-bottom: 14px;
}

.cx-field label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 5px;
}

.cx-input {
    position: relative;
}

.cx-input > .lucide-sm {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--ink-soft);
    opacity: .5;
    pointer-events: none;
}

.cx-input > .cx-icon-top {
    top: 14px;
    transform: none;
}

.cx-input input,
.cx-input textarea {
    width: 100%;
    padding: 10px 42px 10px 14px;
    border-radius: 12px;
    border: 1.5px solid var(--line);
    background: var(--bg);
    font-family: inherit;
    font-size: 13px;
    color: var(--ink);
    outline: none;
    transition: border-color .25s, box-shadow .25s;
    resize: none;
}

.cx-input input:focus,
.cx-input textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(54, 140, 120, .08);
}

.cx-input textarea {
    min-height: 64px;
}

.cx-error {
    display: none;
    font-size: 11px;
    color: #dc3545;
    margin: 2px 0 10px;
}

.cx-error.show {
    display: block;
}

.cx-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background .25s, transform .2s;
    box-shadow: 0 8px 20px rgba(54, 140, 120, .2);
    cursor: pointer;
}

.cx-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* ── ریسپانسیو ── */
@media (max-width: 820px) {
    .cx-capsule {
        flex-direction: column;
        border-radius: 20px;
    }
    .cx-info {
        flex: unset;
        padding: 30px 28px;
    }
    .cx-form {
        padding: 30px 28px;
    }
    .cx-heading {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .cx-section {
        padding: 40px 0;
    }
    .cx-container {
        padding: 0 16px;
    }
    .cx-info {
        padding: 24px 20px;
    }
    .cx-form {
        padding: 24px 20px;
    }
    .cx-heading {
        font-size: 18px;
    }
    .cx-info-items {
        gap: 12px;
    }
    .cx-deco-1 {
        width: 120px;
        height: 120px;
        top: -40px;
        right: -30px;
    }
}