/* ==========================================================================
   MAAVORA CART DRAWER STYLES (Ultra-clean Luxury Boutique Aesthetic)
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(460px, 100vw);
  background: #ffffff;
  z-index: 9999;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: #0f172a;
}
.cart-drawer.is-open {
  transform: translateX(0);
}

.cart-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
}
.cart-drawer-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
.cart-drawer-title span {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.cart-close-btn {
  background: none;
  border: none;
  color: #64748b;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.cart-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Free Shipping Meter */
.cart-free-shipping-meter {
  padding: 12px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}
.meter-label {
  font-size: 12px;
  color: #334155;
  font-weight: 600;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.meter-track {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb600, #15803d);
  border-radius: 999px;
  transition: width 0.3s ease;
}

/* Cart Items Body */
.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}
.cart-item-img {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  background: #f8fafc;
  object-fit: contain;
  padding: 4px;
  border: 1px solid #edf2f7;
}
.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cart-item-name {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  line-height: 1.3;
}
.cart-item-name:hover {
  color: #c2410c;
}
.cart-item-variant {
  font-size: 11.5px;
  color: #64748b;
}
.cart-item-price {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-qty-pill {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #ffffff;
  overflow: hidden;
}
.cart-qty-btn {
  width: 26px;
  height: 26px;
  background: none;
  border: none;
  cursor: pointer;
  color: #0f172a;
  font-size: 14px;
  display: grid;
  place-items: center;
  padding: 0;
  transition: background 0.15s;
}
.cart-qty-btn:hover {
  background: #f1f5f9;
}
.cart-qty-val {
  font-size: 12px;
  font-weight: 700;
  width: 22px;
  text-align: center;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  font-size: 11.5px;
  text-decoration: underline;
  padding: 0;
  transition: color 0.15s;
}
.cart-remove-btn:hover {
  color: #ef4444;
}

/* Empty State */
.cart-empty-state {
  margin: auto;
  text-align: center;
  padding: 40px 20px;
}
.cart-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fef3c7;
  color: #d97706;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}
.cart-empty-state h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #0f172a;
}
.cart-empty-state p {
  font-size: 13px;
  color: #64748b;
  line-height: 1.5;
  margin: 0 0 20px;
}
.cart-shop-now-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  color: #ffffff;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s;
}
.cart-shop-now-btn:hover {
  background: #1e293b;
}

/* Drawer Footer */
.cart-drawer-footer {
  border-top: 1px solid #f1f5f9;
  padding: 20px 24px;
  background: #ffffff;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.03);
}

/* Coupon Box */
.cart-coupon-row {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.cart-coupon-input {
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-family: inherit;
  text-transform: uppercase;
  outline: none;
}
.cart-coupon-input:focus {
  border-color: #0f172a;
}
.cart-coupon-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
  transition: all 0.2s;
}
.cart-coupon-btn:hover {
  background: #0f172a;
  color: #ffffff;
}
.cart-coupon-status {
  font-size: 11px;
  margin-top: -8px;
  margin-bottom: 12px;
  font-weight: 600;
}
.cart-coupon-status.success { color: #15803d; }
.cart-coupon-status.error { color: #dc2626; }

/* Totals Breakdown */
.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 6px;
}
.cart-summary-line.discount {
  color: #15803d;
  font-weight: 600;
}
.cart-summary-line.total {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 10px;
}

.cart-checkout-btn {
  width: 100%;
  background: #0f172a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  text-decoration: none;
  margin-top: 14px;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
.cart-checkout-btn:hover {
  background: #1e293b;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}
.cart-security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: #64748b;
  margin-top: 10px;
}

/* ==========================================================================
   LIVE SEARCH DROPDOWN STYLES
   ========================================================================== */
.delish-search-container {
  position: relative;
}
.delish-search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  z-index: 500;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px 0;
}
.search-drop-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.15s ease;
  border-bottom: 1px solid #f8fafc;
}
.search-drop-item:last-child {
  border-bottom: none;
}
.search-drop-item:hover, .search-drop-item.selected {
  background: #f8fafc;
}
.search-drop-thumb {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  background: #f1f5f9;
  padding: 3px;
  flex-shrink: 0;
}
.search-drop-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.search-drop-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-drop-cat {
  font-size: 11px;
  color: #64748b;
}
.search-drop-price {
  font-size: 13px;
  font-weight: 700;
  color: #c2410c;
  flex-shrink: 0;
}
.search-drop-empty {
  padding: 24px 18px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
}

