/* Shared storefront chrome: the header, category nav, footer and mobile dock
   that every customer-facing page uses so the top menu is identical wherever
   a shopper lands. Page-specific layout lives in each page's own stylesheet.

   Seller Center and the back office deliberately do NOT use this — they are
   separate tools with their own chrome. */

.shop-chrome {
  margin: 0;
  background: var(--paper, #f7f7fb);
  color: var(--ink, #131316);
  font-family: var(--body, system-ui, sans-serif);
}

.shop-chrome .section-shell {
  width: var(--shell, min(1180px, calc(100% - 40px)));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.shop-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  background: var(--ink, #131316);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
.shop-button.ghost {
  background: transparent;
  color: var(--ink, #131316);
  border: 1.5px solid var(--ink, #131316);
}
.shop-button:hover { opacity: 0.88; }

/* ---- Header -------------------------------------------------------------- */

.shop-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface, #fff);
  border-bottom: 1px solid var(--line, #dedee7);
}

.shop-header-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  width: var(--shell, min(1180px, calc(100% - 40px)));
  margin-inline: auto;
  padding: 14px 0;
}

.shop-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink, #131316);
}
.shop-logo img { height: 44px; width: auto; display: block; }
.shop-logo span {
  font: 700 11px/1 var(--utility, "Space Grotesk", sans-serif);
  letter-spacing: 0.16em;
  color: var(--ink-soft, #666570);
}

.shop-search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 16px;
  border: 1.5px solid var(--ink, #131316);
  border-radius: 999px;
  background: var(--surface, #fff);
}
.shop-search svg {
  width: 19px;
  height: 19px;
  flex: none;
  fill: none;
  stroke: var(--ink-soft, #666570);
  stroke-width: 2;
}
.shop-search input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: 400 15px/1.4 var(--body, system-ui, sans-serif);
  color: var(--ink, #131316);
}
.shop-search button {
  flex: none;
  padding: 10px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--violet, #5848ff);
  color: #fff;
  font: 600 14px/1 var(--body, system-ui, sans-serif);
  cursor: pointer;
}

.shop-header-actions { display: flex; align-items: center; gap: 8px; }

.shop-icon-link,
.shop-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink, #131316);
  font: 500 14px/1 var(--body, system-ui, sans-serif);
  text-decoration: none;
  cursor: pointer;
}
.shop-icon-link svg,
.shop-cart-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.shop-icon-link:hover { background: var(--sage, #eaeaef); }
.shop-cart-link {
  background: var(--ink, #131316);
  color: #fff;
  font-weight: 600;
}
.shop-cart-link b {
  min-width: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: var(--saffron, #c8f15a);
  color: var(--ink, #131316);
  font: 700 12px/1.5 var(--utility, "Space Grotesk", sans-serif);
  text-align: center;
}

.shop-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  width: var(--shell, min(1180px, calc(100% - 40px)));
  margin-inline: auto;
  padding-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shop-nav::-webkit-scrollbar { display: none; }
.shop-nav a {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--ink-soft, #666570);
  font: 500 14px/1 var(--body, system-ui, sans-serif);
  text-decoration: none;
  white-space: nowrap;
}
.shop-nav a:hover { background: var(--sage, #eaeaef); color: var(--ink, #131316); }
.shop-nav a[aria-current="page"] { background: var(--violet-soft, #eceaff); color: var(--violet-dark, #4435ed); }
.shop-nav-divider {
  flex: none;
  width: 1px;
  height: 18px;
  margin: 0 8px;
  background: var(--line, #dedee7);
}
.shop-nav-sell { color: var(--violet-dark, #4435ed) !important; font-weight: 600 !important; }


/* ---- Footer -------------------------------------------------------------- */

.shop-footer {
  margin-top: clamp(48px, 8vw, 88px);
  padding-top: 44px;
  border-top: 1px solid var(--line, #dedee7);
  background: var(--surface, #fff);
}
.shop-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 28px;
  padding-bottom: 32px;
}
.shop-footer-grid p { margin: 14px 0 0; font-size: 13.5px; line-height: 1.7; color: var(--ink-soft, #666570); }
.shop-footer-grid b { display: block; margin-bottom: 12px; font-size: 14px; }
.shop-footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-soft, #666570);
  font-size: 13.5px;
  text-decoration: none;
}
.shop-footer-grid a:hover { color: var(--violet-dark, #4435ed); }
.shop-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 0 24px;
  border-top: 1px solid var(--line, #dedee7);
  font-size: 12.5px;
  color: var(--ink-soft, #666570);
}

/* ---- Mobile dock --------------------------------------------------------- */

.shop-dock { display: none; }

@media (max-width: 860px) {
  .shop-header-bar {
    grid-template-columns: auto auto;
    justify-content: space-between;
    row-gap: 12px;
  }
  .shop-search { grid-column: 1 / -1; order: 3; }
  .shop-icon-link span, .shop-cart-link span { display: none; }

  .shop-dock {
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
    background: var(--surface, #fff);
    border-top: 1px solid var(--line, #dedee7);
  }
  .shop-dock a {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 3px;
    padding: 4px;
    color: var(--ink-soft, #666570);
    font-size: 11px;
    text-decoration: none;
  }
  .shop-dock a[aria-current="page"] { color: var(--violet-dark, #4435ed); }
  .shop-dock svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .shop-dock b {
    position: absolute;
    top: 0;
    inset-inline-end: 22%;
    min-width: 17px;
    padding: 1px 4px;
    border-radius: 999px;
    background: var(--violet, #5848ff);
    color: #fff;
    font: 700 10px/1.5 var(--utility, "Space Grotesk", sans-serif);
    text-align: center;
  }
  .shop-footer { padding-bottom: 76px; }
}


@media (prefers-reduced-motion: reduce) {
  .home-card:hover { transform: none; }
}

/* Page heading kept for search engines and screen readers where the design has no visible H1. */
.seo-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
