/* Shared across every store template: reset + preview watermark only.
   Each template brings its own distinct design on top of this. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }

/* Gallery placeholder tile — shown only in the public template demo
   (never on a real store), so a visitor sees where their own photos
   will go before they've uploaded any. */
.gallery-img-placeholder{
  width: 100%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(127,127,127,.08);
  border: 1px dashed rgba(127,127,127,.3);
  border-radius: inherit;
  color: rgba(127,127,127,.6);
}
.gallery-img-placeholder svg{ width: 28px; height: 28px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.gallery-demo-note{
  grid-column: 1 / -1;
  margin-top: 4px;
  font-size: 12.5px;
  opacity: .55;
  text-align: center;
}

.preview-banner{
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: #0b0b0c;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
}
.preview-banner a{ color: #fff; text-decoration: underline; }
.preview-watermark{
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='320' height='200'><text x='160' y='100' transform='rotate(-28 160 100)' font-family='Arial, sans-serif' font-size='34' font-weight='700' fill='%23808080' text-anchor='middle'>PREVIEW</text></svg>");
  background-repeat: repeat;
  background-size: 320px 200px;
}

/* ===================================================================
   Shared storefront chrome: sticky nav + search + category pills +
   service card grid. Structural rules only — each store_templates/*.css
   restyles these same class names to match its own skin.
   =================================================================== */

.store-nav{
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.store-nav-inner{
  max-width: 1040px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
}
.store-nav-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink);
  flex: none;
  white-space: nowrap;
}
.store-nav-brand img{ width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.store-nav-links{
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  flex-wrap: wrap;
}
.store-nav-links a{ font-size: 13.5px; font-weight: 600; color: var(--ink-soft); white-space: nowrap; }
.store-nav-links a:hover{ color: var(--accent); }
.store-nav-links a.is-current{ color: var(--accent); }
.store-nav-search{
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  flex: none;
}
.store-nav-search svg{ width: 15px; height: 15px; flex: none; opacity: .6; }
.store-search-input{
  border: none;
  background: transparent;
  outline: none;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  width: 150px;
}
.store-search-input::placeholder{ color: var(--ink-soft); }
.store-nav-cta{
  flex: none;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--nav-cta-ink, #fff);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.store-nav-toggle{ display: none; flex: none; background: none; border: none; padding: 6px; color: var(--ink); }
.store-nav-toggle svg{ width: 22px; height: 22px; }

@media (max-width: 760px){
  .store-nav-links{
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px 18px;
  }
  .store-nav-links.is-open{ display: flex; }
  .store-nav-toggle{ display: flex; }
  .store-nav-search{ width: 100%; }
  .store-search-input{ width: 100%; }
}

/* ---------- category pills ---------- */
.store-pills{ display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 26px; }
.store-pill{
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  color: var(--ink-soft);
  background: transparent;
  cursor: pointer;
}
.store-pill.is-active{ background: var(--accent); color: var(--pill-active-ink, #fff); border-color: var(--accent); }

/* ---------- service card grid ---------- */
.store-services-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.store-service-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  background: var(--card-bg, transparent);
}
.store-service-card-title{ font-weight: 700; font-size: 15.5px; color: var(--ink); }
.store-service-card-sub{ margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.store-service-card.is-hidden{ display: none; }
.store-empty-note{ text-align: center; color: var(--ink-soft); font-size: 14px; padding: 20px 0; display: none; }
.store-empty-note.is-visible{ display: block; }

/* ---------- team card grid ---------- */
.store-team-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.store-team-card{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--card-bg, transparent);
  text-align: center;
  position: relative;
}
.store-team-card-avatar{
  width: 56px; height: 56px; margin: 0 auto 12px;
  border-radius: 999px;
  background: var(--accent-soft, rgba(127,127,127,.12));
  color: var(--accent, currentColor);
  display: flex; align-items: center; justify-content: center;
}
.store-team-card-avatar svg{ width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.store-team-card-title{ font-weight: 700; font-size: 15.5px; color: var(--ink); }
.store-team-card-sub{ margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); }
