/* ============================================================
   NUNZIO ORSINI: cart drawer, lifted verbatim from style2.css so the
   V2-native pages (The Craft, its articles, The Collection) can run the
   live cart without loading the V1 stylesheet. The ten tokens the drawer
   reads are resolved here at their dark values, scoped to the drawer
   because three of the names collide with the v2.css type scale. Drawer
   markup comes from cart.js at runtime; nothing here styles page content.
   ============================================================ */

.cart-overlay, .cart-drawer, .cart-icon-btn {
  --color-border: #253a60;
  --color-surface: #0d1624;
  --color-surface-alt: #0D1624;
  --color-text: #e0e8f4;
  --color-text-muted: #7a92b8;
  --font-body: 'Switzer', 'Helvetica Neue', Arial, sans-serif;
  --space-8: 2rem;
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-sm: clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-xs: clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
}

/* ── Cart icon button in nav ─────────────────────────────────────────────── */
.cart-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
}
.cart-icon-btn:hover {
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
}
.cart-icon-btn:focus-visible {
  outline: 2px solid #c9a84c;
  outline-offset: 2px;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  background: #c9a84c;
  color: #0e0d0b;
  border-radius: 50%;
  font-size: 10px;
  font-weight: 700;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  pointer-events: none;
}

/* Pulse animation when item added */
@keyframes cart-pulse {
  0%   { transform: scale(1); }
  30%  { transform: scale(1.28); }
  60%  { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.cart-icon--pulse {
  animation: cart-pulse 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

/* ── Overlay ─────────────────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Drawer ──────────────────────────────────────────────────────────────── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 100vw);
  background: var(--color-surface);
  border-left: 1px solid var(--color-border);
  z-index: 901;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.cart-drawer.open {
  transform: translateX(0);
}

/* ── Drawer header ───────────────────────────────────────────────────────── */
.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.cart-drawer__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}
.cart-drawer__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.cart-drawer__close:hover {
  color: var(--color-text);
  background: var(--color-surface-alt);
}

/* ── Cart body (scrollable) ──────────────────────────────────────────────── */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.75rem 1.5rem;
  overscroll-behavior: contain;
}
.cart-body::-webkit-scrollbar { width: 4px; }
.cart-body::-webkit-scrollbar-track { background: transparent; }
.cart-body::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }

/* ── Empty state ─────────────────────────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-text-muted);
  gap: 0.75rem;
}
.cart-empty p {
  margin: 0;
  font-size: var(--text-base);
}

/* ── Cart item ───────────────────────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item__info {
  flex: 1;
  min-width: 0;
}
.cart-item__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.cart-item__meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}
.cart-item__color-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  flex-shrink: 0;
}
.cart-item__sep {
  opacity: 0.4;
}
.cart-item__price {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #c9a84c;
  letter-spacing: 0.03em;
}
.cart-item__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  margin-top: 2px;
}
.cart-item__remove:hover {
  color: #c0392b;
  background: rgba(192, 57, 43, 0.1);
}

/* ── Cart footer ─────────────────────────────────────────────────────────── */
.cart-footer {
  flex-shrink: 0;
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Totals ──────────────────────────────────────────────────────────────── */
.cart-totals {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: 0.25rem;
}
.cart-totals__row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.cart-totals__row--total {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  padding-top: 0.4rem;
  margin-top: 0.2rem;
  border-top: 1px solid var(--color-border);
}
.cart-tax-note {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 0.5rem;
  letter-spacing: 0.02em;
}

.cart-promo {
  font-size: var(--text-sm);
  color: #c9a84c;
  background: rgba(201, 168, 76, 0.08);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 6px;
  padding: 0.55rem 0.8rem;
  text-align: center;
  letter-spacing: 0.01em;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.cart-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, opacity 0.2s;
  border: none;
}
.cart-btn--primary {
  background: #c9a84c;
  color: #0e0d0b;
}
.cart-btn--primary:hover {
  background: #b8963d;
  color: #0e0d0b;
}
.cart-btn--secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.cart-btn--secondary:hover {
  background: var(--color-border);
}
.cart-btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  font-size: var(--text-xs, 12px);
  letter-spacing: 0.08em;
  padding: 0.5rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  border: none;
}
.cart-btn--ghost:hover {
  color: var(--color-text);
}

/* ── Mobile ──────────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .cart-drawer {
    width: 100vw;
  }
}

/* ── Cart item thumbnail ─────────────────────────────────────────────────── */
.cart-item__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
}
.cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.cart-item:hover .cart-item__thumb img {
  transform: scale(1.05);
}

/* ── Hero, mobile-only adjustments ─────────────────────────────────────── */
@media (max-width: 600px) {
  /* Shift entire hero below fixed header on mobile */
  .hero {
    align-items: flex-start;
    margin-top: 0;
    padding-top: clamp(5rem, 22vw, 7rem);
    padding-bottom: var(--space-8);
