﻿.variation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    border-radius: 12px;
    background-color: #fff;
}

    .variation-table thead th {
        color: #fff;
        background: #b8860b;
        border-color: #a97808;
        text-align: center;
        vertical-align: middle;
        font-weight: 600;
        padding: 14px 10px;
    }

        .variation-table thead th i {
            margin-left: 5px;
            color: #ffe08a;
        }

    .variation-table tbody td {
        text-align: center;
        vertical-align: middle;
        padding: 14px 10px;
    }

    .variation-table tbody tr {
        transition: all 0.2s ease;
    }

        .variation-table tbody tr:hover {
            background-color: #fffaf0;
        }

.variation-sku {
    color: #555;
    font-weight: 600;
}

    .variation-sku i,
    .variation-info i {
        color: #b8860b;
        margin-left: 5px;
    }

.variation-price {
    color: #a66d00;
    font-size: 17px;
    font-weight: 800;
    direction: rtl;
    white-space: nowrap;
}

    .variation-price small {
        font-size: 12px;
        font-weight: 600;
        margin-right: 3px;
    }

/* دکمه افزودن به سبد خرید */
.variation-actions,
.variation-card-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-cart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 9px 15px;
    border: 0;
    border-radius: 8px;
    color: #fff !important;
    background: linear-gradient(135deg, #c99622, #9c6800);
    box-shadow: 0 4px 10px rgba(156, 104, 0, 0.22);
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.25s ease;
}

    .btn-cart:hover {
        color: #fff !important;
        background: linear-gradient(135deg, #dcae3b, #b77b00);
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgba(156, 104, 0, 0.35);
    }

    .btn-cart i {
        font-size: 15px;
    }

.btn-details {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    color: #b8860b !important;
    background: #fff8e5;
    border: 1px solid #e5c875;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

    .btn-details:hover {
        color: #fff !important;
        background: #b8860b;
    }

/* کارت‌های موبایل */
.variation-card {
    height: 100%;
    overflow: hidden;
    border: 1px solid #ead9a6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 15px4px 15px rgba(0, 0, 0, 0.07);
    transition: all 0.25s ease;
}

    .variation-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 7px 20px rgba(0, 0, 0, 0.12);
    }

.variation-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 14px;
    color: #fff;
    background: linear-gradient(135deg, #b8860b, #8e5e00);
    font-size: 13px;
}

    .variation-card-header i {
        margin-left: 5px;
    }

    .variation-card-header .variation-sku {
        color: #fff;
        font-size: 12px;
    }

.variation-card-body {
    padding: 15px;
}

.variation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 0;
    border-bottom: 1px dashed #e5e5e5;
    color: #666;
    font-size: 13px;
}

    .variation-row i {
        width: 20px;
        color: #b8860b;
        text-align: center;
        margin-left: 4px;
    }

    .variation-row strong {
        color: #333;
    }

.variation-price-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 14px 0;
    padding: 11px;
    border-radius: 9px;
    background: #fff9e8;
    color: #6b4b00;
    font-size: 13px;
}

    .variation-price-box i {
        color: #b8860b;
        margin-left: 4px;
    }

.btn-cart-full {
    flex: 1;
    width: auto;
}

.variation-card-actions {
    justify-content: stretch;
}


/* باکس بنر دیجی کالا */
.digikala-installments-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(95deg, #fff 0%, #f6f6f6 100%);
    border: 1px solid #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    margin-bottom: 30px;
    direction: rtl;
}

    .digikala-installments-banner:hover {
        border-color: #ef4056;
        box-shadow: 0 5px 15px rgba(239, 64, 86, 0.1);
        transform: translateY(-2px);
    }

.banner-content {
    display: flex;
    align-items: center;
    gap: 25px;
}

.logos {
    display: flex;
    align-items: center;
    gap: 15px;
}

.digi-logo {
    height: 30px;
    width: auto;
}

.pay-logo {
    height: 25px;
    width: auto;
}

.divider {
    width: 1px;
    height: 30px;
    background-color: #ddd;
}

.text-section h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 700;
    color: #3f4064;
}

.text-section p {
    margin: 0;
    font-size: 13px;
    color: #717171;
}

.action-section {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ef4056;
    font-weight: 700;
    font-size: 14px;
}

    .action-section i {
        font-size: 12px;
    }

/* ریسپانسیو برای موبایل */
@media (max-width: 768px) {
    .digikala-installments-banner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        padding: 15px;
    }

    .banner-content {
        flex-direction: column;
        gap: 15px;
    }

    .text-section h4 {
        font-size: 14px;
    }

    .action-section {
        border-top: 1px solid #eee;
        width: 100%;
        padding-top: 10px;
        justify-content: center;
    }
}





/* نمایش دو کارت در موبایل‌های بزرگ‌تر */
@media (min-width: 576px) and (max-width: 767.98px) {
    .variation-card-header {
        font-size: 12px;
    }

    .btn-cart {
        padding-right: 10px;
        padding-left: 10px;
        font-size: 12px;
    }
}
