/* ============================================
   style.css — چیدمان سایت (روی theme.css سوار می‌شه)
   ============================================ */

.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- هدر ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--bg);
    box-shadow: var(--shadow-raised-sm);
    padding: 14px 0;
}
.site-header .row { display: flex; align-items: center; gap: 18px; }
.logo { font-size: 13px; font-weight: 800; color: var(--accent); display: flex; align-items: center; gap: 8px; }
.logo i { font-size: 18px; }
.main-nav { display: flex; gap: 22px; margin-inline-start: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.main-nav a:hover { color: var(--accent); }

.search-box { flex: 1; max-width: 360px; position: relative; }
.search-box input {
    width: 100%; height: 42px; border: none; outline: none;
    background: var(--surface); color: var(--text-main);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-pressed);
    padding: 0 42px 0 16px; font-family: inherit; font-size: 13.5px;
}
.search-box i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-faint); }

.header-icons { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.icon-btn {
    position: relative; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-raised-sm); color: var(--text-muted);
    cursor: pointer; transition: color .3s ease, transform .2s ease;
}
.icon-btn:hover { color: var(--accent); transform: translateY(-2px); }
.icon-btn .count {
    position: absolute; top: -4px; right: -4px; background: var(--accent-gradient); color: #fff;
    font-size: 10px; font-weight: 700; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center;
}

/* ---------- بنر ---------- */
.hero {
    margin: 28px 0; padding: 60px 40px; border-radius: var(--radius-lg);
    background: var(--surface); box-shadow: var(--shadow-raised); text-align: center;
}
.hero h1 { font-size: 34px; margin-bottom: 10px; }
.hero p { color: var(--text-muted); margin-bottom: 22px; }

/* ---------- دسته‌بندی‌ها ---------- */
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 18px; margin: 30px 0; }
.category-card { text-align: center; padding: 24px 12px; cursor: pointer; }
.category-card i { font-size: 26px; color: var(--accent); margin-bottom: 10px; display: block; }
.category-card span { font-weight: 600; font-size: 13.5px; }

/* ---------- ردیف کشویی با دست (بدون حرکت خودکار، لوپ بی‌نهایت) ---------- */
.drag-row {
    direction: ltr; /* از سردرگمی جهت RTL توی محاسبه اسکرول جلوگیری می‌کنه؛ محتوای داخل کارت‌ها خودش راست‌به‌چپ می‌مونه */
    overflow: hidden;
    margin: 30px 0;
    padding: 12px 0 16px;
    cursor: grab;
    touch-action: pan-y; /* اجازه اسکرول عمودی صفحه رو می‌ده، درگ افقی رو خودمون با جاوااسکریپت می‌گیریم */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.drag-row.is-dragging { cursor: grabbing; }
.drag-row__track {
    display: flex;
    align-items: stretch;
    gap: 18px;
    width: max-content;
    will-change: transform;
}
.drag-row .category-card {
    flex: 0 0 160px;
    scroll-snap-align: none;
    -webkit-user-drag: none;
    user-select: none;
}
@media (max-width: 768px) {
    .drag-row { margin: 20px 0; }
    .drag-row__track { gap: 12px; }
    .drag-row .category-card { flex: 0 0 108px; padding: 16px 6px; }
    .drag-row .category-card i { font-size: 21px; margin-bottom: 6px; }
    .drag-row .category-card span { font-size: 11.5px; }
}

/* ---------- نوار اعتماد (همون رفتار کشویی) ---------- */
.trust-marquee {
    margin: 0 0 34px;
    padding: 10px 0 14px;
}
.trust-marquee__track {
    align-items: center;
    gap: 14px;
}
.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 20px;
    border-radius: 30px;
    background: var(--surface);
    border: 1.5px solid var(--border-soft);
    font-size: 13px; font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.trust-chip:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 8px 20px rgba(63,143,47,.25);
}
.trust-chip i {
    color: var(--accent);
    font-size: 15px;
    filter: drop-shadow(0 0 5px rgba(63,143,47,.5));
}
@media (max-width: 768px) {
    .trust-marquee { margin-bottom: 22px; }
    .trust-marquee__track { gap: 10px; }
    .trust-chip { font-size: 11.5px; padding: 9px 15px; gap: 7px; }
    .trust-chip i { font-size: 13px; }
}

/* ---------- محصولات ---------- */
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 34px 0 18px; }
.section-title h2 { font-size: 20px; }
.section-title a { font-size: 13px; color: var(--accent); font-weight: 600; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); grid-auto-rows: 1fr; gap: 20px; align-items: stretch; }
.product-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: 100%; }
.thumb-wrap { position: relative; }
.product-card .thumb { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-md) var(--radius-md) 0 0; display: block; }

/* ---------- دکمه قلب علاقه‌مندی ---------- */
.wishlist-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-raised-sm);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 2;
    transition: color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.wishlist-btn:hover { color: #e0304a; transform: scale(1.08); }
.wishlist-btn.active { color: #e0304a; }
.wishlist-btn.active:hover { color: #c62339; }

.wishlist-btn-detail.active { color: #e0304a; box-shadow: var(--shadow-pressed-accent); }
.wishlist-btn-detail:hover { color: #f5e9c8; }

.wishlist-toggle.loading { opacity: .55; pointer-events: none; }

.wishlist-toggle.pop i { animation: heartPop .5s cubic-bezier(.17,.89,.32,1.49); }
.wishlist-toggle.pop-out i { animation: heartPopOut .35s ease; }

.wishlist-btn.pop::before {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid #e0304a;
    animation: heartRipple .55s ease-out forwards;
    pointer-events: none;
}

@keyframes heartPop {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.5); }
    55%  { transform: scale(.85); }
    100% { transform: scale(1); }
}
@keyframes heartPopOut {
    0%   { transform: scale(1); }
    40%  { transform: scale(.7); }
    100% { transform: scale(1); }
}
@keyframes heartRipple {
    0%   { transform: scale(.6); opacity: .8; }
    100% { transform: scale(1.7); opacity: 0; }
}
.product-card .info { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.product-card .pc-title { font-size: 14.5px; font-weight: 600; margin-bottom: 8px; min-height: 38px; }
.product-card .info > *:not(:last-child) { flex-shrink: 0; }
.product-card .info .price-row { margin-top: auto; margin-bottom: 10px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-now { color: var(--accent); font-weight: 700; font-size: 15px; }
.price-old { color: var(--text-faint); text-decoration: line-through; font-size: 12px; }
.add-cart-btn { width: 100%; margin-top: 12px; }
.product-card .info .add-to-cart-form { width: 100%; }
.product-card .info .atc-btn.atc-btn-sm { width: 100%; }

/* ---------- فیلترها ---------- */
.filters-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.filters-panel { padding: 20px; }
.filters-panel h4 { margin-bottom: 12px; font-size: 14px; }
.filters-panel label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; cursor: pointer; }

/* ---------- چیپ‌های دسته‌بندی (به‌جای رادیوی معمولی) ---------- */
.cat-chip-list { display: flex; flex-direction: column; gap: 12px; }
.cat-chip {
    position: relative;
    display: flex !important;
    flex-direction: row-reverse;
    align-items: center;
    gap: 14px;
    margin: 0 !important;
    width: 100%;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--surface);
    border: 1.5px solid var(--border-soft);
    font-size: 14px; font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
    transition: background .25s ease, border-color .25s ease, color .25s ease, transform .2s ease, box-shadow .25s ease;
}
.cat-chip input {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
    pointer-events: none;
}
.cat-chip__icon {
    flex: none;
    font-size: 19px;
    color: var(--accent);
    filter: drop-shadow(0 0 6px rgba(63,143,47,.55));
    transition: color .25s ease, filter .25s ease, transform .25s ease;
}
.cat-chip__label { flex: 1; text-align: right; }
.cat-chip__check {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0;
    overflow: hidden;
    opacity: 0;
    transform: scale(.3) rotate(-40deg);
    color: #fff;
    font-size: 12px;
    transition: width .25s cubic-bezier(.34,1.56,.64,1), opacity .2s ease, transform .3s cubic-bezier(.34,1.56,.64,1), margin .25s ease;
}
.cat-chip input:checked ~ .cat-chip__check {
    width: 16px;
    opacity: 1;
    transform: scale(1) rotate(0deg);
}
.cat-chip:hover {
    border-color: var(--accent);
}
.cat-chip:has(input:checked) {
    background: var(--accent-gradient);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 10px 24px rgba(63,143,47,.35);
    transform: translateY(-1px);
}
.cat-chip:has(input:checked) .cat-chip__icon {
    color: #fff;
    filter: drop-shadow(0 0 8px rgba(255,255,255,.7));
    transform: scale(1.08);
}
.cat-chip:active { transform: scale(.98); }

/* ---------- جزئیات محصول ---------- */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; margin: 30px 0; }
.gallery-main img { width: 100%; border-radius: var(--radius-md); box-shadow: var(--shadow-raised); }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: var(--shadow-raised-sm); cursor: pointer; }
.product-info h1 { font-size: 24px; margin-bottom: 8px; }
.product-info .price-row { margin: 16px 0; font-size: 20px; }
.qty-select { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.tabs { display: flex; gap: 20px; margin: 30px 0 14px; border-bottom: 1px solid var(--border-soft); }
.tabs .tab { padding-bottom: 10px; cursor: pointer; color: var(--text-muted); font-weight: 600; font-size: 13.5px; }
.tabs .tab.active { color: var(--accent); border-bottom: 2px solid var(--accent); }

/* ---------- سبد خرید ---------- */
.cart-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; }
.cart-table td { padding: 14px; background: var(--surface); box-shadow: var(--shadow-raised-sm); }
.cart-table tr td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.cart-table tr td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.cart-summary { max-width: 340px; margin-inline-start: auto; padding: 22px; }
.cart-summary .row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 13.5px; color: var(--text-muted); }
.cart-summary .total { font-size: 17px; font-weight: 700; color: var(--text-main); }

/* ---------- فرم‌ها (چک‌اوت، پروفایل) ---------- */
.form-card { max-width: 520px; margin: 30px auto; padding: 30px; }
.form-card h2 { text-align: center; margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---------- فوتر ---------- */
.site-footer { margin-top: 60px; padding: 40px 0; background: var(--surface); box-shadow: 0 -1px 0 var(--border-soft); }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer-grid h4 { margin-bottom: 12px; font-size: 14px; }
.footer-grid a { display: block; color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.footer-bottom { text-align: center; margin-top: 24px; color: var(--text-faint); font-size: 12px; }

/* ---------- پنل ادمین ---------- */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
    width: 230px; background: var(--surface); box-shadow: var(--shadow-raised-sm);
    padding: 20px 14px; display: flex; flex-direction: column; gap: 6px; transition: width .3s ease;
}
.admin-sidebar.collapsed { width: 76px; }
.admin-sidebar a {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm);
    font-size: 13.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; overflow: hidden;
}
.admin-sidebar a.active, .admin-sidebar a:hover { color: var(--accent); box-shadow: var(--shadow-pressed); }
.admin-main { flex: 1; padding: 26px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 24px; }
.stat-card { padding: 20px; }
.stat-card .value { font-size: 24px; font-weight: 700; }
.stat-card .label { color: var(--text-muted); font-size: 12.5px; }

.data-table { width: 100%; border-collapse: separate; border-spacing: 0 10px; font-size: 13.5px; }
.data-table th { text-align: right; padding: 10px 14px; color: var(--text-muted); font-size: 12px; }
.data-table td { padding: 12px 14px; background: var(--surface); box-shadow: var(--shadow-raised-sm); }
.data-table tr td:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.data-table tr td:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* ---------- ردیف‌های کشویی (اسکرول افقی) ---------- */
/* روی دسکتاپ رفتار عادی گرید رو داره؛ فقط زیر 768px به کشویی افقی تبدیل می‌شه */
@media (max-width: 768px) {
    .scroll-row {
        display: flex !important;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
        gap: 12px;
        margin: 0 -16px;
        padding: 4px 16px 12px;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .scroll-row::-webkit-scrollbar { display: none; }

    .category-grid.scroll-row .category-card {
        flex: 0 0 94px;
        scroll-snap-align: start;
        padding: 16px 6px;
    }
    .category-grid.scroll-row .category-card i { font-size: 21px; margin-bottom: 6px; }
    .category-grid.scroll-row .category-card span { font-size: 11.5px; }

    .product-grid.scroll-row .product-card {
        flex: 0 0 46vw;
        max-width: 190px;
        scroll-snap-align: start;
    }
    .product-grid.scroll-row .product-card .info { padding: 12px; }
    .product-grid.scroll-row .product-card .pc-title { font-size: 13px; min-height: 34px; }
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 900px) {
    .product-detail, .filters-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar { position: fixed; z-index: 60; height: 100%; }
}
@media (max-width: 768px) {
    .container { padding: 0 16px; }

    .site-header { padding: 10px 0; }
    .logo { font-size: 12px; }
    .header-icons { gap: 8px; }
    .icon-btn { width: 38px; height: 38px; }

    .hero { padding: 34px 20px; margin: 16px 0; border-radius: var(--radius-md); }
    .hero h1 { font-size: 20px !important; line-height: 1.6 !important; }
    .hero p { font-size: 13px; margin-bottom: 18px; }
    .hero .btn { width: 100%; }

    .section-title { margin: 26px 0 12px; }
    .section-title h2 { font-size: 16.5px; }
    .section-title a { font-size: 12.5px; }

    .form-card { padding: 20px; margin: 16px auto; }
    .cart-summary { max-width: none; }
}
@media (max-width: 600px) {
    .main-nav { display: none; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* ============================================
   هم‌ترازی کارت محصول
   ============================================ */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card .info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 14px;
}
.product-card .pc-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    min-height: 42px;         /* همیشه ۲ خط جا می‌گیره */
    margin: 0 0 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .pc-version {
    font-size: 11px;
    color: var(--text-muted);
    min-height: 18px;         /* نسخه همیشه یه خط جا می‌گیره */
    margin-bottom: 10px;
    display: block;
    line-height: 1.6;
}
.product-card .pc-price {
    margin-top: auto;         /* قیمت رو می‌چسبونه به پایین */
    margin-bottom: 10px;
    min-height: 26px;         /* ارتفاع ثابت قیمت */
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.product-card .info .add-to-cart-form {
    width: 100%;
    margin: 0;
}
.product-card .info .atc-btn.atc-btn-sm {
    width: 100%;
}
/* ===== صفحه‌بندی ===== */
.pager { display:flex; justify-content:center; align-items:center; flex-wrap:wrap; gap:8px; margin:30px 0 10px; }
.pager__btn { min-width:40px; height:40px; padding:0 14px; display:inline-flex; align-items:center; justify-content:center; gap:6px;
  border-radius:12px; background:var(--surface); color:var(--text-main); font-weight:600; font-size:14px; text-decoration:none;
  box-shadow:var(--shadow-raised-sm); transition:transform .15s; }
.pager__btn:hover { transform:translateY(-2px); }
.pager__btn.is-active { background:var(--accent); color:#fff; box-shadow:var(--shadow-pressed); pointer-events:none; }
.pager__dots { color:var(--text-muted); padding:0 4px; }
@media (max-width:600px){ .pager__btn{min-width:36px;height:36px;padding:0 10px;font-size:13px;} .pager__nav{padding:0 12px;} }

/* ===== پنل ادمین: محصولات ===== */
.adm-toolbar { display:flex; gap:10px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.adm-toolbar input[type=text], .adm-toolbar select { padding:10px 14px; border:none; border-radius:10px; background:var(--surface); color:var(--text-main); box-shadow:var(--shadow-pressed); font-family:inherit; }
.adm-toolbar input[type=text] { flex:1; min-width:180px; }
.adm-section { margin:16px 0 8px; font-size:13px; font-weight:700; color:var(--accent); display:flex; align-items:center; gap:8px; }
.adm-section::after { content:''; flex:1; height:1px; background:var(--text-muted); opacity:.2; }
.adm-count { font-size:12.5px; color:var(--text-muted); margin:4px 0 0; }

/* ---------- گالری محصول (اندازه یکسان + بزرگ‌نمایی) ---------- */
.gallery { min-width: 0; }
.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-raised);
    background: var(--surface);
    cursor: zoom-in;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0;
    box-shadow: none;
}
.gallery-zoom-hint {
    position: absolute; bottom: 10px; left: 10px;
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.45); color: #fff; font-size: 13px;
    pointer-events: none;
}
.gallery-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 38px; height: 38px; border-radius: 50%; border: none;
    background: rgba(0,0,0,.5); color: #fff; font-size: 15px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 2; transition: background .2s;
}
.gallery-arrow:hover { background: rgba(0,0,0,.75); }
.gallery-arrow--next { left: 10px; }
.gallery-arrow--prev { right: 10px; }
.gallery-thumbs {
    display: flex; gap: 10px; margin-top: 12px;
    overflow-x: auto; padding: 4px 2px 6px;
    scrollbar-width: thin;
}
.gallery-thumbs img {
    width: 64px; height: 64px; flex-shrink: 0;
    object-fit: cover; cursor: pointer;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    opacity: .7; transition: opacity .2s, border-color .2s;
}
.gallery-thumbs img.active { opacity: 1; border-color: var(--accent); }

.lightbox {
    position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.94);
    display: flex; align-items: center; justify-content: center;
    padding: 56px 12px;
}
.lightbox[hidden] { display: none; }
.lightbox img {
    max-width: 100%; max-height: 100%;
    object-fit: contain; border-radius: 8px;
    user-select: none; -webkit-user-drag: none;
}
.lightbox-close, .lightbox-arrow {
    position: absolute; border: none; cursor: pointer; color: #fff;
    background: rgba(255,255,255,.14); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.lightbox-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 18px; }
.lightbox-arrow { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 18px; }
.lightbox-arrow--next { left: 12px; }
.lightbox-arrow--prev { right: 12px; }
.lightbox-close:hover, .lightbox-arrow:hover { background: rgba(255,255,255,.28); }
.lightbox-counter {
    position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
    color: #fff; font-size: 13px; background: rgba(255,255,255,.14);
    padding: 4px 12px; border-radius: 999px;
}
@media (max-width: 768px) {
    .gallery-arrow { width: 32px; height: 32px; font-size: 13px; }
    .lightbox-arrow { width: 40px; height: 40px; }
}

/* ---------- فیلتر قیمت ---------- */
.price-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 14px; }
.price-preset {
    border: none; cursor: pointer; font: inherit; font-size: 12.5px;
    width: 100%; min-height: 40px; padding: 8px 6px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center; text-align: center; white-space: nowrap;
    background: var(--surface); color: var(--text-main);
    box-shadow: var(--shadow-raised-sm); transition: transform .15s;
}
.price-preset:active { transform: scale(.97); }
.price-preset.active { background: var(--accent-gradient); color: #fff; }
.price-fields { display: flex; flex-direction: column; gap: 10px; }
.price-field {
    display: flex; align-items: center; gap: 6px;
    padding: 6px 8px; border-radius: 10px;
    background: var(--surface); box-shadow: var(--shadow-pressed);
}
.price-field__label { font-size: 12.5px; color: var(--text-muted); width: 20px; flex-shrink: 0; }
.price-field__unit { font-size: 12px; color: var(--text-muted); flex-shrink: 0; }
.pf-input {
    flex: 1; min-width: 0; border: none; outline: none; background: transparent;
    color: var(--text-main); font: inherit; font-size: 14px; text-align: center;
    direction: ltr; padding: 6px 2px;
}
.pf-btn {
    width: 30px; height: 30px; flex-shrink: 0; border: none; cursor: pointer;
    border-radius: 8px; font-size: 18px; line-height: 1;
    background: var(--surface); color: var(--text-main);
    box-shadow: var(--shadow-raised-sm);
}
.pf-btn:active { transform: scale(.94); }
