#clover-mini-cart {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999999;
}

/* 🔘 FLOATING CART TOGGLE BUTTON */
.clover-mini-cart-toggle {
    width: 68px;
    height: 68px;
    border: none;
    border-radius: 50%;
    background: #0D4228;
    /* Theme green color background */
    color: #ffffff;
    cursor: pointer;
    position: relative;
    font-size: 24px;
    box-shadow: 0 10px 25px rgba(13, 66, 40, 0.3);
    transition: transform 0.25s ease;
}

.clover-mini-cart-toggle:hover {
    transform: translateY(-3px);
    background: #C23228;
    /* Hover state turns red */
}

/* 🔴 BADGE INDICATOR ON TOGGLE BUTTON */
.clover-mini-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #C23228;
    /* Solid theme red color background */
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
}

/* 👥 BACKDROP OVERLAY SCREEN */
.clover-mini-cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
}

/* 🏪 SIDEBAR PANEL DRAWER HOUSING */
.clover-mini-cart-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 420px;
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transition: .3s ease;
    box-shadow: -12px 0 40px rgba(15, 23, 42, .12);
}

/* 🔓 ACTIVE PANEL DISPLAY TRIGGERS */
#clover-mini-cart.active .clover-mini-cart-overlay {
    opacity: 1;
    visibility: visible;
}

#clover-mini-cart.active .clover-mini-cart-drawer {
    right: 0;
}

/* 📑 DRAWER HEADER BLOCK */
.clover-mini-cart-header {
    padding: 24px;
    border-bottom: 1px solid #eef2f7;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.clover-mini-cart-header h3 {
    margin: 0;
    font-size: 24px;
    color: #0D4228;
    /* Green heading matching theme specs */
}

.clover-mini-cart-close {
    border: none;
    background: none;
    font-size: 22px;
    cursor: pointer;
    color: #64748b;
    transition: color 0.2s;
}

.clover-mini-cart-close:hover {
    color: #C23228;
}

/* 📦 ITEM ELEMENT INLINE BLOCKS */
.clover-mini-cart-body {
    flex: 1;
    overflow: auto;
    padding: 24px;
}

.clover-mini-cart-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    align-items: center;
}

.clover-mini-cart-image img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #f1f5f9;
}

.clover-mini-cart-content h4 {
    margin: 0 0 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #1e293b;
}

.clover-mini-cart-price {
    color: #0D4228;
    /* Prices shown cleanly in theme green */
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 15px;
}

/* 🎛️ QUANTITY INPUT BAR SETTINGS (ROW VIEW INSIDE DRAWER) */
.clover-mini-qty {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    width: fit-content;
}

.clover-qty-btn {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8fafc;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    color: #475569;
    transition: background 0.2s;
}

.clover-qty-btn:hover {
    background: #f1f5f9;
    color: #C23228;
}

.clover-qty-input {
    width: 40px;
    height: 30px;
    text-align: center;
    border: none;
    border-left: 1px solid #cbd5e1;
    border-right: 1px solid #cbd5e1;
    font-weight: 600;
    font-size: 13px;
    background: #ffffff;
}

.clover-remove-item {
    border: none;
    background: none;
    cursor: pointer;
    color: #94a3b8;
    font-size: 16px;
    transition: color 0.2s;
}

.clover-remove-item:hover {
    color: #C23228;
}

/* 🛍️ FOOTER SUMMARY ROW PANELS */
.clover-mini-cart-footer {
    border-top: 1px solid #eef2f7;
    padding: 24px;
    background: #f8fafc;
}

.clover-mini-cart-total-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 600;
}

.clover-mini-cart-total {
    color: #0D4228 !important;
    /* Bold total tag in deep green */
    font-size: 20px;
}

/* 🏁 DRAWER FOOTER SUBMIT ACTION LINK ACTION TARGETS */
.clover-mini-cart-buttons {
    display: flex;
    gap: 14px;
}

.clover-mini-btn {
    flex: 1;
    text-align: center;
    text-decoration: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    transition: transform .2s, background-color .2s;
}

.clover-mini-btn.primary {
    background: #C23228 !important;
    /* Checkout action set in theme red */
    color: #ffffff !important;
}

.clover-mini-btn.primary:hover {
    background: #0D4228 !important;
    /* Interacts directly over to green */
}

.clover-mini-btn.secondary {
    background: #e2e8f0;
    color: #334155;
}

.clover-mini-btn.secondary:hover {
    background: #cbd5e1;
}

/* 🏜️ EMPTY STATE DESIGN RULES */
.clover-empty-cart {
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
    font-size: 15px;
}

/* 📱 MOBILE RESPONSIVE ADAPTATIONS */
@media(max-width:480px) {
    #clover-mini-cart {
        bottom: 18px;
        right: 18px;
    }

    .clover-mini-cart-drawer {
        width: 100%;
        right: -100%;
    }
}