/* ── AURA LUXE Cart Styles ── */

/* Larger cart icon button */
.nav-btn[title="Cart"] {
  font-size: 1.7rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Badge on nav cart icon */
#cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  min-width: 18px; height: 18px;
  background: #8DA9C4;
  color: #fff;
  font-size: .62rem; font-weight: 700;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  pointer-events: none;
  font-family: 'Inter', sans-serif;
}

/* Backdrop */
#cart-backdrop {
  position: fixed; inset: 0;
  background: rgba(26,35,50,.4);
  z-index: 3000;
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
  backdrop-filter: blur(2px);
}
#cart-backdrop.open { opacity: 1; pointer-events: all; }

/* Panel */
#cart-panel {
  position: fixed;
  top: 0; right: 0;
  width: 500px; max-width: 100vw;
  height: 100vh;
  background: #F8FBFF;
  z-index: 3001;
  transform: translateX(100%);
  transition: transform .38s cubic-bezier(0.4,0,0.2,1);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(26,35,50,.18);
  font-family: 'Inter', sans-serif;
}
#cart-panel.open { transform: translateX(0); }

/* Panel Header */
.cp-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.6rem 1.8rem 1.4rem;
  border-bottom: 1px solid #D6E8F5;
  background: #fff;
  flex-shrink: 0;
}
.cp-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem; font-weight: 700;
  color: #1a2332; letter-spacing: .04em;
  margin-right: .7rem;
}
.cp-pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  background: #8DA9C4; color: #fff;
  font-size: .65rem; font-weight: 700;
  border-radius: 999px; padding: 0 5px;
}
.cp-close {
  background: none; border: none;
  font-size: 1rem; color: #4a6080;
  cursor: pointer; padding: .4rem;
  transition: color .2s;
}
.cp-close:hover { color: #1a2332; }

/* Items area */
#cp-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.8rem;
}
#cp-items::-webkit-scrollbar { width: 4px; }
#cp-items::-webkit-scrollbar-thumb { background: #BFD6EA; border-radius: 2px; }

/* Empty state */
.cp-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; height: 100%;
  gap: .6rem; padding: 3rem 0;
  text-align: center;
}
.cp-empty span { font-size: 2.8rem; }
.cp-empty p { color: #4a6080; font-size: .95rem; font-weight: 500; }
.cp-empty-sub { font-size: .8rem !important; color: #7a96b0 !important; font-weight: 400 !important; }

/* Cart Item */
.cp-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #EAF4FF;
}
.cp-item-info { flex: 1; min-width: 0; }
.cp-item-name {
  font-size: .88rem; font-weight: 600;
  color: #1a2332; margin-bottom: .22rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cp-item-price { font-size: .75rem; color: #7a96b0; }
.cp-item-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: .45rem;
  flex-shrink: 0;
}
.cp-qty {
  display: flex; align-items: center; gap: .5rem;
  border: 1px solid #D6E8F5; padding: .2rem .5rem;
}
.cp-qty button {
  background: none; border: none;
  color: #4a6080; font-size: 1rem;
  cursor: pointer; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  transition: color .2s;
}
.cp-qty button:hover { color: #1a2332; }
.cp-qty span { font-size: .85rem; font-weight: 600; color: #1a2332; min-width: 16px; text-align: center; }
.cp-line-total { font-size: .88rem; font-weight: 700; color: #1a2332; }
.cp-remove {
  background: none; border: none;
  font-size: .7rem; color: #BFD6EA;
  cursor: pointer; padding: .1rem;
  transition: color .2s;
}
.cp-remove:hover { color: #e05; }

/* Footer */
#cp-footer {
  padding: 1.4rem 1.8rem 1.8rem;
  border-top: 1px solid #D6E8F5;
  background: #fff;
  flex-shrink: 0;
}
.cp-summary { margin-bottom: 1.2rem; }
.cp-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .88rem; margin-bottom: .5rem;
  color: #4a6080;
}
.cp-row strong { color: #1a2332; font-size: 1rem; font-weight: 700; }
.cp-free { color: #3a5538; font-size: .78rem; font-weight: 600; }

/* WhatsApp Button */
.cp-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: .7rem;
  width: 100%; padding: 1rem;
  background: #25D366; color: #fff;
  border: none;
  font-family: 'Inter', sans-serif;
  font-size: .78rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
  transition: background .3s, transform .2s;
  margin-bottom: .7rem;
}
.cp-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }

/* Clear Cart */
.cp-clear {
  display: block; width: 100%; padding: .6rem;
  background: none; border: 1px solid #D6E8F5;
  font-family: 'Inter', sans-serif;
  font-size: .72rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: #7a96b0; cursor: pointer;
  transition: all .25s;
}
.cp-clear:hover { border-color: #BFD6EA; color: #4a6080; }

/* Toast (override if already present) */
#toast {
  position: fixed; bottom: 2rem; right: 2rem;
  background: #1a2332; color: #EAF4FF;
  padding: 1rem 1.6rem;
  font-family: 'Inter', sans-serif;
  font-size: .82rem; font-weight: 500;
  border-left: 3px solid #BFD6EA;
  opacity: 0; transform: translateY(20px);
  transition: opacity .4s, transform .4s;
  z-index: 5000; pointer-events: none;
}
#toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 480px) {
  #cart-panel { width: 100vw; }
}

/* ── Search Overlay ── */
#search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,35,50,.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 4500;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 14vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
#search-overlay.open { opacity: 1; pointer-events: all; }

.so-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 90%;
  max-width: 660px;
  border-bottom: 1.5px solid rgba(191,214,234,.3);
  padding-bottom: 1.1rem;
  margin-bottom: 2.2rem;
}
#search-input {
  flex: 1;
  background: none;
  border: none;
  color: #EAF4FF;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 400;
  outline: none;
  letter-spacing: .02em;
}
#search-input::placeholder { color: rgba(191,214,234,.28); }
.so-close {
  background: none;
  border: none;
  color: rgba(191,214,234,.45);
  font-size: 1.3rem;
  cursor: pointer;
  transition: color .2s;
  flex-shrink: 0;
}
.so-close:hover { color: #EAF4FF; }

#search-results {
  width: 90%;
  max-width: 660px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.sr-item {
  padding: 1rem 1.3rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(191,214,234,.1);
  cursor: pointer;
  transition: background .2s, border-color .2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sr-item:hover { background: rgba(255,255,255,.1); border-color: rgba(191,214,234,.25); }
.sr-item-left {}
.sr-cat-tag { font-size: .6rem; letter-spacing: .22em; text-transform: uppercase; color: #8DA9C4; margin-bottom: .3rem; }
.sr-name { font-family: 'Playfair Display', serif; color: #EAF4FF; font-size: 1rem; font-weight: 600; }
.sr-price { font-size: .88rem; color: #BFD6EA; font-weight: 600; flex-shrink: 0; padding-left: 1rem; }
.sr-empty { color: rgba(191,214,234,.38); font-size: .95rem; text-align: center; padding: 2.5rem 0; }
.sr-empty a { color: #BFD6EA; }
.so-hint { font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(191,214,234,.25); text-align: center; margin-top: 1.5rem; }

/* ── Mobile Hamburger Navigation ── */
.nav-ham {
  display: none;
  background: none;
  border: none;
  font-size: 1.45rem;
  color: #4a6080;
  cursor: pointer;
  padding: .25rem .4rem;
  line-height: 1;
  transition: color .3s;
}
.nav-ham:hover { color: #1a2332; }

.nav-links.open {
  display: flex !important;
  flex-direction: column;
  position: fixed;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  padding: 1.4rem 2rem;
  gap: 1.4rem;
  border-bottom: 1px solid rgba(141,169,196,.2);
  z-index: 998;
  box-shadow: 0 8px 32px rgba(26,35,50,.1);
  animation: navSlideDown .25s ease;
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .nav-ham { display: block; }
}
