/* Native favorites presentation, based on design/v2 at c23c6de. */
.site-header .brand,
.spik-footer-grid .brand {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
}
.site-header .brand img,
.spik-footer-grid .brand img {
  width: 54px;
  height: auto;
}
.site-header .header-actions {
  flex-shrink: 0;
}
.site-header .spik-header-search > summary {
  width: 42px;
  min-width: 42px;
  padding-inline: 9px;
  justify-content: center;
}
.site-header .spik-header-search > summary svg {
  width: 24px;
  height: 24px;
}
.header-actions .spik-favorites-link {
  position: relative;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 9px;
  color: var(--color-ink);
}
.spik-favorites-link svg,
.spik-favorite-toggle svg {
  display: block;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}
.spik-favorites-count {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding-inline: 4px;
  border-radius: 99px;
  background: var(--color-fern);
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
  pointer-events: none;
}
.spik-favorite-toggle.icon-button {
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: linear-gradient(140deg, #ffffffb0, #ffffff70);
  color: var(--color-ink);
  box-shadow: var(--control-shadow);
  touch-action: manipulation;
}
.spik-favorite-toggle.icon-button:hover {
  background: #ffffffe0;
}
.spik-favorite-toggle[aria-pressed='true'] {
  color: #825363;
  background: linear-gradient(140deg, #fff4f6e6, #e8d9df9c);
}
.spik-favorite-toggle[aria-pressed='true'] svg {
  fill: currentColor;
}
.spik-favorite-toggle[aria-pressed='true']:hover {
  background: #f5e5ed;
}
.spik-favorites-link:focus-visible,
.spik-favorite-toggle:focus-visible {
  outline: 2px solid #53677e;
  outline-offset: 4px;
}
.spik-favorite-toggle:disabled {
  cursor: wait;
  opacity: 0.6;
}
.woocommerce ul.products li.product .spik-favorite-toggle {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  margin: 0;
}
/* Keep the native sale label separate from the favorite control. */
.woocommerce ul.products li.product:has(.spik-favorite-toggle) .onsale {
  left: 12px;
  right: auto;
  max-width: calc(100% - 78px);
}
.woocommerce div.product .summary .spik-favorite-toggle {
  position: static;
  display: inline-flex;
  margin-block: 4px 20px;
  vertical-align: middle;
}
.spik-favorites-intro {
  margin-bottom: 35px;
  max-width: 760px;
}
.spik-favorites-intro h1 {
  max-width: 620px;
  margin: 0 0 22px;
  font-size: clamp(40px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.spik-favorites-intro p {
  max-width: 64ch;
  margin-block: 14px 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-muted);
}
.spik-favorites-products.woocommerce ul.products.columns-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.spik-favorites-empty.spik-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 30px;
  text-align: center;
  border: 1px solid transparent;
  border-radius: 26px;
  background: var(--glass-surface);
  box-shadow: var(--glass-shadow);
}
.spik-favorites-empty > svg {
  width: 34px;
  height: 34px;
  margin-bottom: 23px;
  color: var(--color-muted);
}
.spik-favorites-empty h2 {
  max-width: 28ch;
  margin-bottom: 13px;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.03em;
}
.spik-favorites-empty p {
  max-width: 46ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}
.spik-favorites-empty .primary-button {
  margin-top: 28px;
  text-decoration: none;
}
.spik-favorites-feedback,
.spik-favorites-storage-note {
  padding: 16px 20px;
  margin-block: 22px;
  border: 1px solid #7e8a9b55;
  border-radius: 18px;
  background: #f3f5f8ed;
  color: #414954;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.spik-favorites-feedback[role='alert'],
.spik-favorites-storage-note {
  border-color: #98748666;
  background: #f5ecef;
  color: #684655;
}
.spik-favorites-feedback p,
.spik-favorites-storage-note p {
  margin: 0;
}
.spik-favorites-feedback a,
.spik-favorites-storage-note a {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.spik-favorites-feedback button {
  min-height: 42px;
  margin-block-start: 10px;
}
/* Visibility and live announcements remain controlled by native hidden/status attributes. */
@media (max-width: 1000px) {
  .spik-favorites-products.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .spik-favorites-products.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .site-header .brand img,
  .spik-footer-grid .brand img {
    width: 45px;
    height: auto;
  }
  .site-header .header-actions {
    gap: 0;
  }
  .header-actions .spik-favorites-link {
    width: 42px;
    height: 42px;
  }
  .spik-favorites-intro {
    margin-bottom: 28px;
  }
  .spik-favorites-intro h1 {
    font-size: 40px;
  }
  .spik-favorites-intro p {
    font-size: 13px;
  }
  .spik-favorites-empty.spik-empty {
    padding: 35px 22px;
  }
  .spik-favorites-empty h2 {
    font-size: 23px;
  }
  .spik-favorites-feedback,
  .spik-favorites-storage-note {
    padding: 14px 16px;
  }
}
@media (max-width: 380px) {
  .site-header {
    gap: 4px;
    padding-inline: 10px;
  }
  .site-header .brand {
    padding-inline: 2px;
  }
  .site-header .spik-menu > summary {
    padding-inline: 6px;
    gap: 5px;
  }
  .site-header .header-actions .wc-block-mini-cart {
    margin-left: 2px;
    padding-left: 3px;
  }
  .spik-favorites-intro h1 {
    font-size: 35px;
  }
}
