/* ============================================================
   ShopZanta Design System
   Palette: #1F3D2B / #FAF7F0 / #C97C4A / #1A1A1A
   Fonts: Fraunces (headings) + Inter (body)
   ============================================================ */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; }

/* --- Tokens --- */
:root {
  --c-primary:   #1F3D2B;
  --c-bg:        #FAF7F0;
  --c-accent:    #C97C4A;
  --c-text:      #1A1A1A;
  --c-muted:     #7A756E;
  --c-border:    #E4DFD7;
  --c-white:     #FFFFFF;
  --c-accent-dk: #A8653C;
  --c-primary-lt:#2D5A3D;

  --f-head: 'Fraunces', Georgia, serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;

  --max-w: 1240px;
  --gap:   24px;
  --radius: 4px;
  --tr: 180ms ease;
}

/* --- Base --- */
html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-text);
  background: var(--c-bg);
}

h1, h2, h3, h4, h5 {
  font-family: var(--f-head);
  font-weight: 400;
  line-height: 1.2;
  color: var(--c-primary);
}

p { max-width: 72ch; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gap);
}

.section { padding-block: 72px; }
.section--sm { padding-block: 48px; }
.section--lg { padding-block: 96px; }


/* ============================================================
   NAVIGATION
   ============================================================ */
.site-header {
  background: var(--c-primary);
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-bg);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__logo:hover { opacity: 0.9; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__links a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(250,247,240,0.8);
  letter-spacing: 0.025em;
  text-transform: uppercase;
  transition: color var(--tr);
  white-space: nowrap;
}
.nav__links a:hover { color: var(--c-bg); }

.nav__cta {
  background: var(--c-accent) !important;
  color: var(--c-white) !important;
  padding: 8px 18px !important;
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  transition: background var(--tr) !important;
}
.nav__cta:hover { background: var(--c-accent-dk) !important; }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--c-bg);
  padding: 4px;
  line-height: 0;
}

/* Mobile nav */
.nav__mobile {
  display: none;
  background: var(--c-primary);
  padding: 8px var(--gap) 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav__mobile.is-open { display: block; }
.nav__mobile a {
  display: block;
  color: rgba(250,247,240,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition: color var(--tr);
}
.nav__mobile a:last-child { border-bottom: none; }
.nav__mobile a:hover { color: var(--c-bg); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--f-body);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background var(--tr), color var(--tr), border-color var(--tr);
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}

.btn--primary {
  background: var(--c-accent);
  color: var(--c-white);
  border-color: var(--c-accent);
}
.btn--primary:hover {
  background: var(--c-accent-dk);
  border-color: var(--c-accent-dk);
}

.btn--outline {
  background: transparent;
  color: var(--c-primary);
  border-color: var(--c-primary);
}
.btn--outline:hover {
  background: var(--c-primary);
  color: var(--c-bg);
}

.btn--ghost {
  background: transparent;
  color: var(--c-accent);
  border-color: transparent;
  padding-inline: 0;
}
.btn--ghost:hover { color: var(--c-accent-dk); }

.btn--full { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--c-primary);
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 96px var(--gap);
}

.hero__inner {
  max-width: 680px;
  margin-inline: auto;
}

.hero__label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 28px;
}

.hero__h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 400;
  color: var(--c-bg);
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero__sub {
  font-size: 1.125rem;
  color: rgba(250,247,240,0.70);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .hero { min-height: 44vh; padding: 72px var(--gap); }
}

/* ============================================================
   CATEGORY STRIP (pill tabs)
   ============================================================ */
.category-strip {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding-block: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-strip::-webkit-scrollbar { display: none; }

.category-strip__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: var(--gap);
  max-width: var(--max-w);
  margin-inline: auto;
  min-width: max-content;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 18px;
  border: 1.5px solid var(--c-border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-text);
  white-space: nowrap;
  transition: border-color var(--tr), background var(--tr), color var(--tr);
  text-decoration: none;
  cursor: pointer;
}
.cat-pill:hover,
.cat-pill.is-active {
  border-color: var(--c-primary);
  background: var(--c-primary);
  color: var(--c-bg);
}

/* ============================================================
   PRODUCT GRID + CARD
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px)  { .product-grid { grid-template-columns: 1fr; } }

.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .product-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .product-grid--3 { grid-template-columns: 1fr; } }

.card {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--tr), transform var(--tr);
}
.card:hover {
  box-shadow: 0 8px 28px rgba(31,61,43,0.10);
  transform: translateY(-2px);
}

.card__image-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--c-bg);
  flex-shrink: 0;
}
.card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--tr);
}
.card:hover .card__image-wrap img { transform: scale(1.03); }

/* Placeholder when product has no image */
.card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #eae5dc, #f5f0e8);
  color: var(--c-border);
}

.card__body {
  padding: 16px 16px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.card__category {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.card__name {
  font-family: var(--f-head);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-primary);
  line-height: 1.3;
}
.card__name a { text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 3px; }

.card__desc {
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.55;
  margin-top: 2px;
}

.card__footer {
  padding: 12px 16px 16px;
}

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.section-header h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
.section-header a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}
.section-header a:hover { color: var(--c-accent-dk); }

/* ============================================================
   TRUST / HOW IT WORKS
   ============================================================ */
.trust {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
}

.trust__heading {
  text-align: center;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 56px;
}

.trust__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
@media (max-width: 720px) {
  .trust__grid { grid-template-columns: 1fr; gap: 36px; }
}

.trust__item { text-align: center; }

.trust__icon {
  width: 48px;
  height: 48px;
  margin-inline: auto;
  margin-bottom: 20px;
  color: var(--c-primary);
}

.trust__title {
  font-family: var(--f-head);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--c-primary);
  margin-bottom: 10px;
}

.trust__text {
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.75;
  max-width: 28ch;
  margin-inline: auto;
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */
.product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-block: 64px;
}
@media (max-width: 900px) {
  .product-hero { grid-template-columns: 1fr; gap: 40px; }
}

/* Image gallery */
.gallery { display: flex; flex-direction: column; gap: 12px; }
.gallery__main {
  aspect-ratio: 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-white);
  border: 1px solid var(--c-border);
}
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }

.gallery__thumbs { display: flex; gap: 10px; }
.gallery__thumb {
  width: 72px;
  height: 72px;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  flex-shrink: 0;
  background: var(--c-white);
  transition: border-color var(--tr);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active,
.gallery__thumb:hover { border-color: var(--c-accent); }

/* Product info panel */
.product-info { display: flex; flex-direction: column; gap: 20px; }

.product-info__category {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.product-info h1 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 400;
  line-height: 1.15;
}

.product-info__tagline {
  font-size: 1.0625rem;
  color: var(--c-muted);
  line-height: 1.7;
}

.product-info__divider {
  border: none;
  border-top: 1px solid var(--c-border);
  margin: 4px 0;
}

.product-info__cta-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-info__merchant-note {
  font-size: 0.8125rem;
  color: var(--c-muted);
  text-align: center;
}
.product-info__merchant-note a {
  color: var(--c-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Product page content sections */
.product-section { padding-block: 56px; border-top: 1px solid var(--c-border); }
.product-section h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); margin-bottom: 24px; }
.product-section p { color: var(--c-text); line-height: 1.8; margin-bottom: 16px; }
.product-section p:last-child { margin-bottom: 0; }

/* Benefits list */
.benefits-list { display: flex; flex-direction: column; gap: 32px; }
.benefit-item { display: grid; grid-template-columns: 40px 1fr; gap: 20px; align-items: start; }
.benefit-item__num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-primary);
  color: var(--c-bg);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-head);
  font-size: 1rem;
  font-weight: 500;
  flex-shrink: 0;
}
.benefit-item h3 { font-size: 1.0625rem; font-weight: 500; margin-bottom: 8px; }
.benefit-item p { font-size: 0.9375rem; color: var(--c-muted); line-height: 1.75; margin: 0; }

/* Specs table */
.specs-table { width: 100%; border-collapse: collapse; }
.specs-table th,
.specs-table td {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--c-border);
}
.specs-table th { font-weight: 600; color: var(--c-primary); background: var(--c-bg); width: 35%; }
.specs-table td { color: var(--c-text); }

/* FAQ accordion (pure CSS) */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--c-border); }
.faq-item:first-child { border-top: 1px solid var(--c-border); }

.faq-item details { padding: 0; }
.faq-item summary {
  padding: 18px 0;
  font-family: var(--f-head);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--c-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--c-accent);
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--tr);
}
.faq-item details[open] summary::after {
  content: '-';
}
.faq-answer {
  padding-bottom: 20px;
  font-size: 0.9375rem;
  color: var(--c-muted);
  line-height: 1.8;
}
.faq-answer p { max-width: 72ch; }

/* Authorship line */
.authorship {
  font-size: 0.8125rem;
  color: var(--c-muted);
  border-top: 1px solid var(--c-border);
  padding-top: 16px;
  margin-top: 16px;
}

/* Buy Now sticky bar (mobile) */
.sticky-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  padding: 12px var(--gap);
  z-index: 150;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
@media (max-width: 900px) { .sticky-cta { display: block; } }

/* ============================================================
   SHOP PAGE
   ============================================================ */
.shop-header {
  background: var(--c-primary);
  color: var(--c-bg);
  padding-block: 48px;
}
.shop-header h1 {
  color: var(--c-bg);
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.shop-header p { color: rgba(250,247,240,0.75); max-width: 48ch; }

/* ============================================================
   STATIC PAGES
   ============================================================ */
.page-header {
  background: var(--c-primary);
  padding-block: 64px;
}
.page-header h1 {
  color: var(--c-bg);
  font-size: clamp(2rem, 4vw, 2.75rem);
}
.page-header p { color: rgba(250,247,240,0.75); max-width: 56ch; margin-top: 12px; }

.page-content { padding-block: 72px; }
.page-content h2 { font-size: 1.5rem; margin-top: 48px; margin-bottom: 16px; }
.page-content h2:first-child { margin-top: 0; }
.page-content p { color: var(--c-text); line-height: 1.8; margin-bottom: 16px; max-width: 72ch; }
.page-content ul { padding-left: 20px; list-style: disc; }
.page-content ul li { margin-bottom: 8px; line-height: 1.7; color: var(--c-text); }
.page-content a { color: var(--c-accent); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   EMPTY / PLACEHOLDER STATES
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 80px var(--gap);
  color: var(--c-muted);
}
.empty-state h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--c-primary); }
.empty-state p { font-size: 0.9375rem; margin-inline: auto; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-primary);
  color: rgba(250,247,240,0.72);
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
}
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

.footer__logo {
  display: block;
  font-family: var(--f-head);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--c-bg);
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  max-width: 34ch;
}

.footer__col-title {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-bg);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 0.875rem;
  color: rgba(250,247,240,0.65);
  transition: color var(--tr);
}
.footer__links a:hover { color: var(--c-bg); }

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
}
.footer__bottom a {
  color: rgba(250,247,240,0.55);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--tr);
}
.footer__bottom a:hover { color: var(--c-bg); }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }

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

.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--c-muted);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--c-muted); text-decoration: underline; text-underline-offset: 2px; }
.breadcrumb a:hover { color: var(--c-accent); }
.breadcrumb span { color: var(--c-border); }
