.cart-lock { overflow: hidden; }

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(36, 22, 15, 0.38);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 901;
  width: min(440px, 100vw);
  height: 100svh;
  background: #E8DDCD;
  color: #24160F;
  border-left: 1px solid rgba(36, 22, 15, 0.14);
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -24px 0 80px rgba(36, 22, 15, 0.18);
}

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

.cart-open .cart-drawer { transform: translateX(0); }

.cart-head,
.cart-foot {
  padding: 28px 28px;
  border-bottom: 1px solid rgba(36, 22, 15, 0.14);
}

.cart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #24160F;
}

.cart-title {
  font-family: var(--sans, 'Inter Tight', system-ui, sans-serif);
  font-size: 12px;
  letter-spacing: 0.36em;
  text-transform: uppercase;
}

.cart-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(36, 22, 15, 0.20);
  background: transparent;
  color: #24160F;
  font-size: 22px;
  line-height: 1;
}

.cart-body {
  flex: 1;
  overflow: auto;
  padding: 28px;
}

.cart-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

.cart-empty h2 {
  font-family: var(--serif, 'Cormorant Garamond', 'Times New Roman', serif);
  font-size: clamp(34px, 6vw, 48px);
  font-weight: 400;
  line-height: 1;
  color: #24160F;
}

.cart-empty p,
.cart-line-size,
.cart-line-price,
.cart-subtotal span:first-child {
  color: #6E5848;
}

.cart-line {
  padding: 0 0 24px;
  border-bottom: 1px solid rgba(36, 22, 15, 0.14);
}

.cart-line + .cart-line { padding-top: 24px; }

.cart-line-name {
  margin-bottom: 8px;
  font-family: var(--serif, 'Cormorant Garamond', 'Times New Roman', serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  color: #24160F;
}

.cart-line-size,
.cart-line-price {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1.6;
}

.cart-line-actions {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cart-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(36, 22, 15, 0.18);
}

.cart-qty button {
  width: 38px;
  height: 38px;
  border: none;
  background: transparent;
  color: #24160F;
  font-size: 18px;
}

.cart-qty span {
  min-width: 34px;
  text-align: center;
  color: #24160F;
}

.cart-remove,
.cart-link {
  border: none;
  background: transparent;
  color: #6E5848;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
}

.cart-foot {
  border-top: 1px solid rgba(36, 22, 15, 0.14);
  border-bottom: none;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.cart-subtotal strong {
  color: #24160F;
  font-weight: 400;
}

.cart-checkout,
.cart-continue {
  width: 100%;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(36, 22, 15, 0.48);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.cart-checkout {
  background: #24160F;
  color: #F3EDE2;
}

.cart-continue {
  margin-top: 10px;
  background: transparent;
  color: #24160F;
}

@media (max-width: 560px) {
  .cart-head,
  .cart-body,
  .cart-foot { padding: 24px 20px; }
}
