/* NAWAH Customer Experience V2 — additive, theme-aware styles */
.menu-filter-meta { flex-wrap: wrap; }
.nawah-favorites-filter {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 13px; min-height: 38px; border-radius: 999px;
  background: rgba(255, 255, 255, .76); border: 1px solid rgba(76, 93, 74, .17);
  color: #334832; cursor: pointer; font-size: 12px; font-family: inherit;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.nawah-favorites-filter span {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px;
  padding: 0 4px; border-radius: 50%; background: rgba(55, 76, 53, .09);
  font-variant-numeric: tabular-nums; font-size: 11px;
}
.nawah-favorites-filter.is-active { background: #344a39; color: white; border-color: #344a39; }
.nawah-favorites-filter.is-active span { background: rgba(255, 255, 255, .16); }
.menu-section #productGrid .card-frame { position: relative; }
.nawah-product-badges {
  position: absolute; z-index: 3; top: 9px; right: 9px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px;
  pointer-events: none;
}
.nawah-badge {
  display: inline-flex; align-items: center; padding: 5px 8px;
  border-radius: 99px; background: rgba(34, 55, 38, .88);
  color: #fff9eb; font-size: 10px; font-weight: 600; line-height: 1.3;
  border: 1px solid rgba(255, 255, 255, .15);
  -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px);
}
.nawah-badge-new { background: rgba(225, 198, 155, .94); color: #243326; }
.nawah-heart {
  position: absolute; z-index: 4; bottom: 9px; left: 9px;
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, .58); border-radius: 50%;
  background: rgba(247, 244, 235, .83); color: #395142;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  cursor: pointer; font: 25px/1 Georgia, serif;
  transition: transform .2s ease, background .2s ease;
}
.nawah-heart:focus-visible, .nawah-favorites-filter:focus-visible, .nawah-share-product:focus-visible {
  outline: 2px solid #d5ac79; outline-offset: 3px;
}
.nawah-heart:active { transform: scale(.9); }
.card.nawah-is-favorite .nawah-heart { color: #b34e54; background: rgba(255, 244, 240, .94); }
.nawah-share-product {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; margin-top: 20px; padding: 13px 18px;
  border-radius: 14px; background: #334a39; color: #f5f4ed;
  text-decoration: none; font-size: 13px; font-weight: 600;
}
.nawah-share-product:hover { background: #506c55; }
html[data-theme="dark"] .nawah-favorites-filter {
  background: rgba(38, 54, 42, .9); border-color: rgba(238, 242, 232, .18); color: #e4eee2;
}
html[data-theme="dark"] .nawah-favorites-filter span { background: rgba(255, 255, 255, .12); }
html[data-theme="dark"] .nawah-favorites-filter.is-active { background: #d1b489; color: #243326; }
html[data-theme="dark"] .nawah-favorites-filter.is-active span { background: rgba(22, 35, 25, .16); }
html[data-theme="dark"] .nawah-heart { background: rgba(33, 48, 36, .87); color: #f3f0de; border-color: rgba(237, 239, 230, .2); }
html[data-theme="dark"] .card.nawah-is-favorite .nawah-heart { color: #e8acaf; background: rgba(58, 48, 48, .92); }
html[data-theme="dark"] .nawah-share-product { background: #607b60; color: #fff; }
@media (max-width: 720px) {
  .menu-filter-meta { gap: 8px; }
  .nawah-favorites-filter { min-height: 38px; padding: 7px 11px; }
  .nawah-product-badges { top: 6px; right: 5px; gap: 3px; }
  .nawah-badge { font-size: 9px; padding: 4px 6px; }
  .nawah-heart { width: 33px; height: 33px; bottom: 7px; left: 7px; font-size: 23px; }
  .nawah-share-product { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .nawah-heart, .nawah-favorites-filter { transition: none; } }

/* NAWAH Visitor V2.1 — quick discovery chips and product-link actions */
.nawah-spotlight-filter {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-height: 38px; padding: 8px 13px; border-radius: 999px;
  border: 1px solid rgba(76, 93, 74, .18); background: rgba(255,255,255,.76);
  color: #334832; font-size: 12px; font-weight: 500; font-family: inherit; cursor: pointer;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.nawah-spotlight-filter > span {
  display: inline-grid; place-items: center; min-width: 21px; height: 21px;
  padding: 0 4px; border-radius: 50%; background: rgba(55,76,53,.09);
  font-variant-numeric: tabular-nums; font-size: 11px;
}
.nawah-spotlight-filter.is-active { background: #344a39; color: #fff; border-color: #344a39; }
.nawah-spotlight-filter.is-active > span { background: rgba(255,255,255,.17); }
.nawah-spotlight-filter:focus-visible, .nawah-copy-product:focus-visible {
  outline: 2px solid #d5ac79; outline-offset: 3px;
}
.nawah-share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 18px; }
.nawah-share-actions .nawah-share-product, .nawah-share-actions .nawah-copy-product {
  margin-top: 0; min-width: 0; min-height: 47px; padding: 11px 13px;
  border-radius: 12px; font-size: 12px; line-height: 1.5; font-weight: 600; font-family: inherit; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 7px;
}
.nawah-copy-product { background: rgba(243,241,232,.8); border: 1px solid rgba(50,70,53,.2); color: #334a39; }
.nawah-copy-feedback { display:block; min-height: 1.7em; padding-top:5px; color:#426348; font-size:11px; }
html[data-theme="dark"] .nawah-spotlight-filter { background: rgba(38,54,42,.9); border-color:rgba(238,242,232,.18); color:#e4eee2; }
html[data-theme="dark"] .nawah-spotlight-filter > span { background:rgba(255,255,255,.12); }
html[data-theme="dark"] .nawah-spotlight-filter.is-active { background:#d1b489; color:#243326; }
html[data-theme="dark"] .nawah-spotlight-filter.is-active > span { background:rgba(22,35,25,.16); }
html[data-theme="dark"] .nawah-copy-product { background:#27392d; border-color:rgba(232,242,225,.2); color:#f1f0e8; }
html[data-theme="dark"] .nawah-copy-feedback { color:#c5dbbd; }
@media(max-width:720px) {
  .nawah-spotlight-filter { min-height:38px; padding:7px 10px; font-size:11px; }
  .nawah-share-actions { grid-template-columns: 1fr; gap:8px; }
  .nawah-share-actions .nawah-share-product, .nawah-share-actions .nawah-copy-product { min-height:44px; }
}
@media(prefers-reduced-motion:reduce) { .nawah-spotlight-filter { transition:none; } }

/* Keep discovery actions in one compact, touch-scrollable row on small screens. */
.nawah-discovery-controls {
  display: flex; align-items: center; gap: 8px; min-width: 0; width: 100%;
  overflow-x: auto; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch;
  padding: 2px 1px 5px; scrollbar-width: none;
}
.nawah-discovery-controls::-webkit-scrollbar { display: none; }
.nawah-discovery-controls > button { flex: 0 0 auto; white-space: nowrap; }
@media(max-width:720px) { .menu-filter-hint { display: none; } }
