/* =========================
   RESPONSIVE SWITCH
========================= */
.only-desktop {
    display: none;
}

.only-mobile {
    display: block;
}

@media (min-width: 992px) {
    .only-desktop {
        display: block;
    }

    .only-mobile {
        display: none;
    }

    body {
        padding-bottom: 0;
    }

    /* #mainSlider .slide img {
        height: 500px;
    } */

    main.main-wrapper {
        padding: 18px 41px;
        background: #f0f5ff;
        margin: auto;
    }
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 0;
    }

    main.main-wrapper {
        padding: 12px 10px;
    }

    #mainSlider .s-arrow {
        width: 34px;
        height: 34px;
    }

    .section-title::before,
    .section-title::after {
        content: "";
        position: absolute;
        top: 15%;
        width: 13%;
        border-top: 2px solid var(--green);
        transform: translateY(-50%);
    }

    .section-title::before {
        left: 19.5%;
    }

    .section-title::after {
        right: 19.5%;
    }

    #product-details .title {
        font-size: 1rem;
    }

    #back_to_top {
        bottom: 11%;
    }

    .site-footer {
        margin-bottom: 70px;
    }

    .logo-mini .brand-logo {
        display: flex;
        justify-content: center;
    }

    #catRow {
        display: flex;
        overflow: auto;
        padding-bottom: 10px;
        flex-wrap: unset;
        scroll-behavior: smooth;
        scrollbar-width: thin;
        scrollbar-color: var(--primary-color) #fff;
        margin-top: 0.5rem;
    }
    /* #product-details .preview-stage {
        height: 250px;
    } */
}


@media (max-width: 768px) {
    .categories_icons {
        display: none;
    }

    #product-card.p-card {
        padding: 4px;
    }

    #product-card .p-img {
        padding-bottom: 5px;
    }

    #product-card .p-title {
        font-weight: 300;
        font-size: 13px;
    }

    #product-card .stars {
        font-size: 10px;
        gap: 2px;
    }

    #product-card .price .now {
        font-weight: 400;
        font-size: 13px;
    }

    #product-card .price .old {
        font-weight: 400;
        font-size: 12px;
    }

    #product-card .btn-order {
        font-weight: 300;
        padding: 4px 6px;
        gap: 5px;
        font-size: 12px;
        white-space: nowrap;
    }

    #product-card .p-actions {
        padding: 0 5px 6px;
        display: contents;
    }

    #product-card .btn-addcart {
        font-weight: 300;
        padding: 5px 10px;
        font-size: 10px;
    }

    #product-card .discount-badge .inner {
        font-weight: 400;
        font-size: 9px;
    }

    #product-card .discount-badge {
        top: 4px;
        right: 4px;
        width: 40px;
        height: 40px;
    }

    .section-title {
        margin: 10px 0 0px;
        font-size: clamp(18px, 2.5vw, 34px);
        font-weight: 400;
    }

    .section-sub {
        font-weight: 300;
        margin-bottom: 8px;
    }

    #recommended-section {
        padding-top: 0rem !important;
    }

    .view-all-product {
        margin-top: 1rem;
    }

    #new-products-section {
        padding-top: 1rem !important;
    }

    #offer-products-section {
        padding-top: 1rem !important;
        margin-top: 1rem !important;
    }

    .categories-section-title {
        display: none !important;
    }
}


/* Media Queries for Responsiveness */
@media only screen and (max-width: 600px) {
    .mockup-hand {
        transform: translateX(-37%);
        height: 491px;
    }

    section#news-letter {
        height: 541px;
    }

    .mockup-screen-1 img,
    .mockup-screen-2 img,
    .mockup-screen-4 img,
    .mockup-screen-5 img {
        max-width: 158px;
    }

    .review_model .modal-content {
        width: 75%;
        left: 14%;
    }

    .owl-nav button.owl-next {
        right: 3px;
    }

    .owl-nav button.owl-prev {
        left: 6px !important;
    }

    button.owl-prev,
    button.owl-next {
        width: 36px !IMPORTANT;
        height: 36px !important;
    }

    .mockup-screen-1,
    .mockup-screen-2,
    .mockup-screen-3,
    .mockup-screen-4,
    .mockup-screen-5 {
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        height: 330px;
        width: 153px;
    }

    #catZone .cat-ava {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        margin: 0 auto 0px;
    }

    #catZone .cat-tile {
        padding: 5px 3px;
    }

    #catZone .cat_name {
        font-size: 12px;
    }
    #checkout-section .pay-row {
        display: grid;
    }

    #checkout-section .pay-row label {
        white-space: nowrap;
    }
}

@media only screen and (max-width: 385px) {

    .mockup-screen-1 img,
    .mockup-screen-2 img,
    .mock-screen-4 img,
    .mockup-screen-5 img {
        max-width: 143px;
    }

    .mockup-hand {
        bottom: 45px;
        transform: translateX(-37%);
        height: 448px;
    }

    .main_review {
        margin-bottom: -23px;
    }
}

@media only screen and (max-width: 370px) {
    .mockup-hand {
        bottom: 189px !important;
        height: 401px !important;
        transform: translateX(-36%) !important;
    }

    .main_review .mockup-screen-1 img,
    .main_review .mockup-screen-2 img,
    .main_review .mockup-screen-4 img,
    .main_review .mockup-screen-5 img {
        max-width: 126px;
    }

    .main_review .mockup-screen-1,
    .main_review .mockup-screen-2,
    .main_review .mockup-screen-3,
    .main_review .mockup-screen-4,
    .main_review .mockup-screen-5 {
        width: 144px;
    }

    .mockup-screen-1 img,
    .mockup-screen-2 img,
    .mockup-screen-4 img,
    .mockup-screen-5 img {
        max-width: 139px;
    }

    .main_review {
        margin-bottom: -62px;
    }

    #reviewsCarousel .owl-dots {
        display: none;
    }
}

@media (min-width:371px) and (max-width: 582px) {
    .mockup-hand {
        bottom: 144px !important;
        height: 440px !important;
        transform: translateX(-35%);
    }

    .main_review .mockup-screen-1 img,
    .main_review .mockup-screen-2 img,
    .main_review .mockup-screen-4 img,
    .main_review .mockup-screen-5 img {
        max-width: 141px;
    }

    .main_review .mockup-screen-1,
    .main_review .mockup-screen-2,
    .main_review .mockup-screen-3,
    .main_review .mockup-screen-4,
    .main_review .mockup-screen-5 {
        width: 144px;
    }

    .mockup-screen-1 img,
    .mockup-screen-2 img,
    .mockup-screen-4 img,
    .mockup-screen-5 img {
        max-width: 139px;
    }

    .main_review {
        margin-bottom: -62px;
    }

    #reviewsCarousel .owl-dots {
        display: none;
    }
}
@media (min-width:1201px) and (max-width: 1400px) {
    #product-details .preview-stage {
        height: 422px;
    }
}
@media (min-width:992px) and (max-width: 1200px) {
    #product-details .preview-stage {
        height: 330px;
    }
}
@media (min-width:501px) and (max-width: 572px) {
    #product-details .preview-stage {
        height: 430px;
    }
}
@media (min-width:401px) and (max-width: 500px) {
    #product-details .preview-stage {
        height: 330px;
    }
}
@media (min-width:361px) and (max-width: 400px) {
    #product-details .preview-stage {
        height: 300px;
    }
}

/* =========================
   MOBILE PERFECT FIX (ORDER ROW)
   paste at the END
========================= */

@media (max-width: 576px) {

    /* header hide */
    #checkout-section .order-head {
        display: none;
    }

    /* dashed box overflow safe */
    #checkout-section .order-box {
        overflow: hidden;
    }

    #checkout-section .order-inner {
        padding: 12px;
    }

    /* each item becomes a 2-column grid card */
    #checkout-section .order-row {
        display: grid;
        grid-template-columns: 72px 1fr;
        grid-template-areas:
            "img info"
            "price total";
        gap: 10px 12px;
        align-items: start;
        padding: 12px;
        margin-top: 10px;
        border-radius: var(--radius-1);
        background: #fff;
    }

    /* IMPORTANT: allow text to wrap inside grid */
    #checkout-section .order-row>* {
        min-width: 0;
    }

    /* map areas */
    #checkout-section .order-row .imgcell {
        grid-area: img;
    }

    #checkout-section .order-row>div:nth-child(2) {
        grid-area: info;
    }

    #checkout-section .order-row .price {
        grid-area: price;
    }

    #checkout-section .order-row .total {
        grid-area: total;
    }

    /* image sizes */
    #checkout-section .pimg {
        width: 56px;
        height: 56px;
    }

    /* product name full width and wrap */
    #checkout-section .pname {
        font-size: 13px;
        line-height: 1.25;
        margin-bottom: 8px;
        white-space: normal;
        word-break: break-word;
    }

    /* qty wrap safe */
    #checkout-section .qty-mini {
        gap: 1px;
    }

    #checkout-section .qbtn {
        width: 28px;
        height: 28px;
    }

    #checkout-section .qval {
        width: 22px;
    }

    /* price/total in two columns at bottom */
    #checkout-section .price,
    #checkout-section .total {
        text-align: left;
        font-size: 13px;
        font-weight: 1000;
        padding-top: 6px;
        border-top: 1px solid #eef2ff;
    }

    /* label show */
    #checkout-section .price::before {
        content: "Unit: ";
        font-weight: 900;
        margin-right: 6px;
    }

    #checkout-section .total::before {
        content: "Total: ";
        font-weight: 900;
        margin-right: 6px;
    }

    /* total align right for balance */
    #checkout-section .total {
        text-align: right;
    }
}

/* extra tiny devices */
@media (max-width: 360px) {
    #checkout-section .order-row {
        grid-template-columns: 64px 1fr;
        gap: 8px 10px;
    }

    #checkout-section .pimg {
        width: 52px;
        height: 52px;
    }
    #product-details .preview-stage {
        height: 250px;
    }
}
