/* ================= PRODUCT DETAILS CONTENT WRAPPER ================= */

.product-details-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #ffffff;
}

/* --- BREADCRUMB --- */
.details-breadcrumb {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 40px;
    font-weight: 400;
}

.details-breadcrumb a {
    text-decoration: none;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.details-breadcrumb a:hover {
    color: #0f172a;
}

/* --- STRUCTURAL FLEX LAYOUT --- */
.main-product-layout{
    display:flex;
    gap:20px;
    align-items:flex-start;
    margin-top:20px;
}

/* --- DISPLAY SIDE (LEFT) --- */
.product-gallery-block{
  display: flex; 
  gap: 30px; 
  align-items: flex-start;
   flex: 1; 
   max-width: 820px;
}

/* 🟢 HERO WRAPPER - Force visible so the zoom box can overflow out to the right */
.hero-image-wrapper{
    position:relative;
    width:430px;
    height:50%;
    border-radius: 20px;
    display:flex;
    align-items:center;
    justify-content:center;
    overflow: visible ;
}

.hero-image-wrapper img{
    width:100%;
    height:100%;
    object-fit:contain;
    border-radius: 32px;
}



.no-image-fallback {
    color: #f6faff;
    font-size: 14px;
}

.badge-new {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #0f172a;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 4px;
    letter-spacing: 1px;
}

/* 🟢 WISHLIST TRIGGER */
.wishlist-trigger {
    position: absolute;
    top: 40px;
    right: 20px;
    width: 26px;
    height: 26px;
    border-radius: 100%;
    background: #ffffff;
    border-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    transition: all 0.2s ease;
    z-index: 5;
}

.wishlist-trigger:hover {
    color: #ef4444;
    transform: scale(1.05);
}

.thumbnail-strip {
    display: flex;
    flex-direction: column;
    padding: 12px;
    gap:15px;
    justify-content: flex-start;
}

.thumb-frame {
    width: 60px;
    height: 60px;
    border-radius: 50%; 
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.thumb-frame img {
    max-width: 80%;
    max-height: 80%;
    object-fit: contain;
}

.active-thumb, .thumb-frame:hover {
    border-color: #0f172a;
    box-shadow: 0 0 0 1px #0f172a;
}

/* --- SYSTEM INTERACTIVE SELECTIONS (RIGHT) --- */
.product-configurator-block{
    width:460px;
    padding-left:50px;
}

.item-title{
    font-size:22px;
    font-weight:700;
    line-height:1.1;
    margin-bottom:14px;
    color:#0f172a;
}

.item-tagline{
    font-size:13px;
    line-height:1.6;
    color:#252c36;
    margin-bottom:20px;
}

.pricing-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    margin: 12px 0;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: #111827; /* Dark modern gray/black */
    margin: 0;
}

.slashed-price {
    font-size: 14px;
    font-weight: 400;
    color: #9ca3af; /* Muted gray */
    text-decoration: line-through;
}

.discount-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #047857; /* Deep green text */
    background-color: #ecfdf5; /* Light green background */
    border-radius: 4px;
    letter-spacing: 0.025em;
}



.config-group {
    margin-bottom: 20px;
}

.config-label {
    display: block;
    font-size: 11px;
    color: #94a3b8;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.config-label strong {
    color: #0f172a;
}

/* Color Circles Layout */
.color-swatch-flex{
    display:flex;
    gap:14px;
    margin-top:12px;
}

.swatch-circle{
    width:18px;
    height:18px;
    border-radius:50%;
    border:2px solid #dbe2ea;
    cursor:pointer;
    transition:0.2s ease;
}

.active-swatch{
    outline:2px solid #0f172a;
    outline-offset:3px;
}


/* Container for the size layout options */
.size-chips-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-start;
}

/* Unified card block for each size + stock text */
.size-option-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Individual size button styling */
.size-chip {
    padding:3px 8px;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    border-radius: 22px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.size-chip:hover {
    border-color: #111827;
}

.size-chip.active-size {
    border-color: #111827;
    background-color: #111827;
    color: #ffffff;
}

.size-chip.out-of-stock {
    background-color: #f3f4f6;
    color: #9ca3af;
    border-color: #e5e7eb;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Stock status sub-label styling */
.stock-status {
    height: 18px; /* Fixed container height to avoid layout shift */
    margin-top: 4px;
}

.stock-status .low-stock {
    font-size: 0.75rem;
    font-weight: 700;
    color: #d97706; /* Amber tone for low stock */
}

.stock-status .sold-out {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444; /* Red tone for sold out */
}






/* Action Inputs Matrix */
.purchase-action-matrix{
    display:flex;
    gap:14px;
    margin-top:35px;
    align-items:center;
}

.quantity-stepper{
    display:flex;
    align-items:center;
    height:24px;
    border-radius:4px;
    overflow:hidden;
    background:#0f172a;
}

.quantity-stepper button {
    width: 12px;
    height: 14px;
    border: none;
    background: transparent;
    color: #ffffff;
    font-size: 8px;
    cursor: pointer;
}

.quantity-stepper input {
    width: 15px;
    height: 14px;
    border: none;
    background: transparent;
    text-align: center;
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
}

.btn-secondary-cart {
    height: 30px;
    width: 120px;
    background: #edd30d;
    color: #0e0e0e;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary-cart:hover {
    background: #fde047;
}

.btn-primary-buy {
    height: 30px;
    width: 120px;
    background: #f97316; 
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}

.btn-primary-buy:hover {
    background: #ea580c;
}

/* --- INFORMATION MATRIX BLOCK TAB SPECIFICATIONS --- */
.product-specs-tabs {
    margin-top: 50px;
}

.tabs-header-strip {
    display: flex;
    gap: 30px;
    border-bottom: 1px solid #e2e8f0;
    margin-bottom: 25px;
}

.tab-trigger {
    background: transparent;
    border: none;
    padding-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    cursor: pointer;
    position: relative;
}

.active-tab {
    color: #0f172a;
    font-weight: 600;
}

.active-tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #0f172a;
}

.specs-table {
    width: 100%;
    max-width: 500px;
    border-collapse: collapse;
}

.specs-table td {
    padding: 12px 0;
    font-size: 13px;
    border-bottom: 1px solid #f1f5f9;
}

.specs-table td:first-child {
    font-weight: 500;
    color: #0f172a;
    width: 35%;
}

.specs-table td:last-child {
    color: #64748b;
}


.related-products-section{
    margin-top:20px;
    background-color: #ffffff;
}

.related-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:30px;
}

.related-title{
    font-size:22px;
    font-weight:700;
    color:#0f172a;
    padding: 20px;
}

.view-all-related{
    text-decoration:none;
    color:#64748b;
    font-size:14px;
    margin-right: 30px;
    font-weight:600;
}

.related-products-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:24px;
    padding: 20px;
}

.related-product-card{
    background:#ffffff;
    border-radius:20px;
    overflow:hidden;
    text-decoration:none;
    border:1px solid #bbbdbe;
    transition:0.25s ease;
    display:flex;
    flex-direction:column;
    box-shadow:0 15px 30px rgba(15,23,42,0.08);
}

.related-product-card:hover{
    transform:translateY(-6px);
    box-shadow:0 15px 30px rgba(15,23,42,0.08);
}

.related-image-wrapper{
    position:relative;
    height:210px;
    background:#f8fafc;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:10px;
}

.related-image-wrapper img{
    width:100%;
    height:100%;
    object-fit:contain;
}

.related-no-image{
    color:#94a3b8;
    font-size:14px;
}

.related-discount-badge{
    position:absolute;
    top:16px;
    left:16px;
    background:#ef4444;
    color:#fff;
    padding:6px 12px;
    border-radius:20px;
    font-size:11px;
    font-weight:600;
    letter-spacing:0.5px;
}

.related-card-content{
    padding:10px;
}

.related-product-name{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
    margin-bottom:4px;
}

.related-product-description{
    font-size:10px;
    color:#64748b;
    line-height:1.5;
    margin-bottom:10px;
    display:-webkit-box;
    -webkit-line-clamp:2;
    -webkit-box-orient:vertical;
    overflow:hidden;
}

.related-price-row{
    display:flex;
    align-items:center;
    gap:10px;
}

.related-sale-price{
    font-size:14px;
    font-weight:700;
    color:#0f172a;
}

.related-original-price{
    font-size:15px;
    color:#94a3b8;
    text-decoration:line-through;
}

.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 18px;
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 99999;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #28a745;
}

.toast.error {
    background: #dc3545;
}

.toast.info {
    background: #007bff;
}

.zoom-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    padding: 24px;
    display: block;
}

/* ==========================================================================
   📦 DRIFT INTERNAL ENGINE STYLING RULES
   ========================================================================== */

.drift-zoom-pane,
.flipkart-zoom-pane .drift-zoom-pane {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
}

/* ==========================================================================
   🚀 SAFETY WRAPPER PATCH: PREVENTS CARD CUTTING OVERFLOWS
   ========================================================================== */

/* 1. Force the image template block cards to render child overlays outside bounds */

.image-zoom-container {
    position: relative !important;
    display: block !important;
    overflow: visible !important; /* 🛠️ ESSENTIAL: Keeps browser from hiding the zoom box */
    width: 100%;
    height: 100%;
}

.product-card {
    width: 400px;
    background: #ffffff;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* 🟢 Changed to flex-start to let info blocks push naturally */
    height: auto; /* Ensures cards in the same row always share identical bounding box heights */
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
    position: relative;
   
    box-sizing: border-box;
}

/* 2. Configure position attributes explicitly so it displays clearly on the right */
.flipkart-zoom-pane {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 106% !important; /* 🛠️ Positions panel perfectly to the right side of the main shoe frame */
    width: 560px !important;
    height: 560px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25) !important;
    z-index: 999999 !important; /* 🛠️ Forces it above your text context panels */
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none !important;
}

/* 3. Show pane smoothly only when your lens box tracks across the active workspace */
.image-zoom-container:hover .flipkart-zoom-pane {
    opacity: 1 !important;
}

/* 4. Style the tracking glass lens indicator block on the shoe thumbnail */
.drift-bounding-box {
    background-color: rgba(187, 192, 203, 0.25) !important; 
    border: 1px dashed #a6a6a6 !important;
    cursor: zoom-in !important;
    z-index: 99 !important;
}



   
    .custom-zoom-modal.show {
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 1;
    }
    .modal-image-wrapper {
        position: relative;
        max-width: 100%;
        max-height: 100%;
        overflow: hidden;
        border-radius: 12px;
        box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    }
    .custom-zoom-content {
        display: block;
        max-width: 100%;
        max-height: 85vh;
        object-fit: contain;
        transform: scale(1);
        transition: transform 0.3s ease;
        cursor: zoom-in;
    }
    /* Click image to toggle direct high-definition zoom scale inside modal */
    .custom-zoom-content.zoomed {
        transform: scale(1.8);
        cursor: zoom-out;
    }
    .custom-zoom-close {
        position: absolute;
        top: 20px;
        right: 35px;
        color: #f1f1f1;
        font-size: 40px;
        font-weight: bold;
        transition: 0.2s;
        cursor: pointer;
        z-index: 100000;
    }
    .custom-zoom-close:hover {
        color: #ef4444;
        transform: scale(1.1);
    }



/* Container for the status text */
.stock-status {
    min-height: 20px;
    
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Base style for the small text */
.stock-status small {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Low Stock (Warning - Soft Amber/Orange) */
.stock-status .low-stock {
    color: #ffa200;
    background-color: #ffe680;
    
}

/* Sold Out (Subtle Muted Grey/Red) */
.stock-status .sold-out {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.stock-status .low-stock {
    animation: pulse 2s infinite;
}

.pagination-container .next {
    width: 25px;       
    height: 25px;
    border-radius: 50%; 
    background-color: #000000;
    color: #ffffff;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.2s ease;
}



/* Container must be position: relative for this to work */
.wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #fff;
    
    display: flex;
    justify-content: center;
    align-items: center;
    
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
    z-index: 10;
}

/* Icon Styles */
.wishlist-btn i {
    font-size: 20px;
    color: #666;
    transition: all 0.3s ease;
}

/* Hover Effect */
.wishlist-btn:hover {
    transform: translateY(-2px);
    background: #fff;
}

.wishlist-btn:hover i {
    color: #ff3b5f;
}

/* Active (Wishlisted) State */
.wishlist-btn.active i {
    color: #ff2d55;
    font-weight: 900; /* Makes the solid heart look bolder */
}


/* --- TABLET & BELOW (1024px and down) --- */
@media (max-width: 991px) {
    .product-details-container{
        font-size: 10px;
    }

    .product-details-container {
        padding: 24px 20px;
        max-width: 100%;
    }

    .main-product-layout {
        align-items: left;
        gap: 30px;
    }

    .product-gallery-block {
        flex-direction: column-reverse; /* Thumbnails move beneath the main hero image */
        align-items: left;
        gap: 16px;
        max-width: 100%;
        width: 100%;
    }

    .thumbnail-strip {
        flex-direction: row; /* Horizontal scrollable strip for thumbnails */
        overflow-x: auto;
        width: 100%;
        max-width: 450px;
        padding: 8px 4px;
        gap: 12px;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .thumb-frame {
        flex-shrink: 0;
        scroll-snap-align: start;
        width: 60px;
        height: 60px;
    }

    .hero-image-wrapper {
        width: 100%;
        max-width: 400px;
        height: 360px;
        border-radius: 16px;
        overflow: visible; /* Keeps desktop zoom pane working */
    }

    .product-configurator-block {
        width: 100%;
        max-width: 100%;
        padding-left: 0;
        margin-top: 10px;
    }

    .related-products-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important; /* Forces exactly 2 columns */
        gap: 20px;
        padding: 20px;
    }
}

/* --- ULTRA SMALL DEVICES (480px and down) --- */
@media (max-width: 480px) {
    .product-details-container {
        padding: 22px;
        width: 100%;
        overflow-x: hidden;
    }

    /* Force the main layout to stack safely and cleanly */
    .main-product-layout {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 20px;
    }

    .product-gallery-block {
        width: 100% !important;
        align-items: center !important;
    }

    .hero-image-wrapper {
        width: 100% !important;
        height: 260px !important;
    }

    /* Force product configurator content to take full width and align left properly */
    .product-configurator-block {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        margin-top: 0 !important;
    }

    /* Fix size chips layout so they don't clip on tiny screens */
    .size-chips-grid {
        gap: 8px;
    }

    /* Stack purchase action buttons neatly if space gets too tight */
    .purchase-action-matrix {
        flex-direction: row;
        gap: 6px;
        width: 100%;
    }

    .btn-secondary-cart, 
    .btn-primary-buy {
        font-size: 9px;
        padding: 0 4px;
        height: 32px;
    }

    .related-products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
        padding: 10px 0;
    }
}