body.single-product-page {
    position: relative;
    background-color: #fcfbfa;
    overflow-x: hidden;
}

/* Watermark Background - Top Right Corner */
.watermark-bg {
    position: absolute;
    top: -50px;
    right: -100px;
    width: 600px;
    height: 700px;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
    filter: blur(2px) grayscale(30%);
    pointer-events: none;
    z-index: 0;
}

.single-product-container {
    position: relative;
    max-width: 1280px;
    margin: 30px auto 80px;
    padding: 0 20px;
    z-index: 1;
}

.breadcrumb {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 30px;
}

.breadcrumb a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: #b8860b;
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.main-image-box {
    position: relative;
    width: 100%;
    height: 580px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.main-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

/* Open Pic Button Styling */
.open-pic-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.open-pic-btn:hover {
    background: #b8860b;
    transform: scale(1.05);
}

.thumbnail-grid {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.thumbnail-grid .thumb {
    width: 80px;
    height: 95px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.thumbnail-grid .thumb:hover,
.thumbnail-grid .thumb.active {
    border-color: #b8860b;
    opacity: 1;
    transform: translateY(-3px);
}

.product-badge {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #b8860b;
    font-weight: 600;
}

.product-title {
    font-family: 'Cinzel', serif;
    font-size: 2.2rem;
    color: #1a1a1a;
    margin: 8px 0 15px;
    line-height: 1.2;
}

.price-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a1a1a;
}

.original-price {
    font-size: 1.2rem;
    color: #999;
    text-decoration: line-through;
}

.discount-badge {
    background: #e74c3c;
    color: #fff;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.product-summary {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
}

.divider {
    border: 0;
    height: 1px;
    background: #e0e0e0;
    margin: 25px 0;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    color: #333;
}

.spec-item i {
    color: #b8860b;
    font-size: 1.1rem;
}

.purchase-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 35px;
}

.btn-cta {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    height: 48px;
    padding: 0 35px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.buy-now-btn {
    background: #b8860b;
    border: none;
    color: #fff;
    width: 100%;
}

.buy-now-btn:hover {
    background: #1a1a1a;
}

.product-accordions {
    border-top: 1px solid #e0e0e0;
}

.accordion-item {
    border-bottom: 1px solid #e0e0e0;
}

.accordion-header {
    width: 100%;
    padding: 18px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
}

.accordion-header span i {
    color: #b8860b;
    margin-right: 8px;
}

.accordion-header .arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-header .arrow {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
}

.accordion-item.active .accordion-content {
    max-height: 400px;
    padding-bottom: 20px;
}

.care-steps {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 5px;
}

.care-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.step-num {
    background: #b8860b;
    color: #fff;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Fullscreen Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #b8860b;
}

@media (max-width: 902px) {
    .product-layout {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
    .main-image-box {
        height: 450px;
    }
}
/* Ensure the body acts as the relative container for full-height background layout */
body.single-product-page {
    position: relative;
    background-color: #fcfbfa;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Saree Image starting from Left (Below Navbar to Footer) */
/* Updated Background Saree CSS */
.watermark-bg {
    position: absolute;
    top: 80px;          /* Starts right below the navbar */
    left: 0;
    bottom: 0;          /* Touches the top edge of the footer */
    width: 50%;         /* Adjust width coverage as needed */
    
    background-image: url('../images/kanji-bg.png');
    background-repeat: no-repeat;
    
    /* FIX: Force image to scale to 100% of the container height */
    background-size: 100% 100%; 
    background-position: left top;
    
    opacity: 0.35; 
    filter: none;
    pointer-events: none;
    z-index: 0;
}

/* Maintain foreground content stacking */
.single-product-container {
    position: relative;
    max-width: 1280px;
    margin: 30px auto 80px;
    padding: 0 20px;
    z-index: 1; /* Sits cleanly on top of the background */
}