/* ====== ریست ====== */
.arzv2-price-wrap, .arzv2-price-wrap * {
    box-sizing: border-box;
    font-family: 'Vazirmatn', 'Vazir', Tahoma, sans-serif;
}
.arzv2-price-wrap {
    direction: rtl;
    background: #F5F5F5;
    min-height: 100vh;
    padding-bottom: 40px;
    color: #1A1A1A;
}

/* ====== هدر ====== */
/* ====== هدر (ساده و شیک) ====== */
.arzv2-price-wrap .arzv2-header {
    background: #5D1A2E !important;
    padding: 10px 20px !important;
    color: white;
    border: none !important;
}
.arzv2-price-wrap .arzv2-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    max-width: 1400px;
    margin: 0 auto;
}
.arzv2-price-wrap .arzv2-logo {
    font-size: 16px;
    font-weight: 800;
    color: white;
    margin: 0;
    white-space: nowrap;
    flex-shrink: 0;
}
.arzv2-price-wrap .arzv2-header-actions {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}
.arzv2-price-wrap .arzv2-header-btn {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
}
.arzv2-price-wrap .arzv2-header-btn:hover {
    background: rgba(255,255,255,0.2);
    border-color: #D4AF37;
}
.arzv2-price-wrap .arzv2-header-btn.active {
    background: #D4AF37;
    color: #5D1A2E;
    border-color: #D4AF37;
}

/* موبایل: هدر خلوت‌تر */
@media (max-width: 768px) {
    .arzv2-price-wrap .arzv2-header { padding: 8px 12px !important; }
    .arzv2-price-wrap .arzv2-logo { font-size: 14px; }
    .arzv2-price-wrap .arzv2-header-btn {
        padding: 6px 10px;
        font-size: 11px;
    }
}
@media (max-width: 420px) {
    .arzv2-price-wrap .arzv2-header-btn {
        padding: 6px 8px;
        font-size: 10px;
    }
    .arzv2-price-wrap .arzv2-header-top { gap: 6px; }
}

/* ====== نوار زنده ====== */
.arzv2-price-live-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 12px 15px;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.arzv2-live-item {
    flex: 1;
    min-width: 130px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    font-size: 13px;
}
.arzv2-live-up { border-right: 4px solid #dc3545; }
.arzv2-live-down { border-right: 4px solid #2ecc71; }
.arzv2-live-flat { border-right: 4px solid #999; }
.arzv2-live-icon { font-size: 18px; }
.arzv2-live-count { font-size: 18px; font-weight: 800; }
.arzv2-live-up .arzv2-live-count { color: #dc3545; }
.arzv2-live-down .arzv2-live-count { color: #2ecc71; }
.arzv2-live-flat .arzv2-live-count { color: #666; }
.arzv2-live-text { font-size: 12px; color: #666; font-weight: 600; }

/* ====== سرچ ====== */
.arzv2-price-wrap .arzv2-search-bar {
    background: #5D1A2E;
    padding: 10px 20px 12px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 2px solid #D4AF37;
    position: sticky;
    top: 0;
    z-index: 9999;
    width: 100%;
}
.arzv2-price-wrap .arzv2-search-container {
    display: flex; gap: 10px; align-items: center;
    max-width: 1400px; margin: 0 auto;
}
.arzv2-price-wrap .arzv2-search-input {
    flex: 1; padding: 14px 18px; border: 3px solid #D4AF37;
    border-radius: 12px; font-size: 16px; background: white;
}
.arzv2-price-wrap .arzv2-search-input:focus { outline: none; border-color: #fff; }
.arzv2-price-wrap .arzv2-clear-search {
    background: #dc3545; color: white; border: none;
    padding: 10px 16px; border-radius: 8px; cursor: pointer;
    font-size: 13px; font-weight: 600; display: none;
}

/* ====== چیپس دسته‌بندی ====== */
.arzv2-price-cats {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px 15px;
    margin: 0 auto;
    max-width: 1400px;
    scrollbar-width: none;
}
.arzv2-price-cats::-webkit-scrollbar { display: none; }
.arzv2-price-chip {
    background: white;
    border: 2px solid #ddd;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    color: #1A1A1A;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: inherit;
    transition: all 0.2s;
}
.arzv2-price-chip.active {
    background: #5D1A2E;
    color: white;
    border-color: #D4AF37;
}

/* ====== بدنه ====== */
.arzv2-price-body {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px;
}
.arzv2-price-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
}
.arzv2-price-empty {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    background: white;
    border-radius: 12px;
}

/* ====== کارت ====== */
.arzv2-price-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.25s;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}
.arzv2-price-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(135deg, #5D1A2E, #D4AF37);
}
.arzv2-price-card:hover {
    border-color: #D4AF37;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
.arzv2-price-thumb {
    width: 120px;
    height: 120px;
    margin: 0 auto 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #5D1A2E;
    box-shadow: 0 0 0 2px #D4AF37;
    background: #F5F5F5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.arzv2-price-thumb img {
    width: 100%; height: 100%; object-fit: cover; padding: 3px;
}
.arzv2-no-image { color: #999; font-size: 12px; font-weight: 600; }

.arzv2-price-info { flex: 1; display: flex; flex-direction: column; }
.arzv2-price-title {
    color: #5D1A2E;
    font-size: 14px;
    margin: 0 0 10px;
    font-weight: 800;
    line-height: 1.45;
    text-align: center;
    min-height: 40px;
}

/* ====== باکس قیمت مصرف‌کننده (بولد و پررنگ) ====== */
.arzv2-price-consumer-box {
    background: linear-gradient(135deg, #fff9e6, #fffbf0);
    border: 2px solid #D4AF37;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(212, 175, 55, 0.15);
}
.arzv2-price-consumer-label {
    font-size: 13px;
    font-weight: 900;
    color: #5D1A2E;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.arzv2-price-consumer-value {
    font-size: 24px;
    font-weight: 900;
    color: #5D1A2E;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.arzv2-price-consumer-value small {
    font-size: 13px;
    font-weight: 700;
    color: #a00028;
}

.arzv2-price-change-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.arzv2-change-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: white;
}
.arzv2-change-up { background: linear-gradient(135deg, #dc3545, #a71d2a); }
.arzv2-change-down { background: linear-gradient(135deg, #2ecc71, #1e8449); }
.arzv2-change-flat { background: #999; }
.arzv2-change-date { font-size: 11px; color: #666; font-weight: 600; }
.arzv2-price-last-update {
    text-align: center;
    font-size: 11px;
    color: #666;
    background: #f8f9fa;
    border: 1px dashed #D4AF37;
    padding: 6px 8px;
    border-radius: 6px;
    margin-bottom: 10px;
    font-weight: 600;
}
.arzv2-price-last-update strong {
    color: #5D1A2E;
    font-weight: 800;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    direction: ltr;
    display: inline-block;
}
.arzv2-price-previous {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}
.arzv2-strike { text-decoration: line-through; color: #999; }

.arzv2-no-data {
    text-align: center;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #999;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 10px;
}

/* نمودار */
.arzv2-chart-toggle {
    background: #f0f0f0;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #5D1A2E;
    cursor: pointer;
    width: 100%;
    margin-bottom: 10px;
    font-family: inherit;
}
.arzv2-chart-toggle:hover { background: #e0e0e0; }
.arzv2-chart-container {
    background: #fafafa;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #eee;
    /* ====== جلوگیری از بزرگ شدن بی‌نهایت ====== */
    height: auto !important;
    max-height: none !important;
    overflow: hidden;
    position: relative;
}
.arzv2-chart-container canvas {
    max-width: 100% !important;
    max-height: 220px !important;
    height: 220px !important;
    display: block !important;
    width: 100% !important;
}
.arzv2-chart-range {
    display: flex; justify-content: center; gap: 4px; margin-bottom: 10px;
}
.arzv2-range-btn {
    background: white; border: 1px solid #ddd;
    padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700; color: #666;
    cursor: pointer; font-family: inherit;
}
.arzv2-range-btn.active { background: #5D1A2E; color: white; border-color: #D4AF37; }
.arzv2-chart-container canvas { max-width: 100%; }
.arzv2-chart-note {
    text-align: center; font-size: 11px; color: #999;
    margin-top: 6px; font-weight: 600;
}

/* دکمه‌ها */
.arzv2-price-actions {
    display: flex; gap: 8px; margin-top: auto; padding-top: 10px;
}
.arzv2-buy-btn {
    flex: 2;
    text-align: center;
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(46, 204, 113, 0.35);
    transition: all 0.25s;
}
.arzv2-buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.5);
    background: linear-gradient(135deg, #27ae60, #1e8449);
}
.arzv2-buy-btn:active { transform: translateY(0) scale(0.98); }
.arzv2-call-btn {
    flex: 1;
    text-align: center;
    background: #D4AF37;
    color: #5D1A2E;
    padding: 12px 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.25s;
    border: 2px solid #fff;
    white-space: nowrap;
}
.arzv2-call-btn:hover {
    background: #e6c44d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ====== فوتر ====== */
.arzv2-price-wrap .arzv2-footer {
    background: #5D1A2E;
    color: white;
    padding: 25px 20px;
    margin-top: 30px;
    border-top: 4px solid #D4AF37;
}
.arzv2-price-wrap .arzv2-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    text-align: center;
}
.arzv2-price-wrap .arzv2-footer h3 { color: #D4AF37; margin: 0 0 12px; font-size: 15px; }
.arzv2-price-wrap .arzv2-footer p { margin: 6px 0; font-size: 13px; }
.arzv2-price-wrap .arzv2-footer a { color: white; text-decoration: none; }
.arzv2-price-wrap .arzv2-footer a:hover { color: #D4AF37; }
.arzv2-price-wrap .arzv2-footer-bottom {
    text-align: center; margin-top: 20px; padding-top: 15px;
    border-top: 1px solid rgba(212, 175, 55, 0.3); font-size: 12px;
}
/* ============================================================ */
/* ====== لایت‌باکس عکس (دوبار کلیک) ====== */
/* ============================================================ */
.arzv2-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.94);
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.arzv2-lightbox-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    overflow: hidden;
    touch-action: none;
    user-select: none;
}
.arzv2-lightbox img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    transition: transform 0.12s ease;
    cursor: zoom-in;
    display: block;
    margin: 0 auto;
}
.arzv2-lightbox img.zoomed {
    cursor: grab;
}
.arzv2-lightbox img.zoomed:active {
    cursor: grabbing;
}
.arzv2-lightbox-close {
    position: absolute;
    top: -45px;
    left: 0;
    background: #dc3545;
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 400;
    cursor: pointer;
    z-index: 2;
    line-height: 1;
    border: 2px solid #fff;
    transition: all 0.2s;
}
.arzv2-lightbox-close:hover {
    background: #a71d2a;
    transform: scale(1.1) rotate(90deg);
}
.arzv2-lightbox-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    background: rgba(0,0,0,0.75);
    padding: 8px 12px;
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.5);
    white-space: nowrap;
}
.arzv2-lightbox-controls button {
    background: #D4AF37;
    color: #5D1A2E;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}
.arzv2-lightbox-controls button:hover {
    background: #e6c44d;
    transform: translateY(-1px);
}
.arzv2-lightbox-controls button:active {
    transform: translateY(0);
}
/* راهنمای دوبار کلیک روی عکس */
.arzv2-price-thumb::after {
    content: '🔍 دوبار کلیک';
    position: absolute;
    bottom: 4px;
    right: 4px;
    background: rgba(93, 26, 46, 0.85);
    color: white;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.25s;
    pointer-events: none;
    letter-spacing: 0.2px;
}
.arzv2-price-thumb {
    position: relative;
    cursor: zoom-in;
}
.arzv2-price-thumb:hover::after {
    opacity: 1;
}
@media (max-width: 768px) {
    .arzv2-lightbox-close { top: -42px; width: 34px; height: 34px; font-size: 22px; }
    .arzv2-lightbox-controls { padding: 6px 10px; gap: 5px; }
    .arzv2-lightbox-controls button { font-size: 11px; padding: 5px 9px; }
    .arzv2-price-thumb::after { display: none; }
}
/* ====== موبایل ====== */
@media (max-width: 768px) {
    .arzv2-price-wrap .arzv2-header-top { justify-content: center; text-align: center; }
    .arzv2-price-wrap .arzv2-logo { font-size: 14px; }
    .arzv2-price-wrap .arzv2-contact { font-size: 10px; padding: 5px 10px; }
    .arzv2-tab-item { font-size: 12px; padding: 8px 10px; }
    
    .arzv2-price-live-bar { padding: 8px 10px; gap: 6px; }
    .arzv2-live-item { min-width: 100px; padding: 8px 10px; font-size: 11px; gap: 4px; }
    .arzv2-live-icon { font-size: 14px; }
    .arzv2-live-count { font-size: 14px; }
    .arzv2-live-text { font-size: 10px; }
    
    .arzv2-price-cats { display: flex !important; }
    .arzv2-price-grid { grid-template-columns: 1fr; gap: 12px; }
    .arzv2-price-body { padding: 10px; }
    
    .arzv2-price-thumb { width: 100px; height: 100px; }
    .arzv2-price-title { font-size: 14px; min-height: auto; }
    .arzv2-price-consumer-value { font-size: 22px; }
    
    .arzv2-buy-btn, .arzv2-call-btn { padding: 10px 12px; font-size: 13px; }
    .arzv2-price-wrap .arzv2-search-input { padding: 12px 14px; font-size: 15px; }
}
@media (min-width: 769px) {
    .arzv2-price-cats { display: none; }
}
/* ============================================================ */
/* ====== حذف فاصله و هدر قالب در صفحه قیمت‌یاب (ID: 78189) ====== */
/* ============================================================ */

/* حذف هدر قالب Shoptimizer/Astra */
body.page-id-78189 .site-header,
body.page-id-78189 header.site-header,
body.page-id-78189 .ast-mobile-header-wrap,
body.page-id-78189 .ast-desktop-header,
body.page-id-78189 #masthead,
body.page-id-78189 .site-branding,
body.page-id-78189 .ast-header-break-point {
    display: none !important;
}

/* حذف عنوان صفحه */
body.page-id-78189 .entry-header,
body.page-id-78189 .page-header,
body.page-id-78189 .entry-title,
body.page-id-78189 .page-title {
    display: none !important;
}

/* حذف فاصله‌های اضافه از همه عناصر قالب */
body.page-id-78189,
body.page-id-78189 #page,
body.page-id-78189 #content,
body.page-id-78189 .site-content,
body.page-id-78189 .content-area,
body.page-id-78189 main.site-main,
body.page-id-78189 #primary,
body.page-id-78189 .ast-container,
body.page-id-78189 article,
body.page-id-78189 .entry-content,
body.page-id-78189 .page-content,
body.page-id-78189 .ast-separate-container .ast-article-post {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* حذف فاصله از wrap قیمت‌یاب */
body.page-id-78189 .arzv2-price-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* حذف فاصله اضافه از محتوای اصلی */
body.page-id-78189 .site-content,
body.page-id-78189 .content-area {
    padding-bottom: 0 !important;
}