/* ============================================================
   GoPlusMods — storefront
   Conventional e-commerce product page. White, one blue accent,
   Inter throughout. Deliberately plain: a shop that looks like
   every other shop is a shop people trust.
   ============================================================ */

:root {
  /* Red is reserved for the product itself — the device in the photos.
     It is deliberately absent from buttons, text, borders and links. */
  --navy:       #1B2838;   /* the device's dark rim — primary action colour */
  --navy-2:     #2B3D55;
  --navy-soft:  #EDF0F4;
  --yellow:     #FFCB05;   /* highlight / badge */
  --yellow-ink: #6A5200;
  --yellow-soft:#FFF6D6;
  --blue:       #2A75BB;   /* links only */
  --blue-deep:  #1F5C96;
  --blue-soft:  #E8F1FA;

  --ink:        #15202B;
  --grey:       #55606E;
  --grey-2:     #869099;
  --line:       #E1E6EB;
  --line-2:     #EFF2F5;
  --surface:    #F6F8FA;
  --white:      #FFFFFF;
  --green:      #18794E;
  --green-soft: #E6F4EC;
  --error:      #B3261E;   /* validation only */
  --error-soft: #FBEDEC;
  --trace:      rgba(21,32,43,.075);   /* the background circuit */

  --shadow-s: 0 1px 2px rgba(21,32,43,.05);
  --shadow-m: 0 1px 3px rgba(21,32,43,.06), 0 8px 24px rgba(21,32,43,.08);

  --r-s: 6px;
  --r-m: 10px;

  --rail: 1180px;
  --gutter: clamp(16px, 3.5vw, 40px);

  --ff: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: #FCFDFE;
  color: var(--ink);
  font-family: var(--ff);
  font-size: 15.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; border-radius: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- abstract circuit-trace background ---------- */
/* one grey circuit layer running behind the entire page */
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.announce, .site-header, main, .site-footer { position: relative; z-index: 1; }

.rail { width: 100%; max-width: var(--rail); margin-inline: auto; padding-inline: var(--gutter); position: relative; }
/* The board runs across the whole page. Behind the content column it
   sits under a soft wash — feathered at both edges so it reads as light
   falling off, not as a box — which keeps body copy comfortable to read
   while the traces stay visible through it. Full strength in the margins. */
.rail::before {
  content: ""; position: absolute; inset: -6px -26px; z-index: -1;
  background: linear-gradient(90deg,
    rgba(252,253,254,0) 0,
    rgba(252,253,254,.62) 54px,
    rgba(252,253,254,.62) calc(100% - 54px),
    rgba(252,253,254,0) 100%);
}
.announce .rail::before, .site-header .rail::before { display: none; }
.hidden { display: none !important; }
.muted { color: var(--grey); }
.small { font-size: 13.5px; }

/* ---------- announcement bar ---------- */
.announce {
  background: var(--navy); color: #fff;
  font-size: 13px; text-align: center; padding: 9px var(--gutter);
}
.announce span { display: inline-block; margin-inline: 10px; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: rgba(252,253,254,.92); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 40; }
.header-in { display: flex; align-items: center; gap: 14px; min-height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 9px; margin-right: auto;
  font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none;
  letter-spacing: -.03em; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: var(--navy); color: #fff; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
}
.site-nav { display: flex; gap: 4px; }
.site-nav a { padding: 8px 12px; border-radius: var(--r-s); text-decoration: none; color: var(--grey); font-size: 14.5px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; }
.lang-switch button { border: 0; background: var(--white); cursor: pointer; padding: 7px 10px; font-size: 12px; font-weight: 600; color: var(--grey-2); }
.lang-switch button[aria-pressed="true"] { background: var(--navy); color: #fff; }

/* ---------- breadcrumb ---------- */
.crumbs { font-size: 13px; color: var(--grey-2); padding-block: 16px 4px; }
.crumbs a { color: var(--grey); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { margin-inline: 7px; }

/* ---------- product layout ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); padding-block: 22px clamp(40px, 5vw, 64px); align-items: start; }

/* gallery */
.gallery-main { position: relative; border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; background: rgba(246,248,250,.78); aspect-ratio: 1 / 1; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.slot {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 10px; padding: 24px; text-align: center;
  background: rgba(246,248,250,.55); color: var(--grey-2);
}
.slot .name { font-size: 12.5px; font-weight: 600; color: var(--blue-deep); background: var(--blue-soft); border-radius: 999px; padding: 5px 12px; }
.slot .hint { font-size: 12.5px; max-width: 26ch; line-height: 1.5; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center;
  font-size: 16px; color: var(--ink); box-shadow: var(--shadow-s);
}
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 12px; font-size: 12px; font-variant-numeric: tabular-nums;
}
.thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 10px; }
.thumb {
  aspect-ratio: 1 / 1; border: 1px solid var(--line); border-radius: var(--r-s);
  background: rgba(246,248,250,.78); cursor: pointer; padding: 0; overflow: hidden;
  display: grid; place-items: center; font-size: 11px; color: var(--grey-2);
}
.thumb[aria-current="true"] { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

/* buy box */
.buy h1 { font-size: clamp(25px, 3.2vw, 34px); font-weight: 700; }
.rating-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; font-size: 13.5px; color: var(--grey); }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 4px 11px; font-size: 12.5px; font-weight: 600;
}
.badge-green { background: var(--green-soft); color: var(--green); }
.badge-red { background: var(--error-soft); color: var(--error); }
.badge-yellow { background: var(--yellow-soft); color: var(--yellow-ink); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.price-row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
.price { font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-note { font-size: 13.5px; color: var(--grey); }
.compare { font-size: 13.5px; color: var(--grey-2); }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }

.opt-head { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.opt-list { display: grid; gap: 8px; }
.opt {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 12px 14px;
  background: rgba(255,255,255,.72); transition: border-color .12s ease, background-color .12s ease;
}
.opt:hover { border-color: var(--grey-2); }
.opt:has(input:checked) { border-color: var(--navy); box-shadow: inset 3px 0 0 var(--navy); }
.opt input { margin-top: 2px; width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.opt .on { display: block; font-size: 14.5px; font-weight: 600; }
.opt .od { display: block; font-size: 13px; color: var(--grey); margin-top: 2px; }
.opt.locked { background: rgba(240,243,246,.78); }
.btn-icon svg.lock { display: none; }
.btn-icon.is-secure svg.lock { display: block; }
.opt .tagline { display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; color: var(--yellow-ink); background: var(--yellow-soft); border-radius: 3px; padding: 2px 7px; margin-bottom: 5px; }

.buy-row { display: flex; gap: 10px; align-items: stretch; margin-top: 20px; flex-wrap: wrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-s); background: var(--white); }
.qty button { width: 42px; height: 46px; background: transparent; border: 0; cursor: pointer; font-size: 17px; color: var(--ink); }
.qty button:hover:not([disabled]) { background: var(--surface); }
.qty button[disabled] { color: var(--grey-2); cursor: not-allowed; }
.qty output { width: 42px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border-radius: var(--r-s); border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; text-decoration: none;
  transition: background-color .13s ease, border-color .13s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-secondary { background: var(--white); color: var(--navy); border-color: var(--navy); }
.btn-secondary:hover { background: var(--navy-soft); }
.btn-outline { background: var(--white); color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-icon svg { flex: none; }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.buy-row .btn-primary { flex: 1 1 200px; height: 48px; }
.btn.is-busy { opacity: .8; cursor: progress; }
.btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }
.ship-to { display: grid; gap: 6px; margin-top: 20px; }
.ship-to + .buy-row { margin-top: 12px; }
.ship-to label { font-size: 13px; font-weight: 600; color: var(--ink); }
.ship-to select {
  font-family: var(--ff); font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 11px 12px; width: 100%;
}
.ship-to select:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.buy-info { background: var(--yellow-soft); color: var(--yellow-ink); border-radius: var(--r-s); padding: 11px 14px; font-size: 13.5px; margin-top: 12px; }

.pay-strip { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pay-tag {
  border: 1px solid var(--line); border-radius: var(--r-s); padding: 6px 11px;
  font-size: 12.5px; font-weight: 600; color: var(--grey); background: var(--white);
}
.secure-note {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 10px; font-size: 12.5px; color: var(--grey);
}
.secure-note svg { color: var(--green); flex: none; }
.notice {
  background: rgba(246,248,250,.78); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 13px 15px; font-size: 13.5px; color: var(--grey); margin-top: 16px;
}
.notice strong { color: var(--ink); }
.ship-line { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--grey); margin-top: 14px; }
.ship-line svg { flex: none; color: var(--navy); margin-top: 2px; }

/* ---------- info tabs ---------- */
.tabs { border-top: 1px solid var(--line); }
.tab-bar { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); }
.tab-bar button {
  border: 0; background: transparent; cursor: pointer; white-space: nowrap;
  padding: 15px 18px; font-size: 14.5px; font-weight: 600; color: var(--grey);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.tab-bar button[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { padding-block: 26px 40px; max-width: 78ch; position: relative; }
.tab-panel::before {
  content: ""; position: absolute; inset: 10px -18px 18px -18px; z-index: -1;
  background: rgba(252,253,254,.55); border-radius: 10px;
}
.tab-panel h3 { font-size: 16px; margin-bottom: 10px; }
.tab-panel h3:not(:first-child) { margin-top: 26px; }
.tab-panel p + p { margin-top: 12px; }
.tab-panel ul { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 7px; color: var(--grey); }
.tab-panel li strong { color: var(--ink); }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--grey); width: 38%; }

/* ---------- sections ---------- */
.band { background: rgba(236,240,244,.35); border-top: 1px solid var(--line); }
.band-dark { background: rgba(27,40,56,.035); border-top: 1px solid var(--line); }
.section { padding-block: clamp(40px, 5vw, 64px); }
.section-title { font-size: clamp(20px, 2.4vw, 25px); font-weight: 700; margin-bottom: 8px; }
.section-sub { color: var(--grey); margin-bottom: 26px; max-width: 62ch; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; counter-reset: s; }
.step { background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.step .num {
  width: 28px; height: 28px; border-radius: 50%; background: var(--yellow); color: var(--navy);
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700; margin-bottom: 12px;
}
.step h4 { font-size: 15.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--grey); }

.seller {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px;
  background: rgba(255,255,255,.74); border: 1px solid var(--line); border-radius: var(--r-m); padding: 24px;
}
.seller .avatar {
  width: 68px; height: 68px; border-radius: 50%; background: var(--navy); color: #fff;
  display: grid; place-items: center; font-size: 24px; font-weight: 700; flex: none;
}
.seller h3 { font-size: 17px; margin-bottom: 4px; }
.seller dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 22px; margin: 16px 0 0; }
.seller dt { font-size: 12px; color: var(--grey-2); font-weight: 500; }
.seller dd { margin: 2px 0 0; font-size: 14px; }
.todo { background: var(--yellow-soft); color: var(--yellow-ink); border-radius: var(--r-s); padding: 12px 14px; font-size: 13px; margin-top: 16px; }
.todo strong { display: block; margin-bottom: 3px; }

/* ---------- faq ---------- */
.faq { display: grid; gap: 10px; max-width: 80ch; }
.faq details { border: 1px solid var(--line); border-radius: var(--r-s); background: rgba(255,255,255,.76); }
.faq details[open] { border-color: var(--navy); }
.faq summary { cursor: pointer; list-style: none; padding: 15px 18px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--navy); font-size: 18px; flex: none; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 18px 17px; color: var(--grey); font-size: 14.5px; }

/* ---------- checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: clamp(22px, 4vw, 44px); align-items: start; padding-block: 26px 56px; }
.card { background: rgba(255,255,255,.78); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; margin-bottom: 16px; }
.card > h3 { font-size: 15.5px; margin-bottom: 16px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--grey); }
.field label .req { color: var(--grey-2); }
.field input, .field select, .field textarea {
  font-family: var(--ff); font-size: 15px; color: var(--ink);
  background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: var(--r-s);
  padding: 11px 12px; width: 100%;
}
.field textarea { min-height: 80px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-soft); }
.field .err { font-size: 12.5px; color: var(--error); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--error); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--grey); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--navy); flex: none; }

.summary { position: sticky; top: 82px; background: rgba(255,255,255,.80); border: 1px solid var(--line); border-radius: var(--r-m); padding: 22px; }
.summary h3 { font-size: 15px; margin-bottom: 14px; }
.sum-item { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.sum-item .ph { width: 54px; height: 54px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); flex: none; display: grid; place-items: center; font-size: 10px; color: var(--grey-2); }
.sum-item .nm { font-size: 14px; font-weight: 600; }
.sum-item .mods { font-size: 12.5px; color: var(--grey); margin-top: 3px; }
.sum-line { display: flex; justify-content: space-between; gap: 14px; padding-top: 11px; font-size: 14px; color: var(--grey); }
.sum-line .v { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-top: 1px solid var(--line); margin-top: 12px; padding-top: 13px; }
.sum-total .t-label { font-weight: 600; font-size: 15px; }
.sum-total .t-value { font-size: 24px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.form-error { background: var(--error-soft); border: 1px solid var(--error); color: var(--error); border-radius: var(--r-s); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }

/* ---------- confirmation ---------- */
.confirm { max-width: 720px; margin-inline: auto; padding-block: 40px 60px; }
.confirm-top { text-align: center; margin-bottom: 26px; }
.confirm-top .ok { width: 54px; height: 54px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 16px; font-size: 26px; }
.confirm-ref { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 14px; text-align: center; font-size: 20px; font-weight: 700; letter-spacing: .03em; margin-bottom: 22px; }
.copy-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line-2); padding: 11px 0; }
.copy-row .k { font-size: 12px; color: var(--grey-2); font-weight: 500; min-width: 100px; }
.copy-row .v { font-size: 14px; font-weight: 600; word-break: break-all; flex: 1 1 150px; }
.copy-row button { border: 1px solid var(--line); background: var(--white); border-radius: var(--r-s); padding: 5px 12px; font-size: 12.5px; font-weight: 600; color: var(--blue-deep); cursor: pointer; }
.order-dump { font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; white-space: pre-wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-s); padding: 16px; max-height: 300px; overflow: auto; color: var(--grey); margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: rgba(240,243,246,.6); border-top: 1px solid var(--line); padding-block: 40px 28px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 28px; }
.footer-grid h4 { font-size: 13.5px; margin-bottom: 11px; color: var(--ink); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid li, .footer-grid a { font-size: 14px; color: var(--grey); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); }
.disclaimer { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; line-height: 1.7; color: var(--grey-2); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .product, .checkout { grid-template-columns: 1fr; }
  .summary { position: static; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .header-in { min-height: 56px; gap: 10px; }
  .brand { font-size: 15px; }
  .seller { grid-template-columns: 1fr; }
  .buy-row .btn-primary { flex: 1 1 100%; }
  .thumbs { grid-template-columns: repeat(5, 1fr); gap: 7px; }
}
