.section.shop .catalog {
    display: grid;
    grid-template-columns: 1fr 8fr;
    gap: 10px;
}

.section.shop .section__title {
    margin-bottom: 1em;
    text-align: left;
    margin: 0 10px 20px;
}

.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.product__card {
    /* height: 100%; */
    display: grid;
    grid-template-rows: 60px 1fr 1.2fr;
    flex-direction: column;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 0 6px #e3e3e3;
}

.product__card .image {
    height: 150px;
    width: 100%;
}

.product__card .image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product__header {
    padding: 14px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
}

.product__header .left {
    display: flex;
    gap: 6px;
}

.product__card .body {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px;
    gap: 20px;
}

.product__title {
    font-size: 16px;
    text-decoration: none;
    font-weight: 300;
    text-transform: capitalize;
}

.product__pricing .regular-price bdi,
.product__pricing .regular-price bdi span {
    font-size: 16px;
    text-decoration: line-through;
    font-weight: 100;
}

.product__pricing bdi,
.product__pricing bdi span {
    font-weight: bold;
    font-size: 20px;
    margin: 8px 0 16px;
}

.product__pricing .regular-price bdi,
.product__pricing .regular-price bdi span {
    font-weight: 300;
}

.product__cart-btn {
    width: 100%;
    height: 40px;
    background: var(--color-red);
    border-radius: 8px;
    border: none;
    justify-self: flex-end;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.product__cart-btn a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 16px;
    text-decoration: none;
    color: #fff;
}

.product__availability {
    display: flex;
    align-items: center;
    font-size: 12px;
    gap: 6px;
    color: #fff;
    background-color: var(--color-green);
    padding: 5px 10px;
    border-radius: 8px;
}

.product__availability.outofstock {
    background-color: var(--color-gray-1);
}

.product__availability.outofstock.phone {
    background-color: none;
}

.product__availability i {
    color: inherit;
}

.product__availability i.fa-times {
    color: #fff;
}

.product__availability span {
    font-weight: bold;
    color: #fff;
}

.product__availability.phone {
    display: none;
    padding: 0;
    background: none;
    color: var(--color-green);
}

.product__availability.phone i {
    display: none;
}

.product__availability.phone span {
    color: #5AC521;
    font-weight: 100;
    font-size: 12px;
}

.product__card .column {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.product__discount {
    background-color: var(--color-red);
    border-radius: 8px;
    padding: 5px 10px;
}

.product__discount p {
    font-weight: bold;
    font-size: 12px;
    color: #fff;
}

.product__card .btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.product-quantity {
    width: 100%;
    border-radius: 8px;
    background-color: #E9EAEB;
    height: 40px;
    padding: 6px;
    display: flex;
    gap: 4px;
}

.product-quantity .btn {
    color: #202A3A;
    font-weight: 100;
    font-size: 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border-radius: 4px;
}

.product-quantity input {
    background: #fff;
    height: 100%;
    border-radius: 6px;
}

.product-quantity .btn:hover {
    background-color: #F4F5F7;
}

.product-quantity .btn:active {
    background-color: #F4F5F7;
    transform: scale(0.9);
}

.product__cart-btn.add-to-wishlist-button {
    color: #fff;
    height: 100%;
    width: auto;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
}

.product__cart-btn.add-to-cart-button:hover {
    background: var(--color-red-dark);
}

.product__cart-btn.add-to-cart-button:active {
    background: var(--color-red-dark);
    transform: scale(0.9);
}

.product__cart-btn.add-to-cart-button.outofstock {
    background: var(--color-gray-1);
    pointer-events: none;
}

.product__cart-btn.add-to-wishlist-button.wished i {
    color: var(--color-red);
}

.product__cart-btn.add-to-wishlist-button i {
    color: #D2D4D8;
    font-size: 20px;
}

.product__card .bottom {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.product__cart-btn.disabled {
    background: none;
    background-color: #fff;
    border: 1px solid var(--color-red);
    color: var(--color-red);
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.product__cart-btn.disabled i,
.product__cart-btn.disabled p {
    color: var(--color-red);
    font-size: 16px;
}

.shop__content {
    display: grid;
    grid-template-columns: 1fr 4fr;
    gap: 12px;
}

.shop__sidebar {
    width: 100%;
    box-shadow: 0 0 6px #e3e3e3;
    background-color: #fff;
    padding: 16px;
    border-radius: 8px;
    height: fit-content;
    position: sticky;
    top: 90px;
    left: 0;
}

.filter-by-categories h4 {
    margin-bottom: 20px;
    font-weight: bold;
}

/* Style the radio button container in the sidebar */
.category-filter .custom-radio {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

/* Hide the default radio button */
.category-filter input[type="radio"] {
    display: none;
}

/* Custom radio circle */
.radio-circle {
    width: 14px;
    height: 14px;
    border: 2px solid #d1d1d1;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
    position: relative;
}

/* Style for the label text */
.radio-label {
    font-size: 16px;
    color: #333;
}

/* Style for checked/active state */
input[name="product_cat"]:checked + .radio-circle {
    background-color: var(--color-red);
    border-color: var(--color-red);
}

/* Add the inner dot for selected radio */
input[name="product_cat"]:checked + .radio-circle::after {
    content: '';
    width: 8px;
    height: 8px;
    background-color: var(--color-red);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Hover effect */
.category-filter .custom-radio:hover .radio-circle {
    border-color: var(--color-red);
    /* Red border on hover */
}

.product__card .btns .product__cart-btn {
    width: 100%;
}

.product__card .btns .product__cart-btn.add-to-wishlist-button {
    width: 40px;
}

.product__cart-btn.disabled p .cart {
    display: none;
}

.phone-filter-by-category {
    position: sticky;
    top: 50px;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    background: #fff;
    border: none;
    font-weight: bold;
    border-bottom: 1px solid #e3e3e3;
}

.phone-category-filter {
    visibility: hidden;
    display: flex;
    opacity: 0;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background-color: #fff;
    z-index: 1001;
    box-shadow: 0 0 6px #e3e3e3;
    transition: opacity 0.3s ease-in-out;
}

.phone-category-filter-header {
    border-bottom: 1px solid #e3e3e3;
    padding: 10px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.phone-category-filter-footer {
    border-top: 1px solid #e3e3e3;
    padding: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
}

.phone-category-filter-footer button {
    height: 42px;
    color: var(--color-dark);
    border-radius: 8px;
    background: none;
    border: 1px solid var(--color-dark);
    font-weight: 600;
}

.phone-category-filter-footer button.show {
    background: var(--color-red);
    color: #fff;
    border-color: var(--color-red);
}

.phone-category-filter .content {
    height: 100%;
    overflow-y: scroll;
}

.phone-category-filter .category-filter {
    height: fit-content;
}

.category-filter::-webkit-scrollbar {
    color: red;
}

.phone-category-filter.open {
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 1;
}

.phone-category-filter h2 {
    font-size: 16px;
    font-weight: bold;
}

.phone-category-filter i {
    font-size: 14px;
}

.categoryBlockDarkLayer {
    display: none;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.categoryBlockDarkLayer.open {
    display: block;
}

.breadcrumb {
    margin-bottom: 1em;
    color: var(--color-gray-1);
    margin: 0 10px 20px;
}

.breadcrumb a,
.breadcrumb span {
    color: var(--color-gray-1);
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.hidden {
    display: none;
}

.category-filter {
    font-family: Arial, sans-serif;
}

.category-item,
.subcategory-item {
    margin-bottom: 5px;
    cursor: pointer;
    position: relative;
}

.arrow {
    float: right;
    transition: transform 0.3s ease;
}

.arrow.open {
    transform: rotate(90deg);
}

/* Hide subcategories and sub-subcategories initially */
.sub-subcategories,
.subcategories {
    margin-left: 15px;
    display: none;
}

.category-filter li {
    list-style-type: none;
    margin-left: 20px;
}

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    /* Smaller width */
    height: 20px;
    /* Smaller height */
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.6s;
    /* Slower transition */
    border-radius: 34px;
}

.slider::before {
    position: absolute;
    content: "";
    height: 14px;
    /* Smaller toggle */
    width: 14px;
    /* Smaller toggle */
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.2s;
    /* Slower transition */
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--color-red);
    /* Match the red color */
}

input:checked+.slider::before {
    transform: translateX(20px);
    /* Adjusted for smaller size */
}

/* Label styling */
.switch-label {
    font-size: 14px;
    /* Slightly smaller text */
    font-weight: bold;
    margin-left: 8px;
    color: #222;
}

.filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e3e3e3;
    padding: 16px 0;
}

.filter-row.phone {
    padding: 14px 20px;
}

.filter-row.phone h4 {
    font-size: 16px;
    font-weight: 600;
}

.filter-by-category {
    padding: 16px 0;
}

.shop__sidebar h4 {
    font-weight: 600;
    font-size: 16px;
}

.filter-by-category h4 {
    margin-bottom: 14px;
    font-size: 16px;
    font-weight: 600;
}

.shop__sidebar {
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.filter-reset button {
    border: 1px solid var(--color-gray-2);
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border-radius: 8px;
    color: var(--color-dark);
    font-weight: 600;
}

.radio-label {
    text-decoration: none;
}

@media (max-width: 1400px) {
    .products {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 1050px) {
    .shop__sidebar {
        width: 200px;
    }

    .products {
        grid-template-columns: 1fr 1fr;
    }

    .radio-label {
        font-size: 16px;
    }
}

@media (max-width: 868px) {
    .shop__content {
        gap: 10px;
    }
}

@media (max-width: 700px) {
    .filter-by-category {
        padding: 16px 20px;
    }

    .shop__content {
        grid-template-columns: 1fr;
    }

    .products {
        grid-template-columns: repeat(2, 1fr);
    }

    .shop__sidebar {
        display: none;
    }

    .product__card .image {
        height: 150px;
    }

    .product__cart-btn.disabled i,
    .product__cart-btn.disabled p {
        font-size: 14px;
    }

    .product__title {
        font-size: 16px;
    }

    .product__pricing bdi {
        font-size: 20px;
    }

    .product__cart-btn.disabled {
        padding: 0 10px !important;
        gap: 6px;
    }

    .phone-filter-by-category {
        display: flex;
    }

    .product__cart-btn.add-to-cart-button {
        font-size: 14px;
    }
}

@media (max-width: 430px) {
    .filter-by-category h4 {}

    .section.shop {
        padding: 10px 0;
    }

    .product__header {
        padding: 10px;
    }

    .shop__content .product__card {
        border: none;
        border-left: 1px solid #e3e3e3;
        border-bottom: 1px solid #e3e3e3;
    }

    .product__card .btns .product__cart-btn {
        height: 40px;
    }

    .product__card .btns .product__cart-btn.add-to-wishlist-button {
        height: 40px !important;
        width: 40px !important;
    }

    .product__cart-btn.add-to-wishlist-button i {
        font-size: 10px;
    }

    .products {
        gap: 0;
    }

    .product__header .product__availability {
        display: none;
    }

    .product__card .body .product__availability {
        display: block;
    }

    .searchbox.active {
        border-bottom: 1px solid #e3e3e3;
    }

    .product__cart-btn.add-to-cart-button {
        font-size: 16px;
    }

    .product__card .btns {
        grid-template-columns: 1fr 32px;
    }

    .product__card .btns .product__cart-btn.add-to-wishlist-button {
        height: 40px;
        width: 100%;
    }

    .product__cart-btn.add-to-wishlist-button i {
        font-size: 20px;
    }

    .product__discount p {
        font-size: 10px;
    }

    .product__cart-btn.disabled i,
    .product__cart-btn.disabled p {
        font-size: 12px;
    }

    .product__card .body {
        padding: 4px;
    }

    .product__availability {
        font-size: 10px;
    }

    .product__title {
        font-size: 14px;
    }

    .product__pricing bdi,
    .product__pricing bdi span {
        font-size: 16px;
    }

    .product__cart-btn a {
        font-size: 12px;
    }

    .product__cart-btn {
        height: 36px;
    }

    .product__cart-btn.disabled p {
        display: none;
    }

    .product__cart-btn.disabled p .cart {
        display: block;
    }

    .product__card .image {
        height: 120px;
    }

    .phone-filter-by-category {
        height: 42px;
        font-size: 14px;
        margin-bottom: 0;
    }

    .product__card .btns {
        grid-template-columns: 1fr;
    }

    .product__card {
        border-radius: 0;
        box-shadow: none;
        border-left: 1px solid #e3e3e3;
    }

    .swiper__arrow.offer {
        display: none;
    }

    .offer__swiper {
        padding: 0;
    }

    .product__card .body {
        padding: 10px;
    }

    .breadcrumb,
    .breadcrumb a,
    .breadcrumb span {
        color: var(--color-gray-1);
        text-decoration: none;
        font-size: 12px;
    }
}