/* The online store — the buyer-facing surface's own sheet (loaded after tokens.css; never the hub
   shell). The tenant's logo is the brand; everything else is quiet quarry-grey chrome so the
   catalog's pictures and prices are what the eye lands on. Mobile-first: the base IS the phone. */

:root {
  --shop-bg: #eef0f2;
  --shop-surface: #ffffff;
  --shop-ink: #17191d;
  --shop-ink-soft: #5f6873;
  --shop-line: #d9dde2;
  --shop-accent: #1d4ed8;
  --shop-accent-deep: #1539a8;
  --shop-gutter: 16px;
  --shop-max: 1200px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.shop {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--sc-font-body);
  color: var(--shop-ink);
  background: var(--shop-bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--shop-accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--shop-accent); outline-offset: 2px; }

/* ---- the bar: the brand and nothing else ------------------------------------------------- */
.shop-bar {
  background: var(--shop-surface);
  border-bottom: 1px solid var(--shop-line);
  padding: 12px var(--shop-gutter);
}
.shop-bar, .shop-main, .shop-foot { width: 100%; }
.shop-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  max-width: 100%;
  text-decoration: none;
  color: inherit;
}
.shop-brand__logo { display: block; height: 44px; width: auto; max-width: 240px; object-fit: contain; }
.shop-brand__name {
  font-family: var(--sc-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- the page ---------------------------------------------------------------------------- */
.shop-main {
  flex: 1 0 auto;
  max-width: var(--shop-max);
  margin: 0 auto;
  padding: 20px var(--shop-gutter) 40px;
}
.shop-foot {
  max-width: var(--shop-max);
  margin: 0 auto;
  padding: 16px var(--shop-gutter) 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  font-size: var(--sc-text-xs);
  color: var(--shop-ink-soft);
}

/* ---- closed ------------------------------------------------------------------------------ */
.shop-closed {
  max-width: 34rem;
  margin: 12vh auto 0;
  text-align: left;
}
.shop-closed h1 {
  font-family: var(--sc-font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 12px;
}
.shop-closed p { margin: 0; font-size: var(--sc-text-md); color: var(--shop-ink-soft); max-width: 40ch; }

/* ---- the catalog (the shared _Content markup, styled the store's way) -------------------- */
.cat-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  margin: 0 0 16px;
  font-size: var(--sc-text-sm);
}
.cat-crumbs a { display: inline-flex; align-items: center; gap: 4px; color: var(--shop-ink-soft); text-decoration: none; padding: 4px 2px; }
.cat-crumbs a:hover { color: var(--shop-ink); text-decoration: underline; }
.cat-crumbs a .material-icons { font-size: 18px; }
.cat-crumbs__sep { color: var(--shop-line); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}
@media (min-width: 560px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 900px) { .cat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.cat-tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  padding: 10px 10px 12px;
  background: var(--shop-surface);
  border: 1px solid var(--shop-line);
  border-radius: 10px;
  text-align: left;
}
.cat-tile--cat {
  font: inherit;
  color: inherit;
  cursor: pointer;
  align-items: stretch;
  gap: 8px;
}
.cat-tile--cat:hover, .cat-tile--cat:focus-visible { border-color: var(--shop-ink); }
.cat-tile--cat .cat-tile__name { font-family: var(--sc-font-display); font-size: 1rem; }
.cat-tile__img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: var(--shop-bg); }
.cat-tile__ph {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  background: var(--shop-bg);
  color: var(--shop-ink-soft);
}
.cat-tile__ph .material-icons { font-size: 36px; }
.cat-tile__name { font-size: var(--sc-text-sm); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.cat-tile__desc {
  font-size: var(--sc-text-xs);
  color: var(--shop-ink-soft);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat-tile__link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--sc-text-xs); font-weight: 600; text-decoration: none; }
.cat-tile__link:hover { text-decoration: underline; }
.cat-tile__link .material-icons { font-size: 14px; }
/* The price is the tile's one loud element: tabular figures, set apart at the foot. */
.cat-tile__price {
  margin-top: auto;
  padding-top: 6px;
  align-self: flex-end;
  font-size: 1.05rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}

.sc-empty {
  display: grid;
  justify-items: start;
  gap: 8px;
  padding: 32px 0;
  color: var(--shop-ink-soft);
}
.sc-empty .material-icons { font-size: 36px; }
.sc-empty p { margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .cat-tile--cat { transition: border-color .15s ease; }
}
