#hero-slider {
    margin-top: 20px;
}

#hero-slider .splide__slide {
    max-height: calc(calc((430px - 2 * 16px) * .83333) * 1.6);
    height: calc(calc((100vw - 2 * 16px) * .83333) * 1.6);
    min-height: calc(calc((320px - 2 * 16px) * .83333) * 1.6);
    border-radius: 13px !important;
}

@media (max-width: 600px) {
    /* First card - Cosmetics */ .card:nth-child(1) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs3.png');
        background-size: 125%;
        background-position: 100% 85%;
        background-repeat: no-repeat;
    }

    /* Second card - Machines */
    .card:nth-child(2) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs4.png');
        background-size: contain;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Third card - Skin Booster */
    .card:nth-child(3) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs5.png');
        background-size: 126%;
        background-position: 85% 75%;
        background-repeat: no-repeat;
    }

    /* Fourth card - Personal Care */
    .card:nth-child(4) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs6c.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Fifth card - Botulinum Toxin */
    .card:nth-child(5) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs7b.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Sixth card - Lipolytics */
    .card:nth-child(6) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs1.png');
        background-size: cover;
        background-position: 90% center;
        background-repeat: no-repeat;
    }

    /* Seventh card - Collagen Stimulator */
    .card:nth-child(7) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs2.png');
        background-size: cover;
        background-position: 90% center;
        background-repeat: no-repeat;
    }

    /* Eighth card - Fillers */
    .card:nth-child(8) .card-inner {
        background-image: url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/homepage-categories-thumbs8.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Hide all card images */
    .card .card-image {
        display: none;
    }
}

/* ========================================
   HERO SLIDER - COMPLETE CSS
   Cross-browser compatible with fallbacks
   ======================================== */
/* Container */
#hero-slider {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
}

/* Slide sizing */
#hero-slider .splide__slide {
    max-height: calc(calc((430px - 2 * 16px) * 0.83333) * 1.6);
    height: calc(calc((100vw - 2 * 16px) * 0.83333) * 1.6);
    min-height: calc(calc((320px - 2 * 16px) * 0.83333) * 1.6);
}

/* Base card styles */
.slide-card {
    position: relative;
    width: 100%;
    height: 100%;
    /* background: #056deb; */
    border-radius: 13px;
    -webkit-border-radius: 13px;
    -moz-border-radius: 13px;
    -ms-border-radius: 13px;
    -o-border-radius: 13px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-card--products {
    background-size: initial;
}

/* Content container */
.slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 16px;
    color: white;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    -moz-box-orient: vertical;
    -moz-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Typography */
.slide-content h2 {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 10px 0;
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    -moz-box-flex: 0;
    -ms-flex: 0 0 auto;
    flex: 0 0 auto;
}

.slide-content p {
    font-size: 14px;
    margin: 0 0 12px 0;
}

/* CTA Button */
.cta-button {
    display: inline-block;
    background: #ffa945;
    color: #0f1111;
    padding: 8px 16px;
    border-radius: 8px;
    -webkit-border-radius: 8px;
    -moz-border-radius: 8px;
    -ms-border-radius: 8px;
    -o-border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
    -webkit-transition: background 0.2s ease;
    -moz-transition: background 0.2s ease;
    -o-transition: background 0.2s ease;
    -ms-transition: background 0.2s ease;
    transition: background 0.2s ease;
}

.cta-button:hover {
    background: #ffa945;
    color: #000;
}

.cta-button a:hover {
    color: #000 !important;
}

.disclaimer {
    font-size: 10px;
    opacity: 0.9;
    margin-top: auto;
}

/* Product Grid */
.product-grid {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 6px 1fr;
    grid-template-columns: repeat(4, 1fr);
    -ms-grid-rows: 1fr 6px 1fr;
    grid-template-rows: repeat(1, 1fr);
    gap: 6px;
    grid-gap: 6px;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    -moz-box-flex: 1;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* IE11 Grid fallback */
.product-grid > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}

.product-grid > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}

.product-grid > *:nth-child(3) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}

.product-grid > *:nth-child(4) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}

/* Product Card */
.product-card {
    position: relative;
    background: white;
    border-radius: 6px;
    -webkit-border-radius: 6px;
    -moz-border-radius: 6px;
    -ms-border-radius: 6px;
    -o-border-radius: 6px;
    overflow: hidden;
    height: 100%;
    min-height: 0;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.product-card a {
    display: block;
    text-decoration: none;
    height: 100%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Product Image Container */
.product-image {
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 6px;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    -o-object-fit: contain;
    max-width: 100%;
    max-height: 100%;
}

/* Discount Badge */
.discount-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #cc0c39;
    color: white;
    padding: 3px 7px;
    border-radius: 3px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    -ms-border-radius: 3px;
    -o-border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    z-index: 1;
}

/* ========================================
   MOBILE RESPONSIVE (320px - 599px)
   ======================================== */
@media (max-width: 599px) {
    #hero-slider {
        padding: 0 12px;
    }

    .slide-content {
        padding: 12px;
    }

    .slide-content h2 {
        font-size: 30px;
        margin-bottom: 30px;
    }

    .product-grid {
        gap: 10px;
        grid-gap: 10px;
        -ms-grid-columns: 1fr 10px 1fr;
        -ms-grid-rows: 1fr 10px 1fr;
    }

    .product-image {
        padding: 5px;
    }

    .discount-badge {
        font-size: 13px;
        padding: 2px 5px;
        bottom: 4px;
        left: 4px;
    }

    .product-grid {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: 2fr 6px 1fr;
        grid-template-columns: repeat(2, 1fr);
        -ms-grid-rows: 2fr 6px 1fr;
        grid-template-rows: repeat(2, 2fr);
        gap: 6px;
        grid-gap: 6px;
        -webkit-box-flex: 1;
        -webkit-flex: 1 1 auto;
        -moz-box-flex: 1;
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        width: 100%;
        height: 100%;
        min-height: 0;
    }
}

/* ========================================
   TABLET (600px - 767px)
   ======================================== */
@media (min-width: 600px) and (max-width: 767px) {
    #hero-slider .splide__slide {
        max-height: 450px;
        height: calc((100vw - 32px) * 0.83333 * 1.6);
    }

    .slide-content {
        padding: 18px;
    }

    .slide-content h2 {
        font-size: 24px;
        margin-bottom: 12px;
    }

    .slide-content p {
        font-size: 15px;
    }

    .product-grid {
        gap: 7px;
        grid-gap: 7px;
        -ms-grid-columns: 1fr 7px 1fr;
        -ms-grid-rows: 1fr 7px 1fr;
    }

    .product-image {
        padding: 8px;
    }

    .discount-badge {
        font-size: 11px;
        padding: 4px 8px;
    }
}

/* ========================================
   DESKTOP (768px+)
   ======================================== */
@media (min-width: 768px) {
    #hero-slider {
        padding: 0;
    }

    #hero-slider .splide__slide {
        max-height: 520px;
        height: calc((780px - 32px) * 0.83333 * 1.6);
    }

    .slide-content {
        padding: 24px;
    }

    .slide-content h2 {
        font-size: 28px;
        margin-bottom: 14px;
    }

    .slide-content p {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    .product-grid {
        gap: 8px;
        grid-gap: 8px;
        -ms-grid-columns: 1fr 8px 1fr;
        -ms-grid-rows: 1fr 8px 1fr;
    }

    .product-image {
        padding: 10px;
    }

    .discount-badge {
        font-size: 12px;
        padding: 5px 9px;
        bottom: 8px;
        left: 8px;
    }

    .disclaimer {
        font-size: 11px;
    }
}

/* ========================================
   LARGE DESKTOP (1024px+)
   ======================================== */
@media (min-width: 1024px) {
    #hero-slider .splide__slide {
        max-height: 380px;
    }

    .slide-content h2 {
        font-size: 32px;
    }
}

/* ========================================
   BROWSER-SPECIFIC FALLBACKS
   ======================================== */
/* Flexbox fallback for older browsers */
@supports not (display: flex) {
    .slide-content {
        display: block;
    }

    .product-grid {
        display: block;
    }

    .product-card {
        float: left;
        width: 48%;
        margin-right: 2%;
        margin-bottom: 2%;
    }

    .product-card:nth-child(2n) {
        margin-right: 0;
    }
}

/* Grid fallback for IE10 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
    .product-grid {
        display: -ms-grid;
    }
}

/* Product Info Container */
.product-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 8px 8px 8px;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Product Price */
.product-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f1111;
    line-height: 1.2;
    margin-bottom: 3px;
}

/* Product Title */
.product-title {
    font-size: 11px;
    color: #565959;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    -o-text-overflow: ellipsis;
}

/* Update discount badge positioning */
.discount-badge {
    bottom: auto;
    top: 6px;
    left: 6px;
}

.slide-card.black-firday-banner {
    background: rgb(43, 43, 43) url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/22Untitled_design_2.png?v=1764008220') no-repeat !important;
}

.slide-card.coupons-banner {
    background: #056deb url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/333BDF-Slides-Updates-Graphics-_Desktop.png?v=1764012704') no-repeat !important;
    background-position: center bottom !important;
}

/* ========================================
   RESPONSIVE UPDATES
   ======================================== */
/* Mobile (320px - 599px) */
@media (max-width: 599px) {
    .product-info {
        padding: 5px 6px 6px 6px;
    }

    .product-price {
        font-size: 11px;
        margin-bottom: 2px;
    }

    .product-title {
        font-size: 9px;
    }

    .discount-badge {
        top: 4px;
        left: 4px;
    }
}

/* Tablet (600px - 767px) */
@media (min-width: 600px) and (max-width: 767px) {
    .product-info {
        padding: 6px 7px 7px 7px;
    }

    .product-price {
        font-size: 12px;
    }

    .product-title {
        font-size: 10px;
    }
}

/* Desktop (768px+) */
@media (min-width: 768px) {
    .product-info {
        padding: 8px 10px 10px 10px;
    }

    .product-price {
        font-size: 14px;
        margin-bottom: 4px;
    }

    .product-title {
        font-size: 12px;
    }

    .discount-badge {
        top: 8px;
        left: 8px;
    }
}

/* Large Desktop (1024px+) */
@media (min-width: 1024px) {
    .product-price {
        font-size: 15px;
    }

    .product-title {
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    .slide-card.black-firday-banner {
        background: rgb(43, 43, 43) url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/lookDIFF_380_x_530_px.png?v=1764010751') no-repeat !important;
        background-size: contain !important;
        background-position: bottom center !important;
    }

    .slide-card.coupons-banner {
        background: #056deb url('https://cdn.shopify.com/s/files/1/0617/7062/9377/files/mmmkBDF-Slides-Updates-Graphics-_Mobile.png?v=1764013656') no-repeat !important;
        background-size: contain !important;
        background-position: bottom center !important;
    }
}
