/* Favoris Zaanga Wedding: controls are overlaid so product-card dimensions never shift. */
.product-card,
.trend-card,
.detail-product__media {
  position: relative;
}

.zaanga-favorite-toggle {
  position: absolute;
  z-index: 8;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(24, 119, 242, 0.42);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #1877f2;
  box-shadow: 0 8px 22px rgba(23, 21, 19, 0.18);
  font: 800 0.76rem/1.15 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.zaanga-favorite-toggle svg,
.zaanga-favorites-access svg,
.zaanga-favorites-empty > svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 1.9;
}

.zaanga-favorite-toggle .zaanga-like-icon {
  fill: currentColor;
  stroke: none;
}

.zaanga-favorites-access .zaanga-saved-likes-icon {
  fill: currentColor;
  stroke: none;
}

.zaanga-favorites-empty > .zaanga-like-icon {
  fill: currentColor;
  stroke: none;
}

.zaanga-favorite-toggle:hover { transform: translateY(-1px); }

.zaanga-favorite-toggle.is-favorite {
  border-color: #1877f2;
  background: #1877f2;
  color: #fff;
}

.zaanga-favorite-toggle.is-favorite svg {
  fill: currentColor;
  animation: zaanga-favorite-pop 300ms ease-out;
}

.zaanga-favorite-toggle:focus-visible,
.zaanga-favorites-access:focus-visible,
.zaanga-favorites-panel button:focus-visible,
.zaanga-favorites-panel a:focus-visible {
  outline: 3px solid #d6a73c;
  outline-offset: 3px;
}

@keyframes zaanga-favorite-pop {
  0% { transform: scale(0.72); }
  55% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

@keyframes zaanga-favorites-catch {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.12); box-shadow: 0 0 0 7px rgba(24, 119, 242, 0.14); }
}

.zaanga-favorites-access {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(24, 119, 242, 0.38);
  border-radius: 6px;
  background: #eef5ff;
  color: #145dbf;
  font: 800 0.78rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  flex: 0 0 auto;
}

.zaanga-favorites-access:hover { background: #e4efff; }

.zaanga-favorites-access.is-catching-like {
  animation: zaanga-favorites-catch 420ms cubic-bezier(.2,.8,.25,1);
}

.zaanga-favorites-access strong {
  display: grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: 50%;
  background: #ad1320;
  color: #fff;
  font-size: 0.69rem;
}

.zaanga-like-flyer {
  position: fixed;
  z-index: 10080;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
  box-shadow: 0 12px 28px rgba(24, 119, 242, 0.35);
  pointer-events: none;
}

.zaanga-like-flyer svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.zaanga-favorites-hint {
  position: fixed;
  z-index: 10030;
  top: 96px;
  right: 18px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
  padding: 17px 42px 17px 16px;
  border: 1px solid rgba(24, 119, 242, 0.35);
  border-radius: 6px;
  background: #fff;
  color: #171513;
  box-shadow: 0 18px 46px rgba(23, 21, 19, 0.22);
}

.zaanga-favorites-hint[hidden] { display: none !important; }

.zaanga-favorites-hint__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #1877f2;
  color: #fff;
}

.zaanga-favorites-hint__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.zaanga-favorites-hint strong {
  display: block;
  margin: 1px 0 5px;
  font: 900 0.94rem/1.25 Inter, ui-sans-serif, system-ui, sans-serif;
}

.zaanga-favorites-hint p {
  margin: 0;
  color: #5f5952;
  font: 500 0.82rem/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}

.zaanga-favorites-hint div > button {
  margin-top: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #145dbf;
  font: 900 0.8rem/1 Inter, ui-sans-serif, system-ui, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.zaanga-favorites-hint__close {
  position: absolute;
  top: 7px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #5d5750;
  font: 400 1.6rem/1 sans-serif;
  cursor: pointer;
}

body.favorites-open { overflow: hidden; }

.zaanga-favorites-shell {
  position: fixed;
  z-index: 10020;
  inset: 0;
}

.zaanga-favorites-shell[hidden],
.zaanga-favorites-toast[hidden] { display: none !important; }

.zaanga-favorites-shell__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 13, 12, 0.64);
}

.zaanga-favorites-panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, 480px);
  height: 100%;
  background: #fbfaf7;
  color: #171513;
  box-shadow: -18px 0 45px rgba(23, 21, 19, 0.24);
}

.zaanga-favorites-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #ded6ca;
}

.zaanga-favorites-panel__header .eyebrow {
  margin: 0 0 5px;
  color: #9e6f1f;
}

.zaanga-favorites-panel__header h2 {
  margin: 0;
  color: #171513;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  letter-spacing: 0;
}

.zaanga-favorites-panel__close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #d8cdbf;
  border-radius: 50%;
  background: #fff;
  color: #171513;
  font-size: 1.8rem;
  cursor: pointer;
}

.zaanga-favorites-panel__body {
  min-height: 0;
  overflow-y: auto;
  padding: 18px 24px;
}

.zaanga-favorites-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.zaanga-favorite-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding-block: 16px;
  border-bottom: 1px solid #ded6ca;
}

.zaanga-favorite-row__media {
  display: block;
  width: 92px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #d8cdbf;
  border-radius: 5px;
  background: #f0ede8;
}

.zaanga-favorite-row__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zaanga-favorite-row__content { min-width: 0; }

.zaanga-favorite-row__content > span {
  display: block;
  margin-bottom: 5px;
  color: #746d65;
  font: 700 0.69rem/1.25 Inter, ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
}

.zaanga-favorite-row__content h3 {
  margin: 0;
  color: #171513;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.zaanga-favorite-row__content h3 a { color: inherit; }

.zaanga-favorite-row__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.zaanga-favorite-row__actions button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #b9aa98;
  border-radius: 5px;
  background: #fff;
  color: #171513;
  font: 800 0.72rem/1.1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}

.zaanga-favorite-row__actions button:first-child {
  border-color: #ad1320;
  background: #ad1320;
  color: #fff;
}

.zaanga-favorites-panel__footer {
  padding: 16px 24px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid #ded6ca;
  background: #fff;
}

.zaanga-favorites-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  min-height: 58vh;
  padding: 32px 14px;
  text-align: center;
}

.zaanga-favorites-empty > svg {
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  color: #ad1320;
}

.zaanga-favorites-empty h3 {
  max-width: 330px;
  margin: 0;
  color: #171513;
  font-size: 1.25rem;
  letter-spacing: 0;
}

.zaanga-favorites-empty p {
  max-width: 350px;
  color: #69625b;
}

.zaanga-favorites-toast {
  position: fixed;
  z-index: 10040;
  right: 22px;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(430px, calc(100vw - 32px));
  padding: 14px 16px;
  border-left: 4px solid #d6a73c;
  border-radius: 5px;
  background: #171513;
  color: #fff;
  box-shadow: 0 14px 36px rgba(23, 21, 19, 0.3);
  font: 700 0.88rem/1.35 Inter, ui-sans-serif, system-ui, sans-serif;
}

.zaanga-favorites-toast button {
  border: 0;
  background: transparent;
  color: #f5d67a;
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: underline;
}

.zaanga-favorite-form-selection {
  margin: 4px 0 16px;
  padding: 15px;
  border: 1px solid #d7c8b6;
  border-radius: 6px;
  background: #fffaf0;
}

.zaanga-favorite-form-selection legend {
  padding-inline: 6px;
  color: #171513;
  font-weight: 900;
}

.zaanga-favorite-form-selection > p {
  margin: 0 0 12px;
  color: #686058;
  font-size: 0.84rem;
}

.zaanga-favorite-form-selection__items {
  display: grid;
  gap: 8px;
}

.zaanga-favorite-form-selection__items label {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e0d7cb;
  border-radius: 5px;
  background: #fff;
}

.zaanga-favorite-form-selection__items input {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: #ad1320;
}

.zaanga-favorite-form-selection__items span,
.zaanga-favorite-form-selection__items small { display: block; }
.zaanga-favorite-form-selection__items strong { line-height: 1.25; }

.zaanga-favorite-form-selection__items small {
  margin-top: 3px;
  color: #70675f;
}

.zaanga-favorite-form-selection .zaanga-favorite-form-selection__summary {
  margin: 11px 0 0;
  color: #8e111c;
  font-weight: 800;
}

@media (max-width: 760px) {
  .zaanga-favorites-access {
    min-width: 92px;
    min-height: 44px;
    padding: 0 9px;
    border-radius: 6px;
    gap: 6px;
  }

  .zaanga-favorites-access [data-favorites-access-label] {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    font-size: 0.69rem;
  }

  .zaanga-favorites-access strong {
    min-width: 18px;
    height: 18px;
    padding-inline: 4px;
  }

  .zaanga-favorites-access svg { width: 19px; height: 19px; }

  .zaanga-favorite-toggle {
    top: 9px;
    right: 9px;
    width: auto;
    min-width: 86px;
    height: 46px;
    padding: 0 12px;
    border-radius: 6px;
  }

  .zaanga-favorites-panel { width: 100%; }

  .zaanga-favorites-panel__header,
  .zaanga-favorites-panel__body,
  .zaanga-favorites-panel__footer { padding-inline: 18px; }

  .zaanga-favorites-toast {
    right: 16px;
    bottom: max(92px, calc(env(safe-area-inset-bottom) + 18px));
  }

  .zaanga-favorites-hint {
    top: 84px;
    right: 16px;
  }
}

@media (max-width: 430px) {
  .site-header .icon-button--whatsapp {
    display: none !important;
  }
}

@media (max-width: 380px) {
  .zaanga-favorites-access {
    min-width: 82px;
    padding-inline: 7px;
  }

  .zaanga-favorites-access [data-favorites-access-label] { font-size: 0.64rem; }
}

@media (prefers-reduced-motion: reduce) {
  .zaanga-favorite-toggle,
  .zaanga-favorite-toggle.is-favorite svg,
  .zaanga-favorites-access,
  .zaanga-like-flyer {
    animation: none !important;
    transition: none !important;
  }
}
