/* Storefront styles — layered on the host site's own tokens (--primary, --card,
   --text, --border …) so the shop inherits the site's look automatically.
   Emitted by amazon-shop-kit/scaffold-static.mjs; edit there, not here. */

.shop {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 48px;
}
.shop h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); line-height: 1.2; margin: 6px 0 8px; }
.shop h2 { font-size: 1.25rem; margin: 0 0 12px; }
.shop h3 { font-size: 1rem; margin: 0 0 10px; }
.shop section { margin-bottom: 34px; }

.shop-eyebrow {
  font-size: .72rem; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--primary); margin: 0 0 2px;
}

/* Breadcrumbs */
.shop-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 14px; }
.shop-crumbs li { font-size: .78rem; color: var(--text-light); }
.shop-crumbs a { color: var(--text-light); text-decoration: none; }
.shop-crumbs a:hover { color: var(--primary); text-decoration: underline; }
.shop-crumbs .sep { opacity: .45; }
.shop-crumbs span { font-weight: 600; color: var(--text); }

/* Sticky category rail */
.shop-nav {
  position: sticky; top: 0; z-index: 20;
  margin: 0 -16px 22px; padding: 8px 0;
  background: color-mix(in srgb, var(--card) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.shop-nav-inner { display: flex; gap: 6px; overflow-x: auto; padding: 0 16px; scrollbar-width: none; }
.shop-nav-inner::-webkit-scrollbar { display: none; }
.shop-nav a {
  flex: 0 0 auto; white-space: nowrap; text-decoration: none;
  font-size: .78rem; font-weight: 700; color: var(--text-light);
  padding: 7px 12px; border-radius: 999px; background: var(--bg);
}
.shop-nav a:hover { color: var(--text); }
.shop-nav a.active { background: var(--primary); color: #fff; }

/* Hero */
.shop-hero {
  border-radius: var(--radius); padding: 30px 24px; margin-bottom: 30px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff;
}
.shop-hero .shop-eyebrow { color: rgba(255,255,255,.75); }
.shop-hero h1 { margin: 6px 0 10px; }
.shop-hero-sub { margin: 0; max-width: 62ch; line-height: 1.6; color: rgba(255,255,255,.85); }
.shop-hero-note { margin: 16px 0 0; font-size: .72rem; color: rgba(255,255,255,.55); }

/* Category head */
.shop-head p { color: var(--text-light); margin: 0 0 6px; }
.shop-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px !important; }
.shop-facts > * {
  font-size: .74rem; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  background: var(--bg); color: var(--text-light); text-decoration: none;
}
.shop-facts a { background: color-mix(in srgb, var(--amber) 18%, #fff); color: #8a5d00; }

.shop-intro {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-xs);
}
.shop-intro p { color: var(--text-light); line-height: 1.65; margin: 0; }
.shop-intro ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-light); }
.shop-intro li { margin: 4px 0; }

/* Product grid */
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (min-width: 900px) { .shop-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.shop-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-xs);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.shop-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--primary); }
.shop-card[hidden] { display: none; }
.shop-card-img { display: block; background: #fff; padding: 14px; }
.shop-card-img img { display: block; width: 100%; height: 150px; object-fit: contain; }
.shop-card-body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px; border-top: 1px solid var(--border); }
.shop-brand { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light); }
.shop-card h3 { font-size: .86rem; line-height: 1.35; margin: 0; }
.shop-card h3 a { color: var(--text); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.shop-card h3 a:hover { color: var(--primary); }
.shop-hook { font-size: .76rem; color: var(--text-light); margin: 0; line-height: 1.45; }
.shop-hook.big { font-size: 1rem; }
.shop-rating { font-size: .74rem; color: var(--text-light); margin: 0; }
.shop-rating span { font-weight: 800; color: var(--green-text); background: color-mix(in srgb, var(--green) 14%, #fff); border-radius: 6px; padding: 2px 6px; }
.shop-card-foot { margin-top: auto; padding-top: 4px; }
.shop-price { font-size: 1.05rem; font-weight: 800; margin: 0 0 10px; color: var(--text); }
.shop-price.big { font-size: 1.9rem; }
.shop-price s { font-size: .78rem; font-weight: 500; color: var(--text-light); }
.shop-price em { font-size: .72rem; font-style: normal; font-weight: 800; color: var(--accent-text); }
.shop-price-na { font-size: .9rem; color: var(--text-light); }

.shop-badge {
  position: absolute; top: 10px; z-index: 2;
  font-size: .64rem; font-weight: 800; padding: 3px 8px; border-radius: 999px;
}
.shop-badge-rank { left: 10px; background: var(--primary); color: #fff; }
.shop-badge-off { right: 10px; background: color-mix(in srgb, var(--green) 16%, #fff); color: var(--green-text); }

.shop-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.shop-btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 800; padding: 9px 12px;
  border-radius: 10px; text-decoration: none; border: 1px solid transparent;
}
.shop-btn.big { font-size: .95rem; padding: 14px 20px; width: 100%; }
.shop-btn-amazon { background: #ff9900; color: #111; }
.shop-btn-amazon:hover { background: #e88b00; }
.shop-btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.shop-btn-ghost:hover { background: var(--bg); }

/* Category directory */
.shop-group { margin-bottom: 26px; }
.shop-group h3 small { font-weight: 500; color: var(--text-light); margin-left: 8px; font-size: .78rem; }
.shop-cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .shop-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-cat {
  display: flex; align-items: center; gap: 10px; padding: 10px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm);
  text-decoration: none; transition: transform .18s ease, border-color .18s ease;
}
.shop-cat:hover { transform: translateY(-2px); border-color: var(--primary); }
.shop-cat img { flex: 0 0 auto; width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; }
.shop-cat span { min-width: 0; display: flex; flex-direction: column; }
.shop-cat strong { font-size: .84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-cat small { font-size: .7rem; color: var(--text-light); }

/* Filters */
.shop-filters {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 12px; margin-bottom: 18px;
}
.shop-filters button {
  font: inherit; font-size: .74rem; font-weight: 700; cursor: pointer;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--text-light);
}
.shop-filters button.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.shop-filters label { margin-left: auto; font-size: .74rem; font-weight: 700; color: var(--text-light); display: flex; gap: 8px; align-items: center; }
.shop-filters select { font: inherit; font-size: .74rem; font-weight: 700; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.shop-filters [data-count] { flex-basis: 100%; font-size: .7rem; color: var(--text-light); }
@media (min-width: 640px) { .shop-filters [data-count] { flex-basis: auto; } }

/* Product page */
.shop-product { display: grid; gap: 22px; }
@media (min-width: 900px) { .shop-product { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); align-items: start; } }
.shop-product-img { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.shop-product-img img { display: block; width: 100%; height: 320px; object-fit: contain; }
.shop-imgnote { font-size: .68rem; color: var(--text-light); text-align: center; margin: 10px 0 0; }
.shop-buybox { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 18px 0; }
.shop-buybox .shop-imgnote { text-align: left; }
.shop-bullets { margin: 0; padding-left: 18px; color: var(--text-light); }
.shop-bullets li { margin: 5px 0; }
.shop-specs { margin: 0; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--card); }
.shop-specs > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--border); font-size: .84rem; }
.shop-specs > div:first-child { border-top: 0; }
.shop-specs dt { color: var(--text-light); margin: 0; }
.shop-specs dd { margin: 0; font-weight: 700; text-align: right; }

/* FAQ + chips */
.shop-faq details { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; }
.shop-faq summary { cursor: pointer; font-weight: 700; font-size: .9rem; }
.shop-faq p { color: var(--text-light); margin: 8px 0 0; line-height: 1.6; }
.shop-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.shop-chips a, .shop-chips span {
  font-size: .74rem; font-weight: 700; padding: 6px 12px; border-radius: 999px;
  background: var(--bg); color: var(--text-light); text-decoration: none;
}
.shop-chips a:hover { background: var(--border); }
.shop-chips a.primary { background: var(--primary); color: #fff; }
.shop-chips.inline { margin-bottom: 10px; }

/* Disclosure */
.shop-notice { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-top: 36px; }
.shop-notice h2 { font-size: .9rem; margin: 0 0 6px; }
.shop-notice p { font-size: .76rem; color: var(--text-light); line-height: 1.6; margin: 0 0 8px; }
.shop-notice p:last-child { margin-bottom: 0; }
