/* ===================================
   PRODUCT DETAILS PAGE STYLES
   =================================== */

/* Scoped to avoid conflicts */
body {
    font-family: "Outfit", sans-serif;
    color: #131212;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
}

/* Renamed to avoid Bootstrap conflict */
.product-details-container {
    max-width: 1200px;
    margin: auto;
    padding: 40px 20px;
    display: flex;
    /* flex-wrap: wrap; */
    flex-wrap: nowrap;
    gap: 50px;
    background: #fff;
    border-radius: 12px;
    /* box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06); */
}

/* ========== Product Image Section ========== */
.product-image {
    flex: 1 1 450px;
}

.carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.carousel-images {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-images img {
    flex: 0 0 100%;
    width: 100%;
    height: 500px;
    object-fit: contain;
    transition: transform 0.4s ease;
    pointer-events: none;
    padding: 20px;
}

/* .carousel-images img.active-zoom {
    pointer-events: auto;
}

.carousel-images img.active-zoom:hover {
    transform: scale(1.3);
    cursor: zoom-in;
} */

/* Carousel Navigation Buttons */
.carousel-buttons {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 15px;
    pointer-events: none;
}

.carousel-buttons button {
    background: rgba(255, 255, 255, 0.95);
    color: #000;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    pointer-events: all;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.carousel-buttons button:hover {
    background: #fff;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.carousel-buttons button i {
    font-size: 16px;
}

/* Thumbnail Images */
.sub-images {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.sub-images img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border: 3px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    padding: 8px;
    transition: all 0.3s ease;
}

.sub-images img:hover {
    border-color: #000000;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sub-images img.active {
    border-color: #d16262;
    /* box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3); */
}

/* ========== Product Info Section ========== */
.product-info {
    flex: 1 1 500px;
    padding: 10px 0;
}

.product-title {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: #1a1a1a;
}

.product-price.detailspage {
    color: #121212;
    /* margin: 15px 0; */
    margin: 0 !important;
    font-size: 24px !important;
    font-weight: 600;
}

.product-price.detailspage del {
    color: #999;
    margin-left: 15px;
    font-size: 22px !important;
    font-weight: 400;
}

.short-desc {
    margin-bottom: 25px;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

/* Size Options */
.size-options {
    margin: 25px 0;
}

.size-options strong {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: #333;
}

.size-options span {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #ddd;
    margin-right: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    border-radius: 6px;
    /* transition: all 0.3s ease; */
    font-weight: 500;
    background: #fff;
}

.size-options span:hover {
    border-color: #FF1919;
    background: #f0f8ff;
    /* transform: translateY(-2px); */
}

.size-options span.selected {
    background: #ffffff;
    color: #000000;
    border-color: #FF1919;
}

.size-chart {
    margin-top: 10px;
    margin-bottom: 25px;
}

.size-chart a {
    color: #000000;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.size-chart a:hover {
    color: #292929;
}

.size-options a {
    color: #000000;
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.size-options a:hover {
    color: #292929;
}

/* Product Properties */
.properties {
    margin-top: 25px;
    line-height: 2;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #d16262;
}

.properties div {
    margin-bottom: 8px;
}

.properties strong {
    display: inline-block;
    width: 140px;
    color: #555;
    font-weight: 600;
}

/* Action Buttons */
.buttons {
    display: flex;
    gap: 15px;
    margin-top: 35px;
}

.buttons button {
    flex: 1;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-cart {
    background: #000;
    color: #fff;
}

.btn-cart:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-buy {
    background: #fff;
    color: #000;
    border: 2px solid #000 !important;
}

.btn-buy:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ========== Size Chart Modal ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: #fff;
    color: #000;
    margin: 8% auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 700;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #000;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #f00;
}

.size-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.size-chart-table th,
.size-chart-table td {
    padding: 12px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.size-chart-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.size-chart-table td {
    color: #555;
}

.size-chart-table tr:hover {
    background: #f8f9fa;
}

/* ========== Related Products Section ========== */
.related-section {
    /* max-width: 1200px; */
    margin: 60px auto;
    padding: 0 20px;
    overflow: hidden; /* Add this */
    width: 100%; /* Add this */
    box-sizing: border-box; /* Add this */
}



.related-section h2 {
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
}

.related-section .item {
    background: #fff;
    border-radius: 12px;
    text-align: left;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
    margin: 10px auto;
}

.related-section .item:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.related-section .item img {
    width: 100% !important;
    height: 220px;
    object-fit: contain;
    margin-bottom: 0;
    border-radius: 0;
    /* background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); */
    padding: 15px;
}

.detail {
    padding: 15px;
}

.detail h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a1a1a;
    height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.detail .product-price {
    font-size: 18px;
    margin: 0;
}

.owl-stage {
    height: auto;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .product-details-container {
        flex-direction: column;
        gap: 30px;
        padding: 20px 15px;
        /* margin: 40px 10px; */
        margin: 40px 10px 20px 10px;
    }

    .product-title {
        font-size: 24px;
    }

    .product-price.detailspage {
        font-size: 22px !important;
    }

    .product-price.detailspage del {
        font-size: 18px !important;
    }

    .carousel-images img {
        height: 350px;
    }

    .carousel-buttons button {
        width: 40px;
        height: 40px;
        padding: 10px;
    }

    .sub-images img {
        width: 70px;
        height: 70px;
    }

    .buttons {
        flex-direction: column;
    }

    .buttons button {
        width: 100%;
    }

    .properties strong {
        width: 120px;
        font-size: 14px;
    }

    .related-section .item img {
        height: 180px;
    }
    .related-section {
        padding: 0 10px;
        margin: 0 auto !important; /* Reduced margins */
    }
    .owl-carousel {
        overflow: hidden;
    }
    .owl-stage-outer {
        overflow: hidden;
    }
}

@media (min-width: 768px) {
    .product-details-container {
        padding-top: 120px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .product-title {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .product-price.detailspage {
        font-size: 20px !important;
    }

    .product-price.detaispage del {
        font-size: 16px !important;
    }

    .carousel-images img {
        height: 280px;
    }

    .sub-images {
        gap: 8px;
    }

    .sub-images img {
        width: 60px;
        height: 60px;
    }

    .size-options span {
        padding: 8px 14px;
        font-size: 14px;
    }

    .buttons button {
        padding: 12px 20px;
        font-size: 14px;
    }

    .properties {
        padding: 15px;
    }

    .properties strong {
        width: 100px;
        font-size: 13px;
    }

    .modal-content {
        padding: 20px;
        margin: 20% auto;
    }

    .related-section h2 {
        font-size: 22px;
    }
}


.cart-icon.wdetailpage{
    font-size: 26px !important;
}



@media(min-width:1500px){
    .product-details-container{
        max-width: 1400px !important;
        
    }
    .related-section{
        max-width: 1400px !important;
    }
}

