/* ─── Cart Drawer ───────────────────────────────────────────── */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}
.cart-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg, #11120e);
  border-left: 1px solid var(--line, rgba(232,224,204,0.12));
  z-index: 910;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line, rgba(232,224,204,0.12));
  flex-shrink: 0;
}
.cart-drawer-header h2 {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text, #efe5d2);
}
.cart-close {
  background: none;
  border: 1px solid var(--line, rgba(232,224,204,0.12));
  color: var(--text, #efe5d2);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 150ms ease;
}
.cart-close:hover {
  background: rgba(255, 255, 255, 0.06);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-soft, rgba(239,229,210,0.72));
}
.cart-empty p {
  margin-bottom: 20px;
  font-size: 16px;
}
.cart-btn-browse {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent, #7a8f52);
  color: #11120d;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Cart Item */
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line, rgba(232,224,204,0.12));
  align-items: flex-start;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-img {
  width: 72px;
  height: 72px;
  border-radius: 14px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line, rgba(232,224,204,0.12));
}
.cart-item-info {
  flex: 1;
  min-width: 0;
}
.cart-item-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text, #efe5d2);
  margin-bottom: 4px;
}
.cart-item-price {
  font-size: 13px;
  color: var(--text-soft, rgba(239,229,210,0.72));
  margin-bottom: 10px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line, rgba(232,224,204,0.12));
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text, #efe5d2);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 150ms ease;
}
.qty-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}
.qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #efe5d2);
}
.cart-item-remove {
  background: none;
  border: none;
  color: var(--text-faint, rgba(239,229,210,0.5));
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
  transition: color 150ms ease;
}
.cart-item-remove:hover {
  color: #d47a6a;
}
.cart-item-total {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 18px;
  color: var(--text, #efe5d2);
  flex-shrink: 0;
  padding-top: 2px;
}

/* Cart Footer */
.cart-drawer-footer {
  flex-shrink: 0;
  padding: 20px 24px 26px;
  border-top: 1px solid var(--line, rgba(232,224,204,0.12));
}
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--text-soft, rgba(239,229,210,0.72));
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.cart-total-amount {
  font-family: 'Zodiak', Georgia, serif;
  font-size: 28px;
  color: var(--text, #efe5d2);
  text-transform: none;
  letter-spacing: 0;
}
.cart-checkout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  border-radius: 999px;
  background: var(--accent, #7a8f52);
  color: #11120d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}
.cart-checkout-btn:hover {
  background: #8ca362;
  transform: translateY(-1px);
}

/* ─── Toast ─────────────────────────────────────────────────── */
#ew-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--accent, #7a8f52);
  color: #11120d;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 950;
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease, transform 300ms ease;
  white-space: nowrap;
}
#ew-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ─── Cart Nav Button ───────────────────────────────────────── */
.nav-cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(122, 143, 82, 0.35);
  color: var(--accent, #7a8f52);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  background: none;
  transition: background 150ms ease, border-color 150ms ease;
}
.nav-cart-btn:hover {
  background: rgba(122, 143, 82, 0.1);
  border-color: rgba(122, 143, 82, 0.5);
}
.nav-cart-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
}
.cart-count {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--accent, #7a8f52);
  color: #11120d;
  font-size: 10px;
  font-weight: 700;
  padding: 0 4px;
}

/* ─── Add to Cart Button Variant ────────────────────────────── */
.btn-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--accent, #7a8f52);
  color: #11120d;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 180ms ease, transform 180ms ease;
}
.btn-add-cart:hover {
  background: #8ca362;
  transform: translateY(-1px);
}
.btn-add-cart svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}
