.discount {
    width: 100%;
    height: 480px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 100px;
    padding: 48px 40px;
    background-image: url('/static/img/discount-bg.jpg');
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
}

.discount .info-box {
    text-align: center;
    color: white;
}

.discount .info-box-title {
    font-size: clamp(12px, 1.5vw, 14px);
    margin: 0 0 24px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.discount .info-box-description {
    font-size: clamp(24px, 5vw, 56px);
    margin: 0 0 24px;
    text-transform: capitalize;
    letter-spacing: 2px;
}

.discount .info-box .btn1:hover {
    background-color: black;
    color: white;
}

.product-category {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 60px 40px;
}

.slidebar-product-category {
    width: 280px;
    flex-shrink: 0;
    overflow-y: auto;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    position: sticky;
    top: 100px;
}

.slidebar-product-category::-webkit-scrollbar {
    display: none;
}

.slidebar-product-category-title {
    text-transform: uppercase;
}

.product-search-container {
    display: flex;
    margin-top: 15px;
    margin-bottom: 15px;
}

#product-search {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    outline: none;
}

#product-search:focus {
    border-color: #F6A355;
}

#search-button {
    padding: 8px 12px;
    background-color: #F6A355;
    color: white;
    border: 1px solid #F6A355;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#search-button:hover {
    background-color: #e08a38;
}

#search-button i {
    font-size: 12px;
}

.slidebar-product-category-list {
    list-style: none;
    user-select: none;
}

.slidebar-product-category-list-item {
    width: 100%;
    padding: 12px 0;
    border: none;
    outline: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    background-color: transparent;
}

.slidebar-product-category-item-title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

.slidebar-product-category-item-title-span {
    font-size: 18px;
    font-weight: 500;
    color: #555;
}

.slidebar-product-category-item-title i {
    font-size: 18px;
    color: #555;
}

.slidebar-product-category-item-title .material-symbols-outlined {
    font-size: 24px;
    color: #555;
}

.slidebar-product-category-list-item .plus-icon,
.slidebar-product-category-list-item .minus-icon {
    color: #555;
}

.slidebar-product-category-list-item .minus-icon {
    display: none;
}

.slidebar-product-category-list-item.openproduct .plus-icon {
    display: none;
}

.slidebar-product-category-list-item.openproduct .minus-icon {
    display: inline-flex;
}

.slidebar-product-category-sublist {
    max-height: 0;
    overflow-y: hidden;
    transition: max-height 0.3s ease;
    margin: 0;
    padding: 0 10px;
    list-style: none;
}

.slidebar-product-category-list-item.openproduct+.slidebar-product-category-sublist {
    max-height: 1000px;
    overflow-y: auto;
    scrollbar-width: none;
}

.slidebar-product-category-sublist::-webkit-scrollbar {
    display: none;
}

.slidebar-product-category-sublist li {
    border-bottom: 1px solid #eee;
}

.slidebar-product-category-sublist button {
    display: block;
    padding: 8px 12px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
}

.slidebar-product-category-sublist button:hover,
.slidebar-product-category-sublist button:active {
    color: #000;
}

.product-main {
    flex: 1;
    height: 100%;
    width: 100%;
    padding: 20px;
    background-color: white;
    border-radius: 16px;
}

.product-main-container {
    display: none;
}

.product-main-container.active {
    display: block;
}

.product-main-title h5 {
    text-transform: uppercase;
}

.product-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 32px);
    padding: 24px 0;
}

.product-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 12px;
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-4px);
}

.product-img {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: 8px;
}

.product-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.product-favorite {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: transparent;
    border: 0;
}

.heart-icon {
    font-size: 14px;
    padding: 6px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: display 0.3s ease;
}

.icon-heart-1 {
    display: none;
}

.product-favorite.openfavorite .icon-heart-0 {
    display: none;
}

.product-favorite.openfavorite .icon-heart-1 {
    display: inline-flex;
}

.product-desc {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
}

.product-desc-title {
    display: flex;
    align-items: center;
}

.product-desc-title span {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    background-color: #F6A355;
    border-radius: 32px;
    margin-right: 8px;
    user-select: none;
}

.product-star {
    user-select: none;
    color: #F6A355;
    display: flex;
    gap: 0;
}

.product-star i {
    font-size: 18px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.product-desc-price {
    font-weight: bold;
    color: #FE4A4B;
}

@media (max-width: 1300px) {
    .product-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1000px) {
    .product-category {
        flex-direction: column;
    }

    .slidebar-product-category {
        position: static;
        width: 100%;
    }

    .slidebar-product-category-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .slidebar-product-category-list {
        display: flex;
        gap: 36px;
        overflow-x: auto;
        white-space: nowrap;
        scrollbar-width: none;
        /* Firefox */
    }

    .slidebar-product-category-list::-webkit-scrollbar {
        display: none;
    }

    .slidebar-product-category-list-item .icon-plus,
    .slidebar-product-category-list-item .icon-minus {
        display: none !important;
    }

    .slidebar-product-category-list-item.openproduct .minus-icon {
        display: none !important;
    }

    .slidebar-product-category-sublist {
        position: static;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 10px;
        padding: 10px 0;
        border-radius: 8px;
        justify-content: flex-start;
        align-items: center;
        max-height: none;
        overflow: visible;
    }

    .slidebar-product-category-sublist {
        max-height: 1000px;
        overflow-y: visible;
    }

    .slidebar-product-category-sublist li {
        margin: 0;
        padding: 0;
        border: none;
    }

    .slidebar-product-category-sublist button {
        padding: 6px 12px;
        font-size: 14px;
        background-color: #e0e0e0;
        border-radius: 16px;
        transition: background-color 0.3s ease;
    }

    .slidebar-product-category-sublist button:hover,
    .slidebar-product-category-sublist button:active {
        background-color: #F6A355;
        color: white;
    }
}

@media (max-width: 670px) {
    .product-content {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 520px) {
    .slidebar-product-category-top {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
    }

    .product-search-container {
        width: 100%;
    }
}