﻿
:root {
    --primary: #5D1143;
    --deep: #902167;
    --soft: #D190B9;
    --cream: #EEE2DA;
    --dark: #1F3747;
    --gray: #8DA5B5;
    --light-bg: #FDF9F7;
    --card-glass: rgba(255, 255, 255, 0.85);
    --border: rgba(93,17,67,0.12);
    --shadow-soft: 0 15px 35px rgba(93,17,67,0.15);
    --shadow-deep: 0 25px 60px rgba(93,17,67,0.25);
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--deep));
    --gradient-accent: linear-gradient(135deg, var(--soft), var(--primary));
}


.image-grid {
    max-width: max-content;
    margin: auto;
    margin-bottom: 10% !important;
}

.btn-book {
    font-size: 10px !important;
    color: var(--primary) !important;
    border: 1px solid var(--primary) !important;
    background: var(--cream);
    transition: all 0.3s ease;
    border-radius: 20px;
    padding: 4px 12px;
}

    .btn-book:hover {
        background: var(--primary) !important;
        color: white !important;
        box-shadow: var(--shadow-soft);
    }

.customization-modal {
    width: 35vw;
}

#rightDetailsPanel a[href^="tel"] {
    position: relative;
    z-index: 1500; /* higher than canvas */
}

@media (max-width:1700px) and (min-width:1200px) {
    .col-xl-9 {
        width: 66.66%;
    }

    .col-xl-3 {
        width: 33%;
    }
}

.tab-btn:hover {
    color: var(--gradient-accent) !important;
    background: white;
}

.single-image-hover-zoom {
    position: relative;
    cursor: crosshair;
}

.single-zoom-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.single-zoom-preview {
    position: fixed;
    right: 0 !important;
    margin-top: 20%;
    top: auto;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
    background-repeat: no-repeat;
    background-size: 300%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.9);
    z-index: 1000;
    display: none;
    overflow: hidden;
    pointer-events: none;
}

.single-image-hover-zoom:hover .single-zoom-preview {
    display: block;
}

.single-zoom-source {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.single-zoom-lens {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.2);
    pointer-events: none;
    display: none;
    z-index: 100;
}

.single-image-hover-zoom:hover .single-zoom-lens {
    display: block;
}

.double-image-zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.double-image-zoomed {
    cursor: move;
    transform: scale(2.5);
    transform-origin: center center;
    position: relative;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.zoom-magnifier {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    display: none;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

    .zoom-magnifier img {
        position: absolute;
        width: 375px;
        height: 375px;
        object-fit: contain;
        transform-origin: 0 0;
    }

.pan-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 101;
    display: none;
    pointer-events: none;
}

.double-image-zoomed + .pan-indicator {
    display: block;
}

/* Common styles */
.image-grid-section {
    position: relative;
    overflow: hidden;
}

.cursor-zoom {
    cursor: zoom-in;
}

.cursor-zoom-out {
    cursor: zoom-out;
}

.shadow-soft {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.rounded-3 {
    border-radius: 12px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .single-zoom-preview {
        display: none !important;
    }

    .single-image-hover-zoom:hover .single-zoom-lens {
        display: none;
    }

    .double-image-zoom-container {
        cursor: pointer;
    }
}

/* Fix for image scaling */
.image-grid .col-12 img,
.image-grid .col-6 img {
    width: 100% !important;
    height: auto !important;
    max-height: 100vh !important;
    object-fit: contain !important;
}

/* Prevent zoomed image from overflowing */
.double-image-zoom-container.zoomed {
    overflow: visible;
}
.image-grid img {
    max-width: 100% !important; /* allow image to shrink if needed */
    max-height: 100vh !important; /* keep height within container */
    width: auto !important; /* no forced stretching */
    height: 100vh !important; /* keep aspect ratio */
    object-fit: contain !important; /* ensure image is not cropped */
    display: block !important;
    margin: 0 auto !important; /* center horizontally */
}

.image-grid .col-12,
.image-grid .col-6 {
    display: flex !important;
    justify-content: center !important;
    max-height: 100vh !important;
    align-items: center !important; /* vertical centering */
    overflow: hidden !important; /* hide overflow if any */
    /*height: 100vh !important;*/ /* container adjusts to image height */
}

.rightbg {
    background: #f9f9f9;
}

.marginend {
    margin-bottom: 100px !important;
}
.option-group {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 11px;
    overflow: hidden;
    background: var(--cream);
}

.custom-option {
    padding: 3px 16px;
    font-size: 0.9rem;
    color: var(--dark);
    border-right: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.25s ease;
    white-space: nowrap;
}

    .custom-option:last-child {
        border-right: none;
    }

    .custom-option:hover {
        background: rgba(0, 0, 0, 0.04);
    }

    .custom-option[data-enabled="False"] {
        opacity: 0.5;
        cursor: default;
    }

/* Customize Button */
.customize-btn {
    border-radius: 0px !important;
    background: var(--gradient-accent);
    color: white;
    border: none;
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .customize-btn:hover {
        /*            transform: translateY(-1px);*/
        box-shadow: var(--shadow-strong);
        color: white;
    }


:root {
    --primary: #5D1143;
}

.trust-slider-wrapper {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    /*                                            padding: 35px 20px;*/
    border-radius: 20px;
    /*                                            margin: 50px auto;*/
    max-width: 1400px;
    overflow: hidden;
}

.trust-item {
    position: relative;
    text-align: center;
    padding: 15px 5px;
    outline: none !important;
}

    .trust-item::after {
        content: "";
        position: absolute;
        right: 0;
        top: 25px; /* top margin */
        bottom: 55px; /* bottom margin */
        width: 1px;
        background: rgba(93,17,67,0.2);
    }



.circle-icon {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f3f6, #f0e6f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.9rem;
    color: var(--primary);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1);
}

.circle-img {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    font-size: 1.9rem;
}

.trust-item .title {
    font-size: 0.70rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.3;
}

/* Dots */
.trust-slider .slick-dots li button:before {
    font-size: 11px;
    color: #d4a8d4;
    opacity: 0.6;
}

.trust-slider .slick-dots li.slick-active button:before {
    color: var(--primary);
    opacity: 1;
}

/* Hide arrows */
.trust-slider .slick-prev,
.trust-slider .slick-next {
    display: none !important;
}

/* Responsive border fix */
@media (max-width: 992px) {
    .trust-item:nth-child(4n) {
        border-right: 1px solid rgba(93,17,67,0.2);
    }

    .trust-item:nth-child(3n) {
        border-right: none;
    }
}

@media (max-width: 768px) {
    .trust-item:nth-child(3n) {
        border-right: 1px solid rgba(93,17,67,0.2);
    }

    .trust-item:nth-child(2n) {
        border-right: none;
    }
}
/* Icon inside input */
.pincode-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--soft);
    pointer-events: none;
}
/* Input with left padding for icon */
.pincode-input {
    padding-left: 42px !important;
}
/* Container */
.delivery-plan-section-premium {
    background: var(--card-glass);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: 16px;
}
/* Title */
.premium-title {
    color: var(--primary);
    font-weight: 700;
    letter-spacing: .5px;
}

.pincode-input {
    padding-right: 45px !important;
    border: 1px solid var(--border);
    background: var(--cream);
    font-size: 12px !important;
    color: var(--dark);
    font-weight: 500;
    transition: .2s;
}

    .pincode-input:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 3px rgba(93, 17, 67, 0.15);
    }
/* Locate Me Button inside input */
.pincode-locate-btn {
    position: absolute;
    right: 9px;
    top: 48%;
    transform: translateY(-50%);
    border: none;
    color: white;
    width: 63px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s;
    font-size: 12px !important;
}

    .pincode-locate-btn:hover {
        transform: translateY(-50%) scale(1.05);
        box-shadow: var(--shadow-soft);
    }
/* Alert */
.premium-alert {
    background: var(--gradient-accent);
    border-left: 4px solid var(--soft);
    border-radius: 8px;
    color: white;
}
/* Muted text */
.premium-muted {
    color: var(--gray);
}
/* Main CTA */
.premium-primary-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    transition: .2s;
    border-radius: 20px;
}

    .premium-primary-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-deep);
    }

.premium-secondary-btn {
    background: var(--soft);
    color: white;
    border: none;
    font-size: 12px;
    transition: .2s;
    padding: 8px !important;
    border-radius: 20px;
}

    .premium-secondary-btn:hover {
        transform: translateY(-2px);
        color: white;
        box-shadow: var(--shadow-soft);
        background-color: var(--primary-dark);
    }

.gemstone-row {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
    gap: 8px;
}

.gemstone-label {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gemstone-name {
    font-size: 0.85rem;
    color: var(--gray);
}

.gemstone-weight {
    font-weight: 600;
    color: var(--primary);
    font-size: 0.9rem;
}

.gemstone-actions {
    grid-column: span 3;
    text-align: end;
}

.see-more-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary);
    text-decoration: underline;
    font-size: 0.65rem;
    cursor: pointer;
}

.description-items {
    display: none; /* toggle via JS */
    grid-column: span 3;
}

:root {
    --gold: #c9a96e;
    --gold-dark: #b89b5e;
    --gray-light: #f8f9fa;
    --border-color: var(--border);
}

.professional-tabs {
    position: relative;
    /*                                        border-bottom: 1px solid var(--border-color);*/
    /*                                        gap: 4rem;*/
}

    .professional-tabs .nav-link {
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--dark);
        padding: 1rem 0;
        border: none;
        background: transparent;
        position: relative;
        transition: color 0.3s ease;
    }

        .professional-tabs .nav-link:hover {
            color: var(--soft);
        }

        .professional-tabs .nav-link.active {
            color: var(--primary);
            font-weight: 700;
        }
/* Animated Underline */
.tab-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-accent);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}
/* Position underline based on active tab */
#professionalDetailTabs .nav-item:nth-child(1) .nav-link.active ~ .tab-underline,
#professionalDetailTabs .nav-item:nth-child(1) .nav-link.active + .tab-underline {
    left: 50%;
    transform: translateX(-150%);
    width: 120px;
}

#professionalDetailTabs .nav-item:nth-child(2) .nav-link.active ~ .tab-underline,
#professionalDetailTabs .nav-item:nth-child(2) .nav-link.active + .tab-underline {
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
}

.tab-section-title {
    font-size: 1rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 12px;
}

    .tab-section-title::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: var(--gradient-accent);
        border-radius: 2px;
    }

.spec-table .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
}

.spec-label {
    color: var(--gray);
}

.spec-value {
    font-weight: 600;
    color: var(--primary);
}

.gem-type {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--soft);
    text-transform: uppercase;
}

.gem-detail {
    font-size: 1.1rem;
    margin: 6px 0;
}

.gem-weight {
    font-size: 0.95rem;
}

.price-card {
    background: var(--card-glass);
    border-color: var(--border) !important;
}

.price-list .price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    font-size: 0.8rem;
    border-bottom: 1px dashed #eee;
}

    .price-list .price-row:last-child {
        border-bottom: none;
    }

.price-list .total-row {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--soft);
    font-size: 0.8rem;
}

.text-gold {
    color: var(--soft) !important;
}

@media (max-width: 768px) {
    .professional-tabs {
        gap: 2rem;
    }

        .professional-tabs .nav-link {
            font-size: 0.6rem;
        }

    .tab-underline {
        height: 2.5px;
    }
}

.gemstone-grid {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
}

.gemstone-row {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr 1fr;
    align-items: center;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
    font-size: 0.8rem;
}

    .gemstone-row:last-child {
        border-bottom: none;
    }

    .gemstone-row:hover {
        background: rgba(209,144,185,0.05);
    }

.gemstone-label {
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
}

.gemstone-icon {
    font-size: 1.1em;
    opacity: 0.8;
}

.gemstone-purity {
    color: var(--gray);
}

.gemstone-weight {
    color: var(--primary);
}
/* Gold weight in gold color */
.gemstone-row:first-child .gemstone-weight {
    color: var(--soft);
    font-weight: 700;
}

.text-gold {
    color: var(--soft) !important;
}

@media (max-width: 768px) {
    .gemstone-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.5rem;
        padding: 1rem;
    }

    .gemstone-purity,
    .gemstone-weight {
        text-align: center !important;
    }
}

/*                                    .swiper-button-next-similar,
                                        .swiper-button-prev-similar {
                                            display: none !important;
                                        }*/

.similar-scrollbar {
    height: 7px !important;
    background: #eee;
    margin-top: 10px;
    border-radius: 10px;
}

.similar-scrollbar .swiper-scrollbar-drag {
    background: var(--primary);
    border-radius: 10px;
}

.recent-scrollbar {
    height: 7px !important;
    background: #eee;
    margin-top: 10px;
    border-radius: 10px;
}

    .recent-scrollbar .swiper-scrollbar-drag {
        background: var(--primary);
        border-radius: 10px;
    }

.mb-5rem {
    margin-bottom: 5rem !important;
}

.slick-arrow-custom {
    display: none;
}

.slick-arrow-custom:hover {
    background: var(--gradient-primary);
    transform: translateY(-50%) scale(1.1);
}

.slick-prev-custom {
    display: none;
}

.slick-next-custom {
    display: none;
}
/* Hide default Slick arrows & dots */
.slick-dots {
    display: none !important;
}

.slick-prev, .slick-next {
    display: none !important;
}


@media (max-width: 768px) {
    .slick-arrow-custom {
        display: none;
    }

    .slick-prev-custom {
        display: none;
    }

    .slick-next-custom {
        display: none;
    }
}


/* Mobile Image Styles */
.mobile-product-image {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
}

.mobile-carousel {
    border-radius: 20px !important;
    overflow: hidden !important;
}

.mobile-rating-overlay {
    backdrop-filter: blur(10px) !important;
    opacity: 0.95 !important;
}

.mobile-carousel-control {
    filter: invert(1);
    width: 40px !important;
    opacity: 0.7 !important;
}
/* Ensure overlay is visible on all slides */
.carousel-item {
    position: relative !important;
}

.mobile-trust-wrapper {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    overflow: hidden;
}

.trust-slider-mobile {
    display: block !important;
}

    .trust-slider-mobile .slick-track {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
    }

.trust-item-mobile {
    position: relative;
    text-align: center;
    padding: 15px 8px;
    min-width: 85px !important;
    flex: 0 0 auto !important;
    height: auto !important;
}

.circle-icon-mobile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f3f6, #f0e6f0);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 1.3rem;
    color: var(--primary);
    box-shadow: inset 0 4px 12px rgba(0,0,0,0.1);
}

.title-mobile {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
}

@media (max-width: 767.98px) {
    .slick-slide {
        height: auto !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        flex-direction: column;
    }

    .trust-item-mobile {
        min-width: 85px !important;
        padding: 12px 5px !important;
    }

    .circle-icon-mobile {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }

    .title-mobile {
        font-size: 0.65rem !important;
    }

    .slick-dotted.slick-slider {
        margin-bottom: 0px !important;
    }
}

.pincode-icon-mobile {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--soft);
    pointer-events: none;
    z-index: 1;
}

.pincode-input-mobile {
    padding-left: 40px !important;
    font-size: 0.95rem;
}

    .pincode-input-mobile:focus {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(93, 17, 67, 0.1);
    }

.premium-alert-mobile {
    background: var(--gradient-accent) !important;
    border-left: 3px solid var(--soft);
    border-radius: 8px;
    color: white;
    padding: 12px;
    font-size: 0.9rem;
}

.premium-muted {
    color: var(--gray) !important;
    font-size: 0.85rem;
}

.premium-primary-btn {
    background: var(--gradient-primary) !important;
    color: white !important;
    border: none !important;
    transition: .2s !important;
    border-radius: 20px !important;
    font-weight: 600 !important;
}

    .premium-primary-btn:hover {
        transform: translateY(-1px);
        box-shadow: var(--shadow-soft);
    }

.mobile-delivery-section {
    border-left: 3px solid var(--primary);
    border-radius: 12px;
}

.mobile-delivery-title {
    font-size: 1rem !important;
    color: var(--primary-dark);
}

/* Optional: Add some responsive adjustments */
@media (max-width: 375px) {
    .professional-tabs .nav-link

{
    font-size: 0.85rem !important;
    padding: 8px 10px !important;
}

}

@media (min-width: 768px) {
    .professional-tabs .nav-link {
        font-size: 0.9rem !important;
        padding: 12px 20px !important;
    }
}

.mobile-similar-section {
    padding: 0;
}

.mobile-similar-header {
    padding: 0 12px;
}

.mobile-similar-title {
    font-size: 1.1rem !important;
}

.similar-swiper-mobile {
    padding: 0 12px !important;
    width: 100% !important;
}

.mobile-product-item {
    height: auto !important;
}

.mobile-product-image-wrapper {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.mobile-normal-image, .mobile-hover-image {
    border-radius: 12px !important;
}

.mobile-cart-icon, .mobile-video-icon {
    border-radius: 50%;
    padding: 2px;
}

.mobile-rating-badge {
    border-radius: 12px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.mobile-product-content {
    padding: 8px 4px !important;
}

.mobile-product-title {
    margin: 0 !important;
    line-height: 1.3 !important;
    font-size: 0.85rem !important;
}

.mobile-price-text {
    font-size: 0.8rem !important;
    margin: 0 !important;
}

.mobile-heart-icon {
    font-size: 1.1rem !important;
}

.swiper-button-next-mobile, .swiper-button-prev-mobile {
    color: var(--primary) !important;
    background: rgba(255,255,255,0.9) !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.swiper-button-next-mobile {
    right: 0 !important;
}

.swiper-button-prev-mobile {
    left: 0 !important;
}

/* Mobile Recently Viewed Styles */
.recent-product-section-mobile {
    backdrop-filter: blur(10px);
    border-radius: 16px;
}

.similarproduct-mobile {
    color: var(--primary, #5D1143);
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.product-item-mobile {
    background: white;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .product-item-mobile:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

.product-image-wrapper-mobile {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-cart-icon-mobile,
.btn-video-icon-mobile {
    border-radius: 50%;
    padding: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

    .btn-cart-icon-mobile:hover,
    .btn-video-icon-mobile:hover {
        background: var(--primary, #5D1143);
        transform: scale(1.1);
    }

        .btn-cart-icon-mobile:hover img,
        .btn-video-icon-mobile:hover img {
            filter: brightness(0) invert(1);
        }

.rating-badge-mobile {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    font-size: 0.8rem;
}

.product-title-mobile {
    color: var(--dark, #333);
    font-size: 0.95rem;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.price-mobile {
    color: var(--primary, #5D1143);
    font-size: 0.95rem;
}

.btn-wishlist-mobile {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

    .btn-wishlist-mobile:hover {
        transform: scale(1.2);
    }

/* Swiper Navigation for Mobile */
.recent-prev-mobile,
.recent-next-mobile {
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    top: 40%;
    transform: translateY(-50%);
}

    .recent-prev-mobile:after,
    .recent-next-mobile:after {
        display: none;
    }

    .recent-prev-mobile i,
    .recent-next-mobile i {
        font-size: 1.5rem;
        color: var(--primary, #5D1143);
    }

/* Swiper Pagination for Mobile */
.recent-pagination-mobile {
    position: relative;
    bottom: 0;
    margin-top: 16px;
}

    .recent-pagination-mobile .swiper-pagination-bullet {
        width: 8px;
        height: 8px;
        background: #ddd;
        opacity: 1;
    }

    .recent-pagination-mobile .swiper-pagination-bullet-active {
        background: var(--primary, #5D1143);
        width: 24px;
        border-radius: 4px;
    }

/* Responsive adjustments */
@media (max-width: 576px) {
    .recent-product-section-mobile {
        margin: 16px 8px;
        padding: 12px 0;
    }

    .similarproduct-mobile {
        font-size: 1.1rem;
    }

    .product-item-mobile {
        padding: 10px;
    }

    .recent-prev-mobile,
    .recent-next-mobile {
        display: none !important; /* Hide arrows on very small screens */
    }
}

.mobile-reviews-section {
    padding: 0;
}

.mobile-reviews-header {
    padding: 0 12px;
}

.mobile-reviews-title {
    font-size: 1.1rem !important;
}

.mobile-review-card {
    border-radius: 12px !important;
    box-shadow: var(--shadow-soft) !important;
}

.mobile-review-header {
    gap: 8px !important;
}

.mobile-review-author {
    font-size: 0.9rem !important;
}

.mobile-review-stars {
    font-size: 0.9rem !important;
    flex-shrink: 0;
}

.mobile-review-text {
    margin: 0 !important;
    font-size: 0.8rem !important;
}

.mobile-view-more-btn {
    border-radius: 20px !important;
    padding: 6px 16px !important;
}

/* Global Mobile Styles */
.mobile-stacked-layout-section {
    padding: 0 !important;
}

.mobile-section-fluid {
    padding: 0 12px !important;
    max-width: 100% !important;
}

.mobile-general-section, .mobile-product-details-section, .mobile-similar-section, .mobile-recent-section, .mobile-reviews-section {
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
}

.mobile-custom-section, .mobile-delivery-section, .mobile-video-section, .mobile-spec-table, .mobile-gem-grid, .mobile-price-card {
    width: 100% !important;
    margin: 12px 0 16px 0 !important;
    box-sizing: border-box !important;
}

.mobile-price-title, .mobile-details-title, .mobile-gem-title {
    font-size: 1.1rem !important;
    margin-bottom: 16px !important;
}

.mobile-product-name, .mobile-sku {
    font-size: 1rem !important;
    line-height: 1.3 !important;
    margin: 0 !important;
}

.mobile-actions {
    padding: 0 !important;
}

.mobile-wishlist, .mobile-share {
    font-size: 1.2rem !important;
}

.mobile-custom-title, .mobile-delivery-title, .mobile-video-title {
    font-size: 1rem !important;
    margin-bottom: 12px !important;
}

.mobile-video-desc {
    font-size: 0.8rem !important;
    margin-bottom: 16px !important;
}

.mobile-video-btn {
    font-size: 0.9rem !important;
}

.mobile-spec-subtitle {
    font-size: 1rem !important;
    margin-bottom: 16px !important;
}

.mobile-spec-row {
    font-size: 0.8rem !important;
    padding: 12px 0 !important;
}

.mobile-gem-row {
    display: flex;
    margin-bottom: 12px !important;
    padding: 16px !important;
    border-radius: 12px !important;
    flex-wrap: nowrap;
    justify-content: space-between;
}

.gemstone-purity-mobile {
    font-size: 0.8rem !important;
}

.mobile-gem-label {
    font-size: 0.8rem !important;
    margin: 0 !important;
}

.mobile-gem-weight {
    font-size: 0.8rem !important;
}

.mobile-total-row {
    padding: 16px 0 !important;
    text-align: center !important;
}

.mobile-total-label {
    font-size: 0.9rem !important;
}

.mobile-total-value {
    font-size: 1.3rem !important;
}

.price-row-mobile {
    font-size: 0.9rem !important;
    padding: 12px 0 !important;
}

.text-aspiri-mobile, .text-aspiri2-mobile {
    font-size: 0.85rem !important;
}
/* Ensure everything fits screen width */
@media (max-width: 767.98px) {
    .stickyrow {
        height: auto !important;
        position: relative !important;
    }

    .col-lg-9, .col-lg-3 {
        width: 100% !important;
        position: relative !important;
    }

    .details-scroll-container {
        height: auto !important;
        overflow: visible !important;
    }
    /* Hide desktop tabs slider on mobile, show stacked sections */
    .tabs-slider-desktop {
        display: none !important;
    }

    .section {
        display: block !important;
    }

    .mobile-product-image {
        height: 50vh !important;
        object-fit: cover !important;
    }

    .mobile-carousel-control {
        width: 40px !important;
        opacity: 0.7 !important;
    }

        .mobile-carousel-control::before {
            background: var(--primary) !important;
        }
    /* Prevent horizontal scroll */
    * {
        box-sizing: border-box !important;
    }

    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
        overflow-x: hidden !important;
    }
}
/* Fixed Bottom Bar (Shared for Mobile) */
.premium-fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--card-glass);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-deep);
    padding: 12px 0;
}

    .premium-fixed-bottom-bar .container-fluid {
        padding: 0 12px !important;
    }

    .premium-fixed-bottom-bar .d-flex {
        gap: 12px !important;
    }

    .premium-fixed-bottom-bar img {
        border-radius: 8px !important;
    }

    .premium-fixed-bottom-bar .product-title {
        font-size: 1.1rem !important;
        line-height: 1.2 !important;
    }

    .premium-fixed-bottom-bar .fw-semibold {
        font-size: 1.2rem !important;
    }

    .premium-fixed-bottom-bar .btn {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
    }

        .premium-fixed-bottom-bar .btn i {
            font-size: 1.1rem !important;
        }

.mobile-bottom-bar-left {
    gap: 12px !important;
}

.mobile-bottom-title {
    max-width: 150px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

.mobile-bottom-bar-right {
    gap: 8px !important;
}

.mobile-bottom-cart {
    min-width: 110px !important;
    font-size: 0.85rem !important;
}

@media (max-width:768px) {
    .premium-fixed-bottom-bar .btn {
        padding: 12px 24px !important;
        font-size: 0.9rem !important;
        border-radius: 20px !important;
        max-width: fit-content !important;
    }

    .swiper-slide {
        width: auto;
        max-width: max-content !important;
        margin-bottom: 40px;
    }
}

@media (max-width: 767.98px) {
    .stickyrow

{
    height: auto !important;
    position: relative !important;
}

.col-lg-9, .col-lg-3 {
    width: 100% !important;
    position: relative !important;
}

.details-scroll-container {
    height: auto !important;
    overflow: visible !important;
}
/* Hide desktop tabs slider on mobile, show stacked sections */
.tabs-slider {
    display: none !important;
}

.section {
    display: block !important;
}

}
:root {
    --primary: #902167;
    --primary-dark: #5D1143;
    --primary-light: #D190B9;
    --cream: #EEE2DA;
    --neutral-light: #F8F5F3;
    --border: #D190B9;
    --text-dark: #1E3747;
    --text-muted: #6F6F70;
    --accent-gray: #88A1AE;
    --deep-purple: #501F5D;
    --soft-purple: #96709D;
    --black: #0C0C0C;
}

.btn-video:hover {
    background: #d5e8cd !important;
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600&display=swap');

.customization-modal-content {
    background: white;
    border: 1px solid var(--border);
    /*        border-radius: 24px;*/
    max-height: 100vh;
    box-shadow: 0 20px 40px rgba(93, 17, 67, 0.12);
    /*                animation: slideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);*/
    backdrop-filter: blur(16px);
    font-family: 'Inter', sans-serif;
    overflow: hidden;
}

/* Header */
.customization-modal .modal-header {
    background: linear-gradient(135deg, #FDFBFA 0%, #EEE2DA 100%);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem 1.8rem;
}

.customization-modal h4 {
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.customization-modal .modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 4px;
}

/* Metal Card - Premium & Light */
.metal-card {
    cursor: pointer;
    background: #FFFFFF;
    border: 1.5px solid #e2d8df;
    border-radius: 18px;
    padding: 0.7rem;
    height: 100%;
    transition: all 0.35s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(209, 144, 185, 0.08);
}

    .metal-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(209,144,185,0.05) 0%, transparent 60%);
        opacity: 0;
        transition: opacity 0.3s;
        pointer-events: none;
    }

    .metal-card:hover {
/*        transform: translateY(-6px);*/
        box-shadow: 0 12px 28px rgba(93, 17, 67, 0.14);
        border-color: var(--primary-light);
    }

        .metal-card:hover::before {
            opacity: 1;
        }

    .metal-card.active-metal {
        background: linear-gradient(135deg, #902167 0%, #5D1143 100%);
        color: white !important;
        border-color: var(--primary);
        box-shadow: 0 10px 25px rgba(144, 33, 103, 0.3);
    }

        .metal-card.active-metal small,
        .metal-card.active-metal .fw-bold {
            color: rgba(255,255,255,0.9) !important;
        }

    .metal-card .fw-bold {
        font-size: 0.78rem;
        font-weight: 600;
        color: var(--primary-dark);
    }

    .metal-card small {
        font-size: 0.85rem;
        color: var(--text-muted);
        opacity: 0.9;
    }

.availability {
    font-size: 0.48rem;
    background: rgba(209, 144, 185, 0.15);
    color: var(--primary-dark);
    /*                padding: 4px 10px;*/
    border-radius: 20px;
    margin-top: 8px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.active-metal .availability {
    color: white;
}
/* Size & Clarity Buttons */
.option-btn {
    background: white;
    border: 1.5px solid #e8e0e5;
    color: var(--text-dark);
    border-radius: 18px;
    padding: 0.65rem 1.4rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    min-width: 70px;
}

    .option-btn:hover {
        border-color: var(--primary-light);
        background: #fdf8fb;
        color: var(--text-dark);
        transform: translateY(-2px);
    }

    .option-btn.active {
        background: linear-gradient(135deg, var(--primary) 0%, #6a1a50 100%);
        color: white;
        border: none;
        box-shadow: 0 6px 16px rgba(144, 33, 103, 0.3);
        font-weight: 600;
    }

/* Section Titles */
.customization-body h6 {
    color: var(--primary-dark);
    font-family: 'Playfair Display', serif;
    font-size: 0.8rem !important;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .customization-body h6 i {
        color: var(--primary-light);
        font-size: 1.4rem;
    }

/* Footer Button */
.apply-btn {
    background: linear-gradient(135deg, #902167 0%, #5D1143 70%);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 25px rgba(93, 17, 67, 0.25);
    transition: all 0.4s ease;
}

    .apply-btn:hover {
        background: linear-gradient(135deg, #501F5D 0%, #3a0f38 100%);
        transform: translateY(-3px);
        box-shadow: 0 15px 30px rgba(80, 31, 93, 0.35);
    }

/* Scrollable Body */
.customization-body {
    padding: 1.5rem 1.8rem;
    max-height: calc(95vh - 200px);
    overflow-y: auto;
}

/* Responsive Grid */
.metal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(83px, 1fr));
    gap: 1rem;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}
/* New Top Price Bar */
.price-header {
    background: white;
    color: var(--primary);
    padding: 1.5rem 1.8rem;
    text-align: left;
    position: relative;
}

.current-price {
    font-family: 'Playfair Display', serif;
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -1px;
    margin: 0;
}

.price-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 500;
}

.modal-header-subtitle {
    background: #FDFBFA;
    padding: 1rem 1.8rem 1.4rem;
    border-bottom: 1px solid var(--border);
}

    .modal-header-subtitle p {
        margin: 0;
        color: var(--text-muted);
        font-size: 0.98rem;
        text-align: center;
    }
/* Mobile Bottom Sheet Behavior */
@media (max-width: 768px) {
    .customization-modal {
        display: none;
    }

        .customization-modal.open {
            position: sticky;
            width: 100vw;
            inset: 0;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            z-index: 1055;
        }

    .customization-body {
        padding: 0px !important;
    }

    .customization-modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 0 0;
        animation: mobileSlideUp 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    }
    /* Override desktop animation only on mobile */
    @keyframes mobileSlideUp {
        from {
            transform: translateY(100%);
            opacity: 1;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }
}
/* Loading overlay for customization modal */
.customization-loading {
    position: relative;
    min-height: 200px;
}

    .customization-loading::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.8);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 1000;
        border-radius: 8px;
    }

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #5D1143;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
.bgfill {
    background: var(--gradient-primary) !important;
    color: white;
}

.size-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

    .size-header h6 {
        margin: 0;
    }

.size-guide {
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}


/* Diamond Guide Modal Styles */
.diamond-guide-modal {
    border-radius: 20px;
    border: 1px solid var(--border-light);
    box-shadow: 0 25px 100px rgba(93, 17, 67, 0.2);
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #7a1a5a 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: 'Playfair Display', serif;
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .close-btn:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: rotate(90deg);
    }

.modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

#diamondGuideModal .modal-content {
    text-align: left;
    height: 95vh;
    padding: 2px !important;
}

#diamondGuideModal .modal-body {
    height: 95vh !important;
    max-height: 95vh !important;
    margin-bottom: 40px !important;
}

#diamondGuideModal .modal {
    max-width: 900px !important;
    width: 900px !important;
    height: 100vh !important;
}

.guide-section {
    margin-bottom: 3rem;
    position: relative;
}

.diamond-underline {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 3px solid #d4af37;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

p {
    line-height: 1.6;
    margin-bottom: 1rem;
    color: #444;
    font-size: 15px;
}

strong {
    color: #2c3e50;
}

/* Tip Box */
.tip-box {
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 14px;
}

    .tip-box strong {
        color: #9c27b0;
    }

/* Milestone Graph Container */
.milestone-graph-section {
    margin: 1rem 0;
    position: relative;
}

.graph-title {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: left;
    font-weight: 600;
    position: relative;
}

/* Main Timeline Track */
.milestone-track {
    position: relative;
    height: 160px;
    margin: 1rem 0 4rem;
    width: 100%;
}

/* Base Timeline Line */
.milestone-line {
    position: absolute;
    top: 90px;
    left: 2%;
    right: 2%;
    width: 96%;
    height: 2px;
    background: linear-gradient(to right, #e0e0e0, #e0e0e0);
    z-index: 1;
}

/* Milestones Container - FLEX for perfect alignment */
.milestones-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0 2%;
    height: 100%;
}

/* Individual Milestone */
.milestone {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

/* Video Container */
.milestone-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
}

.milestone:hover .milestone-image {
    transform: translateY(-5px);
}

.milestone-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Connector Line */
.milestone-connector {
    width: 2px;
    height: 20px;
    background: #b48b5a;
    margin-bottom: 5px;
    position: relative;
    z-index: 2;
}

/* Dot Marker on Timeline */
.milestone-marker {
    width: 12px;
    height: 12px;
    background: #b48b5a;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.milestone:hover .milestone-marker {
    transform: scale(1.5);
    background: #9c27b0;
}

/* Grade Label */
.milestone-label {
    font-size: 14px;
    font-weight: 700;
    color: #2c3e50;
    margin-top: 8px;
    padding: 4px 10px;
    border-radius: 6px;
    text-align: center;
    min-width: 40px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.milestone:hover .milestone-label {
    background: #2c3e50;
    color: white;
    transform: translateY(-2px);
}

/* Quality Level Badge */
.quality-level {
    font-size: 11px;
    font-weight: 600;
    color: #666;
    margin-top: 5px;
    padding: 2px 8px;
    border-radius: 12px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

    .quality-level.best {
        background: #e8f5e9;
        color: #2e7d32;
    }

    .quality-level.good {
        background: #fff3e0;
        color: #ef6c00;
    }

    .quality-level.fair {
        background: #fce4ec;
        color: #c2185b;
    }

/* TOOLTIP - Caratlane Style */
.milestone-tooltip {
    position: absolute;
    top: 180px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    width: 500px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    border: 1px solid #e0e0e0;
    text-align: left;
    pointer-events: none;
}

    .milestone-tooltip::before {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%) rotate(45deg);
        width: 16px;
        height: 16px;
        background: white;
        border-left: 1px solid #e0e0e0;
        border-top: 1px solid #e0e0e0;
    }

.milestone:hover .milestone-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.tooltip-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 6px;
    display: block;
}

.tooltip-description {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
    margin: 0;
}

/* Quality Scale Labels */
.quality-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding: 0 2%;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.scale-start {
    text-align: left;
}

.scale-center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.scale-end {
    text-align: right;
}

/* Diamond Clarity Milestones */
.clarity-milestone .milestone-image {
    background: linear-gradient(135deg, #f5f7fa, #c3cfe2);
}

    .clarity-milestone .milestone-image i {
        font-size: 28px;
        color: #5D1143;
    }

li strong {
    color: #2c3e50;
}


/* Responsive Design */
@media (max-width: 992px) {
    .diamond-guide-modal {
        max-width: 95%;
        margin: 1rem auto;
    }

    .milestone-track {
        height: 150px;
    }

    .milestone-image {
        width: 60px;
        height: 60px;
    }

    .milestone-tooltip {
        width: 220px;
        top: 160px;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding: 1.5rem;
    }

    .milestone-track {
        height: 140px;
        margin-bottom: 3rem;
    }

    .milestones-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        height: auto;
    }

    .milestone {
        width: 70px;
        margin-bottom: 2rem;
    }

    .milestone-line {
        top: 80px;
    }

    .milestone-tooltip {
        position: fixed;
        top: auto;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%) translateY(100%);
        width: 90%;
        max-width: 300px;
        z-index: 10000;
    }

        .milestone-tooltip::before {
            top: -8px;
            left: 50%;
        }

    .milestone:hover .milestone-tooltip {
        transform: translateX(-50%) translateY(0);
    }

    .quality-scale {
        display: none;
    }
}

@media (max-width: 576px) {
    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-title {
        font-size: 1.4rem;
    }

    .milestone {
        width: 60px;
    }

    .milestone-image {
        width: 50px;
        height: 50px;
    }

    .milestone-label {
        font-size: 13px;
    }

    .milestone-tooltip {
        width: 95%;
        padding: 1rem;
    }
}

/* Scrollbar Styling */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 10px;
}

    .modal-body::-webkit-scrollbar-thumb:hover {
        background: #a8a8a8;
    }

/* Add this CSS for the fixed tooltip */
.fixed-tooltip {
    display: none;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: var(--primary-dark);
    padding: 12px 16px;
    border-radius: 8px;
    max-width: 680px;
    width: auto;
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.fixed-tooltip .tooltip-title {
    font-weight: bold;
    font-size: 15px;
    margin-bottom: 6px;
    display: block;
    color: #ffd700;
    text-align: center;
}

.fixed-tooltip .tooltip-description {
    font-size: 13px;
    line-height: 1.4;
    margin: 0;
    text-align: center;
}

/* Ensure modal content has relative positioning for absolute tooltips */
.modal-content {
    position: relative;
}

/* Ensure milestone-graph-section has relative positioning */
.milestone-graph-section {
    position: relative;
    min-height: 150px;
    margin-bottom: 30px;
}

/* Remove old tooltip styles from milestones */
.milestone-tooltip {
    display: none;
}

/* Ensure modal has proper stacking context */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
}

.modal {
    background: white;
    border-radius: 8px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    z-index: 10000;
}

/* Make sure milestones are interactive */
.milestone {
    cursor: pointer;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .fixed-tooltip {
        max-width: 90%;
        font-size: 14px;
        padding: 10px 14px;
        top: 5px;
    }

        .fixed-tooltip .tooltip-title {
            font-size: 14px;
        }

        .fixed-tooltip .tooltip-description {
            font-size: 12px;
        }
}

/* Overlay */
.trustModalOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
}

/* Modal Box */
.trustModalBox {
    width: 380px;
    background: #ffffff;
    padding: 30px 28px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: 0px 10px 35px rgba(0,0,0,0.25);
    animation: modalFade 0.25s ease-out;
}

/* Close Button */
.trustModalClose {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 26px;
    cursor: pointer;
    color: #777;
    transition: 0.2s;
}

    .trustModalClose:hover {
        color: var(--primary, #b88a54);
    }

/* Icon Wrapper */
.trustModalIconWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85px;
    width: 85px;
    border-radius: 50%;
    background: rgba(184, 138, 84, 0.15); /* subtle premium glow */
    margin: 0 auto 18px auto;
}

#trustModalIcon {
    font-size: 52px;
    color: var(--primary, #b88a54);
}

/* Title */
.trustModalTitle {
    font-family: 'Playfair Display', serif;
    color: var(--primary, #b88a54);
    font-size: 16px;
    margin-bottom: 12px;
}

/* Description */
.trustModalDesc {
    color: #444;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 5px;
    text-align: justify; /* premium aligned text */
    max-height: 250px;
    overflow-y: auto; /* supports large content */
    padding-right: 4px;
}

/* Smooth Animation */
@keyframes modalFade {
    from {
        opacity: 0;
        transform: scale(0.88);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}
.theme-soft-bg {
    background-color: var(--cream) !important;
    padding: 6px 20px 7px 20px;
}

.premium-fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1030;
    padding: 12px 0;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.product-thumb {
    box-shadow: var(--shadow-soft);
}

.add-to-cart-fixed {
    transition: all 0.3s ease;
}

    .add-to-cart-fixed:hover {
        /*                transform: translateY(-2px);*/
        color: var(--primary) !important;
        background: white !important;
        border: 1px solid var(--primary) !important;
        box-shadow: var(--shadow-deep) !important;
    }

.whatsapp-video-btn {
    background: var(--gradient-accent) !important;
    border: none !important;
    min-width: 56px;
}

    .whatsapp-video-btn:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-soft);
    }
/* Responsive Adjustments */
@media (max-width: 576px) {
    .product-info-text {
        font-size: 14px;
    }

    .product-title {
        font-size: 14px !important;
    }

    .product-price {
        font-size: 15px !important;
    }

    .btn {
        font-size: 13px;
        padding: 10px 14px !important;
    }

    .whatsapp-video-btn span {
        display: none;
    }

    .whatsapp-video-btn i {
        margin-right: 0 !important;
    }
}


/* Bottom Sheet Modal Styles */
.bottom-sheet-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
}

.bottom-sheet-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.bottom-sheet-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 55%;
    background: white;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.4s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bottom-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    flex-shrink: 0;
}

.bottom-sheet-body {
    flex: 1;
    overflow-y: auto;
    padding: 0;
    width: 100%;
}

/* Animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Hide scrollbar */
.bottom-sheet-body::-webkit-scrollbar {
    display: none;
}

.bottom-sheet-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

    /* Slick slider adjustments for bottom sheet */
    .bottom-sheet-body .sliderParent {
        padding: 20px 0;
        height: 100%;
    }

    .bottom-sheet-body .globalSlider {
        padding: 0 10px;
    }

    .bottom-sheet-body .similar-slide-item {
        padding: 0 10px;
        height: 100%;
    }

    .bottom-sheet-body .product-item {
        background: white;
        border-radius: 12px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        transition: transform 0.3s ease;
        height: 100%;
        border: 1px solid rgba(0, 0, 0, 0.05);
    }

        .bottom-sheet-body .product-item:hover {
            transform: translateY(-4px);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        }

    /* Arrow positioning for bottom sheet */
    .bottom-sheet-body .slick-arrow-container {
        position: absolute;
        top: 50%;
        left: 0;
        right: 0;
        transform: translateY(-50%);
        pointer-events: none;
        z-index: 10;
    }

    .bottom-sheet-body .slick-prev,
    .bottom-sheet-body .slick-next {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 36px;
        height: 36px;
        background: white;
        border-radius: 50%;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        border: 1px solid rgba(0, 0, 0, 0.1);
        z-index: 11;
        pointer-events: all;
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 0;
        color: transparent;
    }

    .bottom-sheet-body .slick-prev {
        left: 0;
    }

    .bottom-sheet-body .slick-next {
        right: 0;
    }

        .bottom-sheet-body .slick-prev i,
        .bottom-sheet-body .slick-next i {
            font-size: 18px;
            color: var(--primary);
        }

        .bottom-sheet-body .slick-prev:hover,
        .bottom-sheet-body .slick-next:hover {
            background: var(--primary);
        }

            .bottom-sheet-body .slick-prev:hover i,
            .bottom-sheet-body .slick-next:hover i {
                color: white;
            }

    /* Ensure slick slider works properly */
    .bottom-sheet-body .globalSlider .slick-slide {
        padding: 0 10px;
        height: auto;
    }

    .bottom-sheet-body .globalSlider .slick-list {
        margin: 0 -10px;
        height: 100%;
    }

    .bottom-sheet-body .globalSlider .slick-track {
        display: flex;
        height: 100%;
    }

    .bottom-sheet-body .globalSlider .slick-slide > div {
        height: 100%;
    }

/* Responsive adjustments */
@media (max-width: 768px) {
    .bottom-sheet-content {
        height: 50%;
    }

    .bottom-sheet-body .slick-prev {
        left: 5px;
    }

    .bottom-sheet-body .slick-next {
        right: 5px;
    }
}

@media (max-width: 576px) {
    .bottom-sheet-content {
        height: 55%;
    }

    .bottom-sheet-body .sliderParent {
        padding: 15px 0;
    }

    .bottom-sheet-body .globalSlider {
        padding: 0 5px;
    }

    .bottom-sheet-body .similar-slide-item {
        padding: 0 5px;
    }

    .product-title {
        font-size: 0.85rem !important;
    }

    .price {
        font-size: 0.85rem !important;
    }
}

/* Handle for better mobile UX */
.bottom-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    cursor: grab;
}

.handle-bar {
    width: 40px;
    height: 4px;
    background: #ddd;
    border-radius: 2px;
}

/* Close button styling */
.bottom-sheet-header .btn-close {
    padding: 8px;
    margin: -8px;
    opacity: 0.7;
    font-size: 0.9rem;
}

    .bottom-sheet-header .btn-close:hover {
        opacity: 1;
    }

.product-title {
    max-width: max-content !important;
}

/* Trust slider responsive styling */
.trust-slider-container {
    width: 100%;
    overflow: hidden;
    background: white;
}

/* Desktop slider - show only on lg and above */
.trust-slidermain-desktop {
    display: none;
}

.d-lg-block .trust-slidermain-desktop {
    display: block;
}

.d-lg-none .trust-slidermain-desktop {
    display: none;
}

/* Mobile slider - show only on mobile */
.trust-slidermain-mobile {
    display: none;
}

.d-lg-none .trust-slidermain-mobile {
    display: block;
}

/* Common card styles */
.trust-card {
    min-width: 280px;
    max-width: 280px;
    height: 170px;
    border-radius: 24px;
    padding: 32px 28px;
    color: #333;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.3);
    margin: 0 8px;
}

    .trust-card:hover {
        transform: translateY(-12px);
        box-shadow: 0 25px 50px rgba(0,0,0,0.15);
    }

    .trust-card i {
        font-size: 40px;
        margin-bottom: 12px;
        opacity: 0.9;
    }

    .trust-card h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px 0;
        color: #2d1a3a;
    }

    .trust-card p {
        font-size: 14px;
        margin: 0;
        line-height: 1.5;
        opacity: 0.85;
    }

/* Desktop specific */
@media (min-width: 992px) {
    .trust-slider-container {
        /*                padding: 30px 0;*/
    }

    .trust-slidermain-desktop {
        display: block;
    }

    .trust-slidermain-mobile {
        display: none;
    }

    .trust-card {
        min-width: 415px;
        max-width: 415px;
        height: 170px;
        margin: 0 15px;
    }

        .trust-card i {
            font-size: 56px;
            margin-bottom: 16px;
        }

        .trust-card h3 {
            font-size: 20px;
        }

        .trust-card p {
            font-size: 15px;
        }
}
/* Trust slider container */
.trust-slider-container {
    width: 100%;
    overflow: hidden;
    background: white;
    margin: 0;
    position: relative;
}

/* Slider tracks */
.trust-slider-track {
    display: flex;
    width: max-content;
    animation: scrollLoop 40s linear infinite;
    animation-play-state: running;
}

    .trust-slider-track:hover {
        animation-play-state: paused;
    }

/* Keyframes for continuous scrolling */
@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Card styles */
.trust-card {
    min-width: 280px;
    max-width: 280px;
    height: 170px;
    border-radius: 24px;
    padding: 32px 28px;
    color: #333;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0 12px;
    box-sizing: border-box;
    flex-shrink: 0;
    text-decoration: none;
    position: relative;
}

    .trust-card:hover {
        /*        transform: translateY(-8px);*/
        /*        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);*/
    }

    .trust-card i {
        font-size: 40px;
        margin-bottom: 12px;
        opacity: 0.9;
    }

    .trust-card img {
        margin-bottom: 12px;
        width: 60px;
        height: 60px;
        object-fit: contain;
    }

    .trust-card h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 8px 0;
        color: #2d1a3a;
    }

    .trust-card p {
        font-size: 14px;
        margin: 0;
        line-height: 1.5;
        opacity: 0.85;
    }

/* Gradient backgrounds for cards */
.card-1 {
    background: linear-gradient(135deg, #f2e0eb, #e8d0e0);
}

.card-2 {
    background: linear-gradient(135deg, #e8d9e9, #d9c8e0);
}

.card-3 {
    background: linear-gradient(135deg, #fdf8f2, #f5ede6);
}

.card-4 {
    background: linear-gradient(135deg, #d0e6e8, #c8e0e6);
}

.card-5 {
    background: linear-gradient(135deg, #e8d4ed, #d9c8e5);
}

.card-6 {
    background: linear-gradient(135deg, #f0f0f0, #e0e4e8);
}

.card-7 {
    background: linear-gradient(135deg, #d6e4ed, #c8d8e8);
}

.card-8 {
    background: linear-gradient(135deg, #f0e0e8, #e8d5e2);
}

/* Desktop specific */
@media (min-width: 992px) {
    .trust-slider-container {
        /*            padding: 60px 0;*/
    }

    .trust-card {
        min-width: 415px;
        max-width: 415px;
        height: 170px;
        margin: 0 5px;
        padding: 32px 28px;
    }

        .trust-card i {
            font-size: 56px;
            margin-bottom: 16px;
        }

        .trust-card h3 {
            font-size: 20px;
        }

        .trust-card p {
            font-size: 15px;
        }
    /* Slower animation on desktop for better visibility */
    @keyframes scrollLoop {
        0% {
            transform: translateX(0);
        }

        100% {
            transform: translateX(-50%);
        }
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 991px) {
    .trust-card {
        min-width: 320px;
        max-width: 320px;
        margin: 0 5px;
    }
}

/* Mobile specific - switch to vertical stacking with slick slider */
@media (max-width: 767px) {
    .trust-slider-track {
        display: none;
    }

    .trust-mobile-slider {
        display: block;
    }

    .trust-card {
        min-width: 280px;
        max-width: 280px;
        margin: 0 5px;
    }
    /* Mobile slick dots */
    .slick-dots {
        bottom: -30px !important;
    }

        .slick-dots li button:before {
            font-size: 10px;
        }
}

/* Hide mobile slider on desktop */
.trust-mobile-slider {
    display: none;
}

/* Ensure all cards have proper hover effects */
.trust-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.trust-card:hover::after {
    opacity: 1;
}

.trust-slider-container {
    width: 100%;
    overflow: hidden;
}

.trust-slidermain {
    display: flex;
    gap: 24px !important;
}

.trust-card {
    min-width: 415px;
    max-width: 415px;
    height: 160px;
    border-radius: 20px;
    padding: 24px 20px;
    color: white;
    text-align: left;
    /*        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);*/
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    transition: transform 0.4s ease;
}

    .trust-card:hover {
        transform: translateY(-10px);
    }

    .trust-card i {
        font-size: 52px;
        margin-bottom: 12px;
        filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
    }

    .trust-card h3 {
        font-size: 18px;
        font-weight: 700;
        margin: 0 0 6px 0;
        text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .trust-card p {
        font-size: 14px;
        margin: 0;
        opacity: 0.95;
    }

.trust-slidermain .slick-slide {
    margin: 0 12px;
}

.trust-slider-container:hover .trust-slider {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .trust-slidermain {
        animation: none;
    }

    .trust-slider-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

        .trust-slider-container::-webkit-scrollbar {
            display: none;
        }

    .trust-card {
        min-width: 260px;
    }
}


/* Enable scrolling only when hovering over the image area */
.image-grid-section,
#carouselMobile {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .image-grid-section::-webkit-scrollbar,
    #carouselMobile::-webkit-scrollbar {
        display: none;
    }

    .image-grid-section:hover,
    #carouselMobile:hover {
        overflow-y: auto;
    }

        .image-grid-section:hover::-webkit-scrollbar,
        #carouselMobile:hover::-webkit-scrollbar {
            display: block;
            width: 6px;
        }

        .image-grid-section:hover::-webkit-scrollbar-thumb,
        #carouselMobile:hover::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }
/* RIGHT: Details panel – scrolls only when mouse is over it */
.col-lg-3.overflow-auto {
    height: 100vh; /* Full height */
    position: sticky;
    top: 0;
    overflow-y: hidden; /* Start hidden */
}
    /* Only enable scroll when hovering over the right panel */
    .col-lg-3.overflow-auto:hover {
        overflow-y: auto;
    }
        /* Optional: nice thin scrollbar when hovering */
        .col-lg-3.overflow-auto:hover::-webkit-scrollbar {
            width: 6px;
        }

        .col-lg-3.overflow-auto:hover::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 3px;
        }


/* Enable scrolling only when hovering over the image area */
.image-grid-section,
#carouselMobile {
    height: 100%;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

    .image-grid-section::-webkit-scrollbar,
    #carouselMobile::-webkit-scrollbar {
        display: none;
    }

    .image-grid-section:hover,
    #carouselMobile:hover {
        overflow-y: auto;
    }

        .image-grid-section:hover::-webkit-scrollbar,
        #carouselMobile:hover::-webkit-scrollbar {
            display: block;
            width: 6px;
        }

        .image-grid-section:hover::-webkit-scrollbar-thumb,
        #carouselMobile:hover::-webkit-scrollbar-thumb {
            background: rgba(0,0,0,0.3);
            border-radius: 3px;
        }

/* RIGHT: Details panel – scrolls only when mouse is over it */
.col-lg-3.overflow-auto {
    height: 100vh; /* Full height */
    position: sticky;
    top: 0;
    overflow-y: hidden; /* Start hidden */
}

    /* Only enable scroll when hovering over the right panel */
    .col-lg-3.overflow-auto:hover {
        overflow-y: auto;
    }

        /* Optional: nice thin scrollbar when hovering */
        .col-lg-3.overflow-auto:hover::-webkit-scrollbar {
            width: 6px;
        }

        .col-lg-3.overflow-auto:hover::-webkit-scrollbar-thumb {
            background: #5D1143;
            border-radius: 3px;
        }

.blur-background {
    /*        position: relative;*/
    filter: blur(4px);
    pointer-events: none;
    user-select: none;
}

    .blur-background::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.4); /* adjust opacity */
        pointer-events: none;
    }

.font-11 {
    font-size: 11px !important;
}

.nav-link.toptab.active {
    background-color: #D190B9 !important;
    color: #5D1143 !important;
}

.fake-dropdown {
    background: #f8f9fa;
    cursor: pointer;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
}

.product-image-wrapper:hover .hover-image {
    opacity: 1;
}

.tab-button.active {
    background: linear-gradient(to left, #9f2862, #9f2862, #9f2862);
    color: white !important;
    padding: 8px !important;
}


/* Full height page */
html, body, .page-content {
    height: 100%;
    overflow: hidden; /* Prevent body scroll */
}

/* Make row full height */
.product-detail-modern .stickyrow {
    height: 100vh;
    margin: 0px;
    overflow: visible;
}

/* Left: Independent scroll container */
.image-scroll-section {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    /*        padding: 20px 0;*/
    scrollbar-width: none;
}

/* Right: Independent scroll container */
.details-scroll-container {
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    /*        padding: 0 20px;*/
    scrollbar-width: none;
}

    /* Optional: Show scrollbar only on hover */
    .image-scroll-section::-webkit-scrollbar,
    .details-scroll-container::-webkit-scrollbar {
        display: none !important;
    }

    .image-scroll-section::-webkit-scrollbar-thumb,
    .details-scroll-container::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.3);
        border-radius: 3px;
        display: none !important;
    }

    .image-scroll-section:hover::-webkit-scrollbar-thumb,
    .details-scroll-container:hover::-webkit-scrollbar-thumb {
        background: rgba(0,0,0,0.6);
        display: none !important;
    }

/* Fix image sizing - NEVER use height: 100vh on img */
.image-grid img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Ensure sticky tabs work inside scrolling container */
#rightDetailsPanel .sticky-top {
    position: sticky;
    top: 0;
    z-index: 10;
    /*        background: #fdfcfb;*/
}

.footer-margin {
    margin-top: 10rem !important;
}

.tab-button {
    min-height: 25px;
    padding-top: 7px;
    padding-bottom: 0px;
    border-radius: 16px !important;
    font-size: 14px;
    color: #1F3747;
}

.tabs-slider .tab-btn {
    font-size: 0.85rem;
    white-space: nowrap;
    min-width: max-content;
    margin: 0 4px;
    transition: all 0.3s ease;
}

.tabs-slider .tab-btn.active {
    background: var(--gradient-accent) !important;
    color: white !important;
    border: none !important;
}

.tabs-slider .slick-arrow,
.tabs-slider .slick-dots {
    display: none !important;
}

.section {
    /*padding: 100px 20px;*/
    min-height: max-content;
    background: #f9f9f9;
    /*margin: 10px;*/
    border-radius: 12px;
}

/* Make overlay icons ALWAYS visible */
.product-card .overlay-icons {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important; /* if you had slide-up effect */
}

/* Optional: If you still want a nice look, just keep them visible from start */
.overlay-icons {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
    opacity: 1;
    visibility: visible;
    transition: all 0.3s ease;
}

/* Remove hover dependency completely */
.product-card:hover .overlay-icons {
    opacity: 1;
    transform: none;
}

.product-item:hover .normal-image {
    opacity: 1 !important;
    z-index: -1;
}

@media (max-width: 491px) {
    body {
        padding-top: 96px !important;
    }

    .image-scroll-section {
        height: max-content;
    }

    html, body, .page-content {
        height: max-content;
        overflow: visible !important; /* Prevent body scroll */
    }

    .pname {
        color: var(--primary-dark);
    }
}

.fab-btn {
    position: fixed;
    right: 2% !important;
}

.topprice:hover {
    color: var(--primary-dark) !important;
}

/* Loading state for modal */
.customization-modal.loading .customization-body {
    position: relative;
    min-height: 200px;
    opacity: 0.7;
    pointer-events: none;
}

.customization-modal.loading .customization-body::after {
    content: 'Updating product...';
    position: absolute;
    top: 50%;
    left: 50%;
    /*            transform: translate(-50%, -50%);*/
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    z-index: 10;
}

.customization-modal.loading .customization-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    z-index: 5;
    border-radius: 8px;
}

/* Disabled state for apply button */
.apply-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

#customizationModal {
    right: -100%;
    transition: none; /* no animation */
}

    #customizationModal.open {
        right: 0;
    }


/* Size Guide Link */
.size-guide {
    color: #902167;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.size-guide:hover {
    border-bottom-color: #D190B9;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(12, 12, 12, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal {
    background: white;
    border-radius: 16px;
    width: 90%;
    max-width: 480px;
    max-height: max-content;
    overflow-y: auto;
    animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px rgba(31, 55, 71, 0.2);
    border: 1px solid #EEE2DA;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #EEE2DA;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #fafafa 0%, white 100%);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-size: 14px;
    font-weight: 500;
    color: #1F3747;
}

.close-btn {
    background: #EEE2DA;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6F6F70;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

    .close-btn:hover {
        background: #D190B9;
        color: white;
        transform: rotate(90deg);
    }

.modal-content {
    padding: 24px;
}

.modal-footer {
    padding: 20px 24px;
    border-top: 1px solid #EEE2DA;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    background: #fafafa;
    border-radius: 0 0 16px 16px;
}



.btn-primary {
    background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
    color: white;
/*    min-width: 120px;*/
    box-shadow: 0 4px 15px rgba(144, 33, 103, 0.2);
}

    .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(144, 33, 103, 0.3);
        background: linear-gradient(135deg, #a02470 0%, #5d2370 100%);
    }

    .btn-primary:disabled {
        background: #EEE2DA;
        color: #8DA5B5;
        cursor: not-allowed;
        box-shadow: none;
    }

.btn-secondary {
    background: white;
    color: #1F3747;
    border: 2px solid #EEE2DA;
}

    .btn-secondary:hover {
        border-color: #D190B9;
        color: #902167;
        background: #fef8fc;
    }

/* Step 1 Content */
.step-content {
    text-align: center;
}

.step-icon {
    font-size: 64px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #D190B9 0%, #96709D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1F3747;
    letter-spacing: -0.5px;
}

.step-description {
    color: #6F6F70;
    line-height: 1.7;
    margin-bottom: 32px;
    font-size: 15px;
}

/* Step 2 - Radio Buttons */
.radio-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 37px;
    margin: 24px 22px;
}

.radio-item {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border: 2px solid #EEE2DA;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

    .radio-item:hover {
        border-color: #D190B9;
        background: linear-gradient(135deg, #fef8fc 0%, #fcf9fd 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(209, 144, 185, 0.1);
    }

    .radio-item.selected {
        border-color: #902167;
        background: linear-gradient(135deg, #fef8fc 0%, #fcf9fd 100%);
        box-shadow: 0 8px 25px rgba(144, 33, 103, 0.1);
    }

.radio-input {
    margin-right: 16px;
    width: 20px;
    height: 20px;
    accent-color: #902167;
}

.radio-label {
    font-weight: 600;
    color: #1F3747;
    font-size: 15px;
}

/* Step 3 - Caratlane Style Calibration */
.calibration-container {
    position: relative;
    margin: 24px 0;
}

.calibration-text {
    text-align: center;
    color: #6F6F70;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
    font-weight: 500;
}

.card-overlay-container {
    position: relative;
    height: 220px;
    background: linear-gradient(135deg, #f8f7f9 0%, #f0eef2 100%);
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #EEE2DA;
}

.card-placeholder {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 130px;
    background: linear-gradient(135deg, #f0eef2 0%, #e8e6ec 100%);
    border-radius: 10px;
    border: 3px dashed #D190B9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #902167;
    transition: all 0.3s ease;
}

    .card-placeholder:hover {
        border-style: solid;
        background: linear-gradient(135deg, #f8f7f9 0%, #f0eef2 100%);
        transform: translate(-50%, -50%) scale(1.02);
    }

.card-placeholder-icon {
    font-size: 36px;
    margin-bottom: 12px;
    opacity: 0.8;
}

.card-placeholder-text {
    font-size: 15px;
    font-weight: 600;
    color: #902167;
}

.card-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 130px;
    background: linear-gradient(135deg, #1F3747 0%, #2a4a5e 100%);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(31, 55, 71, 0.2);
    display: none;
    border: 2px solid #88A1AE;
}

.card-chip {
    position: absolute;
    top: 20px;
    left: 25px;
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #D190B9 0%, #96709D 100%);
    border-radius: 5px;
}

.card-lines {
    position: absolute;
    top: 65px;
    left: 25px;
    right: 25px;
    height: 4px;
    background: rgba(209, 144, 185, 0.5);
    border-radius: 2px;
}

    .card-lines::before,
    .card-lines::after {
        content: '';
        position: absolute;
        top: 10px;
        left: 0;
        width: 60%;
        height: 4px;
        background: rgba(209, 144, 185, 0.3);
        border-radius: 2px;
    }

    .card-lines::after {
        top: 20px;
        width: 40%;
    }

.card-number {
    position: absolute;
    bottom: 25px;
    left: 25px;
    color: white;
    font-family: 'Courier New', monospace;
    font-size: 15px;
    letter-spacing: 3px;
    font-weight: 500;
}

.measurement-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 150px;
    pointer-events: none;
    z-index: 2;
}

.measurement-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 3px solid #902167;
    border-radius: 10px;
    box-sizing: border-box;
    opacity: 0.9;
}

.measurement-handles {
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: auto;
}

.handle {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
    border-radius: 50%;
    cursor: ew-resize;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 6px 20px rgba(144, 33, 103, 0.3);
    user-select: none;
    transition: all 0.3s ease;
    border: 2px solid white;
}

    .handle:hover {
        box-shadow: 0 8px 25px rgba(144, 33, 103, 0.4);
    }

    .handle:active {
        transform: scale(0.95);
    }

.handle-left {
    transform: translateX(-20px);
}

.handle-right {
    transform: translateX(20px);
}

.measurement-label {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #1F3747 0%, #2a4a5e 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(31, 55, 71, 0.2);
    min-width: 180px;
    text-align: center;
    transition: all 0.3s ease;
}

    .measurement-label::after {
        content: '';
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #1F3747;
    }

    .measurement-label.calibrated {
        background: linear-gradient(135deg, #2e7d32 0%, #4caf50 100%);
    }

        .measurement-label.calibrated::after {
            border-bottom-color: #2e7d32;
        }

.calibration-instructions {
    margin-top: 40px;
    padding: 20px;
    border-radius: 12px;
    font-size: 12px;
    color: #6F6F70;
    line-height: 1.6;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

    .instruction-step:last-child {
        margin-bottom: 0;
    }

.step-number {
    background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    margin-right: 14px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(144, 33, 103, 0.2);
}

/* Step 4 - Size Selection */
.size-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 28px 0;
}

.size-circle {
    width: 56px;
    height: 56px;
    border: 1px solid rgb(200, 197, 200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1F3747;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgb(246, 239, 246);
    font-size: 16px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

    .size-circle::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgb(246, 239, 246);
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    /*        .size-circle:hover {
            border-color: #D190B9;
            transform: translateY(-3px);
            box-shadow: 0 10px 25px rgba(209, 144, 185, 0.2);
        }*/

    .size-circle:hover::before {
        opacity: 1;
    }

    .size-circle.selected {
        background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
        color: white;
        border-color: #902167;
        transform: scale(1.1);
        box-shadow: 0 12px 30px rgba(144, 33, 103, 0.3);
    }

        .size-circle.selected::before {
            display: none;
        }

    .size-circle.suggested {
        border: 1px solid rgb(200, 197, 200);
        border-width: 3px;
        animation: sizepulse 2s infinite;
    }

@keyframes sizepulse {
    0% {
        box-shadow: 0 0 0 0 rgba(31, 55, 71, 0.2);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(31, 55, 71, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(31, 55, 71, 0);
    }
}

.size-image {
    width: 100%;
    max-width: 420px;
    margin: 24px auto;
    display: block;
    border-radius: 10px;
    border: 2px solid #EEE2DA;
    box-shadow: 0 8px 25px rgba(31, 55, 71, 0.1);
}

.size-selected {
    text-align: center;
    color: #6F6F70;
    margin-top: 24px;
    font-size: 15px;
    font-weight: 500;
}

    .size-selected span {
        font-weight: 700;
        color: #902167;
        font-size: 18px;
    }

.size-suggestion {
    text-align: center;
    color: #1F3747;
    margin: 16px 0;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #f0eef2 0%, #e8e6ec 100%);
    padding: 12px;
    border-radius: 8px;
    border-left: 4px solid #902167;
}

/* Guide Link */
.guide-link {
    display: inline-block;
    margin-top: 20px;
    color: #902167;
    text-decoration: none;
    font-weight: 600;
    padding: 12px 28px;
    border: 2px solid #902167;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: white;
}

    .guide-link:hover {
        background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(144, 33, 103, 0.3);
    }

/* Progress Bar */
.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    position: relative;
    padding: 0 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-indicator {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #EEE2DA;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: #8DA5B5;
    margin-bottom: 10px;
    border: 3px solid white;
    transition: all 0.4s ease;
    box-shadow: 0 4px 15px rgba(136, 165, 174, 0.1);
}

    .step-indicator.active {
        background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 6px 20px rgba(144, 33, 103, 0.3);
    }

    .step-indicator.completed {
        background: linear-gradient(135deg, #1F3747 0%, #2a4a5e 100%);
        color: white;
    }

.step-label {
    font-size: 12px;
    color: #8DA5B5;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .step-label.active {
        color: #1F3747;
    }

.progress-line {
    position: absolute;
    top: 18px;
    left: 60px;
    right: 60px;
    height: 3px;
    background: #EEE2DA;
    z-index: 1;
}

.progress-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #902167 0%, #1F3747 100%);
    transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    width: 0%;
    border-radius: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 95vh;
    }

    .size-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .size-circle {
        width: 50px;
        height: 50px;
        font-size: 15px;
    }

    .card-placeholder,
    .card-image,
    .measurement-overlay {
        width: 280px;
    }

    .progress-step {
        min-width: 70px;
    }

    .progress-line {
        left: 50px;
        right: 50px;
    }
}

@media (max-width: 480px) {
    .size-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-header {
        padding: 20px 20px 12px;
    }

    .modal-footer {
        padding: 16px 20px;
    }

    .progress-steps {
        padding: 0 10px;
    }

    .step-indicator {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .progress-line {
        left: 40px;
        right: 40px;
    }

    .card-placeholder,
    .card-image,
    .measurement-overlay {
        width: 240px;
        height: 110px;
    }

    .handle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}


/* Centered Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999 !important;
    padding: 20px;
    overflow-y: auto;
}

.modal {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    max-height: max-content;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    margin: auto;
}

.modal-centered {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #EEE2DA;
    text-align: center;
    position: relative;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #1F3747;
    margin: 0;
    text-align: center;
}

.modal-content {
    padding: 20px;
    text-align: center;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #EEE2DA;
    display: flex;
    justify-content: center;
    gap: 12px;
}

/* Center alignment for all content */
.step-content {
    text-align: center;
    width: 100%;
}

.step-icon {
    display: block;
    margin: 0 auto 20px;
}

.step-title, .step-description {
    text-align: center;
    width: 100%;
}

/* Center radio group */
.radio-group {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 37px;
    margin: 24px 22px;
}

.radio-item {
    width: 100%;
    max-width: 300px;
}

/* Center calibration container */
.calibration-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-overlay-container {
}

.calibration-instructions {
    width: 100%;
    margin: 20px auto 0;
}

/* Center size grid */
.size-grid-wrapper {
    width: 100%;
    overflow-x: auto;
    padding: 10px 0;
}

.size-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0 10px;
    min-width: min-content;
}

/* Progress steps centered */
.progress-steps {
    display: flex;
    justify-content: center;
    position: relative;
    margin: 0 auto 32px;
    max-width: 400px;
}

.progress-step {
    flex: 0 0 auto;
    width: 80px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .modal {
        width: 95%;
        max-height: 85vh;
    }

    .modal-overlay {
        padding: 10px;
    }

    .size-grid {
        justify-content: flex-start;
        gap: 8px;
    }

    .size-circle {
        width: 45px;
        height: 45px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .progress-step {
        width: 70px;
    }

    .step-indicator {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .radio-item {
        max-width: 100%;
    }
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Ensure buttons are properly centered */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* Fix for centering modals */
.modal-centered {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: auto;
}

/* Ensure modal overlay is properly centered */
/*.modal-overlay {
        display: flex !important;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }*/

/* Specific fixes for calibration modal */
#modal3 .modal {
    max-width: 600px; /* Slightly wider for calibration */
}

/* Fix for calibration container */
.calibration-container {
    position: relative;
    width: 100%;
    margin: 0 auto;
}

.card-overlay-container {
    position: relative;
    width: 100%;
    height: 220px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #f8f7f9 0%, #f0eef2 100%);
    border-radius: 12px;
    overflow: hidden;
    touch-action: none; /* Enable touch scrolling */
}

.measurement-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    height: 150px;
    cursor: move;
}

.handle {
    touch-action: none; /* Allow touch dragging */
    user-select: none;
}

/* Mobile-friendly calibration */
@media (max-width: 768px) {
    .card-overlay-container {
        height: 200px;
    }

    .measurement-overlay {
        width: 280px;
        height: 120px;
    }

    .handle {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .card-overlay-container {
        height: 180px;
    }

    .measurement-overlay {
        width: 240px;
        height: 100px;
    }

    .handle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: #f8f7f9;
    color: #1F3747;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
}

.modal {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    /*        max-height: 90vh;*/
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.modal-title {
    font-size: 18px;
    font-weight: 600;
    color: #902167;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

    .close-btn:hover {
        background: #f0f0f0;
    }

.modal-content {
    padding: 24px;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 30px;
}

.progress-line {
    position: absolute;
    top: 15px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e0e0e0;
    z-index: 1;
}

.progress-line-fill {
    height: 100%;
    background: #902167;
    transition: width 0.3s ease;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.step-indicator {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    margin-bottom: 8px;
    transition: all 0.3s ease;
}

    .step-indicator.active {
        border-color: #902167;
        background: #902167;
        color: white;
    }

    .step-indicator.completed {
        background: #4CAF50;
        border-color: #4CAF50;
        color: white;
    }

.step-label {
    font-size: 11px;
    color: #999;
    text-align: center;
}

    .step-label.active {
        color: #902167;
        font-weight: 500;
    }

/* Button Styles */


.btn-primary {
    background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
    color: white;
/*    min-width: 180px;*/
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 25px rgba(144, 33, 103, 0.3);
    }

    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
    }

/* Radio Styles */
.radio-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.radio-item {
    padding: 15px 30px;
    border: 2px solid #eee;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .radio-item.selected {
        border-color: #902167;
        background: rgba(144, 33, 103, 0.05);
    }

.radio-input {
    display: none;
}

.radio-label {
    font-size: 14px;
    font-weight: 500;
}

/* Card Calibration Styles */
.calibration-container {
    position: relative;
    margin: 20px 0;
}

.card-overlay-container {
    position: relative;
    width: 100%;
    height: 320px;
    background: linear-gradient(135deg, #f8f7f9 0%, #f0eef2 100%);
    border-radius: 16px;
    overflow: visible;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: none;
    user-select: none;
    border: 2px dashed #ddd;
}

.measurement-overlay {
    position: absolute;
    border: 2px solid #555555;
    border-radius: 12px;
    box-sizing: border-box;
    background: rgba(144, 33, 103, 0.03);
    pointer-events: none;
}

.measurement-line {
    position: absolute;
    background: #902167;
}

    .measurement-line.horizontal {
        left: 0;
        right: 0;
        height: 2px;
    }

    .measurement-line.vertical {
        top: 0;
        bottom: 0;
        width: 2px;
    }

.handle {
    position: absolute;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #555555 0%, #fff 100%) !important;
    border-radius: 50%;
    cursor: move;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    box-shadow: 0 6px 20px rgba(144, 33, 103, 0.3);
    user-select: none;
    border: 3px solid white;
    z-index: 10;
    pointer-events: all;
    transition: transform 0.2s;
}

    .handle:hover {
        box-shadow: 0 8px 25px rgba(144, 33, 103, 0.4);
        transform: none;
    }

    .handle:active {
        transform: scale(0.95);
    }

.handle-right {
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.handle-left {
    left: -20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: ew-resize;
}

.handle-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.handle-bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    cursor: ns-resize;
}

.calibration-instructions {
    text-align: center;
    font-size: 12px;
    color: #666;
    line-height: 1.6;
    margin-top: 20px;
    padding: 0 20px;
}

    .calibration-instructions strong {
        color: #902167;
    }

/* Size Grid Styles */
.size-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin: 30px 0;
    align-items: center;
}

.size-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.size-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.size-circle {
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #1F3747;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

    .size-circle.suggested {
        border-color: #902167;
        box-shadow: 0 0 0 3px #902167;
    }

    .size-circle.selected {
        background: linear-gradient(135deg, #902167 0%, #501F5D 100%);
        color: white;
        border-color: #902167;
        transform: scale(1.05);
        box-shadow: 0 12px 30px rgba(144, 33, 103, 0.3);
    }

    .size-circle:hover:not(.selected) {
        border-color: #D190B9;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(209, 144, 185, 0.2);
    }

.diameter-label {
    font-size: 11px;
    color: #6F6F70;
    font-weight: 500;
    text-align: center;
}

/* Footer */
.modal-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: center;
}

/* Back Button */
.back-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .back-btn:hover {
        background: #f0f0f0;
    }

/* Signature for pixel accuracy (as per findmyringsize.com rules) */
.signature {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 8px;
    color: rgba(0, 0, 0, 0.3);
    font-family: monospace;
    pointer-events: none;
}

/* Responsive */
@media (max-width: 768px) {
    .modal {
        margin: 10px;
    }

    .radio-group {
        flex-direction: column;
        align-items: center;
    }

    .radio-item {
        width: 200px;
    }

    .size-row {
        gap: 15px;
    }

    .calibration-instructions {
        font-size: 13px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 15px;
    }

    .modal-content {
        padding: 20px;
    }

    .size-row {
        gap: 12px;
    }

    .btn-primary {
        min-width: 160px;
        padding: 12px 24px;
    }
}

.content-two-cols {
    display: grid;
    grid-template-columns: 1fr 2.2fr;
    gap: 30px;
    align-items: start;
}

.left-col {
    text-align: center;
}

.ring-guide-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .content-two-cols {
        grid-template-columns: 1fr;
    }

    .left-col {
        margin-bottom: 20px;
    }
}
