:root {
  --ink: #102033;
  --muted: #617083;
  --page: #F3F4F6;
  --line: #E5E7EB;
  --surface: #FFFFFF;
  --surface-soft: #f5f7fa;
  --accent: #0b5fff;
  --accent-dark: #0848c5;
  --success: #0d7a50;
  --danger: #b42318;
  --radius: 18px;
  --shadow: 0 18px 48px rgba(16, 32, 51, 0.09);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(11, 95, 255, 0.35); outline-offset: 3px; }
[hidden] { display: none !important; }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: fixed; left: 12px; top: -70px; padding: 10px 14px; background: var(--ink); color: white; z-index: 100; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.94); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -0.02em; }

.hero { background: radial-gradient(circle at 80% 15%, rgba(11,95,255,.15), transparent 32%), linear-gradient(145deg, #0f2033 0%, #152e49 100%); color: white; }
.hero h1 { max-width: 760px; margin: 10px 0 16px; font-size: clamp(2.4rem, 6vw, 5.1rem); line-height: .98; letter-spacing: -0.055em; }
.eyebrow { margin: 0; color: var(--accent); font-weight: 800; letter-spacing: .13em; font-size: .78rem; }
.hero .eyebrow { color: #8fb7ff; }
.catalog-toolbar h2, .section-heading h2 { margin: 4px 0 0; font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -.035em; }
.search-form label, .field label { display: block; margin-bottom: 7px; font-weight: 700; font-size: .9rem; }
input { width: 100%; min-height: 48px; border: 1px solid #cbd4df; border-radius: 12px; padding: 10px 13px; color: var(--ink); background: white; }
input:hover { border-color: #9aa9bb; }
input:focus { border-color: var(--accent); }

.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 0 18px; border: 1px solid transparent; font-weight: 800; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, border-color .15s ease; }
.button:hover:not(:disabled) { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .55; }
.button-primary { color: white; background: var(--accent); }
.button-primary:hover:not(:disabled) { background: var(--accent-dark); }
.button-secondary { background: white; border-color: var(--line); color: var(--ink); }
.button-secondary:hover:not(:disabled) { border-color: #aab6c4; }

.product-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.product-card {
  min-width: 0;
  border: 1px solid #dce4ed;
  border-radius: 22px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px rgba(16, 32, 51, .035);
  transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.product-card:hover { box-shadow: 0 20px 42px rgba(16, 32, 51, .11); transform: translateY(-3px); border-color: #c4cfdb; }
.product-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; }
.product-link:focus-visible { outline-offset: -3px; border-radius: 20px; }
.product-media-frame { position: relative; aspect-ratio: 1 / 1; padding: 16px; overflow: hidden; border-bottom: 1px solid #edf1f5; background: #FFFFFF; }
.product-visual { aspect-ratio: 1 / .72; display: grid; place-items: center; background: #FFFFFF; color: #8a9aae; font-size: 3rem; font-weight: 900; letter-spacing: -.06em; }
.product-media-frame .product-visual {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  border: 1px solid #e5ebf2;
  border-radius: 17px;
  background: #FFFFFF;
  color: #8191a4;
  font-size: clamp(2.8rem, 5vw, 4.6rem);
}
.product-card-shipping {
  position: absolute;
  left: 24px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #cfe7db;
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  color: #08764d;
  box-shadow: 0 4px 14px rgba(16, 32, 51, .07);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .075em;
}
.product-card-body { flex: 1; display: flex; flex-direction: column; padding: 19px; }
.product-card-copy { min-height: 104px; }
.product-brand { margin: 0 0 7px; font-size: .74rem; text-transform: uppercase; letter-spacing: .105em; color: var(--muted); font-weight: 850; }
.product-card h3 { margin: 0; font-size: 1.04rem; line-height: 1.34; letter-spacing: -.012em; }
.product-meta { color: var(--muted); margin: 8px 0 0; font-size: .84rem; }
.product-card-footer { margin-top: auto; padding-top: 18px; border-top: 1px solid #edf1f5; display: grid; gap: 14px; }
.product-price-copy { display: grid; gap: 2px; }
.price-prompt { margin: 0; font-weight: 850; color: var(--ink); font-size: .91rem; }
.product-price-note { color: var(--muted); font-size: .76rem; }
.product-card-cta { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; padding: 0 11px; border-radius: 11px; background: #f1f5f9; color: var(--ink); font-size: .82rem; font-weight: 850; transition: background .15s ease, color .15s ease; }
.product-card:hover .product-card-cta { background: var(--ink); color: #fff; }
.shipping-label { margin: 0; color: var(--success); font-weight: 900; font-size: .78rem; letter-spacing: .08em; }
.shipping-label-large { font-size: .85rem; }
.pagination { margin-top: 38px; display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--muted); }

.product-page { padding: 28px 0 90px; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: 58px; align-items: start; padding-bottom: 64px; }
.product-gallery { min-width: 0; position: sticky; top: 118px; }
.product-media-stage { aspect-ratio: 1 / 1; padding: clamp(18px, 3vw, 34px); border: 1px solid #e2e8ef; border-radius: 28px; background: #FFFFFF; box-shadow: 0 12px 36px rgba(16, 32, 51, .055); }
.product-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 9px;
  margin-top: 12px;
}

.product-gallery-thumb {
  min-width: 0;
  aspect-ratio: 1 / 1;
  padding: 5px;
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.product-gallery-thumb:hover {
  border-color: #aebfd3;
  transform: translateY(-1px);
}

.product-gallery-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 95, 255, .12);
}

.product-gallery-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 8px;
  object-fit: contain;
  background: #f8fafc;
}

.product-visual-large { width: 100%; height: 100%; aspect-ratio: auto; border: 1px solid #e6ebf1; border-radius: 22px; background: radial-gradient(circle at 50% 42%, #fff 0%, #fafbfd 48%, #eef2f6 100%); color: #7c8da0; font-size: clamp(4rem, 10vw, 8rem); }
.product-purchase-panel { min-width: 0; padding: 8px 0 0; }
.product-title-block { padding-bottom: 24px; border-bottom: 1px solid #e8edf3; }
.product-purchase-panel h1 { margin: 6px 0 12px; max-width: 620px; font-size: clamp(2.2rem, 4.7vw, 3.65rem); line-height: 1.04; letter-spacing: -.048em; }
.product-delivered-copy { margin: 0; color: var(--muted); font-size: 1.02rem; }
.product-facts { margin: 0; padding: 21px 0; display: grid; gap: 0; border-bottom: 1px solid #e8edf3; }
.product-facts div { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 18px; padding: 7px 0; }
.product-facts dt { color: var(--muted); font-size: .9rem; }
.product-facts dd { margin: 0; font-weight: 750; overflow-wrap: anywhere; }
.product-shipping-state-detail { margin-top: 22px; padding: 18px; border: 1px solid #dce4ed; border-radius: 16px; background: #f8fafc; }
.product-shipping-state-detail .shipping-explanation { margin: 10px 0 0; color: #4f6074; font-size: .9rem; }
.product-shipping-state-detail .shipping-warning:not([hidden]) { margin-top: 10px; color: var(--danger); font-size: .9rem; font-weight: 700; }
.product-action-stack { margin-top: 22px; display: grid; gap: 10px; }
.product-primary-action, .product-cart-form .button { width: 100%; min-height: 54px; }
.product-cart-form { margin: 0; }
.product-trust-strip { margin-top: 24px; padding: 20px 0; border-top: 1px solid #e8edf3; border-bottom: 1px solid #e8edf3; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.product-trust-strip > div { min-width: 0; padding: 0 16px; border-left: 1px solid #e8edf3; display: grid; align-content: start; gap: 5px; }
.product-trust-strip > div:first-child { padding-left: 0; border-left: 0; }
.product-trust-strip > div:last-child { padding-right: 0; }
.product-trust-strip strong { font-size: .86rem; }
.product-trust-strip span { color: var(--muted); font-size: .78rem; line-height: 1.45; }

.payment-method-picker {
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

.payment-method-picker legend {
  margin-bottom: 10px;
  font-size: .9rem;
  font-weight: 800;
}

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

.payment-method-card {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "radio copy"
    "radio status";
  align-items: center;
  gap: 2px 10px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid #d8e1eb;
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.payment-method-card:hover:not(.is-unavailable) {
  border-color: #98afd0;
  box-shadow: 0 8px 22px rgba(16, 32, 51, .08);
  transform: translateY(-1px);
}

.payment-method-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 95, 255, .12);
  background: #f8fbff;
}

.payment-method-card input {
  grid-area: radio;
  width: 18px;
  min-height: auto;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.payment-method-copy {
  grid-area: copy;
  min-width: 0;
  display: grid;
  gap: 1px;
}

.payment-method-copy strong {
  font-size: .92rem;
}

.payment-method-copy small {
  color: var(--muted);
  font-size: .75rem;
}

.payment-method-status {
  grid-area: status;
  color: var(--success);
  font-size: .72rem;
  font-weight: 800;
}

.payment-method-card.is-unavailable {
  background: #f8fafc;
  cursor: not-allowed;
  opacity: .62;
}

.payment-method-card.is-unavailable .payment-method-status {
  color: var(--muted);
}

.checkout-destination-heading {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.crypto-payment-panel {
  display: grid;
  gap: 14px;
}

.crypto-payment-panel p {
  margin: 0;
  color: var(--muted);
}

.crypto-payment-details {
  display: grid;
  gap: 10px;
  margin: 0;
}

.crypto-payment-details div {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
}

.crypto-payment-details dt {
  color: var(--muted);
  font-size: .8rem;
}

.crypto-payment-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-weight: 800;
  font-size: .84rem;
}

.checkout-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 24px; align-items: start; }
.checkout-main, .checkout-aside { border: 1px solid var(--line); border-radius: 22px; background: white; }
.checkout-main { padding: clamp(22px, 4vw, 42px); box-shadow: var(--shadow); }
.checkout-aside { position: sticky; top: 94px; padding: 27px; background: #102033; color: white; }
.checkout-aside .eyebrow { color: #8fb7ff; }
.checkout-aside h2 { margin: 8px 0 22px; font-size: 1.45rem; line-height: 1.2; }
.section-heading > p:last-child { max-width: 690px; color: var(--muted); margin: 10px 0 0; }
.section-heading.compact { margin-top: 4px; }
.form-stack { margin-top: 28px; display: grid; gap: 17px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field-grid-small { grid-template-columns: minmax(120px, .3fr) 1fr; }
.optional { color: var(--muted); font-weight: 500; font-size: .8rem; }
.quote-result { margin-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; padding: 23px; background: #f7fbf8; border: 1px solid #cfe8dc; border-radius: 16px; }
.quote-label { margin: 0; color: var(--muted); font-size: .88rem; }
.quote-price { margin: 1px 0 3px; font-size: 2rem; font-weight: 900; letter-spacing: -.035em; }
.quote-eta { text-align: right; display: grid; gap: 2px; }
.quote-eta span, .quote-eta small { color: var(--muted); }
.checkout-details, .payment-stage { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.environment-note { margin: -7px 0 0; color: var(--muted); font-size: .9rem; }
.status-message { margin-top: 20px; padding: 13px 15px; border-radius: 12px; background: #edf3f9; }
.status-message[data-kind="success"] { color: #075f3e; background: #e9f7f0; }
.status-message[data-kind="error"] { color: #8c1d18; background: #fff0ef; }
.check-list { margin: 0; padding-left: 20px; color: #dbe6f2; display: grid; gap: 10px; }

.site-footer { border-top: 1px solid var(--line); background: var(--surface-soft); color: var(--muted); }

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

@media (max-width: 960px) {
  .catalog-toolbar, .product-layout, .checkout-shell { grid-template-columns: 1fr; }
  .product-gallery, .checkout-aside { position: static; }
  .product-gallery { max-width: 720px; margin: 0 auto; width: 100%; }
  .product-purchase-panel { max-width: 720px; margin: 0 auto; width: 100%; }
}

@media (max-width: 780px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .payment-method-grid { grid-template-columns: 1fr; }
  .product-card-copy { min-height: 96px; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, 1180px); }
  .brand { font-size: .92rem; }
  .hero h1 { font-size: clamp(2.4rem, 13vw, 3.5rem); }
  .product-page { padding-top: 20px; }
  .product-layout { gap: 28px; padding-bottom: 44px; }
  .product-media-stage { padding: 14px; border-radius: 20px; }
  .product-gallery-thumbnails { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-visual-large { border-radius: 16px; }
  .product-purchase-panel { padding-top: 0; }
  .product-purchase-panel h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .product-facts div { grid-template-columns: 88px minmax(0, 1fr); gap: 12px; }
  .product-trust-strip { grid-template-columns: 1fr; gap: 16px; }
  .product-trust-strip > div { padding: 0 0 16px; border-left: 0; border-bottom: 1px solid #e8edf3; }
  .product-trust-strip > div:last-child { padding-bottom: 0; border-bottom: 0; }
  .field-grid, .field-grid-small, .quote-result { grid-template-columns: 1fr; }
  .quote-eta { text-align: left; }
  .checkout-main { padding: 20px; }
}

@media (max-width: 500px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-media-frame { aspect-ratio: 1.18 / 1; }
  .product-gallery-thumbnails { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-card-copy { min-height: 0; }
}
