/* Birthday Celebration Section UI - Minimalist Perfect Match */

.birthday-celebration-section {
    padding: 40px 0 0;
    max-width: 1250px;
    margin: 0 auto;
    background: #fff;
}

.birthday-celebration-section h2 {
    font-family: Montserrat, serif !important;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 28px;
    font-weight: 400;
    line-height: 36px;
    color: #000;
    margin: 0;
    font-style: italic;
}

.birthday-slider-wrapper {
    position: relative;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 70px;
    /* Space for buttons outside slider */
}

.birthday-slider {
    display: flex;
    gap: 0px;
    overflow-x: auto;
    padding: 20px 70px 10px;
    scroll-behavior: auto;
    /* Changed to auto for ticker smoothness */
    -ms-overflow-style: none;
    scrollbar-width: none;
    justify-content: flex-start;
    /* Better for ticker */
}

.birthday-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.birthday-card {
    flex: 0 0 160px !important;
    min-width: 160px;
    text-align: center;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: transform 0.3s ease;
}

.birthday-card a {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: none !important;
    box-shadow: none !important;
}

.birth-img {
    width: 105px;
    height: 105px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 5px;
    /* Further reduced from 10px to 5px */
    background: transparent !important;
    transition: transform 0.3s ease;
}

.birth-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.birthday-card:hover .birth-img img {
    transform: scale(1.1);
}

.birth-text {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 50px;
    /* Space for stone name hover */
}

.birthday-card .month-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #232323;
    margin: 0;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: capitalize;
    position: relative;
}

/* Hover effect: Thin line below month */
.birthday-card .month-name::after {
    content: '';
    display: block;
    width: 20px;
    height: 1.5px;
    background: #232323;
    margin: 4px auto 0;
    /* Reduced from 6px to 4px */
    opacity: 0;
    transition: all 0.3s ease;
}

.birthday-card:hover .month-name::after {
    opacity: 1;
}

.birthday-card.is-current .month-name::after {
    background: #ff8383;
}

.birthday-card .stone-name {
    font-family: Montserrat, sans-serif;
    font-size: 11.5px;
    color: #9b9b9b;
    margin-top: 2px !important;
    /* Reduced from 8px to 2px */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s ease-in-out !important;
    transform: translateY(-5px);
    font-weight: normal;
}

/* Hover Action: Show Stone Name */
.birthday-card:hover .stone-name {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

/* Current Month Highlight */
.birthday-card.is-current .month-name {
    color: #ff8383;
}

/* Perfect Circular Navigation Arrows - Unique Classes */
.birth-arrow-prev,
.birth-arrow-next {
    position: absolute;
    top: 72px;
    /* Fixed vertical center with stones */
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    /* Higher z-index to stay on top */
    padding: 0;
    transition: all 0.2s ease;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
}

.birth-arrow-prev::before,
.birth-arrow-next::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-top: 1.5px solid #000;
    border-left: 1.5px solid #000;
}

.birth-arrow-prev {
    left: 15px !important;
}

.birth-arrow-next {
    right: 15px !important;
}

.birth-arrow-prev::before {
    transform: rotate(-45deg);
    margin-left: 3.5px;
}

.birth-arrow-next::before {
    transform: rotate(135deg);
    margin-right: 3.5px;
}

.birth-arrow-prev:hover,
.birth-arrow-next:hover {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Large Phones & Tablets (GRID VIEW 4 Per Row) */
@media (max-width: 900px) {
    .birthday-celebration-section {
        padding: 40px 0 20px;
    }

    .birthday-slider-wrapper {
        padding: 0 10px;
        max-width: 100%;
    }

    .birth-arrow-prev,
    .birth-arrow-next {
        display: none !important;
    }

    /* No arrows in grid */

    .birthday-slider {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 25px 0px !important;
        justify-content: center !important;
        overflow-x: hidden !important;
        padding: 25px 0 10px !important;
    }

    .birthday-card {
        flex: 0 0 25% !important;
        min-width: 80px !important;
        text-align: center;
    }

    .birth-img {
        width: 70px !important;
        height: 70px !important;
        margin-bottom: 10px !important;
    }

    .birthday-card .month-name {
        font-size: 11.5px !important;
    }

    .birth-text {
        min-height: 35px !important;
    }

    .birthday-card .stone-name {
        margin-top: 1px !important;
        font-size: 10px !important;
    }
}

/* Very Small Phones (2 Per Row if 4 is too cramped) */
@media (max-width: 375px) {
    .birthday-card {
        flex: 0 0 calc(50% - 10px) !important;
    }

    .birth-img {
        width: 85px !important;
        height: 85px !important;
    }
}

/* ============================================================
   PRODUCT SLIDER OVERRIDES (Single Product Page Sliders)
   Ensures .cj-product-card looks like a real card, not a stone circle.
   ============================================================ */

.Sparkle.section .birthday-slider {
    gap: 30px !important;
    padding-bottom: 30px !important;
}

/* Base Card Styling for Sliders */
.Sparkle.section .birthday-card.cj-product-card {
    flex: 0 0 280px !important;
    width: 280px !important;
    min-width: 280px !important;
    text-align: left !important;
}

.Sparkle.section .birthday-card.cj-product-card .cj-card__image-wrap {
    /* width: 100% !important; */
    height: auto !important;
    /* aspect-ratio: 1/1 !important; */
    border-radius: 0 !important;
    /* Kill circle from .birth-img */
}

.Sparkle.section .birthday-card.cj-product-card .cj-card__info {
    text-align: center !important;
    padding: 15px 10px !important;
}

.cj-card__title {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #111 !important;
    margin-bottom: 8px !important;
    text-transform: capitalize !important;
    font-weight: 500 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    min-height: 40px !important;
}

.cj-card__price {
    font-family: 'Montserrat', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #D51817 !important;
    /* All Active Prices Red */
}

.cj-card__price del {
    color: #888 !important;
    font-weight: 500 !important;
    font-size: 14px !important;
    margin-right: 8px !important;
    text-decoration: line-through !important;
}

.cj-card__price ins {
    text-decoration: none !important;
    color: #D51817 !important;
    /* Premium Sale Red */
    font-weight: 500 !important;
}

/* Sale Badge Premium Overlay */
.cj-card__image-wrap {
    position: relative !important;
    overflow: hidden !important;
}

.cj-card__sale-badge {
    position: absolute !important;
    top: 10px !important;
    left: 10px !important;
    background: #D51817 !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 3px 10px !important;
    border-radius: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    z-index: 5 !important;
    box-shadow: 0 2px 8px rgba(208, 19, 69, 0.3) !important;
}

/* Responsive Fix for Product Sliders */
@media (max-width: 900px) {

    /* Keep product sliders AS SLIDERS on mobile, don't wrap them into a grid */
    .Sparkle.section .birthday-slider {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 15px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
        scrollbar-width: none !important;
        padding-bottom: 0 !important;
    }

    .testimonial-card {
        padding: 0px 20px 0;
    }

    .Sparkle.section .birthday-slider::-webkit-scrollbar {
        display: none !important;
    }

    .Sparkle.section .birthday-card.cj-product-card {
        flex: 0 0 220px !important;
        width: 220px !important;
        min-width: 220px !important;
    }

    .Sparkle.section .birthday-slider-wrapper {
        padding: 0 !important;
        /* Let slider hit edges */
        max-width: 100% !important;
        margin: 0px 0 !important;
    }

    /* Ensure arrows are visible and properly positioned on mobile */
    .Sparkle.section .slider-arrow {
        display: flex !important;
        top: 45% !important;
        width: 34px !important;
        height: 34px !important;
    }

    .Sparkle.section .slider-arrow.prev {
        left: 5px !important;
    }

    .Sparkle.section .slider-arrow.next {
        right: 5px !important;
    }




}

@media (max-width: 480px) {
    .Sparkle.section .birthday-card.cj-product-card {
        flex: 0 0 calc((100% - 15px) / 2) !important;
        /* Precisely 2 cards with 1 gap */
        width: calc((100% - 15px) / 2) !important;
        min-width: calc((100% - 15px) / 2) !important;
        margin: 0 !important;
        scroll-snap-align: start !important;
    }

    .Sparkle.section .birthday-slider {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 15px !important;
    }
}