    /* ===== Drawer footer: checkout is the primary action, view-cart secondary
       (mirrors the reference layout the client supplied). Declared after the
       original .mini-cart-view-cart-btn block so it wins without editing it. ===== */
    .mini-cart-footer {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .mini-cart-footer .mini-cart-view-cart-btn {
        background: #f2f2f2;
        color: #222222;
        box-shadow: none;
        border: 1px solid #e2e2e2;
    }
    .mini-cart-footer .mini-cart-view-cart-btn:hover {
        background: #e8e8e8;
    }
    .mini-cart-checkout-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 11px 14px;
        border-radius: 999px;
        background: #2f4e36;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        letter-spacing: .02em;
        transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
        box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    }
    .mini-cart-checkout-btn:hover {
        background: #26402c;
        color: #ffffff;
    }
    .mini-cart-checkout-btn:active {
        transform: translateY(1px);
    }

    /* ============= OVERLAY + DRAWER ============= */
    .mini-cart-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        display: none;
        align-items: stretch;
        justify-content: flex-end;
        z-index: 9997;
    }
    .mini-cart-overlay.is-open {
        display: flex;
    }

    .mini-cart-drawer {
        width: 20vw;
        min-width: 260px;
        max-width: 380px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -12px 0 35px rgba(0,0,0,0.18);
        display: flex;
        flex-direction: column;
        border-radius: 18px 0 0 18px;
        padding: 18px 18px 16px 18px;
        box-sizing: border-box;
        position: relative;
        transform: translateX(100%);
        transition: transform 0.2s ease-out;
    }
    html[dir="rtl"] .mini-cart-overlay {
        justify-content: flex-start;
    }
    html[dir="rtl"] .mini-cart-drawer {
        border-radius: 0 18px 18px 0;
        box-shadow: 12px 0 35px rgba(0,0,0,0.18);
        transform: translateX(-100%);
    }
    .mini-cart-overlay.is-open .mini-cart-drawer {
        transform: translateX(0);
    }

    /* ============= HEADER ============= */
    .mini-cart-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 10px;
    }
    .mini-cart-title {
        font-size: 16px;
        font-weight: 700;
        color: #1b1b1b;
    }
    .mini-cart-close {
        border: none;
        background: #f2efe9;
        width: 28px;
        height: 28px;
        border-radius: 999px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 18px;
        line-height: 1;
        color: #7a7469;
        transition: background 0.15s ease, color 0.15s ease, transform 0.05s ease;
    }
    .mini-cart-close:hover {
        background: #e2ddd3;
        color: #4a463f;
        transform: translateY(-1px);
    }

    /* ============= BODY ============= */
    .mini-cart-body {
        flex: 1 1 auto;
        overflow-y: auto;
        margin-top: 6px;
        padding-right: 4px;
    }
    html[dir="rtl"] .mini-cart-body {
        padding-right: 0;
        padding-left: 4px;
    }

    .mini-cart-empty {
        font-size: 13px;
        color: #7f7a72;
        margin: 40px 4px;
        text-align: center;
    }

    .mini-cart-items {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .mini-cart-item {
        display: flex;
        align-items: flex-start;
        gap: 10px;
        padding: 10px 2px;
        border-bottom: 1px solid #f1ece4;
    }
    .mini-cart-item:last-child {
        border-bottom: none;
    }

    .mini-cart-thumb img {
        width: 68px;
        height: 68px;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

    .mini-cart-info {
        flex: 1;
        min-width: 0;
    }
    .mini-cart-name a,
    .mini-cart-name {
        font-size: 13px;
        font-weight: 600;
        color: #151515;
        text-decoration: none;
        display: block;
        margin-bottom: 4px;
    }
    .mini-cart-name a:hover {
        color: #2f4e36;
    }

    .mini-cart-meta {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 12px;
    }
    .mini-cart-qty {
        color: #7f7a72;
    }
    .mini-cart-price {
        color: #151515;
        font-weight: 600;
    }

    /* ============= SUMMARY ============= */
    .mini-cart-summary {
        margin-top: 12px;
        padding: 10px 8px;
        border-radius: 12px;
        background: #f9f7f2;
    }
    .mini-cart-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
    }
    .mini-cart-summary-row .label {
        color: #6f6a62;
        font-weight: 500;
    }
    .mini-cart-summary-row .value {
        color: #151515;
        font-weight: 700;
    }

    /* ============= FOOTER BUTTON ============= */
    .mini-cart-footer {
        margin-top: 10px;
    }
    .mini-cart-view-cart-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 11px 14px;
        border-radius: 999px;
        background: #2f4e36;
        color: #ffffff;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        border: none;
        cursor: pointer;
        transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
        box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    }
    .mini-cart-view-cart-btn:hover {
        color:#FFF;
        background: #26412c;
        transform: translateY(-1px);
        box-shadow: 0 11px 26px rgba(0,0,0,0.22);
    }

    /* Small screens: drawer a bit wider */
    @media (max-width: 768px) {
        .mini-cart-drawer {
            width: 80vw;
            max-width: none;
        }
    }
