:root {
  --maroon: #7A1220;
  --maroon-deep: #4A0D14;
  --gold: #C89B3C;
  --gold-soft: #E7D4A6;
  --cream: #FBF5E9;
  --paper: #FFFDF8;
  --ink: #2B1B12;
  --ink-soft: #6E5B4E;
  --line: #E7DCC8;
  --olive: #5C7A4A;
}
* { box-sizing: border-box; margin: 0; padding: 0; }

:is(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
body { font-family: 'Manrope', system-ui, sans-serif; background: var(--cream); color: var(--ink); }
h1 { font-family: 'Fraunces', serif; color: var(--maroon-deep); }

.site-header {
  background: rgba(251,245,233,0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding: 10px 32px;
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--maroon-deep); font-weight: 700; }
.brand-badge {
  width: 36px; height: 36px; border-radius: 50%; background: var(--maroon); color: white;
  border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 11px;
}
.brand-logo { height: 46px; width: auto; flex-shrink: 0; }
.brand-name {
  font-family: 'Fraunces', serif;
  font-weight: 700; font-size: 19px;
  color: var(--maroon-deep);
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-name em {
  font-style: normal; font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}

.header-nav { display: flex; gap: 28px; font-weight: 600; font-size: 14px; align-items: center; position: relative; }
.header-nav a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); text-decoration: none; }
.header-nav a:hover { color: var(--maroon); }
.header-nav a svg { flex-shrink: 0; opacity: 0.75; }
.header-nav a:hover svg { opacity: 1; }

.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: 6px;
  background: none; border: none;
  font-family: inherit; font-weight: 600; font-size: 14px;
  color: var(--ink); cursor: pointer;
  padding: 6px 2px;
}
.dropdown-toggle:hover { color: var(--maroon); }
.dropdown-toggle .chev { transition: transform 0.15s ease; }
.dropdown-toggle.open .chev { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute; top: calc(100% + 12px); left: 50%;
  transform: translateX(-50%);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px -14px rgba(74,13,20,0.25);
  min-width: 190px;
  padding: 8px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: all 0.15s ease;
  z-index: 30;
}
.dropdown-menu.open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  background: none; border: none;
  font-family: inherit; font-size: 13.5px; font-weight: 600;
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}
.dropdown-item svg { flex-shrink: 0; opacity: 0.65; }
.dropdown-item:hover { background: var(--cream); color: var(--maroon); }
.dropdown-item:hover svg { opacity: 1; }
.dropdown-item-primary svg { opacity: 1; }
.dropdown-item-primary {
  background: var(--maroon);
  color: white !important;
  margin-bottom: 4px;
}
.dropdown-item-primary:hover { background: var(--maroon-deep); color: white !important; }

.login-link {
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}
.login-link:hover { color: var(--maroon); }

.cart-btn {
  background: var(--maroon);
  color: white;
  border: none;
  text-decoration: none;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: transform 0.15s ease;
}
.cart-btn:hover { transform: translateY(-1px); }
#cartCount {
  background: var(--gold);
  color: var(--maroon-deep);
  min-width: 20px; height: 20px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; padding: 0 4px;
}

.header-right { display: flex; align-items: center; gap: 12px; }
.mobile-nav-toggle {
  display: none;
  background: none; border: 1.5px solid var(--line); border-radius: 10px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
  color: var(--maroon-deep); cursor: pointer; flex-shrink: 0;
}
.mobile-nav-toggle:hover { border-color: var(--gold); }

footer { background: var(--maroon-deep); color: var(--gold-soft); padding: 44px 24px 28px; margin-top: 60px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-end; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-title { font-family: 'Fraunces', serif; color: white; font-size: 18px; }
.footer-tag { font-size: 12.5px; margin-top: 2px; }
.footer-contact { text-align: right; align-self: flex-end; }
.footer-contact p { font-size: 13.5px; margin-bottom: 10px; }
.footer-contact p:last-child { margin-bottom: 0; }
.footer-hours { font-size: 12.5px; opacity: 0.85; }
.footer-contact a { color: white; }

@media (max-width: 600px) {
  .footer-inner { justify-content: center; text-align: center; }
  .footer-contact { text-align: center; align-self: center; }
}

@media (min-width: 901px) {
  .footer-contact .addr-break { display: block; }
}
.pwa-install-box {
  max-width: 1100px; margin: 20px auto 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background: rgba(251,245,233,0.08); border: 1px solid rgba(231,212,166,0.25);
  border-radius: 12px; padding: 14px 18px; font-size: 13.5px;
}
#pwaInstallBtn {
  background: var(--gold); color: var(--maroon-deep); border: none;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 13px; cursor: pointer; flex-shrink: 0;
}
#pwaInstallBtn:hover { background: var(--gold-soft); }

.footer-bottom-row {
  max-width: 1100px; margin: 30px auto 0; padding-top: 26px;
  border-top: 1px solid rgba(231,212,166,0.25);
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: space-between; align-items: center;
}
.footer-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-badge-img { height: 40px; width: auto; display: block; transition: transform 0.15s ease; }
.footer-badges a:hover .app-badge-img { transform: translateY(-1px); }
.footer-social { display: flex; align-items: center; gap: 14px; }
.social-icon-img { height: 32px; width: auto; display: block; transition: transform 0.15s ease; }
.footer-social a:hover .social-icon-img { transform: translateY(-1px); }

@media (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; }
  .mobile-nav-toggle { display: flex; }

  .header-nav {
    display: none;
    order: 3; width: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--maroon-deep); border-radius: 14px;
    margin-top: 14px; padding: 8px;
    max-height: 70vh; overflow-y: auto;
  }
  .header-nav.mobile-open { display: flex; }
  .header-nav > a {
    color: var(--gold-soft); padding: 14px 12px;
    border-bottom: 1px solid rgba(251,245,233,0.14);
  }
  .header-nav > a:hover { color: white; }
  .header-nav > .dropdown:last-child > .dropdown-toggle { border-bottom: 1px solid rgba(251,245,233,0.14); }

  .header-nav .dropdown-toggle {
    width: 100%; color: var(--gold-soft);
    padding: 14px 12px; border-bottom: 1px solid rgba(251,245,233,0.14);
    justify-content: space-between;
  }
  .header-nav .dropdown-toggle:hover { color: white; }

  .header-nav .dropdown-menu {
    position: static; transform: none;
    display: none; opacity: 1; visibility: visible; pointer-events: auto;
    background: rgba(43,27,18,0.35); box-shadow: none; border: none;
    border-radius: 0; min-width: 0; padding: 4px 4px 4px 20px;
  }
  .header-nav .dropdown-menu.open { display: flex; flex-direction: column; }
  .header-nav .dropdown-item { color: var(--gold-soft); }
  .header-nav .dropdown-item:hover { background: rgba(251,245,233,0.08); color: white; }
  .header-nav .dropdown-item-primary { background: var(--gold); color: var(--maroon-deep) !important; }
  .header-nav .dropdown-item-primary:hover { background: var(--gold); color: var(--maroon-deep) !important; }
}

@media (max-width: 600px) {
  .site-header { padding: 8px 16px; }
  .brand-logo { height: 34px; }
  .brand-name { font-size: 15px; }
  .brand-name em { font-size: 8px; }
  .header-right { gap: 8px; }
  .cart-btn { padding: 8px 12px; font-size: 12.5px; gap: 5px; }
  .cart-label { display: none; }
  .mobile-nav-toggle { width: 34px; height: 34px; }
  .mobile-nav-toggle svg { width: 18px; height: 18px; }
}

.track-main { max-width: 640px; margin: 0 auto; padding: 50px 24px; }

.lookup-box { text-align: center; }
.lookup-box h1 { font-size: 30px; margin-bottom: 8px; }
.lookup-box p { color: var(--ink-soft); margin-bottom: 26px; }
#lookupForm { display: flex; gap: 10px; max-width: 320px; margin: 0 auto; }
#orderIdInput {
  flex: 1; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--line);
  background: var(--paper); font-family: inherit; font-size: 14.5px;
}
#lookupForm button {
  background: var(--maroon); color: white; border: none; padding: 12px 20px;
  border-radius: 10px; font-weight: 700; cursor: pointer;
}
#trackLoginBtn {
  background: var(--maroon); color: white; border: none; padding: 13px 32px;
  border-radius: 999px; font-weight: 700; font-size: 14.5px; cursor: pointer;
}
.lookup-error { color: #B3261E; font-size: 13px; margin-top: 14px; }

.tracking-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 20px; flex-wrap: wrap; gap: 10px; }
.tracking-head h1 { font-size: 24px; }
.track-another { color: var(--maroon); font-size: 13px; font-weight: 700; text-decoration: none; }

.order-summary {
  background: var(--paper); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 28px; font-size: 13.5px; color: var(--ink-soft);
}
.order-summary strong { color: var(--maroon-deep); }

.transfer-box { background: var(--paper); border: 1.5px solid var(--gold); border-radius: 14px; padding: 16px; margin-bottom: 28px; }
.transfer-lead { font-size: 14px; margin-bottom: 8px; color: var(--ink); }
.transfer-lead strong { color: var(--maroon); font-size: 18px; }
.transfer-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.transfer-row span { color: var(--ink-soft); flex: 0 0 104px; }
.transfer-row strong { color: var(--maroon-deep); min-width: 0; overflow-wrap: anywhere; }
.transfer-acct { font-size: 18px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.copy-btn { margin-left: auto; flex-shrink: 0; background: var(--maroon); color: #fff; border: none; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
.copy-btn:hover { background: var(--maroon-deep); }
.transfer-note { font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line);
  z-index: 0;
}
.timeline-fill {
  position: absolute; left: 11px; top: 6px; width: 2px; height: 0px;
  background: var(--olive); z-index: 1;
}
.timeline-step { position: relative; padding-bottom: 26px; z-index: 2; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-dot {
  position: absolute; left: -34px; top: 2px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--ink-soft);
}
.timeline-step.done .timeline-dot { background: var(--olive); border-color: var(--olive); color: white; }
.timeline-step.current .timeline-dot { background: var(--maroon); border-color: var(--maroon); color: white; position: relative; }
.timeline-step.current .timeline-dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--maroon);
  opacity: 0.6; animation: timelinePulse 1.8s ease-out infinite;
}
.timeline-step.just-completed .timeline-dot { animation: timelinePop 500ms ease; }
@keyframes timelinePulse {
  0% { transform: scale(0.8); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes timelinePop {
  0% { transform: scale(0.6); }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .timeline-fill { transition: none !important; }
  .timeline-step.current .timeline-dot::after { animation: none; }
  .timeline-step.just-completed .timeline-dot { animation: none; }
}
.timeline-label { font-weight: 700; color: var(--ink-soft); font-size: 14.5px; }
.timeline-step.done .timeline-label, .timeline-step.current .timeline-label { color: var(--maroon-deep); }
.timeline-time { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.review-box {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 22px; margin-top: 26px; text-align: center;
}
.review-box h3 { font-size: 18px; margin-bottom: 14px; }
.star-picker { font-size: 30px; margin-bottom: 14px; }
.star { color: var(--line); cursor: pointer; transition: color 0.15s ease; }
.star.active { color: var(--gold); }
#reviewComment {
  width: 100%; padding: 10px 12px; border-radius: 10px; border: 1.5px solid var(--line);
  font-family: inherit; font-size: 13.5px; margin-bottom: 14px; resize: vertical;
}
#submitReviewBtn {
  background: var(--maroon); color: white; border: none; padding: 10px 24px;
  border-radius: 999px; font-weight: 700; cursor: pointer;
}
#submitReviewBtn:disabled { opacity: 0.5; cursor: not-allowed; }
.review-msg { font-size: 12.5px; margin-top: 10px; }
.review-thanks { color: var(--olive); font-weight: 700; font-size: 15px; }


@media (max-width: 600px) {
  .track-main { padding: 30px 16px; }
  .tracking-head { flex-direction: column; align-items: flex-start; }
  .timeline { padding-left: 28px; }
}

/* Floating WhatsApp support button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 18px -4px rgba(0,0,0,0.35);
  z-index: 50;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 22px -4px rgba(0,0,0,0.45); color: white; }

@media (max-width: 600px) {
  .whatsapp-float { width: 50px; height: 50px; bottom: 16px; right: 16px; }
  .whatsapp-float svg { width: 24px; height: 24px; }
}