/*
Theme Name: Nawang Langit Theme
Theme URI: https://balicabin.com
Author: Bali Cabin
Author URI: https://balicabin.com
Description: WordPress Elementor Theme for Nawang Langit.
Version: 1.0.0
Text Domain: nawanglangit
*/

/* ==========================================================================
   CSS Variables & Reset
   ========================================================================== */
:root {
    /* Colors */
    --clr-dark-bg: #2C2114;
    --clr-light-bg: #F3EAE1; /* Sedikit coklat yang mendekati putih (Warm Light Beige) */
    --clr-primary: #C19A6B; /* Copper/Tan */
    --clr-primary-hover: #A8835A;
    --clr-text-light: #F7F4EF;
    --clr-text-dark: #2C2114;
    --clr-text-muted: #6B6154;
    --clr-border: #E5E0D8;
    
    /* Typography */
    --ff-heading: 'Playfair Display', serif;
    --ff-body: 'Outfit', sans-serif;
    
    /* Transition */  
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--ff-body);
    color: var(--clr-text-dark);
    background-color: var(--clr-light-bg);
    line-height: 1.6;
    overflow-x: clip;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4, .logo span {
    font-family: var(--ff-heading);
    font-weight: 500;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    line-height: 1.2;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.tagline {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-primary);
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
}

.text-center { text-align: center; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    margin-bottom: 3rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--clr-primary);
    color: var(--clr-text-dark);
}

.btn-primary:hover {
    background-color: var(--clr-primary-hover);
}

.btn-secondary {
    background-color: transparent;
    color: var(--clr-text-light);
    border-color: rgba(255,255,255,0.2);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    border-color: var(--clr-text-light);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--clr-text-dark);
    color: var(--clr-text-dark);
}

.btn-outline:hover {
    background-color: var(--clr-text-dark);
    color: var(--clr-text-light);
}

.btn-full {
    width: 100%;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: var(--transition);
    background-color: transparent;
    color: var(--clr-text-light);
}

#navbar.scrolled {
    background-color: rgba(44, 33, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    color: var(--clr-primary);
}

.logo i {
    font-size: 2rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 300;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--clr-primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cart-icon {
    position: relative;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-icon .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--clr-primary);
    color: var(--clr-text-dark);
    font-size: 0.65rem;
    font-weight: 600;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    background-color: var(--clr-dark-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--clr-text-light);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 4rem;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
    overflow: hidden;
}

/* Optional: Add a subtle overlay so text remains readable even if the background changes */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(44, 33, 20, 0.9) 0%, rgba(44, 33, 20, 0.4) 50%, transparent 100%);
    pointer-events: none;
}

.hero-container {
    width: 100%;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 600px;
}

.hero-content p {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(247, 244, 239, 0.8);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 4rem;
}

.hero-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap; /* Ensure it wraps if screen is too small */
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-item i {
    font-size: 2rem;
    color: var(--clr-primary);
}

.feature-item div {
    display: flex;
    flex-direction: column;
}

.feature-item strong {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--clr-primary);
}

.feature-item span {
    font-size: 0.75rem;
    color: rgba(247, 244, 239, 0.6);
}

/* No hero-image needed anymore since it's a background */

/* Ensure all sections after hero slide over it */
.benefits, .products, .how-to-use, .testimonials, .footer {
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   Benefits Section
   ========================================================================== */
.benefits {
    padding: 6rem 0;
    background-color: var(--clr-light-bg);
}

.benefits-container {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.benefits-intro p {
    color: var(--clr-text-muted);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    text-align: center;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid var(--clr-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--clr-text-dark);
    font-size: 2rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-card:hover .icon-circle {
    transform: rotateY(360deg);
    background-color: var(--clr-primary);
    color: var(--clr-light-bg);
}

.benefit-card p {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products {
    padding: 6rem 0;
    background-color: #E6D8C8; /* Sedikit lebih gelap khusus bagian Our Products */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.product-card {
    background-color: var(--clr-light-bg);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.product-card:hover img {
    transform: scale(1.08);
}

.badge-bestseller {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--clr-primary);
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    z-index: 2;
}

.product-card .img-wrapper {
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.product-card img {
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Removes white background */
    padding: 1rem;
    transition: transform 0.5s ease;
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    font-family: var(--ff-body);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.product-info p {
    font-size: 0.85rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.5rem;
}

.product-info .price {
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    margin-top: auto; /* Pushes price and button to the bottom */
}

/* ==========================================================================
   How to Use Section
   ========================================================================== */
.how-to-use {
    padding: 6rem 0;
    background-color: var(--clr-light-bg);
}

.steps-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    text-align: center;
    position: relative;
    width: 250px;
}

.step-img {
    position: relative;
    width: 180px;
    height: 180px;
    margin: 0 auto 1.5rem;
}

.step-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.step-num {
    position: absolute;
    top: 0;
    left: 0;
    width: 35px;
    height: 35px;
    background-color: var(--clr-primary);
    color: var(--clr-text-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 600;
    z-index: 2;
}

.step p {
    font-size: 1rem;
    color: var(--clr-text-muted);
}

.step-connector {
    flex-grow: 1;
    height: 1px;
    border-bottom: 2px dashed var(--clr-border);
    margin-top: -60px; /* align with center of images */
    min-width: 50px;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */
.testimonials {
    padding: 6rem 0;
    background-color: var(--clr-light-bg);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background-color: #FFFFFF;
    padding: 2.5rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.stars {
    color: var(--clr-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}

.testimonial-card .quote {
    font-size: 1.05rem;
    font-style: italic;
    color: var(--clr-text-dark);
    margin-bottom: 1.5rem;
}

.testimonial-card .author {
    font-size: 0.9rem;
    color: var(--clr-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: var(--clr-dark-bg);
    color: var(--clr-text-light);
}

.footer-cta {
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 4rem 0;
}

.cta-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cta-features {
    display: flex;
    gap: 3rem;
}

.cta-feat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
}

.cta-feat i {
    font-size: 2rem;
    color: var(--clr-primary);
}

.cta-feat span {
    font-size: 0.85rem;
    color: rgba(247, 244, 239, 0.8);
}

.main-footer {
    padding: 4rem 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr 1fr;
    gap: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: rgba(247, 244, 239, 0.7);
    max-width: 300px;
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-col h4, .footer-social h4 {
    font-size: 0.85rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
}

.footer-col a {
    display: block;
    color: rgba(247, 244, 239, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-col a:hover {
    color: var(--clr-primary);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: rgba(247, 244, 239, 0.8);
}

.social-icons a:hover {
    background-color: var(--clr-primary);
    border-color: var(--clr-primary);
    color: var(--clr-text-dark);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(247, 244, 239, 0.5);
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-in {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        background-position: 70% center; /* Shift background so bottle is still visible */
    }
    
    .hero::before {
        background: linear-gradient(to bottom, rgba(44, 33, 20, 0.9) 0%, rgba(44, 33, 20, 0.7) 100%);
    }

    .hero-container {
        width: 100%;
        text-align: center;
        padding-top: 2rem;
    }
    
    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .hero-content p {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .benefits-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile behavior */
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid, .testimonial-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1.5rem;
        padding: 1rem 1rem 3rem 1rem; /* Padding for shadow and slide animation */
        margin: -1rem -1rem 1rem -1rem; /* Compensate padding */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    
    .product-grid::-webkit-scrollbar, .testimonial-grid::-webkit-scrollbar {
        display: none; /* Safari/Chrome */
    }
    
    .product-card, .testimonial-card {
        flex: 0 0 85%; /* Show 85% of card so user knows they can scroll */
        scroll-snap-align: center;
    }
    
    .steps-wrapper {
        flex-direction: column;
        gap: 3rem;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        border-bottom: none;
        border-right: 2px dashed var(--clr-border);
        margin: -20px 0;
    }
    
    .cta-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-links-group {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   About Page Styles
   ========================================================================== */
.about-hero {
    background-color: var(--clr-dark-bg);
    background-image: linear-gradient(to bottom, rgba(44, 33, 20, 0.7), rgba(44, 33, 20, 0.9)), var(--bg-image, none);
    background-size: cover;
    background-position: center;
    color: var(--clr-text-light);
    padding: 180px 0 100px;
    position: relative;
}

.about-hero h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
}

.our-story {
    padding: 6rem 0;
    background-color: var(--clr-light-bg);
}

.story-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: var(--clr-text-muted);
}

.story-image img {
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.core-values {
    padding: 6rem 0;
    background-color: #E6D8C8;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.value-card {
    background-color: var(--clr-light-bg);
    padding: 3rem 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.value-card i {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 1.5rem;
    display: block;
}

.value-card h3 {
    margin-bottom: 1rem;
}

.value-card p {
    font-size: 0.95rem;
    color: var(--clr-text-muted);
}

@media (max-width: 900px) {
    .story-container {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
}


/* ==========================================================================
   Loading Screen (Text Only)
   ========================================================================== */
#cloud-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--clr-dark-bg);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 1.5s ease-out, visibility 1.5s ease-out;
}

#cloud-loader.fade-out {
    opacity: 0;
    visibility: hidden;
}

.cloud-loader-brand {
    font-family: var(--ff-heading);
    color: var(--clr-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 600;
    z-index: 2;
    opacity: 0;
    animation: brandGlow 3s ease-in-out forwards;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
    letter-spacing: 2px;
}

@keyframes brandGlow {
    0% { opacity: 0; transform: scale(0.9); }
    15% { opacity: 1; transform: scale(1); filter: blur(0px); }
    85% { opacity: 1; transform: scale(1.08); filter: blur(0px); }
    100% { opacity: 0; transform: scale(1.1); filter: blur(10px); }
}

/* ==========================================================================
   About Page — Products Story Section
   ========================================================================== */
.products-story {
    padding: 6rem 0 8rem;
    background-color: #E6D8C8;
    position: relative;
    z-index: 10;
}

.about-products__subtitle {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    max-width: 650px;
    margin: 1rem auto 0;
    line-height: 1.7;
}

.products-story__list {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    margin-top: 4.5rem;
}

.product-story-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4.5rem;
    align-items: center;
}

.product-story-item--reverse {
    direction: rtl; /* reverse layout for desktop */
}

.product-story-item--reverse > * {
    direction: ltr; /* reset text direction for children */
}

.product-story-item__image {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.blob-svg {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1 / 1;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.12));
}

.blob-svg .blob-clip {
    transform-origin: center;
    transition: transform 0.4s ease-out;
}

.blob-svg:hover .blob-clip {
    transform: scale(1.12);
}

.blob-svg:hover .blob-text-content {
    fill: #C19A6B;
    mix-blend-mode: normal;
}

.blob-text-content {
    font: 700 6.5px/1.2 'Outfit', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    fill: #2C2114;
    mix-blend-mode: normal;
    transition: fill 0.5s ease, mix-blend-mode 0.5s ease;
}

.product-story-item__tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--clr-primary);
    margin-bottom: 1rem;
}

.product-story-item__content h3 {
    font-family: var(--ff-heading);
    font-size: 2.2rem;
    color: var(--clr-text-dark);
    margin-bottom: 1.25rem;
    line-height: 1.2;
}

.product-story-item__content p {
    font-size: 1.05rem;
    color: var(--clr-text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.product-story-item__quote {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, rgba(193, 154, 107, 0.1), rgba(193, 154, 107, 0.03));
    border-left: 3px solid var(--clr-primary);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1rem;
    color: var(--clr-text-dark);
    line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .product-story-item {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .product-story-item--reverse {
        direction: ltr; /* disable reverse on mobile */
    }
    
    .products-story__list {
        gap: 4.5rem;
    }
}
            /* Slider Container */
            .nl-ml-slider-container {
                position: relative;
                margin-top: 40px;
                width: 100%;
            }

            /* The Slider */
            .nl-ml-slider {
                display: flex;
                overflow-x: auto;
                scroll-snap-type: x mandatory;
                gap: 30px;
                padding-bottom: 20px; /* Space to hide scrollbar securely */
                scroll-behavior: smooth;
                cursor: grab; /* Desktop Mouse Drag Hint */
                
                /* Hide scrollbar */
                scrollbar-width: none; /* Firefox */
                -ms-overflow-style: none; /* IE/Edge */
            }
            .nl-ml-slider::-webkit-scrollbar {
                display: none; /* Chrome/Safari */
            }

            /* Active Dragging State */
            .nl-ml-slider.is-dragging-mode {
                cursor: grabbing;
                scroll-snap-type: none; /* Temporarily disable snap for fluid drag */
                scroll-behavior: auto; /* Disable smooth scroll animation when manually dragging */
            }
            .nl-ml-slider.is-dragging-mode .nl-ml-card {
                pointer-events: none; /* Prevents hovering/clicking while dragging */
            }

            /* Card Style inside Slider */
            .nl-ml-slider .nl-ml-card {
                flex: 0 0 calc(25% - 22.5px); /* 4 cards visible on desktop */
                scroll-snap-align: start;
                scroll-snap-stop: always; /* Force stop at each card, prevents skipping multiple items on hard swipe */
                display: flex;
                flex-direction: column;
                background: transparent;
                border: none;
            }

            .nl-ml-image-wrap {
                position: relative;
                background-color: #f5f5f5;
                border-radius: 4px;
                overflow: hidden;
                aspect-ratio: 4/5;
                margin-bottom: 15px;
            }
            
            .nl-ml-image-wrap img {
                width: 100%;
                height: 100%;
                object-fit: cover;
                mix-blend-mode: multiply;
                /* Note: JS disables native image dragging */
            }
            
            .nl-ml-badge {
                position: absolute;
                top: 10px;
                left: 10px;
                background-color: #000;
                color: #fff;
                font-size: 0.7rem;
                font-weight: 700;
                padding: 4px 8px;
                text-transform: uppercase;
                letter-spacing: 0.5px;
                z-index: 2;
            }

            /* Slider Arrows */
            .nl-ml-arrow {
                position: absolute;
                top: calc(50% - 60px); 
                transform: translateY(-50%);
                width: 44px;
                height: 44px;
                background-color: #fff;
                border: 1px solid #eee;
                border-radius: 50%;
                display: flex;
                align-items: center;
                justify-content: center;
                cursor: pointer;
                z-index: 10;
                box-shadow: 0 4px 15px rgba(0,0,0,0.1);
                transition: all 0.3s ease;
            }
            .nl-ml-arrow i {
                font-size: 1.2rem;
                color: #000;
                transition: color 0.3s;
            }
            .nl-ml-arrow:hover {
                background-color: #000;
                border-color: #000;
            }
            .nl-ml-arrow:hover i {
                color: #fff;
            }
            .nl-ml-prev { left: -22px; }
            .nl-ml-next { right: -22px; }

            .nl-ml-arrow.is-disabled {
                opacity: 0.3 !important;
                cursor: not-allowed;
            }
            .nl-ml-arrow.is-disabled:hover {
                background-color: #fff;
                border-color: #eee;
            }
            .nl-ml-arrow.is-disabled:hover i {
                color: #000;
            }

            /* Quick Buy Button (Expanding) */
            .quick-buy-btn {
                position: absolute;
                bottom: 12px;
                right: 12px;
                background-color: #000;
                color: #fff;
                height: 40px;
                border-radius: 20px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
                padding: 0;
                text-decoration: none;
                opacity: 0;
                transition: opacity 0.3s ease, width 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.3s;
                z-index: 10;
                width: 40px;
                overflow: hidden;
                white-space: nowrap;
                box-shadow: 0 4px 8px rgba(0,0,0,0.1);
            }
            .quick-buy-btn .icon-wrap {
                width: 40px;
                height: 40px;
                display: flex;
                align-items: center;
                justify-content: center;
                flex-shrink: 0;
            }
            .quick-buy-btn i {
                font-size: 1.2rem;
                color: #fff;
            }
            .quick-buy-text {
                font-size: 0.85rem;
                font-weight: 700;
                padding-right: 16px;
                color: #fff;
                opacity: 0;
                transition: opacity 0.2s ease;
            }

            /* Show button on card hover */
            .nl-ml-card:hover .quick-buy-btn {
                opacity: 1;
            }
            .quick-buy-btn:hover {
                width: 88px;
                background-color: #333;
                color: #fff;
            }
            .quick-buy-btn:hover .quick-buy-text {
                opacity: 1;
            }

            /* Product Info Text */
            .nl-ml-info {
                text-align: left;
                display: flex;
                flex-direction: column;
            }
            .nl-ml-info h3 {
                font-size: 1rem;
                font-weight: 600;
                color: #111;
                margin: 0 0 6px 0;
                line-height: 1.3;
            }
            .nl-ml-info p {
                font-size: 0.85rem;
                color: #666;
                margin: 0 0 10px 0;
                line-height: 1.5;
            }
            .nl-ml-price {
                font-size: 1rem;
                font-weight: 700;
                color: #000;
                margin-top: auto;
            }

            /* Desktop / Tablet Breakpoints */
            @media (max-width: 480px) {
                .nl-ml-slider .nl-ml-card {
                    flex: 0 0 calc(75% - 15px); /* 1 big card with strong peek of next card */
                }
            }
            
            /* Fix the 'blink' / abrupt disappearance when IntersectionObserver removes the visible class */
            /* Optimized for snappy, elegant performance without lag */
            .nl-ml-card.slide-up {
                will-change: transform, opacity;
                transition: opacity 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
                transition-delay: 0s !important; /* Remove delay on exit so it fades out smoothly instantly */
            }
            .nl-ml-card.slide-up.visible {
                transition: opacity 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
                transition-delay: calc(var(--delay, 0s) * 0.4) !important; /* Faster staggered entry */
            }
            
            /* Add smooth fade at the edges so items disappear smoothly (no sharp cuts) */
            @media (max-width: 768px) {
                .nl-ml-slider {
                    -webkit-mask-image: linear-gradient(to right, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%);
                    mask-image: linear-gradient(to right, transparent 0px, black 15px, black calc(100% - 15px), transparent 100%);
                }
            }

            @media (max-width: 1024px) {
                .nl-ml-slider .nl-ml-card {
                    flex: 0 0 calc(33.333% - 20px); /* 3 cards */
                }
                .nl-ml-prev { left: -15px; }
                .nl-ml-next { right: -15px; }
            }
            
            /* Mobile View - Matching live nawanglangit.com styles */
            @media (max-width: 768px) {
                .nl-ml-slider {
                    gap: 20px;
                    /* Add padding so center snapped cards don't touch edges */
                    padding-left: 20px;
                    padding-right: 20px;
                    /* Negative margins pull the scroll container wide into full bleed */
                    margin-left: -20px;
                    margin-right: -20px;
                }
                .nl-ml-slider .nl-ml-card {
                    /* Matches live site: 85% width and center snapping */
                    flex: 0 0 85%; 
                    scroll-snap-align: center;
                }
                
                /* Hide Desktop Arrows */
                .nl-ml-arrow {
                    display: none;
                }
                
                /* Keep Button Always Visible */
                .quick-buy-btn {
                    opacity: 1;
                    width: 36px;
                    height: 36px;
                    bottom: 8px;
                    right: 8px;
                }
                .quick-buy-btn .icon-wrap {
                    width: 36px;
                    height: 36px;
                }
                .quick-buy-btn:hover {
                    width: 80px;
                }
            }
