/* Product Detail Page Styles */

.product-detail-page {
    background-color: #ffffff;
}

.product-detail-main {
    padding: 40px 0;
}

.product-detail {
    display: grid;
    grid-template-columns: 0.5fr 2fr 1.2fr;
    gap: 20px;
    align-items: flex-start;
}

/* Thumbnails Gallery */
.product-detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 100px;
}

/* Thumbnail Scroll Wrapper */
.thumbnail-scroll-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.product-detail-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: center;
}

.thumbnail-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 600px;
    overflow-y: auto;
    scroll-behavior: smooth;
    width: 100%;
    scrollbar-width: none;
}
.thumbnail-grid::-webkit-scrollbar {
    display: none;
}

.thumbnail-grid a {
    display: block;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail-grid img {
    width: 100%;
    display: block;
}

/* Thumbnail Scroll Buttons */
.thumbnail-scroll-btn {
    background: none;
    color: #D9D9D9;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 22px;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.thumbnail-scroll-btn.show {
    opacity: 1;
    visibility: visible;
}

/* Zoom Image Container */
.zoom-image-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    width: 100%;
}

/* Main Image */
.product-detail-left .MagicZoom {
    width: 100%;
}

.product-detail-left .MagicZoom img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Right Section - Product Info */
.product-detail-right {
    padding-left: 20px;
}

.product-detail-right h1 {
    font-size: 23px;
    font-weight: 500;
    color: var(--color-black);
    margin: 0 0 15px 0;
    line-height: 1.3;
    text-align: center;
}


/* Product Information List */
.product-information {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-items {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.product-items:last-child {
    border-bottom: none;
}



.product-item-content {
    text-align: center;
    flex: 1;
}

.product-item-content .price-new-detail {
    font-size: 24px;
    font-weight: 500;
    color: var(--color-black);
    display: block;
}

.product-item-content .price-old-detail {
    font-size: 24px;
    color: var(--color-black);
    text-decoration: line-through;
    display: block;
    margin-top: 4px;
}

/* Description Section */
.description-section {
    padding: 20px 0;
}

.description-header {
    font-family: var(--font-poppins);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 300;
    font-size: 14px;
    color: var(--color-black);
    user-select: none;
    border-bottom: #B7B7B7 1px solid;
    border-top: 1px solid #B7B7B7;
}

.description-icon,
.shipping-policy-icon,
.faq-icon,
.return-policy-icon {
    font-size: 18px;
    color: #7B8487;
    transition: transform 0.3s ease;
}

.description-header.open .description-icon,
.shipping-policy-header.open .shipping-policy-icon,
.faq-header.open .faq-icon,
.return-policy-header.open .return-policy-icon {
    transform: rotate(180deg);
}

.description-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.description-header.open ~ .description-content {
    max-height: 1000px;
}

/* Description */

/* FAQ Section */



.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-header.open ~ .faq-content {
    max-height: 1500px;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-family: var(--font-poppins);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-black);
    padding: 8px 0;
}

.faq-answer {
    font-weight: 300;
    font-family: var(--font-poppins);
    font-size: 14px;
    color: var(--color-black);
}

/* Return Policy Section */
.return-policy-section,
.faq-section {
    
}

.return-policy-header,
.faq-header {
    font-family: var(--font-poppins);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 300;
    font-size: 14px;
    color: var(--color-black);
    user-select: none;
    padding: 30px 0;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.return-policy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.return-policy-header.open ~ .return-policy-content {
    max-height: 1000px;
}

.return-policy-content ul {
    list-style: none;
    padding: 0 0 15px 0;
    margin: 0;
}

.return-policy-content li {
    padding: 8px 0;
    font-size: 13px;
    color: var(--color-black);
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

/* Variant Colors */
.product-variant-selector {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.variant-label {
    font-weight: 600;
    font-size: 12px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.variant-colors {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.color-option {
    position: relative;
    cursor: pointer;
}

.color-option-image {
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
    display: block;
}

.color-option-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.color-option.active .color-option-image {
    border-color: #d4a5a5;
    box-shadow: 0 0 0 2px rgba(212, 165, 165, 0.2);
}

.color-option-image:hover {
    border-color: #d4a5a5;
}

/* Rating/Condition Section */
.product-condition-section {
    padding: 20px 0;
    border-bottom: 1px solid #e8e8e8;
}

.condition-label {
    font-weight: 600;
    font-size: 12px;
    color: #1a1a1a;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.condition-options {
    display: flex;
    gap: 15px;
    align-items: center;
}

.condition-item {
    text-align: center;
    cursor: pointer;
}

.condition-bar {
    width: 40px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    margin-bottom: 6px;
    overflow: hidden;
}

.condition-bar.pristine {
    background-color: #e0e0e0;
}

.condition-bar.excellent {
    background-color: #d4a5a5;
}

.condition-bar.great {
    background-color: #e0e0e0;
}

.condition-bar.good {
    background-color: #e0e0e0;
}

.condition-name {
    font-size: 12px;
    color: #1a1a1a;
    font-weight: 500;
}

.condition-item.active .condition-name {
    color: #d4a5a5;
    font-weight: 600;
}

/* Add to Cart Section */
.add-cart-product-detail {
    display: flex;
    margin: 20px 0 10px;
}

.product-quantity-detail {
    display: flex;
    align-items: center;
    border: 1px solid #B7B7B7;
    border-radius: 4px;
    background-color: #f9f9f9;
}

.add-cart-product-detail-btn {
    font-family: var(--font-poppins);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    border: 1px solid #B7B7B7;
    color: var(--color-pink);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-cart-product-detail-btn:hover {
    background-color: var(--color-pink);
    color: var(--color-white);
}

/* Buy Now Button */
.buy-now-btn {
    font-family: var(--font-poppins);
    width: 100%;
    padding: 12px 8px;
    background-color: var(--color-pink);
    border: none;
    color: var(--color-white);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.buy-now-btn:hover {
    background-color: var(--color-white);
    color: var(--color-pink);
    border: 1px solid var(--color-pink);
}

/* Expandable Sections */
.desc-product-detail {
    margin-top: 78px;
}

.title-product-detail {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    border-bottom: 1px solid #e0e0e0;
}

.title-product-detail li {
    flex: 1;
    padding: 16px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    color: #666;
}

.title-product-detail li.active {
    color: #d4a5a5;
    border-bottom-color: #d4a5a5;
}

.title-product-detail li:hover {
    color: #d4a5a5;
}

.product-content-information {
    padding: 30px 0;
}


/* Shipping Policy Section */

.shipping-policy-header {
    font-family: var(--font-poppins);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
    cursor: pointer;
    font-weight: 300;
    font-size: 14px;
    color: var(--color-black);
    border-bottom: #B7B7B7 1px solid;
    border-top: 1px solid #B7B7B7;
}

.shipping-policy-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.shipping-policy-header.open ~ .shipping-policy-content {
    max-height: 1000px;
}

/* Image Navigation Arrows */
.image-nav-arrow {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}


/* Gallery Bottom Navigation */
.gallery-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.gallery-nav-btn {
    background-color: #2a2a2a;
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 14px;
}

.gallery-nav-btn:hover {
    background-color: #1a1a1a;
}

.gallery-nav-btn:active {
    transform: scale(0.95);
}

.gallery-nav-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Product Related Section */
.related_products_section {
    padding: 40px 0;
}
.banner_product_detail {
    padding: 100px 0 97px;
    margin-bottom: -250px;
}
.product-detail-page .footer .footer-benefits {
    background-color: rgba(0, 0, 0, 0.21);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.benefit-content h4,
.benefit-content p a,
.benefit-content p {
    color: #ffffff !important;
    text-decoration: none;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .product-detail {
        gap: 20px;
    }
}

@media (max-width: 1024px) {

    .variant-colors {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .product-detail-main {
        padding: 20px 0;
    }

    .product-detail-left {
        gap: 15px;
    }

    .product-detail-gallery {
        display: none;
    }
    .product-detail-right {
        padding-left: 0;
    }
    .desc-product-detail {
        margin-top: 30px;
    }

    .thumbnail-grid img {
        height: 60px;
    }

    .product-detail-right h1 {
        font-size: 22px;
    }

    .product-item-content .price-new-detail {
        font-size: 20px;
    }

    .variant-colors {
        grid-template-columns: repeat(3, 1fr);
    }

    .add-cart-product-detail {
        flex-direction: column;
    }

    .add-cart-product-detail-btn {
        width: 100%;
    }

    .title-product-detail li {
        font-size: 12px;
        padding: 12px 15px;
    }
    .banner_product_detail {
        padding: 20px 0;
        margin-bottom: 0;
    }
    .product-detail-page .footer .footer-benefits {
        background-color: #f5f5f5;
    }
    .benefit-content h4,
    .benefit-content p a,
    .benefit-content p {
        color: #000000 !important;
        text-decoration: none;
    }
    .product-detail {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .product-detail-left {
        flex-direction: column;
    }

    .product-detail-gallery {
        flex-direction: row;
        min-width: 100%;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    }

    .thumbnail-grid img {
        height: 50px;
    }

    .product-detail-right h1 {
        font-size: 18px;
    }

    .variant-colors {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .product-items {
        flex-direction: column;
        gap: 8px;
    }

    .product-item-content {
        text-align: left;
    }
}
