/* Fix submenu left spacing - Responsive to content */
.main-menu > nav > ul > li ul.sub-menu {
    min-width: auto !important;
    width: max-content !important;
    max-width: 300px;
}

.main-menu > nav > ul > li ul.sub-menu li a {
    white-space: nowrap;
    text-align: left;
}

/* Ensure proper alignment */
.main-menu > nav > ul > li:hover ul.sub-menu {
    left: 0 !important;
}
/* ******************** Exclusive Services Active *********************** */
.main-menu .exclusive-services-parent.current-menu-item > a,
.main-menu .exclusive-services-parent.active > a {
    color: var(--color-brand) !important;
}

/* Simple active state like Shop by Solution */
.main-menu li.current-menu-item > a,
.main-menu li.active > a {
    color: var(--color-brand) !important;
}
/* ************ footer full width *****************/
footer.main .container {
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
}
/* ************ footer full width end *****************/


/* Sticky Product Image Gallery */
@media (min-width: 768px) {
    .product-detail .row {
        display: flex;
        align-items: flex-start;
    }
    
    .product-detail .col-md-6:first-child {
        position: sticky;
        top: 20px;
        z-index: 10;
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        /* Smooth scrolling for the sticky element */
        scroll-behavior: smooth;
    }
    
    /* Ensure the gallery maintains its layout when sticky */
    .detail-gallery {
        position: relative;
        width: 100%;
    }
    
    /* Adjust the main image container for better sticky behavior */
    .detail-gallery .product-image-slider {
        position: relative;
        max-height: calc(100vh - 200px);
        overflow: hidden;
    }
    
    /* Ensure vertical thumbnails work well with sticky layout */
    .detail-gallery.gallery-layout-vertical {
        max-height: calc(100vh - 100px);
    }
    
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails {
        max-height: calc(100vh - 200px);
        overflow-y: auto;
        /* Custom scrollbar for thumbnails */
        scrollbar-width: thin;
        scrollbar-color: #ccc transparent;
    }
    
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails::-webkit-scrollbar {
        width: 4px;
    }
    
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails::-webkit-scrollbar-thumb {
        background-color: #ccc;
        border-radius: 2px;
    }
    
    /* Smooth transition for sticky behavior */
    .product-detail .col-md-6:first-child {
        transition: all 0.3s ease;
    }
}

/* Enhanced sticky behavior with shadow effect when scrolling */
@media (min-width: 768px) {
    .product-detail .col-md-6:first-child.is-sticky {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 15px;
        background: #fff;
        padding: 15px;
        margin-top: 10px;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1024px) {
    .product-detail .col-md-6:first-child {
        top: 15px;
        max-height: calc(100vh - 30px);
    }
    
    .detail-gallery .product-image-slider {
        max-height: calc(100vh - 150px);
    }
}

/* Mobile - disable sticky behavior */
@media (max-width: 767px) {
    .product-detail .col-md-6:first-child {
        position: relative !important;
        top: auto !important;
        max-height: none !important;
        overflow-y: visible !important;
    }
    
    .detail-gallery .product-image-slider {
        max-height: none !important;
    }
    
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails {
        max-height: none !important;
        overflow-y: visible !important;
    }
}

/* Optional: Add scroll indicator for long thumbnail lists */
@media (min-width: 768px) {
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 20px;
        background: linear-gradient(transparent, rgba(255, 255, 255, 0.8));
        pointer-events: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
    
    .detail-gallery.gallery-layout-vertical .vertical-thumbnails.has-scroll::after {
        opacity: 1;
    }
}

/* Ensure zoom functionality still works with sticky layout */
.detail-gallery.sticky .zoom-icon {
    position: absolute;
    top: 35px;
    right: 35px;
    z-index: 15;
}

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

.header-action-right{
	vertical-align:middle !important;
}

.product-cart-wrap .product-badges span.hot{
    background-color: #FF8A3D !important;
}

/*contact form*/
.contact-from-area .contact-form-style button {
  background-color: var(--color-brand) !important;
}