/* ============================================================
   PHONE-LAND | Product Page Styles 2026
   Complete Rewrite - Preserving All Classes
   ============================================================ */

/* ============================================================
   1. DESIGN TOKENS - بر اساس لوگو فون‌لند
   ============================================================ */
:root {
    /* --- Brand Colors --- */
    --brand-teal: #00a3a3;
    --brand-teal-dark: #007a7a;
    --brand-teal-light: #00cccc;
    --brand-orange: #f08020;
    --brand-orange-dark: #c96315;
    --brand-orange-light: #ffa347;

    /* --- Product Page Variables (Preserved) --- */
    --primary: #007a7a;
    --accent: #f08020;
    --success: #20b26c;
    --danger: #e74c3c;
    --warning: #f39c12;
    --light: #f8fafb;
    --dark: #1a1a1a;
    --border: #e8ecef;
    --text: #4a5568;
    --gray: #6c757d;
    --gray-light: #adb5bd;
    --shadow: 0 2px 10px rgba(0, 122, 122, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 122, 122, 0.12);
    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   2. PRODUCT PAGE WRAPPER
   ============================================================ */
.product-page-wrapper {
    padding: 20px 0 40px;
   
    direction: rtl;
    min-height: 100vh;
}

/* ============================================================
   3. BREADCRUMB
   ============================================================ */
.product-breadcrumb-modern {
    background: #ffffff;
    padding: 14px 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(0, 122, 122, 0.06);
    margin-bottom: 24px;
    margin-top: 5rem;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.product-breadcrumb-modern:hover {
    box-shadow: 0 4px 20px rgba(0, 122, 122, 0.1);
}

.breadcrumb-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.breadcrumb-modern li {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.breadcrumb-modern li a {
    color: var(--gray);
    text-decoration: none;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    font-weight: 500;
}

.breadcrumb-modern li a:hover {
    color: var(--brand-orange);
    background: rgba(240, 128, 32, 0.06);
}

.breadcrumb-modern li.active a {
    color: var(--brand-teal-dark);
    font-weight: 700;
    cursor: default;
    background: rgba(0, 163, 163, 0.08);
}

.breadcrumb-separator {
    color: var(--gray-light);
    font-size: 11px;
    margin: 0 2px;
}

/* ============================================================
   4. PRODUCT MAIN GRID
   ============================================================ */
.product-main-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 24px;
    margin-bottom: 30px;
    align-items: start;
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .product-main-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .product-gallery-modern,
    .product-info-modern {
        width: 100% !important;
        max-width: 100% !important;
    }
}

@media (max-width: 768px) {
    .product-main-container {
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .product-main-container {
        gap: 12px;
    }
}

/* ============================================================
   5. PRODUCT GALLERY
   ============================================================ */
.product-gallery-modern {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 122, 122, 0.06);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
    width: 100%;
    transition: var(--transition);
}

.product-gallery-modern:hover {
    box-shadow: 0 8px 28px rgba(0, 122, 122, 0.12);
}

@media (max-width: 992px) {
    .product-gallery-modern {
        position: static;
        margin-bottom: 0;
    }
}

.gallery-main {
    position: relative;
    height: 420px;
    background: linear-gradient(135deg, #f8fafb 0%, #eef2f5 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    cursor: zoom-in;
}

@media (max-width: 768px) {
    .gallery-main {
        height: 340px;
    }
}

@media (max-width: 576px) {
    .gallery-main {
        height: 280px;
        padding: 12px;
    }
}

.gallery-main img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center center;
    filter: drop-shadow(0 8px 24px rgba(0, 122, 122, 0.1));
}

.gallery-main:hover img {
    transform: scale(1.04);
}

/* ============================================================
   6. PRODUCT BADGES
   ============================================================ */
.product-badges-detailed {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 10;
    pointer-events: none;
}

.badge-right, .badge-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-badge-detailed {
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    pointer-events: auto;
    white-space: nowrap;
    line-height: 1.4;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.product-badge-detailed i {
    font-size: 10px;
}

.product-badge-detailed.discount {
    background: linear-gradient(135deg, #e74c3c, #c82333);
}

.product-badge-detailed.special {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    animation: pulse 2s infinite;
}

.product-badge-detailed.out-of-stock {
    background: linear-gradient(135deg, #6c757d, #5a6268);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@media (max-width: 576px) {
    .product-badge-detailed {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* ============================================================
   7. THUMBNAILS
   ============================================================ */
.gallery-thumbs {
    padding: 14px;
    background: #ffffff;
    border-top: 1px solid var(--border);
}

.thumb-list {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 4px 2px;
    scrollbar-width: thin;
}

.thumb-list::-webkit-scrollbar {
    height: 4px;
}

.thumb-list::-webkit-scrollbar-track {
    background: var(--border);
    border-radius: 4px;
}

.thumb-list::-webkit-scrollbar-thumb {
    background: var(--brand-teal);
    border-radius: 4px;
}

.thumb-item {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: var(--transition);
    background: #f8fafb;
    position: relative;
}

.thumb-item:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 122, 122, 0.15);
}

.thumb-item.active {
    opacity: 1;
    border-color: var(--brand-orange);
    box-shadow: 0 4px 12px rgba(240, 128, 32, 0.25);
}

.thumb-item.active::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(240, 128, 32, 0.3);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumb-item:hover img {
    transform: scale(1.08);
}

@media (max-width: 576px) {
    .thumb-item {
        width: 56px;
        height: 56px;
    }
}

/* ============================================================
   8. PRODUCT INFO PANEL
   ============================================================ */
.product-info-modern {
    background: #ffffff;
    border-radius: var(--radius);
    padding: 26px;
    box-shadow: 0 2px 12px rgba(0, 122, 122, 0.06);
    border: 1px solid var(--border);
    position: sticky;
    top: 90px;
    width: 100%;
    transition: var(--transition);
}

.product-info-modern:hover {
    box-shadow: 0 8px 28px rgba(0, 122, 122, 0.1);
}

@media (max-width: 992px) {
    .product-info-modern {
        position: static;
        padding: 20px;
        margin-top: 0;
    }
}

@media (max-width: 576px) {
    .product-info-modern {
        padding: 16px;
    }
}

/* ============================================================
   9. PRODUCT HEADER
   ============================================================ */
.product-header {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.product-category-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0, 122, 122, 0.2);
    transition: var(--transition);
}

.product-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 122, 122, 0.3);
}

.product-category-badge a {
    color: #ffffff;
    text-decoration: none;
}

.product-title-main {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.4;
    margin-bottom: 10px;
    color: var(--brand-teal-dark);
    letter-spacing: -0.3px;
}

@media (max-width: 768px) {
    .product-title-main {
        font-size: 20px;
    }
}

@media (max-width: 576px) {
    .product-title-main {
        font-size: 18px;
    }
}

.product-model, .product-code {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    background: rgba(0, 163, 163, 0.06);
    border-radius: 30px;
    font-size: 11px;
    color: var(--gray);
    margin-left: 6px;
    border: 1px solid rgba(0, 163, 163, 0.1);
}

.product-model i, .product-code i {
    color: var(--brand-orange);
    font-size: 10px;
}

/* ============================================================
   10. RATING
   ============================================================ */
.rating-modern {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.stars-modern {
    display: flex;
    gap: 3px;
}

.stars-modern i {
    color: #f39c12;
    font-size: 14px;
}

.stars-modern i.far {
    color: #e4e5e9;
}

.rating-text {
    font-size: 12px;
    color: var(--gray);
}

.rating-text strong {
    color: var(--brand-teal-dark);
    font-size: 13px;
    font-weight: 800;
}

/* ============================================================
   11. PRICE SECTION
   ============================================================ */
.price-section-modern {
    background: linear-gradient(135deg, #f8fafb 0%, #eef2f5 100%);
    padding: 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 163, 163, 0.08);
}

.price-section-modern::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(240, 128, 32, 0.12), transparent);
    border-radius: 0 0 0 90px;
    pointer-events: none;
}

.price-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.price-label {
    font-size: 12px;
    color: var(--gray);
    font-weight: 600;
}

.special-badge-mini {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(240, 128, 32, 0.25);
}

.price-final {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.price-amount {
    font-size: 30px;
    font-weight: 800;
    color: var(--brand-orange);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

@media (max-width: 768px) {
    .price-amount {
        font-size: 26px;
    }
}

@media (max-width: 576px) {
    .price-amount {
        font-size: 22px;
    }
}

.price-currency {
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
}

.price-original {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.original-amount {
    text-decoration: line-through;
    color: var(--gray-light);
    font-size: 14px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(231, 76, 60, 0.5);
}

.discount-badge-modern {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 8px rgba(240, 128, 32, 0.25);
}

.discount-badge-modern.special {
    background: linear-gradient(135deg, #e74c3c, #c82333);
}

/* ============================================================
   12. STOCK STATUS
   ============================================================ */
.stock-status-modern {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 600;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed rgba(0, 163, 163, 0.15);
    position: relative;
    z-index: 1;
}

.stock-available {
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.stock-available i {
    font-size: 13px;
}

.stock-count {
    color: var(--gray);
    font-weight: 500;
    font-size: 11px;
}

.purchase-limit {
    color: var(--gray);
    font-size: 11px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.purchase-limit i {
    color: var(--warning);
    font-size: 11px;
}

.stock-unavailable {
    color: var(--danger);
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 700;
}

.stock-unavailable i {
    font-size: 13px;
}

/* ============================================================
   13. COUNTDOWN
   ============================================================ */
.countdown-detailed {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #fff8f0, #fff3e6);
    padding: 10px 18px;
    border-radius: 30px;
    border: 1px solid rgba(240, 128, 32, 0.2);
    margin: 16px 0;
    font-size: 12px;
    color: var(--brand-orange);
    font-weight: 700;
    flex-wrap: wrap;
    width: fit-content;
    box-shadow: 0 2px 8px rgba(240, 128, 32, 0.08);
}

.countdown-detailed .countdown {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    background: #ffffff;
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 6px rgba(240, 128, 32, 0.12);
    display: inline-block;
    color: var(--brand-orange-dark);
    font-weight: 800;
    letter-spacing: 1px;
}

.countdown-label {
    font-size: 11px;
    color: var(--gray);
    font-weight: 600;
}

@media (max-width: 576px) {
    .countdown-detailed {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================================
   14. DISCOUNT TIERS
   ============================================================ */
.discount-tiers-modern {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.discount-tiers-modern:hover {
    border-color: rgba(0, 163, 163, 0.2);
    box-shadow: 0 4px 16px rgba(0, 122, 122, 0.06);
}

.tiers-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
    color: var(--brand-teal-dark);
}

.tiers-header i {
    color: var(--brand-orange);
    font-size: 15px;
}

.tiers-badge-special {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 9px;
    font-weight: 700;
    margin-right: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 3px 8px rgba(240, 128, 32, 0.25);
}

.tiers-compact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

@media (max-width: 768px) {
    .tiers-compact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tiers-compact-grid {
        grid-template-columns: 1fr;
    }
}

.tier-compact-card {
    background: #f8fafb;
    border-radius: var(--radius-sm);
    padding: 16px 12px;
    border: 1.5px solid var(--border);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tier-compact-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-orange));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tier-compact-card:hover::before {
    transform: scaleX(1);
}

.tier-compact-card:hover {
    border-color: var(--brand-teal);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 122, 122, 0.1);
    background: #ffffff;
}

.tier-compact-card.active {
    border-color: var(--brand-orange);
    background: linear-gradient(135deg, #fff8f0, #ffffff);
    box-shadow: 0 4px 16px rgba(240, 128, 32, 0.15);
}

.tier-compact-card.active::before {
    transform: scaleX(1);
    background: linear-gradient(90deg, var(--brand-orange), var(--brand-orange-dark));
}

.tier-compact-range {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 10px;
    font-size: 13px;
    font-weight: 700;
    color: var(--brand-teal-dark);
}

.tier-number {
    font-weight: 800;
    font-size: 16px;
    color: var(--brand-teal);
}

.tier-unit {
    font-size: 9px;
    color: var(--gray);
    font-weight: 500;
}

.tier-separator {
    color: var(--gray-light);
    font-size: 10px;
    margin: 0 2px;
}

.tier-compact-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}

.tier-price-value {
    font-size: 18px;
    font-weight: 800;
    color: var(--brand-orange);
    letter-spacing: -0.3px;
}

.tier-price-currency {
    font-size: 9px;
    color: var(--gray);
    font-weight: 500;
}

.tier-compact-footer {
    display: flex;
    justify-content: center;
}

.tier-compact-badge {
    background: linear-gradient(135deg, var(--success), #1a8f57);
    color: #ffffff;
    padding: 5px 14px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    display: inline-block;
    box-shadow: 0 3px 8px rgba(32, 178, 108, 0.25);
    letter-spacing: 0.3px;
}

.tier-save-amount {
    display: none;
}

/* ============================================================
   15. OPTIONS
   ============================================================ */
.options-modern {
    margin: 20px 0;
}

.option-label-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-teal-dark);
}

.required-badge {
    background: rgba(231, 76, 60, 0.1);
    color: var(--danger);
    padding: 2px 8px;
    border-radius: 30px;
    font-size: 9px;
    font-weight: 700;
}

.option-select-modern {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text);
    background: #ffffff;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.option-select-modern:hover {
    border-color: rgba(0, 163, 163, 0.3);
}

.option-select-modern:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(240, 128, 32, 0.1);
}

/* ============================================================
   16. QUANTITY
   ============================================================ */
.quantity-modern {
    margin: 20px 0;
    padding: 20px;
    background: #ffffff;
    border-radius: var(--radius);
    border: 1.5px solid var(--border);
    transition: var(--transition);
}

.quantity-modern:hover {
    border-color: rgba(0, 163, 163, 0.2);
}

.quantity-label-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    font-weight: 700;
    font-size: 13px;
    color: var(--brand-teal-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.quantity-btn {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    background: #ffffff;
    color: var(--text);
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-family: inherit;
}

.quantity-btn:hover:not(:disabled) {
    border-color: var(--brand-orange);
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(240, 128, 32, 0.25);
}

.quantity-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.quantity-input-modern {
    width: 70px;
    height: 44px;
    text-align: center;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 800;
    color: var(--brand-teal-dark);
    background: #ffffff;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
}

.quantity-input-modern:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(240, 128, 32, 0.1);
}

@media (max-width: 576px) {
    .quantity-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }

    .quantity-input-modern {
        width: 58px;
        height: 38px;
        font-size: 14px;
    }
}

.weight-info {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    padding: 6px 14px;
    background: #f8fafb;
    border-radius: 30px;
    font-size: 11px;
    color: var(--gray);
    border: 1px solid rgba(0, 163, 163, 0.1);
}

.weight-info i {
    color: var(--brand-teal);
}

/* ============================================================
   17. ADD TO CART
   ============================================================ */
.add-to-cart-modern {
    margin: 20px 0;
}

.btn-add-cart-modern {
    width: 100%;
    padding: 16px 22px;
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-light));
    color: #ffffff;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transition);
    box-shadow: 0 8px 24px rgba(240, 128, 32, 0.28);
    position: relative;
    overflow: hidden;
    font-family: inherit;
    letter-spacing: 0.3px;
}

.btn-add-cart-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
    transition: left 0.6s ease;
}

.btn-add-cart-modern:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(240, 128, 32, 0.4);
    background: linear-gradient(135deg, var(--brand-orange-dark), var(--brand-orange));
}

.btn-add-cart-modern:hover:not(:disabled)::before {
    left: 100%;
}

.btn-add-cart-modern:disabled {
    background: linear-gradient(135deg, #adb5bd, #6c757d);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.8;
}

.btn-add-cart-modern i {
    font-size: 18px;
}

@media (max-width: 576px) {
    .btn-add-cart-modern {
        padding: 14px 18px;
        font-size: 15px;
    }
}

/* ============================================================
   18. ATTRIBUTES
   ============================================================ */
.attributes-modern {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.attributes-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 16px;
    font-weight: 700;
    font-size: 14px;
    color: var(--brand-teal-dark);
}

.attributes-title i {
    color: var(--brand-orange);
}

.attributes-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

@media (max-width: 576px) {
    .attributes-grid-modern {
        grid-template-columns: 1fr;
    }
}

.attribute-item-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8fafb;
    border-radius: var(--radius-sm);
    border-right: 3px solid var(--brand-orange);
    font-size: 12px;
    transition: var(--transition);
    gap: 10px;
}

.attribute-item-modern:hover {
    background: #ffffff;
    transform: translateX(-4px);
    box-shadow: 0 4px 12px rgba(0, 122, 122, 0.08);
}

.attribute-name-modern {
    color: var(--gray);
    font-weight: 600;
}

.attribute-value-modern {
    color: var(--brand-teal-dark);
    font-weight: 700;
}

.attributes-more {
    text-align: center;
    margin-top: 14px;
}

.view-more-attributes {
    color: var(--brand-orange);
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    padding: 6px 14px;
    border-radius: 30px;
    background: rgba(240, 128, 32, 0.06);
    border: 1px solid rgba(240, 128, 32, 0.15);
}

.view-more-attributes:hover {
    gap: 8px;
    background: rgba(240, 128, 32, 0.12);
    border-color: rgba(240, 128, 32, 0.3);
}

/* ============================================================
   19. TABS
   ============================================================ */
.tabs-modern-container {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 122, 122, 0.06);
    margin-top: 30px;
    border: 1px solid var(--border);
    clear: both;
    position: relative;
    z-index: 5;
}

.tabs-header-modern {
    display: flex;
    background: linear-gradient(135deg, #f8fafb, #eef2f5);
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    position: relative;
    z-index: 6;
    scrollbar-width: none;
}

.tabs-header-modern::-webkit-scrollbar {
    display: none;
}

.tab-btn-modern {
    padding: 16px 26px;
    background: none;
    border: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    font-family: inherit;
    position: relative;
}

.tab-btn-modern:hover {
    color: var(--brand-teal);
    background: rgba(0, 163, 163, 0.04);
}

.tab-btn-modern.active {
    color: var(--brand-orange);
    background: #ffffff;
    border-bottom-color: var(--brand-orange);
}

.tab-btn-modern.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 20%;
    left: 20%;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-orange));
    border-radius: 3px 3px 0 0;
    display: none;
}

.tab-badge {
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
    color: #ffffff;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 800;
    box-shadow: 0 2px 6px rgba(240, 128, 32, 0.25);
}

.tabs-content-modern {
    padding: 26px;
    position: relative;
    z-index: 5;
    background: #ffffff;
}

.tab-pane-modern {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane-modern.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .tab-btn-modern {
        padding: 14px 20px;
        font-size: 13px;
    }

    .tabs-content-modern {
        padding: 20px;
    }
}

/* ============================================================
   20. DESCRIPTION
   ============================================================ */
.description-content {
    line-height: 1.9;
    color: var(--text);
    font-size: 14px;
}

.description-content h2 {
    font-size: 20px;
    color: var(--brand-teal-dark);
    margin-bottom: 18px;
    font-weight: 800;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(0, 163, 163, 0.1);
}

@media (max-width: 576px) {
    .description-content h2 {
        font-size: 18px;
    }
}

.product-abstract {
    font-size: 14px;
    color: var(--text);
    padding: 16px 20px;
    background: linear-gradient(135deg, rgba(0, 163, 163, 0.04), rgba(240, 128, 32, 0.03));
    border-radius: var(--radius-sm);
    border-right: 4px solid var(--brand-orange);
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-description {
    font-size: 14px;
    color: var(--text);
    height: unset;
    line-height: 1.9;
}

.product-description p {
    margin-bottom: 16px;
    text-align: justify;
}

.product-description img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
    margin: 18px 0;
    box-shadow: 0 4px 16px rgba(0, 122, 122, 0.08);
}

/* ============================================================
   21. SPECIFICATIONS TABLE
   ============================================================ */
.specs-table-modern {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 122, 122, 0.06);
    border: 1px solid var(--border);
}

.specs-table-modern th,
.specs-table-modern td {
    padding: 14px 18px;
    text-align: right;
    border-bottom: 1px solid var(--border);
}

.specs-table-modern th {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    font-weight: 700;
    color: #ffffff;
    width: 180px;
    font-size: 13px;
    letter-spacing: 0.3px;
}

.specs-table-modern tbody tr:nth-child(even) {
    background: #f8fafb;
}

.specs-table-modern tbody tr {
    transition: var(--transition);
}

.specs-table-modern tbody tr:hover {
    background: rgba(240, 128, 32, 0.04);
    transform: translateX(-3px);
}

@media (max-width: 768px) {
    .specs-table-modern th {
        width: 130px;
    }
}

@media (max-width: 576px) {
    .specs-table-modern th,
    .specs-table-modern td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .specs-table-modern th {
        width: 110px;
    }
}

.specs-table-modern td {
    color: var(--text);
    font-weight: 500;
}

.specs-table-modern tr:last-child td,
.specs-table-modern tr:last-child th {
    border-bottom: none;
}

/* ============================================================
   22. COMMENTS
   ============================================================ */
.comments-modern-container {
    margin: 0 auto;
}

.comment-form {
    background: linear-gradient(135deg, #f8fafb, #eef2f5);
    border-radius: var(--radius);
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid var(--border);
}

.comment-form h4 {
    color: var(--brand-teal-dark);
    font-weight: 800;
    text-align: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.rating-stars {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 5px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 26px;
    color: #e4e5e9;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.rating-stars label:hover {
    transform: scale(1.15);
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label {
    color: #f39c12;
}

@media (max-width: 576px) {
    .rating-stars label {
        font-size: 22px;
    }
}

.btn-submit-comment {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(0, 122, 122, 0.25);
    font-family: inherit;
}

.btn-submit-comment:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 122, 122, 0.35);
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
}

.btn-load-more {
    background: linear-gradient(135deg, var(--brand-teal), var(--brand-teal-dark));
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
    box-shadow: 0 6px 18px rgba(0, 122, 122, 0.25);
    font-family: inherit;
}

.btn-load-more:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 122, 122, 0.35);
    background: linear-gradient(135deg, var(--brand-orange), var(--brand-orange-dark));
}

/* ============================================================
   23. LOADING OVERLAY
   ============================================================ */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99998;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--border);
    border-top-color: var(--brand-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ============================================================
   24. UTILITY CLASSES
   ============================================================ */
.text-muted {
    color: var(--gray) !important;
}

.mb-3 {
    margin-bottom: 16px !important;
}

.mt-4 {
    margin-top: 20px !important;
}

.text-center {
    text-align: center !important;
}

.d-none {
    display: none !important;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.2em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
    font-family: inherit;
    outline: none;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 4px rgba(240, 128, 32, 0.1);
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -8px;
}

.col-12 {
    width: 100%;
    padding: 0 8px;
}

/* ============================================================
   25. RESPONSIVE FIXES
   ============================================================ */
@media (max-width: 1200px) {
    .product-main-container {
        grid-template-columns: 1fr 1.1fr;
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .product-main-container {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }

    .product-gallery-modern {
        width: 100% !important;
        margin-bottom: 0;
    }

    .product-info-modern {
        width: 100% !important;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .product-page-wrapper {
        padding: 15px 0 30px;
    }

    .product-info-modern {
        padding: 16px;
    }

    .price-amount {
        font-size: 24px;
    }

    .original-amount {
        font-size: 13px;
    }

    .tiers-compact-grid {
        gap: 10px;
    }

    .product-breadcrumb-modern {
        padding: 12px 16px;
    }
}

@media (max-width: 576px) {
    .gallery-main {
        height: 280px;
    }

    .thumb-item {
        width: 52px;
        height: 52px;
    }

    .product-badge-detailed {
        padding: 4px 10px;
        font-size: 10px;
    }

    .price-amount {
        font-size: 22px;
    }

    .btn-add-cart-modern {
        padding: 14px 16px;
        font-size: 15px;
    }

    .tier-compact-card {
        padding: 14px 10px;
    }

    .tier-price-value {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .tiers-compact-grid {
        grid-template-columns: 1fr;
    }

    .countdown-detailed {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
}

/* ============================================================
   26. FIXED MOBILE BUTTON OVERRIDE
   ============================================================ */
#fixedSampleBtnMobile {
    left: 18% !important;
}

/* ============================================================
   END OF PRODUCT PAGE STYLES
   ============================================================ */
   /* ============================================
   VARIANT SELECTOR STYLES - Modern & Elegant
   ============================================ */

#variantSelector {
    background: #ffffff;
    border-radius: 18px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#variantSelector::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, rgba(13, 110, 253, 0.05) 0%, rgba(13, 110, 253, 0) 100%);
    border-radius: 50%;
    pointer-events: none;
}

#variantSelector:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
}

/* هدر بخش انتخاب ویژگی‌ها */
.variant-selector-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 2px dashed #e9ecef;
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    position: relative;
    z-index: 1;
}

.variant-selector-header i {
    color: #0d6efd;
    font-size: 22px;
    animation: pulse-icon 2.5s infinite;
    background: rgba(13, 110, 253, 0.1);
    padding: 10px;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

/* هر بلوک ویژگی (رنگ، سایز و ...) */
.attribute-block {
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.attribute-block:last-child {
    margin-bottom: 0;
}

.attribute-block .form-label {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    color: #495057;
    margin-bottom: 14px;
    padding-right: 12px;
    position: relative;
}

.attribute-block .form-label::before {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, #0d6efd 0%, #0a58ca 100%);
    border-radius: 2px;
}

/* کانتینر مقادیر */
.attribute-values {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* دکمه‌های رادیویی سفارشی */
.attribute-values .radio-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    font-weight: 500;
    color: #495057;
    position: relative;
    user-select: none;
    overflow: hidden;
}

.attribute-values .radio-inline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(13, 110, 253, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.attribute-values .radio-inline:hover::before {
    width: 200px;
    height: 200px;
}

.attribute-values .radio-inline:hover {
    border-color: #0d6efd;
    background: #f0f6ff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(13, 110, 253, 0.15);
}

/* مخفی کردن radio اصلی */
.attribute-values .radio-inline input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 0;
    height: 0;
    pointer-events: none;
}

/* حالت انتخاب شده (با کلاس active) */
.attribute-values .radio-inline.active {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

.attribute-values .radio-inline.active::before {
    background: rgba(255, 255, 255, 0.15);
    width: 200px;
    height: 200px;
}

/* برای مرورگرهایی که :has را پشتیبانی می‌کنند (پشتیبان) */
.attribute-values .radio-inline:has(input[type="radio"]:checked) {
    border-color: #0d6efd;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    color: #ffffff;
    box-shadow: 0 6px 18px rgba(13, 110, 253, 0.35);
    transform: translateY(-1px);
}

/* نقطه رنگی داخل دکمه (برای رنگ‌ها) */
.attribute-values .radio-inline span[style*="background"] {
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 0 0 1px #e9ecef, 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.25s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.attribute-values .radio-inline:hover span[style*="background"] {
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #0d6efd, 0 4px 8px rgba(0, 0, 0, 0.15);
}

.attribute-values .radio-inline.active span[style*="background"] {
    border-color: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* حالت غیرفعال (اگر لازم شد) */
.attribute-values .radio-inline.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    filter: grayscale(0.5);
}

/* پیام خطا (ترکیب موجود نیست) */
#variantError {
    background: linear-gradient(135deg, #fff3cd 0%, #ffe8a1 100%);
    border: 1px solid #ffc107;
    color: #856404;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(255, 193, 7, 0.2);
    margin-top: 16px;
}

#variantError::before {
    content: '⚠️';
    font-size: 18px;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #variantSelector {
        padding: 18px;
        border-radius: 14px;
    }

    .variant-selector-header {
        font-size: 15px;
        padding-bottom: 14px;
        margin-bottom: 18px;
    }

    .variant-selector-header i {
        width: 38px;
        height: 38px;
        font-size: 18px;
    }

    .attribute-block {
        margin-bottom: 18px;
    }

    .attribute-values {
        gap: 8px;
    }

    .attribute-values .radio-inline {
        padding: 8px 14px;
        font-size: 12px;
    }

    .attribute-values .radio-inline span[style*="background"] {
        width: 18px !important;
        height: 18px !important;
    }
}

@media (max-width: 576px) {
    #variantSelector {
        padding: 14px;
        border-radius: 12px;
    }

    .variant-selector-header {
        font-size: 14px;
    }

    .attribute-block .form-label {
        font-size: 13px;
        margin-bottom: 10px;
    }

    .attribute-values {
        gap: 6px;
    }

    .attribute-values .radio-inline {
        padding: 7px 12px;
        font-size: 11px;
        gap: 6px;
    }

    .attribute-values .radio-inline span[style*="background"] {
        width: 16px !important;
        height: 16px !important;
    }

    #variantError {
        padding: 12px 14px;
        font-size: 12px;
    }
}

/* ============================================
   DARK MODE SUPPORT (اختیاری)
   ============================================ */
@media (prefers-color-scheme: dark) {
    #variantSelector {
        background: #1a1d21;
        border-color: #2d3238;
    }

    .variant-selector-header {
        color: #e9ecef;
        border-bottom-color: #2d3238;
    }

    .attribute-block .form-label {
        color: #ced4da;
    }

    .attribute-values .radio-inline {
        background: #2d3238;
        border-color: #3a4046;
        color: #ced4da;
    }

    .attribute-values .radio-inline:hover {
        background: #3a4046;
        border-color: #0d6efd;
    }

    #variantError {
        background: linear-gradient(135deg, #4a3f1a 0%, #3a3010 100%);
        border-color: #ffc107;
        color: #ffe8a1;
    }
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

#variantSelector.show {
    animation: fadeInScale 0.3s ease;
}

/* ============================================
   SCROLLBAR (اختیاری برای attribute-values)
   ============================================ */
.attribute-values::-webkit-scrollbar {
    height: 6px;
}

.attribute-values::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.attribute-values::-webkit-scrollbar-thumb {
    background: #0d6efd;
    border-radius: 10px;
}

.attribute-values::-webkit-scrollbar-thumb:hover {
    background: #0a58ca;
}