/* ========================================
   PRODUCT VARIANTS PAGE STYLES
   Updated: Logo & Elements Diperbesar
   ======================================== */

/* Reset & Variables - Menggunakan variabel yang sama dengan style.css */
:root {
    --green-dark:   #1B4332;
    --green-mid:    #2D6A4F;
    --green-light:  #52b788;
    --gold:         #C9A84C;
    --gold-light:   #e0c068;
    --cream:        #F5F0E8;
    --cream-dark:   #EDE8DC;
    --white:        #ffffff;
    --text-dark:    #1a2e1e;
    --text-mid:     #3d4f3e;
    --text-light:   #6b7c6e;
    --shrimp-color: #D04040;
    --fish-color:   #2563EB;
    --onion-color:  #7C3AED;
    --shadow:       0 4px 20px rgba(27,67,50,0.08);
    --shadow-hover: 0 12px 35px rgba(27,67,50,0.14);
    --radius:       14px;
    --transition:   all 0.3s ease;
}

/* ==================== LOGO DIPERBESAR DI HALAMAN VARIAN ==================== */
.variant-page .logo-img {
    height: 120px;
    max-width: 350px;
}

/* Breadcrumb */
.breadcrumb {
    background: var(--cream);
    padding: 16px 0;
    border-bottom: 1px solid rgba(201,168,76,0.2);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-light);
}

.breadcrumb .container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.breadcrumb a {
    color: var(--green-dark);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--gold);
}

.breadcrumb i {
    font-size: 0.7rem;
    color: var(--gold);
}

.breadcrumb span {
    color: var(--text-dark);
}

/* Variants Section */
.variants-section {
    padding: 80px 0;
    background: #fff;
}

.variants-section .section-heading {
    font-size: 2.2rem; /* Sedikit diperbesar */
}

/* Variants Grid */
.variants-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 40px;
}

/* 3-column grid (untuk 3 varian) */
.variants-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.variants-grid--3 .variant-image {
    height: 240px;
}

/* 5-variant grid: 3 kolom, baris ke-2 (item 4 & 5) center */
.variants-grid--5 {
    grid-template-columns: repeat(3, 1fr);
}

.variants-grid--5 .variant-image {
    height: 220px;
}

.variants-grid--5 .variant-card:nth-child(4) {
    grid-column: 2;
}

.variants-grid--5 .variant-card:nth-child(5) {
    grid-column: 3;
}

/* Variant Card */
.variant-card {
    background: white;
    border-radius: var(--radius);
    border: 1.5px solid rgba(201,168,76,0.2);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.variant-card:hover {
    transform: translateY(-8px); /* Efek hover lebih pronounced */
    box-shadow: var(--shadow-hover);
    border-color: var(--gold);
}

/* Variant Image */
.variant-image {
    height: 320px; /* DIPERBESAR dari 300px */
    background: var(--cream-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px; /* DIPERBESAR dari 20px */
}

.variant-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.variant-card:hover .variant-image img {
    transform: scale(1.1); /* Efek zoom lebih besar */
}

/* Badge */
.variant-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--green-dark);
    color: white;
    padding: 8px 16px; /* DIPERBESAR */
    border-radius: 20px;
    font-size: 0.75rem; /* DIPERBESAR */
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
}

.variant-badge.new {
    background: var(--gold);
    color: var(--text-dark);
}

.variant-badge.popular {
    background: #FF6B35;
    color: white;
}

/* Variant Info */
.variant-info {
    padding: 28px; /* DIPERBESAR dari 24px */
    flex: 1;
    display: flex;
    flex-direction: column;
}

.variant-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem; /* DIPERBESAR dari 1.3rem */
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.variant-desc {
    color: var(--text-mid);
    font-size: 0.95rem; /* DIPERBESAR dari 0.9rem */
    line-height: 1.7;
    margin-bottom: 16px;
}

/* Specifications */
.variant-specs {
    background: var(--cream);
    border-radius: 10px;
    padding: 18px; /* DIPERBESAR dari 16px */
    margin-bottom: 20px;
    display: grid;
    gap: 12px; /* DIPERBESAR */
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 12px; /* DIPERBESAR */
    font-size: 0.9rem; /* DIPERBESAR dari 0.85rem */
    font-weight: 600;
    color: var(--text-dark);
}

.spec-item i {
    color: var(--gold);
    width: 20px; /* DIPERBESAR */
    text-align: center;
    font-size: 1rem;
}

/* Actions */
.variant-actions {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.variant-actions .btn {
    flex: 1;
    justify-content: center;
    font-size: 0.9rem; /* DIPERBESAR */
    padding: 12px 20px; /* DIPERBESAR */
}

/* Bulk Order Section */
.bulk-order-section {
    margin-top: 60px;
    padding: 48px; /* DIPERBESAR dari 40px */
    background: linear-gradient(135deg, var(--cream) 0%, #fff 100%);
    border-radius: var(--radius);
    text-align: center;
    border: 2px dashed var(--gold);
}

.bulk-order-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; /* DIPERBESAR */
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.bulk-order-section p {
    color: var(--text-mid);
    font-size: 1rem; /* DIPERBESAR */
    margin-bottom: 24px;
}

.bulk-order-section .btn {
    margin: 0 auto;
    font-size: 1rem;
    padding: 14px 32px;
}

/* Product Comparison Table */
.comparison-table {
    margin-top: 60px;
    overflow-x: auto;
}

.comparison-table h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem; /* DIPERBESAR */
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 24px;
    text-align: center;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.comparison-table th {
    background: var(--green-dark);
    color: white;
    padding: 18px; /* DIPERBESAR */
    font-size: 0.95rem; /* DIPERBESAR */
    font-weight: 700;
    text-align: left;
}

.comparison-table td {
    padding: 16px 18px; /* DIPERBESAR */
    border-bottom: 1px solid rgba(27,67,50,0.08);
    font-size: 0.9rem; /* DIPERBESAR */
    color: var(--text-mid);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: var(--cream);
}

.comparison-table .highlight {
    color: var(--green-dark);
    font-weight: 700;
}

/* Notification System */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 10000;
    border-left: 4px solid var(--green-dark);
}

.notification.show {
    transform: translateX(0);
}

.notification-success {
    border-left-color: #28a745;
}

.notification-error {
    border-left-color: #dc3545;
}

.notification-info {
    border-left-color: #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info .notification-content i {
    color: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-light);
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s ease;
}

.notification-close:hover {
    color: var(--text-dark);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .variants-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
        margin: 40px auto 0;
    }

    /* 3-col → 2-col on tablet */
    .variants-grid--3 {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .variants-grid--3 .variant-image {
        height: 260px;
    }

    /* 5-variant → 2-col on tablet, reset grid-column overrides */
    .variants-grid--5 {
        grid-template-columns: repeat(2, 1fr);
        max-width: none;
    }

    .variants-grid--5 .variant-card:nth-child(4),
    .variants-grid--5 .variant-card:nth-child(5) {
        grid-column: auto;
    }

    /* Card ke-5 (odd di 2-col) → full width dan center */
    .variants-grid--5 .variant-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }

    .variants-grid--5 .variant-image {
        height: 250px;
    }

    .variant-image {
        height: 280px;
    }
}

@media (max-width: 768px) {
    .variant-image {
        height: 250px;
    }

    /* Semua grid jadi 1-kolom di mobile */
    .variants-grid--3,
    .variants-grid--5 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 40px auto 0;
    }

    .variants-grid--3 .variant-image,
    .variants-grid--5 .variant-image {
        height: 250px;
    }

    /* Reset semua grid-column override di mobile */
    .variants-grid--5 .variant-card:nth-child(4),
    .variants-grid--5 .variant-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
        margin: 0;
        width: 100%;
    }

    .variant-actions {
        flex-direction: column;
    }
    
    .bulk-order-section {
        padding: 32px 24px;
    }
    
    .comparison-table {
        overflow-x: scroll;
    }
    
    .comparison-table table {
        min-width: 600px;
    }
    
    .variants-section .section-heading {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .variant-image {
        height: 220px;
    }
    
    .variant-info {
        padding: 18px;
    }
    
    .variant-info h3 {
        font-size: 1.2rem;
    }
    
    .variant-specs {
        padding: 14px;
    }
    
    .bulk-order-section h2 {
        font-size: 1.4rem;
    }
    
    .comparison-table h2 {
        font-size: 1.4rem;
    }
}

/* RTL Support */
body.rtl .breadcrumb i.fa-chevron-right {
    transform: rotate(180deg);
}

body.rtl .variant-badge {
    right: auto;
    left: 20px;
}

@media (max-width: 768px) {
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
        max-width: none;
    }
}