/* Enduro Hub Shop — search engine first, shop second.
   Written against the promised selectors only (Appearance → the reference beside this box).
   Everything that is a colour, a family or a size lives in Appearance as a token; what is
   here is the shape the tokens cannot express: the sticky glass header, the search-first
   hero, the card that carries a shop badge, and category pills instead of tiles. */

/* ── the frame ───────────────────────────────────────────────────────────────── */

/* Glass, not opaque: the design keeps the catalogue visible under the bar while scrolling,
   which is what makes a search page feel like a search engine rather than a shop. */
header.site {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ececec;
}
header.site .bar { gap: 14px; }

/* The logo is set in Rubik 800 by the heading token; the skew is the mark's own idea. */
header.site .logo {
  font-weight: 800;
  letter-spacing: -.005em;
  font-size: 17px;
}
header.site .logo b { color: var(--brand); }

/* The header search is a filled pill, not an outlined box — it reads as a tool. */
header.site input {
  height: 42px;
  padding-inline: 40px 14px;
  background: #f5f5f4 var(--eh-magnifier) no-repeat;
  background-position: right 13px center;
  border: 1px solid #eaeae8;
  border-radius: 12px;
  font-size: 15px;
}
header.site input:focus {
  outline: none;
  border-color: #d9d9d6;
  background-color: #fff;
}

.head-links { font-size: 14px; }

/* ── the hero: the search box IS the page ────────────────────────────────────── */

/* No tinted panel. The design's opening is white space with one input in the middle of it,
   and a tinted block behind it would turn the search box into a banner. */
.w-hero {
  background: transparent;
  box-shadow: none;
  align-items: center;
  text-align: center;
  gap: 18px;
  padding: 88px 24px 60px;
  margin: 0 0 8px;
}
.w-hero h1 {
  font-size: clamp(34px, 5.4vw, 70px);
  line-height: 1.04;
  letter-spacing: -.035em;
  font-weight: 800;
  max-width: 900px;
  margin-inline: auto;
  text-wrap: balance;
}
.w-hero .lede {
  font-size: clamp(16px, 1.5vw, 21px);
  line-height: 1.6;
  max-width: 620px;
  margin-inline: auto;
  text-wrap: pretty;
}

/* The big pill. 74px tall with a long soft shadow, because it has to look like the thing the
   whole site is for.
   The frame belongs to the FORM, not the input: the input and the button are one control, and
   framing both is how you get a button sitting outside the box it submits. */
.w-hero-search {
  max-width: 720px;
  margin-top: 22px;
  height: 74px;
  padding: 0 12px 0 12px;
  gap: 12px;
  border: 1px solid #e4e4e1;
  border-radius: 20px;
  background: #fff var(--eh-magnifier-lg) no-repeat;
  background-position: right 20px center;
  box-shadow: 0 18px 44px -22px rgba(16, 16, 16, .28), 0 2px 6px rgba(16, 16, 16, .04);
  transition: box-shadow .22s, border-color .2s, transform .22s;
}
/* Lifts under the pointer. The box is the one thing on this page you are meant to touch, and a
   surface that answers the mouse says so before you read anything. */
.w-hero-search:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -22px rgba(16, 16, 16, .32), 0 2px 6px rgba(16, 16, 16, .04);
}
.w-hero-search:focus-within {
  border-color: #101010;
  box-shadow: 0 22px 52px -22px rgba(16, 16, 16, .34), 0 2px 6px rgba(16, 16, 16, .05);
}
.w-hero-search input {
  padding-inline: 44px 8px;
  font-size: clamp(16px, 1.6vw, 20px);
}
.w-hero-search .btn-search {
  height: 50px;
  padding-inline: 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  transition: background .18s, transform .18s;
}
.w-hero-search .btn-search:hover { background: #101010; transform: translateY(-1px); }

/* The eyebrow line, with a pulse instead of a sparkle.
   The dot is ::before, so it sits at the reading start of the pill; the ring is ::after, taken out
   of flow and centred over it.
   The padding is LOGICAL and that is load-bearing. Written as the design's physical shorthand
   (`7px 15px 7px 11px`) the 15px lands on the RIGHT — which is the inline START under rtl, not the
   11px the offset below was derived from, and the ring sat four pixels off the dot. One logical
   number, used twice: 15 + 3.5 (half the dot) - 6.5 (half the ring) = 12. */
.w-hero-badge {
  position: relative;
  gap: 10px;
  padding-block: 7px;
  padding-inline: 15px 11px;
  color: #4a4a48;
}
.w-hero-badge::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}
.w-hero-badge::after {
  content: "";
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: rgba(232, 89, 12, .28);
  animation: eh-ping 1.8s ease-out infinite;
}
@keyframes eh-ping {
  0%   { transform: scale(.5); opacity: 1; }
  100% { transform: scale(2.1); opacity: 0; }
}
/* A pulse that never stops is exactly what someone who asked for less motion does not want. */
@media (prefers-reduced-motion: reduce) {
  .w-hero-badge::after { animation: none; opacity: .35; }
}

/* The shops this search covers, named right under the box. */
.w-hero-shops { margin-top: 40px; gap: 10px 22px; }
.w-hero-shop { font-family: Rubik, sans-serif; font-size: 14px; color: #3a3a38; }
.w-hero-shop .w-shop-dot { width: 7px; height: 7px; border-radius: 2px; }
.w-hero-shops-note { color: #a0a09e; }

/* The chips answer in the brand colour now, not in black: they are an invitation, and the black
   hover read as the same weight as the search button beside them. */
.w-hero-examples a:hover {
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}
.w-hero-examples a { transition: border-color .16s, color .16s, transform .16s; }

/* ── section headings ────────────────────────────────────────────────────────── */

.w-head { margin-bottom: 22px; align-items: baseline; }
.w-head h2 {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 800;
  letter-spacing: -.03em;
}

/* ── the product card ────────────────────────────────────────────────────────── */

.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }

.card {
  border: 1px solid #efefed;
  border-radius: 20px;
  background: #fff;
  box-shadow: none;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover {
  transform: translateY(-3px);
  border-color: #e4e4e1;
  box-shadow: 0 22px 44px -28px rgba(16, 16, 16, .42);
}

/* Supplier photography arrives on a white studio background, so contain it rather than
   crop it — cover cuts the watermark through the middle of the part. */
.card .thumb { background: #f7f7f5; }
.card .thumb img { object-fit: contain; padding: 6px; }

/* The shop badge. The coloured square before the name is drawn by the platform from that
   shop's own colour (`--src-color`), so nothing here may set its background — an earlier
   version of this file pinned it to var(--brand) and every shop came out orange. Shape and
   weight only. */
.card .thumb .src-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  top: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  background: rgba(255, 255, 255, .94);
  border-color: transparent;
  box-shadow: 0 1px 3px rgba(16, 16, 16, .1);
  backdrop-filter: blur(6px);
}
.card .thumb .src-chip::before { width: 7px; height: 7px; border-radius: 2px; }

.card .body { padding: 15px 16px 17px; }
.card .body .t { font-size: 15px; font-weight: 600; line-height: 1.35; }

/* The price is the second thing read on a card, so it is set like a price and not like
   secondary text — which is what `.muted` made it. */
.card .body .t + .muted {
  margin-top: 10px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

/* ── categories as pills ─────────────────────────────────────────────────────── */

/* The same block, read differently: seventeen categories are a row of choices, not a wall
   of tiles. Tiles push the catalogue below the fold on a phone. */
.cat-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 900px;
  margin-inline: auto;
}
.cat-tile {
  border: 1px solid #efefed;
  background: #fbfbfa;
  color: #3a3a38;
  border-radius: 100px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  aspect-ratio: auto;
  min-height: 0;
  transition: background .16s, color .16s, border-color .16s;
}
.cat-tile:hover {
  background: #101010;
  color: #fff;
  border-color: #101010;
  text-decoration: none;
}
.cat-tile img, .cat-tile .thumb { display: none; }

/* ── brands ──────────────────────────────────────────────────────────────────── */

.brand-tile {
  border: 1px solid #efefed;
  border-radius: 14px;
  transition: border-color .18s;
}
.brand-tile:hover { border-color: #e4e4e1; }

/* ── "first find, then buy": five cards, not five rows ───────────────────────── */

/* The same Curriculum block a course page uses, read as a grid. The platform stacks the parts
   because a curriculum is taken in order; here the five points are peers, and stacked rows
   push the shops strip below the fold. */
.w-modules { margin: 88px 0 24px; }
.w-modules-title {
  font-size: clamp(26px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin: 0 0 14px;
  text-wrap: balance;
}
.w-modules-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
  margin: 0 0 44px;
  text-wrap: pretty;
}
.w-modules-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.w-module {
  display: block;
  background: #fff;
  border: 1px solid #ededeb;
  border-radius: 18px;
  padding: 24px 22px 26px;
}
.w-module-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 12px;
}
.w-module-head { margin: 0 0 8px; font-size: 16.5px; font-weight: 600; }
.w-module-text { margin: 0; font-size: 14.5px; line-height: 1.6; color: #7a7a78; text-wrap: pretty; }

/* ── the shops this search covers ────────────────────────────────────────────── */

.w-shops { margin: 64px 0 8px; padding-top: 34px; }
.w-shop { border-radius: 12px; padding: 11px 16px; }
.w-shop-name { letter-spacing: -.01em; }

/* ── the promo strip ─────────────────────────────────────────────────────────── */

/* The block carries its own two colours, set when the shop was created. Until they are
   changed in the builder this keeps the strip from being the indigo of a different brand. */
.w-banner {
  background: #101010 !important;
  color: #fff !important;
  border-radius: 18px;
  font-size: 14.5px;
}
.w-banner a { color: var(--brand) !important; }

/* ── buying ──────────────────────────────────────────────────────────────────── */

.btn-buy, .btn-now {
  height: 56px;
  padding-inline: 30px;
  border-radius: 15px;
  font-size: 16.5px;
  font-weight: 600;
  transition: background .18s, transform .18s;
}
.btn-buy:hover, .btn-now:hover {
  background: #101010;
  transform: translateY(-1px);
}
.btn {
  border-radius: 14px;
  font-weight: 500;
}

/* ── the product page ────────────────────────────────────────────────────────── */

.product { gap: 44px; }
.gallery .main { border: 1px solid #efefed; border-radius: 24px; background: #f9f9f7; }
.gallery .thumbs img { border-radius: 14px; width: 84px; height: 84px; }
.price {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.desc { color: #232321; line-height: 1.75; }

/* Attributes read as a spec sheet rather than a row of tags: on a marketplace they are the
   only structured thing a shopper has to compare with. */
.attrs { gap: 10px; }
.attrs .chip {
  background: #fff;
  border: 1px solid #ededeb;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 14.5px;
  color: var(--ink);
  font-weight: 500;
}

/* ── pieces ──────────────────────────────────────────────────────────────────── */

.badge { border-radius: 8px; padding: 5px 10px; font-size: 12.5px; font-weight: 600; }
.chip { border-radius: 8px; }

/* ── the footer ──────────────────────────────────────────────────────────────── */

footer.site { border-top: 1px solid #efefed; font-size: 13.5px; }
footer.site .container { padding-top: 40px; padding-bottom: 56px; }

/* The explainer and the links share one line, the paragraph at the reading start and the
   links at the far end. The platform stacks footer blocks — right for a footer of columns,
   wrong for a footer of exactly two things. */
/* `footer.site .foot`, not `.foot`: that is the selector the platform uses, and a bare class
   loses to it on specificity no matter which stylesheet loads later. */
footer.site .foot {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.foot-text { max-width: 520px; line-height: 1.6; color: #8a8a88; margin: 0; }

/* One column of three links, read as a row. */
.foot-cols { display: flex; gap: 20px; }
.foot-cols > div { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-link { color: #61615f; padding: 0; white-space: nowrap; }
.foot-link:hover { color: #101010; text-decoration: none; }

/* The credit line takes the whole width under both of them. */
.foot-legal { color: #a0a09e; flex: 1 1 100%; }

@media (max-width: 720px) {
  footer.site .foot { flex-direction: column; align-items: flex-start; }
}

/* ── Jeremy ──────────────────────────────────────────────────────────────────── */

/* The launcher itself is settings — black, on the left, a sparkle, called Jeremy. The one
   thing a single accent colour cannot say is that the mark is a different colour from the
   pill it sits on, so that is all this rule does. */
.chat-launcher .chat-avatar { color: var(--brand); }

/* ── the icons, inline so no request leaves the page ─────────────────────────── */

:root {
  --eh-magnifier: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%238a8a88" stroke-width="2.2"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4.2-4.2"/></svg>');
  --eh-magnifier-lg: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="21" height="21" viewBox="0 0 24 24" fill="none" stroke="%23101010" stroke-width="2.1"><circle cx="11" cy="11" r="7"/><path d="M20 20l-4.2-4.2"/></svg>');
}

/* ── phones ──────────────────────────────────────────────────────────────────── */

@media (max-width: 720px) {
  .w-hero { padding: 48px 4px 32px; }
  /* The frame carries the height, so the phone override has to target the FORM. Aimed at the
     input it silently did nothing — the box stayed at its desktop 74px. */
  .w-hero-search {
    height: 62px;
    border-radius: 16px;
    padding: 0 8px;
    gap: 6px;
    background-position: right 14px center;
  }
  .w-hero-search input { padding-inline: 34px 4px; }
  .w-hero-search .btn-search { height: 46px; padding-inline: 16px; font-size: 15px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
  .btn-buy, .btn-now { height: 52px; padding-inline: 22px; }
}
