/* ====================================
   PRODUCT DETAILS PAGE STYLES
   ==================================== */

:root {
    --primary-color: #FF8800;
    --primary-light: #FFB84D;
    --primary-dark: #E67E00;
    --dark-text: #0F172A;
    --light-text: #64748B;
    --white: #FFFFFF;
    --light-bg: #F8FAFC;
    --border-color: #E2E8F0;
    --success-color: #22C55E;
    --danger-color: #EF4444;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ====================================
   PRODUCT DETAILS SECTION
   ==================================== */

.product-details-section {
    background: linear-gradient(135deg, var(--white) 0%, var(--light-bg) 100%);
    padding: 60px 0;
    min-height: 100vh;
}

.product-details-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.product-details-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
    margin-bottom: 60px;
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   PRODUCT IMAGES SECTION
   ==================================== */

.product-images-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-image-container {
    width: 100%;
    aspect-ratio: 1;
    background: var(--light-bg);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.main-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease-out;
}

.main-image-container:hover .main-image {
    transform: scale(1.05);
}

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 10px;
}

.thumbnail-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.thumbnail-image:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

/* ====================================
   PRODUCT INFO SECTION
   ==================================== */

.product-info-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-header {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.product-title {
    font-size: 32px;
    font-weight: 900;
    color: var(--dark-text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.product-brand {
    font-size: 14px;
    color: var(--light-text);
    font-weight: 500;
}

.product-brand span {
    color: var(--primary-color);
    font-weight: 700;
}

/* ====================================
   RATING SECTION
   ==================================== */

.rating-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rating-stars {
    display: flex;
    gap: 4px;
    font-size: 18px;
}

.rating-stars i {
    color: #FFC107;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
}

.review-count {
    font-size: 14px;
    color: var(--light-text);
}

/* ====================================
   PRICE SECTION
   ==================================== */

.price-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 136, 0, 0.1), rgba(255, 184, 77, 0.1));
    border-radius: 12px;
    border: 2px solid var(--primary-light);
}

.price-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--light-text);
    letter-spacing: 0.5px;
}

.product-price {
    font-size: 36px;
    font-weight: 900;
    color: var(--primary-color);
}

/* ====================================
   DESCRIPTION SECTION
   ==================================== */

.description-section {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
}

.description-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.description-section p {
    font-size: 14px;
    line-height: 1.8;
    color: var(--light-text);
}

/* ====================================
   VARIANTS SECTION
   ==================================== */

.variants-section {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
}

.variants-section h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 16px;
}

.variants-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.variant-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.variant-group label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.variant-option {
    padding: 10px 16px;
    border: 2px solid var(--border-color);
    background: var(--white);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-text);
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
    text-align: center;
}

.variant-option:hover {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--white);
}

.variant-option.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: var(--white);
}

/* ====================================
   ACTION BUTTONS SECTION
   ==================================== */

.action-buttons-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
    border-top: 2px solid var(--border-color);
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 16px;
}

.quantity-selector label {
    font-size: 13px;
    font-weight: 700;
    color: var(--dark-text);
    white-space: nowrap;
}

.quantity-input {
    display: flex;
    align-items: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--white);
    width: 120px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background: var(--light-bg);
}

#quantity {
    width: 100%;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
    background: transparent;
    outline: none;
}

#quantity::-webkit-outer-spin-button,
#quantity::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.add-to-cart-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 136, 0, 0.3);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

.wishlist-btn {
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 700;
    background: var(--light-bg);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.wishlist-btn:hover {
    background: var(--primary-light);
    color: var(--white);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.wishlist-btn.active {
    background: var(--primary-color);
    color: var(--white);
}

/* ====================================
   REVIEWS SECTION
   ==================================== */

.reviews-section {
    margin-top: 60px;
    padding: 40px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 2px solid var(--border-color);
}

.reviews-section h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--dark-text);
    margin-bottom: 30px;
}

.reviews-list {
    display: grid;
    gap: 20px;
}

.review-card {
    padding: 20px;
    background: var(--light-bg);
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.review-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.reviewer-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-text);
}

.review-date {
    font-size: 12px;
    color: var(--light-text);
}

.review-rating {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

.review-rating i {
    color: #FFC107;
}

.review-comment {
    font-size: 14px;
    line-height: 1.8;
    color: var(--light-text);
}

/* ====================================
   ERROR MESSAGE
   ==================================== */

.error-message {
    text-align: center;
    padding: 60px 20px;
}

.error-message h2 {
    font-size: 28px;
    font-weight: 900;
    color: var(--danger-color);
    margin-bottom: 12px;
}

.error-message p {
    font-size: 16px;
    color: var(--light-text);
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* TABLET - 1024px */
@media (max-width: 1024px) {
    .product-details-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 30px;
    }

    .product-title {
        font-size: 28px;
    }

    .product-price {
        font-size: 28px;
    }
}

/* MEDIUM - 768px */
@media (max-width: 768px) {
    .product-details-section {
        padding: 40px 0;
    }

    .product-details-container {
        padding: 0 15px;
    }

    .product-details-wrapper {
        padding: 20px;
        gap: 30px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price {
        font-size: 24px;
    }

    .reviews-section {
        padding: 20px;
    }

    .reviews-section h2 {
        font-size: 24px;
    }

    .action-buttons-section {
        flex-direction: column;
    }

    .quantity-selector {
        justify-content: space-between;
    }

    .add-to-cart-btn,
    .wishlist-btn {
        width: 100%;
    }
}

/* MOBILE - 480px */
@media (max-width: 480px) {
    .product-details-wrapper {
        padding: 15px;
        gap: 20px;
    }

    .product-title {
        font-size: 20px;
    }

    .product-price {
        font-size: 20px;
    }

    .price-section {
        padding: 12px;
    }

    .description-section,
    .variants-section {
        padding: 15px;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
        gap: 8px;
    }

    .variant-option {
        flex: 1 1 45%;
        min-width: 70px;
    }

    .qty-btn {
        width: 35px;
        height: 35px;
    }

    .quantity-input {
        width: 100px;
    }

    .add-to-cart-btn,
    .wishlist-btn {
        font-size: 13px;
        padding: 12px 16px;
    }

    .reviews-section {
        padding: 15px;
    }

    .review-card {
        padding: 15px;
    }

    .review-header {
        flex-direction: column;
    }
}

/* EXTRA SMALL - 375px */
@media (max-width: 375px) {
    .product-details-container {
        padding: 0 10px;
    }

    .product-title {
        font-size: 18px;
    }

    .product-price {
        font-size: 18px;
    }

    .price-section {
        padding: 10px;
    }

    .rating-section {
        font-size: 14px;
    }

    .rating-stars {
        font-size: 14px;
    }

    .variant-options {
        gap: 8px;
    }

    .variant-option {
        flex: 1 1 100%;
        padding: 8px 12px;
        font-size: 12px;
    }

    .action-buttons-section {
        gap: 12px;
    }

    .quantity-selector {
        flex-direction: column;
        align-items: flex-start;
    }

    .add-to-cart-btn,
    .wishlist-btn {
        font-size: 12px;
        padding: 10px 14px;
    }

    .review-card {
        padding: 12px;
    }

    .review-header {
        gap: 10px;
    }
}
