/* ── SHOPPING CART PANEL ── */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9990;
  display: none;
}
.cart-overlay.open {
  display: block;
}
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 100%;
  height: 100%;
  background: var(--putih);
  z-index: 9991;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 3px solid var(--kuning);
}
.cart-panel.open {
  transform: translateX(0);
}
.cart-panel-header {
  background: var(--coklat);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid var(--kuning);
  flex-shrink: 0;
}
.cart-panel-header h2 {
  font-family: "Fraunces", serif;
  color: var(--kuning);
  font-size: 1.2rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cart-close {
  background: none;
  border: none;
  color: var(--kuning);
  font-size: 1.3rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.cart-close:hover {
  opacity: 0.7;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}
.cart-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  gap: 12px;
  color: var(--coklat-mid);
  font-size: 0.9rem;
}
.cart-empty i {
  font-size: 3rem;
  color: var(--krem-dark);
}
.cart-item {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--krem-dark);
  animation: fadeUp 0.3s ease;
}
.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  border: 2px solid var(--krem-dark);
}
.cart-item-info {
  flex: 1;
}
.cart-item-name {
  font-weight: 700;
  color: var(--coklat);
  font-size: 0.88rem;
  margin-bottom: 2px;
}
.cart-item-size {
  font-size: 0.75rem;
  color: var(--coklat-mid);
  margin-bottom: 8px;
}
.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.qty-btn {
  width: 26px;
  height: 26px;
  background: var(--krem-dark);
  border: 1px solid var(--coklat-muda);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: var(--coklat);
}
.qty-btn:hover {
  background: var(--kuning);
}
.qty-val {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--coklat);
  min-width: 20px;
  text-align: center;
}
.cart-item-price {
  font-family: "Fraunces", serif;
  color: var(--coklat);
  font-size: 0.9rem;
  font-weight: 700;
  text-align: right;
  align-self: center;
}
.cart-item-del {
  background: none;
  border: none;
  color: rgba(160, 98, 42, 0.5);
  cursor: pointer;
  font-size: 0.85rem;
  align-self: center;
  transition: color 0.2s;
  margin-left: 4px;
}
.cart-item-del:hover {
  color: var(--orange);
}
.cart-panel-footer {
  background: var(--krem);
  border-top: 2px solid var(--kuning);
  padding: 20px 24px;
  flex-shrink: 0;
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.cart-subtotal-label {
  font-size: 0.8rem;
  color: var(--coklat-mid);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.cart-subtotal-val {
  font-family: "Fraunces", serif;
  font-size: 1.4rem;
  color: var(--coklat);
  font-weight: 900;
}
.cart-checkout-wa {
  width: 100%;
  background: #25d366;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  margin-bottom: 8px;
}
.cart-checkout-wa:hover {
  background: #1ebe5c;
}
.cart-clear {
  width: 100%;
  background: transparent;
  border: 2px solid rgba(160, 98, 42, 0.3);
  color: var(--coklat-mid);
  padding: 10px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-clear:hover {
  border-color: var(--orange);
  color: var(--orange);
}
