/* Reset dan Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "DM Sans", sans-serif;
    background: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

/* Header */
header {
    background: #ffffff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-bottom: 1px solid #eaeaea;
}

.logo {
    max-width: 140px;
    height: auto;
}

.back-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.back-link:hover {
    background: #e9ecef;
    transform: translateX(-2px);
}

.back-link i {
    margin-right: 6px;
    font-size: 18px;
}

/* Main Layout */
main {
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    position: relative;
}

/* Product Gallery */
.product-gallery {
    position: relative;
    background: #f8f9fa;
    overflow: hidden;
}

.main-image {
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image img.zoomed {
    transform: scale(1.5);
    cursor: zoom-out;
}

/* Product Info */
.product-info {
    padding: 20px;
}

.product-header {
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeaea;
    padding-bottom: 16px;
}

.product-title {
    font-size: 22px;
    font-weight: 300;
    color: #2d3748;
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-price {
    font-size: 24px;
    font-weight: 700;
    color: #e53e3e;
}

/* Section Styles */
.section-title {
    font-size: 14px;
    font-weight: 300;
    color: #9fa7b4;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

/* Variant Section - Tampil langsung tanpa expand */
.variant-section {
    margin-bottom: 24px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eaeaea;
}

.variant-section .section-title {
    font-size: 16px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 16px;
    display: block;
}

.variant-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-option {
    position: relative;
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.variant-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    min-height: 50px;
}

.variant-option input[type="radio"]:checked + .variant-label,
.variant-option.active .variant-label {
    border-color: #dd6b20;
    background: linear-gradient(135deg, #fffaf0, #fed7aa);
    box-shadow: 0 4px 12px rgba(221, 107, 32, 0.15);
    transform: translateY(-2px);
}

.variant-name {
    color: #2d3748;
    font-weight: 600;
    font-size: 14px;
}

.variant-price {
    color: #dd6b20;
    font-weight: 700;
    font-size: 14px;
}

.variant-label:hover {
    border-color: #cbd5e0;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Hover effect untuk yang belum active */
.variant-option:not(.active) .variant-label:hover {
    background: #f7fafc;
}

/* Description Section - Tampil langsung tanpa expand */
.description-section {
    margin-bottom: 24px;
}

.description-section .section-title {
    cursor: default; /* Tidak bisa diklik */
}

.description-section .section-title::after {
    display: none; /* Hilangkan tanda segitiga */
}

.product-description {
    max-height: none; /* Hilangkan batas tinggi */
    opacity: 1; /* Selalu terlihat */
    overflow: visible; /* Konten selalu terlihat */
    padding: 12px 0;
    color: #4a5568;
    line-height: 1.7;
    font-size: 14px;
    margin-bottom: 80px;
}

/* Action Footer */
.action-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 500px;
    margin: 0 auto;
    background: #ffffff;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    border-top: 1px solid #eaeaea;
}

.add-to-cart-form {
    width: 100%;
}

.btn-add-to-cart {
        margin-top: ;
    width: 100%;
    background: linear-gradient(135deg, #dd6b20, #ed8936);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-add-to-cart:hover {
    background: linear-gradient(135deg, #c05621, #dd6b20);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(221, 107, 32, 0.3);
}

.btn-add-to-cart:active {
    transform: translateY(0);
}



/* Responsive Design */
@media (max-width: 768px) {
    main {
        max-width: 100%;
    }
    
    .main-image {
        height: 350px;
    }
    
    .product-title {
        font-size: 20px;
    }
    
    .product-price {
        font-size: 22px;
    }
    
    .product-info {
        padding: 16px;
    }
    
    .variant-section {
        padding: 12px;
    }
    
    .variant-label {
        padding: 10px 14px;
    }
}

@media (max-width: 480px) {
    .main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: 18px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    header {
        padding: 12px 16px;
    }
    
    .logo {
        max-width: 120px;
    }
    
    .action-footer {
        padding: 12px 16px;
    }
    
    .btn-add-to-cart {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .variant-label {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .variant-price {
        align-self: flex-end;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-info > * {
    animation: fadeIn 0.5s ease forwards;
}

.variant-section {
    animation-delay: 0.1s;
}

.description-section {
    animation-delay: 0.2s;
}

/* Loading State */
.btn-add-to-cart.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-add-to-cart.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}