/* ============================================================
 * Paradise Sips — Tropical Redesign (overrides legacy CSS)
 * Loaded LAST. Keep class names from existing markup intact.
 * ============================================================ */

:root {
  /* Brand palette */
  --ps-cream:        #fffaf2;
  --ps-cream-2:      #fff4e2;
  --ps-coconut:      #ffffff;
  --ps-sand:         #f7eedd;
  --ps-green:        #2f8f6d;   /* tropical green */
  --ps-green-deep:   #1f6b50;
  --ps-green-soft:   #d8efe3;
  --ps-mango:        #ffb627;   /* mango CTA */
  --ps-mango-deep:   #f59e0b;
  --ps-aqua:         #4ec5d4;   /* sky / aqua */
  --ps-aqua-soft:    #d8f1f5;
  --ps-coral:        #ff7a6b;   /* fruit pink/coral */
  --ps-coral-soft:   #ffe1dc;
  --ps-brown:        #6b4a2b;   /* coconut brown */
  --ps-ink:          #1f3b34;   /* primary text */
  --ps-muted:        #55756e;   /* secondary text — WCAG AA on cream/white */
  --ps-line:         #ecdfca;

  /* Surfaces */
  --ps-bg:           var(--ps-cream);
  --ps-surface:      #ffffff;
  --ps-surface-2:    var(--ps-sand);

  /* Tokens */
  --ps-radius-sm: 10px;
  --ps-radius:    16px;
  --ps-radius-lg: 22px;
  --ps-radius-xl: 28px;

  --ps-shadow-xs: 0 1px 2px rgba(31,59,52,.06);
  --ps-shadow-sm: 0 4px 12px rgba(31,59,52,.07);
  --ps-shadow-md: 0 10px 24px rgba(31,59,52,.10);
  --ps-shadow-lg: 0 20px 40px rgba(31,59,52,.14);

  --ps-grad-hero:   radial-gradient(1200px 600px at 20% -10%, #ffe7c4 0%, transparent 60%),
                    radial-gradient(900px 500px at 100% 10%, #d8f1f5 0%, transparent 55%),
                    linear-gradient(180deg, var(--ps-cream) 0%, var(--ps-cream-2) 100%);
  --ps-grad-band:   linear-gradient(180deg, #ffffff 0%, var(--ps-cream) 100%);
  --ps-grad-mango:  linear-gradient(135deg, #ffd267 0%, #ffb627 55%, #f59e0b 100%);
  --ps-grad-green:  linear-gradient(135deg, #3aa37e 0%, #2f8f6d 60%, #1f6b50 100%);
}

/* ---------- Document base ---------- */
html, body { overflow-x: hidden; }
html { background: var(--ps-bg); }
body {
  font-family: 'Noto Sans', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--ps-bg);
  color: var(--ps-ink);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--ps-green-deep); }
a:hover { color: var(--ps-green); }

/* ---------- Container/layout ---------- */
.container {
  background: transparent !important;
  min-height: 100vh;
}
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px clamp(16px, 4vw, 32px) 80px;
}
.section {
  display: block !important;
  opacity: 1 !important;
  transform: none !important;
  background: transparent !important;
  padding: clamp(28px, 5vw, 56px) 0;
  border: 0 !important;
  box-shadow: none !important;
}
.section + .section { border-top: 1px dashed var(--ps-line); }

h1, h2, h3 { color: var(--ps-ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.4rem); line-height: 1.08; font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.15; font-weight: 800; margin-bottom: 18px; }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.4rem); font-weight: 700; }
p  { color: var(--ps-ink); line-height: 1.6; }

/* ---------- Header / Nav ---------- */
.header.mobile-only,
.desktop-nav.desktop-only {
  background: rgba(255, 250, 242, 0.85) !important;
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ps-line) !important;
  box-shadow: var(--ps-shadow-xs) !important;
  position: sticky; top: 0; z-index: 50;
}
.header.mobile-only {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 14px;
  min-height: 64px;
  gap: 10px;
}
.header.mobile-only .logo {
  height: 48px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  display: block;
  flex: 0 1 auto;
}
@media (min-width: 480px) {
  .header.mobile-only .logo { height: 54px; max-width: 190px; }
}

.hamburger {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--ps-green-soft); border: 1px solid var(--ps-line);
  display: inline-flex; flex-direction: column; gap: 4px;
  align-items: center; justify-content: center; cursor: pointer;
  flex: 0 0 auto;
}
.hamburger span { width: 18px; height: 2px; background: var(--ps-green-deep); border-radius: 2px; }

.desktop-nav-container {
  max-width: 1200px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 84px;
}
.desktop-logo {
  height: 60px;
  width: auto;
  max-width: 240px;
  object-fit: contain;
  display: block;
  flex: 0 0 auto;
}
@media (min-width: 1024px) {
  .desktop-logo { height: 68px; max-width: 270px; }
  .desktop-nav-container { min-height: 92px; }
}
.desktop-nav-buttons { display: flex; align-items: center; gap: 6px; }

.nav-btn {
  display: inline-flex !important; align-items: center; justify-content: center;
  padding: 9px 14px !important; border-radius: 999px !important;
  font-weight: 600 !important; font-size: 0.95rem !important;
  color: var(--ps-ink) !important;
  background: transparent !important;
  border: 1px solid transparent !important; text-decoration: none;
  transition: all .18s ease;
  width: auto !important;
  min-height: 40px !important;
  box-shadow: none !important;
  text-align: center !important;
  white-space: nowrap;
}
.nav-btn:hover { background: var(--ps-green-soft) !important; color: var(--ps-green-deep) !important; }
.nav-btn.active {
  background: var(--ps-green-deep) !important; color: #fff !important;
  box-shadow: 0 6px 14px rgba(31,107,80,.25) !important;
}

/* Cart button (CartDrawer uses .nav-btn) — give it the mango CTA look */
.nav-btn[aria-label="Open cart"] {
  background: var(--ps-grad-mango) !important;
  color: #4a2e00 !important;
  padding: 9px 16px !important;
  font-weight: 700 !important;
  box-shadow: var(--ps-shadow-sm) !important;
}
.nav-btn[aria-label="Open cart"]:hover { transform: translateY(-1px); color: #4a2e00 !important; }

/* Mobile nav: full-width pills inside drawer */
.mobile-nav .nav-btn { width: 100% !important; justify-content: flex-start !important; text-align: left !important; padding: 12px 14px !important; font-size: 1.05rem !important; }

/* Mobile nav drawer */
.mobile-nav {
  position: fixed; inset: 0 30% 0 0;
  background: var(--ps-cream); padding: 72px 18px 24px;
  transform: translateX(-100%); transition: transform .25s ease;
  display: flex; flex-direction: column; gap: 8px;
  box-shadow: var(--ps-shadow-lg); z-index: 60; border-right: 1px solid var(--ps-line);
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav .nav-btn { justify-content: flex-start; padding: 12px 14px; font-size: 1.05rem; }
.mobile-nav-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--ps-line);
  background: #fff; color: var(--ps-ink); font-size: 22px; line-height: 1; cursor: pointer;
}

/* ---------- Buttons ---------- */
.cta-btn, .submit-contact-btn, .newsletter-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  min-height: 48px;
}
.cta-btn.primary, .submit-contact-btn, .newsletter-trigger {
  background: var(--ps-grad-mango); color: #4a2e00;
  box-shadow: 0 10px 20px rgba(245,158,11,.25);
}
.cta-btn.primary:hover, .submit-contact-btn:hover, .newsletter-trigger:hover {
  transform: translateY(-1px); box-shadow: 0 14px 28px rgba(245,158,11,.32);
}
.cta-btn.secondary {
  background: #fff; color: var(--ps-green-deep);
  border-color: var(--ps-green-deep);
}
.cta-btn.secondary:hover { background: var(--ps-green-soft); }
.cta-btn:focus-visible, .submit-contact-btn:focus-visible {
  outline: 3px solid var(--ps-aqua); outline-offset: 2px;
}

.cta-buttons { display: flex; flex-direction: row; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Hero ---------- */
.home-hero {
  background: var(--ps-grad-hero) !important;
  backdrop-filter: none !important;
  border-radius: var(--ps-radius-xl) !important;
  padding: clamp(24px, 5vw, 56px) !important;
  box-shadow: var(--ps-shadow-sm) !important;
  border: 1px solid var(--ps-line) !important;
  text-align: center;
}
.home-hero h1 {
  color: var(--ps-green-deep) !important;
  font-size: clamp(2rem, 5.5vw, 3.4rem) !important;
  line-height: 1.08 !important;
  font-weight: 800 !important;
  text-shadow: none !important;
  max-width: 900px; margin: 0 auto 8px;
}
.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem) !important;
  color: var(--ps-muted) !important;
  max-width: 720px; margin: 16px auto 24px !important;
}
.hero-image {
  margin: 24px auto 8px; max-width: 760px;
  border-radius: var(--ps-radius-lg); overflow: hidden;
  box-shadow: var(--ps-shadow-md); border: 1px solid var(--ps-line); background: #fff;
}
.hero-img { display: block; width: 100%; height: auto; }

/* Delivery banner */
.delivery-banner {
  background: linear-gradient(135deg, #fff4d4, #ffe9a8) !important;
  border: 1px solid #f2dca0; border-radius: var(--ps-radius) !important;
  box-shadow: var(--ps-shadow-xs);
}

/* CTA grid cards */
.cta-grid {
  display: grid; gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 22px;
}
@media (min-width: 640px) { .cta-grid { grid-template-columns: 1fr 1fr; } }
.cta-card {
  display: flex; gap: 14px; align-items: center; text-align: left;
  padding: 18px; border-radius: var(--ps-radius-lg);
  background: #fff; border: 1px solid var(--ps-line);
  box-shadow: var(--ps-shadow-sm); cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  color: var(--ps-ink);
}
.cta-card:hover { transform: translateY(-2px); box-shadow: var(--ps-shadow-md); border-color: var(--ps-green); }
.cta-card-icon {
  width: 56px; height: 56px; flex: 0 0 56px;
  border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; background: var(--ps-green-soft); color: var(--ps-green-deep);
}
.cta-card:nth-child(2) .cta-card-icon { background: var(--ps-aqua-soft); color: #0e6b78; }
.cta-card-content h3 { margin: 0 0 4px; }
.cta-card-content p { margin: 0; color: var(--ps-muted); font-size: 0.95rem; }

/* ---------- Why Choose / Features grid ---------- */
.why-choose-section { margin-top: 36px; text-align: center; }
.features {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 14px;
}
@media (min-width: 560px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  display: flex; align-items: flex-start; gap: 12px; text-align: left;
  background: #fff; border: 1px solid var(--ps-line); border-radius: var(--ps-radius);
  padding: 14px 16px; box-shadow: var(--ps-shadow-xs);
}
.feature-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  display: grid; place-items: center; font-size: 22px;
  background: var(--ps-cream-2); border: 1px solid var(--ps-line);
}

/* ---------- Feature images / gallery ---------- */
.feature-images {
  display: grid; gap: 16px; margin-top: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .feature-images { grid-template-columns: 1fr 1fr; } }
.feature-img-container {
  border-radius: var(--ps-radius-lg); overflow: hidden;
  background: #fff; border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-sm);
}
.feature-img { display: block; width: 100%; height: 240px; object-fit: cover; transition: transform .4s ease; }
.feature-img-container:hover .feature-img { transform: scale(1.04); }
.feature-caption {
  padding: 12px 14px; font-weight: 600; color: var(--ps-ink);
  background: var(--ps-cream);
}

/* ---------- Newsletter ---------- */
.newsletter-cta {
  margin-top: 28px; text-align: center;
  background: var(--ps-grad-green); color: #fff;
  padding: clamp(24px, 4vw, 36px); border-radius: var(--ps-radius-xl);
  box-shadow: var(--ps-shadow-md);
  border: 1px solid rgba(255,255,255,0.12);
}
.newsletter-cta h3, .newsletter-cta p { color: #fff; }
.newsletter-cta h3 { font-size: clamp(1.3rem, 2.6vw, 1.7rem); margin-bottom: 10px; }
.newsletter-cta .newsletter-lead { opacity: .92; max-width: 560px; margin: 0 auto 10px; font-size: clamp(0.95rem, 1.5vw, 1.05rem); line-height: 1.55; }
.newsletter-cta .newsletter-promo {
  font-weight: 700; opacity: 1; font-size: clamp(0.95rem, 1.5vw, 1.05rem);
  margin: 6px auto 18px;
}

/* Inline form */
.newsletter-inline-form {
  display: flex; flex-direction: column; gap: 10px;
  max-width: 480px; margin: 0 auto 14px;
  align-items: stretch;
}
@media (min-width: 520px) {
  .newsletter-inline-form { flex-direction: row; align-items: center; }
}
.newsletter-input {
  flex: 1 1 auto;
  width: 100%;
  padding: 14px 18px; font-size: 1rem; font-family: inherit;
  background: rgba(255,255,255,0.95); color: var(--ps-ink);
  border: 2px solid rgba(255,255,255,0.35); border-radius: 999px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  min-height: 48px;
}
.newsletter-input::placeholder { color: #5a7a73; }
.newsletter-input:focus {
  outline: none;
  background: #fff;
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.25);
}
.newsletter-submit {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 999px; white-space: nowrap;
  font-weight: 700; font-size: 1rem; line-height: 1;
  border: none; cursor: pointer; text-decoration: none;
  background: var(--ps-grad-mango); color: #4a2e00;
  box-shadow: 0 10px 20px rgba(31,59,52,.2);
  transition: transform .15s ease, box-shadow .2s ease;
  min-height: 48px;
}
.newsletter-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(31,59,52,.28); }
.newsletter-submit:active { transform: scale(0.98); }
.newsletter-submit-arrow { font-size: 1.1rem; transition: transform .2s ease; }
.newsletter-submit:hover .newsletter-submit-arrow { transform: translateX(2px); }

/* Success / error states */
.newsletter-state {
  display: none; align-items: center; gap: 10px;
  max-width: 480px; margin: 0 auto 14px;
  padding: 12px 16px; border-radius: var(--ps-radius);
  background: rgba(255,255,255,0.18); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.25);
  text-align: left; color: #fff;
  font-size: 0.95rem; line-height: 1.5;
  animation: fadeIn .35s ease;
}
.newsletter-state.show { display: flex; }
.newsletter-state-icon { font-size: 1.3rem; flex-shrink: 0; }
.newsletter-state p { margin: 0; color: #fff; }
.newsletter-state--error {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.4);
}
.newsletter-code {
  display: inline-block;
  font-family: 'SF Mono', ui-monospace, Menlo, Consolas, monospace;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  margin: 0 2px;
  background: #fff;
  color: var(--ps-green-deep);
  border: 1.5px dashed var(--ps-mango);
  border-radius: 8px;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.newsletter-code:hover { transform: translateY(-1px); background: var(--ps-cream-2); }

/* Privacy note */
.newsletter-privacy {
  font-size: 0.82rem; opacity: .75; max-width: 480px; margin: 0 auto;
  line-height: 1.5;
}

/* Modal overrides */
.newsletter-modal { /* Existing modal; soften look */ }
.newsletter-modal-content {
  background: #fff !important; border-radius: var(--ps-radius-lg) !important;
  border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-lg);
}

/* ---------- Menu / Products ---------- */
.menu-header { text-align: center; margin-bottom: 22px; }
.menu-grid {
  display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .menu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .menu-grid { grid-template-columns: repeat(3, 1fr); } }

.menu-item {
  background: #fff; border-radius: var(--ps-radius-lg);
  border: 1px solid var(--ps-line);
  box-shadow: var(--ps-shadow-sm); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .25s ease, border-color .2s ease;
}
.menu-item:hover { transform: translateY(-3px); box-shadow: var(--ps-shadow-lg); border-color: var(--ps-green); }
.menu-item > a > img,
.menu-item > img { display: block; width: 100% !important; height: 220px !important; object-fit: cover; object-position: center; border-radius: var(--ps-radius) var(--ps-radius) 0 0 !important; }
.menu-item .icon {
  font-size: 64px; text-align: center; padding: 36px 0;
  background: var(--ps-cream-2); border-bottom: 1px solid var(--ps-line);
}
.menu-item-content { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.menu-item-content h2 { font-size: 1.15rem; margin: 0; }
.menu-item-content h2 a { color: var(--ps-ink); text-decoration: none; }
.menu-item-content h2 a:hover { color: var(--ps-green-deep); }
.menu-item-content .description { color: var(--ps-muted); font-size: .92rem; }
.menu-item-content .pricing { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.menu-item-content .price { font-weight: 800; font-size: 1.25rem; color: var(--ps-green-deep); }
.menu-item-content .cta-btn { margin-top: 8px; }

/* Tags / badges */
.tags, .badges { display: flex; flex-wrap: wrap; gap: 6px; }
.tag, .badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.tag.vegan, .badge.vegan { background: var(--ps-green-soft); color: var(--ps-green-deep); }
.tag.gluten-free, .badge.gluten-free { background: var(--ps-aqua-soft); color: #0e6b78; }
.tag.organic, .badge.organic { background: #f1ecd9; color: #6b5a1d; }
.tag.exotic, .badge.exotic { background: var(--ps-coral-soft); color: #a33327; }
.tag.seasonal, .badge.seasonal { background: #fff1c2; color: #7a5400; }
.tag.wholesale, .badge.wholesale { background: #ecdcc9; color: var(--ps-brown); }

/* ---------- Order page ---------- */
.order-content { max-width: 880px; margin: 0 auto; }
.cta-section, .order-section, .about-section, .contact-section, .faq-item {
  background: #fff; border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg);
  padding: clamp(18px, 3vw, 28px); box-shadow: var(--ps-shadow-xs);
  margin-bottom: 16px;
}
.cta-section h3, .order-section h3, .about-section h3, .contact-section h3 { margin-bottom: 8px; }
.cta-section p, .order-section p, .about-section p, .contact-section p { color: var(--ps-muted); }
.cta-section .cta-buttons, .about-section .cta-buttons { margin-top: 18px; }

/* ---------- About ---------- */
.about-content { max-width: 900px; margin: 0 auto; }
.about-intro {
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--ps-muted);
  text-align: center; max-width: 720px; margin: 0 auto 22px;
}

/* ---------- FAQ ---------- */
.faq-content { max-width: 820px; margin: 0 auto; }
.faq-item h3 {
  color: var(--ps-green-deep); margin-bottom: 6px;
  display: flex; align-items: baseline; gap: 8px;
}
.faq-item h3::before { content: "❓"; font-size: 1rem; }
.faq-item p { color: var(--ps-ink); }

/* ---------- Contact ---------- */
.contact-content { max-width: 980px; margin: 0 auto; }
.contact-info {
  display: grid; gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .contact-info { grid-template-columns: 1fr 1fr; } }
.contact-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px; border-radius: var(--ps-radius);
  background: var(--ps-cream-2); border: 1px solid var(--ps-line);
}
.contact-item .contact-icon {
  width: 40px; height: 40px; flex: 0 0 40px; border-radius: 12px;
  background: #fff; display: grid; place-items: center; font-size: 20px;
  border: 1px solid var(--ps-line);
}
.contact-item a { color: var(--ps-green-deep); font-weight: 600; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }

.map-container {
  border-radius: var(--ps-radius-lg); overflow: hidden;
  border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-xs);
}

.contact-form { display: flex; flex-direction: column; gap: 12px; }
.form-input {
  width: 100%; padding: 14px 16px; font-size: 1rem; font-family: inherit;
  background: #fff; color: var(--ps-ink);
  border: 1.5px solid var(--ps-line); border-radius: var(--ps-radius);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-input::placeholder { color: #5a7a73; }
.form-input:focus {
  outline: none; border-color: var(--ps-green);
  box-shadow: 0 0 0 4px rgba(47,143,109,.15);
}
.submit-contact-btn { width: 100%; margin-top: 4px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px; padding: 28px 16px;
  text-align: center; color: var(--ps-muted);
  background: var(--ps-cream-2); border-top: 1px solid var(--ps-line);
}
.footer-policies {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 12px;
  margin-bottom: 10px;
}
.footer-link { color: var(--ps-green-deep); text-decoration: none; font-weight: 600; }
.footer-link:hover { text-decoration: underline; }
.footer-divider { color: var(--ps-line); }

.footer-social {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
  margin: 12px 0 14px;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; line-height: 1;
  text-decoration: none; transition: transform .15s ease, box-shadow .2s ease;
  min-height: 40px;
}
.social-btn:hover { transform: translateY(-1px); }
.social-btn.facebook {
  background: #1877F2; color: #fff;
  box-shadow: 0 8px 16px rgba(24,119,242,.25);
}
.social-btn.instagram {
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  box-shadow: 0 8px 16px rgba(220,39,67,.25);
}

/* ---------- Cart drawer trigger (CartDrawer renders a Button) ---------- */
.desktop-nav-buttons button[aria-haspopup="dialog"],
.mobile-nav button[aria-haspopup="dialog"] {
  background: var(--ps-grad-mango) !important;
  color: #4a2e00 !important; border: 0 !important;
  height: 44px !important; min-width: 44px !important; width: auto !important;
  padding: 0 16px !important;
  border-radius: 999px !important; box-shadow: var(--ps-shadow-sm) !important;
  display: inline-flex !important; align-items: center !important; gap: 8px !important;
  white-space: nowrap !important; font-weight: 700 !important; font-size: 0.9rem !important;
}
.desktop-nav-buttons button[aria-haspopup="dialog"]:hover { transform: translateY(-1px); }

/* ---------- Utilities & reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Visibility helpers (already present in legacy CSS, reinforce) ---------- */
@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only  { display: flex !important; }
  .cta-buttons .cta-btn { width: 100%; }
}
@media (min-width: 769px) {
  .mobile-only { display: none !important; }
  .desktop-only { display: block !important; }
  .desktop-nav.desktop-only { display: block !important; }
}

/* Final specificity bumps to beat legacy desktop-nav rules */
.desktop-nav-buttons .nav-btn,
nav.desktop-nav .nav-btn { width: auto !important; }
.desktop-nav-buttons .nav-btn[aria-label="Open cart"],
nav.desktop-nav .nav-btn[aria-label="Open cart"] {
  background: var(--ps-grad-mango) !important;
  color: #4a2e00 !important;
  white-space: nowrap !important;
}

/* ============================================================
 * Cart drawer, variant pickers, PDP, notifications
 * ============================================================ */

/* Cart trigger pill in nav */
.nav-btn.ps-cart-trigger {
  background: var(--ps-grad-mango) !important;
  color: #4a2e00 !important;
  font-weight: 700 !important;
  padding: 9px 14px !important;
  display: inline-flex !important; align-items: center; gap: 8px;
  box-shadow: var(--ps-shadow-sm) !important;
  border-radius: 999px !important;
}
.nav-btn.ps-cart-trigger:hover { transform: translateY(-1px); }
.ps-cart-trigger-icon { width: 18px; height: 18px; }
.ps-cart-trigger-count {
  display: inline-grid; place-items: center;
  min-width: 22px; height: 22px; padding: 0 6px;
  background: #4a2e00; color: #fff;
  border-radius: 999px; font-size: 12px; font-weight: 800;
}

/* Drawer shell — overrides shadcn Sheet defaults */
.ps-cart-drawer {
  width: 100% !important; max-width: 460px !important;
  background: var(--ps-cream) !important;
  border-left: 1px solid var(--ps-line) !important;
  display: flex !important; flex-direction: column !important;
  padding: 0 !important; gap: 0 !important;
}
@media (max-width: 520px) {
  .ps-cart-drawer { max-width: 100% !important; }
}

.ps-cart-header {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--ps-line);
  background: #fff;
  flex-shrink: 0;
}
.ps-cart-title {
  display: flex; align-items: center; gap: 10px;
  color: var(--ps-green-deep);
  font-size: 1.3rem; font-weight: 800;
}
.ps-cart-subtitle { color: var(--ps-muted); font-size: .92rem; }

/* Empty state */
.ps-cart-empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 40px 28px; gap: 12px;
}
.ps-cart-empty-icon {
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--ps-green-soft); display: grid; place-items: center;
  font-size: 44px; box-shadow: var(--ps-shadow-sm);
}
.ps-cart-empty h3 { color: var(--ps-ink); font-size: 1.25rem; }
.ps-cart-empty p { color: var(--ps-muted); max-width: 320px; }
.ps-cart-empty-cta { margin-top: 8px; min-width: 200px; }

/* Cart body */
.ps-cart-body {
  flex: 1; display: flex; flex-direction: column;
  min-height: 0; overflow: hidden;
}

/* Free-shipping progress */
.ps-cart-shipbar {
  margin: 14px 18px 8px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #fff4d4, #ffe9a8);
  border: 1px solid #f2dca0; border-radius: var(--ps-radius);
}
.ps-cart-shipbar p { font-size: .88rem; color: #6b4a09; margin-bottom: 8px; }
.ps-cart-shipbar strong { color: #5a3d00; }
.ps-cart-shipbar-track {
  height: 6px; background: rgba(255,255,255,.7);
  border-radius: 999px; overflow: hidden;
}
.ps-cart-shipbar-fill {
  height: 100%; background: var(--ps-grad-mango);
  border-radius: 999px; transition: width .35s ease;
}

/* Line items */
.ps-cart-list {
  list-style: none; margin: 0; padding: 6px 18px 12px;
  overflow-y: auto; flex: 1; min-height: 0;
}
.ps-cart-line {
  display: grid;
  grid-template-columns: 68px minmax(0,1fr) auto;
  gap: 12px; padding: 12px 0;
  border-bottom: 1px dashed var(--ps-line);
}
.ps-cart-line:last-child { border-bottom: 0; }
.ps-cart-line-img {
  width: 68px; height: 68px; border-radius: 12px; overflow: hidden;
  background: var(--ps-cream-2); border: 1px solid var(--ps-line);
  display: grid; place-items: center; font-size: 28px;
}
.ps-cart-line-img img { width: 100%; height: 100%; object-fit: cover; }
.ps-cart-line-main { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.ps-cart-line-main h4 {
  margin: 0; font-size: .98rem; color: var(--ps-ink);
  font-weight: 700; line-height: 1.25;
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.ps-cart-line-variant {
  font-size: .78rem; color: var(--ps-green-deep);
  background: var(--ps-green-soft); display: inline-block; align-self: flex-start;
  padding: 2px 8px; border-radius: 999px; font-weight: 600;
}
.ps-cart-line-unit { font-size: .82rem; color: var(--ps-muted); }
.ps-cart-line-right {
  display: flex; flex-direction: column; align-items: flex-end;
  justify-content: space-between; gap: 8px;
}
.ps-cart-line-total { font-weight: 800; color: var(--ps-green-deep); white-space: nowrap; }

.ps-cart-qty {
  display: inline-flex; align-items: center; gap: 0;
  background: #fff; border: 1px solid var(--ps-line);
  border-radius: 999px; padding: 2px; margin-top: 4px;
  width: fit-content;
}
.ps-cart-qty button {
  width: 28px; height: 28px; border-radius: 999px; border: 0;
  background: transparent; color: var(--ps-green-deep); cursor: pointer;
  display: inline-grid; place-items: center;
  transition: background .15s ease;
}
.ps-cart-qty button:hover:not(:disabled) { background: var(--ps-green-soft); }
.ps-cart-qty button:disabled { opacity: .4; cursor: not-allowed; }
.ps-cart-qty span {
  min-width: 28px; text-align: center; font-weight: 700;
  font-size: .9rem; color: var(--ps-ink);
}
.ps-cart-remove {
  width: 30px; height: 30px; border-radius: 999px; border: 1px solid var(--ps-line);
  background: #fff; color: var(--ps-coral); cursor: pointer;
  display: inline-grid; place-items: center; transition: all .15s ease;
}
.ps-cart-remove:hover:not(:disabled) {
  background: var(--ps-coral-soft); border-color: var(--ps-coral); color: #a33327;
}

/* Notes */
.ps-cart-notes {
  margin: 0 18px 12px; padding: 12px 14px;
  background: #fff; border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius); display: flex; flex-direction: column; gap: 8px;
  flex-shrink: 0;
}
.ps-cart-note {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .82rem; color: var(--ps-muted); line-height: 1.4;
}
.ps-cart-note svg { color: var(--ps-green); flex-shrink: 0; margin-top: 2px; }

/* Sticky footer */
.ps-cart-footer {
  flex-shrink: 0; padding: 14px 18px 18px;
  background: #fff; border-top: 1px solid var(--ps-line);
  box-shadow: 0 -6px 18px rgba(31,59,52,.06);
}
.ps-cart-totals { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ps-cart-totals-row {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 1.05rem; font-weight: 700; color: var(--ps-ink);
}
.ps-cart-totals-row.muted { font-size: .8rem; font-weight: 500; color: var(--ps-muted); }
.ps-cart-checkout {
  width: 100%; font-size: 1.05rem; padding: 14px 18px !important;
}
.ps-cart-continue {
  width: 100%; margin-top: 8px;
}
.ps-cart-trust {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 10px; font-size: .78rem; color: var(--ps-muted);
}

/* Variant pickers (menu cards + PDP) */
.ps-variant-picker {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 2px 0 4px;
}
.ps-variant-chip {
  padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1.5px solid var(--ps-line);
  font-size: .82rem; font-weight: 600; color: var(--ps-ink);
  cursor: pointer; transition: all .15s ease;
}
.ps-variant-chip:hover:not(:disabled) {
  border-color: var(--ps-green); color: var(--ps-green-deep);
}
.ps-variant-chip.active {
  background: var(--ps-green-soft); border-color: var(--ps-green);
  color: var(--ps-green-deep);
}
.ps-variant-chip:disabled {
  opacity: .5; cursor: not-allowed; text-decoration: line-through;
}

/* PDP layout */
.ps-pdp {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr; gap: 28px;
  padding: 20px;
}
@media (min-width: 800px) { .ps-pdp { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
.ps-pdp-media img {
  width: 100%; border-radius: var(--ps-radius-lg);
  border: 1px solid var(--ps-line); box-shadow: var(--ps-shadow-md);
}
.ps-pdp-info h1 { margin-bottom: 8px; color: var(--ps-green-deep); }
.ps-pdp-price {
  font-size: 1.75rem; font-weight: 800; color: var(--ps-green-deep); margin: 6px 0 14px;
}
.ps-pdp-desc { color: var(--ps-muted); line-height: 1.6; margin-bottom: 16px; }
.ps-pdp-add { width: 100%; margin-top: 16px; font-size: 1.05rem; }
.ps-pdp-trust {
  list-style: none; margin: 20px 0 0; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: var(--ps-cream-2); border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius);
}
.ps-pdp-trust li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; color: var(--ps-ink);
}
.ps-pdp-trust svg { color: var(--ps-green); flex-shrink: 0; }

/* Notification (Sonner) brand tweaks */
[data-sonner-toaster] { font-family: inherit; }
@media (max-width: 640px) {
  [data-sonner-toaster][data-y-position="top"] {
    top: 12px !important; left: 12px !important; right: 12px !important;
    width: auto !important;
  }
}

/* ============================================================
   Standalone Page Polish (About, FAQ, Contact, Wholesale, Legal)
   ============================================================ */

.page-hero {
  text-align: center;
  padding: 32px 20px 28px;
  margin: 0 auto 28px;
  max-width: 820px;
  background: linear-gradient(180deg, var(--ps-green-soft), transparent);
  border-radius: var(--ps-radius-lg, 20px);
}
.page-eyebrow {
  display: inline-block;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ps-green-deep);
  background: #fff;
  padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--ps-line);
  margin-bottom: 14px;
}
.page-hero h1 {
  font-size: clamp(1.7rem, 4.4vw, 2.6rem);
  line-height: 1.15; margin: 0 0 12px;
  color: var(--ps-green-deep);
  font-weight: 800;
}
.page-lede {
  font-size: 1.05rem;
  color: var(--ps-ink);
  max-width: 640px; margin: 0 auto 18px;
  line-height: 1.55;
}
.page-hero .cta-buttons { justify-content: center; }

/* About + Wholesale section blocks share simple cards */
.about-section, .wholesale-section, .contact-section, .faq-category {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg, 18px);
  padding: 22px 20px;
  margin: 0 auto 18px;
  max-width: 920px;
  box-shadow: var(--ps-shadow-xs, 0 1px 2px rgba(0,0,0,.04));
}
.about-section h2, .wholesale-section h2, .contact-section h2, .faq-category h2 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  color: var(--ps-green-deep);
}

/* FAQ accordions */
.faq-item {
  border: 1px solid var(--ps-line);
  border-radius: 14px;
  padding: 0;
  margin: 10px 0;
  background: var(--ps-coconut, #fffdf8);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after {
  content: "+";
  font-size: 1.4rem; font-weight: 700;
  color: var(--ps-green-deep);
  transition: transform .2s ease;
}
.faq-item[open] > summary::after { content: "−"; }
.faq-item > summary h3 {
  margin: 0; font-size: 1rem; color: var(--ps-ink);
  font-weight: 700;
}
.faq-item > p {
  margin: 0; padding: 0 18px 16px;
  color: var(--ps-ink); line-height: 1.55;
}

/* Wholesale steps + notes + form */
.wholesale-steps {
  counter-reset: step;
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.wholesale-steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 16px 14px 56px;
  background: var(--ps-green-soft);
  border-radius: 12px;
  color: var(--ps-ink);
  line-height: 1.5;
}
.wholesale-steps li::before {
  content: counter(step);
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--ps-green-deep); color: #fff;
  display: grid; place-items: center;
  font-weight: 700; font-size: .95rem;
}
.wholesale-notes { padding-left: 20px; line-height: 1.6; color: var(--ps-ink); }

.form-fieldset {
  border: 1px solid var(--ps-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0;
}
.form-fieldset legend {
  font-weight: 700; color: var(--ps-green-deep);
  padding: 0 6px; font-size: .92rem;
}
.form-check {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 4px; font-size: .95rem; color: var(--ps-ink);
  cursor: pointer;
}
.form-check input { accent-color: var(--ps-green-deep); }
.form-note {
  font-size: .85rem; color: var(--ps-ink-soft, #5a6b6a);
  margin-top: 10px; line-height: 1.5;
}

/* Legal pages */
.legal-content { max-width: 860px; margin: 0 auto; }
.legal-note {
  background: #fff7e0;
  border: 1px solid #f4dfa2;
  color: #715413;
  padding: 12px 16px;
  border-radius: 12px;
  margin: 0 auto 18px;
  max-width: 860px;
  font-size: .92rem;
}
.legal-doc {
  background: #fff;
  border: 1px solid var(--ps-line);
  border-radius: var(--ps-radius-lg, 18px);
  padding: 24px 22px;
  box-shadow: var(--ps-shadow-xs, 0 1px 2px rgba(0,0,0,.04));
  line-height: 1.65;
  color: var(--ps-ink);
}
.legal-doc h2 {
  font-size: 1.15rem; margin: 22px 0 8px;
  color: var(--ps-green-deep);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc ul { padding-left: 22px; margin: 6px 0 12px; }
.legal-doc li { margin: 4px 0; }
.legal-doc a { color: var(--ps-green-deep); text-decoration: underline; }

@media (max-width: 600px) {
  .page-hero { padding: 24px 14px 22px; }
  .about-section, .wholesale-section, .contact-section, .faq-category,
  .legal-doc { padding: 18px 14px; }
}

/* ---------- Order CTA in navbar ---------- */
.nav-btn.nav-cta,
.desktop-nav-buttons .nav-btn.nav-cta,
.mobile-nav .nav-btn.nav-cta {
  background: linear-gradient(135deg, #ff8c69, #ffb347) !important;
  color: #fff !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px -8px rgba(255, 140, 105, .65) !important;
}
.nav-btn.nav-cta:hover { transform: translateY(-1px); filter: brightness(1.04); }

/* ---------- Branded Loading Screen ---------- */
.ps-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(255, 200, 120, .55), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(80, 200, 180, .45), transparent 60%),
    linear-gradient(135deg, #fff8ee 0%, #fff3e0 40%, #e8f7f1 100%);
  background-size: 200% 200%;
  animation: psLoaderBg 8s ease-in-out infinite alternate;
  opacity: 1;
  transition: opacity .45s ease;
}
.ps-loader--out { opacity: 0; pointer-events: none; }
.ps-loader__inner {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 28px 32px; text-align: center;
}
.ps-loader__logo {
  height: 110px; width: auto; max-width: 78vw; object-fit: contain;
  animation: psLoaderFloat 2.4s ease-in-out infinite;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.08));
}
@media (min-width: 768px) { .ps-loader__logo { height: 140px; } }
.ps-loader__text {
  margin: 6px 0 0; font-weight: 700; color: #1e6b56;
  font-size: 1.05rem; letter-spacing: .2px;
}
.ps-loader__sub {
  margin: 0; font-size: .85rem; color: #6b7a72;
}
.ps-loader__dots { display: inline-flex; gap: 8px; }
.ps-loader__dots span {
  width: 10px; height: 10px; border-radius: 999px;
  background: linear-gradient(135deg, #ff8c69, #ffb347);
  animation: psLoaderDot 1.1s ease-in-out infinite;
}
.ps-loader__dots span:nth-child(2) { background: linear-gradient(135deg, #2bbf99, #6fd8b3); animation-delay: .15s; }
.ps-loader__dots span:nth-child(3) { background: linear-gradient(135deg, #f4c43b, #ffd86b); animation-delay: .3s; }

@keyframes psLoaderBg { 0% { background-position: 0% 0%; } 100% { background-position: 100% 100%; } }
@keyframes psLoaderFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes psLoaderDot { 0%,100% { transform: translateY(0); opacity: .55; } 50% { transform: translateY(-7px); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  .ps-loader, .ps-loader__logo, .ps-loader__dots span { animation: none !important; }
  .ps-loader { transition: opacity .15s linear; }
}

/* ---------- Mobile nav polish (overlay, blur, reduced motion) ---------- */
.mobile-nav { z-index: 1000; transition: transform .24s cubic-bezier(.4,0,.2,1); }
.nav-overlay {
  position: fixed; inset: 0;
  background: rgba(20, 40, 35, 0.38);
  backdrop-filter: blur(4px);
  opacity: 0; visibility: hidden;
  transition: opacity .24s ease, visibility .24s ease;
  z-index: 999;
}
.nav-overlay.active { opacity: 1; visibility: visible; }
.mobile-nav a, .mobile-nav button { -webkit-tap-highlight-color: transparent; }
.mobile-nav .nav-btn { transition: background-color .18s ease, color .18s ease, transform .12s ease; }
.mobile-nav .nav-btn:active { transform: scale(.98); }

@media (prefers-reduced-motion: reduce) {
  .mobile-nav, .nav-overlay, .nav-btn, .mobile-nav-close { transition: none !important; }
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
