/* tüsea v2 bag drawer. The drawer is built by assets/cart.js (the live site's bag, unchanged); these are its styles
   lifted from styles/main.css with the handful of tokens they use. Keep in step with main.css until v2 replaces it. */
:root { --star: #F2B705; --text-body: 0.9375rem; --text-label: 0.8125rem; --space-xs: 4px; --space-sm: 8px; --space-md: 16px; --space-lg: 24px; --space-2xl: 48px;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94); --dur-fast: 150ms; --dur-mid: 240ms; --dur-fade: 180ms; }
.cart-overlay {
  position: fixed; inset: 0; z-index: 1000;   /* above the sticky header (z-index 100) */
  background: rgba(22, 22, 22, 0.42);
  opacity: 0; animation: cartFade var(--dur-fade) ease forwards;
}
@keyframes cartFade { to { opacity: 1; } }

.cart-drawer {
  position: fixed; top: 0; right: 0; z-index: 1001;   /* above overlay + header */
  display: flex; flex-direction: column;
  width: min(420px, 92vw); height: 100%;
  background: var(--bg); color: var(--ink);
  box-shadow: -12px 0 40px rgba(22, 22, 22, 0.14);
  transform: translateX(100%);
  transition: transform var(--dur-mid) var(--ease);
  will-change: transform;
}
.cart-drawer[aria-hidden="false"] { transform: translateX(0); }
@media (prefers-reduced-motion: reduce) {
  .cart-drawer { transition: none; }
  .cart-overlay { animation: none; opacity: 1; }
}

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-lg) var(--space-lg) var(--space-md);
  border-bottom: 1px solid var(--line);
}
.cart-drawer__title { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.01em; margin: 0; }
.cart-drawer__close {
  background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; line-height: 1; color: var(--ink);
  width: 44px; height: 44px; margin: -10px -10px -10px 0;
}

.cart-drawer__body { flex: 1 1 auto; overflow-y: auto; padding: var(--space-md) var(--space-lg); }
.cart-drawer__empty { color: var(--sub); text-align: center; padding: var(--space-2xl) 0; line-height: 1.8; }
.cart-drawer__empty a { color: var(--ink); font-weight: 700; }

.cart-line {
  display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-md);
  padding: var(--space-md) 0; border-bottom: 1px solid var(--line);
}
.cart-line__img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; background: var(--soft); }
.cart-line__img--empty { display: block; }
.cart-line__name { font-weight: 700; font-size: var(--text-body); margin: 0 0 2px; }
.cart-line__meta { color: var(--sub); font-size: var(--text-label); margin: 0 0 var(--space-sm); }
.cart-line__qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 4px; }
.cart-line__step {
  width: 32px; height: 32px; background: none; border: 0; cursor: pointer;
  font-size: 1rem; line-height: 1; color: var(--ink);
}
.cart-line__qval { min-width: 26px; text-align: center; font-size: var(--text-body); }
.cart-line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.cart-line__price { font-weight: 700; font-size: var(--text-body); }
.cart-line__remove {
  background: none; border: 0; cursor: pointer; padding: 0;
  font-size: var(--text-label); color: var(--sub); text-decoration: underline;
}
.cart-line__remove:hover { color: var(--ink); }

.cart-drawer__foot { border-top: 1px solid var(--line); padding: var(--space-lg); }
.cart-drawer__subtotal {
  display: flex; align-items: baseline; justify-content: space-between;
  font-size: 1rem; margin-bottom: var(--space-xs);
}
.cart-drawer__subtotal strong { font-weight: 800; }
.cart-drawer__stars {
  color: var(--ink); font-size: var(--text-label); font-weight: 600;
  margin: 0 0 2px; letter-spacing: 0.02em;
}
.cart-drawer__stars span { letter-spacing: 1px; color: var(--star); }
.cart-drawer__note { color: var(--sub); font-size: var(--text-label); margin: 0 0 var(--space-md); }
.cart-drawer__checkout {
  /* <a role="button"> since cart.js v17 (no-JS checkout fallback) — needs the
     line-height/centering + text-decoration resets a <button> got for free */
  display: block; width: 100%; height: 52px; line-height: 52px;
  box-sizing: border-box; text-align: center; text-decoration: none;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 4px; cursor: pointer;
  font-size: var(--text-body); font-weight: 700; letter-spacing: 0.01em;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.cart-drawer__checkout:hover { background: #FF1493; color: #000; }
.cart-drawer__checkout:disabled,
.cart-drawer__checkout[aria-disabled="true"] { opacity: 0.4; cursor: not-allowed; pointer-events: none; }
.cart-drawer__cont {
  display: block; text-align: center; margin-top: var(--space-md);
  font-size: var(--text-label); color: var(--sub); text-decoration: underline;
}
.cart-drawer__cont:hover { color: var(--ink); }

/* v2: the closed drawer sits just off screen, so its shadow must not fall across the right edge of the page */
.cart-drawer[aria-hidden="true"] { box-shadow: none; }

/* v2: free shipping progress at the top of the bag (assets/js/bagbar.js) */
.shipbar { padding: 12px var(--space-lg) 14px; border-bottom: 1px solid var(--line); font-size: 13px; }
.shipbar__text { margin: 0; }
.shipbar__track { height: 8px; border-radius: 4px; overflow: hidden; margin-top: 9px; background: var(--line); }
.shipbar__fill { height: 100%; width: 0; background: var(--pink, #ff41b4); transition: width var(--dur-mid) var(--ease); }

/* v2: checkout is pink with black type, turning black when hovered or pressed (nic, 11 nov; the live bag's is pink too) */
.cart-drawer__checkout { background: var(--pink, #ff41b4); border-color: var(--pink, #ff41b4); color: #161616; transition: background-color var(--dur-fast), color var(--dur-fast); }
.cart-drawer__checkout:hover, .cart-drawer__checkout:active { background: #161616; border-color: #161616; color: #fff; opacity: 1; }
