html,
body {
    height: 100%;
    margin: 0;
    /* overflow: hidden; */
    /* 🚨 page scroll bandh */
}


/* ============================= */
/* ===== GLOBAL WRAPPER ======== */
/* ============================= */

.clover-wrapper {
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-left: 0px !important;
    margin-right: 0px !important;
    max-width: 100% !important;
    padding-top: 50px;
}

.clover-store {
    display: flex;
    height: calc(100vh - 250px);
    overflow: hidden;
}

/* ============================= */
/* ===== SIDEBAR (DESKTOP) ===== */
/* ============================= */

/* GLOBAL SCROLLBAR HIDE */
.clover-sidebar,
.clover-content {
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE */
}

.clover-sidebar::-webkit-scrollbar,
.clover-content::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari */
}

.clover-sidebar {
    width: 220px;
    position: sticky;
    top: 20px;
    max-height: 80vh;
    overflow-y: auto;
}

.clover-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.clover-sidebar li {
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 8px;
    font-weight: 500;
    transition: 0.3s;
}

.clover-sidebar li:hover {
    background: #995F2D;
    color: #fff;
}

.clover-sidebar li.active {
    background: #461906;
    color: #fff;
    box-shadow: 4px 4px 0 rgba(70, 25, 6, 0.25);
}

/* ============================= */
/* ===== CONTENT AREA ========== */
/* ============================= */

.clover-content {
    flex: 1;
    overflow-y: auto;
    height: 100%;
}

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

.clover-category {
    padding-top: 30px;
}

.clover-category:last-child {
    padding-bottom: 0;
}

.clover-products:last-child,
.clover-list-products:last-child {
    margin-bottom: 0;
}

.clover-category-title {
    font-size: 26px;
    font-weight: 700;
    color: #461906;
    text-align: center;
    margin-bottom: 25px;
}

.clover-category-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: #995F2D;
    margin: 8px auto 0;
}

/* ============================= */
/* ===== GRID VIEW ============= */
/* ============================= */

.clover-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
}

.clover-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f1f1f1;
    transition: 0.3s;
}

.clover-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.clover-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.clover-body {
    padding: 15px;
}

.clover-body h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.price {
    color: #995F2D;
    font-weight: 700;
}

.desc {
    font-size: 13px;
    color: #777;
    height: 38px;
    overflow: hidden;
}

/* ============================= */
/* ===== LIST VIEW ============= */
/* ============================= */

.clover-list-products {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.clover-list-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    padding: 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #eee;

    transition: 0.3s;
}

.clover-list-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.clover-list-img {
    width: 110px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
}

.clover-list-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.clover-list-content {
    flex: 1;
}

.clover-list-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.clover-list-price {
    font-weight: 700;
    color: #461906;
    min-width: 80px;
    text-align: right;
}

.clover-list-desc {
    font-size: 13px;
    color: #777;
}

/* ============================= */
/* ===== BUTTONS =============== */
/* ============================= */

.clover-cart-btn,
.clover-checkout-btn,
.button {
    margin-top: 10px;
    background: #461906 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 10px;
    border: none;
    box-shadow: 5px 5px 0 #4619063B;
}

.button:hover {
    background: #995F2D !important;
}

/* ============================= */
/* ===== MOBILE CATEGORY ======= */
/* ============================= */

.clover-mobile-cats {
    display: none;
}

/* ============================= */
/* ===== MOBILE VIEW =========== */
/* ============================= */

@media(max-width: 768px) {

    .clover-store {
        flex-direction: column;
    }

    .clover-sidebar {
        display: none;
    }

    .clover-mobile-cats {
        display: flex;
        overflow-x: auto;
        gap: 10px;
        margin-bottom: 15px;
    }

    .clover-mobile-cats div {
        padding: 8px 16px;
        background: #f3f3f3;
        border-radius: 20px;
        white-space: nowrap;
        cursor: pointer;
    }

    .clover-mobile-cats div.active {
        background: #461906;
        color: #fff;
    }

    .clover-content {
        max-height: 70dvh;
        padding-bottom: 10px;

    }

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

    /* LIST MOBILE */
    .clover-list-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .clover-list-action {
        width: 100%;
        margin-top: 10px;
    }
}

/* ============================= */
/* ===== FLOAT CART ============ */
/* ============================= */

.clover-cart-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #461906;
    color: #fff;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
}

#clover-cart-count {
    background: red;
    padding: 2px 6px;
    border-radius: 50%;
}

/* ============================= */
/* ===== CART POPUP ============ */
/* ============================= */

.clover-cart-popup {
    position: fixed;
    bottom: 70px;
    right: 20px;
    width: 300px;
    background: #fff;
    border-radius: 10px;
    display: none;
    flex-direction: column;
    height: 80dvh;
}

.clover-cart-popup.active {
    display: flex;
}

#clover-mini-cart-items {
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.mini-cart-footer {
    padding: 10px;
    border-top: 1px solid #eee;
}

/* ============================= */
/* ===== CART ITEMS ============ */
/* ============================= */

.clover-cart-item {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.qty-box {
    display: flex;
    gap: 6px;
}

.qty-box button {
    background: #461906;
    color: #fff;
    border: none;
    padding: 4px 8px;
}