* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
    color: #222;
    background: #f7f7f7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    color: #111;
}

a {
    font-family: 'Inter', sans-serif;
}

button {
    font-family: 'Inter', sans-serif;
}

input,
select,
textarea {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

p,
span,
label {
    font-family: 'Inter', sans-serif;
}

/* =========================================================
   HERO SECTION - CLEAN FINAL VERSION
========================================================= */

.hero-section {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 0 35px;
    background: #f7f7f7;
    overflow: visible;
}

/* Don't disturb Bootstrap carousel functionality */
#homeHeroSlider {
    width: 100%;
    margin: 0;
    padding: 0;
}


/* =========================================================
   HERO BANNER WRAPPER
========================================================= */

.hero-banner-wrapper {
    width: 88%;
    max-width: 1350px;
    height: 520px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 36% 64%;
    align-items: stretch;

    background: #f7f7f7;
    overflow: hidden;
}


/* =========================================================
   LEFT CONTENT
========================================================= */

.banner-content-overlay {
    position: relative;

    width: 100%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    padding: 35px 35px 110px 45px;

    text-align: left;
    color: #111;

    z-index: 2;
}

.banner-content-overlay h1 {
    margin: 0 0 14px;

    font-size: 48px;
    font-weight: 800;
    line-height: 1.08;

    color: #111;
}

.banner-content-overlay p {
    margin: 0 0 8px;

    font-size: 20px;
    line-height: 1.4;

    color: #333;
}

.banner-content-overlay .banner-sub {
    max-width: 470px;

    margin: 0 0 22px;

    font-size: 15px;
    line-height: 1.5;

    color: #666;
}


/* =========================================================
   SHOP NOW
========================================================= */

.btn-shop-now {
    padding: 11px 36px;

    border: none;
    border-radius: 30px;

    background: #ff9900;
    color: #fff;

    font-size: 15px;
    font-weight: 600;

    cursor: pointer;
    white-space: nowrap;

    transition: 0.3s ease;
}

.btn-shop-now:hover {
    background: #e68a00;
    transform: translateY(-2px);
}


/* =========================================================
   RIGHT IMAGE
========================================================= */

.hero-image-container {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.hero-banner-image {
    display: block;

    width: 100%;
    height: 100%;

    margin: 0;

    object-fit: contain;
    object-position: center;
}


/* =========================================================
   CAROUSEL ARROWS
========================================================= */

#homeHeroSlider .carousel-control-prev,
#homeHeroSlider .carousel-control-next {
    width: 46px;
    height: 46px;

    top: 50%;
    bottom: auto;

    transform: translateY(-50%);

    background: rgba(0, 0, 0, 0.35);

    border-radius: 50%;

    opacity: 0.75;

    z-index: 10;
}

#homeHeroSlider .carousel-control-prev {
    left: 18px;
}

#homeHeroSlider .carousel-control-next {
    right: 18px;
}

#homeHeroSlider .carousel-control-prev:hover,
#homeHeroSlider .carousel-control-next:hover {
    opacity: 1;

    background: rgba(0, 0, 0, 0.6);
}

#homeHeroSlider .carousel-control-prev-icon,
#homeHeroSlider .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}


/* =========================================================
   PRODUCT CARDS CONTAINER
========================================================= */

.hero-products-container {
    position: relative;

    width: 100%;

    z-index: 5;
}

.hero-product-boxes {
    position: relative;

    width: calc(100% - 80px);
    max-width: 1400px;

    margin: -95px auto 0;

    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 18px;
}


/* =========================================================
   PRODUCT BOX
========================================================= */

.hero-box {
    min-width: 0;
    min-height: 390px;

    padding: 20px;

    display: flex;
    flex-direction: column;

    background: #fff;

    border-radius: 8px;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);

    transition: 0.3s ease;
}

.hero-box:hover {
    transform: translateY(-5px);

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}

.hero-box h5 {
    position: relative;

    margin: 0 0 18px;
    padding-bottom: 10px;

    font-size: 24px;
    font-weight: 700;
    line-height: 30px;

    color: #111;
}

.hero-box h5::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 40px;
    height: 3px;

    background: #ff6b6b;

    border-radius: 2px;
}


/* =========================================================
   PRODUCT GRID
========================================================= */

.hero-product-grid {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 12px;

    flex: 1;
}

.hero-product-item {
    min-width: 0;
}

.hero-product-item a {
    color: #111;
    text-decoration: none;
}

.hero-product-item img {
    display: block;

    width: 100%;
    height: 110px;

    object-fit: contain;

    background: #fafafa;

    border-radius: 6px;

    transition: 0.3s ease;
}

.hero-product-item img:hover {
    transform: scale(1.04);
}

.hero-product-item span {
    display: -webkit-box;

    margin-top: 6px;

    overflow: hidden;

    font-size: 14px;
    line-height: 18px;
    font-weight: 500;

    color: #222;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    line-clamp: 2;
}


/* =========================================================
   CATEGORY
========================================================= */

.category-card {
    height: 120px;

    padding: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f5f5f5;
    color: #111;

    text-decoration: none;
    text-align: center;

    font-weight: 600;

    border-radius: 6px;

    transition: 0.3s ease;
}

.category-card:hover {
    background: #ebebeb;
    transform: scale(1.02);
}

.hero-link {
    margin-top: 15px;

    color: #007185;

    text-decoration: none;

    font-size: 14px;
    font-weight: 600;
}

.hero-link:hover {
    color: #c7511f;
}

/* =========================================================
   LAPTOP
   1200px - 1399px
========================================================= */

@media (max-width: 1399px) {

    .hero-banner-wrapper {
        width: 90%;
        max-width: 1150px;
        height: 460px;

        margin: 0 auto;

        grid-template-columns: 38% 62%;
    }

    .banner-content-overlay {
        padding: 30px 25px 80px 35px;
    }

    .banner-content-overlay h1 {
        font-size: 40px;
    }

    .banner-content-overlay p {
        font-size: 18px;
    }

    .hero-product-boxes {
        width: calc(100% - 60px);

        margin: -75px auto 0;

        gap: 16px;
    }

    .hero-box {
        min-height: 350px;
    }

    .hero-box h5 {
        font-size: 21px;
    }
}


/* =========================================================
   SMALL LAPTOP / TABLET LANDSCAPE
   992px - 1199px
========================================================= */

@media (max-width: 1199px) {

    .hero-banner-wrapper {
        width: 92%;
        max-width: 1000px;
        height: 410px;

        margin: 0 auto;

        grid-template-columns: 40% 60%;
    }

    .banner-content-overlay {
        padding: 25px 20px 55px 25px;
    }

    .banner-content-overlay h1 {
        font-size: 34px;
    }

    .banner-content-overlay p {
        font-size: 16px;
    }

    .banner-content-overlay .banner-sub {
        font-size: 13px;
    }

    .btn-shop-now {
        padding: 9px 27px;
        font-size: 13px;
    }

    .hero-product-boxes {
        width: calc(100% - 40px);

        margin: -50px auto 0;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .hero-box {
        min-height: 320px;
    }
}


/* =========================================================
   TABLET
   768px - 991px
========================================================= */

@media (min-width: 768px) and (max-width: 991px) {

    .hero-section {
        padding-bottom: 25px;
        overflow: hidden;
    }

    .hero-banner-wrapper {
        width: 92%;
        max-width: 850px;
        height: 300px;

        margin: 0 auto;

        display: grid;
        grid-template-columns: 40% 60%;

        align-items: stretch;

        overflow: hidden;
    }


    /* LEFT CONTENT */

    .banner-content-overlay {
        width: 100%;

        padding: 20px 18px 48px 28px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: flex-start;

        text-align: left;
    }

    .banner-content-overlay h1 {
        margin: 0 0 8px;

        font-size: 27px;
        line-height: 1.05;
    }

    .banner-content-overlay p {
        margin: 0 0 5px;

        font-size: 13px;
        line-height: 1.3;
    }

    .banner-content-overlay .banner-sub {
        width: 100%;
        max-width: 260px;

        margin: 0 0 13px;

        font-size: 10px;
        line-height: 1.35;
    }

    .btn-shop-now {
        padding: 7px 20px;

        font-size: 11px;
    }


    /* RIGHT IMAGE */

    .hero-image-container {
        width: 100%;
        height: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    .hero-banner-image {
        display: block;

        width: 100%;
        height: 100%;

        margin: 0;

        object-fit: contain;
        object-position: center;
    }


    /* AMAZON STYLE CARD OVERLAP */

    .hero-product-boxes {
        position: relative;

        width: calc(100% - 24px);

        margin: -55px auto 0;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 12px;

        z-index: 5;
    }


    /* CARDS */

    .hero-box {
        min-width: 0;
        min-height: 300px;

        padding: 16px;
    }

    .hero-box h5 {
        margin-bottom: 14px;

        font-size: 19px;
        line-height: 24px;
    }

    .hero-product-item img {
        height: 95px;
    }

    .category-card {
        height: 95px;
    }


    /* ARROWS */

    #homeHeroSlider .carousel-control-prev,
    #homeHeroSlider .carousel-control-next {
        width: 36px;
        height: 36px;

        top: 50%;
    }

    #homeHeroSlider .carousel-control-prev {
        left: 6px;
    }

    #homeHeroSlider .carousel-control-next {
        right: 6px;
    }
}


/* =========================================================
   MOBILE
   481px - 767px
========================================================= */

@media (min-width: 481px) and (max-width: 767px) {

    .hero-section {
        margin: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 20px !important;

        overflow: hidden;
    }

    #homeHeroSlider {
        width: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* HERO */

    .hero-banner-wrapper {
        width: 100%;
        height: 235px;

        margin: 0 auto;

        display: grid;

        grid-template-columns: 41% 59%;

        align-items: stretch;

        overflow: hidden;
    }


    /* LEFT CONTENT */

    .banner-content-overlay {
        width: 100%;

        padding: 10px 7px 35px 14px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: flex-start;

        text-align: left;
    }

    .banner-content-overlay h1 {
        margin: 0 0 6px;

        font-size: 20px;
        line-height: 1.05;

        font-weight: 800;
    }

    .banner-content-overlay p {
        margin: 0 0 4px;

        font-size: 10px;
        line-height: 1.25;
    }

    .banner-content-overlay .banner-sub {
        width: 100%;
        max-width: 170px;

        margin: 0 0 9px;

        font-size: 8px;
        line-height: 1.3;
    }

    .btn-shop-now {
        padding: 6px 15px;

        font-size: 9px;

        border-radius: 20px;
    }


    /* RIGHT IMAGE */

    .hero-image-container {
        width: 100%;
        height: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    .hero-banner-image {
        display: block;

        width: 100%;
        height: 100%;

        margin: 0;

        object-fit: contain;
        object-position: center;
    }


    /* AMAZON STYLE CARD OVERLAP */

    .hero-product-boxes {
        position: relative;

        width: calc(100% - 12px);

        margin: -38px auto 0;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 8px;

        z-index: 5;
    }


    /* CARDS */

    .hero-box {
        min-width: 0;
        min-height: auto;

        padding: 11px;
    }

    .hero-box h5 {
        margin-bottom: 10px;

        font-size: 16px;
        line-height: 20px;
    }

    .hero-product-grid {
        gap: 7px;
    }

    .hero-product-item img {
        height: 72px;
    }

    .hero-product-item span {
        font-size: 10px;
        line-height: 13px;
    }

    .category-card {
        height: 68px;

        font-size: 10px;
    }

    .hero-link {
        margin-top: 9px;

        font-size: 10px;
    }


    /* ARROWS */

    #homeHeroSlider .carousel-control-prev,
    #homeHeroSlider .carousel-control-next {
        width: 28px;
        height: 28px;

        top: 50%;

        z-index: 10;
    }

    #homeHeroSlider .carousel-control-prev {
        left: 3px;
    }

    #homeHeroSlider .carousel-control-next {
        right: 3px;
    }

    #homeHeroSlider .carousel-control-prev-icon,
    #homeHeroSlider .carousel-control-next-icon {
        width: 12px;
        height: 12px;
    }
}


/* =========================================================
   SMALL MOBILE
   381px - 480px
========================================================= */

@media (min-width: 381px) and (max-width: 480px) {

    .hero-section {
        margin: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 18px !important;

        overflow: hidden;
    }

    #homeHeroSlider {
        width: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* HERO */

    .hero-banner-wrapper {
        width: 100%;
        height: 215px;

        margin: 0;

        display: grid;

        grid-template-columns: 42% 58%;

        align-items: stretch;

        overflow: hidden;
    }


    /* LEFT CONTENT */

    .banner-content-overlay {
        width: 100%;

        padding: 8px 5px 30px 11px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: flex-start;

        text-align: left;
    }

    .banner-content-overlay h1 {
        margin: 0 0 5px;

        font-size: 17px;
        line-height: 1.05;

        font-weight: 800;
    }

    .banner-content-overlay p {
        margin: 0 0 3px;

        font-size: 9px;
        line-height: 1.2;
    }

    .banner-content-overlay .banner-sub {
        width: 100%;
        max-width: 145px;

        margin: 0 0 7px;

        font-size: 7px;
        line-height: 1.25;
    }

    .btn-shop-now {
        padding: 5px 12px;

        font-size: 8px;

        border-radius: 18px;
    }


    /* RIGHT IMAGE */

    .hero-image-container {
        width: 100%;
        height: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    .hero-banner-image {
        display: block;

        width: 100%;
        height: 100%;

        margin: 0;

        object-fit: contain;
        object-position: center;
    }


    /* AMAZON STYLE OVERLAP */

    .hero-product-boxes {
        position: relative;

        width: calc(100% - 10px);

        margin: -35px auto 0;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 7px;

        z-index: 5;
    }


    /* CARDS */

    .hero-box {
        min-width: 0;
        min-height: auto;

        padding: 9px;
    }

    .hero-box h5 {
        margin-bottom: 10px;

        font-size: 14px;
        line-height: 18px;
    }

    .hero-product-grid {
        gap: 7px;
    }

    .hero-product-item img {
        height: 60px;
    }

    .hero-product-item span {
        font-size: 9px;
        line-height: 12px;
    }

    .category-card {
        height: 58px;

        font-size: 9px;
    }

    .hero-link {
        margin-top: 8px;

        font-size: 9px;
    }


    /* ARROWS */

    #homeHeroSlider .carousel-control-prev,
    #homeHeroSlider .carousel-control-next {
        width: 26px;
        height: 26px;

        top: 50%;
    }

    #homeHeroSlider .carousel-control-prev {
        left: 2px;
    }

    #homeHeroSlider .carousel-control-next {
        right: 2px;
    }

    #homeHeroSlider .carousel-control-prev-icon,
    #homeHeroSlider .carousel-control-next-icon {
        width: 11px;
        height: 11px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
   <= 380px
   Samsung Galaxy 360px
========================================================= */

@media (max-width: 380px) {

    .hero-section {
        margin: 0 !important;

        padding-top: 0 !important;
        padding-bottom: 18px !important;

        overflow: hidden;
    }

    #homeHeroSlider {
        width: 100%;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =====================================================
       HERO
    ===================================================== */

    .hero-banner-wrapper {
        width: 100%;
        height: 205px;

        margin: 0;

        display: grid;

        /* Better text/image balance */
        grid-template-columns: 42% 58%;

        align-items: stretch;

        overflow: hidden;
    }


    /* =====================================================
       LEFT CONTENT
    ===================================================== */

    .banner-content-overlay {
        width: 100%;

        padding: 8px 4px 32px 10px;

        display: flex;
        flex-direction: column;

        justify-content: center;
        align-items: flex-start;

        text-align: left;
    }

    .banner-content-overlay h1 {
        margin: 0 0 5px;

        font-size: 16px;
        line-height: 1.05;

        font-weight: 800;
    }

    .banner-content-overlay p {
        margin: 0 0 3px;

        font-size: 8.5px;
        line-height: 1.25;
    }

    .banner-content-overlay .banner-sub {
        width: 100%;
        max-width: 140px;

        margin: 0 0 7px;

        font-size: 7px;
        line-height: 1.25;
    }

    .btn-shop-now {
        padding: 5px 12px;

        font-size: 8px;
        line-height: 1.2;

        border-radius: 15px;
    }


    /* =====================================================
       RIGHT IMAGE
    ===================================================== */

    .hero-image-container {
        width: 100%;
        height: 100%;

        display: flex;

        align-items: center;
        justify-content: center;

        overflow: hidden;
    }

    .hero-banner-image {
        display: block;

        width: 100%;
        height: 100%;

        margin: 0;

        object-fit: contain;
        object-position: center;
    }

    .hero-product-boxes {
        position: relative;

        width: calc(100% - 10px);
        margin: -38px auto 0;

        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 6px;

        z-index: 5;
    }

    .hero-box {
        min-width: 0;
        min-height: auto;

        padding: 8px;

        border-radius: 7px;
    }

    .hero-box h5 {
        margin: 0 0 9px;

        padding-bottom: 7px;

        font-size: 13px;
        line-height: 17px;
    }

    .hero-box h5::after {
        width: 38px;
        height: 2px;
    }

    .hero-product-grid {
        display: grid;

        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 6px;
    }

    .hero-product-item {
        min-width: 0;
    }

    .hero-product-item img {
        display: block;

        width: 100%;
        height: 54px;

        object-fit: contain;
    }

    .hero-product-item span {
        margin-top: 4px;

        font-size: 8.5px;
        line-height: 11px;
    }

    .category-card {
        height: 54px;

        font-size: 9px;
    }

    .hero-link {
        margin-top: 8px;

        font-size: 9px;
    }
    #homeHeroSlider .carousel-control-prev,
    #homeHeroSlider .carousel-control-next {
        width: 26px;
        height: 26px;

        top: 50%;

        z-index: 10;
    }

    #homeHeroSlider .carousel-control-prev {
        left: 2px;
    }

    #homeHeroSlider .carousel-control-next {
        right: 2px;
    }

    #homeHeroSlider .carousel-control-prev-icon,
    #homeHeroSlider .carousel-control-next-icon {
        width: 11px;
        height: 11px;
    }
}


.hero-link:focus-visible,
.category-card:focus-visible {
    outline: 2px solid #ff6b6b;
    outline-offset: 2px;
}


@media (prefers-reduced-motion: reduce) {

    .hero-section *,
    .hero-section *::before,
    .hero-section *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}


/* ==========================================================
   SHOP BY CATEGORY - AMAZON STYLE (Full Width)
   ========================================================== */

.container {
    max-width: 100% !important;
    padding: 0 18px !important;
    margin: 0 auto;
}

@media (min-width: 1400px) {
    .container {
        padding: 0 24px !important;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 12px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px !important;
    }
}

.category-section {
    padding: 60px 0;
    background: #f7f7f7;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.section-header h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    color: #0d4b57;
    line-height: 1.2;
}

.section-header a {
    text-decoration: none;
    color: #007185;
    font-size: 15px;
    font-weight: 600;
    transition: color 0.3s ease;
}

.section-header a:hover {
    color: #C7511F;
}

.section-header a i {
    font-size: 12px;
}

/* ==========================
   LAYOUT - WIDER (Full Width)
========================== */

.category-layout {
    display: flex;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    align-items: flex-start;
    width: 100%;
    max-width: 100%;
}

/* ==========================
   CATEGORY MENU - SCROLLABLE
========================== */

.category-menu {
    width: 280px;
    min-width: 280px;
    max-width: 280px;
    background: #fafafa;
    border-right: 1px solid #ececec;
    max-height: 520px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 6px 0;
    flex-shrink: 0;
}

.category-menu::-webkit-scrollbar {
    width: 5px;
}

.category-menu::-webkit-scrollbar-track {
    background: #f3f3f3;
}

.category-menu::-webkit-scrollbar-thumb {
    background: #bdbdbd;
    border-radius: 20px;
}

.category-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* ✅ Main Category Item - NO "L" Type Sign */
.category-menu-item {
    padding: 11px 18px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
    position: relative;
    user-select: none;
}

.category-menu-item:hover {
    background: #f0f0f0;
    color: #007185;
}

.category-menu-item.active {
    background: #e8f4f8;
    color: #007185;
    border-left-color: #007185;
    font-weight: 600;
}

/* ✅ Arrow (▶) ONLY for categories with children - NOT "L" type */
.category-menu-item.has-children {
    position: relative;
}

.category-menu-item.has-children::after {
    content: '▶';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #999;
    transition: transform 0.3s ease;
}

.category-menu-item.has-children.expanded::after {
    transform: translateY(-50%) rotate(90deg);
}

/* ✅ Sub-category items - NO "L" type sign (└) */
.category-menu-item.sub-category {
    padding-left: 40px !important;
    font-size: 13px;
    font-weight: 400;
    color: #555;
    border-left-color: transparent;
    display: none !important; /* Hidden by default */
}

/* ✅ Remove "L" type sign from sub-categories */
.category-menu-item.sub-category::before {
    display: none !important;
    content: '' !important;
}

/* ✅ Sub-category level 2 */
.category-menu-item.sub-category-level-2 {
    padding-left: 58px !important;
    font-size: 12px;
    color: #666;
}

/* ✅ Show sub-categories ONLY when parent has 'expanded' class (Click) */
.category-menu-item.has-children.expanded ~ .sub-category-wrapper .sub-category,
.category-menu-item.has-children.expanded + .sub-category-wrapper .sub-category {
    display: block !important;
}

.category-menu-item.has-children.expanded.active ~ .sub-category-wrapper .sub-category {
    display: block !important;
}

.category-menu-item.sub-category.active {
    background: #f0f7fa;
    color: #007185;
    border-left-color: #007185;
}

.category-menu-item.sub-category:hover {
    background: #f5f5f5;
}

/* ✅ Sub-category wrapper - FAST OPEN/CLOSE */
.sub-category-wrapper {
    overflow: hidden;
    transition: none !important; /* ✅ Fast - no delay */
}

/* ❌ Hover band - ONLY CLICK */
.category-menu-item.has-children:hover + .sub-category-wrapper {
    display: none !important;
}

.category-menu-item.has-children:hover + .sub-category-wrapper .sub-category {
    display: none !important;
}

/* ==========================
   PRODUCTS - WIDER GRID
========================== */

.category-products-wrapper {
    flex: 1;
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.category-products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    width: 100%;
}

/* ==========================
   CARD
========================== */

.category-product-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: #222;
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 10px;
    background: #fff;
    border: 1px solid transparent;
}

.category-product-card:hover {
    transform: translateY(-4px);
    border-color: #e0e0e0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.category-product-card img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    display: block;
    background: #fafafa;
}

.category-product-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px 4px 4px;
}

.category-product-info h5 {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    min-height: 40px;
    margin-bottom: 8px;
    color: #111;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
}

.category-product-price {
    margin-top: auto;
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.category-product-price span {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #777;
    font-weight: 400;
}

/* ==========================
   VIEW MORE
========================== */

.view-more-wrap {
    text-align: center;
    margin-top: 25px;
}

.view-more-btn {
    display: inline-block;
    padding: 10px 32px;
    background: #111;
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none;
    cursor: pointer;
}

.view-more-btn:hover {
    background: #007185;
    color: #fff;
}

.view-more-btn i {
    font-size: 12px;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 1400px) {
    .category-products-grid {
        gap: 20px;
    }
    .category-product-card img {
        height: 180px;
    }
}

@media (max-width: 1200px) {
    .category-menu {
        width: 240px;
        min-width: 240px;
        max-width: 240px;
    }
    .category-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    .category-product-card img {
        height: 170px;
    }
}

@media (max-width: 992px) {
    .category-menu {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    .category-menu-item {
        padding: 10px 16px;
        font-size: 13px;
    }
    .category-menu-item.sub-category {
        padding-left: 32px !important;
        font-size: 12px;
    }
    .category-menu-item.sub-category-level-2 {
        padding-left: 48px !important;
        font-size: 11px;
    }
    .category-products-wrapper {
        padding: 18px 20px;
    }
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .category-product-card img {
        height: 160px;
    }
    .category-product-info h5 {
        font-size: 13px;
        line-height: 18px;
        min-height: 36px;
    }
    .category-product-price {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .category-section {
        padding: 50px 0;
    }
    .section-header {
        margin-bottom: 20px;
    }
    .section-header h2 {
        font-size: 26px;
    }
    .category-layout {
        flex-direction: column;
        border-radius: 10px;
    }
    .category-menu {
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        max-height: none;
        display: flex;
        overflow-x: auto;
        overflow-y: hidden;
        white-space: nowrap;
        border-right: none;
        border-bottom: 1px solid #ececec;
        padding: 4px 0;
        scrollbar-width: none;
    }
    .category-menu::-webkit-scrollbar {
        display: none;
    }
    .category-menu-item {
        flex: 0 0 auto;
        padding: 10px 18px;
        font-size: 13px;
        border-left: none;
        border-bottom: 2px solid transparent;
    }
    .category-menu-item.active {
        border-left-color: transparent;
        border-bottom-color: #007185;
    }
    .category-menu-item.has-children::after {
        display: none;
    }
    .category-menu-item.sub-category {
        display: none !important;
    }
    .category-menu-item.sub-category-level-2 {
        display: none !important;
    }
    .sub-category-wrapper {
        display: none !important;
    }
    .category-products-wrapper {
        padding: 15px;
    }
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    .category-product-card img {
        height: 150px;
    }
    .category-product-info h5 {
        font-size: 13px;
        line-height: 18px;
        min-height: 36px;
    }
    .category-product-price {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .category-section {
        padding: 40px 0;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    .section-header h2 {
        font-size: 22px;
    }
    .category-products-wrapper {
        padding: 12px;
    }
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .category-product-card {
        padding: 6px;
    }
    .category-product-card img {
        height: 130px;
    }
    .category-product-info {
        padding: 8px 2px 2px;
    }
    .category-product-info h5 {
        font-size: 12px;
        line-height: 16px;
        min-height: 32px;
        margin-bottom: 4px;
    }
    .category-product-price {
        font-size: 15px;
    }
    .category-product-price span {
        font-size: 10px;
    }
    .view-more-btn {
        padding: 8px 24px;
        font-size: 13px;
        width: 100%;
        border-radius: 6px;
    }
}

@media (max-width: 400px) {
    .category-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .category-product-card img {
        height: 110px;
    }
    .category-product-info h5 {
        font-size: 11px;
        line-height: 15px;
        min-height: 30px;
    }
    .category-product-price {
        font-size: 13px;
    }
    .category-products-wrapper {
        padding: 8px;
    }
}

/* =========================================================
   FULL WIDTH PREMIUM GRADIENTS
========================================================= */

#homeHeroSlider .banner-ugreen {
    background: linear-gradient(
        90deg,
        #f7faf8 0%,
        #edf4ef 50%,
        #e3eee7 100%
    );
}

#homeHeroSlider .banner-70mai {
    background: linear-gradient(
        90deg,
        #fafbfc 0%,
        #eef1f5 50%,
        #e4e9ef 100%
    );
}

#homeHeroSlider .banner-joyroom {
    background: linear-gradient(
        90deg,
        #f7fbff 0%,
        #eaf3fb 50%,
        #dcebf8 100%
    );
}

#homeHeroSlider .banner-toocki {
    background: linear-gradient(
        90deg,
        #fcfaf7 0%,
        #f5eee6 50%,
        #eadfd3 100%
    );
}


/* IMPORTANT */
#homeHeroSlider .hero-banner-wrapper {
    background: transparent !important;
}


/* =========================================================
   COOKIE CONSENT
========================================================= */

.cookie-consent {
    position: fixed;

    left: 0;
    right: 0;
    bottom: 0;

    z-index: 99999;

    padding: 16px 24px;

    background: #ffffff;

    border-top: 1px solid #dfe3e8;

    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);

    display: none;
}


/* Show banner */

.cookie-consent.show {
    display: block;
}


/* Inner layout */

.cookie-consent-inner {
    width: 100%;
    max-width: 1320px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


/* =========================================================
   TEXT
========================================================= */

.cookie-consent-text {
    max-width: 800px;
}

.cookie-consent-text h3 {
    margin: 0 0 5px;

    color: #111827;

    font-size: 16px;
    font-weight: 700;
}

.cookie-consent-text p {
    margin: 0;

    color: #4b5563;

    font-size: 13px;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #0866e8;

    font-weight: 600;

    text-decoration: none;
}

.cookie-consent-text a:hover {
    text-decoration: underline;
}


/* =========================================================
   BUTTONS
========================================================= */

.cookie-consent-actions {
    display: flex;
    align-items: center;

    gap: 10px;

    flex-shrink: 0;
}

.cookie-btn {
    min-height: 42px;

    padding: 10px 18px;

    border-radius: 5px;

    font-family: inherit;

    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease;
}


/* Reject */

.cookie-btn-reject {
    background: #ffffff;

    color: #1f2937;

    border: 1px solid #cfd5dd;
}

.cookie-btn-reject:hover {
    background: #f5f6f8;

    border-color: #aeb6c1;
}


/* Accept */

.cookie-btn-accept {
    background: #0866e8;

    color: #ffffff;

    border: 1px solid #0866e8;
}

.cookie-btn-accept:hover {
    background: #0758c9;

    border-color: #0758c9;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    .cookie-consent-inner {
        align-items: flex-start;

        flex-direction: column;

        gap: 15px;
    }

    .cookie-consent-actions {
        width: 100%;

        justify-content: flex-end;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 576px) {

    .cookie-consent {
        padding: 18px 15px;
    }

    .cookie-consent-text h3 {
        font-size: 15px;
    }

    .cookie-consent-text p {
        font-size: 12.5px;
        line-height: 1.55;
    }

    .cookie-consent-actions {
        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 8px;
    }

    .cookie-btn {
        width: 100%;

        padding: 10px 12px;

        font-size: 12px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .cookie-consent-actions {
        grid-template-columns: 1fr;
    }

}