.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: none;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #146b63);
  color: #fff;
  box-shadow: 0 4px 20px rgba(26, 138, 128, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-secondary { background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.btn-secondary:hover { background: var(--surface-hover); }
.btn-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }
.btn-mint { background: var(--accent); color: #070709; }
.btn-mint:hover { filter: brightness(1.1); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(78,205,196,0.25);
}
.badge-warn { background: var(--warn-bg); color: var(--warn); }
.badge-out { background: #ececec; color: #666; }

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 1.25rem; }

.hero {
  padding: 3.5rem 0 2.5rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 1rem;
  font-weight: 400;
}
.hero p { color: var(--muted); font-size: 1.05rem; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.25rem; }
.trust-chip {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  background: #fff;
  border: 1px solid var(--line);
}
.hero-visual {
  min-height: 320px;
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper-2);
}
.site-logo-img { height: 32px; width: auto; display: block; }

.section { padding: 2.5rem 0; }
.section-head { margin-bottom: 1.5rem; }
.section-head h1, .section-head h2 {
  font-family: var(--font-display);
  font-size: 1.9rem;
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-weight: 400;
}
.section-head p { margin: 0; color: var(--muted); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.product-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 0.15s, box-shadow 0.15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px rgba(12,20,36,0.1); }
.product-thumb {
  aspect-ratio: 1;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--bg-soft);
  overflow: hidden;
}
.product-thumb img, .gallery-main img, .hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-main {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: var(--paper-2);
  overflow: hidden;
  border: 1px solid var(--line);
}
.product-body { padding: 1rem 1.1rem 1.15rem; flex: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.product-body h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.product-meta { font-size: 0.82rem; color: var(--muted); }
.product-price { margin-top: auto; font-weight: 700; font-size: 1.1rem; color: var(--ink); }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
}
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.filter-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.field label { display: block; font-size: 0.8rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(196,106,43,0.25);
  border-color: var(--accent);
}

.bulk-box {
  background: linear-gradient(135deg, #f3faf8, #eaf5f1);
  border: 1.5px solid #9fd4c8;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1rem 0;
}
.bulk-box h4 {
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--mint);
}
.bulk-tier {
  display: grid;
  grid-template-columns: 2.5rem 3rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1.5px solid #cfe9e2;
  border-radius: var(--radius-sm);
  margin-bottom: 0.45rem;
  cursor: pointer;
}
.bulk-tier.active { border-color: var(--mint); box-shadow: 0 0 0 3px rgba(61,143,133,0.15); }
.bulk-tier .qty { font-weight: 700; }
.bulk-tier .save { font-size: 0.82rem; color: var(--mint); font-weight: 600; text-align: right; }

.coa-list { display: flex; flex-direction: column; gap: 0.5rem; }
.coa-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.coa-item.pending { opacity: 0.65; }

.cart-btn {
  position: relative;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-weight: 600;
  cursor: pointer;
}
.cart-count {
  position: absolute;
  top: -6px;
  right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  min-width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}
.summary-line { display: flex; justify-content: space-between; margin-bottom: 0.45rem; font-size: 0.92rem; }
.summary-total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); padding-top: 0.75rem; margin-top: 0.5rem; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(15, 23, 42, 0.28);
  display: none; place-items: center; z-index: 200; padding: 1rem;
}
.modal-overlay.open { display: grid; }
.modal {
  width: min(480px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.modal h3 { margin: 0 0 0.75rem; font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; }
.modal p { color: var(--muted); font-size: 0.92rem; }
.modal-actions { display: flex; gap: 0.6rem; margin-top: 1.25rem; flex-wrap: wrap; }

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0;
}

.qty-row { display: flex; align-items: center; gap: 0.5rem; margin: 1rem 0; }
.qty-row button {
  width: 2.2rem; height: 2.2rem; border-radius: 8px; border: 1px solid var(--line); background: #fff; cursor: pointer;
}
.qty-row input { width: 4rem; text-align: center; }

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