/* ─── CART OVERLAY ─── */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(122, 74, 30, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ─── CART DRAWER ─── */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(122, 74, 30, 0.1);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.cart-drawer.open {
  right: 0;
}

@media (max-width: 480px) {
  .cart-drawer {
    width: 100%;
    right: -100%;
  }
}

/* Header */
.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 0.5px solid #e8ddd4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
}
.cart-drawer-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #5c3510;
  font-weight: 600;
}
.cart-drawer-close {
  background: none;
  border: none;
  font-size: 22px;
  color: #888178;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.15s;
}
.cart-drawer-close:hover {
  background: #f5ede6;
  color: #7a4a1e;
}

/* Body */
.cart-drawer-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fdf8f3;
}

/* Empty State */
.cart-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #888178;
}
.cart-empty-icon {
  font-size: 40px;
  color: #c9a882;
}
.cart-empty-text {
  font-size: 14px;
  font-weight: 500;
}
.btn-continue-shopping {
  background: var(--brown, #7a4a1e);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-continue-shopping:hover {
  background: #5c3510;
}

/* Cart Item */
.cart-item {
  background: #fff;
  border: 0.5px solid #e8ddd4;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  position: relative;
  box-shadow: 0 2px 8px rgba(122,74,30,0.02);
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background: #f5e6d8;
  overflow: hidden;
  border: 0.5px solid #e8ddd4;
}
.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-right: 16px;
}
.cart-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #2a1a0e;
  line-height: 1.3;
  margin-bottom: 2px;
}
.cart-item-theme {
  font-size: 11px;
  color: #888178;
  margin-bottom: 6px;
}
.cart-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-item-price {
  font-size: 13px;
  font-weight: 600;
  color: #7a4a1e;
}
.cart-qty-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  border: 0.5px solid #e8ddd4;
  background: #fff;
  font-size: 14px;
  color: #7a4a1e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cart-qty-btn:hover {
  background: #f5e6d8;
}
.cart-qty-val {
  font-size: 12px;
  font-weight: 600;
  min-width: 16px;
  text-align: center;
}
.cart-item-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: #b4b2a9;
  cursor: pointer;
  transition: color 0.15s;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-delete:hover {
  color: #d32f2f;
}

/* Footer */
.cart-drawer-footer {
  padding: 20px 24px;
  border-top: 0.5px solid #e8ddd4;
  background: #fffbf8;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-summary-label {
  font-size: 14px;
  color: #888178;
}
.cart-summary-value {
  font-size: 18px;
  font-weight: 600;
  color: #7a4a1e;
}
.btn-cart-checkout {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: #7a4a1e;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
  text-align: center;
  text-decoration: none;
}
.btn-cart-checkout:hover {
  background: #5c3510;
}

/* Custom navbar badge style (if not yet styled) */
.cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.cart-badge-count {
  background: #7a4a1e;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 16px;
  text-align: center;
  display: inline-block;
  vertical-align: middle;
}
.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #7a4a1e;
  cursor: pointer;
  border: 0.5px solid #e8ddd4;
  border-radius: 20px;
  padding: 6px 14px;
  transition: background 0.2s;
  background: #fff;
}
.nav-cart-btn:hover {
  background: #f5e6d8;
}
