/* ================================
   MY LITTLE THINGS — global.css (2025 Update, Mobile-First)
   Brand system: eco-friendly, kraft, outdoors — evolved for modern media focus
   --------------------------------------------
   Enhanced for product shop media: reels, carousels, galleries.
   Sleek, modern with pure CSS animations, transitions, and interactions.
   Optional font recs (include via <link> tags in HTML):
   Display: "Bungee" or "Luckiest Guy"; fallback Impact/Arial Black
   Body: "Nunito Sans" or "Inter"; fallback Arial
   ================================ */

/* ---------- CSS Variables (Design Tokens) ---------- */
:root {
  /* Core palette — refined for 2025: softer gradients, higher contrast */
  --mlt-ink: #1a1e1c; /* deeper black ink */
  --mlt-cream: #fdfbf3; /* warmer paper white */
  --mlt-paper: #e8dec8; /* softer kraft light */
  --mlt-kraft: #b89e6e; /* kraft mid with golden undertone */
  --mlt-primary: #4a6126; /* olive, slightly brighter */
  --mlt-primary-700: #36491b; /* deep olive */
  --mlt-leaf: #287a38; /* vibrant leaf green */
  --mlt-mustard: #d09b3a; /* mustard accent, more golden */
  --mlt-mustard-700: #ad7a1a; /* deep mustard */
  --mlt-charcoal: #282828; /* charcoal text */
  --mlt-white: #ffffff;
  --mlt-accent: #e8c07a; /* new light mustard for highlights */

  /* Neutrals & shadows — optimized for mobile */
  --mlt-shadow: 0 8px 24px rgba(34, 26, 18, 0.18);
  --mlt-shadow-soft: 0 4px 12px rgba(34, 26, 18, 0.12);
  --mlt-glass-bg: rgba(255, 253, 245, 0.7); /* for glassmorphism overlays */

  /* Typography scale — fluid and mobile-optimized */
  --ff-display: "Bungee", "Luckiest Guy", Impact, "Arial Black", system-ui, sans-serif;
  --ff-body: "Nunito Sans", "Inter", Arial, system-ui, sans-serif;
  --fs-900: clamp(1.8rem, 1.6rem + 1vw, 2.4rem); /* Smaller for mobile */
  --fs-800: clamp(1.5rem, 1.4rem + 0.8vw, 2rem);
  --fs-700: 1.3rem;
  --fs-600: 1.1rem;
  --fs-500: 1rem;
  --fs-400: 0.9375rem;
  --fs-300: 0.875rem;

  /* Spacing — tighter for mobile */
  --sp-0: 0;
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;

  /* Radii — consistent for all screens */
  --rad-06: 6px;
  --rad-10: 10px;
  --rad-16: 16px;
  --rad-20: 20px;
  --rad-28: 28px;
  --rad-pill: 999px;

  /* Component sizing — mobile-optimized */
  --btn-h: 48px; /* Slightly smaller for mobile */
  --container-w: 100%; /* Full-width for mobile */
  --carousel-h: 250px; /* Smaller carousel height for mobile */
  --reel-aspect: 9/16; /* Vertical reels */
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--mlt-charcoal);
  font: 400 var(--fs-400)/1.6 var(--ff-body);
  background:
    radial-gradient(800px 400px at 15% -15%, rgba(0,0,0,0.04), transparent 55%),
    radial-gradient(600px 300px at 115% 25%, rgba(0,0,0,0.04), transparent 55%),
    linear-gradient(0deg, var(--mlt-paper), var(--mlt-cream));
  transition: background 0.3s ease;
}

/* Improve type rhythm */
p { margin: 0 0 var(--sp-4); } /* Tighter margin for mobile */
h1, h2, h3, h4 {
  margin: 0 0 var(--sp-3);
  color: var(--mlt-ink);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: var(--ff-display);
}
h1 { font-size: var(--fs-900); }
h2 { font-size: var(--fs-800); }
h3 { font-size: var(--fs-700); }
small { font-size: var(--fs-300); }

/* Links — touch-friendly */
a { color: var(--mlt-leaf); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:active { color: var(--mlt-primary); text-decoration: underline wavy; }

/* Containers & grid — mobile-first */
.container {
  width: 100%;
  margin-inline: auto;
  padding: 0 var(--sp-3); /* Tighter padding for mobile */
}
.grid {
  display: grid;
  gap: var(--sp-4); /* Smaller gap for mobile */
  grid-template-columns: 1fr; /* Single column for mobile */
}

/* ---------- Components ---------- */
/* Cards — simplified for mobile */
.card {
  background: var(--mlt-cream);
  border-radius: var(--rad-16);
  box-shadow: var(--mlt-shadow-soft);
  padding: var(--sp-4);
  border: 2px solid rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:active { transform: translateY(-4px); box-shadow: var(--mlt-shadow); } /* Touch feedback */
.card--olive {
  background: var(--mlt-primary);
  color: var(--mlt-white);
  border: 0;
}
.card--olive h1, .card--olive h2, .card--olive h3 { color: var(--mlt-white); }
.card--glass {
  background: var(--mlt-glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
}

/* Curved banner */
.banner {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--mlt-primary);
  color: var(--mlt-white);
  border-radius: 16px 16px 24px 24px;
  box-shadow: var(--mlt-shadow);
  font: 700 var(--fs-600)/1 var(--ff-display);
  transition: transform 0.2s ease;
}
.banner:active { transform: scale(1.02); }
.banner--mustard {
  background: var(--mlt-mustard);
  color: #28220e;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  background: var(--mlt-kraft);
  color: #332815;
  border-radius: var(--rad-pill);
  border: 2px solid rgba(0,0,0,0.07);
  font: 800 0.9rem/1 var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
  transition: background 0.2s ease;
}
.pill:active { background: var(--mlt-mustard); }
.pill--olive { background: var(--mlt-primary); color: var(--mlt-white); }
.pill--mustard { background: var(--mlt-mustard); }

/* Buttons — touch-optimized */
.btn {
  --bg: var(--mlt-leaf);
  --fg: var(--mlt-white);
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  height: var(--btn-h); padding: 0 1rem;
  background: var(--bg); color: var(--fg);
  border-radius: var(--rad-28);
  border: 0;
  font: 800 var(--fs-500)/1 var(--ff-body);
  letter-spacing: 0.3px;
  box-shadow: 0 5px 0 rgba(0,0,0,0.12);
  transform: translateY(0);
  transition: transform 0.1s ease, box-shadow 0.1s ease, filter 0.1s ease;
}
.btn:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,0.12); }
.btn--mustard { --bg: var(--mlt-mustard); --fg: #28220e; }
.btn--olive { --bg: var(--mlt-primary); }
.btn--outline {
  --bg: transparent; --fg: var(--mlt-ink);
  border: 2px solid var(--mlt-ink);
  box-shadow: none;
}

/* Price sticker */
.price-tag {
  display: inline-block;
  font: 900 clamp(1.4rem, 1.2rem + 1vw, 1.8rem)/1 var(--ff-display);
  color: var(--mlt-cream);
  background: var(--mlt-ink);
  padding: 0.4rem 0.8rem;
  border-radius: 12px;
  box-shadow: var(--mlt-shadow);
  letter-spacing: 0.4px;
  transition: transform 0.3s ease;
}
.price-tag:active { transform: rotate(-2deg); }
.price-tag--mustard { background: var(--mlt-mustard); color: #28220e; }
.price-tag--outline {
  background: var(--mlt-mustard);
  color: #28220e;
  outline: 3px solid #000000;
  outline-offset: -3px;
}
.price-tag .currency { opacity: 0.9; margin-right: 0.3rem; }

/* Feature/bullet list */
.list-check {
  list-style: none; padding: 0; margin: 0;
}
.list-check li {
  position: relative;
  padding-left: 1.6rem;
  margin: 0.5rem 0;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideIn 0.5s forwards;
}
.list-check li:nth-child(1) { animation-delay: 0.1s; }
.list-check li:nth-child(2) { animation-delay: 0.2s; }
.list-check li:nth-child(3) { animation-delay: 0.3s; }
.list-check li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 1rem; height: 1rem;
  display: grid; place-items: center;
  background: var(--mlt-leaf);
  color: var(--mlt-white);
  border-radius: 50%;
  font-size: 0.75rem;
  box-shadow: 0 2px 0 rgba(0,0,0,0.12);
}
@keyframes slideIn {
  to { opacity: 1; transform: translateX(0); }
}

/* Polaroid — no tilt on mobile */
.polaroid {
  --angle: 0deg; /* No tilt for mobile */
  --frame: var(--mlt-white);
  display: inline-block;
  padding: 0.4rem 0.4rem 0.8rem;
  background: var(--frame);
  border-radius: 12px;
  box-shadow: var(--mlt-shadow);
  transition: transform 0.3s ease;
}
.polaroid:active { transform: translateY(-4px); }
.polaroid img { display: block; width: 100%; height: auto; border-radius: 8px; }
.polaroid--right { --angle: 0deg; } /* No tilt for mobile */

/* Hero section */
.hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4rem) 0; /* Smaller padding for mobile */
  background:
    linear-gradient(180deg, rgba(74,97,38,0.14), rgba(74,97,38,0) 50%),
    radial-gradient(600px 300px at 10% -5%, rgba(0,0,0,0.06), transparent 60%);
}

/* CTA band */
.cta-band {
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  align-items: center; justify-content: center; /* Centered for mobile */
  background: var(--mlt-primary);
  color: var(--mlt-white);
  padding: var(--sp-4);
  border-radius: var(--rad-16);
  box-shadow: var(--mlt-shadow);
  transition: background 0.3s ease;
}
.cta-band:active { background: var(--mlt-primary-700); }
.cta-band a { color: var(--mlt-white); font-weight: 800; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.3rem 0.6rem;
  background: var(--mlt-cream);
  color: #362a17;
  border: 2px solid rgba(0,0,0,0.09);
  border-radius: 10px;
  font: 800 0.8rem/1 var(--ff-body);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: transform 0.2s ease;
}
.badge:active { transform: scale(1.05); }
.badge--leaf { background: var(--mlt-leaf); color: var(--mlt-white); border: 0; }
.badge--mustard { background: var(--mlt-mustard); color: #28220e; border: 0; }

/* Pack grid */
.pack {
  display: grid; gap: var(--sp-3);
  grid-template-columns: 120px 1fr auto; /* Smaller image column for mobile */
  align-items: center;
  background: var(--mlt-cream);
  border: 2px solid rgba(0,0,0,0.05);
  border-radius: var(--rad-16);
  padding: var(--sp-3);
  box-shadow: var(--mlt-shadow-soft);
  transition: box-shadow 0.3s ease;
}
.pack:active { box-shadow: var(--mlt-shadow); }
.pack__title { font: 900 1rem/1 var(--ff-display); text-transform: uppercase; }
.pack__desc { color: #464646; font-size: 0.9rem; }
.pack__price { justify-self: end; }

/* Forms */
.form {
  display: grid; gap: var(--sp-3);
}
.input {
  display: flex; flex-direction: column; gap: 0.4rem;
}
.input label {
  font: 800 0.9rem/1 var(--ff-body); text-transform: uppercase; letter-spacing: 0.4px;
}
.input input, .input select, .input textarea {
  padding: 0.7rem 0.8rem;
  border: 2px solid #ae976d;
  border-radius: var(--rad-10);
  background: var(--mlt-cream);
  color: var(--mlt-ink);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input input::placeholder { color: #967f5c; }
.input input:focus, .input textarea:focus, .input select:focus {
  border-color: var(--mlt-leaf);
  box-shadow: 0 0 0 3px rgba(40,122,56,0.18);
}

/* Section dividers */
.section {
  padding: var(--sp-8) 0; /* Smaller padding for mobile */
}
.section--paper {
  background: linear-gradient(0deg, var(--mlt-cream), var(--mlt-paper));
  border-top: 3px dashed rgba(0,0,0,0.05);
  border-bottom: 3px dashed rgba(0,0,0,0.05);
}

/* Mascot — hidden on mobile */
.mascot-right img {
  display: none; /* Hidden to avoid overflow */
}

/* Footer */
.footer {
  margin-top: var(--sp-8);
  padding: var(--sp-6) 0;
  background: var(--mlt-primary-700);
  color: var(--mlt-cream);
}
.footer a { color: var(--mlt-cream); }

/* Gallery — single column for mobile */
.gallery {
  column-count: 1;
  column-gap: var(--sp-3);
}
.gallery__item {
  break-inside: avoid;
  margin-bottom: var(--sp-3);
  border-radius: var(--rad-16);
  overflow: hidden;
  box-shadow: var(--mlt-shadow-soft);
  transition: transform 0.3s ease;
}
.gallery__item:active { transform: scale(1.02); }
.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Carousel — smaller for mobile */
.carousel {
  position: relative;
  width: 100%;
  height: var(--carousel-h);
  overflow: hidden;
  border-radius: var(--rad-16);
  box-shadow: var(--mlt-shadow);
}
.carousel__slides {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease;
}
.carousel__slide {
  flex: 0 0 33.333%;
  height: 100%;
  background-size: cover;
  background-position: center;
}
.carousel input[type="radio"] { display: none; }
.carousel input[id="slide1"]:checked ~ .carousel__slides { transform: translateX(0); }
.carousel input[id="slide2"]:checked ~ .carousel__slides { transform: translateX(-33.333%); }
.carousel input[id="slide3"]:checked ~ .carousel__slides { transform: translateX(-66.666%); }
.carousel__nav {
  position: absolute;
  bottom: var(--sp-3);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--sp-2);
}
.carousel__nav label {
  display: block;
  width: 10px;
  height: 10px;
  background: var(--mlt-kraft);
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel__nav label:active { background: var(--mlt-mustard); }
.carousel input:checked + label { background: var(--mlt-leaf); }

/* Reels */
.reel {
  position: relative;
  aspect-ratio: var(--reel-aspect);
  max-width: 280px; /* Slightly smaller for mobile */
  margin: auto;
  border-radius: var(--rad-20);
  overflow: hidden;
  box-shadow: var(--mlt-shadow);
  transition: box-shadow 0.3s ease;
}
.reel:active { box-shadow: var(--mlt-shadow-soft); }
.reel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.reel__overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-3);
  background: linear-gradient(0deg, rgba(0,0,0,0.5), transparent);
  color: var(--mlt-white);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.reel:active .reel__overlay { opacity: 1; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-4 { margin-top: var(--sp-4) !important; }
.mb-4 { margin-bottom: var(--sp-4) !important; }
.mt-6 { margin-top: var(--sp-6) !important; }
.mb-6 { margin-bottom: var(--sp-6) !important; }
.center { text-align: center; }
.flex { display: flex; gap: var(--sp-4); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* ---------- Enhancements for Larger Screens ---------- */
@media (min-width: 600px) {
  :root {
    --fs-900: clamp(2.2rem, 2rem + 1.2vw, 3rem);
    --fs-800: clamp(1.8rem, 1.7rem + 0.9vw, 2.4rem);
    --carousel-h: 350px;
  }
  .container { padding: 0 var(--sp-4); }
  .grid { gap: var(--sp-5); }
  .gallery { column-count: 2; }
  .hero { padding: clamp(2.5rem, 6vw, 5rem) 0; }
  .section { padding: var(--sp-10) 0; }
  .footer { padding: var(--sp-8) 0; }
  .carousel__nav label { width: 12px; height: 12px; }
}

@media (min-width: 900px) {
  :root {
    --fs-900: clamp(2.6rem, 2.4rem + 1.4vw, 3.6rem);
    --fs-800: clamp(2.1rem, 2rem + 1vw, 2.8rem);
    --container-w: 1280px;
    --carousel-h: 400px;
  }
  .container { max-width: var(--container-w); }
  .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery { column-count: 3; }
  .polaroid { --angle: -4deg; }
  .polaroid--right { --angle: 4deg; }
  .mascot-right img {
    display: block;
    position: absolute;
    right: -15px;
    bottom: -15px;
    width: min(28vw, 300px);
    transform: translateY(0);
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.28));
    animation: bounce 2s infinite ease-in-out;
  }
  .hero {
    padding: clamp(3rem, 7vw, 7rem) 0;
    background:
      linear-gradient(180deg, rgba(74,97,38,0.14), rgba(74,97,38,0) 50%),
      radial-gradient(1400px 700px at 10% -5%, rgba(0,0,0,0.06), transparent 60%);
  }
  .cta-band { justify-content: space-between; }
  .card { padding: var(--sp-6); }
  .pack { grid-template-columns: 150px 1fr auto; }
}

/* ---------- Dark Mode ---------- */
@media (prefers-color-scheme: dark) {
  :root {
    --mlt-cream: #1f201b;
    --mlt-paper: #272822;
    --mlt-kraft: #665234;
    --mlt-ink: #f0eee4;
    --mlt-charcoal: #e6e5e0;
    --mlt-shadow: 0 8px 24px rgba(0,0,0,0.4);
    --mlt-shadow-soft: 0 4px 12px rgba(0,0,0,0.35);
    --mlt-glass-bg: rgba(35,36,31,0.7);
  }
  .card { border-color: rgba(255,255,255,0.05); }
  .pill { border-color: rgba(255,255,255,0.1); color: #f0eee4; }
  .input input, .input textarea, .input select {
    background: #1b1c18; border-color: #483a24; color: #f0eee4;
  }
}

/* Animation for mascot */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}