/* =========================================================
   WESTRUSTLER — Retro E-commerce Stylesheet
   ========================================================= */

:root {
  --cream: #f6e9c9;
  --cream-2: #fff8e8;
  --mustard: #e0a53a;
  --mustard-dark: #c98a1f;
  --burnt-orange: #c1440e;
  --burnt-orange-dark: #9c360b;
  --brown: #3b2a20;
  --brown-soft: #6b4f3b;
  --teal: #2a6f77;
  --teal-dark: #1e4f56;
  --cream-line: rgba(59, 42, 32, 0.15);
  --shadow-hard: 6px 6px 0 var(--brown);
  --shadow-hard-sm: 4px 4px 0 var(--brown);
  --radius: 14px;
  --font-display: "Alfa Slab One", "Georgia", serif;
  --font-body: "Space Grotesk", "Trebuchet MS", sans-serif;
  --font-mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background-color: var(--cream);
  background-image:
    radial-gradient(var(--cream-line) 1.2px, transparent 1.2px);
  background-size: 18px 18px;
  color: var(--brown);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--brown);
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Utility ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  padding: 14px 28px;
  border-radius: 999px;
  border: 3px solid var(--brown);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-hard-sm);
  background: var(--mustard);
  color: var(--brown);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--brown); }
.btn:active { transform: translate(0,0); box-shadow: 2px 2px 0 var(--brown); }
.btn-primary { background: var(--burnt-orange); color: var(--cream-2); }
.btn-outline { background: transparent; }
.btn-block { width: 100%; justify-content: center; }

.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--teal);
  color: var(--cream-2);
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--brown);
}

.section { padding: 80px 0; }
.section-title-wrap { text-align: center; max-width: 620px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--burnt-orange-dark);
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.section-sub { color: var(--brown-soft); }

/* ---------- Top ticker ---------- */
.ticker {
  background: var(--brown);
  color: var(--cream-2);
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 3px solid var(--brown);
}
.ticker__track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 22s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding-top: 8px;
  padding-bottom: 8px;
}
.ticker__track span { margin-right: 60px; }
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; padding-left: 24px; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-2);
  border-bottom: 3px solid var(--brown);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}
.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brown);
}
.logo__mark {
  width: 38px;
  height: 38px;
  background: var(--burnt-orange);
  border: 3px solid var(--brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cream-2);
  font-size: 1rem;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav__links a {
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 3px;
  background: var(--burnt-orange);
  transition: width 0.2s ease;
}
.nav__links a:hover::after,
.nav__links a[aria-current="page"]::after { width: 100%; }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__cart {
  border: 3px solid var(--brown);
  border-radius: 999px;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--mustard);
  font-size: 1.1rem;
}
.nav__toggle {
  display: none;
  border: 3px solid var(--brown);
  background: var(--cream);
  border-radius: 8px;
  width: 44px; height: 40px;
  font-size: 1.1rem;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream-2);
    flex-direction: column;
    gap: 0;
    border-bottom: 3px solid var(--brown);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { display: block; padding: 14px 24px; border-top: 1px solid var(--cream-line); }
  .nav__links a::after { display: none; }
  .nav__toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 70px 0 40px;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.hero__title .accent { color: var(--burnt-orange); }
.hero__desc { max-width: 480px; color: var(--brown-soft); font-size: 1.05rem; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 28px; }

.hero__visual {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 420px;
  margin: 0 auto;
  border-radius: 50%;
  background: repeating-conic-gradient(var(--mustard) 0deg 18deg, var(--cream-2) 18deg 36deg);
  border: 4px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero__visual-inner {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: var(--burnt-orange);
  border: 4px solid var(--brown);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  color: var(--cream-2);
  font-size: 3rem;
  text-align: center;
}
.hero__starburst {
  position: absolute;
  top: -10px; right: -10px;
  width: 110px; height: 110px;
  background: var(--teal);
  color: var(--cream-2);
  border: 3px solid var(--brown);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  transform: rotate(12deg);
  line-height: 1.2;
}

.trust-bar {
  border-top: 3px solid var(--brown);
  border-bottom: 3px solid var(--brown);
  background: var(--cream-2);
}
.trust-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}
.trust-bar__item {
  padding: 20px 12px;
  border-right: 1px solid var(--cream-line);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.trust-bar__item:last-child { border-right: none; }
.trust-bar__item span { display: block; font-size: 1.6rem; margin-bottom: 6px; }
@media (max-width: 700px) {
  .trust-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .trust-bar__item:nth-child(2) { border-right: none; }
}

/* ---------- Categories ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
@media (max-width: 900px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
.cat-card {
  background: var(--cream-2);
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  padding: 26px 18px;
  text-align: center;
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.15s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card__icon {
  width: 64px; height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--mustard);
  border: 3px solid var(--brown);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
}
.cat-card h3 { font-size: 1rem; margin-bottom: 4px; }
.cat-card p { font-size: 0.85rem; color: var(--brown-soft); margin: 0; }

/* ---------- Products ---------- */
.section--alt {
  background: var(--cream-2);
  border-top: 3px solid var(--brown);
  border-bottom: 3px solid var(--brown);
}
.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 980px) { .prod-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .prod-grid { grid-template-columns: 1fr; } }

.prod-card {
  background: var(--cream);
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-hard-sm);
  display: flex;
  flex-direction: column;
}
.prod-card__media {
  aspect-ratio: 4/3;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem;
  border-bottom: 3px solid var(--brown);
}
.prod-card__badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--burnt-orange);
  color: var(--cream-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  border: 2px solid var(--brown);
  transform: rotate(-6deg);
}
.prod-card__body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.prod-card__cat { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-dark); }
.prod-card h3 { font-size: 1.05rem; margin: 0; }
.prod-card__price { display: flex; align-items: center; gap: 8px; margin-top: auto; }
.prod-card__price .now { font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; color: var(--burnt-orange-dark); }
.prod-card__price .was { font-family: var(--font-mono); font-size: 0.85rem; text-decoration: line-through; color: var(--brown-soft); }
.prod-card__cta {
  margin-top: 10px;
  width: 100%;
  border: 3px solid var(--brown);
  background: var(--mustard);
  border-radius: 999px;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.prod-card__cta:hover { background: var(--burnt-orange); color: var(--cream-2); }

.center-cta { text-align: center; margin-top: 42px; }

/* swatch backgrounds for placeholder product media */
.swatch-1 { background: #f0c988; }
.swatch-2 { background: #e6a37c; }
.swatch-3 { background: #a9cbc7; }
.swatch-4 { background: #d8b7d1; }
.swatch-5 { background: #c9d6a3; }
.swatch-6 { background: #f2b6a0; }
.swatch-7 { background: #f6d98b; }
.swatch-8 { background: #b8c9e6; }

/* ---------- Testimonials ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }
.testi-card {
  background: var(--cream-2);
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-hard-sm);
}
.testi-card__stars { color: var(--burnt-orange-dark); font-size: 0.95rem; margin-bottom: 10px; letter-spacing: 2px; }
.testi-card__name { font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; margin-top: 14px; }
.testi-card__role { font-family: var(--font-mono); font-size: 0.75rem; color: var(--brown-soft); }

/* ---------- Newsletter ---------- */
.newsletter {
  background: var(--brown);
  color: var(--cream-2);
}
.newsletter__box {
  border: 3px dashed var(--cream-2);
  border-radius: var(--radius);
  padding: 46px 32px;
  text-align: center;
}
.newsletter h2 { color: var(--cream-2); }
.newsletter p { color: #d9c8b6; }
.newsletter__form {
  display: flex;
  gap: 10px;
  max-width: 460px;
  margin: 24px auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter__form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 999px;
  border: 3px solid var(--cream-2);
  background: transparent;
  color: var(--cream-2);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter__form input::placeholder { color: #c8b6a2; }
.newsletter__note { font-size: 0.75rem; color: #c8b6a2; margin-top: 14px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--cream-2);
  border-top: 3px solid var(--brown);
  padding: 60px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--burnt-orange-dark);
  margin-bottom: 16px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 10px; font-size: 0.92rem; }
.footer-grid li a:hover { color: var(--burnt-orange-dark); }
.footer-about p { color: var(--brown-soft); font-size: 0.92rem; }
.footer-social { display: flex; gap: 10px; margin-top: 14px; }
.footer-social a {
  width: 38px; height: 38px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--mustard);
}
.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.footer-payments span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  border: 2px solid var(--brown);
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--cream);
}
.footer-bottom {
  border-top: 1px solid var(--cream-line);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--brown-soft);
}
.footer-bottom a:hover { color: var(--burnt-orange-dark); }

/* ---------- Inner pages ---------- */
.page-hero {
  padding: 56px 0 40px;
  border-bottom: 3px solid var(--brown);
  background: var(--cream-2);
}
.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brown-soft);
  margin-bottom: 14px;
}
.breadcrumb a:hover { color: var(--burnt-orange-dark); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.prose { max-width: 820px; margin: 0 auto; padding: 60px 0; }
.prose h2 { margin-top: 1.6em; font-size: 1.4rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.2em; }
.prose p, .prose li { color: var(--brown-soft); font-size: 0.98rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--brown); }
.updated-note {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--mustard);
  border: 2px solid var(--brown);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 20px;
}

/* FAQ accordion */
.faq-list { max-width: 820px; margin: 0 auto; padding: 60px 0; }
.faq-item {
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  margin-bottom: 16px;
  background: var(--cream-2);
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  text-align: left;
  padding: 18px 22px;
  background: transparent;
  border: none;
  font-family: var(--font-display);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--brown);
}
.faq-item__icon { font-family: var(--font-mono); font-size: 1.2rem; flex-shrink: 0; }
.faq-item__a {
  max-height: 0;
  overflow: hidden;
  padding: 0 22px;
  color: var(--brown-soft);
  transition: max-height 0.25s ease, padding 0.25s ease;
}
.faq-item.is-open .faq-item__a {
  max-height: 300px;
  padding: 0 22px 20px;
}
.faq-item.is-open .faq-item__icon { transform: rotate(45deg); }

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 60px 0;
  align-items: start;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  background: var(--cream-2);
  border: 3px solid var(--brown);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-hard-sm);
  margin-bottom: 18px;
}
.contact-card h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-card p { color: var(--brown-soft); margin: 0; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 3px solid var(--brown);
  background: var(--cream-2);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--brown);
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* Table styling for policy pages */
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td {
  border: 2px solid var(--brown);
  padding: 10px 12px;
  text-align: left;
  font-size: 0.92rem;
}
.prose th { background: var(--mustard); font-family: var(--font-mono); text-transform: uppercase; font-size: 0.75rem; }

/* skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--brown);
  color: var(--cream-2);
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 10px; top: 10px; }
