/* Cropsicle Theme - 1950s B-movie candy arcade (cropsicles.com playbook) */
/* Bright candy-twilight field: radioactive lime, candy magenta, atomic corn. */

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

:root {
  --primary: #ff4fa3;
  --primary-rgb: 255, 79, 163;
  --primary-dark: #c11f6e;
  --hov-primary: #ff8cc4;
  --soft-primary: rgba(255, 79, 163, 0.15);
  --secondary: #7b2ff7;
  --accent: #a6f34a;
  --accent-deep: #4e9c12;
  --success: #a6f34a;
  --warning: #ffd23f;
  --danger: #c11f6e;
  --corn: #ffd23f;
  --light: #22242c;
  --dark: #ffffff;
  --gray: #9aa1ad;
  --gray-light: #3a3e49;
  --background: #14161b;
  --card-bg: #22242c;
  --border-color: rgba(255, 255, 255, 0.18);
  --border-radius: 14px;
  --text: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.82);
  --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(200, 206, 216, 0.20) 0%, transparent 45%),
    radial-gradient(circle at 100% 25%, rgba(255, 79, 163, 0.28) 0%, transparent 45%),
    radial-gradient(circle at 0% 55%, rgba(166, 243, 74, 0.22) 0%, transparent 42%),
    linear-gradient(180deg, #2b2f38 0%, #22242c 48%, #14161b 100%);
  background-attachment: fixed;
}

/* General headings use the rounded candy body font (Fredoka) — readable for
   long titles like product names. Matches cropsicles.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 cropsicles.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 candy-magenta pill (cropsicles.com btn-primary) */
.btn-primary {
  background: linear-gradient(180deg, #ff8cc4 0%, #ff4fa3 45%, #c11f6e 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 #c11f6e, 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%, #ff4fa3 45%, #c11f6e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #c11f6e, 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 #c11f6e, inset 0 2px 2px rgba(255, 255, 255, 0.5);
}

/* Glossy lime pill (cropsicles.com btn-play) */
.btn-success, .btn-secondary {
  background: linear-gradient(180deg, #c4ff7a 0%, #a6f34a 45%, #4e9c12 100%);
  border: none;
  border-radius: 9999px;
  color: #143d00;
  font-family: var(--font-primary);
  font-weight: 700;
  box-shadow: 0 4px 0 #4e9c12, 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 #4e9c12, 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.08);
  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, 210, 63, 0.22);
}

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

/* This theme sets the body text to white for the dark candy 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: #22242c;
}
.bg-white .text-reset,
.bg-light .text-reset {
  color: #22242c !important;
}
.bg-white .text-muted,
.bg-light .text-muted {
  color: #5b6270 !important;
}
.bg-white .aiz-editor-data,
.bg-white .aiz-editor-data * {
  color: #22242c;
}
.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: #14161b;
}

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

/* ── POD design-variant picker (shared product-detail.ejs), themed to the
   candy-twilight 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, 210, 63, 0.35);
}
.variant-swatch.active {
  outline-color: var(--accent);
  border-color: var(--accent) !important;
  box-shadow: 0 0 18px rgba(166, 243, 74, 0.5);
}
#selected-variant-label {
  color: var(--corn) !important;
  font-family: var(--font-primary);
  letter-spacing: 0.02em;
}


/* ── Storefront navbar tokens (auto-added: contrast-correct header) ── */
:root {
  --header-bg: #22242C;
  --header-fg: #FFFFFF;
  --header-muted: rgba(255,255,255,0.62);
  --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);
}
