:root {
  /* Light, sweet palette matching the logo (lavender wordmark, cream/white
     background) - deliberately the opposite mood from Shattering
     Expectations' dark horror theme, matching this business's own identity. */
  --bg: #fdf7fb;
  --surface: #ffffff;
  --text: #3a2e38;
  --muted: #8f7d8a;
  --border: #ecdcea;
  --placeholder: #f6ecf4;
  --accent: #c77dd1;
  --accent-text: #ffffff;
  --danger: #d1557a;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Helvetica Neue', Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  padding: 24px 32px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--surface);
}

.brand { display: inline-block; }
.logo { height: 188px; width: auto; display: block; }

.site-header-nav {
  position: absolute;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
}
.site-header-nav a {
  display: inline-block;
  color: var(--accent-text);
  background: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease,
              background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.site-header-nav a:hover {
  opacity: 0.9;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Below ~700px the absolutely-positioned nav pills (Contact Me + Follow Me
   on Social, ~340px combined) collide with the centered logo - the logo
   alone renders at ~200px wide and the header has no room left over on a
   typical ~375px phone screen. Stack logo above nav instead of overlapping. */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    gap: 14px;
    padding: 20px 16px;
  }
  .site-header-nav {
    position: static;
    transform: none;
    justify-content: center;
    flex-wrap: wrap;
  }
  .logo { height: 125px; }
}

/* Flash messages */
.flash-messages { max-width: 900px; margin: 16px auto 0; padding: 0 24px; }
.flash {
  background: #fde8ee;
  color: var(--danger);
  border: 1px solid #f3c2d2;
  border-radius: 6px;
  padding: 10px 16px;
  font-size: 14px;
}

main { flex: 1; max-width: 1100px; width: 100%; margin: 0 auto; padding: 32px 24px 64px; }

/* Site bio */
.site-bio {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.site-bio-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.site-bio p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
}

/* As seen in (physical stockists) */
.as-seen-in {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.as-seen-in-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.as-seen-in-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  list-style: none;
}
.as-seen-in-list li {
  font-size: 14px;
  padding-left: 20px;
  position: relative;
}
.as-seen-in-list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  color: var(--muted);
  font-size: 11px;
}
.as-seen-in-list li a {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.as-seen-in-list li a:hover { text-decoration: underline; }

/* Social links page */
.social-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.social-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.social-link-card:hover {
  border-color: var(--text);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}
.social-link-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
}
.social-link-icon-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
}
.social-link-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.social-link-name { font-size: 16px; font-weight: 700; color: var(--text); }
.social-link-handle { font-size: 13px; color: var(--muted); }

/* Category nav */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.category-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 20px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.category-nav a:hover { color: var(--text); border-color: var(--text); }

/* Category sections */
.category-section { margin-bottom: 48px; scroll-margin-top: 20px; }
.category-section:last-child { margin-bottom: 0; }

.category-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.category-permalink {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
  padding: 7px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(240, 237, 232, 0.05);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.category-permalink:hover {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  transform: translateY(-1px);
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.empty-state { color: var(--muted); font-size: 15px; grid-column: 1 / -1; text-align: center; padding: 48px 0; }

.product-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.product-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,0.4); transform: translateY(-2px); }

.product-card-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--placeholder);
}

.product-card-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

.no-image {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.no-image.large { min-height: 320px; background: var(--placeholder); border-radius: 8px; }

.badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 20px;
}

.badge-sold-out { background: rgba(0,0,0,0.75); color: #fff; }

.product-card.sold-out .product-card-image img { opacity: 0.5; }

.product-card-body { padding: 14px 16px; }
.product-card-name { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.product-card-price { font-size: 14px; color: var(--muted); }

/* Product detail */
.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover { color: var(--text); }

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

.product-detail-image img { width: 100%; border-radius: 10px; display: block; }

.product-detail-info h1 { font-size: 28px; margin-bottom: 8px; }
.product-detail-price { font-size: 22px; color: var(--muted); margin-bottom: 20px; }
.product-detail-description { font-size: 15px; line-height: 1.6; margin-bottom: 24px; white-space: pre-wrap; }

.stock-note { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.stock-note.sold-out-note { color: var(--danger); font-weight: 600; }
.shipping-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

.buy-button {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
  background: var(--accent);
  color: var(--accent-text);
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.buy-button:hover { opacity: 0.9; }
.buy-button:disabled { background: var(--border); color: var(--muted); cursor: not-allowed; }

/* Footer */
.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 12px;
  border-top: 1px solid var(--border);
}

.site-footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 10px;
}
.site-footer-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
}
.site-footer-nav a:hover { color: var(--text); text-decoration: underline; }

/* Legal / confirmation pages */
.legal-page h1 { font-size: 26px; margin-bottom: 6px; }
.legal-page .legal-updated { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.legal-page h2 { font-size: 17px; margin: 28px 0 10px; }
.legal-page p { font-size: 15px; line-height: 1.7; margin-bottom: 14px; color: var(--text); }
.legal-page ul { margin: 0 0 14px 20px; }
.legal-page li { font-size: 15px; line-height: 1.7; margin-bottom: 6px; }
.legal-page a { color: var(--text); }

/* Checkout address form */
.checkout-address-page { max-width: 480px; margin: 0 auto; }
.checkout-address-page h1 { font-size: 24px; margin-bottom: 10px; }
.checkout-summary { font-size: 15px; color: var(--muted); margin-bottom: 4px; }
.checkout-address-page .shipping-note { margin-bottom: 24px; }

.address-form { display: flex; flex-direction: column; gap: 14px; }
.address-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted);
}
.address-form .optional { font-weight: 400; text-transform: none; }
.address-form input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 15px;
  color: var(--text);
  box-sizing: border-box;
}
.address-form input:focus { outline: none; border-color: var(--text); }
.address-form-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 14px; }
.address-form .buy-button { margin-top: 10px; border: 0; }

@media (max-width: 500px) {
  .address-form-row { grid-template-columns: 1fr; }
}

.confirmation-page {
  text-align: center;
  max-width: 560px;
  margin: 40px auto;
}
.confirmation-page h1 { font-size: 28px; margin-bottom: 14px; }
.confirmation-page p { font-size: 16px; line-height: 1.7; color: var(--muted); margin-bottom: 20px; }
.confirmation-page .buy-button { display: inline-block; width: auto; text-decoration: none; }

@media (max-width: 700px) {
  .product-detail-grid { grid-template-columns: 1fr; }
}
