/* Live Longevity - Cart Drawer */
/* 1. HEADER CART BUTTON */
.ll-cart-label { color: #002F6C; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1; }
.ll-cart-price-sep { color: #002F6C; opacity: 0.5; font-weight: 400; font-size: 12px; }
.ll-cart-price { color: #002F6C; font-size: 13px; font-weight: 600; }
.ll-cart-badge { display: inline-flex; align-items: center; justify-content: center;
background: #7c2529; color: #fff; font-size: 11px; font-weight: 700; min-width: 20px;
height: 20px; border-radius: 3px; padding: 0 5px; line-height: 1; transition: background 0.2s; }
.ll-cart-badge[data-count=0] { background: #002F6C; opacity: 0.4; }
.ll-cart-icon { width: 20px; height: 20px; flex-shrink: 0; color: #002F6C; }
.elementor-menu-cart__toggle_button:hover .ll-cart-label,
.elementor-menu-cart__toggle_button:hover .ll-cart-icon,
a.cart-contents:hover .ll-cart-label,
a.cart-contents:hover .ll-cart-icon { color: #7c2529; }
.elementor-menu-cart__toggle_button:hover .ll-cart-badge,
a.cart-contents:hover .ll-cart-badge { background: #5a1a1d; }
/* 2. OVERLAY */
#ll-cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 99998;
opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
#ll-cart-overlay.ll-open { opacity: 1; pointer-events: all; }

/* 3. DRAWER */
#ll-cart-drawer { position: fixed; top: 0; right: -420px; width: 400px; max-width: 95vw;
height: 100vh; background: #fff; z-index: 99999; display: flex; flex-direction: column;
box-shadow: -4px 0 24px rgba(0,0,0,0.15); transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
font-family: inherit; }
#ll-cart-drawer.ll-open { right: 0; }

.ll-drawer-header { display: flex; align-items: center; justify-content: space-between;
padding: 20px 24px; border-bottom: 2px solid #002F6C; background: #002F6C; color: #fff; flex-shrink: 0; }
.ll-drawer-header h2 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: 0.12em;
text-transform: uppercase; color: #fff; }
.ll-drawer-header-right { display: flex; align-items: center; gap: 12px; }
.ll-drawer-count-label { font-size: 12px; opacity: 0.75; letter-spacing: 0.05em; }
.ll-drawer-close { background: none; border: none; color: #fff; cursor: pointer; padding: 4px;
display: flex; align-items: center; justify-content: center; opacity: 0.8; transition: opacity 0.2s; line-height: 1; }
.ll-drawer-close:hover { opacity: 1; }

.ll-shipping-bar { padding: 12px 24px; background: #f8f8f8; border-bottom: 1px solid #eee; flex-shrink: 0; }
.ll-shipping-bar-text { font-size: 12px; color: #444; margin-bottom: 6px; text-align: center; }
.ll-shipping-bar-track { background: #ddd; border-radius: 99px; height: 5px; overflow: hidden; }
.ll-shipping-bar-fill { height: 100%; background: #002F6C; border-radius: 99px; transition: width 0.5s ease; }
/* 4. ITEMS */
.ll-drawer-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.ll-drawer-items::-webkit-scrollbar { width: 4px; }
.ll-drawer-items::-webkit-scrollbar-track { background: #f1f1f1; }
.ll-drawer-items::-webkit-scrollbar-thumb { background: #002F6C; border-radius: 2px; }

.ll-cart-empty { display: flex; flex-direction: column; align-items: center; justify-content: center;
height: 100%; gap: 16px; color: #888; text-align: center; padding: 40px 0; }
.ll-cart-empty svg { opacity: 0.25; }
.ll-cart-empty p { margin: 0; font-size: 15px; }
.ll-cart-empty a { color: #002F6C; font-weight: 600; text-decoration: underline; }

.ll-cart-item { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px;
align-items: start; padding: 16px 0; border-bottom: 1px solid #f0f0f0; }
.ll-cart-item:last-child { border-bottom: none; }
.ll-item-img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #f5f5f5; }
.ll-item-img-placeholder { width: 72px; height: 72px; border-radius: 6px; background: #eee;
display: flex; align-items: center; justify-content: center; }
.ll-item-details { min-width: 0; }
.ll-item-name { font-size: 13px; font-weight: 600; color: #002F6C; line-height: 1.3;
margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ll-item-variation { font-size: 11px; color: #888; margin-bottom: 8px; }
.ll-item-qty-row { display: flex; align-items: center; gap: 8px; }
.ll-qty-btn { width: 26px; height: 26px; border: 1px solid #ddd; background: #fff; cursor: pointer;
font-size: 16px; display: flex; align-items: center; justify-content: center; border-radius: 4px;
color: #002F6C; transition: background 0.15s, border-color 0.15s; line-height: 1; }
.ll-qty-btn:hover { background: #002F6C; color: #fff; border-color: #002F6C; }
.ll-qty-display { font-size: 13px; font-weight: 600; color: #333; min-width: 20px; text-align: center; }
.ll-item-price { font-size: 13px; font-weight: 700; color: #002F6C; white-space: nowrap; text-align: right; }
.ll-item-remove { font-size: 11px; color: #aaa; cursor: pointer; text-decoration: underline;
background: none; border: none; padding: 0; margin-top: 4px; display: block; transition: color 0.15s; }
.ll-item-remove:hover { color: #7c2529; }
/* 5. FOOTER */
.ll-drawer-footer { border-top: 1px solid #eee; padding: 20px 24px; background: #fff; flex-shrink: 0; }
.ll-subtotal-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.ll-subtotal-label { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: #555; }
.ll-subtotal-amount { font-size: 18px; font-weight: 700; color: #002F6C; }
.ll-btn-checkout { display: block; width: 100%; padding: 14px; background: #002F6C; color: #fff; border: none; border-radius: 4px; cursor: pointer; text-align: center; font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; transition: background 0.2s; margin-bottom: 10px; }
.ll-btn-checkout:hover { background: #001f47; }
.ll-btn-view-cart { display: block; width: 100%; padding: 11px; background: transparent;
border: 2px solid #002F6C; border-radius: 4px; cursor: pointer; transition: background 0.2s, color 0.2s; }

/* 6. LOADING */
.ll-drawer-loading { position: absolute; inset: 0; background: rgba(255,255,255,0.8);
display: flex; align-items: center; justify-content: center; z-index: 10;
opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.ll-drawer-loading.ll-active { opacity: 1; pointer-events: all; }
.ll-spinner { width: 36px; height: 36px; border: 3px solid #ddd; border-top-color: #002F6C;
border-radius: 50%; animation: ll-spin 0.7s linear infinite; }
@keyframes ll-spin { to { transform: rotate(360deg); } }

/* 7. RESPONSIVE */
@media (max-width: 480px) {
#ll-cart-drawer { width: 100vw; right: -100vw; }
}
/* Remove border/outline from Elementor cart widget */
.elementor-menu-cart__toggle_button {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}