:root {
  --fy-search-ink: #10203e;
  --fy-search-muted: #68758c;
  --fy-search-blue: #1746d1;
  --fy-search-blue-dark: #0b2f91;
  --fy-search-line: #dce6f4;
  --fy-search-surface: #f7faff;
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid rgba(23, 70, 209, 0.28);
  outline-offset: 3px;
}

:where(button, input, select, textarea) {
  font: inherit;
}

.fy-skip-link-v46 {
  position: fixed;
  z-index: 10000;
  top: 10px;
  inset-inline-start: 10px;
  color: #fff;
  background: var(--fy-search-blue-dark);
  border-radius: 10px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.fy-skip-link-v46:focus {
  transform: translateY(0);
}

.product-card {
  min-width: 0;
}

.product-card .product-meta {
  min-width: 0;
}

.product-card .product-name,
.product-card .product-description {
  overflow-wrap: anywhere;
}

.product-card .product-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.fy-search-results-v46 {
  direction: rtl;
  min-height: 460px;
  padding: 18px 0 12px;
}

.fy-search-results-v46[hidden] {
  display: none !important;
}

html.fy-search-mode-v46 .hero,
html.fy-search-mode-v46 .brand-ribbon,
html.fy-search-mode-v46 .category-section,
html.fy-search-mode-v46 .offer-strip,
html.fy-search-mode-v46 #skin-routine,
html.fy-search-mode-v46 .magazine-section,
html.fy-search-mode-v46 .trust-row {
  display: none !important;
}

html.fy-search-mode-v46 .products-section {
  min-height: 58vh;
  padding-top: 40px;
}

html.fy-search-mode-v46 .products-section > :not(.fy-search-results-v46) {
  display: none !important;
}

.fy-search-heading-v46 {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--fy-search-line);
}

.fy-search-eyebrow-v46 {
  display: block;
  color: var(--fy-search-blue);
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}

.fy-search-heading-v46 h1 {
  margin: 0;
  color: var(--fy-search-ink);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.55;
}

.fy-search-heading-v46 h1 span {
  color: var(--fy-search-blue);
}

.fy-search-count-v46 {
  color: var(--fy-search-muted);
  margin: 8px 0 0;
  font-size: 14px;
}

.fy-search-controls-v46 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.fy-search-controls-v46 > label:not(.fy-search-stock-filter-v46) {
  display: grid;
  gap: 5px;
  color: var(--fy-search-muted);
  font-size: 12px;
  font-weight: 700;
}

.fy-search-controls-v46 select {
  min-width: 170px;
  min-height: 44px;
  color: var(--fy-search-ink);
  background: #fff;
  border: 1px solid var(--fy-search-line);
  border-radius: 12px;
  padding-inline: 12px;
}

.fy-search-stock-filter-v46 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #40506b;
  background: #fff;
  border: 1px solid var(--fy-search-line);
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
}

.fy-search-stock-filter-v46 input {
  width: 17px;
  height: 17px;
  accent-color: var(--fy-search-blue);
}

.fy-search-clear-v46,
.fy-search-refocus-v46,
.fy-search-error-v46 button {
  min-height: 44px;
  color: var(--fy-search-blue);
  background: #edf3ff;
  border: 1px solid #ccdaf5;
  border-radius: 12px;
  padding: 0 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.fy-search-grid-v46 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.fy-search-card-v46 {
  display: flex;
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #e0e8f4;
  border-radius: 22px;
  box-shadow: 0 15px 38px rgba(16, 48, 105, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.fy-search-card-v46:hover {
  transform: translateY(-2px);
  border-color: #bed0f1;
  box-shadow: 0 20px 46px rgba(16, 48, 105, 0.13);
}

.fy-search-card-image-v46 {
  display: grid;
  place-items: center;
  flex: 0 0 42%;
  min-width: 0;
  background: linear-gradient(145deg, #f9fbff, #eef4fc);
  border-inline-end: 1px solid #e7edf6;
  padding: 14px;
}

.fy-search-card-image-v46 img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
}

.fy-search-card-body-v46 {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 18px 17px;
}

.fy-search-card-top-v46 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
}

.fy-search-brand-v46 {
  overflow: hidden;
  color: var(--fy-search-blue);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: Arial, sans-serif;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.7px;
}

.fy-search-discount-v46 {
  flex: none;
  color: #9d2840;
  background: #fff0f3;
  border-radius: 99px;
  padding: 5px 7px;
  font-size: 10px;
  font-weight: 800;
}

.fy-search-title-v46 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--fy-search-ink);
  margin-top: 10px;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.9;
}

.fy-search-meta-v46 {
  color: var(--fy-search-muted);
  margin: 5px 0 0;
  font-size: 11px;
}

.fy-search-stock-v46 {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  font-size: 11px;
  font-weight: 800;
}

.fy-search-stock-v46::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
}

.fy-search-stock-v46.is-available {
  color: #217453;
}

.fy-search-stock-v46.is-available::before {
  background: #2da66f;
}

.fy-search-stock-v46.is-unavailable {
  color: #9a3d4b;
}

.fy-search-stock-v46.is-unavailable::before {
  background: #c55a68;
}

.fy-search-price-v46 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  width: 100%;
  margin-top: auto;
  padding-top: 13px;
}

.fy-search-price-v46 strong {
  color: var(--fy-search-ink);
  font-size: 16px;
}

.fy-search-price-v46 strong small {
  color: var(--fy-search-muted);
  font-size: 10px;
}

.fy-search-price-v46 del {
  color: #929db0;
  font-size: 11px;
}

.fy-search-action-v46 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 43px;
  color: #fff;
  background: linear-gradient(135deg, #2558df, #0f3bb5);
  border-radius: 12px;
  margin-top: 13px;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(23, 70, 209, 0.22);
}

.fy-search-loading-v46,
.fy-search-empty-v46,
.fy-search-error-v46 {
  display: grid;
  place-items: center;
  min-height: 300px;
  color: var(--fy-search-muted);
  background: linear-gradient(145deg, #f7faff, #fff);
  border: 1px solid var(--fy-search-line);
  border-radius: 22px;
  padding: 28px;
  text-align: center;
}

.fy-search-empty-v46,
.fy-search-error-v46 {
  align-content: center;
  gap: 12px;
}

.fy-search-empty-v46 h2 {
  color: var(--fy-search-ink);
  margin: 0;
  font-size: 21px;
}

.fy-search-empty-v46 p,
.fy-search-error-v46 p {
  max-width: 560px;
  margin: 0;
  font-size: 14px;
  line-height: 2;
}

.fy-search-suggestions-v46 {
  position: fixed;
  z-index: 120;
  max-height: min(440px, 62vh);
  overflow-y: auto;
  color: var(--fy-search-ink);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #d7e2f3;
  border-radius: 15px;
  padding: 7px;
  direction: rtl;
  box-shadow: 0 22px 60px rgba(8, 34, 84, 0.2);
  backdrop-filter: blur(16px);
}

.fy-search-suggestions-v46[hidden] {
  display: none !important;
}

.fy-search-suggestion-v46 {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 66px;
  border-radius: 11px;
  padding: 6px 7px;
}

.fy-search-suggestion-v46:hover,
.fy-search-suggestion-v46:focus-visible {
  color: var(--fy-search-blue-dark);
  background: #eef4ff;
  outline: none;
}

.fy-search-suggestion-v46 img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  background: #f7faff;
  border-radius: 9px;
}

.fy-search-suggestion-v46 span {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.fy-search-suggestion-v46 strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.fy-search-suggestion-v46 small {
  overflow: hidden;
  color: var(--fy-search-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}

.fy-search-suggestion-empty-v46 {
  color: var(--fy-search-muted);
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 12px;
}

@media (max-width: 980px) {
  .fy-search-heading-v46 {
    align-items: stretch;
    flex-direction: column;
  }

  .fy-search-controls-v46 {
    justify-content: flex-start;
  }

  .fy-search-grid-v46 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  html.fy-search-mode-v46 .products-section {
    width: min(100% - 28px, 1220px);
    min-height: 62vh;
    padding-top: 22px;
  }

  .fy-search-results-v46 {
    padding-top: 8px;
  }

  .fy-search-heading-v46 {
    gap: 17px;
    margin-bottom: 18px;
    padding-bottom: 18px;
  }

  .fy-search-heading-v46 h1 {
    font-size: 24px;
  }

  .fy-search-count-v46 {
    font-size: 13px;
  }

  .fy-search-controls-v46 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .fy-search-controls-v46 > label:not(.fy-search-stock-filter-v46),
  .fy-search-controls-v46 select {
    width: 100%;
    min-width: 0;
  }

  .fy-search-clear-v46 {
    grid-column: 1 / -1;
  }

  .fy-search-grid-v46 {
    gap: 11px;
  }

  .fy-search-card-v46 {
    display: flex;
    flex-direction: column;
    border-radius: 17px;
  }

  .fy-search-card-image-v46 {
    flex: none;
    width: 100%;
    aspect-ratio: 1.08;
    border-inline-end: 0;
    border-bottom: 1px solid #e7edf6;
    padding: 10px;
  }

  .fy-search-card-image-v46 img {
    height: 100%;
  }

  .fy-search-card-body-v46 {
    padding: 13px 12px 12px;
  }

  .fy-search-title-v46 {
    min-height: 52px;
    font-size: 12px;
  }

  .fy-search-meta-v46 {
    display: none;
  }

  .fy-search-discount-v46 {
    font-size: 8px;
  }

  .fy-search-price-v46 strong {
    font-size: 14px;
  }

  .fy-search-action-v46 {
    min-height: 42px;
    font-size: 10px;
  }

  .fy-search-loading-v46,
  .fy-search-empty-v46,
  .fy-search-error-v46 {
    min-height: 260px;
    border-radius: 17px;
    padding: 22px 16px;
  }

  .fy-search-suggestions-v46 {
    max-height: 55vh;
    border-radius: 13px;
  }

  .product-detail-actions {
    position: sticky;
    z-index: 24;
    bottom: calc(76px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #dbe5f3;
    border-radius: 15px;
    margin-inline: -8px;
    padding: 9px;
    box-shadow: 0 16px 40px rgba(11, 47, 145, 0.18);
    backdrop-filter: blur(16px);
  }
}

@media (max-width: 390px) {
  .fy-search-controls-v46 {
    grid-template-columns: 1fr;
  }

  .fy-search-clear-v46 {
    grid-column: auto;
  }

  .fy-search-grid-v46 {
    grid-template-columns: 1fr;
  }

  .fy-search-card-v46 {
    display: grid;
    grid-template-columns: 40% minmax(0, 1fr);
  }

  .fy-search-card-image-v46 {
    height: 100%;
    aspect-ratio: auto;
    border-bottom: 0;
    border-inline-end: 1px solid #e7edf6;
  }

  .fy-search-title-v46 {
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
