:root {
  --cart-brand: #C8A25A;
}

/* Cart count badge */
.cart-widget {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--cart-brand);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

/* Cart drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 400px;
  height: 100%;
  background: #fff;
  z-index: 200;
  box-shadow: -4px 0 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

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

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

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

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.cart-drawer__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
}

.cart-drawer__close {
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.cart-drawer__close:hover {
  background: #f5f5f5;
}

.cart-drawer__close svg {
  width: 22px;
  height: 22px;
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.cart-drawer__empty {
  text-align: center;
  padding: 48px 16px;
  color: #888;
}

.cart-drawer__empty svg {
  width: 56px;
  height: 56px;
  color: #d1d5db;
  margin-bottom: 16px;
}

.cart-drawer__empty p {
  font-size: 0.9375rem;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

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

.cart-item__img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f3f4f6;
}

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

.cart-item__name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}

.cart-item__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cart-brand);
}

.cart-item__remove {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #9ca3af;
  align-self: flex-start;
  flex-shrink: 0;
}

.cart-item__remove:hover {
  color: #ef4444;
}

.cart-item__remove svg {
  width: 18px;
  height: 18px;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cart-item__qty-btn {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #374151;
}

.cart-item__qty-btn:hover {
  background: #f9fafb;
}

.cart-item__qty-val {
  font-size: 0.9375rem;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.cart-drawer__footer {
  border-top: 1px solid rgba(0,0,0,0.08);
  padding: 16px 20px;
  flex-shrink: 0;
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.cart-drawer__total-label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
}

.cart-drawer__total-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: #1a1a1a;
}

.cart-drawer__checkout-btn {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: var(--cart-brand);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.cart-drawer__checkout-btn:hover {
  background: #A8823F;
}
