/* Hero Slider - Dynamic aspect ratio & CLS Prevention */
#Gslider {
    width: 100%;
    height: 380px !important;
    background: #000000;
    min-height: auto;
}

#Gslider .carousel-inner {
    width: 100%;
    height: 380px !important;
    background: #000000;
    min-height: auto;
}

#Gslider .carousel-item {
    width: 100%;
    height: 380px !important;
}

#Gslider .carousel-inner img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    /* object-fit: cover !important; */
    opacity: 1.8;
}

@media (max-width: 767px) {

    #Gslider,
    #Gslider .carousel-inner,
    #Gslider .carousel-item,
    #Gslider .carousel-inner img {
        min-height: auto !important;
        height: 250px !important;
    }
}

/* Category Slider - Reserved Space & Spacing Gutters */
.category-slider {
    min-height: auto;
}

.category-slider .single-banner {
    width: 100% !important;
    height: 260px !important;
    border-radius: 8px;
    margin-bottom: 0;
    overflow: hidden !important;
}

.category-slider .single-banner img {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
    /* object-fit: cover !important; */
    opacity: 1 !important;
    visibility: visible !important;
}

.category-slider.row:not(.owl-carousel)>div {
    padding: 0 12px !important;
}

.category-slider>div {
    display: block !important;
    margin-bottom: 22px;
}

/* Mobile Category Banner Gap & Width Fix */
@media (max-width: 992px) {
    .category-slider .single-banner {
        height: 260px !important;
    }
}

@media (max-width: 767px) {
    .category-slider .single-banner {
        height: 180px !important;
    }

    .category-slider.row:not(.owl-carousel)>div {
        padding: 0 10px !important;
    }

    .category-slider>div {
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .category-slider .single-banner {
        height: 180px !important;
    }
}

/* Trending Item Product Cards - Spacing, Spanning & Alignment */
.product-area .grid-product-card {
    border: 1px solid #e8e8ee;
    border-radius: 6px;
    margin-top: 22px;
    margin-bottom: 10px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    min-height: 420px !important;
    height: 420px !important;
    /* Fixed card height to prevent layout shifts */
    display: flex;
    flex-direction: column;
}

.product-area .grid-product-image {
    background: #fff;
    min-height: 250px !important;
    height: 250px !important;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    position: relative;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-area .grid-product-image a {
    display: block;
    width: 100%;
    height: 100%;
}

.product-area .grid-product-image a img {
    height: 100% !important;
    width: 100% !important;
    object-fit: contain !important;
    padding: 18px !important;
    margin: 0 !important;
    display: block;
}

.product-area .grid-product-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 170px !important;
    height: 170px !important;
    padding: 18px 14px 16px !important;
    background: #efeff2;
    flex-grow: 1;
    margin: 0;
    border-top: 1px solid #e8e8ee;
}

.product-area .grid-product-content h3 {
    margin: 0;
    padding: 0;
    line-height: 20px;
}

.product-area .grid-product-content h3 a {
    display: -webkit-box;
    line-height: 20px;
    min-height: 40px;
    max-height: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 14px;
    font-weight: 500;
    color: #222;
}

.product-area .grid-product-content .product-price {
    margin-top: auto;
    padding-top: 8px;
}

/* Mobile alignment for product cards */
@media (max-width: 767px) {
    .product-area .grid-product-card {
        min-height: 380px !important;
        height: 380px !important;
    }

    .product-area .grid-product-image {
        min-height: 220px !important;
        height: 220px !important;
    }

    .product-area .grid-product-image a img {
        height: 100% !important;
        padding: 10px !important;
    }

    .product-area .grid-product-content {
        min-height: 160px !important;
        height: 160px !important;
        padding: 12px 10px 10px !important;
    }
}

/* Hot Item Popular Slider - CLS Prevention */
.popular-slider {
    min-height: 380px;
    display: flex;
    overflow: hidden;
}

.popular-slider:not(.owl-loaded)>div {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

@media (max-width: 991px) {
    .popular-slider:not(.owl-loaded)>div {
        flex: 0 0 33.333%;
        max-width: 33.333%;
    }
}

@media (max-width: 767px) {
    .popular-slider:not(.owl-loaded)>div {
        flex: 0 0 50%;
        max-width: 50%;
        min-height: 380px;
    }
}

@media (max-width: 480px) {
    .popular-slider:not(.owl-loaded)>div {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Multilevel dropdown */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>a:after {
    content: "\f0da";
    float: right;
    border: none;
    font-family: 'FontAwesome';
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: 0px;
    margin-left: 0px;
}

/* Loading skeleton / spinner for AJAX enqueues */
.dropdown-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    padding: 20px !important;
    width: 100%;
}

/* Home Page Slider Captions & Control Layouts */
#Gslider .carousel-inner .carousel-caption {
    top: 50%;
    transform: translateY(-50%);
    bottom: auto;
}

#Gslider .carousel-inner .carousel-caption h1 {
    font-size: 50px;
    font-weight: bold;
    line-height: 100%;
    color: #FFFFFF;
    margin-left: 0px;
    margin-top: -44px;
}

#Gslider .carousel-inner .carousel-caption p {
    font-size: 18px;
    color: black;
    margin: 28px 0 28px 0;
}

#Gslider .carousel-indicators {
    bottom: 20px;
}

.owl-dots {
    display: none !important;
}

.category-header {
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    margin-bottom: 2px;
}

.category-header-right {
    display: inline-block;
}

.view-more-link {
    display: inline-block;
    background: #c35255;
    color: #fff !important;
    padding: 6px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, .3);
    transition: all .3s ease;
}

.view-more-link:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.small-banner {
    padding: 30px 0 40px;
}

.category-slider.row {
    justify-content: center;
}

.category-slider.row:not(.owl-carousel)>div {
    padding: 0 12px !important;
}

.category-slider>div {
    display: block !important;
    margin-bottom: 22px;
}

.category-slider.owl-carousel {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.category-slider.owl-carousel:not(.owl-loaded) {
    display: flex !important;
    flex-wrap: nowrap;
    overflow: hidden;
}

.category-slider.owl-carousel:not(.owl-loaded)>div {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

.category-slider.owl-loaded>div,
.category-slider.owl-loaded .owl-item {
    margin-bottom: 0;
}

.category-slider .owl-stage {
    display: flex;
}

.category-slider .owl-item {
    display: block !important;
    float: none !important;
}

.category-slider .owl-item .item {
    width: 100%;
}

.category-slider .single-banner {
    width: 100% !important;
    height: 260px !important;
    border-radius: 8px;
    margin-bottom: 0;
}

.category-slider .single-banner img {
    display: block !important;
    height: 100% !important;
    width: 100% !important;
    /* object-fit: cover !important; */
    opacity: 1 !important;
    visibility: visible !important;
}

.product-area.section {
    padding: 28px 0 36px;
}

.product-area .section-title,
.shop-home-list .shop-section-title {
    margin-bottom: 24px;
    padding-bottom: 12px;
    text-align: center;
}

.product-area .section-title h2,
.shop-home-list .shop-section-title h2 {
    color: #2c2d3f;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0;
    padding-bottom: 14px;
    position: relative;
}

.product-area .section-title h2::before,
.shop-home-list .shop-section-title h2::before {
    background: #c35255;
    bottom: 0;
    content: "";
    height: 2px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: 45px;
}

.most-popular.section {
    padding: 0 !important;
}

.shop-home-list.section {
    padding: 42px 0 70px;
}

.shop-home-list .shop-section-title {
    display: block;
}

.shop-home-list .single-list {
    border: 1px solid #eeeeee;
    margin-top: 22px;
    min-height: 140px;
    padding: 12px;
}

.shop-home-list .single-list .list-image {
    height: 116px;
}

.shop-home-list .single-list .content {
    align-items: flex-start;
    padding: 8px 10px !important;
}

.shop-home-list .single-list .content .title {
    margin-bottom: 8px;
}

.shop-home-list .single-list .content .title a {
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 18px;
    max-height: 36px;
}

.shop-home-list .single-list .content .price {
    margin-top: 4px;
}

.shop-services.section.home {
    background: #f5f6fb;
    margin-bottom: 100px !important;
    padding: 56px 0;
}

.shop-services .single-service {
    padding: 0;
}

.shop-services .single-service h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.shop-services .single-service p {
    font-size: 13px;
    margin-top: 4px;
}

@media (max-width: 992px) {
    .category-slider .single-banner {
        height: 260px !important;
    }
}

@media (max-width:767px) {
    #Gslider .carousel-inner .carousel-caption {
        top: 50% !important;
        bottom: auto !important;
        transform: translateY(-50%) !important;
        text-align: center;
        left: 5% !important;
        right: 5% !important;
        padding: 0 !important;
    }

    #Gslider .carousel-inner .carousel-caption h1 {
        font-size: 20px;
        margin-left: 11px;
        line-height: 1.3;
        margin-top: 0px !important;
    }

    #Gslider .carousel-inner .carousel-caption p {
        font-size: 13px !important;
        margin: 5px 0 !important;
        line-height: 1.4 !important;
    }

    #Gslider .carousel-indicators {
        bottom: 10px !important;
    }

    .category-slider .single-banner {
        height: 180px !important;
    }

    .category-slider.owl-carousel:not(.owl-loaded)>div {
        flex-basis: 100%;
        max-width: 100%;
    }

    .product-area .section-title h2,
    .shop-home-list .shop-section-title h2 {
        font-size: 24px;
    }

    .shop-home-list.section {
        padding: 28px 0 50px;
    }
}

@media (max-width: 480px) {
    .category-slider .single-banner {
        height: 180px !important;
    }

    .section {
        padding: 16px 0px;
    }
}

.quick-view-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}

/* ==========================================================================
   Professional Global Page Loader Overlay
   ========================================================================== */
.global-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 9999999999 !important;
    /* highest possible z-index to stay above everything */
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), visibility 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.global-loader-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.global-loader-overlay .loader-content {
    text-align: center;
    max-width: 90%;
    transform: scale(1);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.global-loader-overlay.fade-out .loader-content {
    transform: scale(0.9);
}

/* Premium Rotating Spinner */
.global-loader-overlay .premium-spinner {
    width: 75px;
    height: 75px;
    margin: 0 auto 24px;
    border: 4.5px solid rgba(0, 0, 0, 0.04);
    border-top: 4.5px solid #c72922;
    /* primary brand color */
    border-right: 4.5px solid #f7941d;
    /* accent orange brand color */
    border-radius: 50%;
    animation: global-spin 0.85s linear infinite;
    filter: drop-shadow(0 0 10px rgba(199, 41, 34, 0.25));
}

.global-loader-overlay .loader-title {
    font-size: 22px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.5px;
}

.global-loader-overlay .loader-subtitle {
    font-size: 14px;
    color: #7f8c8d;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

@keyframes global-spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 576px) {
    .global-loader-overlay .loader-title {
        font-size: 18px;
    }

    .global-loader-overlay .loader-subtitle {
        font-size: 12px;
    }

    .global-loader-overlay .premium-spinner {
        width: 60px;
        height: 60px;
    }
}