/*
Design DNA
- Style Preset: Friendly Commerce (round, soft shadow, airy, big buttons)
- Color Strategy: Fresh Duo + Neutral Base (ivory/light gray base + teal + coral)
- Layout Pattern: Sticky Header + Product Grid + Side Cart Drawer
- Section Order: Header > Hero > Category Quick Links > Featured Products > All Products > How It Works > Contact & Directions > Business Info > Footer
- Icon Style: Rounded Filled SVG Icons
- Background Pattern: Soft Blob Shapes
*/
:root {
  --ivory: #faf6f1;
  --light-gray: #f3f5f7;
  --teal: #18a7a1;
  --teal-2: #2bc2bc;
  --coral: #ff7d6b;
  --ink: #24313a;
  --muted: #5f6b73;
  --white: #ffffff;
  --radius-card: 18px;
  --radius-btn: 999px;
  --shadow-soft: 0 10px 30px rgba(36, 49, 58, 0.08);
  --shadow-lift: 0 14px 36px rgba(36, 49, 58, 0.12);
  --container: 1120px;
  --header-h: 76px;
  --gap: 20px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font-family: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
  position: relative;
}

.section-title {
  font-size: 28px;
  margin: 0 0 18px;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 26px;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 246, 241, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(36, 49, 58, 0.08);
}

.header-inner {
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr 2fr 1.4fr;
  gap: 16px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand img { width: 36px; height: 36px; }

.search-wrap {
  position: relative;
}

.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 40px;
  border: 1px solid #e0e5e9;
  background: var(--white);
  border-radius: var(--radius-btn);
}

.search-wrap svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  fill: var(--muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-end;
}

.select {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #e0e5e9;
  background: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--teal);
  color: var(--white);
}

.btn-secondary {
  background: transparent;
  color: var(--coral);
  border-color: var(--coral);
}

.btn-ghost {
  background: var(--white);
  border-color: #e0e5e9;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-soft); }

.btn:focus, input:focus, select:focus, textarea:focus, a:focus {
  outline: 3px solid rgba(24, 167, 161, 0.4);
  outline-offset: 2px;
}

.cart-btn {
  position: relative;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--coral);
  color: var(--white);
  border-radius: 50%;
  font-size: 12px;
  padding: 2px 6px;
}

.hamburger {
  display: none;
  background: var(--white);
  border: 1px solid #e0e5e9;
  border-radius: 12px;
  width: 44px;
  height: 44px;
}

.nav-panel {
  display: none;
  padding: 16px 0 24px;
}

.nav-panel.open { display: block; }

.hero {
  padding: 70px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

.hero-card {
  background: var(--white);
  border-radius: 26px;
  padding: 36px;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.5;
}

.hero-card::before {
  width: 200px;
  height: 200px;
  background: #d9f2f1;
  top: -80px;
  left: -60px;
}

.hero-card::after {
  width: 180px;
  height: 180px;
  background: #ffe2dc;
  bottom: -60px;
  right: -60px;
}

.hero h1 {
  font-size: 34px;
  margin: 0 0 10px;
}

.hero p {
  margin: 0 0 20px;
  color: var(--muted);
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual {
  background: var(--light-gray);
  border-radius: 28px;
  padding: 16px;
  box-shadow: var(--shadow-soft);
}

.quick-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.card {
  background: var(--white);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }

.badge {
  display: inline-flex;
  padding: 4px 10px;
  background: #e3f6f5;
  color: var(--teal);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.badge.coral { background: #ffe3dd; color: var(--coral); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}

.product-card img {
  border-radius: 16px;
  background: var(--light-gray);
}

.product-card h4 { margin: 12px 0 4px; }

.product-meta { color: var(--muted); font-size: 14px; }

.tag {
  display: inline-block;
  background: #eff4f6;
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.price { font-weight: 700; font-size: 18px; margin: 8px 0; }

.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #e0e5e9;
  border-radius: 999px;
  padding: 4px;
}

.stepper button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--light-gray);
  cursor: pointer;
}

.stepper input {
  width: 36px;
  border: none;
  text-align: center;
  background: transparent;
}

.filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 49, 58, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 60;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: var(--white);
  box-shadow: var(--shadow-lift);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  z-index: 70;
  display: flex;
  flex-direction: column;
}

.drawer.open { transform: translateX(0); }

.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer-header {
  padding: 20px;
  border-bottom: 1px solid #eef1f3;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-content {
  padding: 16px 20px;
  overflow: auto;
  flex: 1;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

.cart-item img { border-radius: 12px; background: var(--light-gray); }

.cart-item h5 { margin: 0; }

.cart-summary {
  padding: 16px 20px;
  border-top: 1px solid #eef1f3;
}

.cart-total { font-weight: 700; font-size: 18px; }

.how-grid,
.contact-grid,
.info-grid {
  display: grid;
  gap: var(--gap);
}

.how-grid { grid-template-columns: repeat(4, 1fr); }

.contact-grid { grid-template-columns: 1.2fr 0.8fr; }

.info-grid { grid-template-columns: 1fr 1fr; }

.info-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.info-table th,
.info-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f3;
  text-align: left;
}

.footer {
  padding: 40px 0 60px;
  color: var(--muted);
}

.notice {
  background: #fff6f4;
  border-left: 4px solid var(--coral);
  padding: 12px 16px;
  border-radius: 12px;
  margin-top: 16px;
}

.blob-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(0px);
  opacity: 0.35;
}

.blob.teal { background: #cfeeed; top: -60px; right: -80px; }

.blob.coral { background: #ffe2dc; bottom: -80px; left: -60px; }

.anchor-offset { scroll-margin-top: calc(var(--header-h) + 12px); }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: 1fr auto auto; }
  .search-wrap { grid-column: 1 / -1; order: 3; }
  .hero-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner { grid-template-columns: 1fr auto; }
  .search-wrap { display: none; }
  .hamburger { display: inline-flex; align-items: center; justify-content: center; }
  .header-actions { gap: 6px; }
  .quick-links { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .nav-panel { border-top: 1px solid #eef1f3; }
  .nav-panel .search-wrap { display: block; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
