/* #region cate_nav.php */
.category_header_wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 98;
    font-family: '-apple-system', 'BlinkMacSystemFont', "Segoe UI", 'Roboto', Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
}

.category_top_header {
    width: 100%;
    height: 54px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background-color: white;
}

.category_title {
    font-size: 1.3rem;
}

.top_categories_lists {
    position: absolute;
    z-index: 99;
    top: 54px;
    left: 0;
    width: 100%;
    display: none;
    flex-direction: column;
    gap: 20px;
    border: 1px solid #cccccc;
    background-color: white;
    align-items: center;
    justify-content: center;
    padding: 15px;
    font-size: 0.85rem;
}

.top_categories_lists li.active {
    font-weight: 700;
    color: #0d6cff;
}

.category_filter_lists {
    top: 54px;
    display: flex;
    gap: 6px;
    align-items: center;
    padding: 10px 15px;
    overflow-x: auto;
    white-space: nowrap;
    background-color: white;
    width: 100%;
}

.category_filter_lists li {
    padding: 5px 20px;
    color: #363636;
    background-color: white;
    border: 1px solid #707070;
    flex-shrink: 0;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.85rem;
}

.category_filter_lists li.active {
    color: white;
    background-color: #363636;
}

.category_code.active {
    color: white;
    background-color: #363636;
}

.category_options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 14px;
    top: 108px;
    height: 44px;
    width: 100%;
    background-color: white;
}

.dropdown_filter_wrap {
    display: flex;
    gap: 10px;
    align-items: center;
}

.sort_drop_down_box {
    position: relative;
}

.sort_drop_down_box ul {
    position: absolute;
    top: 24px;
    right: 0;
    flex-direction: column;
    background-color: white;
    width: 120px;
    display: none;
    align-items: center;
    border-radius: 10px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    border: 1px solid lightgray;
    padding: 6px 0;
}

.sort_selected {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    cursor: pointer;
}

.sorting_option {
    cursor: pointer;
    padding: 15px 10px;
}

.sorting_option.active {
    color: black;
    font-weight: 900;
}

.hidden {
    display: none;
}

.category_cart_cnt {
    background-color: #0d6cff;
    border-radius: 20px;
    color: white;
    position: absolute;
    font-size: 0.65rem;
    top: -5px;
    right: -8px;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* #endregion */

/* #region cate_spec_filter.php */
.filter_list_container {
    position: fixed;
    z-index: 99;
    flex-direction: column;
    right: 0;
    bottom: 65px;
    width: 100%;
    height: fit-content;
    background-color: white;
    display: none;
    border: 1px solid lightgray;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

.filter_list_container_top {
    width: 100%;
    display: flex;
    padding: 20px 20px 0 20px;
    align-items: center;
    justify-content: space-between;
}

.filter_list_container_mid {
    display: flex;
    padding: 8px 20px 16px 20px;
    gap: 32px;
    border-bottom: 1px solid lightgray;
    margin: 15px 0;
}

.filter_list_container_mid .active {
    font-weight: 900;
}

.filter_options_wrap {
    height: 220px;
}

.filter_options_wrap input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: black;
}

.filter_category_lists {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 0 20px;
    gap: 18px;
    margin-bottom: 30px;
}

.filter_category_lists label {
    display: flex;
    gap: 8px;
    align-items: center;
}

/* #endregion */

/* #region cate_goods.php */
.category_main {
    position: absolute;
    width: 100%;
    top: 155px;
    display: flex;
    flex-direction: column;
    padding-bottom: 65px;
}

#container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    z-index: 0;
    gap: 20px;
    padding: 16px;
}

.goods_thumbnail {
    width: 100%;
}

.goods_name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-height: 1.2em;
    max-height: 2.4em;
    height: 2.4rem;
    word-wrap: break-word;
    white-space: normal;
}

.category_goods_one_col .goods_name {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.category_goods_info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 5px;
    margin-bottom: 16px;
    margin-top: 10px;
}

.category_goods_info_one_col {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
    padding: 0 8px;
    margin-bottom: 10px;
}

.category_goods_one_col {
    display: flex;
    gap: 8px;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.fetch_more_data_btn {
    width: fit-content;
    background-color: white;
    border: 1px solid #707070;
    padding: 1rem 3rem;
    margin: 50px auto 85px auto;
    border-radius: 15px;
    color: #363636;
}

/* #endregion */

/* #region compare_modal.php */
#compareModal {
    position: fixed;
    top: 0;
    left: 0;
    background-color: white;
    width: 100vw;
    height: 100%;
    overflow-x: hidden;
    z-index: 999;
    display: none;
    /* display: flex; */
    flex-direction: column;
}

.compare_modal_nav {
    height: 60px;
    position: fixed;
    z-index: 990;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: end;
    padding-right: 15px;
    background-color: white;
}

.compare_modal_title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.compare_goods_wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-top: 1px solid #eee;
}

.compare_goods_wrap li {
    font-size: 0.8rem;
    display: flex;
    border-bottom: 1px solid #eee;
}

.compare_head {
    width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    border-right: 1px solid #eee;
}

.compare_content {
    display: flex;
    font-weight: 400;
    text-align: center;
}

b {
    font-weight: 400 !important;
}

.compare_row_sky {
    background-color: #F3FAFF;
}

.compare_content>div {
    border-right: 1px solid #ccc;
    width: 200px;
    padding: 8px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.compare_g_name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
    line-height: 1.2em;
    max-height: 2.4em;
    height: 2.4rem;
    word-wrap: break-word;
    white-space: normal;
    font-size: 0.95rem;
    color: #444;
    width: 100%;
    text-align: start;
    margin-top: 8px;
}

.compare_img_layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 150px;
    height: 150px;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.05);
}

.compare_g_img_name {
    display: flex;
    flex-direction: column;
    position: relative;
}

.compare_g_img {
    position: relative;
    width: 150px;
    height: 150px;
}

.compare_g_sec {
    display: flex;
    width: 100vw;
    overflow-x: auto;
    margin-top: 61px;
}

.compare_close_btn {
    z-index: 999;
    font-size: 1.4rem;
    width: 40px;
    text-align: right;
}

.comp_buy_now {
    border-radius: 5px;
    color: white;
    background-color: #33B5E9;
    border: none;
    padding: 5px 12px;
}

.comp_cart {
    color: #444;
    background-color: white;
    border: 1px solid #444;
    border-radius: 5px;
    padding: 5px 12px;
}

.delete_comp_btn {
    font-size: 1.1rem;
    position: absolute;
    top: 0;
    right: 0;
    width: 25px;
    z-index: 99;
}

/* #endregion */