/* ===== UDL shared cart (nav icon + drawer) ===== */
.nav-cart { position: relative; background: none; border: none; color: rgba(255,255,255,0.8); cursor: pointer; font-size: 20px; line-height: 1; padding: 0 4px; display: inline-flex; align-items: center; }
.nav-cart:hover { color: #fff; }
.nav-cart-count { position: absolute; top: -7px; right: -8px; background: var(--brand); color: #fff; font-size: 9px; font-weight: 600; min-width: 15px; height: 15px; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 3px; }

.cart-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 1050; justify-content: flex-end; }
.cart-overlay.open { display: flex; }
.cart-panel { background: #0f0f0f; border-left: 0.5px solid rgba(255,255,255,0.1); width: 100%; max-width: 360px; height: 100%; display: flex; flex-direction: column; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 0.5px solid rgba(255,255,255,0.08); }
.cart-head h3 { font-size: 15px; font-weight: 600; color: #fff; }
.cart-close { background: none; border: none; color: rgba(255,255,255,0.5); font-size: 26px; line-height: 1; cursor: pointer; }
.cart-close:hover { color: #fff; }
#cart-items { flex: 1; overflow-y: auto; padding: 8px 0; }
.cart-row { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; border-bottom: 0.5px solid rgba(255,255,255,0.04); font-size: 13px; color: rgba(255,255,255,0.85); }
.cart-remove { background: none; border: none; color: rgba(255,255,255,0.4); font-size: 18px; cursor: pointer; line-height: 1; }
.cart-remove:hover { color: var(--brand); }
.cart-empty-msg { text-align: center; color: rgba(255,255,255,0.4); font-size: 13px; padding: 40px 20px; }
.cart-foot { padding: 16px 20px; border-top: 0.5px solid rgba(255,255,255,0.08); }
.cart-total { font-size: 12px; color: rgba(255,255,255,0.6); margin-bottom: 10px; }
.cart-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px; background: var(--brand-dark); color: #fff; border: none; border-radius: var(--border-radius-md, 10px); font-size: 14px; font-weight: 600; padding: 12px; cursor: pointer; }
.cart-submit:hover { background: var(--brand); }
.cart-wa-opt { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: rgba(255,255,255,0.55); margin-bottom: 10px; cursor: pointer; line-height: 1.4; }
.cart-wa-opt input { margin-top: 2px; accent-color: var(--brand); flex-shrink: 0; }
.cart-wa-opt span { color: #25D366; font-weight: 500; }

/* Cart message modal (min/max warnings) */
.cart-msg-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.78); z-index: 1100; align-items: center; justify-content: center; padding: 24px; }
.cart-msg-overlay.open { display: flex; }
.cart-msg-box { background: #0f0f0f; border: 0.5px solid rgba(192,57,43,0.3); border-radius: var(--border-radius-lg, 16px); max-width: 360px; width: 100%; padding: 26px 24px; text-align: center; }
.cart-msg-icon { width: 50px; height: 50px; border-radius: 50%; background: rgba(139,0,0,0.2); border: 0.5px solid rgba(192,57,43,0.4); display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.cart-msg-icon i { font-size: 24px; color: var(--brand); }
.cart-msg-box h3 { font-size: 16px; font-weight: 500; color: #fff; margin-bottom: 8px; }
.cart-msg-box p { font-size: 12px; color: rgba(255,255,255,0.55); line-height: 1.6; }
.cart-msg-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.cart-msg-actions button { font-size: 13px; font-weight: 500; padding: 11px; border-radius: var(--border-radius-md, 10px); cursor: pointer; font-family: var(--font-sans); border: none; }
.cart-msg-actions button.primary { background: var(--brand-dark); color: #fff; }
.cart-msg-actions button.primary:hover { background: var(--brand); }
.cart-msg-actions button.ghost { background: transparent; border: 0.5px solid rgba(255,255,255,0.15); color: rgba(255,255,255,0.65); }
.cart-msg-actions button.ghost:hover { color: #fff; border-color: rgba(255,255,255,0.3); }

/* Standalone toast (used where the page has no built-in #toast element) */
.udl-cart-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: #1a1a1a; border: 0.5px solid rgba(37,211,102,0.5); color: #fff; font-size: 12px; padding: 11px 16px; border-radius: var(--border-radius-md, 10px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 1200; }
.udl-cart-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Identical header on every page (matches the home page), with centered nav + grouped cart */
@media (min-width: 561px) {
  .nav { position: relative; }
  .logo { font-size: 15px !important; }
  .nav-links { gap: 20px !important; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
  .nav-links a { font-size: 12px !important; }
  .nav-btn { font-size: 12px !important; padding: 7px 16px !important; }
  .nav-cart { margin-left: auto; margin-right: 12px; }
}
