/* ================================================================
   FLY RESTAURANT — cart.css
   Styles for: live search overlay, login/register modal, toast
   notifications, back-to-top button, header badges, product
   deep-link highlight, and the Cart / Wishlist pages.
   Matches the site's existing black + gold luxury theme —
   no changes to any existing visual element.
================================================================ */

/* ── FOOTER BOTTOM LINK (Privacy Policy) ──
   Forced with !important so it can never render as the browser's
   default blue/purple link color under any circumstance. */
.footer-bottom a,
.footer-bottom a:visited {
  color: #d4af37 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}
.footer-bottom a:hover {
  color: #f7e7a1 !important;
  text-decoration: underline !important;
}

/* ── PRECISE ANCHOR SCROLL POSITIONING ──
   --header-h is kept in sync with the real fixed-header height by
   script.js (syncPadding). scroll-margin-top makes every anchor
   target (menu categories, gallery) land cleanly just below the
   header — not hidden behind it, not scrolled too far past it —
   for both same-page smooth-scroll AND native cross-page #hash
   links (e.g. contact.html linking to index.html#starters). */
:root {
  --header-h: 100px;
}
#menu,
#gallery,
.menu-category {
  scroll-margin-top: calc(var(--header-h) + 6px);
}

/* ── ITEM DETAIL MODAL ── */
.item-modal-overlay .item-modal {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.12);
  position: relative;
  width: 100%;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.item-modal-overlay.open .item-modal {
  transform: translateY(0);
}
.item-modal-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}
.item-modal-info {
  padding: 22px 26px 26px;
  position: relative;
}
.item-modal-top {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.item-modal-info h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 8px;
}
.item-modal-desc {
  color: #bbb;
  font-size: 13.5px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.item-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.item-modal-price {
  font-size: 22px;
  font-weight: 800;
  color: #d4af37;
}
.item-modal-overlay .auth-modal-close {
  top: 14px;
  right: 14px;
  z-index: 5;
  background: rgba(0, 0, 0, 0.6);
}
@media (max-width: 480px) {
  .item-modal-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .item-modal-footer .checkout-btn {
    width: 100%;
  }
}

/* ── PRIVACY POLICY PAGE ── */
.policy-page {
  min-height: calc(100vh - 100px);
  padding: 60px 80px 90px;
  background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.96));
  color: #ddd;
}
.policy-page h2 {
  text-align: center;
  font-size: 36px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #ffd86b, #fff8d6, #ffd86b);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.policy-page .page-sub {
  text-align: center;
  color: #888;
  font-size: 13px;
  margin-bottom: 40px;
}
.policy-content {
  max-width: 760px;
  margin: 0 auto;
}
.policy-content h3 {
  color: #d4af37;
  font-size: 18px;
  margin: 26px 0 10px;
}
.policy-content p {
  font-size: 14.5px;
  line-height: 1.8;
  color: #ccc;
}
.policy-content a {
  color: #d4af37;
}
.policy-content code {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
}
@media (max-width: 767px) {
  .policy-page {
    padding: 40px 20px 60px;
  }
  .policy-page h2 {
    font-size: 26px;
  }
}

/* ── 404 ERROR PAGE ── */
.error-page {
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.96));
}
.error-content h1 {
  font-size: 120px;
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(90deg, #ffd86b, #fff8d6, #ffd86b);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.error-content h2 {
  color: #fff;
  font-size: 26px;
  margin: 10px 0 12px;
}
.error-content p {
  color: #999;
  font-size: 14.5px;
  max-width: 420px;
  margin: 0 auto 30px;
}
.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.error-btn {
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #d4af37;
  transition: transform 0.25s ease;
}
.error-btn.primary {
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  color: #000;
  border: none;
}
.error-btn:hover {
  transform: translateY(-3px);
}
@media (max-width: 480px) {
  .error-content h1 {
    font-size: 80px;
  }
}

/* ── NEWSLETTER SIGNUP (footer) ── */
.newsletter-box {
  margin-top: 20px;
}
.newsletter-label {
  font-size: 13px;
  color: #ccc;
  margin-bottom: 10px;
}
.newsletter-form {
  display: flex;
  max-width: 280px;
}
.newsletter-form input {
  flex: 1;
  padding: 10px 14px;
  border-radius: 24px 0 0 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-right: none;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  outline: none;
}
.newsletter-form input::placeholder {
  color: #888;
}
.newsletter-form input:focus {
  border-color: #d4af37;
}
.newsletter-form button {
  padding: 0 16px;
  border-radius: 0 24px 24px 0;
  border: none;
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  color: #000;
  cursor: pointer;
  font-size: 14px;
}
.newsletter-form button:hover {
  filter: brightness(1.08);
}

/* ── RESERVATION FIELDS, MAP EMBED, FORM NOTE (contact.html) ── */
.reservation-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}
.reservation-fields input,
.reservation-fields select {
  width: 100%;
  padding: 12px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 13px;
  font-family: "Poppins", sans-serif;
  outline: none;
  transition:
    border 0.3s ease,
    box-shadow 0.3s ease;
}
.reservation-fields input:focus,
.reservation-fields select:focus {
  border-color: #d4af37;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}
.reservation-fields select option {
  background: #141414;
  color: #fff;
}
.form-note {
  font-size: 11.5px;
  color: #888;
  margin: 8px auto 6px;
  line-height: 1.6;
  text-align: center;
  max-width: 380px;
}
.map-embed {
  margin-top: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  filter: grayscale(0.3) contrast(1.1);
}
@media (max-width: 600px) {
  .reservation-fields {
    grid-template-columns: 1fr 1fr;
  }
  .reservation-fields select {
    grid-column: span 2;
  }
}

/* ── GALLERY / AMBIENCE SECTION ── */
.gallery-section {
  padding: 12px 60px 90px;
  background: #0e0e0e;
}
.gallery-section .menu-header {
  margin-bottom: 20px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 180px;
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
}
.gallery-item {
  overflow: hidden;
  border-radius: 14px;
  position: relative;
}
.gallery-item.large {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
  filter: brightness(0.85);
}
.gallery-item:hover img {
  transform: scale(1.08);
  filter: brightness(1);
}

@media (max-width: 1023px) {
  .gallery-section {
    padding: 10px 30px 60px;
  }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .gallery-item.large {
    grid-column: span 2;
    grid-row: span 1;
    height: 100%;
  }
}
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 200px;
  }
  .gallery-item.large {
    grid-column: span 1;
  }
}

/* ── BESTSELLER RIBBON & RATING ── */
.bestseller-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  color: #000;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 3;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4);
}
.item-rating {
  font-size: 12.5px;
  color: #ccc;
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 2px 0 4px;
}
.item-rating i {
  color: #d4af37;
  font-size: 11px;
}
.item-rating span {
  color: #888;
}

/* ── VEG / NON-VEG DIET INDICATOR ── */
.menu-item {
  position: relative;
}
.diet-indicator {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 18px;
  height: 18px;
  border: 2px solid;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.diet-indicator .diet-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.veg-dot {
  border-color: #2ecc71;
}
.veg-dot .diet-dot {
  background: #2ecc71;
}
.nonveg-dot {
  border-color: #e74c3c;
}
.nonveg-dot .diet-dot {
  background: #e74c3c;
}
.egg-dot {
  border-color: #d4af37;
}
.egg-dot .diet-dot {
  background: #d4af37;
}

/* ── VEG-ONLY FILTER BAR ── */
.diet-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: -10px 0 30px;
  flex-wrap: wrap;
}
.diet-filter-btn {
  padding: 8px 20px;
  border-radius: 30px;
  border: 1px solid rgba(212, 175, 55, 0.35);
  background: rgba(255, 255, 255, 0.05);
  color: #ccc;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.diet-filter-btn .diet-indicator {
  position: static;
  background: transparent;
}
.diet-filter-btn.active {
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  color: #000;
  border-color: transparent;
}
.diet-filter-btn.active .diet-indicator {
  background: rgba(0, 0, 0, 0.15);
}
.menu-item.diet-hidden {
  display: none !important;
}

/* ── DROPDOWN FORCE-CLOSE (fixes it popping back open on hover) ── */
.dropdown.force-closed .dropdown-menu {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateX(-50%) translateY(15px) !important;
}

/* ── HEADER ICONS: COMPACT SIZING ──
   Original sizes (20px icons, 14px text, 50px gap) were tuned for
   just 2 icons (Cart, Wishlist). With Search + Account added, and to
   keep the header comfortable on every device, everything here is
   scaled down a bit — same style/gradient/animation, just smaller. */
.reserve-btn {
  padding: 8px 18px !important;
  font-size: 13px !important;
}
.user-icons ul {
  gap: 26px !important;
  font-size: 11px !important;
  padding-right: 4px;
}
.user-icons ul li i {
  font-size: 15px !important;
}
@media (max-width: 1300px) {
  .user-icons ul {
    gap: 18px !important;
  }
}
@media (max-width: 1200px) {
  .reserve-btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
  }
  .user-icons ul {
    gap: 16px !important;
    font-size: 10px !important;
  }
  .user-icons ul li i {
    font-size: 14px !important;
  }
}
@media (max-width: 1023px) {
  .reserve-btn {
    padding: 6px 12px !important;
    font-size: 11.5px !important;
  }
  .user-icons ul {
    gap: 18px !important;
    font-size: 10px !important;
  }
  .user-icons ul li i {
    font-size: 14px !important;
  }
}
@media (max-width: 767px) {
  .user-icons ul {
    gap: 20px !important;
  }
}

.badge-count {
  position: absolute;
  top: -5px;
  right: -11px;
  min-width: 15px;
  height: 15px;
  padding: 0 4px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #ff2e63);
  color: #fff;
  -webkit-text-fill-color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 8px rgba(255, 46, 99, 0.6);
  animation: none;
  background-clip: initial;
  -webkit-background-clip: initial;
  line-height: 1;
}
.badge-count.pulse {
  animation: badgePulse 0.4s ease;
}
@keyframes badgePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.4);
  }
  100% {
    transform: scale(1);
  }
}

/* ── PRODUCT / MENU-ITEM DEEP-LINK HIGHLIGHT (from search) ── */
.product-highlight {
  animation: itemPulse 2.2s ease;
  position: relative;
  z-index: 5;
}
@keyframes itemPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
  }
  15% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.35);
  }
  40% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0);
  }
}

/* ================================================================
   SEARCH OVERLAY
================================================================ */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 8000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 90px 20px 20px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease;
}
.search-overlay.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.search-panel {
  width: 100%;
  max-width: 640px;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.12);
  overflow: hidden;
}
.search-input-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.search-input-row i.fa-magnifying-glass {
  color: #d4af37;
  font-size: 18px;
}
#searchMain {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 16px;
  font-family: "Poppins", sans-serif;
}
#searchMain::placeholder {
  color: #999;
}
.search-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ccc;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.search-close-btn:hover {
  background: rgba(255, 90, 90, 0.25);
  color: #ff6b6b;
}

.search-results {
  max-height: 60vh;
  overflow-y: auto;
}
.search-empty {
  padding: 30px 18px;
  text-align: center;
  color: #999;
  font-size: 14px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}
.search-result-item:last-child {
  border-bottom: none;
}
.search-result-item:hover {
  background: rgba(212, 175, 55, 0.1);
}
.search-result-item img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.search-result-info {
  flex: 1;
  min-width: 0;
}
.search-result-name {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-result-cat {
  color: #d4af37;
  font-size: 11px;
  margin-top: 2px;
}
.search-result-price {
  color: #d4af37;
  font-size: 13px;
  font-weight: 700;
  margin-top: 2px;
}

/* ================================================================
   BACK TO TOP BUTTON
================================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
  z-index: 8500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease,
    transform 0.3s ease;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.6);
}

/* ================================================================
   TOAST NOTIFICATIONS
================================================================ */
.toast-container {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  pointer-events: none;
}
.toast {
  background: #161616;
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(20px);
  animation:
    toastIn 0.3s ease forwards,
    toastOut 0.3s ease 2.2s forwards;
}
.toast i {
  color: #d4af37;
}
@keyframes toastIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes toastOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}

/* ================================================================
   LOGIN / REGISTER MODAL
================================================================ */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
}
.auth-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}
.auth-modal {
  width: 100%;
  max-width: 380px;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(212, 175, 55, 0.12);
  position: relative;
  transform: translateY(10px);
  transition: transform 0.25s ease;
}
.auth-modal-overlay.open .auth-modal {
  transform: translateY(0);
}
.auth-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #ccc;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}
.auth-modal-close:hover {
  background: rgba(255, 90, 90, 0.25);
  color: #ff6b6b;
}
.auth-modal h2 {
  text-align: center;
  font-size: 24px;
  margin-bottom: 6px;
  background: linear-gradient(90deg, #ffd86b, #fff8d6, #ffd86b);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.auth-modal .sub {
  text-align: center;
  color: #999;
  font-size: 13px;
  margin-bottom: 22px;
}
.auth-modal input {
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.auth-modal input:focus {
  border-color: #d4af37;
}
.auth-modal input::placeholder {
  color: #888;
}
.auth-modal button.auth-submit {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  color: #000;
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  background-size: 200%;
  transition:
    transform 0.25s ease,
    background-position 0.25s ease;
  margin-top: 4px;
}
.auth-modal button.auth-submit:hover {
  transform: scale(1.02);
  background-position: right;
}
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: #999;
}
.auth-switch a {
  color: #d4af37;
  font-weight: 600;
  cursor: pointer;
}
.auth-error {
  color: #ff6b6b;
  font-size: 12.5px;
  text-align: center;
  margin: -6px 0 12px;
  display: none;
}
.auth-error.show {
  display: block;
}

/* Logged-in dropdown greeting under user icon
   NOTE: this dropdown lives inside the header's "Account" <li>,
   which uses a shiny gradient-text effect
   (-webkit-text-fill-color: transparent). That property inherits
   into children, which was making the dropdown's own text render
   invisible/washed-out. Everything below explicitly resets it back
   to a normal solid, fully opaque color. */
.user-greet-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  background: #141414;
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  min-width: 180px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  padding: 14px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.2s ease;
  z-index: 50;
  animation: none;
  -webkit-text-fill-color: initial;
  background-clip: initial;
  -webkit-background-clip: initial;
}
.user-greet-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.user-greet-menu p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: none !important;
  font-size: 13px;
  margin-bottom: 10px;
}
.user-greet-menu p span {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  font-weight: 700;
}
.user-greet-menu button {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: 20px;
  background: rgba(255, 90, 90, 0.15) !important;
  color: #ff6b6b !important;
  -webkit-text-fill-color: #ff6b6b !important;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  animation: none;
}
.user-greet-menu button:hover {
  background: rgba(255, 90, 90, 0.3) !important;
}

/* ================================================================
   CART & WISHLIST PAGES
================================================================ */
.cart-page,
.wishlist-page {
  min-height: calc(100vh - 100px);
  padding: 60px 80px 80px;
  background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.96));
  color: #fff;
}
.cart-page h2,
.wishlist-page h2 {
  text-align: center;
  font-size: 38px;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #ffd86b, #fff8d6, #ffd86b);
  background-size: 300%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.cart-page .page-sub,
.wishlist-page .page-sub {
  text-align: center;
  color: #999;
  font-size: 14px;
  margin-bottom: 40px;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: #999;
}
.empty-state i {
  font-size: 50px;
  color: #333;
  margin-bottom: 18px;
  display: block;
}
.empty-state a {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 28px;
  border-radius: 30px;
  background: linear-gradient(135deg, #d4af37, #f7e7a1, #d4af37);
  color: #000;
  font-weight: 700;
  font-size: 14px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cart-row {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px;
}
.cart-row img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}
.cart-row-info {
  flex: 1;
  min-width: 0;
}
.cart-row-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.cart-row-info .cat {
  font-size: 12px;
  color: #d4af37;
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 5px 10px;
}
.cart-qty button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: none;
  background: rgba(212, 175, 55, 0.25);
  color: #d4af37;
  cursor: pointer;
  font-weight: 700;
}
.cart-qty button:hover {
  background: rgba(212, 175, 55, 0.45);
}
.cart-qty span {
  min-width: 18px;
  text-align: center;
  font-weight: 600;
}
.cart-row-price {
  font-weight: 700;
  color: #d4af37;
  min-width: 70px;
  text-align: right;
}
.cart-remove {
  background: rgba(255, 90, 90, 0.15);
  border: none;
  color: #ff6b6b;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}
.cart-remove:hover {
  background: rgba(255, 90, 90, 0.3);
}

.cart-summary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 16px;
  padding: 24px;
  position: sticky;
  top: 120px;
}
.cart-summary h3 {
  font-size: 18px;
  margin-bottom: 18px;
}
.cart-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  color: #ccc;
  margin-bottom: 10px;
}
.cart-summary-row.total {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
  margin-top: 12px;
}
.cart-summary-row.total span:last-child {
  color: #d4af37;
}
.checkout-btn {
  width: 100%;
  margin-top: 18px;
  padding: 13px;
  border: none;
  border-radius: 30px;
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, #25d366, #1ebe57);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.25s ease;
}
.checkout-btn:hover {
  transform: scale(1.02);
}
.cart-summary .note {
  font-size: 11.5px;
  color: #888;
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 1023px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
  .cart-summary {
    position: static;
  }
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cart-page,
  .wishlist-page {
    padding: 50px 30px 60px;
  }
}
@media (max-width: 767px) {
  .cart-page,
  .wishlist-page {
    padding: 30px 14px 50px;
  }
  .cart-page h2,
  .wishlist-page h2 {
    font-size: 28px;
  }
  .cart-row {
    flex-wrap: wrap;
  }
  .cart-row-price {
    order: 3;
    margin-left: auto;
  }
  .wishlist-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  .search-overlay {
    padding: 80px 12px 12px;
  }
}
@media (max-width: 480px) {
  .wishlist-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cart-row img {
    width: 60px;
    height: 60px;
  }
}

/* ── ACCESSIBILITY: SKIP TO CONTENT LINK ── */
.skip-link {
  position: fixed;
  top: -60px;
  left: 20px;
  z-index: 10000;
  background: #d4af37;
  color: #000;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  transition: top 0.3s ease;
}
.skip-link:focus {
  top: 20px;
}

/* ── ACCESSIBILITY: KEYBOARD FOCUS VISIBLE ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #d4af37;
  outline-offset: 3px;
  border-radius: 4px;
}
