/* section 2 */
section {
    padding: 80px 0;
    width: 100%;
    overflow: hidden;
}

/* Product Showcase */
.product-showcase {
    padding: 80px 0;
    background: #fff;
    width: 100%;
}

/* Product Grid - FIXED OVERFLOW */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    width: 100%;
    max-width: 100%;
}

/* Left: Carousel - FIXED WIDTH */
.carousel-section {
    position: relative;
    width: 100%;
    max-width: 100%;
}

.main-carousel {
    width: 100%;
    height: 500px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    position: relative;
    background: #f8f8f8;
    max-width: 100%;
}

.carousel-slide {
    width: 100%;
    height: 100%;
    display: none;
    position: relative;
    max-width: 100%;
    overflow: hidden;
}

.carousel-slide img {
    object-fit: cover;
    height: 100%;
}


.carousel-slide.active {
    display: block;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    left: 0;
    right: 0;
    margin: 0 auto;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

/* Thumbnail Grid - FIXED */
.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;

}

.thumbnail {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f8f8;
    position: relative;
    max-width: 100%;
}

/* Right: Product Info - FIXED */
.product-info {
    width: 100%;
    max-width: 100%;
}

/* Brand Header */
.brand-header {
    width: 100%;
}

.brand-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: -0.5px;
    word-wrap: break-word;
    max-width: 100%;
}

.rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #666;
    font-size: 12px;
    flex-wrap: wrap;
}

.description {
    color: #666;
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 20px;
    max-width: 100%;
    word-wrap: break-word;
}

/* Most Popular Section */
.most-popular {
    margin-bottom: 30px;
    width: 100%;
}

.section-subtitle {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 100%;
}

/* Subscription Card - FIXED */
.subscription-card {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    position: relative;
    background: #fff;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.popular-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    text-align: center;
    width: 100%;
    background: linear-gradient(to right, #00C950, #02451E);
    color: white;
    padding: 10px 16px;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
}

.plan-title {
    margin-top: 30px;
}

/* Fragrance Images Selector - FIXED */
.fragrance-selector {
    margin-bottom: 30px;
    width: 100%;
}

.fragrance-images {
    display: flex;
    margin-top: 10px;
}

.fragrance-image-option {
    flex: 1;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 0;
    margin: 4px 4px;
    padding: 8px;
    border-radius: 4px;
    background-color: #F9F9F9;
    max-width: 24.333%;
}

.fragrance-name {
    margin-bottom: 8px;
    font-size: 12px;
}

.fragrance-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    transition: all 0.3s;
    position: relative;
    max-width: 100%;
    background-image: url('../assets/images/cent-1.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;



}

/* Shipping Options - FIXED */
.shipping-options {
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    width: 100%;
}

/* Double Subscription - FIXED */
.double-subscription {
    margin-top: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    padding: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #f9f9f9;
    border-radius: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #000;
}

.single-subscription {
    margin-top: 12px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    color: #000;
}

.single-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.double-title {
    display: flex;
    align-items: center;
    justify-content: center;
}

.discount {
    font-weight: 500;
}

.original {
    text-decoration: line-through;
    color: #b0b3b0;
}


/* Add to Cart - FIXED */
.add-to-cart {
    width: 100%;
    background: linear-gradient(to bottom, #02451E, #01652F);
    color: white;
    border: none;
    padding: 18px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 15px;
    max-width: 100%;
    box-sizing: border-box;
}

.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    font-size: 15px;
    color: #666;
    line-height: 1.4;
}

.feature-item i {
    color: #28a745;
    margin-right: 10px;
    margin-top: 3px;
    flex-shrink: 0;
}

.option-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-radius: 50%;
    margin-right: 20px;
    position: relative;
    flex-shrink: 0;
}

.single-title .option-radio {
    position: relative;
    border-color: #28a745;
}

.single-title .option-radio::before {
    position: absolute;
    content: "";
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #28a745;
}

.fa-star {
    color: #00C950;
}


/* Responsive - FIXED OVERFLOW ISSUES */
@media (max-width: 1024px) {
    .product-grid {
        gap: 60px;
    }

    .brand-title {
        font-size: 36px;
    }

    .fragrance-images {
        gap: 10px;
    }
}

@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        width: 100%;
    }

    .main-carousel {
        height: 400px;
        max-width: 100%;
    }

    .thumbnail {
        height: 100px;
    }

    .brand-title {
        font-size: 32px;
    }

    section {
        padding: 60px 0;
    }

    .carousel-controls {
        width: calc(100% - 30px);
        padding: 0 15px;
    }

    .thumbnail-grid {
        grid-template-columns: repeat(2, 1fr);
        place-items: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .main-carousel {
        height: 300px;
    }

    .thumbnail {
        height: 80px;
    }

    .brand-title {
        font-size: 28px;
    }

    .current-price {
        font-size: 28px;
    }

    .fragrance-images {
        flex-direction: column;
        align-items: center;
        gap: 1px;
    }

    .fragrance-image-option {
        max-width: 100%;
        width: 100%;
    }

    .fragrance-img {
        width: 100px;
        height: 100px;
    }

    section {
        padding: 40px 0;
    }

    .shipping-options {
        flex-direction: column;
        gap: 15px;
    }

    .subscription-card {
        padding: 20px 15px;
    }

    .popular-badge {
        left: 15px;
    }

    /* Prevent text overflow on small screens */
    .brand-title,
    .description,
    .feature-item {
        word-break: break-word;
        overflow-wrap: break-word;
    }
}

/* EXTRA FIXES FOR OVERFLOW */
img,
video,
canvas {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
}

/* Fix for flexbox overflow */
.fragrance-images,
.shipping-options,
.rating {
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
}