/* Cart drawer + promo styles, copied from styles.css (lines 1760-2153) for pages that
   don't load the full stylesheet, i.e. the 2026-10 black homepage. Keep in step with styles.css. */
:root{--ink:#061320;--gold:#f3bf55;--coral:#f47c64;--foam:#b9f2df;--linen:#f7ead3;--white:#fffdf8}
/* Shopping cart */
.cart-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(247, 234, 211, 0.3);
  border-radius: 999px;
  cursor: pointer;
  background: rgba(6, 19, 32, 0.5);
  color: var(--foam);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}

.cart-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(243, 191, 85, 0.08);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 2px 8px rgba(244, 124, 100, 0.4);
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(2, 8, 16, 0.5);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-panel {
  position: fixed;
  top: 70px;
  right: 24px;
  z-index: 100;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: rgba(10, 28, 48, 0.98);
  border: 1px solid rgba(243, 191, 85, 0.25);
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(247, 234, 211, 0.06);
  opacity: 0;
  transform: translateY(-12px) scale(0.96);
  pointer-events: none;
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cart-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 16px;
  border-bottom: 1px solid rgba(247, 234, 211, 0.1);
}

.cart-header h3 {
  margin: 0;
  color: var(--gold);
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 700;
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 234, 211, 0.15);
  border-radius: 999px;
  background: transparent;
  color: var(--foam);
  font-size: 1.2rem;
  cursor: pointer;
  transition: border-color 200ms ease, color 200ms ease;
}

.cart-close:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.cart-body {
  flex: 1 1 auto;
  min-height: 150px;
  overflow-y: auto;
  padding: 10px 22px;
}

.cart-empty {
  text-align: center;
  padding: 48px 20px;
  color: rgba(247, 234, 211, 0.4);
  font-weight: 700;
  font-size: 0.92rem;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247, 234, 211, 0.06);
}

.cart-item:last-child {
  border-bottom: 0;
}

.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(247, 234, 211, 0.1);
}

.cart-item-body {
  flex: 1;
  min-width: 0;
}

.cart-item-body h4 {
  margin: 0 0 8px;
  color: var(--linen);
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(247, 234, 211, 0.18);
  border-radius: 6px;
  background: transparent;
  color: var(--foam);
  font-size: 0.9rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 200ms ease, color 200ms ease;
}

.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cart-qty {
  min-width: 22px;
  text-align: center;
  color: var(--white);
  font-weight: 900;
  font-size: 0.85rem;
}

.cart-item-price {
  margin-left: auto;
  color: var(--coral);
  font-weight: 900;
  font-size: 0.92rem;
}

.cart-remove {
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: rgba(247, 234, 211, 0.35);
  font-size: 1.3rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: color 200ms ease;
}

.cart-remove:hover {
  color: var(--coral);
}

.cart-footer {
  padding: 18px 22px 20px;
  border-top: 1px solid rgba(247, 234, 211, 0.1);
}

.cart-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.cart-subtotal-row span:first-child {
  color: rgba(247, 234, 211, 0.6);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cart-subtotal-row span:last-child {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 900;
}

.cart-checkout-btn {
  display: flex;
  width: 100%;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--coral));
  color: var(--ink);
  font-weight: 900;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.cart-checkout-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(243, 191, 85, 0.3);
}

.cart-checkout-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

/* Responsive */
@media (max-width: 680px) {
  .cart-panel {
    top: 60px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
/* Add to cart button on deck cards */
.deck-add-cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border: 1px solid rgba(243, 191, 85, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease;
}

.deck-add-cart:hover {
  background: var(--gold);
  color: var(--ink);
}

.deck-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Free shipping progress bar */
#free-ship-bar {
  margin-bottom: 16px;
}

#free-ship-msg {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(247, 234, 211, 0.7);
}

#ship-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(247, 234, 211, 0.08);
  overflow: hidden;
}

#ship-progress {
  height: 100%;
  border-radius: 999px;
  transition: width 400ms ease;
}

/* Promo code field */
.promo-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.promo-input {
  flex: 1;
  padding: 10px 14px;
  border: 1px solid rgba(247, 234, 211, 0.2);
  border-radius: 8px;
  background: rgba(6, 19, 32, 0.5);
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 700;
}

.promo-input:focus {
  outline: none;
  border-color: var(--gold);
}

.promo-input::placeholder {
  color: rgba(247, 234, 211, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
}

.promo-apply {
  padding: 0 16px;
  border: 1px solid rgba(243, 191, 85, 0.4);
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 900;
  font-size: 0.8rem;
  cursor: pointer;
  flex-shrink: 0;
}

.promo-apply:hover {
  background: var(--gold);
  color: var(--ink);
}

