/* Interaction adapter for semantic Figma exports. Default (unfocused) layout is unchanged. */
/* Hover restrokes only paths that already have a stroke: Figma icons carry an
   invisible 24x24 frame path (stroke="none"), and restroking it drew a box
   around the header heart icon on hover (search results, 2026-09-25). */
.fse-interactive {
  cursor: pointer;
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: rgba(123, 193, 67, 0.18);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease,
    box-shadow 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.fse-interactive:focus-visible,
.fse-popover :is(button, a, input):focus-visible {
  outline: 3px solid rgba(123, 193, 67, 0.38);
  outline-offset: 3px;
}

.fse-interactive.is-clicked {
  animation: fse-click-pulse 0.18s ease-out;
}

@keyframes fse-click-pulse {
  50% { transform: translateY(1px) scale(0.985); }
}

header[data-nm="Header"] {
  transition: box-shadow 0.2s ease;
}

header[data-nm="Header"].is-scrolled {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.13) !important;
}

header[data-nm="Header"]:has(.fse-categories-button.is-open),
header[data-nm="Header"]:has(.fse-search-host:focus-within) {
  position: relative !important;
  z-index: 1000;
}

.fse-categories-button.is-open,
.fse-search-host:focus-within {
  z-index: 1002;
}

.fse-top-link:hover {
  color: #333 !important;
  background: #f5f5f5 !important;
}

.fse-top-link:hover :is(span, path:not([stroke="none"])) {
  color: #333 !important;
  stroke: #333;
}

.fse-badge-link:hover {
  color: #fff !important;
  background: #6aac38 !important;
  transform: translateY(-1px);
}

.fse-badge-link:hover :is(span, path:not([stroke="none"])) {
  color: #fff !important;
  stroke: #fff;
}

.fse-language-control:hover {
  background: #f9f6f5 !important;
}

.fse-logo-button:hover {
  box-shadow: -3px -3px 8px rgba(255, 255, 255, 0.95),
    3px 3px 8px rgba(163, 177, 198, 0.6) !important;
}

.fse-categories-button:hover,
.fse-categories-button.is-open {
  background: #2d2d2d !important;
  box-shadow: -4px -4px 12px rgba(255, 255, 255, 0.95),
    4px 4px 12px rgba(163, 177, 198, 0.6) !important;
}

.fse-header-icon-button:hover,
.fse-header-icon-button.is-open {
  color: #111 !important;
  box-shadow: -4px -4px 10px rgba(255, 255, 255, 0.95),
    4px 4px 10px rgba(163, 177, 198, 0.6) !important;
}

.fse-header-icon-button:hover path:not([stroke="none"]) {
  stroke: #1b1b1b;
}

.fse-pvm-toggle {
  border-radius: 9999px;
}

.fse-pvm-track,
.fse-pvm-thumb {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.fse-pvm-toggle:hover .fse-pvm-track {
  box-shadow: 0 0 0 3px rgba(123, 193, 67, 0.14);
}

.fse-pvm-toggle.is-on .fse-pvm-track {
  background: #7bc143 !important;
}

.fse-pvm-toggle.is-on [data-nm="pvm"] {
  color: #7bc143 !important;
  font-weight: 700 !important;
}

.fse-search-host {
  position: relative !important;
  transition: box-shadow 0.2s ease;
}

.fse-search-host:focus-within {
  box-shadow: -5px -5px 14px rgba(255, 255, 255, 0.98),
    5px 5px 14px rgba(163, 177, 198, 0.62),
    0 0 0 2px rgba(123, 193, 67, 0.22) !important;
}

.fse-search-static {
  visibility: visible;
}

.fse-search-host:focus-within .fse-search-static,
.fse-search-host.has-search-value .fse-search-static {
  visibility: hidden !important;
}

.fse-search-input {
  position: absolute;
  inset: 0 52px 0 12px;
  z-index: 1;
  width: calc(100% - 64px);
  min-width: 0;
  border: 0;
  outline: 0;
  appearance: none;
  background: transparent;
  color: #1b1b1b;
  font: 400 16px/24px "Inter", sans-serif;
  opacity: 0;
}

.fse-search-host:focus-within .fse-search-input,
.fse-search-host.has-search-value .fse-search-input {
  opacity: 1;
}

.fse-search-input::placeholder {
  color: #737373;
  opacity: 1;
}

.fse-search-input::-webkit-search-cancel-button {
  cursor: pointer;
}

.fse-search-button {
  position: relative;
  z-index: 2;
}

.fse-search-button:hover path:not([stroke="none"]) {
  stroke: #7bc143 !important;
}

.fse-back-button:hover {
  background: rgba(123, 193, 67, 0.1) !important;
}

.fse-settings-manage:hover {
  opacity: 0.9;
}

.fse-settings-manage:active {
  transform: translateY(1px);
}

.fse-social-button:hover {
  transform: translateY(-2px);
}

.fse-footer-link:hover {
  color: #1b1b1b !important;
}

.fse-interaction-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(27, 27, 27, 0.22);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.fse-interaction-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.fse-popover {
  position: fixed;
  z-index: 1001;
  display: flex;
  box-sizing: border-box;
  overflow: auto;
  flex-direction: column;
  gap: 0;
  width: min(430px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  background: #fff;
  color: #1b1b1b;
  box-shadow: 0 18px 44px rgba(27, 27, 27, 0.2);
  font-family: "Inter", sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.fse-popover.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.fse-contact-popover {
  width: min(280px, calc(100vw - 32px));
  padding: 8px;
}

.fse-popover-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1b1b1b;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fse-popover-link:hover {
  background: rgba(123, 193, 67, 0.1);
  color: #639e36;
}

.fse-popover-link small {
  color: #737373;
  font-size: 11px;
}

.fse-popover-link span {
  font-size: 14px;
  font-weight: 600;
}

.fse-category-popover {
  flex-direction: row;
  width: min(760px, calc(100vw - 32px));
  min-height: 360px;
  padding: 0;
}

.fse-category-list,
.fse-subcategory-list {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 12px;
}

.fse-category-list {
  width: 44%;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
}

.fse-subcategory-list {
  flex: 1;
}

.fse-category-item,
.fse-subcategory-item {
  min-height: 42px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #1b1b1b;
  font: 500 14px/20px "Inter", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fse-category-item:hover,
.fse-category-item.is-active,
.fse-subcategory-item:hover {
  background: rgba(123, 193, 67, 0.12);
  color: #639e36;
}

.fse-subcategory-item:hover {
  transform: translateX(3px);
}

.fse-search-popover {
  width: min(620px, calc(100vw - 32px));
  padding: 12px;
}

.fse-search-popover-header,
.fse-search-history li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.fse-search-popover-header {
  padding: 6px 8px 12px;
  border-bottom: 1px solid #e5e5e5;
  font-size: 14px;
}

.fse-search-popover-header button,
.fse-search-history button {
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.fse-search-popover-header button {
  color: #737373;
  font-size: 12px;
}

.fse-search-history {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.fse-search-history li {
  border-radius: 10px;
}

.fse-search-history li:hover {
  background: #f5f5f5;
}

.fse-search-history-query {
  flex: 1;
  padding: 10px;
  color: #1b1b1b;
  text-align: left;
}

.fse-search-history-remove {
  width: 36px;
  height: 36px;
  border-radius: 8px !important;
  color: #737373;
  font-size: 20px !important;
}

.fse-search-history-remove:hover {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08) !important;
}

.fse-cart-popover {
  width: min(430px, calc(100vw - 32px));
}

.fse-cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e5e5e5;
}

.fse-cart-item div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
}

.fse-cart-item strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fse-cart-item small {
  color: #737373;
  font-size: 12px;
}

.fse-cart-item b {
  flex: 0 0 auto;
  color: #639e36;
  font-size: 14px;
}

.fse-cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-size: 15px;
}

.fse-cart-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fse-cart-actions button {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #7bc143;
  border-radius: 12px;
  background: #fff;
  color: #639e36;
  font: 600 13px/18px "Inter", sans-serif;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.fse-cart-actions button:hover {
  transform: translateY(-1px);
}

.fse-cart-actions button.is-primary {
  background: #7bc143;
  color: #fff;
}

.fse-cart-actions button.is-primary:hover {
  background: #639e36;
}

.fse-action-toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1100;
  max-width: min(420px, calc(100vw - 40px));
  padding: 12px 16px;
  border-radius: 12px;
  background: #1b1b1b;
  color: #fff;
  box-shadow: 0 12px 30px rgba(27, 27, 27, 0.24);
  font: 500 13px/18px "Inter", sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}

.fse-action-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .fse-popover {
    right: 16px;
    left: 16px !important;
    width: auto;
  }

  .fse-category-popover {
    flex-direction: column;
    min-height: 0;
  }

  .fse-category-list {
    width: 100%;
    max-height: 210px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .fse-cart-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fse-interactive,
  .fse-popover,
  .fse-interaction-overlay,
  .fse-action-toast,
  .fse-pvm-track,
  .fse-pvm-thumb {
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
