:root {
  --green: #087c45;
  --green-dark: #075432;
  --green-soft: #eaf6ef;
  --ink: #101915;
  --muted: #66736c;
  --line: #dce7e0;
  --paper: #ffffff;
  --background: #f3f7f4;
  --gold: #f6b73c;
  --danger: #b42318;
  --shadow: 0 18px 50px rgba(6, 61, 34, .12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

button { cursor: pointer; }

[hidden] { display: none !important; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto minmax(220px, 620px) auto;
  align-items: center;
  gap: 22px;
  padding: 14px clamp(16px, 4vw, 56px);
  border-bottom: 1px solid rgba(8, 124, 69, .12);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--green), var(--green-dark));
  color: white;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(8, 124, 69, .24);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 18px; line-height: 1; }
.brand small { margin-top: 4px; color: var(--green); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }

.header-search {
  display: flex;
  min-height: 48px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 0 18px;
  background: transparent;
}

.header-search button {
  width: 52px;
  border: 0;
  background: var(--green);
  color: white;
  font-size: 26px;
}

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

.ghost-button, .cart-button, .primary-button, .icon-button, .footer-link {
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}

.ghost-button {
  min-height: 42px;
  padding: 0 16px;
  background: var(--green-soft);
  color: var(--green-dark);
}

.cart-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: white;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 25px;
  height: 25px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--gold);
  color: #2f2104;
}

.primary-button {
  min-height: 50px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: white;
  box-shadow: 0 12px 28px rgba(8, 124, 69, .22);
}

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

.full-width { width: 100%; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  min-height: 420px;
  margin: 28px clamp(16px, 4vw, 56px);
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.19), transparent 34%),
    linear-gradient(135deg, #0a8b4e 0%, #075c36 64%, #043b24 100%);
  color: white;
  box-shadow: var(--shadow);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(34px, 6vw, 78px);
}

.eyebrow, .section-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(42px, 7vw, 78px);
  line-height: .96;
  letter-spacing: -.055em;
}

.hero p {
  max-width: 650px;
  margin: 22px 0 28px;
  color: rgba(255,255,255,.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.hero .primary-button {
  background: white;
  color: var(--green-dark);
  box-shadow: none;
}

.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 330px;
}

.hero-bag {
  position: relative;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 190px;
  height: 220px;
  border-radius: 28px 28px 48px 48px;
  background: linear-gradient(150deg, #fff, #e9f7ef);
  color: var(--green);
  font-size: 94px;
  font-weight: 950;
  box-shadow: 0 32px 80px rgba(0,0,0,.24);
  transform: rotate(5deg);
}

.hero-bag::before {
  content: "";
  position: absolute;
  top: -43px;
  width: 104px;
  height: 72px;
  border: 18px solid #eef8f2;
  border-bottom: 0;
  border-radius: 60px 60px 0 0;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 50%;
}

.orbit-one { width: 300px; height: 300px; }
.orbit-two { width: 390px; height: 390px; }

.catalog-shell {
  margin: 0 clamp(16px, 4vw, 56px) 70px;
}

.catalog-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 42px 0 18px;
}

.catalog-toolbar h2, .drawer h2, .modal h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -.035em;
}

.catalog-toolbar .section-kicker, .drawer .section-kicker, .modal .section-kicker { color: var(--green); }

.select-control, input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: white;
  color: var(--ink);
  outline: 0;
}

.select-control { width: auto; min-width: 190px; padding: 12px 14px; }
input, select { min-height: 48px; padding: 0 13px; }
textarea { padding: 13px; resize: vertical; }

input:focus, select:focus, textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8,124,69,.11);
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 14px;
  color: #26352e;
  font-size: 14px;
  font-weight: 800;
}

.category-chips {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 6px 0 22px;
}

.category-chip {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: var(--ink);
  font-weight: 800;
}

.category-chip.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.catalog-message {
  padding: 22px 0;
  color: var(--muted);
  font-weight: 700;
}

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

.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(8,124,69,.1);
  border-radius: 24px;
  background: white;
  box-shadow: 0 10px 28px rgba(10, 52, 31, .07);
  transition: transform .2s ease, box-shadow .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(10, 52, 31, .13);
}

.product-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1 / .82;
  overflow: hidden;
  background: linear-gradient(145deg, #edf5f0, #f8fbf9);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-placeholder {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 25px;
  background: var(--green);
  color: white;
  font-size: 42px;
  font-weight: 950;
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #362604;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.product-body { padding: 18px; }
.product-category { color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.product-body h3 { margin: 8px 0 7px; font-size: 19px; line-height: 1.2; }
.product-description { min-height: 42px; margin: 0 0 13px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.product-price-row { display: flex; align-items: baseline; gap: 9px; }
.product-price { font-size: 21px; font-weight: 950; }
.compare-price { color: #87928c; text-decoration: line-through; font-size: 13px; }

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  margin-top: 16px;
}

.add-cart-button, .view-button {
  min-height: 44px;
  border: 0;
  border-radius: 13px;
  font-weight: 900;
}

.add-cart-button { background: var(--green); color: white; padding: 0 14px; }
.add-cart-button:disabled { background: #b7c3bc; }
.view-button { width: 46px; background: var(--green-soft); color: var(--green-dark); font-size: 20px; }

.stock-note { margin-top: 10px; color: var(--muted); font-size: 12px; font-weight: 750; }
.stock-note.low { color: var(--danger); }

.pagination-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px clamp(16px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: white;
}

footer strong, footer span { display: block; }
footer span { margin-top: 5px; color: var(--muted); }
.footer-link { background: transparent; color: var(--green); }

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(5, 17, 11, .58);
  backdrop-filter: blur(5px);
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100dvh;
  padding: 22px;
  background: white;
  box-shadow: -20px 0 60px rgba(0,0,0,.22);
  transform: translateX(105%);
  transition: transform .25s ease;
}

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

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

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--green-soft);
  color: var(--green-dark);
  font-size: 25px;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
}

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

.cart-item-image {
  width: 74px;
  height: 74px;
  overflow: hidden;
  border-radius: 14px;
  background: var(--green-soft);
}

.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item h4 { margin: 0 0 5px; }
.cart-item p { margin: 0; color: var(--muted); font-size: 13px; }

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.quantity-control button {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 950;
}

.remove-button { border: 0; background: transparent; color: var(--danger); font-weight: 900; }
.cart-summary { padding-top: 18px; border-top: 1px solid var(--line); }
.cart-summary > div { display: flex; justify-content: space-between; font-size: 20px; }
.cart-summary p { min-height: 20px; color: var(--danger); font-size: 13px; }

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: min(1000px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  overflow-y: auto;
  border-radius: 28px;
  background: white;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -46%) scale(.98);
  transition: opacity .2s ease, transform .2s ease;
}

.modal.open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.compact-modal { width: min(560px, calc(100% - 28px)); }
.checkout-modal { width: min(1080px, calc(100% - 28px)); }
.modal-close { position: sticky; top: 16px; float: right; margin: 16px 16px 0 0; z-index: 5; }
.modal-body { padding: 34px; }
.muted { color: var(--muted); line-height: 1.55; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr);
  gap: 30px;
  padding: 34px;
}

.product-gallery-main {
  display: grid;
  place-items: center;
  min-height: 440px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--background);
}

.product-gallery-main img, .product-gallery-main video {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
}

.product-thumbnails { display: flex; gap: 9px; overflow-x: auto; margin-top: 10px; }
.product-thumbnail {
  width: 76px;
  height: 64px;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--green-soft);
}
.product-thumbnail.active { border-color: var(--green); }
.product-thumbnail img, .product-thumbnail video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }

.product-detail-copy h2 { margin: 9px 0 12px; }
.product-detail-price { font-size: 30px; font-weight: 950; }
.product-detail-description { color: #3e4d45; line-height: 1.7; white-space: pre-wrap; }
.detail-buy-row { display: grid; grid-template-columns: 100px 1fr; gap: 10px; margin-top: 22px; }

.split-fields { display: grid; grid-template-columns: .45fr 1fr; gap: 12px; }
.checkout-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.checkout-grid h3 { margin: 24px 0 14px; }
.choice-grid, .payment-choices { display: grid; gap: 10px; }

.choice-card {
  display: flex;
  grid-template-columns: unset;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  cursor: pointer;
}

.choice-card:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  box-shadow: 0 0 0 2px rgba(8,124,69,.08);
}

.choice-card input { width: 20px; min-height: 20px; margin-top: 2px; }
.choice-card span { display: block; }
.choice-card strong, .choice-card small { display: block; }
.choice-card small { margin-top: 3px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.choice-card.disabled { opacity: .55; cursor: not-allowed; }

.checkout-summary {
  margin: 20px 0 14px;
  padding: 16px;
  border-radius: 15px;
  background: var(--background);
}

.summary-row { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; }
.summary-total { padding-top: 10px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 950; }

.form-message { min-height: 21px; color: var(--danger); font-weight: 750; }
.form-message.success { color: var(--green); }

.order-success-icon {
  display: grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--green);
  color: white;
  font-size: 44px;
  font-weight: 950;
}

.order-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--background);
}

.order-card div { display: flex; justify-content: space-between; gap: 12px; margin: 7px 0; }
.order-token { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 120;
  max-width: calc(100% - 30px);
  padding: 13px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-weight: 800;
  box-shadow: var(--shadow);
  transform: translateX(-50%);
}

.empty-state {
  padding: 44px 16px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1100px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header {
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 12px 14px;
  }
  .header-search { grid-column: 1 / -1; grid-row: 2; }
  .header-actions .ghost-button { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-detail, .checkout-grid { grid-template-columns: 1fr; }
  .product-gallery-main { min-height: 320px; }
}

@media (max-width: 560px) {
  .site-header { align-items: center; }
  .brand small { display: none; }
  .cart-button span { display: none; }
  .hero { margin: 14px; border-radius: 24px; min-height: 360px; }
  .hero-copy { padding: 34px 24px; }
  .hero h1 { font-size: 47px; }
  .catalog-shell { margin: 0 14px 50px; }
  .catalog-toolbar { align-items: flex-start; flex-direction: column; }
  .select-control { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 1.2 / 1; }
  footer { flex-direction: column; }
  .modal-body, .product-detail { padding: 24px 18px 26px; }
  .split-fields { grid-template-columns: 1fr; }
  .drawer { padding: 18px; }
}


/* Payment receipt submission */
.payment-proof-form {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f7fbf8;
}
.payment-proof-form label {
  display: grid;
  gap: 8px;
  font-weight: 800;
}
.payment-proof-form input[type="file"] {
  width: 100%;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.payment-proof-form small {
  display: block;
  margin: 8px 0 2px;
  color: var(--muted);
  line-height: 1.4;
}
