/* ============================================================
   Bloop Hut Official - styles
   Cute, chill, clean. Blue + green brand, coral accents.
   ============================================================ */

:root {
  --bg: #ffffff;
  --blue: #5bbde6;
  --green: #69d6a3;
  --coral: #ff7f7f;
  --navy: #16313f;
  --soft-blue: #eaf8ff;
  --soft-green: #ecfff5;
  --soft-coral: #fff0f0;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 8px 24px rgba(22, 49, 63, 0.08);
  --shadow-hover: 0 12px 30px rgba(22, 49, 63, 0.14);
  --maxw: 1100px;

  --font-body: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  /* Headings: a rounded, friendly, readable display feel.
     Swap to a hosted cursive font later if desired. */
  --font-head: 'Trebuchet MS', 'Segoe UI', sans-serif;
}

/* ----- Base ----- */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--bg);
  line-height: 1.6;
}

h1, h2, h3, .brand-name, .footer-title {
  font-family: var(--font-head);
  line-height: 1.2;
}

a { color: var(--blue); }

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }
.center { text-align: center; }
.is-hidden { display: none !important; }

.visually-hidden, .skip-link {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed; top: 8px; left: 8px;
  width: auto; height: auto;
  padding: 10px 16px; margin: 0;
  background: var(--navy); color: #fff;
  border-radius: 10px; z-index: 100; clip: auto;
}

/* ----- Buttons ----- */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
  margin: 6px 6px 6px 0;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: #ff6a6a; }
.btn-secondary { background: var(--soft-blue); color: var(--navy); }
.btn-secondary:hover { background: #d8f1ff; }
.btn-large { padding: 15px 30px; font-size: 1.1rem; }
.btn-text {
  background: none; padding: 6px 8px; color: var(--coral);
  text-decoration: underline; border-radius: 8px;
}

/* ----- Header / nav ----- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--soft-blue);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); }
.brand-bubble { font-size: 1.4rem; }
.brand-name { font-size: 1.3rem; font-weight: 700; }

.site-nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.site-nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.site-nav a:hover, .site-nav a.is-active { color: var(--blue); }
.cart-link { display: inline-flex; align-items: center; gap: 6px; }
.cart-count {
  background: var(--coral); color: #fff;
  border-radius: 999px; padding: 1px 9px; font-size: 0.85rem; font-weight: 700;
}

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

/* ----- Hero ----- */
.hero {
  background: linear-gradient(160deg, var(--soft-blue), var(--soft-green));
  padding: 60px 0;
}
.hero-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.hero-text { flex: 1 1 320px; }
.hero-intro { font-size: 1.1rem; color: var(--blue); font-weight: 700; margin: 0 0 6px; }
.hero-title { font-size: clamp(2.4rem, 6vw, 3.6rem); margin: 0 0 10px; }
.hero-tagline { font-size: 1.2rem; margin: 0 0 24px; }
.hero-art { flex: 1 1 240px; position: relative; min-height: 220px; display: grid; place-items: center; }
.hero-bloop { font-size: 5rem; position: relative; z-index: 2; }
.blob { position: absolute; border-radius: 50%; filter: blur(4px); opacity: 0.55; }
.blob-blue { width: 180px; height: 180px; background: var(--blue); top: 10px; left: 30px; }
.blob-green { width: 150px; height: 150px; background: var(--green); bottom: 10px; right: 30px; }

/* ----- Sections ----- */
.section { padding: 50px 0; }
.section-soft-blue { background: var(--soft-blue); }
.section-title { font-size: 1.8rem; margin: 0 0 20px; }
.page-title { font-size: clamp(2rem, 5vw, 2.8rem); margin: 0 0 8px; }
.page-subtitle { margin: 0 0 28px; color: #4a6675; }

/* ----- Product grid + cards ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-bottom: 24px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.product-card-link { text-decoration: none; color: inherit; display: block; }
.product-image-wrap { position: relative; background: var(--soft-green); aspect-ratio: 1 / 1; }
.product-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.product-card-body { padding: 14px 16px 18px; }
.product-card-name { margin: 0 0 4px; font-size: 1.15rem; }
.product-card-category { margin: 0 0 8px; color: #6b8794; font-size: 0.9rem; }
.product-card-price { margin: 0; font-weight: 700; color: var(--coral); font-size: 1.1rem; }

/* ----- Badges ----- */
.badge {
  position: absolute; top: 10px;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; color: #fff;
}
.badge-sale { left: 10px; background: var(--coral); }
.badge-limited { right: 10px; background: var(--blue); }

/* ----- Feature cards ----- */
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature-card {
  display: block; padding: 26px; border-radius: var(--radius-lg);
  text-decoration: none; color: var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-card h3 { margin: 0 0 8px; }
.feature-card p { margin: 0; }
.feature-coral { background: var(--soft-coral); }
.feature-blue { background: var(--soft-blue); }
.feature-green { background: var(--soft-green); }

/* ----- Bloop intro ----- */
.bloop-intro { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.bloop-intro-art { font-size: 2.4rem; flex: 0 0 auto; }

/* ----- Shop controls ----- */
.shop-controls { background: var(--soft-blue); border-radius: var(--radius); padding: 18px; margin-bottom: 26px; }
.control-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.control-row + .control-row { margin-top: 12px; }
.control-search input, .control-category select {
  font: inherit; padding: 10px 14px; border-radius: 999px;
  border: 2px solid #cfeefc; background: #fff; color: var(--navy);
}
.control-search { flex: 1 1 240px; }
.control-search input { width: 100%; }
.control-checks { gap: 20px; }
.control-checks label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }

/* ----- Product detail ----- */
.back-link { display: inline-block; margin-bottom: 18px; text-decoration: none; font-weight: 600; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.product-detail-image { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--soft-green); }
.product-detail-image img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-detail-category { color: #6b8794; margin: 0 0 4px; }
.product-detail-name { margin: 0 0 8px; font-size: 2rem; }
.product-detail-price { font-size: 1.5rem; font-weight: 700; color: var(--coral); margin: 0 0 18px; }
.product-detail-description { margin: 0 0 18px; }
.discount-note { background: var(--soft-blue); padding: 10px 14px; border-radius: var(--radius); }

.field { display: block; margin-bottom: 16px; }
.field-label { display: block; font-weight: 700; margin-bottom: 6px; }
.field select, .field input, .contact-form input, .contact-form textarea {
  font: inherit; width: 100%; max-width: 320px;
  padding: 10px 14px; border-radius: 12px;
  border: 2px solid #cfeefc; background: #fff; color: var(--navy);
}
.field-qty input { max-width: 110px; }

/* ----- Cart ----- */
.cart-items { list-style: none; margin: 0 0 24px; padding: 0; }
.cart-item {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; margin-bottom: 14px; flex-wrap: wrap;
}
.cart-item-image { width: 76px; height: 76px; object-fit: cover; border-radius: 12px; background: var(--soft-green); }
.cart-item-info { flex: 1 1 200px; }
.cart-item-name { margin: 0 0 4px; font-size: 1.1rem; }
.cart-item-options { margin: 0 0 4px; color: #6b8794; font-size: 0.9rem; }
.cart-item-price { margin: 0; font-weight: 700; color: var(--coral); }
.cart-item-controls { display: flex; align-items: center; gap: 10px; }
.cart-item-qty { width: 70px; padding: 8px; border-radius: 10px; border: 2px solid #cfeefc; font: inherit; }
.cart-summary {
  background: var(--soft-green); border-radius: var(--radius);
  padding: 20px; display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px;
}
.cart-total { font-size: 1.3rem; font-weight: 700; margin: 0; }

/* ----- Notices / cards / faq ----- */
.notice { border-radius: var(--radius); padding: 16px 20px; margin: 0 0 22px; }
.notice p { margin: 0; }
.notice-coral { background: var(--soft-coral); border: 2px solid #ffd9d9; }
.notice-blue { background: var(--soft-blue); border: 2px solid #cfeefc; }
.notice-green { background: var(--soft-green); border: 2px solid #cdf3e2; }

.discount-form {
  background: var(--soft-coral); border-radius: var(--radius-lg);
  padding: 24px; margin: 0 0 22px;
}
.discount-form .field { max-width: 320px; margin: 0 auto 14px; }
.discount-form .field input { max-width: none; text-align: center; }
.discount-form-actions { text-align: center; }
.discount-result {
  border-radius: var(--radius); padding: 18px 20px; margin: 0 0 22px;
  text-align: center; font-size: 1.1rem;
}
.discount-result.is-success { background: var(--soft-green); border: 2px solid #cdf3e2; }
.discount-result.is-error { background: var(--soft-coral); border: 2px solid #ffd9d9; }
.discount-result-percent { font-size: 1.8rem; font-weight: 800; color: var(--coral); margin: 0 0 6px; }
.discount-result-perks { margin: 6px 0 0; }

.faq dt { font-weight: 700; margin-top: 14px; }
.faq dd { margin: 4px 0 0; }
.form-note { color: #6b8794; font-style: italic; }

.empty-state {
  background: var(--soft-blue); border-radius: var(--radius);
  padding: 22px; text-align: center; font-size: 1.1rem;
}

/* ----- Footer ----- */
.site-footer { background: var(--navy); color: #dff3fb; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; padding-top: 40px; padding-bottom: 20px; }
.footer-title { margin: 0 0 8px; color: #fff; }
.footer-tagline { margin: 0; }
.footer-col h3 { margin: 0 0 10px; color: #fff; font-size: 1rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 6px; }
.footer-col a { color: #bfe6f5; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-note { text-align: center; padding: 16px; margin: 0; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.9rem; }

/* ----- Confetti ----- */
.bloop-confetti-piece {
  position: fixed; z-index: 90; pointer-events: none;
  font-size: 1.6rem; will-change: transform, opacity;
}
.bloop-confetti-dot {
  position: fixed; z-index: 90; pointer-events: none;
  width: 10px; height: 10px; border-radius: 50%;
  will-change: transform, opacity;
}

/* ----- Bloop photos ----- */
.hero-bloop-img {
  position: relative; z-index: 2;
  width: min(340px, 80%); aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: var(--shadow);
}
.bloop-intro-img {
  flex: 0 0 auto;
  width: min(320px, 100%); aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.about-photo {
  width: 100%; max-width: 640px;
  aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  margin: 6px 0 22px;
}

/* ----- Responsive ----- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 12px;
    background: #fff; padding: 18px 20px; box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .product-detail { grid-template-columns: 1fr; }
  .bloop-intro-img { width: 100%; }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .btn:hover, .product-card:hover, .feature-card:hover { transform: none; }
}
