/* Matches the Eurton Electric Parts Store (Shopify "Athens" theme settings) */
:root {
  --text: #676767;          /* store body text */
  --heading: #232323;       /* store headings and prices */
  --bg: #ffffff;
  --bg-2: #f8f8f8;          /* store footer / secondary panels */
  --border: #dadada;        /* store borders */
  --accent-1: #004fc7;      /* store nav bar, Search button */
  --accent-2: #287dff;      /* store "Add to cart" button */
  --radius: 2px;
  --page: 1200px;          /* one centered width for header, breadcrumbs, pages and footer */
  --font: Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 15px/1.6 var(--font); }
h1, h2, h3 { color: var(--heading); font-weight: 500; }
a { color: var(--accent-1); text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.wrap { max-width: calc(var(--page) + 40px); margin: 0 auto; padding: 0 20px; }
.wrap.form-w { max-width: 860px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; }

/* ---------- Header: logo, search, contact; blue menu bar (same as the parts store) */
.head-top { display: flex; align-items: center; gap: 16px 28px; padding-top: 18px; padding-bottom: 18px; }
.brand { line-height: 0; flex: none; }
.brand img { width: 250px; height: auto; display: block; }
.head-search { display: flex; flex: 1 1 auto; max-width: 520px; min-width: 0; margin: 0 auto; }
.head-search input {
  flex: 1; min-width: 0; font: 400 15px var(--font); color: var(--heading); padding: 0 12px; height: 42px;
  border: 1px solid var(--border); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); background: #fff;
}
.head-search input:focus { outline: none; border-color: var(--accent-1); }
.head-search button {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 0; cursor: pointer;
  background: var(--accent-1); color: #fff; font: 500 15px var(--font); border-radius: 0 var(--radius) var(--radius) 0;
}
.head-search button:hover { background: var(--accent-2); }
.head-contact { display: flex; flex-direction: column; line-height: 1.35; text-align: right; flex: none; }
.head-contact a { text-decoration: none; color: var(--text); font-size: 13px; }
.head-contact a:first-child { color: var(--heading); font-size: 15px; font-weight: 500; }
.head-nav { background: var(--accent-1); }
.head-nav ul { list-style: none; margin: 0; padding: 0; display: flex; overflow-x: auto; scrollbar-width: none; }
.head-nav ul::-webkit-scrollbar { display: none; }
.head-nav li { flex: none; }
.head-nav li + li { border-left: 1px solid rgba(255,255,255,.18); }
.head-nav a {
  display: block; padding: 15px 13px; color: #fff; text-decoration: none; white-space: nowrap;
  font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
}
.head-nav li:first-child a { padding-left: 0; }
.head-nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.head-nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 #fff; }
@media (max-width: 900px) {
  .head-top { flex-wrap: wrap; }
  .head-search { order: 3; flex: 1 1 100%; }
  .head-contact { margin-left: auto; text-align: right; }
}
@media (max-width: 520px) {
  .brand img { width: 180px; }
  .head-contact a:last-child { display: none; }
}

/* ---------- Breadcrumb bar */
.crumbs { border-bottom: 1px solid var(--border); font-size: 13px; }
.crumbs .wrap { padding-top: 15px; padding-bottom: 15px; }
.crumbs a { color: var(--accent-1); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs .sep { margin: 0 7px; color: var(--text); }

/* ---------- Catalogue page */
.intro { padding: 30px 0 4px; }
.intro h1 { font-size: 24px; line-height: 1.3; margin: 0 0 8px; }
.intro p { max-width: 75ch; margin: 0; }
.finder { display: grid; grid-template-columns: 1fr 220px 200px; gap: 10px; margin: 22px 0 6px; }
.finder label { position: absolute; left: -999px; }
.finder input, .finder select {
  height: 42px; font: 400 15px var(--font); color: var(--heading); background: #fff; min-width: 0;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 0 12px;
}
.finder input:focus, .finder select:focus { outline: none; border-color: var(--accent-1); }
.result-count { font-size: 13px; margin: 6px 0 12px; min-height: 1.5em; }

.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); }
.ledger li { border-bottom: 1px solid var(--border); }
.ledger a {
  display: grid; grid-template-columns: 64px 120px minmax(200px, 1.1fr) minmax(220px, 1.6fr) 110px 70px;
  gap: 16px; align-items: center; padding: 10px 8px; color: var(--text); text-decoration: none;
}
.ledger a:hover { background: var(--bg-2); }
.ledger a:hover .model { color: var(--accent-1); }
.ledger .thumb { width: 64px; height: 64px; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.ledger .mfr { font-size: 12px; text-transform: uppercase; }
.ledger .model { color: var(--heading); font-size: 16px; font-weight: 500; }
.ledger .svc { font-size: 14px; }
.ledger .price { color: var(--heading); font-size: 16px; font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.ledger .date { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; }
.ledger-head {
  display: grid; grid-template-columns: 64px 120px minmax(200px, 1.1fr) minmax(220px, 1.6fr) 110px 70px;
  gap: 16px; padding: 8px; background: var(--bg-2); border-top: 1px solid var(--border);
  font-size: 12px; font-weight: 500; color: var(--heading); text-transform: uppercase;
}
.ledger-head .r { text-align: right; }
.empty { padding: 28px 8px; border-bottom: 1px solid var(--border); }

.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 40px; }
.pager a, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--heading); font-variant-numeric: tabular-nums;
}
.pager a:hover { border-color: var(--accent-1); color: var(--accent-1); }
.pager [aria-current] { background: var(--accent-1); border-color: var(--accent-1); color: #fff; }

.howto { max-width: 75ch; padding: 8px 0 48px; }
.howto h2 { font-size: 20px; margin: 0 0 8px; }
.howto ol { padding-left: 1.3em; margin: 0; }
.howto li { margin-bottom: 4px; }

@media (max-width: 860px) {
  .finder { grid-template-columns: 1fr 1fr; }
  .finder input { grid-column: 1 / -1; }
  .ledger-head { display: none; }
  .ledger a { grid-template-columns: 64px 1fr auto; gap: 2px 12px; padding: 12px 4px; align-items: baseline; }
  .ledger .thumb { grid-column: 1; grid-row: 1 / span 3; align-self: start; }
  .ledger .mfr { grid-column: 2; grid-row: 1; }
  .ledger .date { grid-column: 3; grid-row: 1; }
  .ledger .model { grid-column: 2 / -1; }
  .ledger .svc { grid-column: 2; }
  .ledger .price { grid-column: 3; }
}

/* ---------- Motor page
   Desktop: title, spec card and form button on the left; photo and price beside them.
   Below both: "How to send your motor" cards. Phone: title, photo + price, specs, button, cards. */
.detail {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); column-gap: 48px;
  grid-template-areas: "head side" "specs side" "cta side"; grid-template-rows: auto auto 1fr;
  padding-top: 28px; padding-bottom: 36px;
}
.d-head { grid-area: head; }
.d-specs { grid-area: specs; }
.d-cta { grid-area: cta; align-self: start; }
.d-side { grid-area: side; align-self: start; }

.vendor { font-size: 12px; text-transform: uppercase; margin: 0 0 4px; }
.d-head h1 { font-size: 26px; line-height: 1.25; margin: 0 0 4px; word-break: break-word; }
.d-head .sub { margin: 0 0 18px; }

/* Spec card: store panel style (light grey header strip, hairline rows, blue top rule) */
.spec-card { border: 1px solid var(--border); border-top: 3px solid var(--accent-1); border-radius: var(--radius); background: #fff; }
.spec-top { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 14px 18px 12px; }
.spec-mfr { margin: 0 0 2px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.spec-model { margin: 0; color: var(--heading); font-size: 20px; font-weight: 500; line-height: 1.3; word-break: break-word; }
.spec-no { margin: 2px 0 0; color: var(--heading); }
.spec-card dl { margin: 0; padding: 0 18px; }
.spec-card dl > div { display: grid; grid-template-columns: minmax(0, 45%) 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.spec-card dl > div:last-child { border-bottom: 0; }
.spec-card dt { margin: 0; }
.spec-card dd { margin: 0; color: var(--heading); font-weight: 500; font-variant-numeric: tabular-nums; }
.spec-none { margin: 0; padding: 14px 18px; }

.d-cta { margin-top: 18px; }
.cta-hint { font-size: 13px; margin: 8px 0 0; text-align: center; }

.photo { margin: 0 0 14px; }
.photo img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.photo figcaption { font-size: 12px; margin-top: 6px; }
.quote { background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; }
.quote .label { font-size: 13px; margin: 0; }
.quote .amount { color: var(--heading); font-size: 32px; font-weight: 500; line-height: 1.2; margin: 2px 0; font-variant-numeric: tabular-nums; }
.quote .asof { font-size: 13px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 22px; border: 0; border-radius: var(--radius);
  background: var(--accent-2); color: #fff; font: 500 16px var(--font); text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--accent-1); color: #fff; }
.btn[disabled] { background: #e6e6e6; color: #9a9a9a; cursor: not-allowed; }
.btn.block { display: flex; width: 100%; }

/* How to send your motor: card grid in store panel style */
.terms { border-top: 1px solid var(--border); padding: 28px 0 56px; }
.terms h2 { font-size: 20px; margin: 0 0 4px; }
.terms .lead { margin: 0 0 18px; }
.term-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.term { display: flex; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: #fff; }
.term-mail { background: var(--bg-2); }
.term .ico { flex: none; color: var(--accent-1); margin-top: 1px; }
.term h3 { margin: 0 0 4px; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .02em; }
.term p, .term address { margin: 0; font-style: normal; font-size: 14px; line-height: 1.55; }
.term-mail address { color: var(--heading); font-size: 15px; }
.term .insure { margin-top: 8px; padding: 8px 10px; background: #fff7e6; border-left: 3px solid #bd6b1b; color: var(--heading); }
.term .insure strong { font-weight: 500; }
.terms .note { font-size: 13px; margin: 16px 0 0; max-width: 90ch; }

@media (max-width: 1080px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(0, 340px); }
  .term-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .detail { grid-template-columns: 1fr; grid-template-areas: "head" "side" "specs" "cta"; grid-template-rows: auto; padding-top: 20px; }
  .d-side { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 14px; align-items: start; margin-bottom: 18px; }
  .d-side .photo { margin: 0; }
  .term-grid { grid-template-columns: 1fr; }
}

/* ---------- Repair form */
.form-page { padding-top: 28px; padding-bottom: 56px; }
.form-page h1 { font-size: 24px; margin: 0 0 18px; }
.motor-summary {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 4px 18px; align-items: start; margin-bottom: 26px;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; background: var(--bg-2);
}
.motor-summary img { grid-row: 1 / span 2; width: 72px; height: 72px; max-width: none; object-fit: contain; border: 1px solid var(--border); background: #fff; }
.motor-summary .m { color: var(--heading); font-weight: 500; font-size: 16px; }
.motor-summary .p { color: var(--heading); font-weight: 500; font-size: 20px; text-align: right; }
.motor-summary .q { grid-column: 2 / -1; font-size: 13px; }
.motor-summary .q strong { color: var(--heading); font-weight: 500; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.fields .full { grid-column: 1 / -1; }
.fields label { display: block; color: var(--heading); font-weight: 500; margin-bottom: 5px; }
.fields label span { font-weight: 400; color: var(--text); }
.fields input, .fields textarea {
  width: 100%; font: 400 15px var(--font); color: var(--heading); background: #fff;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px;
}
.fields input { height: 42px; }
.fields input:focus, .fields textarea:focus { outline: none; border-color: var(--accent-1); }
.fields textarea { min-height: 110px; resize: vertical; }
.form-actions { margin-top: 22px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hint { font-size: 13px; margin: 0; }
.privacy { font-size: 12px; margin: 14px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-top: 16px; }
#missing p { margin-top: 0; }
@media (max-width: 640px) {
  .fields { grid-template-columns: 1fr; }
  .motor-summary { grid-template-columns: 56px 1fr; }
  .motor-summary img { width: 56px; height: 56px; grid-row: 1 / span 3; }
  .motor-summary .p { text-align: left; grid-column: 2; }
  .motor-summary .q { grid-column: 2; }
}

/* ---------- Footer (store style) */
.foot { background: var(--bg-2); border-top: 1px solid var(--border); }
.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 40px; padding-top: 36px; padding-bottom: 24px; }
.foot h2 { font-size: 14px; text-transform: uppercase; margin: 0 0 10px; letter-spacing: .02em; }
.foot p { margin: 0 0 10px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { color: var(--accent-1); text-decoration: underline; }
.foot-legal { border-top: 1px solid var(--border); padding-top: 16px; padding-bottom: 28px; font-size: 12px; }
.foot-legal p { margin: 0; max-width: 110ch; }
@media (max-width: 760px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- Printed sheet: hidden on screen, the only thing on paper */
.sheet { display: none; }
@media print {
  @page { size: letter; margin: 0.5in; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-head, .foot, .skip, .no-print, .crumbs { display: none !important; }
  main, .wrap { padding: 0; max-width: none; }
  .sheet { display: block; color: #000; }
  .sheet h1 { color: #000; font-size: 20pt; font-weight: 500; margin: 0 0 2pt; }
  .sheet .logo { height: 40pt; width: auto; display: block; margin-bottom: 6pt; }
  .sheet .shop { font-size: 9.5pt; margin: 0 0 4pt; }
  .sheet .top { display: flex; justify-content: space-between; align-items: flex-end; border-bottom: 2pt solid #004fc7; padding-bottom: 6pt; margin-bottom: 8pt; }
  .sheet .qno { text-align: right; font-size: 10pt; }
  .sheet .qno strong { display: block; font-size: 18pt; font-weight: 700; letter-spacing: .03em; }
  .sheet table { width: 100%; border-collapse: collapse; margin-bottom: 10pt; }
  .sheet th, .sheet td { text-align: left; vertical-align: top; border: 1pt solid #000; padding: 3pt 6pt; font-size: 10pt; color: #000; }
  .sheet th { width: 26%; background: #eee; font-weight: 500; }
  .sheet .notes { font-size: 9.5pt; line-height: 1.4; border: 1pt solid #000; padding: 5pt 8pt; margin-bottom: 8pt; }
  .sheet .notes p { margin: 0 0 3pt; }
  .sheet .mail { border: 2pt solid #000; padding: 6pt 10pt; font-size: 11.5pt; line-height: 1.4; width: 60%; }
  .sheet > p { margin: 0 0 4pt; }
  .sheet .shoponly { margin-top: 10pt; border-top: 1pt dashed #000; padding-top: 6pt; font-size: 9.5pt; }
}
