/* ================================================================
   Fiddle and Grace — Shared Styles (v2 Unified)
   ================================================================ */

:root {
  color-scheme: only light;
  --cream:  #faf5ef;
  --linen:  #f3ebe0;
  --bark:   #4a3526;
  --bark-80: rgba(74,53,38,.80);
  --bark-60: rgba(74,53,38,.60);
  --bark-30: rgba(74,53,38,.30);
  --bark-12: rgba(74,53,38,.12);
  --bark-06: rgba(74,53,38,.06);
  --white:  #ffffff;
  --accent:      #b07a53;
  --accent-soft:  rgba(176,122,83,.15);
  --accent-glow:  rgba(176,122,83,.10);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'Outfit', system-ui, sans-serif;
  --radius:  18px;
  --max-w:   1120px;
  --shadow:  0 8px 30px rgba(74,53,38,.08);
}

*,*::before,*::after { box-sizing: border-box; margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--bark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(var(--max-w), 92vw); margin: 0 auto; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.7rem;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 600;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 2.6vw + 1rem, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2vw + 0.8rem, 2.4rem); }
h3 { font-size: 1.05rem; }

.lead {
  font-size: 0.98rem;
  color: var(--bark-60);
  line-height: 1.6;
  max-width: 560px;
}

/* ----------------------------------------------------------------
   Header
   ---------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250,245,239,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--bark-12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bark-12);
  background: var(--white);
}
.brand-name { font-family: var(--font-display); font-size: 1.25rem; }
.brand-sub  { font-size: 0.78rem; color: var(--bark-60); }

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--bark-80);
}

.site-nav a {
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

.site-nav a:hover { color: var(--bark); }
.site-nav a:hover::after { width: 100%; }

.header-cta {
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
  background: var(--bark);
  color: var(--white);
  transition: transform 0.2s;
  white-space: nowrap;
}
.header-cta:hover { transform: translateY(-1px); }

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */

.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px; font-weight: 600;
  background: var(--accent); color: var(--white);
  box-shadow: 0 6px 24px var(--accent-soft);
  transition: transform 0.2s, box-shadow 0.2s;
  border: none; cursor: pointer; font-size: 0.95rem;
}
.btn-primary:hover { transform: translateY(-2px); }

.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 500;
  border: 1px solid var(--bark-30); background: transparent;
  color: var(--bark); cursor: pointer; font-size: 0.95rem;
  transition: background 0.2s;
}
.btn-secondary:hover { background: var(--bark-06); }

.btn-white {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border-radius: 999px; font-weight: 600;
  background: var(--white); color: var(--bark);
  border: none; cursor: pointer; font-size: 0.95rem; white-space: nowrap;
  transition: transform 0.2s;
}
.btn-white:hover { transform: translateY(-2px); }

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */

.hero { padding: 56px 0 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.banner-logo {
  width: min(400px, 90%);
  margin-bottom: 14px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--bark-12);
  background: var(--white);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }

.hero-notes { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-notes span {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--accent-glow);
  border: 1px solid var(--accent-soft);
  color: var(--accent);
}

.hero-image img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--bark-12);
  background: var(--white);
}

/* ----------------------------------------------------------------
   Hero Carousel (homepage)
   ---------------------------------------------------------------- */

.hero-carousel {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--bark-12);
  background: var(--linen);
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 0;
  transition: opacity 0.8s ease;
  display: block;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 8s ease-in-out infinite alternate;
}

.carousel-slide.active img {
  animation-play-state: running;
}

@keyframes kenBurns {
  0%   { transform: scale(1)    translate(0, 0); }
  100% { transform: scale(1.08) translate(-1%, -1%); }
}

.carousel-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(74,53,38,.80);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  z-index: 2;
  pointer-events: none;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: var(--white);
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--bark-30);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, border-color 0.25s;
}

.carousel-dot:hover {
  border-color: var(--accent);
}

.carousel-dot.active {
  background: var(--accent);
  border-color: var(--accent);
}

/* ----------------------------------------------------------------
   Category Strip (homepage)
   ---------------------------------------------------------------- */

.category-strip {
  padding: 40px 0;
  border-top: 1px solid var(--bark-12);
  border-bottom: 1px solid var(--bark-12);
  background: var(--white);
}

.category-strip .section-header {
  text-align: center;
  margin-bottom: 24px;
}

.category-strip .section-header h2 { margin-bottom: 6px; }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  border-radius: var(--radius);
  background: var(--cream);
  border: 1px solid var(--bark-12);
  transition: transform 0.25s, box-shadow 0.25s;
  text-align: center;
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.cat-card picture {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
}

.cat-img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--bark-12);
  box-shadow: 0 4px 12px rgba(74,53,38,.10);
  transition: transform 0.3s;
}

.cat-card:hover .cat-img {
  transform: scale(1.06);
}

.cat-card h3 {
  font-size: 0.9rem;
  margin-bottom: 0;
  font-family: var(--font-body);
  font-weight: 600;
}

/* ----------------------------------------------------------------
   Sections
   ---------------------------------------------------------------- */

.section { padding: 48px 0; }
.soft-background {
  background: var(--white);
  border-top: 1px solid var(--bark-12);
  border-bottom: 1px solid var(--bark-12);
}

.section-header { margin-bottom: 28px; }
.section-subtitle {
  font-size: 0.95rem;
  color: var(--bark-60);
  max-width: 520px;
}

/* ----------------------------------------------------------------
   Tile Grid (top sellers)
   ---------------------------------------------------------------- */

.tile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.tile {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--bark-12);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.tile:hover { transform: translateY(-4px); }

.tile picture, .tile img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.tile-meta { padding: 12px 14px; }
.tile-meta h3 { font-size: 0.88rem; font-weight: 500; margin-bottom: 2px; }
.tile-sku { font-size: 0.8rem; color: var(--bark-60); }

/* ----------------------------------------------------------------
   CTA Card / Banner
   ---------------------------------------------------------------- */

.cta-card {
  background: var(--white);
  border: 1px solid var(--bark-12);
  border-radius: var(--radius);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-banner {
  margin: 0 auto 56px;
  width: min(var(--max-w), 92vw);
  padding: 36px 44px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--bark) 0%, #6b4b36 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-banner h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--white); }
.cta-banner p  { font-size: 0.9rem; opacity: 0.8; margin-top: 4px; }

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */

.site-footer {
  padding: 32px 0 48px;
  font-size: 0.85rem;
  color: var(--bark-60);
  border-top: 1px solid var(--bark-12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-inner a { color: var(--bark); font-weight: 600; }

.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand div { display: flex; flex-direction: column; gap: 4px; }
.footer-brand p { margin: 0; font-size: 0.85rem; color: var(--bark-60); }
.footer-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--bark-12);
  background: var(--white);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-weight: 600;
  color: var(--bark);
}
.footer-nav a { padding: 2px 4px; }
.nav-divider { color: var(--bark-30); }

.footer-meta {
  margin: 20px auto 0;
  width: min(var(--max-w), 92vw);
  font-size: 0.82rem;
  color: var(--bark-60);
}

.footer-link { color: var(--accent); font-weight: 600; }

/* ----------------------------------------------------------------
   Content pages (about, contact, returns)
   ---------------------------------------------------------------- */

.inline-link { color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--accent-soft); }
.inline-link:hover { border-bottom-color: var(--accent); }

/* ----------------------------------------------------------------
   Reveal animation
   ---------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------------
   Lightbox
   ---------------------------------------------------------------- */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(20,14,10,.88);
  display: none; align-items: center; justify-content: center;
  padding: 24px; z-index: 9999;
}
.lightbox.is-open { display: flex; }
.lightbox-image {
  max-width: min(1200px, 96vw); max-height: 92vh;
  width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
  background: #fff;
}

/* ----------------------------------------------------------------
   Responsive
   ---------------------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .carousel-viewport { aspect-ratio: 4/3; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cta-card  { flex-direction: column; align-items: flex-start; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { flex-wrap: wrap; justify-content: center; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .header-cta { width: 100%; text-align: center; }
  .hero-notes { display: none; }
}

@media (max-width: 560px) {
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .cat-card { padding: 14px 8px; }
  .tile-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
}
