:root {
  --ink: #202815;
  --forest: #2e3817;
  --leaf: #709555;
  --fresh: #2e8e3b;
  --sun: #fff42f;
  --cream: #fbfaef;
  --paper: #ffffff;
  --muted: #65705f;
  --line: #e2e6d2;
  --pink: #e91d63;
  --shadow: 0 22px 55px rgba(32, 40, 21, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Rubik", Arial, sans-serif;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.shop-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 54px);
  background: rgba(251, 250, 239, 0.94);
  border-bottom: 1px solid rgba(46, 56, 23, 0.12);
  backdrop-filter: blur(14px);
}

.brand,
.header-status,
.cart-button,
.floating-cart,
.btn,
.product-bottom button {
  display: inline-flex;
  align-items: center;
}

.brand {
  gap: 10px;
  color: var(--forest);
  font-family: "Nunito", Arial, sans-serif;
  font-size: 1.08rem;
  font-weight: 900;
}

.brand img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.header-status {
  gap: 14px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.cart-button,
.floating-cart,
.btn,
.product-bottom button {
  min-height: 44px;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font-weight: 900;
}

.cart-button,
.floating-cart {
  padding: 10px 16px;
  background: var(--forest);
  color: var(--sun);
}

.cart-button span,
.floating-cart span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 8px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--forest);
  font-size: 0.82rem;
}

.shop-shell {
  padding: clamp(22px, 4vw, 48px);
}

.catalog-panel {
  min-width: 0;
  max-width: 1240px;
  margin: 0 auto;
}

.store-hero {
  display: grid;
  gap: 14px;
  margin-bottom: 22px;
  padding: clamp(24px, 5vw, 48px);
  border-radius: 8px;
  background:
    linear-gradient(130deg, rgba(255, 244, 47, 0.25), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #eef3df 100%);
  box-shadow: var(--shadow);
}

.eyebrow,
.section-kicker,
.tag {
  margin: 0;
  color: var(--fresh);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--forest);
  font-family: "Nunito", Arial, sans-serif;
  line-height: 1.05;
}

h1 {
  max-width: 780px;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  font-weight: 900;
}

.store-hero p:not(.eyebrow),
.checkout-note {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.category-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin-bottom: 20px;
  padding-bottom: 4px;
}

.category-tabs button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--forest);
  font-weight: 800;
}

.category-tabs .is-active {
  background: var(--forest);
  color: var(--sun);
}

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

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 14px 32px rgba(32, 40, 21, 0.07);
}

.product-card {
  overflow: hidden;
}

.product-image {
  min-height: 190px;
  background-position: center;
  background-size: cover;
}

.product-image.tea {
  background-image: linear-gradient(rgba(46, 56, 23, 0.1), rgba(46, 56, 23, 0.1)), url("https://images.unsplash.com/photo-1544787219-7f47ccb76574?auto=format&fit=crop&w=900&q=80");
}

.product-image.capsules {
  background-image: linear-gradient(rgba(46, 56, 23, 0.1), rgba(46, 56, 23, 0.1)), url("https://images.unsplash.com/photo-1471864190281-a93a3070b6de?auto=format&fit=crop&w=900&q=80");
}

.product-image.vitamins {
  background-image: linear-gradient(rgba(46, 56, 23, 0.1), rgba(46, 56, 23, 0.1)), url("https://images.unsplash.com/photo-1584308666744-24d5c474f2ae?auto=format&fit=crop&w=900&q=80");
}

.product-image.herbs {
  background-image: linear-gradient(rgba(46, 56, 23, 0.1), rgba(46, 56, 23, 0.1)), url("https://images.unsplash.com/photo-1515586000433-45406d8e6662?auto=format&fit=crop&w=900&q=80");
}

.product-info {
  padding: 20px;
}

.product-info h2 {
  margin-top: 8px;
  font-size: 1.35rem;
}

.product-info p:not(.tag) {
  min-height: 48px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

.product-bottom strong {
  color: var(--forest);
  font-size: 1.3rem;
}

.product-bottom button {
  padding: 9px 15px;
  background: var(--forest);
  color: var(--sun);
}

.cart-checkout {
  margin-top: clamp(28px, 5vw, 56px);
  padding: clamp(20px, 4vw, 34px);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.checkout-heading {
  display: grid;
  gap: 8px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.checkout-heading h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.checkout-heading p:not(.section-kicker),
.form-intro p:not(.section-kicker) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 0;
  padding: 8px 0 0;
}

.empty-cart {
  margin: 0;
  padding: 18px;
  border: 1px dashed rgba(46, 56, 23, 0.26);
  border-radius: 8px;
  color: var(--muted);
  background: #fbfaef;
}

.cart-item {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item h3 {
  font-size: 1rem;
}

.cart-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cart-item strong {
  color: var(--forest);
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  align-self: start;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8f7ee;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: var(--sun);
  font-size: 1.1rem;
}

.quantity-control span {
  min-width: 20px;
  text-align: center;
  font-weight: 900;
}

.remove-item {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pink);
  font-weight: 800;
}

.totals-box {
  display: grid;
  gap: 10px;
  max-width: 520px;
  margin-left: auto;
  padding: 20px 0 0;
  border-bottom: 1px solid var(--line);
}

.totals-box div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
}

.totals-box strong {
  color: var(--forest);
}

.totals-box .grand-total {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--forest);
  font-weight: 900;
}

.grand-total strong {
  font-size: 1.35rem;
}

.checkout-form {
  display: grid;
  gap: 15px;
  max-width: 720px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f6f5e9;
}

.checkout-form[hidden] {
  display: none;
}

.form-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 4px;
}

.form-intro h2 {
  font-size: 2rem;
}

.checkout-form label,
.checkout-form fieldset {
  min-width: 0;
}

.checkout-form > label {
  display: grid;
  gap: 7px;
  color: var(--forest);
  font-weight: 800;
}

.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}

fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 8px;
  color: var(--forest);
  font-family: "Nunito", Arial, sans-serif;
  font-weight: 900;
}

.option-card,
.payment-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaef;
}

.option-card input,
.payment-option input {
  margin-top: 4px;
}

.option-card strong,
.payment-option strong {
  display: block;
  color: var(--forest);
}

.option-card small,
.payment-option small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.btn {
  padding: 13px 20px;
}

.btn-primary {
  background: var(--forest);
  color: var(--sun);
  box-shadow: 0 12px 24px rgba(46, 56, 23, 0.2);
}

.checkout-submit {
  width: 100%;
}

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

.checkout-note {
  font-size: 0.9rem;
}

.pay-toggle {
  width: min(100%, 360px);
  margin-top: 22px;
  margin-left: auto;
}

.pay-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(20, 28, 14, 0.52);
}

.mobile-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  width: min(100vw, 430px);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--cream);
  box-shadow: -24px 0 55px rgba(20, 28, 14, 0.24);
  transform: translateX(105%);
  transition: transform 180ms ease;
}

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

.cart-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.icon-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: var(--forest);
  color: var(--sun);
  font-size: 1.8rem;
  line-height: 1;
}

.mobile-checkout-link {
  margin: 16px;
}

.floating-cart {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 35;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 60;
  max-width: min(90vw, 420px);
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--sun);
  box-shadow: var(--shadow);
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 1080px) {
}

@media (max-width: 720px) {
  .shop-header {
    padding: 10px 14px;
  }

  .brand span,
  .header-status > span {
    display: none;
  }

  .shop-shell {
    padding: 16px;
  }

  .store-hero {
    padding: 22px;
  }

  h1 {
    font-size: clamp(2.35rem, 13vw, 3.7rem);
  }

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

  .product-image {
    min-height: 220px;
  }

  .checkout-card {
    margin-bottom: 70px;
  }

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

  .totals-box {
    max-width: none;
  }

  .pay-toggle {
    width: 100%;
  }
}
