.category-section {
    background: #ffffff;
    border-radius: 20px;
    padding: 35px 25px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f1f1;
}


/* =====================================================
   HEADING
===================================================== */

.category-heading {
    margin-bottom: 28px;
}

.category-mini-title {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #ff4747;
    margin-bottom: 5px;
}

.new-product-title {
    font-size: 27px;
    font-weight: 800;
    color: #222;
    margin: 0;
    line-height: 1.4;
}

.heading-line {
    width: 70px;
    height: 3px;
    background: #eeeeee;
    margin: 12px auto 8px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.heading-line span {
    display: block;
    width: 35px;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ff4747,
        #ff7a18
    );
    margin: auto;
    border-radius: 20px;
}

.category-subtitle {
    color: #888;
    font-size: 14px;
    margin: 0;
}


/* =====================================================
   CATEGORY MENU
===================================================== */

.category-menu-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 13px;
    position: relative;
}


/* =====================================================
   CATEGORY ITEM
===================================================== */

.cat-item-wrapper {
    position: relative;
    display: inline-block;
}


/* =====================================================
   MAIN CATEGORY BUTTON
===================================================== */

.cat-button {
    display: flex;
    align-items: center;
    gap: 9px;

    min-height: 52px;
    padding: 7px 14px 7px 8px;

    background: #fff;

    border: 1px solid #e8e8e8;
    border-radius: 50px;

    text-decoration: none !important;
    color: #333;

    font-size: 14px;
    font-weight: 600;

    box-shadow: 0 3px 12px rgba(0,0,0,0.04);

    transition:
        all 0.3s ease;

    position: relative;
    z-index: 10;
}


/* =====================================================
   CATEGORY IMAGE
===================================================== */

.cat-image-box {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #f7f7f7;

    border-radius: 50%;

    overflow: hidden;

    flex-shrink: 0;

    transition: all 0.3s ease;
}

.cat-icon-small {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.4s ease;
}


/* No image */

.cat-image-box.no-image {
    color: #ff4747;
    font-size: 15px;
}


/* =====================================================
   CATEGORY NAME
===================================================== */

.cat-name {
    white-space: nowrap;
    transition: color 0.3s ease;
}


/* =====================================================
   ARROW
===================================================== */

.cat-arrow {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: #999;

    transition: transform 0.3s ease;
}


/* =====================================================
   BUTTON HOVER
===================================================== */

.cat-button:hover {
    color: #fff;

    background: linear-gradient(
        135deg,
        #ff4747,
        #ff6b35
    );

    border-color: transparent;

    transform: translateY(-3px);

    box-shadow:
        0 8px 20px rgba(255, 71, 71, 0.22);
}


.cat-button:hover .cat-image-box {
    background: rgba(255,255,255,0.2);
}


.cat-button:hover .cat-icon-small {
    transform: scale(1.12);
}


.cat-button:hover .cat-arrow {
    color: #fff;
    transform: rotate(180deg);
}


/* =====================================================
   DROPDOWN
===================================================== */

.cat-dropdown {
    position: absolute;

    top: calc(100% + 8px);
    left: 0;

    min-width: 220px;

    background: #fff;

    border: 1px solid #eeeeee;

    border-radius: 13px;

    box-shadow:
        0 12px 35px rgba(0,0,0,0.12);

    list-style: none;

    padding: 8px 0;

    margin: 0;

    display: none;

    z-index: 9999;

    overflow: hidden;

    animation: categoryDropdown 0.25s ease;
}


/* Invisible bridge
   Dropdown এবং button-এর gap ঠিক রাখে */

.cat-dropdown::before {
    content: "";

    position: absolute;

    top: -10px;
    left: 0;

    width: 100%;
    height: 10px;
}


/* =====================================================
   DROPDOWN TITLE
===================================================== */

.dropdown-title {
    padding: 10px 18px;

    font-size: 12px;

    font-weight: 700;

    color: #ff4747;

    text-transform: uppercase;

    letter-spacing: 0.5px;

    border-bottom: 1px solid #f3f3f3;

    background: #fafafa;
}


/* =====================================================
   DROPDOWN ITEM
===================================================== */

.cat-dropdown li a {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 10px 18px;

    color: #555;

    text-decoration: none;

    font-size: 13px;

    font-weight: 500;

    transition: all 0.25s ease;
}


/* Sub Icon */

.sub-icon {
    width: 20px;
    height: 20px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f6f6f6;

    color: #999;

    transition: all 0.25s ease;
}


/* Dropdown hover */

.cat-dropdown li a:hover {
    background: #fff5f5;

    color: #ff4747;

    padding-left: 23px;
}


.cat-dropdown li a:hover .sub-icon {
    background: #ff4747;

    color: #fff;
}


/* =====================================================
   SHOW DROPDOWN
===================================================== */

.cat-item-wrapper:hover .cat-dropdown {
    display: block;
}


/* =====================================================
   EMPTY SUBCATEGORY
===================================================== */

.no-subcategory {
    display: block;

    padding: 12px 18px;

    font-size: 13px;

    color: #999;
}


/* =====================================================
   ANIMATION
===================================================== */

@keyframes categoryDropdown {

    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {

    .category-section {
        padding: 30px 18px;
    }

    .category-menu-bar {
        gap: 10px;
    }

    .cat-button {
        min-height: 48px;
        padding-right: 12px;
    }

    .cat-image-box {
        width: 34px;
        height: 34px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .category-section {
        padding: 25px 12px;

        border-radius: 15px;
    }

    .new-product-title {
        font-size: 22px;
    }

    .category-subtitle {
        font-size: 13px;
    }

    .category-menu-bar {

        justify-content: flex-start;

        flex-wrap: nowrap;

        overflow-x: auto;

        overflow-y: visible;

        white-space: nowrap;

        padding: 5px 3px 15px;

        scrollbar-width: thin;
    }

    .category-menu-bar::-webkit-scrollbar {
        height: 4px;
    }

    .category-menu-bar::-webkit-scrollbar-thumb {
        background: #ddd;
        border-radius: 10px;
    }

    .cat-item-wrapper {
        flex-shrink: 0;
    }

    .cat-button {
        min-height: 46px;

        padding: 6px 12px 6px 6px;

        font-size: 13px;
    }

    .cat-image-box {
        width: 32px;
        height: 32px;
    }

    .cat-dropdown {
        left: 0;
        min-width: 200px;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .category-section {
        margin-left: -5px;
        margin-right: -5px;

        padding: 22px 10px;
    }

    .category-heading {
        margin-bottom: 20px;
    }

    .new-product-title {
        font-size: 20px;
    }

    .category-mini-title {
        font-size: 10px;
    }

}
/* =====================================================
   PRODUCT SEARCH AREA
===================================================== */

.product-search-area {
    width: 100%;
    max-width: 850px;
    margin: 0 auto 30px;
}

.product-search-form {
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;

    width: 100%;
    height: 58px;

    background: #fff;

    border: 1px solid #e5e5e5;

    border-radius: 50px;

    padding: 5px;

    box-shadow:
        0 5px 20px rgba(0, 0, 0, 0.07);

    transition: all 0.3s ease;
}


/* Search box focus */

.search-input-wrapper:focus-within {
    border-color: #ff4747;

    box-shadow:
        0 8px 25px rgba(255, 71, 71, 0.15);
}


/* Search Icon */

.search-icon {
    width: 45px;

    text-align: center;

    color: #999;

    font-size: 17px;
}


/* Input */

.product-search-input {
    flex: 1;

    height: 100%;

    border: none !important;

    outline: none !important;

    background: transparent !important;

    box-shadow: none !important;

    font-size: 14px;

    color: #333;

    padding: 0 10px;
}


.product-search-input::placeholder {
    color: #aaa;
}


/* Search Button */

.product-search-btn {
    height: 48px;

    min-width: 125px;

    border: none;

    border-radius: 40px;

    background: linear-gradient(
        135deg,
        #ff4747,
        #ff6b35
    );

    color: #fff;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    transition: all 0.3s ease;
}


.product-search-btn:hover {
    transform: translateY(-1px);

    box-shadow:
        0 6px 15px rgba(255, 71, 71, 0.25);
}


/* Clear button */

.search-clear {
    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;
    justify-content: center;

    color: #999;

    text-decoration: none !important;

    border-radius: 50%;

    transition: all 0.2s ease;
}


.search-clear:hover {
    background: #f5f5f5;

    color: #ff4747;
}


/* =====================================================
   SEARCH RESULT TEXT
===================================================== */

.search-result-info {
    text-align: center;

    margin: -15px 0 20px;

    font-size: 14px;

    color: #777;
}


.search-result-info strong {
    color: #ff4747;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .product-search-area {
        margin-bottom: 25px;
    }

    .search-input-wrapper {
        height: 52px;
    }

    .search-icon {
        width: 38px;
        font-size: 15px;
    }

    .product-search-input {
        font-size: 13px;

        min-width: 0;
    }

    .product-search-input::placeholder {
        font-size: 12px;
    }

    .product-search-btn {
        height: 42px;

        min-width: 48px;

        width: 48px;

        padding: 0;
    }

    .product-search-btn span {
        display: none;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .product-search-input::placeholder {
        font-size: 11px;
    }

    .search-input-wrapper {
        height: 50px;
    }

    .product-search-btn {
        width: 42px;
        min-width: 42px;
        height: 40px;
    }

}