/* ==========================================================
   MEDILEAF STORE PAGE
========================================================== */

.ml-shop-v2-section {
    position: relative;
    padding: 80px 0 110px;
    background: #f7faf5;
}


/* ==========================================================
   FILTER BAR
========================================================== */

.ml-shop-v2-filterbar {
    position: relative;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    margin-bottom: 28px;
    padding: 28px 32px;
    overflow: visible;
    border-radius: 28px;
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(31, 45, 34, 0.08);
}

.ml-shop-v2-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #31a050;
    font-size: 14px;
    font-weight: 700;
}

.ml-shop-v2-filterbar h2 {
    margin: 0;
    color: #243326;
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 600;
}


/* ==========================================================
   FILTER TOOLS
========================================================== */

.ml-shop-v2-tools {
    position: relative;
    z-index: 60;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}


/* ==========================================================
   SEARCH
========================================================== */

.ml-shop-v2-search {
    position: relative;
}

.ml-shop-v2-search input {
    width: 260px;
    max-width: 100%;
    height: 48px;
    padding: 0 48px 0 18px;
    border: 1px solid #d8e2d6;
    border-radius: 50px;
    outline: none;
    background: #ffffff;
    color: #243326;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ml-shop-v2-search input:focus {
    border-color: #31a050;
    box-shadow: 0 0 0 3px rgba(49, 160, 80, 0.08);
}

.ml-shop-v2-search i {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    color: #31a050;
    pointer-events: none;
}


/* ==========================================================
   SORT
========================================================== */

.ml-shop-v2-sort {
    position: relative;
    z-index: 70;
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: visible;
}

.ml-shop-v2-sort label {
    color: #4b5563;
    font-size: 15px;
    white-space: nowrap;
}


/* ==========================================================
   CUSTOM SELECT
========================================================== */

.ml-custom-select {
    position: relative;
    z-index: 80;
    width: 100%;
    min-width: 230px;
}

.ml-custom-select-trigger {
    width: 100%;
    height: 48px;
    padding: 0 18px;
    border: 1px solid #d8e2d6;
    border-radius: 50px;
    outline: none;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    color: #243326;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ml-custom-select-trigger:hover,
.ml-custom-select-trigger:focus,
.ml-custom-select.open .ml-custom-select-trigger {
    border-color: #31a050;
}

.ml-custom-select.open .ml-custom-select-trigger {
    box-shadow: 0 0 0 3px rgba(49, 160, 80, 0.08);
}

.ml-custom-select-trigger i {
    flex-shrink: 0;
    color: #31a050;
    font-size: 13px;
    transition: transform 0.25s ease;
}

.ml-custom-select.open .ml-custom-select-trigger i {
    transform: rotate(180deg);
}

.ml-custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    display: none;
    max-height: 280px;
    padding: 8px;
    overflow-y: auto;
    border: 1px solid #e5e5e5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(31, 45, 34, 0.16);
}

.ml-custom-select.open .ml-custom-options {
    display: block;
}

.ml-custom-option {
    width: 100%;
    padding: 11px 14px;
    border: none;
    border-radius: 12px;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #243326;
    font-size: 14px;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.ml-custom-option:hover {
    background: #f2f8f0;
}

.ml-custom-option.active {
    background: #31a050;
    color: #ffffff;
}


/* ==========================================================
   CATEGORY SCROLL
========================================================== */

.ml-shop-v2-category-scroll {
    display: flex;
    gap: 12px;
    margin-bottom: 10px;
    padding: 8px 2px 32px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.ml-shop-v2-category-scroll a {
    flex: 0 0 auto;
    padding: 11px 20px;
    border-radius: 50px;
    background: #ffffff;
    color: #243326;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 8px 22px rgba(31, 45, 34, 0.06);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.ml-shop-v2-category-scroll a.active,
.ml-shop-v2-category-scroll a:hover {
    background: #31a050;
    color: #ffffff;
}

.ml-shop-v2-category-scroll a:hover {
    transform: translateY(-1px);
}


/* ==========================================================
   PRODUCT CARD
========================================================== */

.ml-shop-v2-card {
    height: 100%;
    overflow: hidden;
    border-radius: 34px;
    background: #ffffff;
    box-shadow: 0 14px 35px rgba(31, 45, 34, 0.07);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.ml-shop-v2-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 45px rgba(31, 45, 34, 0.11);
}


/* ==========================================================
   PRODUCT IMAGE
========================================================== */

.ml-shop-v2-img {
    position: relative;
    width: 100%;
    height: 288px;
    overflow: hidden;
    background: linear-gradient(180deg, #e8eae7 0%, #e4dcda 45%, #dcb4b4 100%);
}

.ml-shop-v2-image-link {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ml-shop-v2-img img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 24px 30px;
    background: transparent;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.ml-shop-v2-card:hover .ml-shop-v2-img img {
    transform: scale(1.045);
}


/* ==========================================================
   PRODUCT BADGE
========================================================== */

.ml-shop-v2-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 3;
    padding: 8px 13px;
    border-radius: 50px;
    background: #31a050;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.ml-shop-v2-tag.sold {
    background: #353131;
}


/* ==========================================================
   PRODUCT BODY
========================================================== */

.ml-shop-v2-body {
    padding: 30px;
}

.ml-shop-v2-category {
    display: block;
    margin-bottom: 14px;
    color: #20a548;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.ml-shop-v2-body h3 {
    margin: 0 0 18px;
    color: #18241d;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.25;
}

.ml-shop-v2-title-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ml-shop-v2-title-link:hover,
.ml-shop-v2-title-link:focus {
    color: #31a050;
    text-decoration: none;
}


/* ==========================================================
   PRICE
========================================================== */

.ml-shop-v2-price-wrap {
    margin-bottom: 26px;
}

.ml-shop-v2-old-price {
    margin-bottom: 10px;
    color: #239e48;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: line-through;
}

.ml-shop-v2-price {
    color: #18241d;
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
}


/* ==========================================================
   VIEW PRODUCT BUTTON
========================================================== */

.product-view-btn,
a.product-view-btn {
    width: 100%;
    min-height: 55px;
    padding: 10px 20px;
    border: 2px solid #27a84d;
    border-radius: 50px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #22a147;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.product-view-btn:hover,
.product-view-btn:focus,
a.product-view-btn:hover,
a.product-view-btn:focus {
    border-color: #168a3a;
    background: #f5fbf6;
    color: #168a3a;
    text-decoration: none;
}

.product-view-btn:active,
a.product-view-btn:active {
    transform: scale(0.99);
}


/* ==========================================================
   ADD TO BAG BUTTON
========================================================== */

.ml-shop-v2-body .add-to-bag-btn {
    width: 100%;
    min-height: 55px;
    margin-top: 12px;
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    background: #31a653;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.ml-shop-v2-body .add-to-bag-btn:hover:not(:disabled) {
    background: #268e45;
}

.ml-shop-v2-body .add-to-bag-btn:active:not(:disabled) {
    transform: scale(0.99);
}

.ml-shop-v2-body .add-to-bag-btn.disabled,
.ml-shop-v2-body .add-to-bag-btn:disabled {
    background: #9ca3af;
    color: #ffffff;
    cursor: not-allowed;
    opacity: 1;
}


/* ==========================================================
   NO PRODUCTS
========================================================== */

.ml-shop-no-products {
    display: none;
    padding: 40px 20px;
    color: #4b5563;
    font-size: 18px;
    text-align: center;
}


/* ==========================================================
   PAGINATION
========================================================== */

.ml-shop-v2-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 55px;
}

.ml-shop-v2-pagination button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 6px;
    background: #f3f1ee;
    color: #000000;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.ml-shop-v2-pagination button.active,
.ml-shop-v2-pagination button:hover:not(:disabled) {
    background: #a6ce39;
    color: #ffffff;
}

.ml-shop-v2-pagination button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.ml-shop-v2-pagination button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}


/* ==========================================================
   LARGE TABLETS / SMALL LAPTOPS
========================================================== */

@media (max-width: 1199px) {

    .ml-shop-v2-img {
        height: 250px;
    }

    .ml-shop-v2-body {
        padding: 24px;
    }

    .ml-shop-v2-body h3 {
        font-size: 23px;
    }

    .ml-shop-v2-price {
        font-size: 25px;
    }

}


/* ==========================================================
   TABLETS
========================================================== */

@media (max-width: 991px) {

    .ml-shop-v2-section {
        padding: 55px 0 75px;
    }

    .ml-shop-v2-filterbar {
        padding: 22px;
        border-radius: 22px;
        gap: 18px;
    }

    .ml-shop-v2-tools {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .ml-shop-v2-search,
    .ml-shop-v2-sort {
        width: 100%;
    }

    .ml-shop-v2-search input {
        width: 100%;
    }

    .ml-shop-v2-sort {
        display: flex;
        align-items: center;
    }

    .ml-custom-select {
        min-width: 0;
        flex: 1;
    }

    .ml-shop-v2-img {
        height: 240px;
    }

    .ml-shop-v2-card {
        border-radius: 28px;
    }

    .ml-shop-v2-body {
        padding: 22px;
    }

    .product-view-btn,
    a.product-view-btn,
    .ml-shop-v2-body .add-to-bag-btn {
        min-height: 56px;
        font-size: 16px;
    }

}


/* ==========================================================
   MOBILE / SMALL TABLETS
========================================================== */

@media (max-width: 767px) {

    .ml-shop-v2-section {
        padding: 40px 0 60px;
    }

    .ml-shop-v2-filterbar {
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 20px;
        flex-direction: column;
        align-items: stretch;
    }

    .ml-shop-v2-filterbar h2 {
        font-size: 30px;
        line-height: 1.2;
    }

    .ml-shop-v2-tools {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .ml-shop-v2-search,
    .ml-shop-v2-sort {
        width: 100%;
    }

    .ml-shop-v2-sort {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .ml-custom-select {
        width: 100%;
        min-width: 0;
    }

    .ml-shop-v2-search input,
    .ml-custom-select-trigger {
        width: 100%;
        height: 50px;
    }

    .ml-custom-options {
        left: 0;
        right: 0;
        width: 100%;
        max-height: 250px;
    }

    .ml-shop-v2-category-scroll {
        gap: 8px;
        margin-bottom: 4px;
        padding: 4px 0 20px;
    }

    .ml-shop-v2-category-scroll a {
        padding: 10px 16px;
        font-size: 14px;
    }

    #mlShopGrid {
        --bs-gutter-x: 16px;
        --bs-gutter-y: 20px;
    }

    .ml-shop-v2-card {
        border-radius: 26px;
    }

    .ml-shop-v2-img {
        height: 260px;
    }

    .ml-shop-v2-img img {
        padding: 24px 28px;
    }

    .ml-shop-v2-body {
        padding: 24px;
    }

    .ml-shop-v2-category {
        margin-bottom: 10px;
        font-size: 15px;
    }

    .ml-shop-v2-body h3 {
        margin-bottom: 16px;
        font-size: 23px;
    }

    .ml-shop-v2-price-wrap {
        margin-bottom: 22px;
    }

    .ml-shop-v2-old-price {
        margin-bottom: 7px;
        font-size: 15px;
    }

    .ml-shop-v2-price {
        font-size: 25px;
    }

    .product-view-btn,
    a.product-view-btn,
    .ml-shop-v2-body .add-to-bag-btn {
        min-height: 56px;
        font-size: 16px;
    }

    .ml-shop-v2-pagination {
        gap: 8px;
        margin-top: 35px;
    }

    .ml-shop-v2-pagination button {
        width: 46px;
        height: 46px;
        border-radius: 8px;
        font-size: 16px;
    }

}


/* ==========================================================
   SMALL PHONES
========================================================== */

@media (max-width: 480px) {

    .ml-shop-v2-section {
        padding: 30px 0 50px;
    }

    .ml-shop-v2-section .container {
        padding-right: 14px;
        padding-left: 14px;
    }

    .ml-shop-v2-filterbar {
        padding: 18px;
        border-radius: 18px;
    }

    .ml-shop-v2-eyebrow {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .ml-shop-v2-filterbar h2 {
        font-size: 26px;
    }

    .ml-shop-v2-search input,
    .ml-custom-select-trigger {
        height: 48px;
        font-size: 14px;
    }

    .ml-custom-select-trigger {
        padding: 0 16px;
    }

    .ml-custom-options {
        top: calc(100% + 6px);
        max-height: 220px;
        border-radius: 15px;
    }

    .ml-custom-option {
        padding: 11px 12px;
        font-size: 14px;
    }

    .ml-shop-v2-category-scroll {
        margin-right: -2px;
        margin-left: -2px;
    }

    .ml-shop-v2-category-scroll a {
        padding: 9px 14px;
        font-size: 13px;
    }

    .ml-shop-v2-card {
        border-radius: 24px;
    }

    .ml-shop-v2-img {
        height: 230px;
    }

    .ml-shop-v2-img img {
        padding: 20px 24px;
    }

    .ml-shop-v2-tag {
        top: 14px;
        left: 14px;
        padding: 7px 11px;
        font-size: 11px;
    }

    .ml-shop-v2-body {
        padding: 20px;
    }

    .ml-shop-v2-category {
        font-size: 14px;
    }

    .ml-shop-v2-body h3 {
        margin-bottom: 14px;
        font-size: 21px;
        line-height: 1.25;
    }

    .ml-shop-v2-price-wrap {
        margin-bottom: 20px;
    }

    .ml-shop-v2-old-price {
        font-size: 14px;
    }

    .ml-shop-v2-price {
        font-size: 23px;
    }

    .product-view-btn,
    a.product-view-btn,
    .ml-shop-v2-body .add-to-bag-btn {
        min-height: 54px;
        font-size: 16px;
    }

    .ml-shop-v2-body .add-to-bag-btn {
        margin-top: 10px;
    }

    .ml-shop-v2-pagination button {
        width: 42px;
        height: 42px;
        font-size: 14px;
    }

}


/* ==========================================================
   VERY SMALL PHONES
========================================================== */

@media (max-width: 360px) {

    .ml-shop-v2-section .container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .ml-shop-v2-filterbar {
        padding: 15px;
    }

    .ml-shop-v2-filterbar h2 {
        font-size: 24px;
    }

    .ml-shop-v2-img {
        height: 210px;
    }

    .ml-shop-v2-img img {
        padding: 18px 20px;
    }

    .ml-shop-v2-body {
        padding: 18px;
    }

    .ml-shop-v2-body h3 {
        font-size: 20px;
    }

    .ml-shop-v2-price {
        font-size: 22px;
    }

    .product-view-btn,
    a.product-view-btn,
    .ml-shop-v2-body .add-to-bag-btn {
        min-height: 52px;
        font-size: 15px;
    }

}