:root {
    --lux-greige: #d2c8b9;
    --lux-dark: #1a1a1a;
}

/* 1. MOBILE ZOOM FIXES */
.lux-qty-wrap input.qty { font-size: 16px !important; touch-action: manipulation !important; }

/* 2. DRAWER & GLASS EFFECT */
.lux-cart-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); opacity: 0; visibility: hidden;
    transition: 0.3s; z-index: 9998;
}
body.show-mini-cart .lux-cart-overlay { opacity: 1; visibility: visible; }

.lux-mini-cart {
    position: fixed; top: 0; bottom: 0; right: -360px;
    width: 340px; max-width: 85vw;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 9999; display: flex; flex-direction: column;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0,0,0,0.05);
}
body.show-mini-cart .lux-mini-cart { transform: translateX(-360px); }

/* 3. STICKY LAYOUT LOGIC */
.lux-cart-header { padding: 20px; flex-shrink: 0; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(0,0,0,0.03); }
.lux-cart-header h3 { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 0; }

.widget_shopping_cart_content { display: flex; flex-direction: column; height: 100%; overflow: hidden; }

/* Product List - This scrolls */
.woocommerce-mini-cart.cart_list { 
    flex: 1; 
    overflow-y: auto; 
    padding: 10px 20px !important; 
    margin: 0 !important;
    scrollbar-width: thin;
}

/* Totals & Buttons - These stay fixed at bottom */
.woocommerce-mini-cart__total, 
.woocommerce-mini-cart__buttons { 
    flex-shrink: 0; 
    background: #fff; 
    padding: 15px 20px; 
    border-top: 1px solid #eee; 
}

/* 4. ITEM STYLING */
.woocommerce-mini-cart-item { padding: 12px 10px 12px 75px !important; border-bottom: 1px solid #f9f9f9; position: relative; font-size: 13px; list-style: none; }
.woocommerce-mini-cart-item img { position: absolute; left: 0; top: 12px; width: 55px !important; border-radius: 4px; }

/* 5. QTY CONTROLS */
.lux-qty-wrap { display: inline-flex; background: #f4f4f4; border-radius: 4px; margin-top: 8px; min-width: 110px; height: 32px; align-items: center; }
.lux-qty-btn { width: 30px; height: 100%; border: 0; background: none; cursor: pointer; font-size: 18px; color: #666; }
.lux-qty-btn:disabled { color: #ccc; cursor: not-allowed; }
.lux-qty-wrap input.qty { width: 50px !important; border: 0 !important; background: transparent !important; text-align: center; font-weight: 600; color: #444; outline: none !important; }

/* 6. BUTTON STYLING */
.woocommerce-mini-cart__buttons { display: flex !important; gap: 8px; margin: 0 !important; }
.woocommerce-mini-cart__buttons a { flex: 1; padding: 12px !important; border-radius: 4px !important; font-size: 10px !important; text-transform: uppercase; text-align: center; text-decoration: none; }
.woocommerce-mini-cart__buttons a.checkout { background: var(--lux-greige) !important; color: #444 !important; }

.lux-add.button { background: var(--lux-greige) !important; color: #444 !important; border-radius: 50px !important; padding: 8px 18px !important; font-size: 11px !important; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; border: 0 !important; transition: 0.3s; display: inline-block; touch-action: manipulation; }
.lux-cart-close { background: none; border: 0; font-size: 26px; cursor: pointer; color: #888; }
html.lux-lock-scroll, html.lux-lock-scroll body { overflow: hidden !important; }
