/* ----------------- Product Hero Section ---------------------- */
section.product-section {
    width: 100%;
    padding: 100px 0;
    background-image: url('../images/contact.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    transform: scaleX(-1);
}

/* Dark overlay */
section.product-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
}

/* Content */
section.product-section .product-content {
    position: relative;
    color: var(--color-white);
    transform: scaleX(-1);
}

section.product-section .product-content h2 {
    font-size: 40px;
    font-weight: 600;
    font-family: var(--font2);
    margin-bottom: 10px;
}

section.product-section .product-content p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 620px;
}

/* Responsive */
@media (max-width: 600px) {
    section.product-section .product-content h2 {
        font-size: 26px;
    }

    section.product-section .product-content p {
        font-size: 14px;
    }

    section.product-section {
        padding: 60px 15px;
    }
}

/* -------------------- Top Seller Products Section ---------------- */
section.top-section {
    padding: 30px 0;
    background-color: #F5FBFF;
}

section.top-section .title {
    text-align: center;
    font-family: var(--font2);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 30px;
    line-height: 1;

    /* Primary / Gradient Text Effect */
    background: var(--color-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;

    width: 100%;
    margin: 16px 0;

    /* Fade-up animation */
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s ease forwards;
}

section.top-section .title::after {
    content: "";
    display: block;
    width: 120px;
    height: 4px;
    background: var(--color-primary);
    margin: 12px auto 0;
    border-radius: 8px;
}

/* Smooth fade + slide */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section.top-section .top-main {
    display: flex;
    width: 100%;
    height: auto;
    margin-top: 26px;
    gap: 15px;
}

section.top-section .top-main .top-left {
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

section.top-section .top-main .top-left .sidebar-box {
    background: var(--color-white);
    border: 1px solid #CACACA;
    border-radius: 8px;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 20px;
}

/* Title */
section.top-section .top-main .top-left .sidebar-box h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-black);
    margin-bottom: 15px;
}

section.top-section .top-main .top-left .sidebar-box .category-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ==================== MAIN CATEGORY ITEM (LEVEL 1) ==================== */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item {
    background: var(--color-white);
    color: #0d4a8f;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    user-select: none;
    position: relative;
    transition: 0.25s ease;
}

/* Text Style */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item span {
    font-size: 0.85rem;
    color: var(--color-blue);
    font-weight: 600;
}

/*  FIXED ARROW CSS */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item .arrow {
    position: absolute;
    right: 14px;
    top: 18px;
    font-size: 14px;
    pointer-events: none;
    transition: transform 0.3s ease;
    transform: none;
}

section.top-section .top-main .top-left .sidebar-box .category-list .category-item.open .arrow {
    transform: rotate(90deg);
    color: var(--color-blue);
}

/* Hover + Active */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item:hover,
section.top-section .top-main .top-left .sidebar-box .category-list .category-item.open {
    background: #e9f3ff;
    color: var(--color-blue);
}

/* ==================== SUB-CATEGORY LIST (LEVEL 2 CONTAINER) ==================== */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category {
    width: 100%;
    display: block;
    overflow: hidden;
    border-left: 2px solid var(--color-blue);
    max-height: 0;
    opacity: 0;
    background: #ffffff;
    margin-top: 0;
    border-top: 1px solid transparent;
    transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
    padding: 0;
}

section.top-section .top-main .top-left .sidebar-box .category-list .category-item.open>.sub-category {
    max-height: 800px;
    opacity: 1;
    margin-top: 12px;
    padding-top: 5px;
    border-top: 1px solid #dce8ff;
}

/* ==================== LEVEL 2 ITEMS ==================== */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category li {
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #004c91;
    cursor: pointer;
    border-radius: 4px;
    position: relative;
    transition: 0.3s ease;
    list-style: none;
    border-bottom: 1px solid #f0f7ff;
}

section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category li:hover {
    background: #eef6ff;
    color: var(--color-blue);
    padding-left: 20px;
}

/* ==================== LEVEL 2 WITH DROPDOWN (SUB-ITEM) ==================== */
section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category .sub-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #004c91;
    cursor: pointer;
    transition: 0.3s ease;
}

section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category .sub-item .sub-item:hover {
    background: #eef6ff;
    color: var(--color-blue);
}

section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category .sub-item .sub-arrow {
    font-size: 12px;
    transition: transform 0.3s ease;
}

section.top-section .top-main .top-left .sidebar-box .category-list .category-item>.sub-category .sub-item.open .sub-arrow {
    transform: rotate(90deg);
}

/* ==================== LEVEL 3 CONTAINER ==================== */
.sub-sub-category {
    width: 100%;
    flex-basis: 100%;
    border-left: 2px dashed #a8c7ff;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    background: #fcfdff;
    border-top: 1px dashed #c7ddff;
    padding: 0;
    margin-top: 0;
}

.sub-item.open>.sub-sub-category {
    max-height: 350px;
    opacity: 1;
    padding: 6px 0;
    margin-top: 8px;
}

.sub-sub-category li {
    padding: 8px 18px 8px 30px;
    font-size: 0.85rem;
    cursor: pointer;
    border-bottom: none;
}

.sub-sub-category li:hover {
    background: #e9f3ff;
    color: var(--color-blue);
    padding-left: 35px;
}

section.top-section .top-main .top-left .help-box {
    width: 100%;
    background: var(--color-blue);
    border: 1px solid #cbdaf8;
    border-radius: 8px;
    padding: 20px;
    color: var(--color-white);
}

/* Title */
section.top-section .top-main .top-left .help-box h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
}

/* Text */
section.top-section .top-main .top-left .help-box p {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--primary-light);
    margin-bottom: 15px;
}

/* Button */
section.top-section .top-main .top-left .help-box .btn-contact {
    width: 100%;
    padding: 6px;
    font-size: 1.1rem;
    background: var(--color-white);
    border: 2px solid var(--color-white);
    text-decoration: none;
    display: block;
    text-align: center;
    border-radius: 6px;
    color: var(--color-black);
    cursor: pointer;
    transition: 0.3s ease;
}

section.top-section .top-main .top-left .help-box .btn-contact:hover {
    background: transparent;
    color: var(--color-white);
}

/* Right side */
section.top-section .top-main .top-right {
    width: calc(100% - 300px);
    /* height: 730px;
    overflow-y: scroll;
    scrollbar-width: none; */
    background-color: var(--color-white);
    color: #fff;
    padding: 20px;
    border: 1px solid #CACACA;
    border-radius: 8px;
}

section.top-section .top-main .top-right .product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

section.top-section .top-main .top-right .product-grid .product-box {
    position: relative;
    background: #fff;
    border: 1px solid #d6e4ff;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section.top-section .top-main .top-right .product-grid .product-box .product-top {
    background: #F4F7FA;
    position: relative;
    padding: 20px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

section.top-section .top-main .top-right .product-grid .product-box .product-bottom {
    background: var(--color-white);
    padding: 15px;
    border-radius: 10px;
}

section.top-section .top-main .top-right .product-grid .product-box .product-bottom h4 {
    font-size: 20px;
}

section.top-section .top-main .top-right .product-grid .product-box img {
    width: 200px;
    /* ⬅ bigger */
    height: 200px;
    object-fit: contain;
    margin: 5px auto;
    display: block;
}


section.top-section .top-main .top-right .product-grid .product-box h4 {
    font-size: 1.4rem;
    color: var(--color-black);
    font-weight: 600;
    margin-bottom: 8px;
}

section.top-section .top-main .top-right .product-grid .product-box p {
    font-size: 0.9rem;
    color: var(--text-grey);
    margin-bottom: 15px;
}

section.top-section .top-main .top-right .product-grid .product-box .btn-view {
    background: var(--color-black);
    color: var(--color-white);
    border: 2px solid var(--color-black);
    width: 100%;
    padding: 6px 14px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    margin-top: auto;
    display: block;
    text-decoration: none;
    transition: 0.3s ease;
}

section.top-section .top-main .top-right .product-grid .product-box .btn-view:hover {
    background: transparent;
    color: var(--color-black);
    border: 2px solid var(--color-black);
}

@media (max-width: 1240px) {
    section.top-section .top-main .top-right .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1035px) {
    section.top-section .top-main .top-right .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    section.top-section .top-main .top-right .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    section.top-section .top-main .top-left .sidebar-box .category-list {
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    section.top-section .top-main .top-right .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    section.top-section .title {
        font-size: 1.6rem;
    }

    section.top-section .top-main .top-right .product-grid .product-box .product-bottom h4 {
        font-size: 18px;
    }

    section.top-section .top-main .top-left .sidebar-box .category-item {
        font-size: 14px;
    }

    section.top-section .top-main .top-left .sidebar-box h3 {
        display: none;
    }

    section.top-section .top-main .top-left .help-box {
        display: none;
    }

    section.top-section .top-main .top-left .sidebar-box,
    section.top-section .top-main .top-left .help-box {
        width: 100%;
        padding: 8px;
    }

    section.top-section .top-main {
        flex-direction: column;
    }

    section.top-section .top-main .top-right {
        padding: 10px;
    }

    section.top-section .top-main .top-left,
    section.top-section .top-main .top-right {
        width: 100%;
        border-radius: 8px;
    }

    section.top-section .top-main .top-left {
        margin-bottom: 12px;
    }
}

@media (max-width: 580px) {
    section.top-section .top-main .top-right .product-grid {
        grid-template-columns: repeat(1, 1fr);
    }
}