/* ==========================================================================
   TasteLokal — Extras: How It Works + Sticky ATC + theme polish (v2.1)
   ========================================================================== */

/* ===== HOW IT WORKS ===== */
.how-section {
  background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%);
  padding: 56px 0;
}
.how-eyebrow {
  display: inline-block;
  background: var(--teal-bg);
  color: var(--teal-dark);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.how-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
.how-card {
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 26px 22px;
  position: relative;
  transition: transform .2s, box-shadow .2s;
}
.how-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px -10px rgba(13, 33, 73, 0.15);
  border-color: var(--border);
}
.how-num {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 32px;
  font-weight: 900;
  color: var(--bg-light);
  letter-spacing: -0.04em;
  font-family: 'Poppins', sans-serif;
  line-height: 1;
}
.how-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--teal-bg), #fef3c7);
  color: var(--teal-dark);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  border: 1px solid rgba(13, 148, 136, 0.15);
}
.how-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.how-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.how-arrow {
  display: none;
  align-items: center; justify-content: center;
  color: var(--teal);
  opacity: 0.5;
}
.how-cta { text-align: center; }
.how-cta .btn-lg {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: #fff; border: 2px solid var(--teal);
  padding: 13px 26px;
  font-size: 14px; font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(13, 148, 136, 0.28);
  transition: all .15s;
}
.how-cta .btn-lg:hover { background: var(--teal-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(13, 148, 136, 0.35); color: #fff; }

@media (min-width: 768px) {
  .how-section { padding: 80px 0; }
  .how-grid { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
  .how-arrow { display: flex; }
}

/* ===== STICKY MOBILE ATC ===== */
.sticky-atc {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 10px 14px 14px;
  z-index: 95;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.08);
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.sticky-atc.visible { transform: translateY(0); }
.satc-info {
  display: flex; flex-direction: column; gap: 2px; min-width: 0;
}
.satc-name {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.satc-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.satc-price del { color: var(--text-muted); font-size: 13px; font-weight: 400; margin-right: 6px; }
.satc-btn {
  background: var(--teal);
  color: #fff !important;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 10px;
  border: 0;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.35);
  cursor: pointer;
  white-space: nowrap;
}
.satc-btn:hover { background: var(--teal-dark); }

/* Add bottom padding to body on PDP so sticky bar doesn't cover content */
body.single-product { padding-bottom: 72px; }

@media (min-width: 1024px) {
  .sticky-atc { display: none !important; }
  body.single-product { padding-bottom: 0; }
}

/* ===== Footer "Coming Soon" links ===== */
.footer-links a.soon { color: rgba(255,255,255,0.4); cursor: default; pointer-events: none; }
.footer-links a.soon:hover { color: rgba(255,255,255,0.4); }

/* ===== Testimonial star fix ===== */
.t-rating { display: inline-flex; align-items: center; gap: 2px; color: #f59e0b; }
.t-rating svg { display: inline-block; }

/* ===== Hide WP block library styles bleed (M9 fix) ===== */
.entry-content > p:empty { display: none; }

/* ==========================================================================
   MOBILE BOTTOM NAV — visible <1024px, app-style
   ========================================================================== */
.bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  z-index: 90;
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom)) 4px;
  box-shadow: 0 -2px 16px rgba(13, 33, 73, 0.06);
  transition: transform 0.28s cubic-bezier(.4,0,.2,1);
}

/* Hide on desktop */
@media (min-width: 1024px) {
  .bottom-nav { display: none !important; }
}

/* When sticky-ATC is visible, lift bottom nav slightly so they don't stack ugly */
body.single-product .bottom-nav {
  display: none;
}

/* Each item */
.bn-item {
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  color: var(--text-muted);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  padding: 6px 4px;
  border-radius: 10px;
  position: relative;
  font-family: inherit;
  transition: color .15s, background .15s, transform .15s;
}
.bn-item:hover, .bn-item:active { color: var(--teal); }
.bn-item.active {
  color: var(--teal);
}
.bn-item.active::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 3px;
  background: var(--teal);
  border-radius: 0 0 4px 4px;
}

.bn-icon {
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  line-height: 1;
}

/* Center search button — circled, raised */
.bn-search-btn .bn-icon-circle {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(13, 148, 136, 0.42);
  margin-top: -22px;
  border: 4px solid #fff;
  transition: transform .15s;
}
.bn-search-btn:active .bn-icon-circle { transform: scale(0.94); }
.bn-search-btn { padding-top: 4px; }

.bn-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2px;
  line-height: 1;
}

/* Cart badge */
.bn-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--orange);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  line-height: 1;
  border: 2px solid #fff;
  letter-spacing: 0;
}

/* Body padding so content isn't hidden under bottom nav */
@media (max-width: 1023.98px) {
  body { padding-bottom: 68px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  /* WhatsApp float should sit above the bottom nav */
  .whatsapp-float { bottom: 80px; bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* When bottom nav hidden (e.g. on PDP), restore padding */
body.single-product {
  padding-bottom: 72px;
}

/* Hide bottom nav when cart drawer is open (avoid double overlay) */
body.cd-open .bottom-nav {
  transform: translateY(110%);
  pointer-events: none;
}

/* Hide bottom nav when mobile menu drawer is open */
body.menu-open .bottom-nav {
  transform: translateY(110%);
  pointer-events: none;
}

/* ==========================================================================
   404 PAGE
   ========================================================================== */
.tl-404-page { background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); padding: 40px 0 60px; }
.tl-404 { text-align: center; max-width: 640px; margin: 0 auto; }
.tl-404-number {
  font-size: 100px; font-weight: 900;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 8px;
}
.tl-404 h1 { font-size: 28px; color: var(--navy); margin: 0 0 12px; }
.tl-404 p { color: var(--text-muted); font-size: 15px; margin: 0 0 24px; }
.tl-404-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.tl-404-search { margin-bottom: 40px; }
.tl-404-search p { font-size: 13px; margin-bottom: 12px; color: var(--text-muted); }
.tl-404-search form {
  display: flex; max-width: 480px; margin: 0 auto;
  background: #fff; border-radius: 12px; padding: 4px;
  box-shadow: 0 8px 20px rgba(13,33,73,0.08);
}
.tl-404-search input { flex: 1; border: 0; outline: none; padding: 12px 16px; font-size: 14px; }
.tl-404-search button {
  background: var(--teal); color: #fff; border: 0;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; cursor: pointer;
}
.tl-404-suggest { text-align: left; margin-top: 40px; }
.tl-404-suggest h3 { font-size: 18px; color: var(--navy); text-align: center; margin: 0 0 18px; }

@media (min-width: 768px) {
  .tl-404-number { font-size: 160px; }
  .tl-404 h1 { font-size: 38px; }
}

/* ==========================================================================
   ABOUT PAGE
   ========================================================================== */
.tla-hero { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); padding: 56px 0 40px; text-align: center; }
.tla-eyebrow {
  display: inline-block;
  background: var(--teal-bg); color: var(--teal-dark);
  font-size: 10px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; padding: 5px 12px;
  border-radius: 999px; margin-bottom: 16px;
}
.tla-hero h1 {
  font-size: 32px; font-weight: 800; color: var(--navy);
  margin: 0 0 14px; letter-spacing: -0.02em; line-height: 1.1;
}
.tla-hero h1 .accent { color: var(--teal); }
.tla-hero p { font-size: 15px; color: var(--text-muted); max-width: 580px; margin: 0 auto; line-height: 1.6; }

.tla-mission { padding: 56px 0; }
.tla-mission-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
.tla-mission h2 { font-size: 24px; color: var(--navy); margin: 0 0 16px; }
.tla-mission p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.tla-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.tla-stat {
  background: var(--bg-soft); padding: 20px; border-radius: 14px; text-align: center;
  border: 1px solid var(--border-light);
}
.tla-stat strong { display: block; font-size: 28px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.tla-stat span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; }

.tla-values { padding: 56px 0; background: var(--bg-soft); }
.tla-section-title { font-size: 26px; color: var(--navy); text-align: center; margin: 0 0 32px; }
.tla-values-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.tla-value {
  background: #fff; padding: 24px; border-radius: 14px; border: 1px solid var(--border-light);
}
.tlv-icon {
  width: 48px; height: 48px;
  background: var(--teal-bg); color: var(--teal-dark);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.tla-value h3 { font-size: 17px; color: var(--navy); margin: 0 0 8px; }
.tla-value p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin: 0; }

.tla-roadmap { padding: 56px 0; }
.tla-roadmap-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin: 0 auto; }
.tla-roadmap-list li {
  background: #fff; padding: 18px 22px; border-radius: 14px;
  border: 1px solid var(--border-light); display: grid;
  grid-template-columns: 80px 1fr; gap: 14px; align-items: start;
}
.tla-roadmap-list li.done { border-left: 3px solid var(--green); }
.tla-roadmap-list span {
  background: var(--bg-soft); color: var(--text-muted); font-size: 10px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
  height: fit-content;
}
.tla-roadmap-list li.done span { background: rgba(39,174,96,0.1); color: var(--green); }
.tla-roadmap-list strong { display: block; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.tla-roadmap-list p { margin: 0; font-size: 12px; color: var(--text-muted); }

.tla-cta { padding: 56px 0; background: linear-gradient(135deg, var(--navy) 0%, var(--teal-dark) 100%); color: #fff; text-align: center; }
.tla-cta h2 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.tla-cta p { color: rgba(255,255,255,0.85); margin: 0 0 22px; }
.tla-cta-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.tla-cta-actions .btn-ghost { background: rgba(255,255,255,0.1); color: #fff; border-color: rgba(255,255,255,0.3); }
.tla-cta-actions .btn-ghost:hover { background: rgba(255,255,255,0.2); color: #fff; }

@media (min-width: 768px) {
  .tla-hero h1 { font-size: 44px; }
  .tla-mission-grid { grid-template-columns: 1.4fr 1fr; align-items: center; }
  .tla-values-grid { grid-template-columns: repeat(3, 1fr); }
}
