/* --- BREADCRUMB --- */
.breadcrumb {
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.breadcrumb .container {
    max-width: 1200px;
    margin: 0 auto;
}

.breadcrumb a {
    color: #282c3f;
    text-decoration: none;
    transition: 0.2s;
}

.breadcrumb a:hover {
    color: #4a0404;
    font-weight: bold;
}

.breadcrumb .current {
    color: #888;
}

/* --- MAIN CONTAINER --- */
.product-detail-container {
    max-width: 1200px;
    margin: 30px auto 60px auto;
    padding: 0 20px;
    display: flex;
    gap: 50px;
}

/* --- LEFT: NEW IMAGE GALLERY GRID & CAROUSEL --- */
.product-image-gallery {
    flex: 0.8;
    max-width: 45%;
    margin: 0 auto;
    position: relative;
}

.gallery-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.gallery-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    padding: 10px 0;
}

.gallery-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    width: 100%;
}

.gallery-frame {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 10px;
}


/* Single Full Image setup */
.full-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 18px;
    border: 4px solid #fdf5f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    cursor: pointer;
}

.full-img-wrapper:hover .grid-img {
    transform: scale(1.1);
}

/* 2x2 Grid setup */
.cute-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.grid-img-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    /* Made taller to fit apparel photography */
    overflow: hidden;
    border-radius: 18px;
    border: 4px solid #fdf5f5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    cursor: pointer;
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    /* Pins the image to the top so faces are never cut off */
    transition: transform 0.4s ease, filter 0.3s;
}

/* Hover effect for desktop */
.grid-img-wrapper:hover .grid-img {
    transform: scale(1.1);
}

/* Out of Stock visual */
.oos-grayscale {
    filter: grayscale(100%);
    opacity: 0.8;
}

.oos-label-small {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #cc0000;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 4px;
    pointer-events: none;
}

/* Navigation Buttons */
.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #4a0404;
    border: 1px solid #ddd;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: 0.3s;
}

.nav-btn:hover {
    background: #4a0404;
    color: #fff;
}

.nav-btn.left {
    left: -20px;
}

.nav-btn.right {
    right: -20px;
}

/* --- FULL SCREEN LIGHTBOX CSS --- */
.lightbox-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -10px;
    color: #fff;
    font-size: 35px;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox-close:hover {
    color: #ffdbdb;
    transform: scale(1.1);
}


/* --- RIGHT: PRODUCT INFO --- */
.product-info-section {
    flex: 1;
    max-width: 55%;
    padding-top: 10px;
}

.brand-name {
    font-size: 24px;
    color: #282c3f;
    margin: 0 0 5px 0;
    font-weight: 700;
}

.product-title {
    font-size: 20px;
    color: #4a0404;
    font-weight: 900;
    margin: 0 0 10px 0;
    line-height: 1.4;
    ;
}

.product-short-desc {
    font-size: 14px;
    color: #888;
    margin: 0 0 20px 0;
    padding-bottom: 20px;
    border-bottom: 1px solid #d4d5d9;
}

/* Price */
.price-block {
    margin-bottom: 25px;
}

.current-price {
    font-size: 26px;
    font-weight: 700;
    color: #282c3f;
    display: inline-block;
    margin-right: 10px;
}

.tax-info {
    color: #03a685;
    font-size: 14px;
    font-weight: 700;
    display: block;
    margin-top: 5px;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid #d4d5d9;
}

.btn {
    padding: 15px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
}

.btn-add-cart {
    background-color: #4a0404;
    color: #fff;
    border: 1px solid #4a0404;
}

.btn-add-cart:hover {
    background-color: #2a0202;
    box-shadow: 0 4px 12px rgba(74, 4, 4, 0.2);
}

.btn-wishlist {
    background-color: #fff;
    color: #282c3f;
    border: 1px solid #d4d5d9;
    flex: 0.8;
}

.btn-wishlist:hover {
    border-color: #282c3f;
}

/* Delivery Section */
.delivery-check {
    margin-bottom: 30px;
}

.delivery-check h4 {
    font-size: 16px;
    color: #282c3f;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pincode-box {
    display: flex;
    max-width: 300px;
    border: 1px solid #d4d5d9;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.pincode-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    outline: none;
    font-size: 14px;
    font-family: 'Lato', sans-serif;
}

.pincode-box button {
    background: #fff;
    color: #4a0404;
    border: none;
    border-left: 1px solid #d4d5d9;
    padding: 0 20px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.pincode-box button:hover {
    background: #fdf5f5;
}

.delivery-note {
    font-size: 12px;
    color: #888;
    margin-bottom: 15px;
}

.delivery-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.delivery-features li {
    font-size: 14px;
    color: #535766;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.delivery-features li i {
    color: #4a0404;
}

/* Details Accordion */
.detail-section {
    margin-bottom: 25px;
    padding-top: 20px;
    border-top: 1px solid #d4d5d9;
}

.detail-section h3 {
    font-size: 16px;
    color: #282c3f;
    margin: 0 0 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.description-text {
    font-size: 15px;
    color: #535766;
    line-height: 1.6;
}

/* Specs Grid */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.spec-label {
    font-size: 12px;
    color: #888;
}

.spec-value {
    font-size: 15px;
    color: #282c3f;
}

/* --- COLOR SELECTOR --- */
.color-selector-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #d4d5d9;
}

.color-selector-block h4 {
    font-size: 14px;
    color: #282c3f;
    margin: 0 0 12px 0;
    font-weight: 700;
}

.color-selector-block h4 span {
    font-weight: 400;
    color: #535766;
    margin-left: 5px;
}

.color-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.color-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #d4d5d9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: 0.2s;
}

.color-circle.active {
    border: 2px solid #4a0404;
    transform: scale(1.15);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.color-circle.active::after {
    content: '\2713';
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
}

.color-circle[data-color="white"].active::after,
.color-circle[data-color="#ffffff"].active::after {
    color: #333;
    text-shadow: none;
}

/* --- NEW MORE COLORS CSS --- */
.color-circle.hidden-color {
    display: none;
}

.color-options.expanded .color-circle.hidden-color {
    display: block;
}

.color-more-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #d4d5d9;
    background-color: #fdf5f5;
    color: #4a0404;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}

.color-more-btn:hover {
    background-color: #f3e5e5;
}

.color-options.expanded .color-more-btn {
    display: none;
}


/* --- MOBILE RESPONSIVE --- */
@media (max-width: 768px) {
    .product-detail-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .product-image-gallery,
    .product-info-section {
        max-width: 100%;
        flex: none;
    }

    /* Updated mobile gallery spacing */
    .gallery-frame {
        padding: 0 5px;
    }

    .cute-grid, .full-img-wrapper {
        gap: 10px;
    }

    .grid-img-wrapper, .full-img-wrapper {
        border-width: 2px;
    }

    .nav-btn.left {
        left: -5px;
    }

    .nav-btn.right {
        right: -5px;
    }

    .lightbox-close {
        top: -45px;
        right: 10px;
    }

    .brand-name {
        font-size: 20px;
    }

    .product-title {
        font-size: 18px;
    }

    .action-buttons {
        display: flex;
        flex-direction: row;
        gap: 10px;
        margin-bottom: 25px;
        padding-bottom: 25px;
        border-bottom: 1px solid #d4d5d9;
    }

    .action-buttons .btn {
        padding: 12px 10px;
        font-size: 14px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}