:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --surface: #ffffff;
  --surface-soft: #eef3f4;
  --text: #15191f;
  --muted: #65717f;
  --line: #d9e0e6;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --blue: #1d4ed8;
  --gold: #b7791f;
  --danger: #b42318;
  --shadow: 0 18px 36px rgba(21, 25, 31, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
}

body.cart-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled,
.disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

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

img {
  max-width: 100%;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding: 0.75rem clamp(1rem, 4vw, 3rem);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0.75rem;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
  overflow: hidden;
  max-width: 100%;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  color: #475467;
  font-size: 0.94rem;
}

.nav a:hover,
.footer a:hover {
  color: var(--accent-dark);
}

.cart-button,
.primary,
.secondary,
.product-actions button,
.product-actions a,
.icon-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: center;
}

.cart-button {
  gap: 0.5rem;
  padding: 0 0.75rem;
}

.cart-button strong {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.primary:hover {
  border-color: var(--accent-dark);
  background: var(--accent-dark);
}

.secondary {
  padding: 0 1rem;
  border-color: #cbd5e1;
  color: #334155;
  font-weight: 650;
}

.secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 4.5rem) 0 2.5rem;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 12em;
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.lead {
  max-width: 760px;
  color: #475467;
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.hero-actions a,
.action-row a,
.action-row button,
.button-stack button {
  min-width: 132px;
  padding: 0 1rem;
}

.hero-product {
  min-width: 0;
}

.section {
  padding: 2.25rem 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-head h2,
.page-title h1,
.detail-summary h1 {
  margin-bottom: 0.45rem;
}

.section-head p,
.page-title p,
.info-panel p,
.policy-card p,
.process p,
.footer p,
.product-card p,
.fee-note {
  color: var(--muted);
  line-height: 1.75;
}

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

.product-card {
  display: grid;
  grid-template-columns: minmax(240px, 0.84fr) minmax(0, 1fr);
  overflow: hidden;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

.placeholder-card {
  min-height: 420px;
  background: linear-gradient(90deg, #edf2f4 25%, #f8fafc 50%, #edf2f4 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

.product-image {
  display: block;
  background: var(--surface-soft);
}

.product-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.detail-media img,
.cart-row img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content {
  display: grid;
  align-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.product-card h3 {
  margin-bottom: 0.2rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

.product-card p {
  margin-bottom: 0;
}

.product-bottom {
  display: grid;
  gap: 1rem;
}

.product-bottom strong {
  color: #111827;
  font-size: 1.55rem;
}

.product-bottom strong span,
.detail-price span {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.product-actions button,
.product-actions a {
  min-width: 108px;
  padding: 0 0.85rem;
}

.product-actions button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.product-actions a {
  color: var(--blue);
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-panel,
.policy-card,
.contact-card,
.order-card,
.order-form,
.info-card,
.legal-note,
.content-band > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(21, 25, 31, 0.04);
}

.info-panel,
.policy-card,
.contact-card,
.order-card,
.order-form,
.info-card,
.legal-note,
.content-band > div {
  padding: clamp(1rem, 2vw, 1.4rem);
}

.check-list,
.info-card ul,
.content-band ul,
.policy-card ol {
  margin: 0;
  padding-left: 1.25rem;
  color: #344054;
  line-height: 1.85;
}

.check-list li::marker,
.info-card li::marker,
.content-band li::marker {
  color: var(--accent);
}

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

.process div {
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.process span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 0.9rem;
  border-radius: 999px;
  background: #e6f4f1;
  color: var(--accent-dark);
  font-weight: 800;
}

.process strong {
  display: block;
  margin-bottom: 0.35rem;
}

.page-title {
  max-width: 820px;
  padding: 2.5rem 0 1.25rem;
}

.page-title h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.detail-page {
  padding-top: 2rem;
}

.detail-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
}

.detail-media {
  overflow: hidden;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.detail-summary {
  display: grid;
  align-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.detail-summary h1 {
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.detail-price {
  margin: 0.6rem 0 1rem;
  color: #111827;
  font-size: 2rem;
  font-weight: 800;
}

.action-row,
.button-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.fee-note {
  margin: 1rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem 0;
}

.content-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 1rem;
}

.legal-note {
  margin-bottom: 2.5rem;
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 1rem;
  align-items: start;
  padding-bottom: 3rem;
}

.order-items,
.cart-items {
  display: grid;
  gap: 0.75rem;
}

.order-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 1rem;
  align-items: center;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
}

.order-row span,
.cart-row span {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.order-total,
.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.order-total {
  padding-top: 1rem;
}

.order-total strong,
.cart-total strong {
  font-size: 1.4rem;
}

.order-form {
  display: grid;
  gap: 0.85rem;
}

.order-form label {
  display: grid;
  gap: 0.4rem;
  color: #475467;
  font-size: 0.94rem;
}

.order-form input,
.order-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  padding: 0.72rem 0.8rem;
}

.order-form textarea {
  resize: vertical;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--accent-dark);
  line-height: 1.6;
}

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

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.36);
}

.cart-panel[aria-hidden="false"] {
  display: flex;
}

.cart-sheet {
  width: min(100%, 460px);
  height: 100%;
  overflow-y: auto;
  background: var(--surface);
  box-shadow: -18px 0 45px rgba(21, 25, 31, 0.16);
}

.cart-head {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.cart-head h2 {
  margin: 0;
}

.icon-button {
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 1.35rem;
}

.cart-items {
  padding: 1rem;
}

.cart-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.cart-row img {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  background: var(--surface-soft);
}

.quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.quantity button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
}

.quantity span {
  min-width: 30px;
  margin: 0;
  color: var(--text);
  text-align: center;
}

.text-button {
  grid-column: 2 / -1;
  justify-self: start;
  border: 0;
  background: transparent;
  color: var(--danger);
}

.cart-foot {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-top: 1px solid var(--line);
}

.cart-foot .link-button {
  width: 100%;
}

.empty {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  color: var(--muted);
  text-align: center;
}

.empty.compact {
  padding: 1rem;
}

.policy-card {
  margin-bottom: 3rem;
}

.policy-card h2 {
  margin: 1.25rem 0 0.45rem;
  font-size: 1.1rem;
}

.policy-card h2:first-child {
  margin-top: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}

.contact-card {
  display: grid;
  gap: 0.55rem;
  min-height: 130px;
}

.contact-card span {
  color: var(--muted);
}

.contact-card strong,
.contact-card a {
  font-size: 1.25rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-card.priority {
  border-color: #b9d9d6;
  background: #fbfffe;
}

.is-muted {
  background: #f8fafc;
}

.is-muted a {
  color: var(--muted);
  font-weight: 650;
}

.footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--line);
}

.footer p {
  max-width: 820px;
  margin: 0.5rem 0 0;
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem 1.2rem;
  color: #475467;
}

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

  .hero h1 {
    max-width: none;
  }

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

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

  .two-column,
  .process,
  .detail-grid,
  .content-band,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  main,
  .footer {
    width: min(100% - 1rem, 1180px);
  }

  .topbar {
    gap: 0.5rem;
    padding-inline: 0.75rem;
  }

  .brand small,
  .nav {
    display: none;
  }

  .cart-button {
    flex: 0 0 auto;
    padding: 0 0.55rem;
  }

  .cart-button span {
    display: none;
  }

  .hero {
    padding-top: 1.5rem;
  }

  .section,
  .page-title {
    padding-block: 1.5rem;
  }

  .hero h1,
  .detail-summary h1,
  .page-title h1 {
    font-size: 1.9rem;
  }

  .lead {
    font-size: 1rem;
  }

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

  .footer nav {
    justify-content: flex-start;
  }

  .detail-media {
    min-height: 300px;
  }

  .order-row {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .cart-row {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cart-row .quantity {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 420px) {
  .hero-actions a,
  .action-row a,
  .action-row button,
  .button-stack button {
    width: 100%;
  }

  .product-actions {
    display: grid;
  }

  .product-actions button,
  .product-actions a {
    width: 100%;
  }
}
