/* Public SelfLovings stores: shared header, favorites and product pages. */
body.sl-public-store[data-surface="store"] .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}
body.sl-public-store[data-surface="store"] .topbar .identity { min-width: 0; align-items: flex-start; text-align: left; }
body.sl-public-store[data-surface="store"] .topbar #top-actions { flex: 0 0 auto; }
.sl-store-actions { display: flex; align-items: center; gap: 8px; }
.sl-store-actions .sl-icon-button,
.sl-public-store .sl-icon-button,
.sl-public-store .sl-favorite-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 44px;
  width: 44px;
  min-height: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid #d8e1e7;
  border-radius: 50%;
  background: #fff;
  color: #183b52;
  text-decoration: none;
  cursor: pointer;
}
.sl-store-actions svg,
.sl-favorite-toggle svg { width: 22px; height: 22px; flex-shrink: 0; }
.sl-icon-count {
  position: absolute;
  top: -4px;
  right: -5px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 12px;
  background: #176557;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.sl-icon-count[hidden] { display: none; }
.sl-public-store .product-card { position: relative; }
.sl-public-store .product-card > .sl-favorite-toggle { position: absolute; top: 10px; right: 10px; z-index: 2; }
.sl-public-store .sl-favorite-toggle[aria-pressed="true"] { color: #a52452; border-color: #e3b4c5; }
.sl-favorite-toggle[aria-pressed="true"] svg { fill: #f8dce7; }
.sl-public-store .product-open,
.sl-public-store .product-name { display: block; color: inherit; text-decoration: none; }
.sl-public-store .product-name:hover { text-decoration: underline; }
.sl-public-store :is(.sl-icon-button,.sl-favorite-toggle,.sl-product-share a):focus-visible {
  outline: 3px solid #c39a31;
  outline-offset: 3px;
}
#sl-favorites {
  width: min(640px, calc(100% - 24px));
  max-height: calc(100dvh - 32px);
  padding: 24px;
  border: 1px solid #d8e1e7;
  border-radius: 20px;
  color: #183b52;
  overflow: auto;
}
#sl-favorites::backdrop { background: rgb(12 28 40 / 45%); }
.sl-favorites-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.sl-favorites-heading h2 { margin-top: 5px; }
.sl-favorites-list { list-style: none; padding: 0; margin: 18px 0 0; }
.sl-favorites-list li { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid #d8e1e7; }
.sl-favorites-list li > a { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.sl-favorites-list img { width: 64px; height: 80px; object-fit: contain; }
.sl-favorites-list strong { display: block; line-height: 1.4; }
.sl-favorites-list small { display: block; margin-top: 5px; }
.sl-favorites-empty { padding: 30px 0; }
.sl-product-page { padding-top: 18px; }
.sl-product-breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 26px; font-size: 14px; color: #526779; }
.sl-product-breadcrumb a { color: #176557; }
.sl-product-landing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.sl-landing-gallery { min-width: 0; }
.sl-landing-photo { display: grid; place-items: center; border: 1px solid #e1e8ec; border-radius: 22px; background: #fff; padding: 22px; }
.sl-landing-photo img { width: 100%; max-height: 480px; object-fit: contain; aspect-ratio: 1; }
.sl-landing-thumbnails { display: flex; gap: 10px; margin-top: 12px; }
.sl-landing-thumbnails button { width: 70px; height: 70px; padding: 4px; border: 1px solid #c7d8d0; border-radius: 10px; background: #fff; }
.sl-landing-thumbnails img { width: 100%; height: 100%; object-fit: contain; }
.sl-landing-thumbnails [aria-pressed="true"] { outline: 2px solid #176557; }
.sl-landing-information h1 { font-size: clamp(25px, 3vw, 38px); line-height: 1.18; margin: 10px 0 14px; overflow-wrap: anywhere; }
.sl-landing-presentation { color: #526779; }
.sl-landing-price { font-size: 32px; font-weight: 800; margin: 22px 0 8px; }
.sl-landing-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; }
.sl-landing-actions > .primary { flex: 1; min-height: 48px; }
.sl-landing-delivery { font-size: 14px; color: #526779; line-height: 1.6; }
.sl-product-share { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.sl-product-share > * { min-height: 44px; display: inline-flex; align-items: center; }
.sl-landing-attributes { border-top: 1px solid #d8e1e7; padding-top: 16px; font-size: 14px; }
.sl-landing-attributes > div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; margin: 8px 0; }
.sl-landing-attributes dt { color: #526779; }
.sl-landing-attributes dd { margin: 0; }
.sl-landing-details { grid-column: 1 / -1; background: #fff; border: 1px solid #e1e8ec; border-radius: 20px; padding: 24px; }
.sl-landing-details .product-detail-section { border-bottom: 1px solid #e1e8ec; padding-bottom: 18px; margin-bottom: 18px; }
.sl-landing-details .product-detail-section:last-child { border: 0; margin-bottom: 0; }
.sl-landing-details p { line-height: 1.7; white-space: pre-line; }
@media (max-width: 680px) {
  body.sl-public-store[data-surface="store"] .topbar { padding: 12px 16px; gap: 8px; min-height: 72px; }
  .sl-public-store .identity img { max-width: 130px; width: 100%; }
  .sl-public-store .identity #context-title { display: none; }
  .sl-store-actions { gap: 6px; }
  .sl-product-landing { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .sl-product-breadcrumb { margin-bottom: 18px; font-size: 13px; }
  .sl-landing-photo { padding: 18px; }
  .sl-landing-photo img { max-height: 330px; }
  .sl-landing-details { padding: 18px; }
  .sl-landing-price { margin-top: 16px; }
}
@media (max-width: 360px) {
  .sl-public-store .identity img { max-width: 108px; }
}

