/* ── Cart offcanvas ────────────────────────────────────────── */
#offcanvasRight {
  width: min(390px, 100vw);
  background: #0d0d0d;
  border-left: 1px solid rgba(240, 240, 240, 0.07);
  overflow: hidden;
}

.offcanvas-header {
  flex-shrink: 0;
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid rgba(240, 240, 240, 0.07);
}

#offcanvasRightLabel {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #f0f0f0;
  margin: 0;
}

.offcanvas-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: 0.38;
  background-size: 0.7em;
  transition: opacity 0.15s ease;
}

.offcanvas-header .btn-close:hover {
  opacity: 1;
  background-color: transparent;
  border-color: transparent;
}

/* ── Cart content (scrollable) ─────────────────────────────── */
#cart-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(240, 240, 240, 0.1) transparent;
}

#cart-content::-webkit-scrollbar { width: 3px; }
#cart-content::-webkit-scrollbar-track { background: transparent; }
#cart-content::-webkit-scrollbar-thumb { background: rgba(240, 240, 240, 0.12); }

/* ── Cart item row ─────────────────────────────────────────── */
.cart-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(240, 240, 240, 0.06);
}

.cart-item__img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  flex: 0 0 auto;
  display: block;
}

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

.cart-item__name {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: #f0f0f0;
  margin: 0 0 0.3rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item__variant {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.35);
  margin: 0 0 0.6rem;
}

.cart-item__price {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 300;
  color: rgba(240, 240, 240, 0.65);
  margin: 0;
}

.cart-item__controls {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
  flex: 0 0 auto;
}

/* ── Quantity stepper (cart) ───────────────────────────────── */
.cart-qty {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid rgba(240, 240, 240, 0.15);
}

.cart-qty > form {
  display: flex;
  align-items: stretch;
}

.cart-qty__btn {
  background: transparent;
  border: none;
  color: #f0f0f0;
  font-size: 0.875rem;
  font-weight: 200;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  letter-spacing: 0;
  text-transform: none;
  transition: background-color 0.15s ease;
  flex: 0 0 auto;
}

.cart-qty__btn:hover:not(:disabled) {
  background: rgba(240, 240, 240, 0.07);
  border-color: transparent;
  color: #f0f0f0;
}

.cart-qty__btn:disabled {
  opacity: 0.25;
  cursor: not-allowed;
}

.cart-qty__num {
  min-width: 30px;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 300;
  color: #f0f0f0;
  border-left: 1px solid rgba(240, 240, 240, 0.15);
  border-right: 1px solid rgba(240, 240, 240, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

/* ── Remove button ─────────────────────────────────────────── */
.cart-remove-btn {
  background: none;
  border: none;
  color: rgba(240, 240, 240, 0.2);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  min-width: 0;
  width: auto;
  height: auto;
  transition: color 0.15s ease;
}

.cart-remove-btn:hover {
  color: #ef4444;
  background: none;
  border-color: transparent;
}

/* ── Subtotal ───────────────────────────────────────────────── */
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.cart-subtotal__label {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.38);
}

.cart-subtotal__value {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 300;
  color: #f0f0f0;
}

/* ── Empty cart state ───────────────────────────────────────── */
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 1.5rem;
  text-align: center;
}

.cart-empty__icon {
  font-size: 2.25rem;
  color: rgba(240, 240, 240, 0.1);
  margin-bottom: 1.25rem;
  line-height: 1;
}

.cart-empty__msg {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(240, 240, 240, 0.28);
  margin: 0 0 1.25rem;
}

.cart-empty__link {
  font-family: var(--font-sans);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f0f0f0;
  text-decoration: none;
  border-bottom: 1px solid rgba(240, 240, 240, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s ease;
}

.cart-empty__link:hover {
  border-color: #f0f0f0;
  color: #f0f0f0;
  text-decoration: none;
  background: none;
}

/* ── Cart footer (sticky) ──────────────────────────────────── */
.cart-footer {
  flex-shrink: 0;
  padding: 0 1.5rem 1.5rem;
  border-top: 1px solid rgba(240, 240, 240, 0.07);
  background: #0d0d0d;
}

/* ── Checkout button ───────────────────────────────────────── */
.cart-checkout-btn {
  display: block;
  width: 100%;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 0.5625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  background-color: #f0f0f0;
  color: #0a0a0a;
  border: 1px solid #f0f0f0;
  border-radius: 0;
  padding: 1rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cart-checkout-btn:hover {
  background-color: transparent;
  color: #f0f0f0;
  text-decoration: none;
}

.cart-checkout-btn--disabled {
  opacity: 0.32;
  cursor: not-allowed;
  pointer-events: none;
}
