/* ══════════════════════════════════════════════════
   Coco's Crafts — Gear Pages Shared Styles
   Claymation / handwritten vibe, pink/teal/purple
   ══════════════════════════════════════════════════ */

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

:root {
  --pink: #e8839c;
  --pink-deep: #c85f7a;
  --teal: #3a8585;
  --teal-deep: #2a6666;
  --purple: #8b6b9c;
  --purple-deep: #5c4872;
  --cream: #faf2e7;
  --cream-deep: #f3e6d0;
  --blush: #fce4ec;
  --mint: #eaf5ef;
  --lilac: #f0e8f3;
  --ink: #2d1e2a;
  --ink-soft: #6b5569;
  --line: #ead3d9;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-weight: 400;
  line-height: 1.7;
}

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

/* ── HEADER ── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, var(--cream) 0%, var(--blush) 100%);
  border-bottom: 2px dashed var(--line);
  padding: 12px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--purple-deep);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

header .logo img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(92, 72, 114, 0.2));
  transition: transform 0.3s ease, filter 0.25s ease;
}

header .logo:hover img {
  transform: rotate(-6deg) scale(1.35);
  filter:
    drop-shadow(0 0 16px rgba(255, 120, 170, 0.9))
    drop-shadow(0 0 32px rgba(255, 120, 170, 0.55))
    drop-shadow(0 4px 10px rgba(92, 72, 114, 0.25));
}

nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

nav a {
  font-family: 'Nunito', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  text-decoration: none;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}

nav a:not(.nav-social a)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

nav a:hover { color: var(--pink); }
nav a:not(.nav-social a):hover::after { transform: scaleX(1); }

.nav-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.nav-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(92, 72, 114, 0.06);
  color: var(--purple-deep);
  padding: 0;
  margin: 0;
}

.nav-social a::after { display: none; }

.nav-social a:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-1px);
}

.nav-social svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* ── GEAR HEADER (page banner) ── */
.gear-header {
  position: relative;
  padding: 70px 20px 55px;
  text-align: center;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(252, 232, 223, 0.8) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(230, 230, 200, 0.6) 0%, transparent 55%),
    var(--cream);
  border-bottom: 2px dashed var(--line);
}

.gear-header .back-link {
  display: inline-block;
  font-family: 'Caveat', cursive;
  font-size: 1.25rem;
  color: var(--pink);
  text-decoration: none;
  margin-bottom: 10px;
}

.gear-header .back-link:hover { color: var(--pink-deep); }

.gear-header h1 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 3.4rem;
  color: var(--purple-deep);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.gear-header p {
  font-size: 1rem;
  color: var(--ink-soft);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ── SECTIONS ── */
.section {
  max-width: 1040px;
  margin: 0 auto;
  padding: 70px 20px 40px;
}

.section-label {
  font-family: 'Caveat', cursive;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 16px;
  transform: rotate(-1deg);
  display: inline-block;
}

.section h2 {
  font-family: 'Caveat', cursive;
  font-weight: 700;
  font-size: 2.4rem;
  color: var(--purple-deep);
  margin-bottom: 16px;
  line-height: 1;
}

.section .lead {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 40px;
}

/* ── CARD GRID ── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

/* ── PRODUCT CARDS ── */
.product-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  overflow: visible;
  box-shadow: 0 4px 14px rgba(92, 72, 114, 0.08);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.3s;
}

.product-card:nth-child(odd)  { transform: rotate(-0.5deg); }
.product-card:nth-child(even) { transform: rotate(0.5deg); }

.product-card:hover {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: 0 14px 30px rgba(92, 72, 114, 0.18);
}

.product-card::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 22px;
  width: 64px;
  height: 22px;
  background: repeating-linear-gradient(45deg, var(--pink) 0 6px, #f5b5c5 6px 12px);
  opacity: 0.85;
  transform: rotate(-6deg);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  border-radius: 2px;
  z-index: 3;
}

.product-card:nth-child(even)::before {
  left: auto;
  right: 22px;
  transform: rotate(6deg);
  background: repeating-linear-gradient(45deg, var(--teal) 0 6px, #7ab1b1 6px 12px);
}

.product-card .product-img {
  width: 100%;
  height: 190px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow: hidden;
  border-bottom: 1px solid var(--blush);
}

/* Subtle tinted inner glow by nth — keeps playful variety without clashing with product photos */
.product-card:nth-child(2n) .product-img { box-shadow: inset 0 -40px 60px -40px rgba(232, 131, 156, 0.15); }
.product-card:nth-child(3n) .product-img { box-shadow: inset 0 -40px 60px -40px rgba(58, 133, 133, 0.15); border-bottom-color: var(--mint); }
.product-card:nth-child(4n) .product-img { box-shadow: inset 0 -40px 60px -40px rgba(139, 107, 156, 0.15); border-bottom-color: var(--lilac); }
.product-card:nth-child(5n) .product-img { box-shadow: inset 0 -40px 60px -40px rgba(230, 179, 92, 0.15); border-bottom-color: var(--cream-deep); }

.product-card .product-img img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  transition: transform 0.4s;
}

.product-card:hover .product-img img {
  transform: scale(1.06) rotate(-2deg);
}

.product-card .product-info { padding: 22px 22px 24px; }

.product-card h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--purple-deep);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}

.product-card .product-link {
  display: inline-block;
  font-family: 'Nunito', sans-serif;
  font-size: 0.8rem;
  color: var(--pink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--purple);
  padding-bottom: 2px;
  transition: color 0.2s;
}

.product-card .product-link:hover {
  color: var(--pink-deep);
}

/* ── VIDEO REVIEW ── */
.product-card .review-btn {
  display: none;
  margin-top: 12px;
  margin-left: 12px;
  padding: 8px 16px;
  background: var(--blush);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--purple-deep);
  font-family: 'Nunito', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.product-card .review-btn:hover {
  background: var(--pink);
  color: #fff;
}

.product-card[data-review] .review-btn { display: inline-block; }

.review-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(45, 30, 42, 0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.review-overlay.active { display: flex; }

.review-overlay .review-player {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  border-radius: 12px;
  overflow: hidden;
}

.review-overlay .review-player iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.review-overlay .review-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FOOTER ── */
footer {
  background: var(--purple-deep);
  color: #d9c7d3;
  text-align: center;
  padding: 40px 20px;
  font-size: 0.86rem;
  line-height: 1.8;
  position: relative;
  margin-top: 60px;
}

footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg,
    var(--pink) 0 14px,
    var(--purple) 14px 28px,
    var(--teal) 28px 42px);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-bottom: 18px;
  font-size: 0.88rem;
}

.footer-nav a {
  color: #e7d4e0;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.footer-nav a:hover { color: var(--pink); }

.social-row {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #e7d4e0;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s, color 0.2s;
}

.social-row a:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
}

.social-row svg {
  width: 20px;
  height: 20px;
  display: block;
}

.footer-line { font-size: 0.86rem; }

footer .foot-note {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: #b29bab;
}

/* ── RESPONSIVE ── */
@media (max-width: 780px) {
  header {
    flex-direction: column;
    gap: 14px;
    padding: 14px 20px;
  }
  nav { flex-wrap: wrap; justify-content: center; gap: 14px 18px; }
  nav a { font-size: 0.78rem; }
  .gear-header h1 { font-size: 2.4rem; }
  .gear-header { padding: 50px 20px 40px; }
  .section h2 { font-size: 1.9rem; }
}

@media (max-width: 480px) {
  .social-row a { width: 36px; height: 36px; }
  .social-row svg { width: 16px; height: 16px; }
  header .logo img { width: 52px; height: 52px; }
  header .logo { font-size: 1.25rem; }
}
