:root {
  color-scheme: light;
  --bg: #f8faf7;
  --card: #ffffff;
  --primary: #0b0c0b;
  --secondary: #52c64c;
  --accent: #eef8ec;
  --accent-strong: #dff4dc;
  --border: #e9ece8;
  --text: #101110;
  --muted: #73777b;
  --soft: #f1f4f0;
  --shadow: 0 16px 42px rgba(0, 0, 0, .08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--bg) 35%, #ffffff 100%);
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 14px clamp(16px, 4vw, 48px);
  background: rgba(248, 250, 247, .94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(14px);
}

.brand,
.nav a,
.primary-link,
.secondary-link,
.checkout {
  color: inherit;
  text-decoration: none;
}

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

.brand-logo {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .1);
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 4vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

.nav-button {
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
}

.cart-button,
.buy-row button,
.set-panel button,
.cart-header button,
.google-button,
.text-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  color: white;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 700;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  color: var(--primary);
  background: white;
  border-radius: 50%;
  font-size: 13px;
}

.hero {
  min-height: min(720px, calc(100svh - 70px));
  display: flex;
  align-items: center;
  padding: clamp(28px, 6vw, 72px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .95), rgba(238, 248, 236, .72) 48%, rgba(255, 255, 255, .34)),
    url("https://images.unsplash.com/photo-1590736969955-71cc94901144?auto=format&fit=crop&w=1800&q=82") center / cover;
  border-bottom: 1px solid var(--border);
}

.hero-copy {
  width: min(650px, 100%);
  color: var(--text);
  padding: clamp(18px, 4vw, 28px);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-logo {
  width: clamp(96px, 18vw, 150px);
  height: clamp(96px, 18vw, 150px);
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 16px 42px rgba(0, 0, 0, .13);
}

.eyebrow,
.tag {
  margin: 0 0 10px;
  color: var(--primary);
  background: var(--accent);
  border: 1px solid #cbe8d2;
  border-radius: 999px;
  display: inline-flex;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--primary);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(42px, 10vw, 82px);
  font-weight: 700;
  line-height: .98;
  letter-spacing: 0;
}

h2 {
  font-family: "Poppins", ui-sans-serif, system-ui, sans-serif;
  margin-bottom: 12px;
  font-size: clamp(26px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lede {
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(17px, 3vw, 22px);
  line-height: 1.5;
}

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

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 700;
}

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

.secondary-link {
  color: var(--primary);
  background: white;
  border: 1px solid var(--border);
}

.section,
.sets,
.care {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(44px, 8vw, 84px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .9fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
}

.intro p:last-child,
.sets-copy p,
.care-grid p,
.product-body p {
  color: var(--muted);
  line-height: 1.6;
}

.product-grid {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #fff;
  display: block;
}

.product-body {
  padding: 18px;
}

.product-body h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.product-details {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-details summary {
  width: fit-content;
  color: var(--primary);
  cursor: pointer;
  font-weight: 700;
}

.product-details p {
  margin: 10px 0;
}

.product-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.buy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.buy-row strong,
.set-panel strong {
  font-size: 22px;
}

.buy-row button,
.set-panel button {
  min-height: 42px;
  padding: 0 18px;
  color: white;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 700;
}

.sets {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: 22px;
  align-items: stretch;
}

.set-panel {
  display: grid;
  align-content: center;
  gap: 12px;
  min-height: 220px;
  padding: 28px;
  color: white;
  background:
    radial-gradient(circle at 15% 18%, rgba(82, 198, 76, .28), transparent 34%),
    linear-gradient(135deg, var(--primary), #232523);
  border-radius: 8px;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .18);
}

.set-panel span {
  color: rgba(255, 255, 255, .76);
}

.set-panel button {
  width: 100%;
  background: white;
  color: var(--primary);
}

.care {
  padding-top: 10px;
}

.care h2 {
  font-size: 32px;
}

.care-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.care-grid p {
  min-height: 96px;
  margin: 0;
  padding: 18px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 40;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(460px, 100%);
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(110%);
  transition: transform .2s ease;
}

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

.scrim {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  transition: opacity .2s ease;
}

.cart-open .scrim {
  pointer-events: auto;
  opacity: 1;
}

.cart-header,
.cart-footer {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.cart-footer {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-header h2 {
  margin: 0;
  font-size: 22px;
}

.cart-header button {
  width: 40px;
  aspect-ratio: 1;
  background: var(--soft);
  border-radius: 8px;
  font-size: 26px;
}

.cart-items {
  overflow: auto;
  padding: 18px 20px;
}

.cart-line,
.total-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.cart-line {
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-line div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.cart-line span {
  overflow-wrap: anywhere;
}

.cart-line button {
  width: fit-content;
  border: 0;
  padding: 0;
  color: #b42318;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.cart-line strong {
  white-space: nowrap;
}

.empty-cart {
  color: var(--muted);
}

.total-row {
  margin-bottom: 14px;
  font-size: 18px;
}

.checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.details-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.details-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
}

.auth-panel,
.orders-panel {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.auth-panel {
  display: grid;
  gap: 12px;
}

.auth-user {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 10px;
  min-height: 42px;
}

.auth-user img {
  grid-row: span 2;
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.auth-user span,
.auth-user strong,
.order-card span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.auth-user span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-user strong {
  font-size: 14px;
}

.auth-actions,
.orders-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.google-button {
  min-height: 42px;
  width: 100%;
  color: var(--primary);
  background: var(--accent);
  border: 1px solid #cbe8d2;
  border-radius: 8px;
  font-weight: 700;
}

.text-button {
  color: var(--primary);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}

.orders-heading {
  margin-bottom: 10px;
}

.orders-heading h3 {
  margin: 0;
  font-size: 16px;
}

.orders-list {
  display: grid;
  gap: 8px;
  max-height: 180px;
  overflow: auto;
}

.order-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 12px;
  background: var(--soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.order-card div {
  display: grid;
  gap: 3px;
}

.order-card div:last-child {
  text-align: right;
}

.order-card strong {
  font-size: 13px;
}

.order-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 11px;
  color: var(--text);
  background: white;
  font: inherit;
  font-size: 14px;
}

.checkout-form input[readonly],
.checkout-form textarea[readonly] {
  color: var(--muted);
  background: var(--soft);
}

.checkout-form textarea {
  resize: vertical;
}

.full-field {
  grid-column: 1 / -1;
}

.checkout-status {
  min-height: 20px;
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.checkout-status.error {
  color: #b42318;
}

.checkout-status.success {
  color: #087443;
}

.checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  color: white;
  background: var(--primary);
  border-radius: 8px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
}

.checkout:disabled {
  cursor: not-allowed;
  opacity: .58;
}

@media (max-width: 820px) {
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
    background: #f6f8f5;
  }

  .topbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    min-height: 64px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
  }

  .brand {
    display: inline-flex !important;
    min-width: 0;
    position: relative;
    z-index: 30;
  }

  .nav {
    position: fixed !important;
    top: auto !important;
    right: 12px;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 12px;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    min-height: 58px;
    padding: 6px;
    color: var(--muted);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .16);
    backdrop-filter: blur(18px);
  }

  .nav a,
  .nav-button {
    display: grid;
    place-items: center;
    min-width: 0;
    min-height: 46px;
    border-radius: 8px;
    color: var(--primary);
    background: var(--soft);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
  }

  .cart-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px;
  }

  .brand-logo {
    width: 46px;
    height: 46px;
  }

  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 11px;
  }

  .hero {
    min-height: auto;
    align-items: end;
    margin: 12px;
    padding: 54px 14px 14px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .96) 76%),
      url("https://images.unsplash.com/photo-1590736969955-71cc94901144?auto=format&fit=crop&w=1100&q=78") center 28% / cover;
    border: 1px solid var(--border);
    border-radius: 8px;
  }

  .hero-copy {
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .hero-logo {
    display: none;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  .primary-link,
  .secondary-link {
    min-height: 46px;
    padding: 0 12px;
    font-size: 14px;
  }

  .section,
  .sets,
  .care,
  .product-grid {
    width: calc(100% - 24px);
  }

  .section,
  .sets,
  .care {
    padding: 28px 0;
  }

  .intro {
    align-items: start;
    gap: 12px;
  }

  .intro h2,
  .sets h2 {
    font-size: 26px;
    line-height: 1.08;
  }

  .intro,
  .sets,
  .care-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-grid {
    gap: 10px;
    margin-bottom: 14px;
  }

  .care {
    padding-top: 24px;
  }

  .product-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 154px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .07);
    align-items: start;
  }

  .product-card img {
    height: 154px;
    aspect-ratio: 112 / 154;
    object-fit: contain;
    align-self: start;
  }

  .product-body {
    display: grid;
    align-content: center;
    padding: 12px;
  }

  .product-body h2 {
    font-size: 19px;
    line-height: 1.1;
  }

  .product-body p {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.35;
  }

  .tag,
  .eyebrow {
    padding: 6px 9px;
    font-size: 10px;
  }

  .buy-row {
    margin-top: 8px;
  }

  .buy-row strong,
  .set-panel strong {
    font-size: 18px;
  }

  .buy-row button,
  .set-panel button {
    min-width: 68px;
    min-height: 38px;
    padding: 0 13px;
    font-size: 13px;
  }

  .set-panel {
    min-height: 166px;
    padding: 18px;
  }

  .care {
    padding-top: 0;
  }

  .care h2 {
    font-size: 24px;
  }

  .care-grid {
    gap: 8px;
  }

  .care-grid p {
    min-height: auto;
    padding: 14px;
    box-shadow: none;
  }

  .cart-drawer {
    inset: 0;
    width: 100%;
    height: 100dvh;
    grid-template-rows: auto minmax(120px, .55fr) minmax(0, 1fr);
    border-radius: 0;
  }

  .cart-header {
    min-height: 62px;
    padding: 12px 14px;
    background: white;
  }

  .cart-header h2 {
    font-size: 18px;
  }

  .cart-header button {
    width: 38px;
    font-size: 24px;
  }

  .cart-items {
    padding: 10px 14px;
  }

  .cart-footer {
    overflow: auto;
    padding: 14px 14px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
  }

  .auth-panel,
  .orders-panel {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }

  .orders-list {
    max-height: 126px;
  }

  .checkout-form {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .checkout-form input,
  .checkout-form textarea {
    min-height: 42px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .checkout-status {
    font-size: 12px;
  }

  .checkout {
    position: sticky;
    bottom: 0;
    min-height: 50px;
    box-shadow: 0 -10px 24px rgba(255, 255, 255, .88);
  }
}

@media (max-width: 520px) {
  .topbar {
    padding: 9px 12px;
  }

  .cart-button span {
    display: none;
  }

  .brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 8px;
  }

  .brand {
    gap: 9px;
  }

  .brand span {
    max-width: 150px;
  }

  .hero {
    margin: 10px;
    padding: 44px 12px 12px;
  }

  h1 {
    margin-bottom: 8px;
    font-size: 38px;
    line-height: 1;
  }

  h2 {
    font-size: 25px;
  }

  .lede {
    font-size: 15px;
    line-height: 1.42;
  }

  .hero-actions {
    grid-template-columns: 1fr;
  }

  .product-card {
    grid-template-columns: 104px minmax(0, 1fr);
  }

  .product-card img {
    height: 148px;
    aspect-ratio: 104 / 148;
    object-fit: contain;
  }

  .product-grid {
    margin-bottom: 16px;
  }

  .care {
    padding-top: 26px;
  }

  .sets {
    gap: 12px;
  }

  .checkout-form,
  .details-heading {
    grid-template-columns: 1fr;
  }

  .details-heading {
    align-items: start;
  }
}
