:root {
  --bg: #050505;
  --surface: #101010;
  --surface-2: #191919;
  --surface-3: #24201a;
  --green: #d4af37;
  --green-bright: #f5d76e;
  --green-pale: #ffe49a;
  --green-soft: rgba(212, 175, 55, 0.12);
  --text: #fff8e7;
  --muted: #b8aa8b;
  --line: rgba(212, 175, 55, 0.22);
  --danger: #ff7a7a;
  --shadow: 0 24px 70px rgba(0, 0, 0, .42);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 12% 0%, rgba(22, 115, 65, .22), transparent 34rem), radial-gradient(circle at 90% 18%, rgba(43, 195, 109, .08), transparent 28rem), var(--bg)
}

body.no-scroll {
  overflow: hidden
}

button,
input,
textarea {
  font: inherit
}

button {
  cursor: pointer
}

a {
  color: inherit
}

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

.app-shell {
  min-height: 100vh
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 14px 0;
  background: linear-gradient(180deg, rgba(4, 7, 5, .94), rgba(4, 7, 5, .72), transparent);
  backdrop-filter: blur(18px)
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .4))
}

.brand-copy strong,
.brand-copy small {
  display: block
}

.brand-copy strong {
  font-size: 1rem;
  letter-spacing: .01em
}

.brand-copy small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .7rem;
  letter-spacing: .18em;
  text-transform: uppercase
}

.cart-button,
.icon-button {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(15, 25, 19, .9)
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 46px;
  padding: 8px 10px 8px 15px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .2)
}

.cart-button:hover {
  border-color: rgba(43, 195, 109, .45)
}

.cart-icon {
  color: var(--green-bright)
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 29px;
  height: 29px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--green-bright), var(--green));
  color: #031108
}

main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  align-items: center;
  gap: 56px;
  padding: clamp(52px, 9vw, 120px) 0 clamp(60px, 8vw, 96px)
}

.hero-copy {
  max-width: 790px
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-bright);
  font-size: .73rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase
}

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

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: .98;
  letter-spacing: -.065em
}

.hero-copy>p:not(.eyebrow) {
  max-width: 660px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.75
}

.hero-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  color: var(--green-pale)
}

.hero-action span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--green-soft)
}

.hero-brand-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(21, 34, 25, .86), rgba(7, 13, 9, .75));
  overflow: hidden;
  box-shadow: var(--shadow)
}

.hero-brand-card img {
  position: relative;
  width: min(80%, 280px);
  filter: drop-shadow(0 24px 35px rgba(0, 0, 0, .55))
}

.logo-glow {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(43, 195, 109, .18);
  filter: blur(60px)
}

.catalog-section,
.checkout-section {
  padding: 34px 0 90px
}

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

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.045em
}

.product-count,
.summary-count {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 700
}

.catalog-toolbar {
  position: sticky;
  top: 82px;
  z-index: 18;
  margin-bottom: 24px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8, 14, 10, .9);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .2)
}

.search-box {
  position: relative;
  display: flex;
  align-items: center
}

.search-icon {
  position: absolute;
  left: 16px;
  color: var(--muted);
  font-size: 1.25rem
}

.search-box input {
  width: 100%;
  height: 48px;
  padding: 0 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: var(--surface-2)
}

.search-box input:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(43, 195, 109, .12)
}

.clear-search {
  position: absolute;
  right: 9px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  font-size: 1.25rem
}

.category-scroller {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 2px;
  overflow-x: auto;
  scrollbar-width: none
}

.category-scroller::-webkit-scrollbar {
  display: none
}

.category-chip {
  flex: 0 0 auto;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: .78rem;
  font-weight: 800
}

.category-chip.active {
  border-color: rgba(43, 195, 109, .5);
  color: #06120a;
  background: var(--green-bright)
}

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

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 246px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(16, 27, 20, .96), rgba(9, 15, 11, .98));
  box-shadow: 0 15px 38px rgba(0, 0, 0, .18);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(43, 195, 109, .34);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .3)
}

.product-card.has-quantity {
  border-color: rgba(43, 195, 109, .48);
  box-shadow: inset 0 0 0 1px rgba(43, 195, 109, .12), 0 18px 42px rgba(0, 0, 0, .26)
}

.product-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px
}

.category-badge {
  display: inline-flex;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green-pale);
  background: var(--green-soft);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}

.product-card h3 {
  margin: 22px 0 7px;
  font-size: 1.18rem;
  line-height: 1.25
}

.strength {
  margin: 0;
  color: var(--muted);
  font-size: .88rem
}

.price {
  margin-top: auto;
  padding-top: 22px;
  font-size: 1.35rem;
  font-weight: 800
}

.quantity-control {
  display: grid;
  grid-template-columns: 42px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-top: 16px
}

.quantity-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--surface-3);
  font-size: 1.3rem;
  font-weight: 700
}

.quantity-button:hover {
  border-color: var(--green-bright);
  background: var(--green-soft)
}

.quantity-button:disabled {
  opacity: .35;
  cursor: not-allowed
}

.quantity-value {
  text-align: center;
  font-weight: 800
}

.no-results {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 220px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted)
}

.no-results strong {
  color: var(--text);
  font-size: 1.15rem
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .65fr);
  gap: 22px;
  align-items: start
}

.order-form,
.summary-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: rgba(10, 17, 13, .94);
  box-shadow: var(--shadow)
}

.order-form {
  padding: clamp(22px, 4vw, 38px)
}

.form-intro {
  margin-bottom: 24px
}

.form-intro h3 {
  margin-bottom: 7px;
  font-size: 1.35rem
}

.form-intro p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px
}

.field {
  display: grid;
  gap: 8px
}

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

.field>span {
  font-size: .84rem;
  font-weight: 800
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  color: var(--text);
  background: var(--surface-2);
  transition: border-color .2s ease, box-shadow .2s ease
}

.field input {
  height: 50px;
  padding: 0 15px
}

.field textarea {
  padding: 14px 15px;
  resize: vertical
}

.field input:focus,
.field textarea:focus {
  border-color: var(--green-bright);
  box-shadow: 0 0 0 3px rgba(43, 195, 109, .12)
}

.field [aria-invalid=true] {
  border-color: var(--danger)
}

.field-error {
  min-height: 16px;
  color: var(--danger);
  font-size: .74rem
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 20px 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.5
}

.consent-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--green-bright)
}

.submit-button,
.primary-link-button {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  color: #031009;
  background: linear-gradient(145deg, var(--green-bright), #1f9e59);
  font-weight: 900;
  box-shadow: 0 13px 30px rgba(22, 115, 65, .28)
}

.submit-button:hover,
.primary-link-button:hover {
  filter: brightness(1.06)
}

.submit-button:disabled {
  opacity: .55;
  cursor: wait
}

.button-spinner {
  display: none;
  width: 18px;
  height: 18px;
  margin-left: 10px;
  border: 2px solid rgba(3, 16, 9, .28);
  border-top-color: #031009;
  border-radius: 50%;
  animation: spin .7s linear infinite
}

.submit-button.loading .button-spinner {
  display: inline-block
}

.form-status {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .84rem
}

.form-status.error {
  color: var(--danger)
}

.summary-card {
  position: sticky;
  top: 174px;
  padding: 24px
}

.summary-heading-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px
}

.summary-heading-row h3 {
  margin-bottom: 0;
  font-size: 1.35rem
}

.empty-cart {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 180px;
  color: var(--muted);
  text-align: center
}

.empty-cart-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  color: var(--green-bright);
  background: var(--green-soft);
  font-size: 1.4rem
}

.empty-cart strong {
  color: var(--text)
}

.summary-items {
  display: grid;
  gap: 12px;
  margin: 22px 0
}

.summary-item,
.drawer-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line)
}

.summary-item strong,
.drawer-item strong {
  font-size: .9rem
}

.summary-item small,
.drawer-item small {
  color: var(--muted)
}

.summary-item-price,
.drawer-item-price {
  grid-column: 2;
  grid-row: 1/3;
  align-self: center
}

.summary-totals {
  display: grid;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.summary-totals>div,
.drawer-breakdown,
.drawer-total {
  display: flex;
  justify-content: space-between;
  gap: 18px
}

.summary-totals span,
.drawer-breakdown span {
  color: var(--muted)
}

.total-row {
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem
}

.total-row strong {
  color: var(--green-pale)
}

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0 110px;
  color: var(--muted);
  font-size: .78rem
}

footer img {
  width: 30px;
  height: 30px;
  object-fit: contain
}

footer p {
  margin: 0
}

.cart-drawer-backdrop,
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, .7);
  backdrop-filter: blur(6px)
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  width: min(430px, 100%);
  height: 100dvh;
  padding: 22px;
  border-left: 1px solid var(--line);
  background: #08100b;
  box-shadow: -30px 0 70px rgba(0, 0, 0, .48);
  transform: translateX(102%);
  transition: transform .28s ease
}

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

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

.cart-drawer-header h2 {
  margin: 0;
  font-size: 1.75rem
}

.icon-button,
.modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.5rem
}

.drawer-items {
  display: grid;
  gap: 14px;
  flex: 1;
  padding: 20px 0;
  overflow-y: auto
}

.drawer-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  text-align: center
}

.drawer-footer {
  display: grid;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line)
}

.drawer-total {
  font-size: 1.2rem
}

.drawer-total strong {
  color: var(--green-pale)
}

.modal-backdrop {
  display: grid;
  place-items: center;
  padding: 18px;
  overflow: auto
}

.success-modal {
  position: relative;
  width: min(520px, 100%);
  padding: clamp(24px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: #0a120d;
  text-align: center;
  box-shadow: var(--shadow)
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: transparent
}

.success-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #041008;
  background: var(--green-bright);
  font-size: 1.6rem;
  font-weight: 900
}

.success-modal h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 5vw, 2.5rem)
}

.success-copy {
  color: var(--muted);
  line-height: 1.65
}

.payment-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 24px 0;
  padding: 16px 18px;
  border-radius: 15px;
  background: var(--green-soft)
}

.payment-total span {
  color: var(--green-pale);
  font-weight: 700
}

.payment-total strong {
  font-size: 1.5rem
}

.qr-frame {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 16px;
  border-radius: 20px;
  background: #fff
}

.qr-frame img {
  display: block;
  width: min(100%, 320px);
  height: auto
}

.qr-placeholder {
  display: grid;
  gap: 8px;
  color: #111
}

.scan-copy {
  margin: 13px 0 6px;
  font-weight: 800
}

.order-reference {
  color: #174d2b;
  font-size: 1.2rem;
  font-weight: 700;
  text-align: center;
  background: #e8f5e9;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  padding: 12px;
  margin: 16px 0;
}

.order-reference strong {
  font-size: 1.4rem;
}

.success-modal .submit-button {
  margin-top: 8px
}

.mobile-cart-bar {
  position: fixed;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  left: 12px;
  z-index: 45
}

.mobile-cart-bar button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 62px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 18px;
  color: #041008;
  background: linear-gradient(145deg, var(--green-bright), #1e9c57);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5)
}

.mobile-cart-bar span {
  display: grid;
  text-align: left
}

.mobile-cart-bar small {
  font-size: .72rem;
  opacity: .7
}

.mobile-cart-bar>button>strong {
  font-size: 1.15rem
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border: 1px solid rgba(43, 195, 109, .25);
  border-radius: 999px;
  color: var(--text);
  background: #111b15;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .38);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 18px);
  transition: opacity .2s ease, transform .2s ease
}

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

[hidden] {
  display: none !important
}

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

@media(max-width:900px) {
  .hero {
    grid-template-columns: 1fr
  }

  .hero-brand-card {
    display: none
  }

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

  .checkout-layout {
    grid-template-columns: 1fr
  }

  .summary-card {
    position: static
  }

  .catalog-toolbar {
    top: 78px
  }
}

@media(max-width:620px) {

  .topbar,
  main,
  footer {
    width: min(100% - 22px, 1180px)
  }

  .brand-copy {
    display: none
  }

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

  .hero {
    padding: 46px 0 58px
  }

  .hero h1 {
    font-size: clamp(2.65rem, 14vw, 4rem)
  }

  .section-heading {
    align-items: start
  }

  .product-count {
    padding-top: 7px
  }

  .catalog-section,
  .checkout-section {
    padding-bottom: 70px
  }

  .catalog-toolbar {
    top: 74px;
    margin-right: -3px;
    margin-left: -3px;
    padding: 10px
  }

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

  .product-card {
    min-height: 0;
    padding: 18px
  }

  .product-card h3 {
    margin-top: 17px
  }

  .price {
    padding-top: 18px
  }

  .field-grid {
    grid-template-columns: 1fr
  }

  .field-full {
    grid-column: auto
  }

  .order-form,
  .summary-card {
    border-radius: 22px
  }

  .cart-button {
    padding-left: 13px
  }

  .cart-icon {
    display: none
  }

  .mobile-cart-bar {
    display: block
  }

  .toast {
    bottom: 92px
  }

  .success-modal {
    padding-top: 48px
  }
}

/* PAFO third-party resource links */
.pafo-resource-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
  width: 100%;
}

.pafo-resource-links a {
  display: block;
  padding: 12px 16px;
  border: 1px solid #d4af37;
  border-radius: 12px;
  background: #191919;
  color: #f5d76e;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  transition: background 0.2s ease;
}

.pafo-resource-links a:hover {
  background: #3a2e12;
}

.pafo-resource-links a:focus-visible {
  outline: 2px solid #f5d76e;
  outline-offset: 3px;
}

.pafo-resource-note {
  display: block;
  margin-top: 14px;
  color: #b8aa8b;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* Show PAFO resource links on mobile */
@media (max-width: 900px) {
  .hero-brand-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
  }

  .hero-brand-card>img {
    width: min(100%, 280px);
    height: auto;
  }
}