/* ── Reset & Variables ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cherry:       #8B0000;
  --cherry-dark:  #6b0000;
  --cream:        #FFFDF7;
  --white:        #ffffff;
  --border-tint:  #FEE2E2;
  --blush:        #FEF2F2;
  --text-dark:    #111827;
  --text-medium:  #1F2937;
  --text-gray:    #4B5563;
  --text-body:    #374151;
  --text-muted:   #9CA3AF;
  --border:       #E5E7EB;
  --border-nav:   #F3F4F6;
  --hero-bg:      #8b8b7c;
  --font-serif:   'Playfair Display', Georgia, serif;
  --font-sans:    'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream); color: var(--text-dark); line-height: 1.65; }
img  { display: block; max-width: 100%; height: auto; }
a    { color: inherit; }

.container { width: 90%; max-width: 1160px; margin-inline: auto; }

/* ── Eyebrow label ───────────────────────────── */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--cherry);
  margin-bottom: .65rem;
}

/* ── Announcement Bar ────────────────────────── */
.announcement-bar {
  background: var(--cherry);
  color: rgba(255, 255, 255, .85);
  text-align: center;
  font-size: .78rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: .55rem 1rem;
}

/* ── Buttons ─────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 2rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: .02em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background .18s;
}

.btn-dark {
  background: var(--cherry);
  color: var(--white);
}
.btn-dark:hover { background: var(--cherry-dark); }

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text-gray); }

.btn-full { width: 100%; text-align: center; }

/* Add-to-cart override — product page spec */
.btn-full.btn-dark {
  font-weight: 700;
  font-size: 1rem;
  border-radius: 0.75rem;
  padding: 1rem 2rem;
}

/* ── Header ──────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: #FFFDF7;
  border-bottom: 1px solid var(--border-nav);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 0;
  position: relative;
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
  text-decoration: none;
  white-space: nowrap;
  color: var(--cherry);
  transition: color .15s;
}
.logo:hover { color: var(--cherry-dark); }

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  white-space: nowrap;
}

.main-nav a {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  color: var(--text-medium);
  transition: color .15s;
}
.main-nav a:hover { color: var(--cherry); }

.nav-cta {
  background: var(--cherry) !important;
  color: var(--white) !important;
  padding: .5rem clamp(.8rem, 1.2vw, 1.4rem);
  border-radius: 999px !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
  transition: background .18s !important;
}
.nav-cta:hover { background: var(--cherry-dark) !important; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-medium);
}

/* ── Hero ────────────────────────────────────── */
.hero {
  background: #ffffff;
  padding: 2rem 0;
}

.hero-inner {
  display: block;
  text-align: center;
}

.hero-text {
  max-width: 720px;
  margin-inline: auto;
}

.hero-images {
  display: grid;
  grid-template-columns: 1fr 1.84fr 1fr;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
  align-items: center;
}

.hero-img-wrap {
  overflow: hidden;
  border-radius: 0.75rem;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-img-side   { aspect-ratio: 1 / 1; }
.hero-img-center { aspect-ratio: 1.84 / 1; }

.hero-img-mobile { display: none; }

.hero-img-mobile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 0.75rem;
  display: block;
}

.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.92rem, 4.46vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  color: #4B5563;
  margin-bottom: 1.2rem;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 1.22rem;
  font-weight: 300;
  color: var(--text-gray);
  max-width: 440px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero .btn {
  font-size: 0.936rem;
}

.hero-btns {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.hero-image img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* ── Features ────────────────────────────────── */
#secret, #story, #product { scroll-margin-top: 70px; }

.features {
  background: #FFFDF7;
  padding: 2rem 0;
  text-align: center;
}

.features > .container > h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.92rem, 4.46vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cherry);
  margin-bottom: .8rem;
  max-width: 720px;
  margin-inline: auto;
}

.features-rule {
  width: 80px;
  height: 3px;
  background: var(--cherry);
  margin: 0 auto 3.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: left;
}

.feature-card {
  padding: 2.25rem 2rem;
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  background: var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.feature-icon {
  width: 3.92rem;
  height: 3.92rem;
  background: var(--blush);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.275rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: .65rem;
}

.feature-card p {
  font-family: var(--font-sans);
  font-size: 0.956rem;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.75;
}

/* ── Engineered Section ──────────────────────── */
.engineered-section {
  background: var(--white);
  padding: 2rem 0;
}

.engineered-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.engineered-image-wrap {
  position: relative;
}

.engineered-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 1.2rem;
  display: block;
}

.engineered-quote {
  position: absolute;
  bottom: -1.5rem;
  left: -1rem;
  background: var(--cherry);
  color: var(--white);
  padding: 1.4rem 1.8rem;
  border-radius: 0.75rem;
  max-width: 320px;
}

.engineered-quote p {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.engineered-quote cite {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
}

.engineered-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.92rem, 4.46vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cherry);
  margin-bottom: 1rem;
}

.engineered-text > p {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.engineered-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.engineered-list li {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.55;
  padding-left: 1.8rem;
  position: relative;
}

.engineered-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--cherry);
  font-weight: 700;
}

/* ── Testimonial Bar ─────────────────────────── */
.testimonial-bar {
  background: var(--cherry);
  color: var(--white);
  padding: 3rem 0;
  text-align: center;
  box-shadow: 0 8px 32px rgba(139, 0, 0, 0.35);
}

.testimonial-bar blockquote {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-style: italic;
  font-weight: 400;
  color: var(--white);
}

.testimonial-bar cite {
  display: block;
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .75);
  margin-top: .65rem;
  letter-spacing: .06em;
}

/* ── Product Section ─────────────────────────── */
.product-section {
  padding: 2rem 0;
  background-color: #FFFDF7;
  background-image:
    linear-gradient(45deg, rgba(139, 0, 0, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(139, 0, 0, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(139, 0, 0, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(139, 0, 0, 0.05) 75%);
  background-size: 36px 36px;
  background-position: 0 0, 0 18px, 18px -18px, -18px 0px;
}

.product-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  background: var(--white);
  border-radius: 1.5rem;
  padding: 3rem;
}

/* Gallery */
.gallery-main img {
  width: 100%;
  height: auto;
  border-radius: 1.2rem;
  margin-bottom: 1rem;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .5rem;
}

.gallery-thumbs .thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid var(--border);
  transition: border-color .15s;
}
.gallery-thumbs .thumb.active,
.gallery-thumbs .thumb:hover { border-color: var(--cherry); }

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.product-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  line-height: 1.2;
  font-weight: 700;
  color: var(--cherry);
}

.product-title-sub {
  font-size: 0.6em;
  font-weight: 400;
  font-style: italic;
}

.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.product-price {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.product-taxes {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.product-desc {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--text-gray);
  line-height: 1.75;
}

.product-qty-label {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: .85rem;
  margin-bottom: 1.25rem;
}

.qty-row { display: flex; }

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
}

.qty-btn {
  background: none;
  border: none;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: background .15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qty-btn:hover { background: var(--blush); }

#qty-display {
  width: 2.6rem;
  text-align: center;
  font-size: .93rem;
  font-weight: 600;
  line-height: 2.6rem;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.product-meta {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── Story Section ───────────────────────────── */
.story-section {
  background: var(--white);
  padding: 6.5rem 0;
}

.story-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.story-text .eyebrow {
  font-size: 1.1rem;
  color: var(--cherry);
}

.story-text h2 {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 2.8vw, 3.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--cherry);
  margin-bottom: 1.25rem;
}

.story-text p {
  font-family: var(--font-sans);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--text-gray);
  line-height: 1.85;
  margin-bottom: 1rem;
}
.story-text p:last-child { margin-bottom: 0; }

.story-image img {
  border-radius: 1.6rem;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ── Cart Toast ──────────────────────────────── */
.cart-toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  background: var(--cherry);
  color: var(--white);
  padding: 1rem 1.4rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: .9rem;
  box-shadow: 0 6px 24px rgba(139, 0, 0, 0.35);
  animation: toast-in .22s ease;
}

@keyframes toast-in {
  from { transform: translateY(.75rem); opacity: 0; }
  to   { transform: translateY(0);      opacity: 1; }
}

#cart-toast-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .6);
  cursor: pointer;
  font-size: .85rem;
  line-height: 1;
  padding: 0;
}
#cart-toast-close:hover { color: var(--white); }

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: #0d1117;
  padding: 1.75rem 0;
}

.footer-inner {
  text-align: center;
}

.footer-copy {
  font-family: var(--font-sans);
  font-size: .78rem;
  color: rgba(255, 255, 255, .45);
  letter-spacing: .03em;
}

.footer-copy a {
  color: rgba(255, 255, 255, .45);
  text-decoration: none;
  transition: color .15s;
}
.footer-copy a:hover { color: rgba(255, 255, 255, .8); }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner,
  .product-inner,
  .engineered-inner,
  .story-inner   { grid-template-columns: 1fr; gap: 2.5rem; }
  .features-grid { grid-template-columns: 1fr; }
  .story-image   { order: -1; }
  .main-nav      { display: none; }
  .nav-toggle    { display: block; }

  .product-info  { padding: 2.4rem 2rem; }

  .engineered-quote {
    position: static;
    margin-top: 1rem;
    max-width: 100%;
    border-radius: 0.75rem;
  }

  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--border-nav);
    padding: 1.25rem 5%;
    gap: 1.1rem;
    z-index: 300;
  }
}

@media (max-width: 600px) {
  .story-section     { padding: 4rem 0; }
  .gallery-thumbs    { grid-template-columns: repeat(6, 1fr); }
  .product-inner     { padding: 1.25rem; }

  .hero-images     { display: none; }
  .hero-img-mobile { display: block; margin-bottom: 2rem; }

  .hero-btns {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-btns .btn { width: 100%; text-align: center; }

  .hero h1                          { font-size: 2.04rem; }
  .features > .container > h2,
  .engineered-text h2               { font-size: 1.96rem; }
  .product-title                    { font-size: 1.4rem; }
}
