/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F5C842;
  --yellow-dark: #D9A820;
  --pond: #0C2D48;
  --pond-mid: #1A4A6B;
  --orange: #E8671A;
  --cream: #F5F0E8;
  --cream-dark: #EBE4D8;
  --text: #2A1F14;
  --text-light: #6B5E50;
  --white: #ffffff;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius: 18px;
  --shadow: 0 4px 20px rgba(12,45,72,0.10);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

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

/* ── Buttons ── */
.btn {
  display: inline-block;
  background: var(--pond);
  color: var(--yellow);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 100px;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(12,45,72,0.2); }

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

.btn-buy {
  background: var(--orange);
  color: white;
  font-size: 1.1rem;
  padding: 1rem 2.5rem;
  width: 100%;
  text-align: center;
  margin-top: 1.5rem;
}
.btn-buy:hover { background: #d45a12; }

/* ── Nav ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--pond);
  border-bottom: 3px solid var(--yellow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--yellow);
}
.nav-duck { width: 36px; height: 36px; object-fit: contain; }

.nav-links { display: flex; gap: 2rem; }
.nav-links a {
  font-family: var(--font-display);
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--yellow); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--pond-mid);
  padding: 1rem 1.5rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--cream);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--yellow) 0%, #E8B820 60%, #F5C842 100%);
  padding: 4rem 5% 0;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  overflow: hidden;
}

.hero-text {
  flex: 1 1 300px;
  min-width: 0;
}

.hero-duck {
  flex: 0 1 280px;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pond);
  opacity: 0.75;
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  line-height: 0.92;
  color: var(--pond);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero h1 .outline {
  color: white;
  -webkit-text-stroke: 3px var(--pond);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--pond);
  max-width: 420px;
  line-height: 1.65;
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero-duck img {
  width: clamp(160px, 25vw, 280px);
  filter: drop-shadow(0 12px 32px rgba(12,45,72,0.2));
}

.speech-bubble {
  position: absolute;
  top: 10px;
  right: -10px;
  background: white;
  border-radius: 16px 16px 16px 4px;
  padding: 0.4rem 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--pond);
  box-shadow: var(--shadow);
  white-space: nowrap;
}

.wave-divider {
  background: linear-gradient(135deg, var(--yellow) 0%, #E8B820 60%, #F5C842 100%);
  margin: 0;
  padding: 0;
  display: block;
}
.wave-divider svg { display: block; width: 100%; }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.product-card {
  background: white;
  border-radius: var(--radius);
  border: 2px solid #E8E0D0;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(12,45,72,0.14); }

.card-img {
  background: var(--cream);
  padding: 2rem 1.5rem 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}
.card-img img { max-height: 160px; object-fit: contain; }

.card-info { padding: 1rem 1.25rem 1.25rem; }
.card-info h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pond);
  margin-bottom: 0.3rem;
}
.card-info p {
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--pond);
}

/* ── Featured Section ── */
.featured {
  background: var(--cream);
  padding: 4rem 1.5rem;
  text-align: center;
}
.featured h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--pond);
  margin-bottom: 2.5rem;
}

/* ── How It Works ── */
.how-it-works {
  background: var(--pond);
  padding: 4rem 1.5rem;
  text-align: center;
}
.how-it-works .eyebrow { color: var(--yellow); }
.how-it-works h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: white;
  margin-bottom: 3rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}

.step { color: white; }
.step-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(245,200,66,0.15);
  border: 2px solid rgba(245,200,66,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin: 0 auto 1rem;
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.85rem; color: rgba(255,255,255,0.65); line-height: 1.6; }

/* ── Page Header ── */
.page-header {
  background: var(--pond);
  padding: 3rem 1.5rem;
  text-align: center;
}
.page-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--yellow);
  margin-bottom: 0.5rem;
}
.page-header p { color: rgba(255,255,255,0.65); font-size: 1rem; }

/* ── Shop Section ── */
.shop-section { padding: 3rem 1.5rem; }

/* ── Product Detail ── */
.product-page {
  padding: 2rem 1.5rem 4rem;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--pond); }
.breadcrumb span { color: var(--pond); }

.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.product-detail-img {
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}

.product-detail-info h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--pond);
  margin-bottom: 0.5rem;
}

.product-price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.product-description {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.product-details-box {
  background: white;
  border-radius: var(--radius);
  border: 1.5px solid #E8E0D0;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.detail-row {
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.3rem 0;
}
.detail-row::first-letter { color: var(--orange); font-weight: 700; }

.buy-note {
  font-size: 0.78rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 0.5rem;
}

/* ── Related ── */
.related-section {
  background: var(--cream-dark);
  padding: 3rem 1.5rem;
}
.related-section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--pond);
  margin-bottom: 1.5rem;
}

/* ── About ── */
.about-section { padding: 4rem 1.5rem; }
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-img img { max-height: 400px; margin: 0 auto; }
.about-text h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--pond);
  margin-bottom: 1rem;
}
.about-text p {
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* ── Footer ── */
footer {
  background: var(--pond);
  padding: 2.5rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.85rem;
  text-align: center;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--yellow);
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: var(--yellow); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }

  .hero { padding: 3rem 5% 0; }
  .hero-duck { justify-content: center; margin-top: 1rem; }
  .hero-sub { margin: 0 auto 2rem; }

  .product-detail { grid-template-columns: 1fr; }
  .product-detail-img { position: static; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}

/* ── Color Picker ── */
.color-picker-section {
  margin-bottom: 1.5rem;
}
.color-picker-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pond);
  margin-bottom: 0.75rem;
}
.color-picker-label span {
  text-transform: none;
  letter-spacing: 0;
  color: var(--orange);
  font-weight: 600;
}
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.color-swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, outline 0.15s;
  outline: none;
  flex-shrink: 0;
}
.color-swatch:hover { transform: scale(1.2); }
.color-swatch.active {
  outline: 3px solid var(--pond);
  outline-offset: 2px;
}
.admin-panel .color-swatch.active {
  outline-color: var(--yellow);
}

/* ── Shirt Mockup ── */
.shirt-mockup {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.shirt-canvas {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Dev Slider ── */
.dev-slider {
  margin-top: 1rem;
  background: #fffbe6;
  border: 2px dashed var(--yellow-dark);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--pond);
}
.dev-slider input[type=range] {
  width: 100%;
  margin-top: 0.4rem;
  accent-color: var(--pond);
}

/* ── Dev Controls ── */
.dev-slider {
  margin-top: 1rem;
  background: #fffbe6;
  border: 2px dashed var(--yellow-dark);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--pond);
}
.dev-title {
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.dev-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.dev-row input[type=range] {
  width: 100%;
  accent-color: var(--pond);
}
.dev-hint {
  margin-top: 0.6rem;
  font-size: 0.72rem;
  color: var(--text-light);
  font-style: italic;
}

/* ── Admin Panel ── */
.admin-panel {
  margin-top: 1rem;
  background: #0C2D48;
  border: 2px solid #F5C842;
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: white;
}
.admin-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--yellow);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
}
.admin-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.admin-row input[type=range] {
  width: 100%;
  accent-color: var(--yellow);
}
.admin-output {
  margin-top: 0.75rem;
  background: #000;
  color: #F5C842;
  font-family: monospace;
  font-size: 0.78rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  user-select: all;
  cursor: text;
}
.admin-hint {
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ── Admin Export Button ── */
.admin-export {
  display: block;
  width: 100%;
  margin-top: 0.85rem;
  background: var(--yellow);
  color: var(--pond);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}
.admin-export:hover {
  background: var(--yellow-dark);
  transform: translateY(-1px);
}

/* ── Shop Admin Bar ── */
.shop-admin-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--pond);
  border: 2px solid var(--yellow);
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.5rem;
}
.shop-admin-label {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
  font-size: 0.9rem;
}

/* ── Create Product Page ── */
.admin-create-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.admin-create-header {
  margin-bottom: 2rem;
}
.admin-create-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--pond);
  margin-bottom: 0.25rem;
}
.admin-create-header p {
  color: var(--text-light);
  font-size: 0.95rem;
}
.admin-create-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.admin-create-preview {
  position: sticky;
  top: 80px;
}

/* ── Form ── */
.form-group {
  margin-bottom: 1.25rem;
}
.form-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pond);
  margin-bottom: 0.4rem;
}
.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 2px solid #D8D0C4;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: white;
  transition: border-color 0.2s;
  outline: none;
}
.form-input:focus { border-color: var(--pond); }
.form-textarea {
  min-height: 120px;
  resize: vertical;
}
.form-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.3rem;
}
.form-hint code {
  background: #eee;
  padding: 0.1rem 0.3rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

/* ── File Drop ── */
.file-drop {
  border: 2px dashed #C0B8A8;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-light);
  transition: border-color 0.2s, background 0.2s;
  background: #faf8f4;
}
.file-drop:hover {
  border-color: var(--pond);
  background: #f0f4f8;
}

/* ── Export section ── */
.admin-export-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid #E8E0D0;
}
.export-error {
  margin-top: 0.75rem;
  background: #fff0f0;
  border: 1.5px solid #e04040;
  color: #c00;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-family: var(--font-display);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .admin-create-body { grid-template-columns: 1fr; }
  .admin-create-preview { position: static; }
}

/* ── Admin Edit Fields ── */
.admin-field-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
  margin-top: 0.65rem;
}
.admin-field-input {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: white;
  background: rgba(255,255,255,0.08);
  outline: none;
  transition: border-color 0.2s;
}
.admin-field-input:focus { border-color: var(--yellow); }
.admin-field-textarea {
  min-height: 90px;
  resize: vertical;
}
.admin-panel .file-drop {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.65);
  font-size: 0.82rem;
}
.admin-panel .file-drop:hover {
  border-color: var(--yellow);
  background: rgba(255,255,255,0.08);
}

/* ── Model Selector ── */
.model-selector {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}
.model-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 2px solid #D8D0C4;
  background: white;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.15s;
}
.model-btn:hover {
  border-color: var(--pond);
  color: var(--pond);
}
.model-btn.active {
  background: var(--pond);
  color: var(--yellow);
  border-color: var(--pond);
}

/* ── Size Selector ── */
.size-selector {
  margin-bottom: 1.5rem;
}
.size-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pond);
  margin-bottom: 0.6rem;
}
.size-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.size-btn {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  width: 52px;
  height: 40px;
  border-radius: 100px;
  border: 2px solid var(--pond);
  background: white;
  color: var(--pond);
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.size-btn:hover:not(:disabled) {
  background: var(--pond);
  color: var(--yellow);
}
.size-btn.active {
  background: var(--pond);
  color: var(--yellow);
  border-color: var(--pond);
}
.size-btn:disabled {
  border-color: #D8D0C4;
  color: #C0B8A8;
  cursor: not-allowed;
}

/* ── Price Manager ── */
.price-manager-body {
  max-width: 700px;
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.price-row { display: flex; flex-direction: column; gap: 0.4rem; }
.price-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.price-dollar {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--yellow);
  font-size: 1.1rem;
}
.price-input {
  width: 100px;
  text-align: right;
  font-size: 1.1rem !important;
  font-weight: 700 !important;
}

/* ── Garment Tabs ── */
.garment-tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.garment-tabs:empty { display: none; }
.garment-tab {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 100px;
  border: 2px solid var(--pond);
  background: white;
  color: var(--pond);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.garment-tab:hover { background: var(--cream-dark); }
.garment-tab.active {
  background: var(--pond);
  color: var(--yellow);
}
