/* =========================================================
   NH Slider Root Isolation & Typography
========================================================= */
.nh-v95-root-wrapper {
    /* Resetting safely without breaking inherited font features */
    margin: 50px 0;
    width: 100%;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.nh-v95-root-wrapper * { 
    box-sizing: border-box; 
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* =========================================================
   App-Like Scroller Track
========================================================= */
.nh-v95-scroller {
    width: 100%;
    overflow-x: auto;
    padding: 30px 20px 60px 20px; /* Extra bottom padding for hover shadows */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory; /* Native swipe snapping */
    -webkit-overflow-scrolling: touch;
}
.nh-v95-scroller::-webkit-scrollbar { display: none; }

.nh-v95-track {
    display: flex;
    gap: 28px;
    min-width: max-content;
}

/* =========================================================
   Premium Glassmorphism Card (Fixed Overflow)
========================================================= */
.nh-v95-card {
    flex: 0 0 280px;
    scroll-snap-align: center;
    height: 390px;
    border-radius: 24px;
    background: #ffffff;
    position: relative;
    display: flex;
    flex-direction: column; /* Image top par, text bottom me */
    padding: 0; /* Padding remove ki taaki image edges ko touch kare */
    overflow: hidden; /* Image ko card ke corners ke andar clip karega */
    text-decoration: none !important;
    cursor: pointer;
    border: 1px solid #f1f5f9;
    box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 25%, transparent);
}

.nh-v95-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px -10px color-mix(in srgb, var(--accent) 50%, transparent);
}

/* =========================================================
   Product Image Setup (For Solid Background Images)
========================================================= */
.nh-v95-img-box {
    position: relative; 
    width: 100%;
    height: 200px; /* Card ka top area cover karega */
    z-index: 1;
    background: #f8f9fa;
    overflow: hidden;
}

.nh-v95-img-box img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; /* Photo stretch nahi hogi, perfectly fit ho jayegi */
    transition: transform 0.5s ease;
}

.nh-v95-card:hover .nh-v95-img-box img { 
    transform: scale(1.08); /* Hover par smooth zoom effect */
}

/* =========================================================
   Badges & Ribbons (Fixed Overlap & Z-Index)
========================================================= */
.nh-v95-ribbon {
    position: absolute; 
    top: 15px; 
    right: 0; 
    background: linear-gradient(135deg, #ff4757, #ff6b81); 
    color: #fff;
    font-size: 11px; 
    font-weight: 800; 
    letter-spacing: 0.5px;
    padding: 6px 14px; 
    border-radius: 8px 0 0 8px; 
    z-index: 10; /* Image se upar */
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.3);
}
.nh-v95-ribbon::after { display: none; } /* Disabled 3D fold as it gets clipped by overflow: hidden */

.nh-v95-discount {
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: var(--accent); 
    color: #fff;
    font-size: 11px; 
    font-weight: 800; 
    padding: 6px 14px; 
    border-radius: 20px;
    z-index: 10; /* Image se upar */
    box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 40%, transparent);
}

/* =========================================================
   Card Content Structure (Adjusted Padding)
========================================================= */
.nh-v95-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* Bachi hui jagah fill karega */
    background: #ffffff;
    z-index: 5;
}

.nh-v95-rating { 
    color: #ffb800; 
    font-size: 14px; 
    margin-bottom: 8px; 
    display: flex;
    align-items: center;
}
.nh-v95-rating .val { 
    color: #64748b; 
    font-size: 12px; 
    font-weight: 600;
    margin-left: 6px; 
}

.nh-v95-price { 
    font-size: 34px; 
    font-weight: 800; 
    color: #0f172a; 
    margin: 0; 
    line-height: 1.1; 
    letter-spacing: -1px;
}

.nh-v95-urgency { 
    font-size: 12px; 
    font-weight: 700; 
    margin: 12px 0 15px 0; 
    text-transform: uppercase; 
    display: flex; 
    align-items: center; 
    gap: 6px; 
    letter-spacing: 0.5px;
}
.nh-v95-flash { 
    font-size: 10px;
    animation: nh-blink 1.5s ease-in-out infinite; 
}
@keyframes nh-blink { 
    0%, 100% { opacity: 1; transform: scale(1); } 
    50% { opacity: 0.4; transform: scale(0.8); } 
}

/* =========================================================
   Footer Metadata
========================================================= */
.nh-v95-footer {
    border-top: 1px dashed #cbd5e1; 
    padding-top: 15px; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
    font-size: 13px; 
    color: #64748b; 
    font-weight: 600;
}
.nh-v95-dot { 
    height: 8px; 
    width: 8px; 
    background: #10b981; 
    border-radius: 50%; 
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); 
}