/* FruitOut Theme — juicy roguelike-breakout orchard (fruitout.com playbook) */
/* Sunlit leaf-green field: strawberry-magenta candy pills, radioactive lime,
   lemon corn. Palette lifted straight off the fruit-splash keyart. */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=Fredoka:wght@400;500;600;700&display=swap');

:root {
  --primary: #ff4d6d;
  --primary-rgb: 255, 77, 109;
  --primary-dark: #d3204b;
  --hov-primary: #ff8fab;
  --soft-primary: rgba(255, 77, 109, 0.15);
  --secondary: #a05cd6;
  --accent: #7ed957;
  --accent-deep: #3fa34d;
  --success: #7ed957;
  --warning: #ffd93b;
  --danger: #d3204b;
  --corn: #ffd93b;
  --light: #16512c;
  --dark: #ffffff;
  --gray: #bfe3c6;
  --gray-light: #2a6b40;
  --background: #0f4a26;
  --card-bg: #16512c;
  --border-color: rgba(255, 255, 255, 0.20);
  --border-radius: 14px;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.86);
  --font-primary: 'Fredoka', 'Segoe UI', sans-serif;
  --font-heading: 'Press Start 2P', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

body {
  font-family: var(--font-primary);
  color: var(--text);
  background:
    radial-gradient(circle at 50% -8%, rgba(255, 240, 170, 0.34) 0%, transparent 46%),
    radial-gradient(circle at 100% 22%, rgba(255, 94, 168, 0.22) 0%, transparent 46%),
    radial-gradient(circle at 0% 55%, rgba(126, 217, 87, 0.26) 0%, transparent 44%),
    linear-gradient(180deg, #3b9a54 0%, #237a3d 46%, #0f4a26 100%);
  background-attachment: fixed;
}

/* General headings use the rounded juicy body font (Fredoka) — readable for
   long titles like product names. Matches fruitout.com, which reserves the
   pixel display face for the logo/hero/world-card titles only (see below). */
h1, h2, h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--corn);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--text);
}

/* Arcade display face (Press Start 2P) — logo/brand + explicit hero titles
   only, exactly where fruitout.com uses it (.logo, .hero h1, .world-text h3).
   Long body headings stay on Fredoka above. */
.navbar-brand,
.crop-hero h1,
.crop-world-text h3,
.display-arcade {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Glossy strawberry-magenta pill (fruitout.com btn-primary) */
.btn-primary {
  background: linear-gradient(180deg, #ff8cc4 0%, #ff4d6d 45%, #d3204b 100%);
  border: none;
  border-radius: 9999px;
  color: #ffffff;
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 4px 0 #d3204b, 0 6px 14px rgba(0, 0, 0, 0.3),
              inset 0 2px 2px rgba(255, 255, 255, 0.6);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff8cc4 0%, #ff4d6d 45%, #d3204b 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d3204b, 0 10px 20px rgba(0, 0, 0, 0.35),
              inset 0 2px 2px rgba(255, 255, 255, 0.6);
}

.btn-primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #d3204b, inset 0 2px 2px rgba(255, 255, 255, 0.5);
}

/* Glossy lime pill (fruitout.com btn-play) */
.btn-success, .btn-secondary {
  background: linear-gradient(180deg, #c4ff7a 0%, #7ed957 45%, #3fa34d 100%);
  border: none;
  border-radius: 9999px;
  color: #143d00;
  font-family: var(--font-primary);
  font-weight: 700;
  box-shadow: 0 4px 0 #3fa34d, 0 6px 14px rgba(0, 0, 0, 0.3),
              inset 0 2px 2px rgba(255, 255, 255, 0.7);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-success:hover, .btn-secondary:hover {
  color: #143d00;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #3fa34d, 0 10px 20px rgba(0, 0, 0, 0.35),
              inset 0 2px 2px rgba(255, 255, 255, 0.7);
}

.btn-success:active, .btn-secondary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #3fa34d, inset 0 2px 2px rgba(255, 255, 255, 0.6);
}

/* Glossy lemon-corn pill (fruitout.com btn-founder) — the $12.99 Founder tier */
.btn-warning {
  background: linear-gradient(180deg, #ffe58a 0%, #ffd93b 45%, #d99a00 100%);
  border: none;
  border-radius: 9999px;
  color: #3d2b00;
  font-family: var(--font-primary);
  font-weight: 700;
  box-shadow: 0 4px 0 #d99a00, 0 6px 14px rgba(0, 0, 0, 0.3),
              inset 0 2px 2px rgba(255, 255, 255, 0.7);
  transition: transform 0.12s, box-shadow 0.12s;
}

.btn-warning:hover {
  color: #3d2b00;
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #d99a00, 0 10px 20px rgba(0, 0, 0, 0.35),
              inset 0 2px 2px rgba(255, 255, 255, 0.7);
}

.card, .product-card {
  background: rgba(255, 255, 255, 0.09);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-lg);
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.card:hover, .product-card:hover {
  transform: translateY(-5px);
  border-color: var(--corn);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 217, 59, 0.24);
}

.price {
  color: var(--corn);
  font-weight: 700;
}

/* This theme sets the body text to white for the dark orchard field, but Bootstrap
   white/light panels (product Description/Reviews tabs, the "write a review" box,
   Related Products) would then render white-on-white. Restore dark ink inside
   any light container so their copy is readable. */
.bg-white,
.bg-light {
  color: #14351f;
}
.bg-white .text-reset,
.bg-light .text-reset {
  color: #14351f !important;
}
.bg-white .text-muted,
.bg-light .text-muted {
  color: #4a6b55 !important;
}
.bg-white .aiz-editor-data,
.bg-white .aiz-editor-data * {
  color: #14351f;
}
.bg-white a:not(.btn),
.bg-light a:not(.btn) {
  color: var(--primary-dark);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--corn);
}

::-webkit-scrollbar {
  width: 12px;
  background: #0f4a26;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff8cc4 0%, #ff4d6d 60%, #d3204b 100%);
  border-radius: 9999px;
  border: 2px solid #0f4a26;
}

/* ── POD design-variant picker (shared product-detail.ejs), themed to the
   orchard field: dark swatch tiles, corn-glow hover, lime active ring ── */
.variant-swatches {
  padding: 4px;
  scrollbar-width: thin;
}
.variant-swatch {
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid var(--border-color) !important;
  border-radius: var(--radius-sm);
  outline: 3px solid transparent;
  outline-offset: -1px;
}
.variant-swatch:hover {
  border-color: var(--corn) !important;
  box-shadow: 0 0 14px rgba(255, 217, 59, 0.35);
}
.variant-swatch.active {
  outline-color: var(--accent);
  border-color: var(--accent) !important;
  box-shadow: 0 0 18px rgba(126, 217, 87, 0.5);
}
#selected-variant-label {
  color: var(--corn) !important;
  font-family: var(--font-primary);
  letter-spacing: 0.02em;
}


/* ── Storefront navbar tokens (contrast-correct header) ── */
:root {
  --header-bg: #0F4A26;
  --header-fg: #FFFFFF;
  --header-muted: rgba(255,255,255,0.66);
  --header-border: rgba(255,255,255,0.14);
  /* Dark header: recolor black wordmark artwork to white so it reads. */
  --wordmark-filter: brightness(0) invert(1);
}
