:root {
  --green-950: #073e2d;
  --green-900: #07573c;
  --green-800: #0b6b4b;
  --green-700: #15835e;
  --green-100: #dff4e9;
  --green-50: #f0faf5;
  --ink: #15251f;
  --muted: #66756f;
  --line: #dfe7e3;
  --surface: #ffffff;
  --canvas: #f7faf8;
  --cream: #fff8ee;
  --orange: #f3a35f;
  --orange-dark: #c66a2b;
  --red: #c54545;
  --shadow-sm: 0 8px 28px rgba(7, 62, 45, 0.08);
  --shadow-lg: 0 24px 70px rgba(7, 62, 45, 0.18);
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

.native-app .web-only {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--canvas);
  color: var(--ink);
  font-family: Tahoma, Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.drawer-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  right: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

.network-status {
  position: sticky;
  z-index: 80;
  top: 0;
  padding: 9px 16px;
  background: #8b3030;
  color: white;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.service-strip {
  background: var(--green-950);
  color: #e6fff4;
  font-size: 0.78rem;
}

.service-strip__inner {
  display: flex;
  min-height: 34px;
  align-items: center;
  justify-content: space-between;
}

.service-strip a {
  font-weight: 700;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(7, 62, 45, 0.08);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
}

.header-row {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-logo {
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: contain;
}

.brand img {
  filter: drop-shadow(0 8px 12px rgba(7, 87, 60, 0.15));
}

.brand span {
  display: grid;
}

.brand strong {
  color: var(--green-950);
  font-size: 1rem;
  line-height: 1.35;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-inline: auto;
}

.desktop-nav a {
  padding: 10px 13px;
  border-radius: 12px;
  color: #33463f;
  font-size: 0.88rem;
  font-weight: 700;
  transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  background: var(--green-50);
  color: var(--green-800);
}

.desktop-nav .nav-highlight {
  color: var(--green-800);
}

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

.icon-button,
.cart-button {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
}

.icon-button:hover,
.cart-button:hover {
  border-color: var(--green-700);
  color: var(--green-800);
}

.cart-button {
  gap: 8px;
  padding-inline: 13px;
  font-size: 0.84rem;
  font-weight: 700;
}

.cart-count {
  display: grid;
  min-width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 50%;
  background: var(--green-800);
  color: white;
  font-size: 0.7rem;
}

.header-search {
  padding-bottom: 16px;
}

.header-search form {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--canvas);
}

.header-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
}

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

.page-loader {
  display: flex;
  min-height: 56vh;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid var(--green-100);
  border-top-color: var(--green-800);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 40px;
  background:
    radial-gradient(circle at 13% 30%, rgba(243, 163, 95, 0.25), transparent 25%),
    linear-gradient(135deg, #ecf9f2 0%, #f8fcfa 54%, #fff7ec 100%);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  border: 1px solid rgba(11, 107, 75, 0.12);
}

.hero::before {
  width: 390px;
  height: 390px;
  left: -140px;
  top: -180px;
}

.hero::after {
  width: 220px;
  height: 220px;
  right: 45%;
  bottom: -170px;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 46px;
}

.hero-grid > *,
.product-detail > *,
.form-layout > *,
.catalog-layout > * {
  min-width: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-800);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.eyebrow::before {
  width: 18px;
  height: 2px;
  border-radius: 4px;
  background: var(--orange);
  content: "";
}

.hero h1 {
  max-width: 700px;
  margin: 14px 0 14px;
  color: var(--green-950);
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 1.14;
  letter-spacing: -0.045em;
}

.hero h1 span {
  color: var(--green-700);
}

.hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: #56665f;
  font-size: 1.03rem;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 19px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button--primary {
  background: var(--green-800);
  color: white;
  box-shadow: 0 12px 24px rgba(11, 107, 75, 0.19);
}

.button--primary:hover {
  background: var(--green-900);
}

.button--secondary {
  border-color: var(--line);
  background: white;
  color: var(--green-900);
}

.button--ghost {
  border-color: var(--green-100);
  background: var(--green-50);
  color: var(--green-900);
}

.button--danger {
  background: #fff1f1;
  color: var(--red);
}

.button--small {
  min-height: 38px;
  padding: 7px 13px;
  border-radius: 11px;
  font-size: 0.78rem;
}

.button--wide {
  width: 100%;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
  color: #52635c;
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-trust .icon {
  color: var(--green-700);
}

.hero-visual {
  position: relative;
  min-height: 390px;
}

.pharmacist-card {
  position: absolute;
  inset: 16px 20px 18px 0;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 42px;
  background:
    linear-gradient(155deg, rgba(255,255,255,0.98), rgba(234,247,240,0.94));
  box-shadow: var(--shadow-lg);
}

.pharmacist-card__top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.pharmacist-avatar {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: var(--green-800);
  color: white;
}

.pharmacist-avatar .icon {
  width: 29px;
  height: 29px;
}

.pharmacist-card h2 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.12rem;
}

.pharmacist-card p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.private-flow {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.flow-step b {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: var(--green-100);
  color: var(--green-900);
  font-size: 0.78rem;
}

.flow-step span {
  font-size: 0.84rem;
  font-weight: 700;
}

.privacy-badge {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--cream);
  color: #865329;
  font-size: 0.76rem;
}

.floating-pill {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 15px;
  border: 1px solid white;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
  color: var(--green-950);
  font-size: 0.76rem;
  font-weight: 800;
}

.floating-pill--one {
  top: 2px;
  left: 0;
}

.floating-pill--two {
  right: -5px;
  bottom: 0;
}

.section {
  padding: 74px 0;
}

.section--white {
  background: white;
}

.section--soft {
  background: var(--green-50);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--green-950);
  font-size: clamp(1.7rem, 3vw, 2.45rem);
  line-height: 1.25;
}

.section-heading p {
  max-width: 560px;
  margin: 8px 0 0;
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-800);
  font-size: 0.86rem;
  font-weight: 800;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.category-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 15px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: 0.2s ease;
}

.category-card:hover {
  border-color: #b7dac9;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.category-icon {
  display: grid;
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  background: var(--green-50);
  color: var(--green-800);
}

.category-card:nth-child(3n+2) .category-icon {
  background: var(--cream);
  color: var(--orange-dark);
}

.category-card strong {
  display: block;
  color: var(--green-950);
  font-size: 0.9rem;
}

.category-card small {
  color: var(--muted);
  font-size: 0.72rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  transition: 0.2s ease;
}

.product-card:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.product-media {
  position: relative;
  display: grid;
  aspect-ratio: 1.14;
  place-items: center;
  overflow: hidden;
  background: #f2f8f5;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.product-card:hover .product-media img {
  transform: scale(1.03);
}

.product-badges {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: grid;
  gap: 6px;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 9px;
  background: white;
  color: var(--green-900);
  box-shadow: 0 5px 14px rgba(7, 62, 45, 0.1);
  font-size: 0.67rem;
  font-weight: 800;
}

.badge--offer {
  background: var(--orange);
  color: #4b2910;
}

.badge--low {
  background: #fff4d8;
  color: #8d5e00;
}

.badge--out {
  background: #ffeaea;
  color: var(--red);
}

.product-body {
  padding: 16px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.68rem;
}

.product-card h3 {
  min-height: 47px;
  margin: 5px 0 8px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.55;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price {
  color: var(--green-900);
  font-size: 0.98rem;
  font-weight: 900;
}

.old-price {
  margin-inline-start: 5px;
  color: #99a39f;
  font-size: 0.7rem;
  text-decoration: line-through;
}

.add-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--green-800);
  color: white;
}

.add-button:disabled {
  background: #b8c3be;
}

.ask-banner {
  position: relative;
  display: grid;
  overflow: hidden;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 38px 42px;
  border-radius: var(--radius-lg);
  background: var(--green-950);
  color: white;
}

.ask-banner::after {
  position: absolute;
  width: 260px;
  height: 260px;
  left: -80px;
  top: -130px;
  border: 42px solid rgba(255,255,255,0.05);
  border-radius: 50%;
  content: "";
}

.ask-banner h2 {
  margin: 5px 0;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.ask-banner p {
  max-width: 700px;
  margin: 0;
  color: #cce4da;
}

.ask-banner .button {
  position: relative;
  z-index: 2;
  background: var(--orange);
  color: #3a2312;
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.promise-card {
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.promise-card .category-icon {
  margin-bottom: 17px;
}

.promise-card h3 {
  margin: 0 0 7px;
  color: var(--green-950);
}

.promise-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.page-hero {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, var(--green-50), white);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
}

.page-hero h1 {
  margin: 12px 0 6px;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.2;
}

.page-hero p {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 28px;
}

.filters {
  position: sticky;
  top: 114px;
  height: fit-content;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.filters h2 {
  margin: 0 0 16px;
  font-size: 1rem;
}

.filter-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-group label {
  font-size: 0.76rem;
  font-weight: 800;
}

.field,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: 0;
  background: white;
  color: var(--ink);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.field,
.select {
  min-height: 46px;
  padding: 9px 12px;
}

.textarea {
  min-height: 108px;
  padding: 12px;
  resize: vertical;
}

.field:focus,
.select:focus,
.textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 4px rgba(21, 131, 94, 0.1);
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.catalog-toolbar strong {
  color: var(--green-950);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 52px 24px;
  border: 1px dashed #bfd4ca;
  border-radius: var(--radius);
  background: white;
  text-align: center;
}

.empty-state .category-icon {
  margin: 0 auto 16px;
}

.empty-state h2,
.empty-state h3 {
  margin: 0 0 7px;
  color: var(--green-950);
}

.empty-state p {
  max-width: 520px;
  margin: 0 auto 18px;
  color: var(--muted);
}

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 46px;
}

.product-detail__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--green-50);
}

.product-detail__media img {
  width: 100%;
}

.product-detail__content {
  padding-block: 16px;
}

.product-detail__content h1 {
  margin: 8px 0 12px;
  color: var(--green-950);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.25;
}

.product-detail__content > p {
  color: var(--muted);
}

.detail-price {
  margin: 20px 0;
  font-size: 1.6rem;
}

.availability {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-900);
  font-size: 0.78rem;
  font-weight: 800;
}

.availability::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.detail-note {
  padding: 15px;
  border-radius: 15px;
  background: var(--cream);
  color: #72502f;
  font-size: 0.79rem;
}

.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.form-card,
.side-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow-sm);
}

.form-card {
  padding: 28px;
}

.side-card {
  padding: 22px;
}

.form-card h2,
.side-card h2 {
  margin: 0 0 5px;
  color: var(--green-950);
}

.form-intro {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.85rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.form-group {
  display: grid;
  gap: 7px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  color: #35453f;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-group label span {
  color: var(--red);
}

.help-text {
  color: var(--muted);
  font-size: 0.69rem;
}

.upload-box {
  position: relative;
  display: grid;
  min-height: 172px;
  place-items: center;
  padding: 20px;
  border: 1.5px dashed #a8cab9;
  border-radius: 17px;
  background: var(--green-50);
  text-align: center;
}

.upload-box input {
  position: absolute;
  inset: 0;
  cursor: pointer;
  opacity: 0;
}

.upload-box .category-icon {
  margin: 0 auto 9px;
  background: white;
}

.upload-box strong {
  display: block;
  color: var(--green-950);
  font-size: 0.88rem;
}

.upload-box small {
  color: var(--muted);
}

.image-preview {
  position: relative;
  overflow: hidden;
  min-height: 172px;
  border-radius: 17px;
  background: #eef3f1;
}

.image-preview img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}

.image-preview button {
  position: absolute;
  top: 10px;
  left: 10px;
}

.choice-row {
  display: flex;
  gap: 10px;
}

.choice {
  position: relative;
  flex: 1;
}

.choice input {
  position: absolute;
  opacity: 0;
}

.choice span {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 0.78rem;
  font-weight: 700;
}

.choice input:checked + span {
  border-color: var(--green-700);
  background: var(--green-50);
  color: var(--green-900);
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px;
  border-radius: 15px;
  background: var(--cream);
  color: #755233;
  font-size: 0.76rem;
}

.notice .icon {
  flex: 0 0 auto;
}

.steps-list {
  display: grid;
  gap: 15px;
  margin-top: 18px;
}

.steps-list .flow-step {
  padding: 0;
  border: 0;
}

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

.request-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.request-card__icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--green-50);
  color: var(--green-800);
}

.request-card h3 {
  margin: 0 0 2px;
  color: var(--green-950);
  font-size: 0.9rem;
}

.request-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
}

.status-chip {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  padding: 6px 9px;
  border-radius: 10px;
  background: #eef3f1;
  color: #52615c;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-chip--positive {
  background: var(--green-100);
  color: var(--green-900);
}

.status-chip--warning {
  background: #fff0d8;
  color: #8a5700;
}

.status-chip--danger {
  background: #ffecec;
  color: var(--red);
}

.tracking-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.tracking-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.tracking-header h2 {
  margin: 5px 0 0;
  color: var(--green-950);
}

.timeline {
  display: grid;
  gap: 0;
  margin: 24px 0;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  min-height: 62px;
}

.timeline-item:not(:last-child)::after {
  position: absolute;
  top: 27px;
  right: 13px;
  width: 2px;
  height: calc(100% - 12px);
  background: var(--line);
  content: "";
}

.timeline-dot {
  z-index: 1;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: white;
}

.timeline-item.active .timeline-dot,
.timeline-item.done .timeline-dot {
  border-color: var(--green-700);
  background: var(--green-700);
  color: white;
}

.timeline-item h3 {
  margin: 1px 0 0;
  font-size: 0.82rem;
}

.timeline-item p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.7rem;
}

.reply-box {
  padding: 20px;
  border-radius: 18px;
  background: var(--green-50);
}

.reply-box h3 {
  margin: 0 0 10px;
  color: var(--green-950);
}

.reply-box p {
  margin: 0;
}

.reply-price {
  margin-top: 14px;
  color: var(--green-900);
  font-size: 1.3rem;
  font-weight: 900;
}

.checkout-summary {
  display: grid;
  gap: 10px;
}

.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.summary-row--total {
  margin-top: 5px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--green-950);
  font-size: 1rem;
  font-weight: 900;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-line img {
  width: 64px;
  height: 64px;
  border-radius: 13px;
  background: var(--green-50);
  object-fit: cover;
}

.cart-line h3 {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
}

.cart-line p {
  margin: 4px 0;
  color: var(--green-900);
  font-size: 0.75rem;
  font-weight: 800;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.quantity-control button {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: var(--green-50);
  color: var(--green-900);
}

.quantity-control span {
  min-width: 16px;
  text-align: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.cart-remove {
  align-self: start;
  border: 0;
  background: transparent;
  color: #a35b5b;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.contact-card {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
}

.contact-card h2 {
  margin: 12px 0 8px;
  color: var(--green-950);
}

.contact-card p {
  margin: 0 0 16px;
  color: var(--muted);
}

.map-placeholder {
  position: relative;
  display: grid;
  min-height: 330px;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius);
  background:
    linear-gradient(45deg, transparent 47%, rgba(11,107,75,.08) 48%, rgba(11,107,75,.08) 52%, transparent 53%) 0 0/44px 44px,
    linear-gradient(-45deg, transparent 47%, rgba(243,163,95,.09) 48%, rgba(243,163,95,.09) 52%, transparent 53%) 0 0/56px 56px,
    #eef7f2;
}

.map-pin {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 8px solid rgba(255,255,255,.7);
  border-radius: 50% 50% 50% 0;
  background: var(--green-800);
  color: white;
  box-shadow: var(--shadow-lg);
  transform: rotate(-45deg);
}

.map-pin .icon {
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
}

.site-footer {
  padding: 54px 0 24px;
  background: var(--green-950);
  color: #d7e9e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.7fr;
  gap: 60px;
}

.brand--footer strong {
  color: white;
}

.brand--footer small {
  color: #b8d1c7;
}

.footer-grid p {
  max-width: 450px;
  color: #b8d1c7;
  font-size: 0.8rem;
}

.footer-grid h3 {
  margin: 0 0 14px;
  color: white;
  font-size: 0.88rem;
}

.footer-grid > div > a:not(.brand) {
  display: block;
  margin: 7px 0;
  color: #b8d1c7;
  font-size: 0.78rem;
}

.footer-grid > div > a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 38px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
  color: #9db9ae;
  font-size: 0.7rem;
}

.mobile-nav {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(2, 24, 17, 0.48);
  backdrop-filter: blur(3px);
}

.cart-drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: flex;
  width: min(430px, 94vw);
  height: 100dvh;
  flex-direction: column;
  background: white;
  box-shadow: var(--shadow-lg);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
}

.cart-drawer.open {
  transform: none;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.drawer-header h2 {
  margin: 3px 0 0;
  font-size: 1.25rem;
}

.drawer-content {
  overflow-y: auto;
  padding: 8px 22px 28px;
}

.drawer-summary {
  position: sticky;
  bottom: 0;
  margin: 16px -2px 0;
  padding: 18px 2px 0;
  background: white;
}

.toast-region {
  position: fixed;
  z-index: 150;
  right: 22px;
  bottom: 24px;
  display: grid;
  width: min(360px, calc(100% - 44px));
  gap: 10px;
}

.toast {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 15px;
  background: var(--green-950);
  box-shadow: var(--shadow-lg);
  color: white;
  font-size: 0.78rem;
  animation: toast-in 0.25s ease;
}

.toast--error {
  background: #8b3030;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(12px); }
}

.success-panel {
  padding: 40px;
  border: 1px solid #bfe2d1;
  border-radius: var(--radius-lg);
  background: var(--green-50);
  text-align: center;
}

.success-panel .category-icon {
  width: 66px;
  height: 66px;
  margin: 0 auto 18px;
  border-radius: 20px;
  background: var(--green-800);
  color: white;
}

.success-panel h2 {
  margin: 0 0 8px;
  color: var(--green-950);
}

.success-panel p {
  max-width: 580px;
  margin: 0 auto 18px;
  color: var(--muted);
}

.reference-code {
  display: inline-block;
  margin: 8px 0 20px;
  padding: 9px 13px;
  border: 1px dashed #8ebba5;
  border-radius: 10px;
  background: white;
  color: var(--green-900);
  direction: ltr;
  font-family: Consolas, monospace;
  font-weight: 800;
}

.admin-body {
  min-height: 100vh;
  background: #f4f7f5;
}

.admin-login {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr 1fr;
}

.admin-login__visual {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  justify-content: space-between;
  padding: 54px;
  background:
    radial-gradient(circle at 10% 20%, rgba(243,163,95,.25), transparent 30%),
    var(--green-950);
  color: white;
}

.admin-login__visual::after {
  position: absolute;
  width: 480px;
  height: 480px;
  left: -180px;
  bottom: -230px;
  border: 70px solid rgba(255,255,255,.04);
  border-radius: 50%;
  content: "";
}

.admin-login__visual .brand strong {
  color: white;
}

.admin-login__visual .brand small {
  color: #b9d6ca;
}

.admin-quote {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.admin-quote h1 {
  margin: 12px 0;
  font-size: clamp(2.3rem, 5vw, 4.7rem);
  line-height: 1.1;
}

.admin-quote p {
  color: #c9ded5;
}

.admin-login__form {
  display: grid;
  place-items: center;
  padding: 38px;
}

.login-card {
  width: min(440px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.login-card h2 {
  margin: 8px 0 4px;
  color: var(--green-950);
  font-size: 1.7rem;
}

.login-card > p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .82rem;
}

.login-card .form-group {
  margin-bottom: 15px;
}

.login-security-note {
  margin-top: 16px;
  padding: 12px;
  border-radius: 12px;
  background: var(--green-50);
  color: var(--green-900);
  font-size: .68rem;
}

.admin-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 260px 1fr;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  height: 100vh;
  flex-direction: column;
  padding: 22px 16px;
  background: var(--green-950);
  color: #d2e6de;
}

.admin-sidebar-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  border: 0;
  background: rgba(2, 24, 17, 0.48);
  backdrop-filter: blur(2px);
}

.admin-sidebar .brand {
  padding: 5px 7px 25px;
}

.admin-sidebar .brand strong {
  color: white;
}

.admin-sidebar .brand small {
  color: #9fc1b4;
}

.admin-nav {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.admin-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 12px;
  color: #b8d1c7;
  font-size: .8rem;
  font-weight: 700;
}

.admin-nav a:hover,
.admin-nav a.active {
  background: rgba(255,255,255,.1);
  color: white;
}

.admin-nav a.active {
  box-shadow: inset -3px 0 var(--orange);
}

.admin-sidebar__footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.1);
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
}

.admin-user__avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: var(--orange);
  color: #3a2818;
  font-weight: 900;
}

.admin-user strong {
  display: block;
  color: white;
  font-size: .75rem;
}

.admin-user small {
  color: #9fc1b4;
  font-size: .65rem;
}

.logout-button {
  width: 100%;
  margin-top: 8px;
  border-color: rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #d2e6de;
}

.admin-main {
  min-width: 0;
}

.admin-topbar {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}

.admin-topbar h1 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.25rem;
}

.admin-topbar p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: .68rem;
}

.admin-content {
  padding: 28px 30px 60px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.stat-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card__icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: var(--green-50);
  color: var(--green-800);
}

.stat-card:nth-child(2) .stat-card__icon {
  background: var(--cream);
  color: var(--orange-dark);
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--green-950);
  font-size: 1.65rem;
  line-height: 1.2;
}

.stat-card small {
  color: var(--muted);
  font-size: .7rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  color: var(--green-950);
  font-size: .95rem;
}

.panel-body {
  padding: 18px 20px;
}

.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.data-table th {
  padding: 11px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
  text-align: right;
}

.data-table td {
  padding: 13px;
  border-bottom: 1px solid #edf1ef;
  font-size: .74rem;
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.table-product {
  display: flex;
  align-items: center;
  gap: 10px;
}

.table-product img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--green-50);
  object-fit: cover;
}

.table-product strong {
  display: block;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-product small {
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.action-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
  color: var(--green-900);
}

.action-button:hover {
  background: var(--green-50);
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.admin-toolbar__filters {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-toolbar .field,
.admin-toolbar .select {
  width: auto;
  min-width: 190px;
}

.modal-backdrop {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(2,24,17,.56);
  backdrop-filter: blur(4px);
}

.modal {
  width: min(720px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border-radius: 24px;
  background: white;
  box-shadow: var(--shadow-lg);
}

.modal--wide {
  width: min(940px, 100%);
}

.modal-header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.modal-header h2 {
  margin: 0;
  color: var(--green-950);
  font-size: 1.12rem;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}

.request-detail-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 22px;
}

.request-image {
  display: grid;
  min-height: 300px;
  place-items: center;
  overflow: hidden;
  border-radius: 18px;
  background: #edf3f0;
}

.request-image img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.info-list {
  display: grid;
  gap: 10px;
}

.info-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf1ef;
  font-size: .78rem;
}

.info-row span {
  color: var(--muted);
}

.mobile-admin-toggle {
  display: none;
}

@media (max-width: 1050px) {
  .desktop-nav {
    display: none;
  }

  .header-actions {
    margin-inline-start: auto;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-grid {
    gap: 24px;
  }

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

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

@media (max-width: 820px) {
  body {
    padding-bottom: 74px;
  }

  .service-strip {
    display: none;
  }

  .site-header {
    top: 0;
  }

  .header-row {
    min-height: 70px;
  }

  .brand strong {
    font-size: .88rem;
  }

  .brand small {
    display: none;
  }

  .cart-label {
    display: none;
  }

  .cart-button {
    padding-inline: 9px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero-grid,
  .product-detail,
  .form-layout,
  .catalog-layout,
  .admin-login {
    grid-template-columns: 1fr;
  }

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

  .pharmacist-card {
    inset: 18px 0 18px 0;
  }

  .categories-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .catalog-layout {
    gap: 18px;
  }

  .filters {
    position: static;
  }

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

  .form-group--full {
    grid-column: auto;
  }

  .ask-banner {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .promise-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .mobile-nav {
    position: fixed;
    z-index: 70;
    right: 10px;
    bottom: 9px;
    left: 10px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 15px 45px rgba(7,62,45,.2);
    backdrop-filter: blur(16px);
  }

  .mobile-nav a,
  .mobile-nav button {
    position: relative;
    display: grid;
    min-width: 0;
    place-items: center;
    gap: 3px;
    border: 0;
    background: transparent;
    color: var(--muted);
  }

  .mobile-nav small {
    font-size: .56rem;
    font-weight: 700;
  }

  .mobile-nav .active {
    color: var(--green-800);
  }

  .mobile-nav__ask span[data-icon] {
    display: grid;
    width: 38px;
    height: 38px;
    margin-top: -22px;
    place-items: center;
    border: 5px solid var(--canvas);
    border-radius: 50%;
    background: var(--green-800);
    color: white;
  }

  .mobile-nav__ask small {
    margin-top: 2px;
  }

  #mobile-cart-count {
    position: absolute;
    top: -4px;
    left: 8px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--orange);
    color: #3a2818;
    font-size: .55rem;
  }

  .site-footer {
    padding-bottom: 90px;
  }

  .toast-region {
    bottom: 100px;
  }

  .admin-login__visual {
    display: none;
  }

  .admin-login__form {
    min-height: 100vh;
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 90;
    right: 0;
    width: 270px;
    transform: translateX(105%);
    transition: transform .25s ease;
  }

  .admin-sidebar-backdrop {
    display: block;
  }

  .admin-sidebar.open {
    transform: none;
  }

  .mobile-admin-toggle {
    display: inline-flex;
  }

  .admin-content {
    padding: 20px 16px 50px;
  }

  .admin-topbar {
    padding: 0 16px;
  }

  .request-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(calc(100% - 22px), var(--container));
  }

  .header-row {
    gap: 8px;
  }

  .brand {
    gap: 8px;
  }

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

  .header-actions {
    gap: 5px;
  }

  .icon-button,
  .cart-button {
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .hero-copy > p {
    font-size: .88rem;
  }

  .hero-actions .button {
    flex: 1;
    min-width: 0;
    padding-inline: 12px;
    font-size: .77rem;
    line-height: 1.45;
    text-align: center;
    white-space: normal;
  }

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

  .pharmacist-card {
    padding: 23px;
  }

  .floating-pill--one {
    left: 3px;
  }

  .floating-pill--two {
    right: 3px;
  }

  .section {
    padding: 54px 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 22px;
  }

  .categories-grid {
    gap: 10px;
  }

  .category-card {
    min-height: 132px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
  }

  .category-icon {
    width: 42px;
    height: 42px;
  }

  .products-grid {
    gap: 10px;
  }

  .product-card {
    border-radius: 17px;
  }

  .product-body {
    padding: 12px;
  }

  .product-card h3 {
    min-height: 44px;
    font-size: .78rem;
  }

  .product-meta,
  .old-price {
    font-size: .58rem;
  }

  .price {
    font-size: .8rem;
  }

  .add-button {
    width: 34px;
    height: 34px;
  }

  .ask-banner {
    padding: 25px 22px;
  }

  .form-card,
  .side-card,
  .tracking-card {
    padding: 20px;
  }

  .request-card {
    grid-template-columns: auto 1fr;
  }

  .request-card > .button,
  .request-card > .status-chip {
    grid-column: 1 / -1;
    justify-self: stretch;
  }

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

  .footer-grid > div:first-child {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card {
    padding: 15px;
  }

  .stat-card strong {
    font-size: 1.3rem;
  }

  .admin-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar__filters {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-toolbar .field,
  .admin-toolbar .select {
    width: 100%;
  }

  .modal-backdrop {
    padding: 10px;
  }

  .modal {
    max-height: calc(100vh - 20px);
    border-radius: 18px;
  }
}
