/* =========================================
   PREMIUM 3D PRODUCT SLIDER
========================================= */

.prod-slider-wrapper {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    /* Added more padding so 3D scaled items don't get cut off at the top/bottom */
    padding: 25px 0; 
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff, #fcf4f3); /* E-KORS Light Theme */
    font-family: 'Poppins', sans-serif;
}

/* Premium Top & Bottom Accent Lines */
.prod-slider-wrapper::before,
.prod-slider-wrapper::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #8A3324, transparent); /* Fading red line */
}

.prod-slider-wrapper::before { top: 0; }
.prod-slider-wrapper::after { bottom: 0; }

/* Track */
.prod-slider-track {
    display: flex;
    gap: 25px;
    width: max-content;
    transform: translateX(0);
    align-items: center;
    padding: 0 20px; /* Safe area for first and last items */
    
    /* Required for 3D depth */
    perspective: 1000px; 
}

/* Individual Item Container */
.prod-slider-item {
    text-align: center;
    flex-shrink: 0;
    cursor: pointer;
}

/* 3D Circular Image Wrapper */
.prod-slider-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid #fff; /* Clean white border initially */
    background: #fff;
    margin: 0 auto;
    position: relative;
    
    /* 3D Shadows & Depth */
    box-shadow: 0 8px 15px rgba(0,0,0,0.1), inset 0 0 10px rgba(0,0,0,0.05);
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s, box-shadow 0.4s;
    
    /* Important for perfectly round images */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Make sure the image stays inside and doesn't break border-radius */
.prod-slider-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* HOVER: 3D Pop-out Effect */
.prod-slider-item:hover .prod-slider-circle {
    /* Lift up, scale, and rotate slightly for a 3D coin effect */
    transform: translateY(-8px) scale(1.15) rotateX(10deg) rotateY(-5deg);
    border-color: #8A3324; /* E-KORS Red Border */
    box-shadow: 0 20px 25px rgba(138, 51, 36, 0.25), 0 10px 10px rgba(0,0,0,0.1);
}

/* Glowing Aura on Hover (Behind the circle) */
.prod-slider-circle::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 transparent;
    top: 0;
    left: 0;
    z-index: -1;
    transition: box-shadow 0.4s ease;
}

.prod-slider-item:hover .prod-slider-circle::after {
    box-shadow: 0 0 25px rgba(138, 51, 36, 0.4); /* Red glow */
}

/* Product Name Text */
.prod-slider-name {
    margin-top: 12px;
    color: #444;
    font-weight: 600;
    text-align: center;
    font-size: clamp(10px, 1.2vw, 12px);
    width: 80px; /* Keep text contained */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s;
}

.prod-slider-item:hover .prod-slider-name {
    color: #8A3324;
}

/* Glassmorphism Navigation Buttons */
.prod-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(5px); /* Glass effect */
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #1a1a1a;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.prod-slider-btn:hover {
    background: #8A3324;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 5px 15px rgba(138, 51, 36, 0.3);
    border-color: #8A3324;
}

.prod-slider-left { left: 15px; }
.prod-slider-right { right: 15px; }

/* Responsive Adjustments */
@media (max-width: 768px) {
    .prod-slider-circle { width: 60px; height: 60px; }
    .prod-slider-track { gap: 15px; }
    .prod-slider-name { font-size: 11px; width: 70px; }
}
/* Remove the hard lines and add a very subtle shadow */
.prod-slider-wrapper::before,
.prod-slider-wrapper::after {
    content: none; /* Remove lines */
}

/* Apply inner shadow to the wrapper itself */
.prod-slider-wrapper {
    box-shadow: inset 0 10px 10px -10px rgba(0,0,0,0.05), /* Subtle top inner shadow */
                inset 0 -10px 10px -10px rgba(0,0,0,0.05); /* Subtle bottom inner shadow */
}

/* =========================================
   CLEAN BORDER + COLOR SPREADING EFFECT
========================================= */

/* 1. Base Circle Setup */
.prod-slider-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    
    /* पतला साफ़ बॉर्डर */
    border: 1px solid #ebd9d8; 
    
    background: #fff;
    margin: 0 auto;
    position: relative;
    overflow: hidden; 
    

    box-shadow: 0 4px 10px rgba(0,0,0,0.03); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

/* Image inside */
.prod-slider-circle img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.5s ease; 
}

/* =========================================
   HOVER EFFECTS
========================================= */

.prod-slider-item:hover .prod-slider-circle {

    transform: translateY(-8px); 
    
    border-color: #8A3324; 
    
    /* -------------------------------------
       COLOR SPREADING MAGIC (BOX-SHADOW)
    ---------------------------------------- */
    box-shadow: 0 15px 35px 8px rgba(138, 51, 36, 0.15); 
}

/* Inner Zoom Effect */
.prod-slider-item:hover .prod-slider-circle img {
    transform: scale(1.15); 
}

.prod-slider-circle::after {
    display: none; 
}
@media (max-width: 480px) {
    .prod-slider-circle { width: 50px; height: 50px; }
    .prod-slider-track { gap: 10px; }
    .prod-slider-name { font-size: 10px; width: 60px; }
    .prod-slider-btn { width: 32px; height: 32px; font-size: 12px; }
    .prod-slider-left { left: 5px; }
    .prod-slider-right { right: 5px; }
}
/* =========================================
   SUB-CATEGORY HOVER FLYOUT
   Rendered on <body> by js/slider.js because .prod-slider-wrapper
   has overflow:hidden and would clip it.
========================================= */

.prod-subcat-flyout {
    position: fixed;
    z-index: 9999;
    /* grow to fit the tile strip, then let the strip scroll */
    width: max-content;
    min-width: 132px;
    max-width: min(560px, 92vw);
    padding: 8px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e6e2e1;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16),
                0 2px 8px rgba(15, 23, 42, 0.06);
    font-family: 'Poppins', 'Segoe UI', Helvetica, Arial, sans-serif;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    pointer-events: none;
}

.prod-subcat-flyout.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.prod-subcat-head {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #8A3324;
    padding: 6px 10px 8px;
    border-bottom: 1px solid #f1ecea;
    margin-bottom: 6px;
}

.prod-subcat-grid {
    /* Each sub-category is a category-style tile (circle on top, name below);
       the tiles run horizontally instead of stacking. */
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    padding: 4px 2px 2px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.prod-subcat-grid::-webkit-scrollbar { height: 6px; }
.prod-subcat-grid::-webkit-scrollbar-thumb {
    background: #e2d9d6;
    border-radius: 6px;
}

.prod-subcat-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    width: 92px;
    padding: 8px 4px 10px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #33415a;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.prod-subcat-all {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #33415a;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

/* circular icon, same language as the category circles in the slider */
.prod-subcat-circle {
    flex-shrink: 0;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.prod-subcat-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prod-subcat-circle.is-empty {
    background: linear-gradient(145deg, #faf6f5, #f1ecea);
    border-color: #efe8e6;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.prod-subcat-circle.is-empty::before {
    content: "";
    width: 22px;
    height: 22px;
    border-radius: 5px;
    border: 2px dashed #d8cecb;
}

.prod-subcat-item:hover .prod-subcat-circle {
    transform: scale(1.07);
    border-color: #8A3324;
    box-shadow: 0 8px 20px rgba(138, 51, 36, 0.3);
}

.prod-subcat-label {
    display: block;
    width: 100%;
    line-height: 1.25;
    word-break: break-word;
    hyphens: auto;
}

/* product count sits on the circle, like a badge */
.prod-subcat-item em {
    position: absolute;
    top: 4px;
    right: 10px;
    font-style: normal;
    font-size: 10.5px;
    font-weight: 700;
    color: #fff;
    background: #8A3324;
    border: 2px solid #fff;
    border-radius: 20px;
    min-width: 20px;
    padding: 1px 5px;
    line-height: 1.35;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.18);
}

.prod-subcat-item:hover {
    background: #fdf5f4;
    color: #8A3324;
}

.prod-subcat-all {
    justify-content: center;
    margin-top: 4px;
    border-top: 1px solid #f1ecea;
    border-radius: 0 0 9px 9px;
    font-size: 12.5px;
    color: #8A3324;
}

.prod-subcat-all:hover {
    background: #fdf5f4;
}

.prod-subcat-item:focus-visible,
.prod-subcat-all:focus-visible {
    outline: 2px solid #8A3324;
    outline-offset: -2px;
}

/* small cue on circles that actually have sub-categories */
.prod-slider-item.has-subcats .prod-slider-circle {
    box-shadow: 0 0 0 2px rgba(138, 51, 36, 0.28);
}

@media (prefers-reduced-motion: reduce) {
    .prod-subcat-flyout { transition: none; }
}

/* Category with no image in the supplied image set: a plain circle, not a
   broken <img> and not a stand-in product photo. */
.prod-slider-circle.is-empty {
    background: linear-gradient(145deg, #faf6f5, #f1ecea);
    border-color: #efe8e6;
    box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.06);
}

.prod-slider-circle.is-empty::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    border: 2px dashed #d8cecb;
}
