/* ========== HELIO SOLAR PRICES - FRONT STYLES ========== */
/* Reset و تنظیمات پایه */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.helio-price-table-container {
    margin: 20px auto;
    padding: 25px;
    max-width: 1200px;
    width: calc(100% - 40px);
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

/* انیمیشن‌ها */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========== هدر اطلاعات ========== */
.helio-header-info {
    margin: 0 0 30px 0;
    padding: 20px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 12px;
    border-left: 5px solid #3498db;
    box-shadow: 0 4px 20px rgba(52, 152, 219, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    animation: slideIn 0.5s ease-out 0.2s both;
    border: 1px solid rgba(52, 152, 219, 0.1);
    position: relative;
    z-index: 1;
}

.helio-header-info .header-currency,
.helio-header-info .header-update {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #2c3e50;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    flex: 1;
    min-width: 250px;
    margin: 5px 0;
}

.helio-header-info .icon {
    font-size: 18px;
    background: rgba(52, 152, 219, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.helio-header-info .text {
    flex: 1;
    text-align: right;
    padding: 0 10px;
}

.helio-header-info strong {
    color: #27ae60;
    font-size: 17px;
    background: rgba(39, 174, 96, 0.1);
    padding: 6px 14px;
    border-radius: 25px;
    margin-right: 5px;
    display: inline-block;
}

/* ========== دکمه‌های دسته‌بندی ========== */
.category-buttons-container {
    margin: 25px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    animation: slideIn 0.5s ease-out 0.3s both;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    z-index: 1;
}

.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.category-btn {
    padding: 10px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #dee2e6;
    border-radius: 25px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.category-btn:hover {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.3);
    border-color: transparent;
}

.category-btn-icon {
    font-size: 16px;
}

.category-btn-text {
    white-space: nowrap;
}

/* ========== هر بخش دسته‌بندی ========== */
.price-list-container {
    margin: 30px 0;
    padding: 25px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    animation: slideIn 0.5s ease-out;
    animation-fill-mode: both;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.price-list-container:nth-child(1) { animation-delay: 0.1s; }
.price-list-container:nth-child(2) { animation-delay: 0.2s; }
.price-list-container:nth-child(3) { animation-delay: 0.3s; }
.price-list-container:nth-child(4) { animation-delay: 0.4s; }

.price-list-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.price-list-container h2 {
    font-size: 20px;
    color: #2c3e50;
    padding: 15px 25px;
    margin: -25px -25px 25px -25px;
    background: linear-gradient(135deg, #f8fafc 0%, #e9ecef 100%);
    border-radius: 12px 12px 0 0;
    border-bottom: 2px solid #3498db;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.price-list-container h2 .category-icon {
    font-size: 22px;
    background: rgba(52, 152, 219, 0.1);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== جدول ========== */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 800px;
}

.price-table th {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 16px 12px;
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
    white-space: nowrap;
    height: 50px;
}

.price-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    vertical-align: middle;
    font-size: 13px;
    line-height: 1.5;
    height: auto;
    min-height: 70px;
}

/* ستون محصول */
.product-info {
    padding-right: 15px;
}

.product-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.4;
    word-break: break-word;
}

.product-spec {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0;
    font-size: 12px;
    color: #666;
    flex-wrap: wrap;
}

.spec-icon {
    font-size: 13px;
    opacity: 0.7;
}

/* ستون قیمت */
.price-toman, .price-usd {
    text-align: center;
    font-weight: 600;
    color: #2c3e50;
    white-space: nowrap;
}

.price-toman {
    color: #27ae60;
    font-size: 14px;
}

.price-usd {
    color: #3498db;
    font-size: 13px;
}

/* ========== دکمه‌های عملیات ========== */
.helio-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.helio-actions .btn {
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    height: 36px;
    min-width: 80px;
}

.helio-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.helio-actions .btn[data-open-details] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.helio-actions .chart-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.helio-actions .buy-link {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
}

/* ========== مودال‌ها - اصلاح شده ========== */
.helio-modal-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.helio-modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* مودال جمع و جور */
.helio-compact-modal {
    max-width: 500px !important;
    max-height: 85vh !important;
    width: 95% !important;
    border-radius: 12px !important;
    overflow-y: auto !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.helio-chart-modal {
    max-width: 700px;
    max-height: 85vh;
    overflow-y: auto;
}

/* دکمه بستن مودال - بدون کادر */
.helio-close-x {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 30px;
    height: 30px;
    background: transparent !important;
    color: #666;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s;
    border: none !important;
    font-weight: normal;
}

.helio-close-x:hover {
    color: #dc3545;
    transform: rotate(90deg);
    background: transparent !important;
}

/* ========== محتوای مودال محصول - طراحی جدید ========== */
#helio-product-modal .modal-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 300px;
}

/* تصویر محصول - دو برابر بزرگتر */
#helio-modal-img-wrap {
    text-align: center;
    margin-bottom: 15px;
}

#helio-modal-img-wrap img {
    max-width: 300px;
    max-height: 300px;
    width: auto;
    height: auto;
    border-radius: 12px;
    border: 3px solid #f0f0f0;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    object-fit: contain;
    background: white;
    padding: 10px;
}

#helio-modal-title {
    font-size: 18px;
    color: #333;
    text-align: center;
    margin: 10px 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #d4af37;
    font-weight: 700;
    line-height: 1.4;
}

/* ========== جدول افقی زیبا (2 ستونی) ========== */
.helio-compact-table {
    width: 100%;
    margin: 15px 0;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.helio-compact-table tr {
    border-bottom: 1px solid #f5f5f5;
    transition: background-color 0.2s;
}

.helio-compact-table tr:hover {
    background-color: #f8f9fa;
}

.helio-compact-table tr:last-child {
    border-bottom: none;
}

.helio-compact-table td {
    padding: 14px 12px;
    text-align: right;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.5;
}

.helio-compact-table td:first-child {
    width: 40%;
    font-weight: 600;
    color: #495057;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.helio-compact-table td:last-child {
    width: 60%;
    color: #212529;
    direction: ltr;
    text-align: left;
    font-weight: 500;
}

/* ========== دکمه‌های طلایی-خاکستری-سفید ========== */
.helio-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    justify-content: center;
    flex-wrap: wrap;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
}

.helio-btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: none;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 200px;
}

.helio-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.helio-btn-gold {
    background: linear-gradient(135deg, #d4af37 0%, #b8941f 100%);
    color: white;
    border: 2px solid #c19a2b;
}

.helio-btn-gold:hover {
    background: linear-gradient(135deg, #c19a2b 0%, #a47e1b 100%);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
    border-color: #b8941f;
}

.helio-btn-gray {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: 2px solid #5a6268;
}

.helio-btn-gray:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    box-shadow: 0 8px 20px rgba(108, 117, 125, 0.3);
    border-color: #495057;
}

.helio-btn-white {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #495057;
    border: 2px solid #dee2e6;
}

.helio-btn-white:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border-color: #ced4da;
}

.helio-btn .btn-icon {
    font-size: 18px;
}

.helio-btn .btn-text {
    font-size: 14px;
}

/* بخش تعداد و قیمت کل */
.quantity-price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    margin: 20px 0;
    border: 2px solid #dee2e6;
}

.quantity-control {
    margin-bottom: 20px;
    text-align: center;
}

.quantity-label {
    display: block;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 16px;
    color: #495057;
}

.quantity-input {
    width: 150px;
    padding: 12px 20px;
    border: 3px solid #d4af37;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #212529;
    background: white;
    transition: all 0.3s;
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.2);
}

.quantity-input:focus {
    border-color: #b8941f;
    outline: none;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.3);
}

.total-price-display {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    font-weight: bold;
    color: #28a745;
    border: 3px solid #28a745;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.15);
}

.total-label {
    color: #495057;
    font-weight: 700;
    font-size: 16px;
}

.total-value {
    color: #28a745;
    font-size: 22px;
    font-weight: 800;
}

.total-unit {
    color: #6c757d;
    font-size: 16px;
    font-weight: 600;
}

/* مشخصات تکمیلی */
.additional-specs {
    margin-top: 25px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px solid #e9ecef;
}

.additional-specs h4 {
    font-size: 17px;
    color: #495057;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 3px solid #6c757d;
    font-weight: 700;
    text-align: center;
}

.additional-specs .specs-content {
    font-size: 14px;
    line-height: 1.8;
    color: #495057;
    text-align: justify;
    padding: 10px;
}

/* ========== استایل مخصوص پرینت A4 - تک صفحه‌ای اصلاح شده ========== */
@media print {
    body, html {
        width: 210mm !important;
        height: 297mm !important;
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        overflow: hidden !important;
    }
    
    body * {
        visibility: hidden;
        max-height: 297mm !important;
    }
    
    .helio-print-content,
    .helio-print-content * {
        visibility: visible;
        max-height: 267mm !important; /* 297mm - 15mm*2 margin */
    }
    
    .helio-print-content {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 210mm !important;
        min-height: 297mm !important;
        max-height: 297mm !important;
        padding: 15mm !important;
        margin: 0 !important;
        background: white !important;
        font-family: 'Vazirmatn', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
        direction: rtl !important;
        color: #000 !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
        box-shadow: none !important;
        border: none !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    
    /* جلوگیری از سرریز */
    .helio-print-content > * {
        max-height: 267mm !important;
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        overflow: hidden !important;
    }
    
    /* تنظیم فونت‌ها و سایزها برای پرینت */
    .helio-print-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 8mm !important;
        padding-bottom: 4mm !important;
        border-bottom: 1mm solid #d4af37;
        max-height: 40mm !important;
    }
    
    .helio-print-logo {
        flex: 0 0 35mm;
        text-align: center;
    }
    
    .helio-print-logo img {
        width: 30mm !important;
        height: 30mm !important;
        border-radius: 6mm;
        border: 0.8mm solid #e0e0e0;
        padding: 0.8mm;
        object-fit: cover;
        box-shadow: 0 2mm 6mm rgba(0, 0, 0, 0.1);
    }
    
    .helio-print-title {
        flex: 1;
        text-align: center;
        padding: 0 3mm;
        max-width: 100mm;
    }
    
    .helio-print-title h1 {
        font-size: 14pt !important;
        color: #2c3e50;
        margin-bottom: 1.5mm;
        font-weight: 700;
        line-height: 1.2;
    }
    
    .helio-print-title .print-subtitle {
        font-size: 9pt !important;
        color: #666;
        margin-bottom: 1mm;
    }
    
    .helio-print-qr-small {
        flex: 0 0 30mm;
        text-align: center;
        padding: 1.5mm;
        background: #f8f9fa;
        border-radius: 4mm;
        border: 0.5mm solid #e0e0e0;
    }
    
    .helio-print-qr-small img {
        width: 20mm !important;
        height: 20mm !important;
        border-radius: 2.5mm;
    }
    
    .helio-print-qr-small span {
        display: block;
        font-size: 7pt !important;
        color: #666;
        margin-top: 0.8mm;
        line-height: 1.2;
    }
    
    /* جدول اطلاعات محصول */
    .helio-print-info-section {
        margin-bottom: 6mm !important;
        max-height: 45mm !important;
    }
    
    .helio-print-info-section h2 {
        font-size: 11pt !important;
        color: #2c3e50;
        margin-bottom: 2mm;
        padding-bottom: 1.5mm;
        border-bottom: 0.8mm solid #3498db;
        font-weight: 700;
        text-align: center;
        background: #f8f9fa;
        padding: 1.5mm 3mm;
        border-radius: 2.5mm;
    }
    
    .helio-print-table {
        width: 100% !important;
        border-collapse: collapse !important;
        margin: 1.5mm 0 !important;
        font-size: 8pt !important;
        max-height: 35mm !important;
    }
    
    .helio-print-table th {
        background: #2c3e50;
        color: white;
        padding: 1.5mm 2mm;
        border: 0.3mm solid #ddd;
        font-weight: 700;
        text-align: right;
        width: 40%;
    }
    
    .helio-print-table td {
        padding: 1.5mm 2mm;
        border: 0.3mm solid #ddd;
        text-align: right;
        width: 60%;
        background: #f9f9f9;
    }
    
    .helio-print-table tr:nth-child(even) td {
        background: #f0f0f0;
    }
    
    /* بخش قیمت و خرید */
    .helio-print-pricing {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: 4mm !important;
        border-radius: 4mm;
        margin: 4mm 0 !important;
        border: 0.8mm solid #dee2e6;
        max-height: 35mm !important;
    }
    
    .helio-print-price-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2mm;
    }
    
    .helio-print-price-item {
        background: white;
        padding: 2.5mm;
        border-radius: 2.5mm;
        border: 0.4mm solid #e0e0e0;
        text-align: center;
    }
    
    .helio-print-price-label {
        display: block;
        font-weight: 600;
        color: #495057;
        font-size: 7pt !important;
        margin-bottom: 0.8mm;
    }
    
    .helio-print-price-value {
        display: block;
        font-weight: 700;
        color: #28a745;
        font-size: 9pt !important;
        direction: ltr;
    }
    
    .helio-print-total {
        grid-column: span 2;
        background: #28a745;
        color: white;
        padding: 3mm;
        border-radius: 2.5mm;
        margin-top: 1.5mm;
        text-align: center;
    }
    
    .helio-print-total .helio-print-price-label {
        color: white;
        font-size: 8pt !important;
    }
    
    .helio-print-total .helio-print-price-value {
        color: white;
        font-size: 11pt !important;
        font-weight: 800;
    }
    
    /* مشخصات تکمیلی */
    .helio-print-specs {
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        padding: 4mm !important;
        border-radius: 4mm;
        margin: 4mm 0 !important;
        border: 0.8mm solid #6c757d;
        max-height: 50mm !important;
        overflow: hidden !important;
    }
    
    .helio-print-specs h3 {
        font-size: 10pt !important;
        color: #2c3e50;
        margin-bottom: 2mm;
        padding-bottom: 1.5mm;
        border-bottom: 0.5mm solid #6c757d;
        text-align: center;
        font-weight: 700;
    }
    
    .helio-print-specs-content {
        font-size: 7pt !important;
        line-height: 1.5;
        color: #495057;
        text-align: justify;
        padding: 1.5mm;
        max-height: 40mm !important;
        overflow-y: hidden !important;
    }
    
    /* فوتر پرینت */
    .helio-print-footer {
        margin-top: 6mm !important;
        padding-top: 4mm !important;
        border-top: 0.8mm solid #d4af37;
        text-align: center;
        font-size: 6pt !important;
        color: #666;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2mm;
        align-items: center;
        max-height: 25mm !important;
    }
    
    .helio-print-contact {
        text-align: right;
        font-size: 6pt !important;
    }
    
    .helio-print-contact p {
        margin: 0.8mm 0;
        line-height: 1.3;
    }
    
    .helio-print-qr-main {
        text-align: center;
        padding: 1.5mm;
        background: #f8f9fa;
        border-radius: 3mm;
        border: 0.4mm solid #e0e0e0;
    }
    
    .helio-print-qr-main img {
        width: 20mm !important;
        height: 20mm !important;
        border-radius: 2.5mm;
    }
    
    .helio-print-qr-main span {
        display: block;
        font-size: 6pt !important;
        color: #666;
        margin-top: 0.8mm;
        line-height: 1.2;
    }
    
    .helio-print-address {
        text-align: left;
        padding-right: 2mm;
        font-size: 6pt !important;
    }
    
    .helio-print-address p {
        margin: 0.8mm 0;
        line-height: 1.3;
    }
    
    .helio-print-note {
        grid-column: span 3;
        margin-top: 2mm;
        padding-top: 1.5mm;
        border-top: 0.3mm dashed #ccc;
        font-size: 5.5pt !important;
        color: #999;
        text-align: center;
    }
    
    /* مخفی کردن عناصر غیرضروری */
    .helio-modal-backdrop,
    .helio-close-x,
    .helio-action-buttons,
    .quantity-price-section,
    .no-print,
    button,
    .btn,
    .helio-btn {
        display: none !important;
    }
    
    /* تنظیمات صفحه A4 */
    @page {
        size: A4;
        margin: 15mm;
        marks: crop cross;
    }
    
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }
    
    /* جلوگیری از سرریز نهایی */
    .helio-print-content {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        orphans: 4;
        widows: 4;
    }
}

/* ========== نمودار ========== */
.chart-container {
    position: relative;
    height: 350px;
    width: 100%;
    margin: 20px 0;
    background: white;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.helio-chart-table-container {
    overflow-x: auto;
    margin-top: 25px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.04);
}

.helio-chart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.helio-chart-table th {
    background: #f8f9fa;
    padding: 12px;
    border-bottom: 2px solid #dee2e6;
    font-size: 13px;
    color: #2c3e50;
    font-weight: 600;
    white-space: nowrap;
}

.helio-chart-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
    vertical-align: middle;
}

/* ========== ریسپانسیو ========== */
@media (max-width: 1200px) {
    .helio-price-table-container {
        width: calc(100% - 30px);
        padding: 20px;
    }
}

@media (max-width: 992px) {
    .helio-header-info {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 18px;
    }
    
    .helio-header-info .header-currency,
    .helio-header-info .header-update {
        min-width: 100%;
        margin: 0;
        padding: 12px 15px;
    }
    
    .helio-modal {
        max-width: 500px;
    }
    
    .helio-chart-modal {
        max-width: 800px;
    }
}

/* ========== دکمه‌های عملیات - بهبود برای موبایل ========== */
.helio-actions {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 5px 0;
}

.helio-actions .btn {
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1.2;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    font-weight: 600;
    height: 36px;
    min-width: 0;
    flex: 1;
    max-width: 120px;
}

/* استایل‌های رنگ دکمه‌ها */
.helio-actions .btn[data-open-details] {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.helio-actions .chart-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
}

.helio-actions .buy-link {
    background: linear-gradient(135deg, #27ae60 0%, #219653 100%);
    color: white;
}

.helio-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* ========== ریسپانسیو موبایل - اصلاح کامل ========== */
@media (max-width: 768px) {
    .table-wrap {
        overflow-x: auto;
    }
    
    .price-table {
        min-width: 700px;
    }
    
    /* اصلاح کامل بخش دکمه‌ها در موبایل */
    .table-actions {
        min-width: 250px;
        padding: 10px 5px;
    }
    
    .helio-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
        padding: 8px 0;
        width: 100%;
    }
    
    .helio-actions .btn {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 70px;
        max-width: 90px;
        font-size: 11px;
        padding: 7px 8px;
        height: 34px;
        margin: 2px;
        gap: 4px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        border-radius: 5px;
    }
    
    /* برای نمایش بهتر آیکون‌ها در موبایل */
    .helio-actions .btn span:not(:last-child) {
        display: inline-block;
        font-size: 10px;
    }
    
    /* در صورت نیاز می‌توان آیکون‌ها را در موبایل مخفی کرد */
    .helio-actions .btn .emoji {
        font-size: 12px;
    }
    
    /* مودال در موبایل */
    .helio-compact-modal {
        max-width: 95% !important;
        max-height: 90vh !important;
        margin: 10px;
    }
    
    .helio-action-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .helio-btn {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
        padding: 14px 20px;
    }
    
    /* تصویر در موبایل */
    #helio-modal-img-wrap img {
        max-width: 250px;
        max-height: 250px;
    }
}

@media (max-width: 576px) {
    .table-actions {
        min-width: 200px;
    }
    
    .helio-actions {
        gap: 4px;
    }
    
    .helio-actions .btn {
        flex: 0 0 calc(50% - 6px);
        min-width: 65px;
        max-width: 80px;
        font-size: 10px;
        padding: 6px 6px;
        height: 32px;
        margin: 2px;
        gap: 3px;
    }
    
    #helio-modal-img-wrap img {
        max-width: 200px;
        max-height: 200px;
    }
    
    .helio-compact-table td {
        padding: 10px 8px;
        font-size: 13px;
    }
    
    .quantity-input {
        width: 120px;
        font-size: 16px;
        padding: 10px 15px;
    }
    
    .total-price-display {
        padding: 15px;
        font-size: 16px;
    }
    
    .total-value {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .price-table th {
        font-size: 11px;
        padding: 8px 6px;
        height: 40px;
    }
    
    .price-table td {
        font-size: 11px;
        padding: 8px 6px;
        min-height: 65px;
    }
    
    .product-name {
        font-size: 12px;
    }
    
    .product-spec {
        font-size: 10px;
        gap: 5px;
    }
    
    /* بهبود هدر در موبایل */
    .helio-header-info {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .helio-header-info .header-currency,
    .helio-header-info .header-update {
        padding: 10px;
        font-size: 13px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    .helio-header-info .icon {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    /* بهبود دکمه‌های دسته‌بندی در موبایل */
    .category-buttons {
        padding-bottom: 10px;
        margin: 0 -5px;
        padding: 0 5px 10px;
    }
    
    .category-btn {
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 20px;
    }
    
    /* مودال در موبایل کوچک */
    .helio-compact-modal {
        max-height: 95vh !important;
        padding: 15px !important;
    }
    
    #helio-modal-title {
        font-size: 16px;
    }
    
    #helio-modal-img-wrap img {
        max-width: 180px;
        max-height: 180px;
    }
    
    .helio-btn {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .helio-btn .btn-icon {
        font-size: 16px;
    }
    
    .helio-btn .btn-text {
        font-size: 13px;
    }
    
    /* در موبایل خیلی کوچک فقط آیکون نمایش داده شود */
    @media (max-width: 400px) {
        .helio-actions .btn {
            flex: 0 0 calc(33.333% - 4px);
            min-width: 55px;
            max-width: 65px;
            font-size: 9px;
            padding: 5px 4px;
            height: 30px;
        }
        
        /* مخفی کردن متن در موبایل خیلی کوچک */
        .helio-actions .btn span:not(.emoji) {
            display: none;
        }
        
        .helio-actions .btn .emoji {
            font-size: 14px;
            margin: 0 auto;
        }
        
        #helio-modal-img-wrap img {
            max-width: 150px;
            max-height: 150px;
        }
        
        .helio-btn {
            min-width: 100%;
            padding: 10px 12px;
        }
        
        .helio-btn .btn-text {
            font-size: 12px;
        }
    }
}

@media (max-width: 480px) {
    .helio-price-table-container {
        margin: 5px auto;
        padding: 12px;
        border-radius: 10px;
        width: calc(100% - 10px);
    }
    
    .price-list-container {
        padding: 15px;
        margin: 15px 0;
    }
    
    .helio-header-info {
        padding: 15px;
        text-align: center;
        gap: 10px;
    }
    
    .category-buttons-container {
        padding: 15px;
    }
    
    .helio-actions .btn {
        flex: 0 0 calc(50% - 6px);
        min-width: 60px;
        max-width: 80px;
        font-size: 10px;
        padding: 6px 8px;
        height: 32px;
    }
    
    .helio-modal {
        max-height: 90vh;
        border-radius: 12px;
        padding: 15px;
    }
    
    #helio-modal-title {
        font-size: 16px;
    }
    
    .spec-item {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .chart-container {
        height: 300px;
        padding: 15px;
    }
}