/* ===========================
   Pixie's Pouches — Stylesheet
   Cozy Handmade Aesthetic
   =========================== */

:root {
  --cream:      #fefae0;
  --warm-white: #fffdf5;
  --tan:        #d4a373;
  --sage:       #ccd5ae;
  --sage-dark:  #a3b18a;
  --blush:      #f2c4ce;
  --brown:      #6b4f3a;
  --text:       #3d2b1f;
  --text-light: #7a6255;
  --radius:     1rem;
  --shadow:     0 4px 24px rgba(107, 79, 58, 0.10);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  font-weight: 300;
  background: var(--warm-white);
  color: var(--text);
  line-height: 1.7;
}

h1, h2, h3, .logo {
  font-family: 'Playfair Display', serif;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- NAV ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 250, 224, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--sage);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--brown);
  text-decoration: none;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

nav a:hover,
nav a.active {
  color: var(--tan);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: var(--tan);
  color: #fff;
  border-radius: 2rem;
  text-decoration: none;
  font-family: 'Lato', sans-serif;
  font-weight: 400;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  transition: background 0.2s, transform 0.15s;
}

.btn:hover {
  background: var(--brown);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
  word-break: break-all;
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sage-dark);
  margin-bottom: 0.5rem;
}

.section-sub {
  color: var(--text-light);
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* ---- HERO ---- */
.hero {
  min-height: 90vh;
  background: var(--cream);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(242,196,206,0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 90%, rgba(204,213,174,0.3) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: 4rem 1.5rem 4rem 10vw;
}

.hero-eyebrow {
  color: var(--sage-dark);
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1.15;
  color: var(--brown);
  margin-bottom: 1.25rem;
}

.hero h1 em {
  color: var(--tan);
  font-style: italic;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 440px;
}

.hero-yarn-accent {
  position: absolute;
  right: 8vw;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(200px, 28vw, 420px);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(107, 79, 58, 0.18);
  cursor: pointer;
  transition: box-shadow 0.3s ease;
  will-change: transform;
}

.hero-yarn-accent img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1.5rem;
  transition: transform 0.15s ease, filter 0.3s ease;
  pointer-events: none;
  user-select: none;
}

.hero-yarn-accent:hover {
  box-shadow: 0 16px 56px rgba(212, 163, 115, 0.4);
}

.hero-yarn-accent:hover img {
  filter: brightness(1.06) saturate(1.1);
}

/* ---- ABOUT ---- */
.about {
  padding: 6rem 0;
  background: var(--warm-white);
}

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

.about-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brown);
  margin: 0.5rem 0 1.25rem;
  line-height: 1.25;
}

.about-text p {
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 520px;
}

.about-decoration {
  position: relative;
  width: 260px;
  height: 260px;
  flex-shrink: 0;
  background: transparent;
}

.about-yarn-img {
  position: absolute;
  inset: 24px;
  width: calc(100% - 48px);
  height: calc(100% - 48px);
  object-fit: contain;
  background: transparent;
  z-index: 1;
  animation: float 5s ease-in-out infinite;
}

.stitch-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px dashed var(--sage);
  animation: spin 20s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ---- SHOP ---- */
.shop {
  padding: 6rem 0;
  background: var(--cream);
}

.shop h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brown);
  margin: 0.5rem 0 0.75rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
  margin-top: 0.5rem;
}

.product-card {
  background: var(--warm-white);
  border: 1px solid var(--sage);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(107, 79, 58, 0.15);
}

.product-img {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.bag-thumb {
  cursor: pointer;
  border-radius: 0.75rem;
  overflow: hidden;
  aspect-ratio: 1;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.bag-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.bag-thumb:hover img {
  transform: scale(1.06);
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--tan);
  color: var(--tan);
}

.btn-outline:hover {
  background: var(--tan);
  color: #fff;
}

/* ---- BAG VIEWER ---- */
.viewer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(61, 43, 31, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.viewer-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.viewer-modal {
  background: var(--warm-white);
  border-radius: 1.5rem;
  padding: 2rem;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(61, 43, 31, 0.3);
}

.viewer-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--brown);
  line-height: 1;
  transition: background 0.2s;
}

.viewer-close:hover {
  background: var(--blush);
}

.viewer-image-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.viewer-img {
  max-width: min(70vw, 480px);
  max-height: 60vh;
  object-fit: contain;
  border-radius: 1rem;
  transition: opacity 0.15s ease;
}

.viewer-nav {
  background: var(--cream);
  border: none;
  border-radius: 50%;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--brown);
  flex-shrink: 0;
  transition: background 0.2s;
  line-height: 1;
}

.viewer-nav:hover {
  background: var(--sage);
}

.viewer-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.viewer-caption {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--brown);
}

.viewer-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  cursor: pointer;
  transition: background 0.2s;
}

.dot.active {
  background: var(--tan);
}

.product-card h3 {
  font-size: 1.25rem;
  color: var(--brown);
}

.product-card p {
  color: var(--text-light);
  font-size: 0.95rem;
  flex: 1;
}

/* ---- CONTACT ---- */
.contact {
  padding: 6rem 0;
  background: var(--warm-white);
  text-align: center;
}

.contact-inner {
  max-width: 600px;
  margin: 0 auto;
}

.contact h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--brown);
  margin: 0.5rem 0 1rem;
}

.contact p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

/* ---- FOOTER ---- */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--sage);
  padding: 1.5rem 0;
  text-align: center;
  color: var(--text-light);
  font-size: 0.875rem;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-content {
    padding: 4rem 1.5rem;
  }

  .hero-yarn-accent {
    display: none;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .about-decoration {
    display: none;
  }

  nav {
    gap: 1.25rem;
  }
}
