/* ========================================
   Vazir Font Face (Local)
   ======================================== */

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Regular.eot');
    src: url('../fonts/vazir/Vazir-Regular.eot?#iefix') format('embedded-opentype'),
         url('../fonts/vazir/Vazir-Regular.woff2') format('woff2'),
         url('../fonts/vazir/Vazir-Regular.woff') format('woff'),
         url('../fonts/vazir/Vazir-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Bold.eot');
    src: url('../fonts/vazir/Vazir-Bold.eot?#iefix') format('embedded-opentype'),
         url('../fonts/vazir/Vazir-Bold.woff2') format('woff2'),
         url('../fonts/vazir/Vazir-Bold.woff') format('woff'),
         url('../fonts/vazir/Vazir-Bold.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Medium.eot');
    src: url('../fonts/vazir/Vazir-Medium.eot?#iefix') format('embedded-opentype'),
         url('../fonts/vazir/Vazir-Medium.woff2') format('woff2'),
         url('../fonts/vazir/Vazir-Medium.woff') format('woff'),
         url('../fonts/vazir/Vazir-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Vazir';
    src: url('../fonts/vazir/Vazir-Light.eot');
    src: url('../fonts/vazir/Vazir-Light.eot?#iefix') format('embedded-opentype'),
         url('../fonts/vazir/Vazir-Light.woff2') format('woff2'),
         url('../fonts/vazir/Vazir-Light.woff') format('woff'),
         url('../fonts/vazir/Vazir-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

/* ========================================
   Apply Vazir Font to All Frontend Elements
   ======================================== */

.gpp-call-for-price-mode,
.gpp-call-for-price-container,
.gpp-call-for-price-message,
.gpp-call-for-price,
.gpp-price-unavailable,
.gpp-purchase-disabled-container,
.gpp-purchase-disabled-message,
.gpp-card-button-disabled,
.gpp-price-container,
.gpp-price-card,
.gpp-price-label,
.gpp-price-value,
.gpp-price-breakdown,
.gpp-breakdown-item,
.gpp-total-price,
.gpp-last-update,
.gpp-gold-price-display,
.gpp-gold-price-display *,
.gpp-product-card,
.gpp-product-card *,
.gpp-price-detail-card,
.gpp-price-detail-card *,
.gpp-breakdown-table,
.gpp-breakdown-table * {
    font-family: 'Vazir', Tahoma, 'Segoe UI', sans-serif !important;
}

/* Ensure proper RTL rendering */
.gpp-call-for-price-container,
.gpp-purchase-disabled-container,
.gpp-price-container,
.gpp-price-breakdown {
    direction: rtl;
    text-align: right;
}

/* Fix for numbers */
.gpp-price-value,
.gpp-total-price,
.gpp-breakdown-value {
    font-family: 'Vazir', 'Courier New', monospace !important;
}

/* General styles */
.gpp-call-for-price-mode {
    display: inline-block;
    background: #fff3cd;
    color: #856404;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #ffc107;
}

.gpp-call-for-price-container {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.gpp-call-for-price-message {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.gpp-call-for-price {
    color: #d32f2f;
    font-weight: bold;
    display: inline-block;
    padding: 5px 15px;
    background: #ffebee;
    border-radius: 20px;
}

.gpp-price-unavailable {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Purchase Inactivity Message Style */
.gpp-purchase-disabled-container {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 2px dashed #999;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.gpp-purchase-disabled-message {
    font-size: 18px;
    color: #666;
    font-weight: bold;
}

.gpp-card-button-disabled {
    display: block;
    text-align: center;
    padding: 12px;
    background: #e0e0e0;
    color: #999;
    border-radius: 8px;
    font-weight: bold;
    cursor: not-allowed;
    margin-top: 10px;
}


/* ========================================
   GoldCommerce Modern Frontend Styles
   ======================================== */

.gpp-price-container {
    margin: 15px 0;
}

.gpp-price-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gpp-price-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 14px;
}

.gpp-price-value {
    font-size: 28px;
    font-weight: 800;
    color: #d4af37;
}

.gpp-price-unit {
    font-size: 14px;
    color: #7f8c8d;
    margin-right: 5px;
}

/* Price Breakdown */
.gpp-price-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
}

.gpp-breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #dee2e6;
}

.gpp-breakdown-item:last-child {
    border-bottom: none;
}

.gpp-breakdown-label {
    color: #6c757d;
}

.gpp-breakdown-value {
    font-weight: 500;
    color: #2c3e50;
}

.gpp-total-price {
    font-size: 24px;
    font-weight: 800;
    color: #d4af37;
    text-align: center;
    padding: 15px;
    background: linear-gradient(135deg, #fff8e7, #fff3d4);
    border-radius: 12px;
    margin-top: 15px;
}

/* Call for Price Mode (enhanced) */
.gpp-call-for-price-mode {
    display: inline-block;
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: bold;
    font-size: 16px;
    border: 1px solid #ffc107;
}

.gpp-call-for-price-container {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
    border: 2px dashed #667eea;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.gpp-call-for-price-message {
    font-size: 20px;
    color: #333;
    font-weight: bold;
}

.gpp-call-for-price {
    color: #d32f2f;
    font-weight: bold;
    display: inline-block;
    padding: 5px 15px;
    background: #ffebee;
    border-radius: 20px;
}

.gpp-price-unavailable {
    text-align: center;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Purchase Inactivity Message Style */
.gpp-purchase-disabled-container {
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0);
    border: 2px dashed #999;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    margin: 20px 0;
}

.gpp-purchase-disabled-message {
    font-size: 18px;
    color: #666;
    font-weight: bold;
}

.gpp-card-button-disabled {
    display: block;
    text-align: center;
    padding: 12px;
    background: #e0e0e0;
    color: #999;
    border-radius: 8px;
    font-weight: bold;
    cursor: not-allowed;
    margin-top: 10px;
}

/* Last Update Badge */
.gpp-last-update {
    font-size: 12px;
    color: #6c757d;
    margin-top: 10px;
    text-align: left;
}

.gpp-last-update i {
    margin-left: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .gpp-price-value {
        font-size: 22px;
    }
    
    .gpp-call-for-price-message {
        font-size: 16px;
    }
    
    .gpp-total-price {
        font-size: 20px;
    }
}