/* ==========================================================
   SMOOTH SIDE CART STYLES
========================================================== */
.marbo-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.5); z-index: 999998;
    opacity: 0; visibility: hidden; transition: all 0.3s ease;
}
.marbo-cart-overlay.active { opacity: 1; visibility: visible; }

.marbo-side-cart {
    position: fixed; 
    top: 0; right: 0; bottom: 0; /* Adding bottom:0 anchors it safely */
    width: 420px; max-width: 90vw; 
    height: 100dvh; /* CRITICAL FIX: Dynamic viewport height stops browser overlap */
    background: #fff; z-index: 999999;
    transform: translateX(100%); 
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex; flex-direction: column;
    box-shadow: -5px 0 30px rgba(0,0,0,0.1);
}
.marbo-side-cart.active { transform: translateX(0); }

/* Header */
.luxury-cart-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 25px 30px; border-bottom: 1px solid #eaeaea;
}
.luxury-cart-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px; font-weight: 500; margin: 0; color: #111;
}
.luxury-cart-close {
    background: none; border: none; color: #111; cursor: pointer; padding: 0;
}

/* Body / Items */
.widget_shopping_cart_content { flex: 1; display: flex; flex-direction: column; overflow: hidden; transition: opacity 0.3s ease;}
.luxury-cart-inner { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.luxury-cart-body { padding: 30px; overflow-y: auto; flex: 1; }

.lux-cart-item { display: flex; gap: 15px; margin-bottom: 25px; }
.lux-item-img img { width: 80px; height: 100px; object-fit: cover; }
.lux-item-content { flex: 1; display: flex; flex-direction: column; justify-content: space-between; }
.lux-item-title { font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500; color: #111; text-decoration: none; margin-bottom: 5px; }
.lux-item-price { font-family: 'Inter', sans-serif; font-size: 14px; color: #555; margin-bottom: 15px; }

/* Actions (Qty + Remove) */
.lux-item-actions { display: flex; align-items: center; gap: 20px; }
.lux-qty-wrap {
    display: flex; align-items: center; border: 1px solid #ddd; border-radius: 20px; padding: 4px 10px;
}
.lux-qty-btn { background: none; border: none; font-size: 16px; color: #111; cursor: pointer; padding: 0 5px; }
.lux-qty-val { font-family: 'Inter', sans-serif; font-size: 14px; margin: 0 10px; min-width: 15px; text-align: center; }

.lux-remove { font-family: 'Inter', sans-serif; font-size: 12px; color: #888; text-decoration: underline; background: none; border: none; cursor: pointer; padding: 0; }
.lux-remove:hover { color: #d00000; }

/* Empty Cart */
.lux-empty-msg { font-family: 'Inter', sans-serif; font-size: 16px; color: #555; text-align: center; margin-top: 40px; }
.lux-return-shop { display: block; text-align: center; font-family: 'Inter', sans-serif; font-size: 14px; color: #111; text-decoration: underline; margin-top: 20px; }

/* Footer / Checkout Button */
.luxury-cart-footer {
    padding: 20px 20px 15px !important;
    background: #fafafa !important;
    border-top: 1px solid #eaeaea !important;
}

.lux-price-details { margin-bottom: 16px; }

.lux-price-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #888;
    margin: 0 0 12px;
}

.lux-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #444;
    padding: 6px 0;
}

.lux-price-row + .lux-price-row {
    border-top: 1px dashed #e5e5e5;
}

.lux-price-row.lux-price-total {
    margin-top: 6px;
    padding-top: 12px;
    border-top: 1px solid #ddd !important;
    font-weight: 700;
    font-size: 16px;
    color: #111;
}

.lux-payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.lux-payment-icons img {
    height: 30px;
    width: auto;
    opacity: 0.85;
    max-width: 100%;
}

}


/* ==========================================================
   MOBILE-FRIENDLY 100VH SLIDE CART & LOCKED HEADER/FOOTER
========================================================== */

.marbo-side-cart {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    height: 100dvh !important; /* CRITICAL FIX: Replaced 100% and max-height */
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
}

.luxury-cart-header {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 15px 20px !important;
    min-height: 60px !important;
    border-bottom: 1px solid #eaeaea !important;
    background: #fff !important;
    z-index: 10 !important;
}

.luxury-cart-header h2 {
    font-size: 20px !important; 
    margin: 0 !important;
}

.widget_shopping_cart_content,
.luxury-cart-inner {
    flex: 1 1 auto !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
}

.luxury-cart-body {
    flex: 1 1 auto !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 15px 20px 20px 20px !important;
}

.luxury-cart-footer {
    flex: 0 0 auto !important;
    width: 100% !important;
    padding: 15px 20px !important; 
    background: #fafafa !important;
    z-index: 10 !important;
    border-top: 1px solid #eaeaea !important;
}

.lux-checkout-btn {
    display: flex; justify-content: center; align-items: center; width: 100%; height: 54px;
    background: #111; color: #fff; font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px; border-radius: 30px; text-decoration: none; transition: background 0.3s ease;
    padding: 12px 20px !important; 
}
.lux-checkout-btn:hover { background: #333; color: #fff; }


/* ==========================================================
   1. HIDE WOOCOMMERCE "VIEW CART" INJECTION
========================================================== */
a.added_to_cart.wc-forward,
.added_to_cart.wc-forward {
    display: none !important;
}

/* ==========================================================
   2. PREMIUM CART BADGE (HEADER ICON)
========================================================== */
.site-header-cart,
.cart-icon-wrap,
a.cart-contents {
    position: relative !important;
    display: inline-flex !important;
    align-items: center;
    text-decoration: none;
}

.site-header-cart .count,
.cart-icon-wrap .count,
a.cart-contents .count {
    position: absolute !important;
    top: -6px !important;
    right: -10px !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    width: 18px !important;
    height: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    line-height: 1 !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.site-header-cart .count::after,
.site-header-cart .count::before,
a.cart-contents .count::after,
a.cart-contents .count::before {
    display: none !important;
}

/* ==========================================================
   3. CHECKOUT BUTTON VISIBILITY FIX (BREEZE TARGETING)
========================================================== */

/* 1. Make the native button invisible, but NOT display: none. 
   Breeze needs it to have physical dimensions to attach its JS! */
.woocommerce-mini-cart__buttons a.button.checkout.wc-forward {
    opacity: 0 !important;
    position: absolute !important;
    pointer-events: none !important;
    z-index: -1 !important;
}

/* 2. Force the Breeze wrapper to become fully visible and take up 100% width */
.woocommerce-mini-cart__buttons [id*="breeze"],
.woocommerce-mini-cart__buttons [class*="breeze"],
.luxury-cart-footer [id*="breeze"],
.luxury-cart-footer [class*="breeze"] {
    display: block !important;
    width: 100% !important;
    opacity: 1 !important;
    visibility: visible !important;
    position: relative !important;
    margin-top: 10px !important;
    z-index: 10 !important;
}

/* 3. Ensure the actual Breeze button inside the wrapper looks correct */
.breeze-button {
    width: 100% !important;
    border-radius: 33px !important; 
}


/* ==========================================================
   4. BREEZE TRUST BADGE INLINE & CENTER FIX
========================================================== */
.breeze-trust {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important; 
    text-align: center !important;
    gap: 6px !important;
    flex-wrap: nowrap !important; 
    white-space: nowrap !important;
    margin-top: 1px !important; 
    
    /* --- NEW: SECURE BANKING TYPOGRAPHY --- */
    /* Uses Inter first, then safely falls back to native OS fonts */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important; 
    font-size: 11px !important;     /* Smaller, footnote-style size */
    font-style: italic !important;  /* Italicized */
    font-weight: 500 !important;    /* Medium weight keeps it crisp */
    color: #666666 !important;      /* A professional, muted gray */
    letter-spacing: 0.2px !important;
}

/* Shrink the padlock slightly to match the new text size */
.breeze-trust svg {
    width: 12px !important; 
    height: 12px !important;
}

/* Shrink the Breeze logo slightly to match */
.breeze-trust img.breeze-logo-inline {
    height: 12px !important; 
    width: auto !important;
    margin: 0 !important;
    display: inline-block !important;
}

/* ==========================================================
   RESPONSIVE: TABLET (≤768px)
========================================================== */
@media (max-width: 768px) {
    .marbo-side-cart {
        width: 400px;
        max-width: 92vw;
    }

    .luxury-cart-header {
        padding: 18px 22px !important;
        min-height: 56px !important;
    }

    .luxury-cart-header h2 {
        font-size: 18px !important;
    }

    .luxury-cart-body {
        padding: 20px 22px !important;
    }

    .lux-cart-item {
        gap: 12px;
        margin-bottom: 20px;
    }

    .lux-item-img img {
        width: 70px;
        height: 88px;
    }

    .lux-item-title { font-size: 14px; }
    .lux-item-price { font-size: 13px; margin-bottom: 12px; }

    .lux-item-actions { gap: 16px; }
    .lux-qty-wrap { padding: 3px 8px; }
    .lux-qty-btn { font-size: 15px; }
    .lux-qty-val { font-size: 13px; margin: 0 8px; }
    .lux-remove { font-size: 11px; }

    .luxury-cart-footer {
        padding: 16px 22px !important;
    }

    .lux-price-heading { font-size: 11px; }
    .lux-price-row { font-size: 13px; padding: 5px 0; }
    .lux-price-row.lux-price-total { font-size: 15px; }

    .lux-checkout-btn {
        height: 50px !important;
        font-size: 10px !important;
    }

    .lux-payment-icons img { height: 18px; }
}


/* ==========================================================
   RESPONSIVE: MOBILE (≤480px)
========================================================== */
@media (max-width: 480px) {
    .marbo-side-cart {
        width: 100vw;
        max-width: 100vw;
    }

    .luxury-cart-header {
        padding: 14px 16px !important;
        min-height: 52px !important;
    }

    .luxury-cart-header h2 {
        font-size: 17px !important;
    }

    .luxury-cart-close svg {
        width: 20px;
        height: 20px;
    }

    .luxury-cart-body {
        padding: 16px 16px 18px !important;
    }

    .lux-cart-item {
        gap: 10px;
        margin-bottom: 18px;
    }

    .lux-item-img img {
        width: 64px;
        height: 80px;
    }

    .lux-item-title {
        font-size: 13.5px;
        line-height: 1.35;
        margin-bottom: 4px;
    }

    .lux-item-price { font-size: 12.5px; margin-bottom: 10px; }

    .lux-item-actions {
        gap: 10px;
        flex-wrap: wrap;
    }

    .lux-qty-wrap {
        padding: 2px 6px;
        border-radius: 16px;
    }

    .lux-qty-btn { font-size: 14px; padding: 0 4px; }
    .lux-qty-val { font-size: 12.5px; margin: 0 6px; min-width: 12px; }
    .lux-remove { font-size: 10.5px; }

    .lux-empty-msg { font-size: 14px; margin-top: 30px; }
    .lux-return-shop { font-size: 13px; margin-top: 16px; }

    .luxury-cart-footer {
        padding: 14px 16px 16px !important;
    }

    .lux-price-details { margin-bottom: 12px; }
    .lux-price-heading { font-size: 10.5px; margin-bottom: 8px; }
    .lux-price-row { font-size: 12.5px; padding: 4px 0; }
    .lux-price-row.lux-price-total {
        font-size: 14px;
        padding-top: 10px;
        margin-top: 4px;
    }

    .lux-shipping-note { font-size: 11.5px; }

    .lux-checkout-btn {
        height: 48px !important;
        font-size: 12.5px !important;
        letter-spacing: 0.5px;
    }

    .lux-payment-icons {
        margin-top: 10px;
    }
    .lux-payment-icons img { height: 22px; }
}


/* ==========================================================
   RESPONSIVE: VERY SMALL SCREENS (≤360px)
========================================================== */
@media (max-width: 360px) {
    .luxury-cart-header h2 { font-size: 16px !important; }
    .lux-item-img img { width: auto; height: 70px; }
    .lux-item-title { font-size: 13px; }
    .lux-checkout-btn { font-size: 12px !important; }
}

