/* Shared section building blocks used by both homepages (and later pages) */

.section--alt { background: var(--bg-elev); }
.tabs { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

/* ---------- FAQ accordion (native <details>) ---------- */
.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: var(--fs-lg);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 100% no-repeat;
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--sp-5); color: var(--ink-muted); max-width: 44rem; }
.faq details a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Newsletter form ---------- */
.join-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-2);
  width: 100%;
  max-width: 30rem;
}
.join-form .field { border-radius: var(--btn-radius); }
.join-form__msg { grid-column: 1 / -1; font-size: var(--fs-sm); min-height: 1.4em; }

/* ---------- Marquee ---------- */
.marquee {
  --gap: 2.5rem;
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
}
.marquee__track {
  flex: none;
  display: flex;
  align-items: center;
  gap: var(--gap);
  min-width: 100%;
  animation: marquee 28s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-100% - var(--gap))); } }

.load-error { color: var(--ink-muted); padding: var(--sp-5) 0; }

/* ---------- Inner page header ---------- */
.page-head { padding-block: var(--sp-6) var(--sp-5); }
.page-head__title { font-size: var(--fs-3xl); }
.page-head__title em { font-style: italic; color: var(--lime); }
.page-head__sub { color: var(--ink-muted); margin-top: var(--sp-2); max-width: 38rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); color: var(--ink-muted); margin-bottom: var(--sp-4); }
.crumbs a:hover { color: var(--ink); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--ink-faint); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--mobile-nav-h) + 16px + env(safe-area-inset-bottom));
  z-index: var(--z-toast);
  transform: translate(-50%, 20px);
  opacity: 0;
  padding: 12px 18px;
  border-radius: var(--radius-pill);
  background: var(--lime);
  color: var(--black);
  font-weight: 700;
  font-size: var(--fs-sm);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  pointer-events: none;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.toast--error { background: var(--danger); color: #fff; }
@media (min-width: 1024px) { .toast { bottom: 24px; } }

/* ---------- Form fields with labels ---------- */
.form-grid { display: grid; gap: var(--sp-4); }
.form-row { display: grid; gap: 6px; }
.form-row label { font-size: var(--fs-sm); font-weight: 700; }
.form-row .hint { font-size: var(--fs-xs); color: var(--ink-muted); }
.form-row .err { font-size: var(--fs-xs); color: #ff8a8e; min-height: 0; }
.form-row--2 { grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
textarea.field { min-height: 92px; padding: 0.8rem 1rem; resize: vertical; line-height: 1.5; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.field[aria-invalid="true"] { border-color: #ff8a8e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Status timeline (track order / account) ---------- */
.timeline { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: var(--sp-3); padding-bottom: var(--sp-5); }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .dot-step { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; background: var(--bg); }
.timeline .dot-step .icon { width: 14px; height: 14px; }
.timeline li.is-done .dot-step { background: var(--lime); border-color: var(--lime); color: var(--black); }
.timeline li.is-done::before { background: var(--lime); }
.timeline li.is-current .dot-step { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(214, 245, 106, 0.18); }
.timeline strong { display: block; }
.timeline small { color: var(--ink-muted); }

.status-badge { display: inline-block; padding: 4px 10px; border-radius: var(--radius-pill); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--bg-soft); color: var(--ink); }
.status-badge--pending { background: #3a3215; color: #ffd866; }
.status-badge--confirmed, .status-badge--packed { background: #15283a; color: #7cc4ff; }
.status-badge--dispatched { background: #2b1a3a; color: #d3a6ff; }
.status-badge--delivered { background: #183a22; color: #7be39c; }
.status-badge--cancelled, .status-badge--returned { background: #3a1818; color: #ff8a8e; }

.lime-em { font-style: italic; color: var(--lime); }
