/* ═══════════════════════════════════════════════
   AURA — Cart & Shared UI (all pages)
═══════════════════════════════════════════════ */

/* ─── Overlay ──────────────────────────────── */
#aura-cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
}
#aura-cart-overlay.open { opacity: 1; pointer-events: all; }

/* ─── Drawer ───────────────────────────────── */
#aura-cart-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: #fff;
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform .45s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -4px 0 60px rgba(0, 0, 0, .12);
}
#aura-cart-drawer.open { transform: translateX(0); }
body.cart-open,
body.lb-open { overflow: hidden; }

/* ─── Header ───────────────────────────────── */
.cart-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 32px;
  border-bottom: 1px solid #ECEAE4;
  flex-shrink: 0;
}
.cart-hdr-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: .02em;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.cart-count { font-size: 16px; font-weight: 300; color: #888884; }
.cart-x {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; color: #888884;
  transition: color .2s;
}
.cart-x:hover { color: #0A0A0A; }

/* ─── Items ────────────────────────────────── */
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 0 32px;
  overscroll-behavior: contain;
}

/* ─── Empty ────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 320px;
  text-align: center;
  color: #C4C3BE;
}
.cart-empty p { font-size: 15px; font-weight: 300; color: #888884; }
.cart-empty a {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #0A0A0A;
  text-decoration: none;
  border-bottom: 1px solid #0A0A0A;
  padding-bottom: 2px;
  transition: opacity .2s;
}
.cart-empty a:hover { opacity: .6; }

/* ─── Item ─────────────────────────────────── */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid #F7F6F2;
  position: relative;
}
.ci-img {
  width: 76px; height: 76px;
  background: #F7F6F2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ci-img img { width: 68%; height: 68%; object-fit: contain; }
.ci-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.ci-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-weight: 400; line-height: 1.2;
}
.ci-color {
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px; letter-spacing: .2em;
  color: #888884; text-transform: uppercase;
  margin-bottom: 6px;
}
.ci-row { display: flex; align-items: center; justify-content: space-between; }
.ci-qty { display: flex; align-items: center; border: 1px solid #ECEAE4; }
.ci-qty button {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 28px;
  background: none; border: none; cursor: pointer;
  font-size: 15px; color: #0A0A0A;
  transition: background .15s;
}
.ci-qty button:hover { background: #F7F6F2; }
.ci-qty span { min-width: 28px; text-align: center; font-size: 14px; font-weight: 400; }
.ci-price {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 18px; font-weight: 400;
}
.ci-remove {
  position: absolute;
  top: 22px; right: 0;
  background: none; border: none;
  cursor: pointer; color: #C4C3BE;
  padding: 4px; transition: color .2s;
}
.ci-remove:hover { color: #0A0A0A; }

/* ─── Footer ───────────────────────────────── */
.cart-foot {
  padding: 24px 32px 32px;
  border-top: 1px solid #ECEAE4;
  flex-shrink: 0;
}
.cart-totals { margin-bottom: 20px; }
.ct-row { display: flex; justify-content: space-between; font-size: 14px; padding: 5px 0; }
.ct-row.muted { color: #888884; font-size: 13px; }
.ct-row.grand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 20px; font-weight: 400; padding-top: 12px;
}
.ct-line { height: 1px; background: #ECEAE4; margin: 8px 0; }
.cart-cta-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  background: #0A0A0A; color: #fff;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 18px 24px; text-decoration: none;
  transition: background .2s;
}
.cart-cta-btn:hover { background: #1A1A18; }
.cart-note {
  text-align: center;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 9px; letter-spacing: .15em;
  color: #C4C3BE; text-transform: uppercase;
  margin-top: 16px;
}

/* ─── Nav cart icon — dark nav (index.html) ─ */
.nav-cart {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: rgba(255, 255, 255, .75);
  padding: 8px; transition: color .2s;
}
.nav-cart:hover { color: #fff; }
.nav-cart .cart-badge {
  background: #fff; color: #0A0A0A;
}

/* ─── Nav cart icon — light nav (product pages) */
.nav-cart-light {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background: none; cursor: pointer;
  color: #888884;
  padding: 8px 14px;
  border: 1px solid #ECEAE4;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: all .2s;
}
.nav-cart-light:hover { color: #0A0A0A; border-color: #C4C3BE; }
.nav-cart-light .cart-badge {
  background: #0A0A0A; color: #fff;
  top: -5px; right: -5px;
}

/* ─── Badge ─────────────────────────────────── */
.cart-badge {
  display: none;
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  border-radius: 50%;
  font-family: 'DM Mono', 'Courier New', monospace;
  font-size: 8px;
  align-items: center; justify-content: center;
  line-height: 1;
}

@media (max-width: 560px) {
  #aura-cart-drawer { width: 100vw; }
}
