:root {
  --ink: #17212b;
  --muted: #667085;
  --line: #d8e1e7;
  --paper: #ffffff;
  --soft: #f4f8fa;
  --mint: #0f9f8f;
  --mint-dark: #08766d;
  --coral: #f06d5f;
  --amber: #f5b84b;
  --blue: #3b82c4;
  --shadow: 0 20px 50px rgba(26, 48, 63, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #f6f8f9;
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px clamp(14px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  position: relative;
  min-width: 190px;
}

.brand img {
  display: block;
  width: min(250px, 46vw);
  max-height: 52px;
  object-fit: contain;
}

.brand-cross-trace {
  display: none !important;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #344054;
  font-size: 15px;
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--mint-dark);
}

.cart-button,
.install-app-button,
.primary-action,
.secondary-action,
.checkout-button,
.continue-shopping-button,
.filter-button,
.icon-button,
.add-button {
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: white;
  background: var(--ink);
}

.install-app-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  color: white;
  background: var(--mint);
  border: 0;
  border-radius: 999px;
  appearance: none;
  box-shadow: 0 8px 18px rgba(15, 159, 143, 0.18);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.site-header > .install-app-button {
  min-height: 40px;
  padding: 0 16px;
  color: white;
  background: var(--mint);
  border: 0;
  border-radius: 999px;
}

.install-app-button[hidden] {
  display: none;
}

.install-app-button:hover {
  background: var(--mint-dark);
}

.cart-icon {
  width: 22px;
  height: 18px;
  flex: 0 0 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-icon {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 6vw, 80px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px) 36px;
  background:
    linear-gradient(120deg, rgba(15, 159, 143, 0.08), rgba(59, 130, 196, 0.08)),
    #ffffff;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
}

.hero-copy p:not(.eyebrow) {
  max-width: 610px;
  color: var(--muted);
  font-size: 18px;
}

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

.primary-action,
.secondary-action,
.checkout-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
}

.primary-action,
.checkout-button {
  color: white;
  background: var(--mint);
}

.primary-action:hover,
.checkout-button:hover {
  background: var(--mint-dark);
}

.secondary-action {
  color: var(--ink);
  background: #e9f1f4;
}

.hero-visual {
  min-height: 430px;
  display: grid;
  align-items: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.84)),
    repeating-linear-gradient(90deg, #dce9ed 0 1px, transparent 1px 68px),
    #f8fbfc;
  box-shadow: var(--shadow);
}

.shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
  gap: 16px;
  min-height: 310px;
  padding: 0 12px 42px;
}

.shelf::after {
  position: absolute;
  right: 0;
  bottom: 18px;
  left: 0;
  height: 22px;
  content: "";
  background: #b7c9d0;
  border-radius: 6px;
  box-shadow: 0 15px 24px rgba(23, 33, 43, 0.14);
}

.product-pack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
  padding: 18px 14px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 16px 32px rgba(23, 33, 43, 0.18);
}

.product-pack span {
  font-weight: 800;
}

.product-pack i {
  display: block;
  width: 100%;
  height: 44px;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 6px;
}

.pack-tall {
  height: 250px;
  background: var(--mint);
}

.pack-box {
  height: 190px;
  background: var(--coral);
}

.pack-bottle {
  height: 230px;
  border-radius: 28px 28px 8px 8px;
  background: var(--blue);
}

.pack-small {
  height: 150px;
  background: var(--amber);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(18px, 4vw, 56px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  transform: translateY(22px);
}

.trust-strip article {
  padding: 22px;
  background: white;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.catalog,
.split-section,
.contact-section {
  padding: 52px clamp(14px, 4vw, 56px);
}

.hero,
.trust-strip {
  display: none;
}

.catalog-first {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding-top: 34px;
}

.section-heading,
.split-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: 18px;
  align-items: center;
}

.contact-copy {
  display: grid;
  gap: 14px;
}

.map-card {
  position: relative;
  display: block;
  min-height: 280px;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 48, 63, 0.08);
}

.map-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

.map-card span {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  color: white;
  background: var(--ink);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(26, 48, 63, 0.2);
}

.search-box {
  display: grid;
  gap: 7px;
  color: #485766;
  font-weight: 700;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  margin: 22px 0 18px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.filters::-webkit-scrollbar {
  display: none;
}

.filter-button {
  flex: 0 0 auto;
  padding: 0 14px;
  color: #344054;
  background: white;
  border: 1px solid var(--line);
}

.filter-button.is-active {
  color: white;
  background: var(--ink);
  border-color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
  align-items: stretch;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(26, 48, 63, 0.07);
}

.product-art {
  display: grid;
  place-items: center;
  aspect-ratio: 1.12 / 1;
  padding: 12px;
  background: var(--product-bg);
}

.product-art::before {
  grid-area: 1 / 1;
  width: 100%;
  height: 100%;
  content: "";
  background: white;
  border-radius: 6px;
}

.mini-pack {
  width: 34%;
  min-width: 72px;
  max-width: 110px;
  height: auto;
  aspect-ratio: 0.68 / 1;
  padding: 14px 10px;
  color: white;
  background: var(--product-color);
  border-radius: 8px;
  box-shadow: 0 14px 24px rgba(23, 33, 43, 0.18);
}

.product-photo {
  grid-area: 1 / 1;
  display: block;
  width: min(88%, 210px);
  height: min(88%, 210px);
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  filter: saturate(1.02) contrast(1.02);
}

.product-photo-fallback {
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  width: min(84%, 190px);
  height: min(84%, 190px);
  color: #486072;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
  background: #f4f8fa;
  border: 1px dashed #b8cad8;
  border-radius: 8px;
}

.mini-pack::before,
.mini-pack::after {
  display: block;
  content: "";
  background: rgba(255, 255, 255, 0.75);
  border-radius: 5px;
}

.mini-pack::before {
  width: 48px;
  height: 12px;
  margin-bottom: 22px;
}

.mini-pack::after {
  width: 100%;
  height: 42px;
}

.product-info {
  display: grid;
  grid-template-rows: minmax(128px, auto) auto auto;
  gap: 10px;
  padding: 14px;
}

.product-copy {
  min-width: 0;
}

.product-info h3 {
  display: -webkit-box;
  min-height: 44px;
  margin: 5px 0 8px;
  overflow: hidden;
  font-size: 17px;
  line-height: 1.28;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  min-width: 0;
  padding-top: 4px;
  border-top: 1px solid #edf3f5;
}

.meta-label {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.badge {
  color: var(--mint-dark);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  display: block;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.product-info p {
  color: var(--muted);
  min-height: 39px;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  margin-bottom: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.add-button {
  width: 100%;
  color: white;
  background: var(--ink);
}

.add-button:hover {
  background: var(--mint-dark);
}

.add-button:disabled {
  cursor: not-allowed;
  background: #d9e4e8;
  color: #5f7180;
}

.stock-label {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
  text-align: right;
}

.stock-label.is-empty {
  color: var(--coral);
}

.split-section {
  align-items: start;
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefits-showcase {
  display: grid;
  gap: 24px;
  padding: clamp(46px, 7vw, 76px) clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, #ffffff 0%, #f2faf9 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.benefits-heading {
  width: min(920px, 100%);
  margin: 0 auto;
  text-align: center;
}

.benefits-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.benefit-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(1100px, 100%);
  margin: 0 auto;
}

.benefit-list article {
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 48, 63, 0.08);
}

.benefit-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  color: white;
  background: var(--mint-dark);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.benefit-list h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.benefit-list p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.benefit-list p,
.contact-section p,
.site-footer p {
  color: var(--muted);
}

.contact-section {
  align-items: center;
}

.cart-panel {
  position: fixed;
  top: 80px;
  right: clamp(16px, 3vw, 34px);
  z-index: 30;
  display: none;
  width: min(390px, calc(100vw - 32px));
  max-height: calc(100vh - 108px);
  padding: 18px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.mobile-tabbar {
  display: none;
}

.cart-panel.is-open {
  display: block;
}

.cart-header,
.cart-item,
.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cart-item {
  align-items: flex-start;
}

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

.icon-button {
  width: 38px;
  min-height: 38px;
  color: var(--ink);
  background: #e9f1f4;
}

.cart-items {
  display: grid;
  gap: 12px;
  margin: 18px 0;
}

.cart-item {
  padding: 12px;
  background: var(--soft);
  border-radius: 8px;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 8px;
}

.qty-button,
.remove-button {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.qty-button {
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
}

.remove-button {
  color: white;
  background: var(--coral);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  color: var(--muted);
  font-size: 13px;
}

.cart-total {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 18px;
}

.checkout-button {
  width: 100%;
  margin-top: 16px;
}

.continue-shopping-button {
  display: none;
  width: 100%;
  margin-top: 10px;
  color: var(--ink);
  background: #e9f1f4;
  appearance: none;
  border: 0;
}

.continue-shopping-button.is-buzzing {
  animation: soft-buzz 360ms ease-out 1;
}

@keyframes soft-buzz {
  0%,
  100% {
    transform: translateX(0);
  }

  18% {
    transform: translateX(-3px);
  }

  36% {
    transform: translateX(3px);
  }

  54% {
    transform: translateX(-2px);
  }

  72% {
    transform: translateX(2px);
  }
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: white;
}

.site-footer p {
  max-width: 820px;
  margin-bottom: 0;
}

.footer-map-link {
  display: inline-flex;
  margin-left: 10px;
  color: white;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer span {
  white-space: nowrap;
}

.auth-page {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(15, 159, 143, 0.08), transparent 42%),
    #f6f8f9;
}

.auth-shell,
.profile-shell {
  width: min(1040px, calc(100% - 28px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.auth-shell {
  display: grid;
  min-height: 100vh;
  place-items: center;
}

.auth-brand,
.profile-header .auth-brand {
  display: inline-flex;
  justify-self: start;
  margin-bottom: 18px;
}

.auth-brand img {
  width: min(170px, 58vw);
  max-height: 54px;
}

.auth-card,
.profile-card,
.profile-hero {
  width: min(520px, 100%);
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 48, 63, 0.08);
}

.auth-card h1,
.profile-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(32px, 8vw, 46px);
}

.auth-card > p:not(.eyebrow),
.profile-hero p,
.profile-list-item span {
  color: var(--muted);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

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

.auth-form label,
.checkout-form label {
  display: grid;
  gap: 7px;
  color: #485766;
  font-size: 14px;
  font-weight: 800;
}

.auth-form input,
.checkout-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.auth-form .primary-action,
.checkout-form .primary-action {
  width: 100%;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  color: var(--mint-dark);
  font-size: 14px;
  font-weight: 800;
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.profile-header .auth-brand {
  margin-bottom: 0;
}

.profile-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 164px;
  margin-bottom: 14px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 159, 143, 0.14), rgba(255, 255, 255, 0.96) 52%),
    white;
  border-color: #cbe4e2;
}

.profile-avatar {
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  color: white;
  background: linear-gradient(135deg, var(--mint-dark), var(--mint));
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(15, 159, 143, 0.22);
  font-size: 22px;
  font-weight: 900;
}

.profile-hero-copy {
  min-width: 0;
}

.profile-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.profile-action {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px 12px;
  align-items: center;
  min-height: 82px;
  padding: 16px;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(26, 48, 63, 0.07);
  text-decoration: none;
}

.profile-action.is-primary {
  color: white;
  background: var(--mint-dark);
  border-color: var(--mint-dark);
}

.profile-action-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: rgba(15, 159, 143, 0.12);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.profile-action.is-primary .profile-action-icon {
  color: var(--mint-dark);
  background: white;
}

.profile-action strong,
.profile-action small {
  display: block;
}

.profile-action small {
  grid-column: 2;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.profile-action.is-primary small {
  color: rgba(255, 255, 255, 0.86);
}

.profile-next-medication {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.32fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
  background: #fff8fb;
  border: 1px solid #f7c6d6;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 48, 63, 0.08);
}

.profile-next-medication h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 4vw, 36px);
}

.profile-next-medication p {
  color: #526173;
}

.profile-next-medication .primary-action {
  width: 100%;
  min-height: 54px;
  border-radius: 12px;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.profile-card {
  width: 100%;
  min-height: 220px;
}

.profile-card h2 {
  margin-bottom: 0;
  font-size: 24px;
}

.profile-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.profile-card-title span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--mint-dark);
  background: #e8f7f5;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 900;
}

.profile-list {
  display: grid;
  gap: 12px;
}

.profile-list-item {
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.profile-list-link {
  color: var(--ink);
  text-decoration: none;
}

.profile-list-link::after {
  content: "Abrir";
  display: inline-flex;
  margin-top: 10px;
  color: var(--mint-dark);
  font-size: 13px;
  font-weight: 900;
}

.profile-list-item strong,
.profile-list-item span {
  display: block;
}

.checkout-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 18px;
  background: rgba(23, 33, 43, 0.42);
}

.checkout-overlay.is-open {
  display: flex;
}

.checkout-sheet {
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  overflow: auto;
  padding: 20px;
  background: white;
  border-radius: 16px 16px 8px 8px;
  box-shadow: var(--shadow);
}

.checkout-sheet-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.checkout-sheet h2 {
  margin-bottom: 6px;
  font-size: 26px;
}

.checkout-sheet p {
  color: var(--muted);
}

.checkout-form {
  display: grid;
  gap: 14px;
}

.checkout-form fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
}

.checkout-form legend {
  margin-bottom: 4px;
  font-weight: 800;
}

.checkout-status {
  min-height: 20px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.checkout-status[data-type="error"],
.save-status[data-type="error"] {
  color: var(--coral);
}

.checkout-status[data-type="success"],
.save-status[data-type="success"] {
  color: var(--mint-dark);
}

.medication-page {
  color: #111d2a;
}

.medication-shell {
  width: min(980px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 90px;
}

.medication-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.medication-header .auth-brand {
  margin-bottom: 0;
}

.medication-hero,
.medication-alert,
.medication-form-card,
.medication-list-section {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(26, 48, 63, 0.08);
}

.medication-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
}

.medication-hero h1 {
  margin-bottom: 0;
  font-size: clamp(34px, 8vw, 54px);
  line-height: 1;
}

.medication-hero p:not(.eyebrow),
.medication-alert p,
.medication-status,
.medication-details dd,
.medication-card-main p,
.medication-empty p {
  color: #526173;
  font-size: 17px;
}

.medication-add-main,
.medication-form .primary-action,
.medication-actions .primary-action {
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
  font-size: 18px;
}

.home-medication-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.24fr);
  gap: 14px;
  align-items: center;
  margin: 18px 0 8px;
  padding: 18px;
  background: #fff8fb;
  border: 1px solid #f7c6d6;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(26, 48, 63, 0.08);
}

.home-medication-card h3 {
  margin-bottom: 4px;
  font-size: 24px;
}

.home-medication-card p:not(.eyebrow) {
  margin-bottom: 0;
  color: #526173;
  font-size: 17px;
  font-weight: 700;
}

.home-medication-card .primary-action {
  width: 100%;
  min-height: 52px;
  border-radius: 12px;
}

.medication-alert {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.4fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  background: #fff8fb;
  border-color: #f7c6d6;
}

.medication-alert h2 {
  margin-bottom: 6px;
  font-size: clamp(26px, 5vw, 36px);
}

.medication-form-card {
  margin-bottom: 16px;
}

.medication-section-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.medication-section-head h2 {
  margin-bottom: 0;
  font-size: clamp(26px, 5vw, 34px);
}

.medication-form {
  display: grid;
  gap: 18px;
}

.medication-form label {
  display: grid;
  gap: 9px;
  color: #2f3b48;
  font-size: 17px;
  font-weight: 800;
}

.medication-form input,
.medication-form select,
.medication-form textarea {
  width: 100%;
  min-height: 56px;
  padding: 0 15px;
  color: var(--ink);
  background: #f7fafb;
  border: 1px solid #cbd8df;
  border-radius: 12px;
  font-size: 18px;
}

.medication-form textarea {
  min-height: 120px;
  padding-top: 14px;
  resize: vertical;
}

.medication-check {
  display: flex !important;
  grid-template-columns: none;
  align-items: center;
  gap: 12px !important;
  padding: 16px;
  background: #e8f7f5;
  border: 1px solid #b7ded8;
  border-radius: 12px;
}

.medication-check input {
  width: 26px;
  min-height: 26px;
  flex: 0 0 26px;
}

.medication-status {
  min-height: 24px;
  margin: 0;
  font-weight: 800;
}

.medication-status[data-type="error"] {
  color: var(--coral);
}

.medication-status[data-type="success"] {
  color: var(--mint-dark);
}

.medication-list {
  display: grid;
  gap: 14px;
}

.medication-card,
.medication-empty {
  padding: 18px;
  background: #f7fafb;
  border: 1px solid #cbd8df;
  border-radius: 12px;
}

.medication-card.is-paused {
  opacity: 0.74;
}

.medication-card-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.medication-pill-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  flex: 0 0 52px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 28px;
}

.medication-card h3,
.medication-empty h3 {
  margin-bottom: 4px;
  font-size: clamp(24px, 5vw, 32px);
  line-height: 1.12;
}

.medication-details {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.medication-details div {
  display: grid;
  gap: 2px;
}

.medication-details dt {
  color: #2f3b48;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.medication-details dd {
  margin: 0;
  font-weight: 700;
}

.medication-progress {
  height: 12px;
  overflow: hidden;
  background: #dfe8ed;
  border-radius: 999px;
}

.medication-progress span {
  display: block;
  height: 100%;
  background: var(--mint);
  border-radius: inherit;
}

.medication-progress-text {
  margin: 7px 0 0;
  color: #526173;
  font-size: 14px;
  font-weight: 800;
}

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

.medication-actions .primary-action {
  grid-column: 1 / -1;
}

.medication-actions .secondary-action,
.medication-delete {
  min-height: 50px;
  border-radius: 12px;
  font-size: 16px;
}

.medication-delete {
  width: 100%;
  background: #f06d5f;
}

@media (max-width: 980px) {
  .hero,
  .section-heading,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .map-card,
  .map-card iframe {
    min-height: 240px;
  }

  .hero-visual {
    min-height: 360px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 76px;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 9px 14px;
  }

  .main-nav {
    display: none;
  }

  .brand {
    min-width: 0;
  }

  .brand img {
    width: min(250px, 62vw);
    max-height: 58px;
  }

  .cart-button {
    min-width: 58px;
    width: 58px;
    justify-content: center;
    padding: 0;
    color: var(--ink);
    background: white;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(26, 48, 63, 0.1);
  }

  .cart-button span:not(.cart-icon) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cart-button strong {
    position: absolute;
    top: 3px;
    right: 5px;
    min-width: 18px;
    height: 18px;
    font-size: 11px;
    color: white;
    background: var(--coral);
  }

  .hero {
    padding-top: 36px;
  }

  .catalog,
  .split-section,
  .contact-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .catalog-first {
    padding-top: 18px;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    margin-bottom: 6px;
    font-size: 28px;
  }

  .eyebrow {
    margin-bottom: 5px;
    font-size: 11px;
  }

  .section-heading {
    gap: 14px;
  }

  .search-box span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .search-box input {
    min-height: 50px;
    border-radius: 999px;
    box-shadow: 0 8px 22px rgba(26, 48, 63, 0.07);
  }

  .filters {
    position: sticky;
    top: 61px;
    z-index: 10;
    margin-right: -14px;
    margin-left: -14px;
    padding: 10px 14px;
    background: rgba(246, 248, 249, 0.94);
    backdrop-filter: blur(12px);
  }

  .filter-button {
    min-height: 40px;
    padding: 0 13px;
    font-size: 13px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .benefit-list {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 10px;
  }

  .product-card {
    min-width: 0;
  }

  .product-art {
    aspect-ratio: 1 / 1.08;
    padding: 9px;
  }

  .product-info {
    grid-template-rows: minmax(132px, auto) auto auto;
    gap: 8px;
    padding: 12px;
  }

  .product-info h3 {
    min-height: 43px;
    margin-bottom: 4px;
    font-size: 16px;
    line-height: 1.28;
  }

  .product-info p {
    min-height: 58px;
    font-size: 13px;
    line-height: 1.45;
    -webkit-line-clamp: 3;
  }

  .badge {
    font-size: 9px;
  }

  .price {
    font-size: 19px;
  }

  .product-meta {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .stock-label {
    text-align: left;
  }

  .add-button {
    min-height: 40px;
    font-size: 13px;
  }

  .cart-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(46vh, 360px);
    padding: 14px 16px 18px;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 16px 16px 0 0;
  }

  .cart-panel::before {
    display: block;
    width: 42px;
    height: 4px;
    margin: 0 auto 10px;
    content: "";
    background: #cad6dc;
    border-radius: 999px;
  }

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

  .cart-items {
    max-height: 21vh;
    overflow: auto;
    margin: 12px 0;
  }

  .checkout-button {
    min-height: 48px;
    border-radius: 999px;
  }

  .continue-shopping-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    color: var(--mint-dark);
    background: #e8f7f5;
    border: 1px solid #b7ded8;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
  }

  .mobile-tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 25;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    min-height: 68px;
    padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 26px rgba(26, 48, 63, 0.1);
    backdrop-filter: blur(14px);
  }

  .mobile-tabbar a,
  .mobile-tabbar button {
    display: grid;
    place-items: center;
    gap: 2px;
    min-height: 52px;
    color: #44515f;
    background: transparent;
    border: 0;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
  }

  .mobile-tabbar span {
    font-size: 18px;
    line-height: 1;
  }

  .mobile-tabbar .cart-icon {
    width: 22px;
    height: 18px;
    color: var(--mint-dark);
  }

  .mobile-tabbar .tab-icon {
    color: #44515f;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 98px;
  }

  .auth-shell {
    align-content: start;
    place-items: stretch;
    padding-top: 18px;
  }

  .profile-shell {
    width: min(100% - 24px, 680px);
    padding-top: 12px;
    padding-bottom: 92px;
  }

  .profile-header {
    align-items: center;
    margin-bottom: 12px;
  }

  .profile-header-actions {
    gap: 8px;
  }

  .profile-header .secondary-action {
    min-height: 40px;
    padding: 0 12px;
  }

  .auth-card,
  .profile-card,
  .profile-hero {
    padding: 18px;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    gap: 14px;
    min-height: 0;
    text-align: left;
  }

  .profile-avatar {
    width: 64px;
    height: 64px;
    font-size: 19px;
  }

  .profile-hero h1 {
    font-size: clamp(31px, 9vw, 42px);
    line-height: 1.05;
    overflow-wrap: anywhere;
  }

  .profile-hero p {
    overflow-wrap: anywhere;
  }

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

  .profile-action {
    min-height: 76px;
    padding: 15px;
  }

  .auth-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-card {
    min-height: 0;
  }

  .profile-next-medication {
    grid-template-columns: 1fr;
  }

  .medication-shell {
    width: min(100% - 24px, 680px);
    padding-top: 12px;
  }

  .medication-header {
    align-items: start;
  }

  .medication-alert {
    grid-template-columns: 1fr;
  }

  .home-medication-card {
    grid-template-columns: 1fr;
  }

  .medication-hero,
  .medication-alert,
  .medication-form-card,
  .medication-list-section {
    padding: 18px;
  }

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

  .checkout-overlay {
    padding: 0;
  }

  .checkout-sheet {
    max-height: 88vh;
    border-radius: 18px 18px 0 0;
  }
}

.admin-page {
  background: #eef6f7;
}

.admin-header {
  position: static;
}

.admin-shell {
  padding: 42px clamp(18px, 4vw, 56px);
}

.admin-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.admin-title h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 58px);
}

.admin-title p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-form,
.admin-products {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-form textarea {
  min-height: 110px;
  padding-top: 12px;
  resize: vertical;
}

.color-fields,
.admin-actions,
.admin-products-head,
.admin-product,
.admin-product-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-fields label {
  flex: 1;
}

.color-fields input {
  height: 46px;
  padding: 6px;
}

.admin-actions {
  flex-wrap: wrap;
}

.admin-products-head {
  justify-content: space-between;
  margin-bottom: 16px;
}

.admin-products-head h2 {
  margin: 0;
  font-size: 24px;
}

.admin-products-head span,
.admin-product span,
.admin-product p {
  color: var(--muted);
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-product {
  align-items: flex-start;
  padding: 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product > div:nth-child(2) {
  flex: 1;
}

.admin-product strong,
.admin-product span {
  display: block;
}

.admin-product p {
  margin: 8px 0 0;
}

.admin-product-swatch {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background:
    linear-gradient(135deg, var(--product-color) 0 50%, transparent 50%),
    var(--product-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-product-actions {
  flex: 0 0 auto;
}

.admin-product-actions .secondary-action {
  min-height: 36px;
  padding: 0 12px;
}

@media (max-width: 860px) {
  .admin-title,
  .admin-layout,
  .admin-product {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-product-actions {
    justify-content: flex-start;
  }
}
