.header-left .logo-name {
    white-space: nowrap;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1;
    background: linear-gradient(to right, #E2E2D2, #C51F5D);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.header-left .logo {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    text-decoration: none;
    gap: 0.6rem;
}

.header-left .logo img {
    max-width: none;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
    image-rendering: auto;
}

.mobile-menu-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: #333;
    font-size: 1.5rem;
}

@media screen and (max-width: 991px) {
    .header-4 .header-middle .header-left {
        flex: 0 0 40% !important;
        max-width: 40% !important;
    }
    .header-4 .header-middle .header-center {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
    .header-4 .header-search-extended {
        margin-right: 4rem !important;
    }
    .header-left .logo-name {
        font-size: 1.5rem !important;
    }
}

@media screen and (max-width: 767px) {
    .header-4 .header-middle .header-left {
        flex: 0 0 auto !important;
        max-width: none !important;
    }
    .header-4 .header-middle .header-center {
        flex: 0 0 auto !important;
        max-width: none !important;
    }
    .header-4 .header-search-extended {
        margin-right: 0 !important;
    }
    .header-left .logo-name {
        font-size: 1.3rem !important;
    }

    .main-nav {
        display: none;
    }

    .main-nav.mobile-open {
        display: block;
    }
}

.trending-section .nav-link.active {
    font-weight: 600;
}
/* LIVE POPULAR PRODUCTS FINAL UI FIX */

.popular-products-section {
    padding: 42px 8px 50px !important;
    overflow: hidden;
    background:
        radial-gradient(circle at 5% 10%, rgba(45,212,191,.12), transparent 25%),
        radial-gradient(circle at 95% 90%, rgba(236,72,153,.10), transparent 25%),
        #f5f8fc;
}

.popular-products-carousel {
    margin-left: -8px;
    margin-right: -8px;
}

.popular-products-carousel .owl-stage {
    padding: 10px 0 20px;
}

.popular-products-carousel .owl-item {
    padding: 0 10px 18px;
}

.popular-product-card {
    display: flex !important;
    flex-direction: column !important;
    min-height: 590px !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: #ffffff !important;
    border: 3px solid #38bdf8 !important;
    border-radius: 22px !important;
    box-shadow:
        0 8px 24px rgba(15,23,42,.12),
        0 0 0 1px rgba(255,255,255,.9) !important;
    transition:
        transform .35s ease,
        box-shadow .35s ease,
        border-color .35s ease !important;
}

.popular-product-card:nth-child(2n) {
    border-color: #8b5cf6 !important;
}

.popular-product-card:nth-child(3n) {
    border-color: #ec4899 !important;
}

.popular-product-card:nth-child(4n) {
    border-color: #10b981 !important;
}

.popular-product-card:nth-child(5n) {
    border-color: #f59e0b !important;
}

.popular-product-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    border-color: #2563eb !important;
    box-shadow:
        0 24px 48px rgba(37,99,235,.28),
        0 0 0 5px rgba(96,165,250,.18) !important;
    z-index: 20;
}

.popular-product-image-box {
    height: 270px !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background:
        radial-gradient(circle at 50% 20%, rgba(186,230,253,.9), transparent 43%),
        linear-gradient(145deg,#ffffff,#eff6ff 60%,#fdf2f8) !important;
}

.popular-product-image {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    transition: transform .4s ease, filter .4s ease !important;
}

.popular-product-card:hover .popular-product-image {
    transform: scale(1.09) !important;
    filter: drop-shadow(0 14px 16px rgba(37,99,235,.25)) !important;
}

.popular-product-card-body {
    display: flex !important;
    flex: 1 !important;
    flex-direction: column !important;
    padding: 22px !important;
    background: linear-gradient(180deg,#ffffff,#f8fbff) !important;
}

.popular-product-brand {
    margin-bottom: 10px !important;
    color: #0891b2 !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 1.8px !important;
    text-transform: uppercase !important;
}

.popular-product-name {
    min-height: 76px !important;
    color: #172033 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

.popular-product-card:hover .popular-product-name {
    color: #4f46e5 !important;
}

.popular-product-price {
    margin-top: 18px !important;
    margin-bottom: auto !important;
    color: #e11d48 !important;
    font-size: 27px !important;
    font-weight: 800 !important;
}

.popular-product-view-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 24px !important;
    padding: 14px 18px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg,#2563eb,#7c3aed) !important;
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: 0 8px 16px rgba(37,99,235,.25) !important;
    transition: .25s ease !important;
}

.popular-product-view-button:hover {
    background: linear-gradient(135deg,#1d4ed8,#db2777) !important;
    color: #ffffff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 13px 25px rgba(219,39,119,.30) !important;
}

@media (max-width: 767px) {
    .popular-products-carousel .owl-item {
        padding: 0 6px 15px;
    }

    .popular-product-card {
        min-height: 520px !important;
        border-width: 2px !important;
        border-radius: 18px !important;
    }

    .popular-product-image-box {
        height: 220px !important;
    }

    .popular-product-image {
        height: 175px !important;
    }

    .popular-product-card-body {
        padding: 18px !important;
    }
}

/* COMPACT POPULAR PRODUCT CARD FIX */

.popular-products-carousel .owl-item {
    padding: 0 7px 14px !important;
}

.popular-product-card {
    min-height: 475px !important;
    height: 475px !important;
    border-width: 2px !important;
    border-radius: 15px !important;
    box-shadow: 0 5px 16px rgba(15,23,42,.08) !important;
}

.popular-product-card:hover {
    transform: translateY(-7px) scale(1.012) !important;
    box-shadow: 0 16px 30px rgba(37,99,235,.20) !important;
}

.popular-product-image-box {
    height: 190px !important;
    min-height: 190px !important;
    padding: 16px !important;
}

.popular-product-image {
    height: 155px !important;
    max-height: 155px !important;
}

.popular-product-card-body {
    padding: 15px 17px 17px !important;
}

.popular-product-brand {
    margin-bottom: 6px !important;
    font-size: 10px !important;
    letter-spacing: 1.4px !important;
}

.popular-product-name {
    min-height: 57px !important;
    max-height: 63px !important;
    overflow: hidden !important;
    font-size: 15px !important;
    line-height: 1.35 !important;
}

.popular-product-price {
    margin-top: 8px !important;
    font-size: 21px !important;
    line-height: 1.2 !important;
}

.popular-product-old-price {
    font-size: 13px !important;
}

.popular-product-view-button {
    margin-top: 13px !important;
    padding: 10px 12px !important;
    min-height: 42px !important;
    border-radius: 9px !important;
    font-size: 14px !important;
}

@media (max-width: 767px) {
    .popular-product-card {
        min-height: 430px !important;
        height: 430px !important;
        border-radius: 13px !important;
    }

    .popular-product-image-box {
        height: 165px !important;
        min-height: 165px !important;
    }

    .popular-product-image {
        height: 135px !important;
        max-height: 135px !important;
    }

    .popular-product-card-body {
        padding: 13px !important;
    }

    .popular-product-name {
        font-size: 14px !important;
        min-height: 52px !important;
        max-height: 56px !important;
    }

    .popular-product-price {
        font-size: 19px !important;
    }
}

/* EXTRA COMPACT CARD HEIGHT */

.popular-product-card {
    min-height: 410px !important;
    height: 410px !important;
    border-radius: 14px !important;
}

.popular-product-image-box {
    height: 155px !important;
    min-height: 155px !important;
    padding: 12px !important;
}

.popular-product-image {
    height: 125px !important;
    max-height: 125px !important;
}

.popular-product-card-body {
    padding: 12px 15px 15px !important;
}

.popular-product-brand {
    margin-bottom: 4px !important;
    font-size: 9px !important;
}

.popular-product-name {
    min-height: 48px !important;
    max-height: 52px !important;
    font-size: 14px !important;
    line-height: 1.28 !important;
}

.popular-product-price {
    margin-top: 6px !important;
    font-size: 19px !important;
}

.popular-product-view-button {
    min-height: 36px !important;
    margin-top: 9px !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
}

@media (max-width: 767px) {
    .popular-product-card {
        min-height: 375px !important;
        height: 375px !important;
    }

    .popular-product-image-box {
        height: 135px !important;
        min-height: 135px !important;
    }

    .popular-product-image {
        height: 110px !important;
        max-height: 110px !important;
    }

    .popular-product-card-body {
        padding: 10px 12px 12px !important;
    }
}

/* FULL WIDTH PRODUCT IMAGE INSIDE CARD */

.popular-product-card {
    overflow: hidden !important;
}

.popular-product-image-box {
    width: 100% !important;
    height: 175px !important;
    min-height: 175px !important;
    padding: 8px 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.popular-product-image-box a {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popular-product-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 155px !important;
    max-height: 155px !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .35s ease, filter .35s ease !important;
}

.popular-product-card:hover .popular-product-image {
    transform: scale(1.06) !important;
    filter: drop-shadow(0 10px 14px rgba(37,99,235,.22)) !important;
}

.popular-product-card-body {
    min-width: 0 !important;
}

@media (max-width: 767px) {
    .popular-product-image-box {
        height: 145px !important;
        min-height: 145px !important;
        padding: 6px 8px !important;
    }

    .popular-product-image {
        height: 128px !important;
        max-height: 128px !important;
    }
}

/* LARGE EDGE-TO-EDGE PRODUCT IMAGE */

.popular-product-image-box {
    width: 100% !important;
    height: 215px !important;
    min-height: 215px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    border-radius: 18px 18px 0 0 !important;
}

.popular-product-image-box a {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popular-product-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 205px !important;
    max-height: 205px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    transition: transform .35s ease, filter .35s ease !important;
}

.popular-product-card:hover .popular-product-image {
    transform: scale(1.06) !important;
    filter: drop-shadow(0 10px 14px rgba(37,99,235,.22)) !important;
}

@media (max-width: 767px) {
    .popular-product-image-box {
        height: 180px !important;
        min-height: 180px !important;
    }

    .popular-product-image {
        height: 172px !important;
        max-height: 172px !important;
    }
}

/* FINAL FULL-WIDTH EDGE-TO-EDGE IMAGE ALIGNMENT */

.popular-product-image-box {
    width: 100% !important;
    height: 220px !important;
    min-height: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 18px 18px 0 0 !important;
}

.popular-product-image-box a {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.popular-product-image {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 220px !important;
    max-height: 220px !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
}

.popular-product-card:hover .popular-product-image {
    transform: scale(1.06) !important;
}

@media (max-width: 767px) {
    .popular-product-image-box {
        height: 185px !important;
        min-height: 185px !important;
    }

    .popular-product-image {
        height: 185px !important;
        max-height: 185px !important;
    }
}
