@import url("../fonts/fonts.css");

/* =========================================================
   EmbroLab — new frontend (auth pages)
   Ported from embrolab-html/login.html + signup.html.
   All assets local: ../fonts, ../img
   ========================================================= */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --color-maroon: #7a1f2b;
  --color-maroon-soft-03: rgba(122, 31, 43, 0.03);
  --color-maroon-soft-10: rgba(122, 31, 43, 0.1);
  --color-nav-bg: #f1ebe7;
  --color-surface-bg: #f8f8f8;
  --color-page-bg: #ffffff;
  --color-icon-bg: #ede5e1;
  --color-text-dark: #111111;
  --color-text-muted-60: rgba(17, 17, 17, 0.6);
  --color-text-muted-70: rgba(17, 17, 17, 0.7);
  --color-border-light: rgba(17, 17, 17, 0.2);
  --color-border-lighter: rgba(0, 0, 0, 0.2);
  --color-white: #ffffff;
  --color-red-badge: #ee0000;
  --color-red-required: #ef4444;
  --color-error: #ba1a1a;
  --color-footer-bg: #281d16;
  --color-footer-text: #ffffff;
  --color-footer-text-muted: rgba(255, 255, 255, 0.7);
  --color-footer-gold: #d4a017;
  --color-footer-icon-bg: #7a1f2b;

  --font-primary: 'Roboto', system-ui, sans-serif;
  --font-footer-heading: 'Host Grotesk', system-ui, sans-serif;
  --font-footer-tagline: 'Inter Tight', system-ui, sans-serif;

  --fs-xs: 0.875rem;
  --fs-sm: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-2xl: 2.25rem;

  --container-max: calc(1720px + 2.5rem);
  --radius-pill: 100px;
  --radius-card: 20px;
}

/* ---------- RESET ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

p {
  margin: 0;
}

h1 {
  margin: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================================================
   SITE HEADER
   ========================================================= */
.site-header {
  width: 100%;
}

.announcement-bar {
  background: var(--color-maroon);
  color: var(--color-white);
  text-align: center;
  padding: 0.75rem 2.75rem;
  position: relative;
}

.announcement-bar[hidden] {
  display: none;
}

.announcement-bar__text {
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.625rem;
  text-transform: capitalize;
}

.announcement-bar__link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.announcement-bar__close {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--color-white);
  font-size: 1.375rem;
  line-height: 1;
  opacity: 0.75;
  border-radius: 50%;
}

.announcement-bar__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
}

.navbar {
  background: var(--color-nav-bg);
  border-bottom: 1px solid rgba(17, 17, 17, 0.08);
}

.navbar__inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.navbar__brand {
  flex-shrink: 0;
  display: block;
}

.navbar__logo {
  width: 9.75rem;
  height: auto;
  aspect-ratio: 156 / 57;
  object-fit: contain;
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  flex-shrink: 0;
}

.navbar__toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.navbar__toggle-bar+.navbar__toggle-bar {
  margin-top: 5px;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] .navbar__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__collapse {
  display: contents;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 2.1875rem;
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
  flex-wrap: wrap;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-switch__option {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-maroon-soft-03);
  border: none;
  font-size: var(--fs-xs);
  color: var(--color-text-muted-60);
  text-transform: uppercase;
  letter-spacing: -0.05em;
}

.lang-switch__option--active {
  background: var(--color-maroon-soft-10);
  color: var(--color-text-dark);
}

.lang-switch__sep {
  font-size: var(--fs-xs);
  color: var(--color-text-muted-60);
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background: var(--color-icon-bg);
  border: none;
  position: relative;
  flex-shrink: 0;
}

.navbar__icons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn--account {
  margin-left: 8px;
}

.icon-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.icon-btn--account img {
  width: 16px;
  height: 20px;
}

.icon-btn__badge {
  position: absolute;
  top: 0;
  right: -8px;
  background: var(--color-red-badge);
  color: var(--color-white);
  font-size: 0.75rem;
  line-height: 1.2;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--color-surface-bg);
  padding: 1.5rem 1.25rem;
}

.breadcrumb__list {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5625rem;
  flex-wrap: wrap;
}

.breadcrumb__item {
  font-size: var(--fs-sm);
  color: var(--color-text-muted-60);
}

.breadcrumb__item--current {
  color: var(--color-text-dark);
}

.breadcrumb__sep {
  width: 5px;
  height: 9px;
  flex-shrink: 0;
  display: block;
}

/* =========================================================
   AUTH PAGE / CARD
   ========================================================= */
.auth-page {
  position: relative;
  width: 100%;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8.25rem 1.25rem;
  background: var(--color-nav-bg);
}

.auth-page::before {
  content: "";
  position: absolute;
  top: 86px;
  bottom: 0;
  left: calc(50% - 0.5px);
  width: 1px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2) 0 4px, rgba(0, 0, 0, 0) 4px 8px);
  background-size: 1px 8px;
  pointer-events: none;
  z-index: 0;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34.375rem;
  /* 550px */
  background: var(--color-white);
  border: 1px solid var(--color-border-lighter);
  border-radius: var(--radius-card);
  padding: 3.75rem 3.5rem 3.25rem;
}

.auth-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.auth-card__title {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 2.75rem;
  letter-spacing: -0.01em;
  text-transform: capitalize;
  color: var(--color-text-dark);
}

.auth-card__subtitle {
  font-size: var(--fs-md);
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--color-text-muted-60);
}

.auth-card__oauth {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  height: 44px;
  background: var(--color-surface-bg);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-pill);
  padding: 0.625rem 1rem;
}

.btn-google img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-google span {
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
}

.divider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.divider-row__line {
  flex: 1;
  height: 1px;
  border: none;
  border-top: 1px solid var(--color-border-light);
  margin: 0;
}

.divider-row__label {
  font-size: var(--fs-xs);
  color: var(--color-text-muted-70);
  white-space: nowrap;
}

.auth-card__divider-full {
  width: calc(100% + 38px);
  margin: 1.625rem -19px;
  height: 1px;
  border: none;
  border-top: 1px dashed rgba(17, 17, 17, 0.22);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.auth-card--register .auth-form {
  gap: 2.5rem;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.form-field__label {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--color-text-dark);
}

.form-field__required {
  color: var(--color-red-required);
}

.form-field__control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 45px;
  padding: 0.5rem 1.05rem;
  border-radius: 4.025rem;
  background: var(--color-white);
  border: 1.4px solid var(--color-border-light);
}

.form-field__control--focus,
.form-field__control:focus-within {
  background: var(--color-surface-bg);
  border-color: var(--color-maroon);
}

.form-field__control--error {
  border-color: var(--color-error);
}

.form-field__input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: var(--font-primary);
  font-size: var(--fs-sm);
  color: var(--color-text-dark);
}

.form-field__input::placeholder {
  color: var(--color-text-muted-70);
}

.form-field__toggle {
  background: none;
  border: none;
  padding: 0;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.form-field__toggle img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.form-field__error {
  font-size: var(--fs-xs);
  color: var(--color-error);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.checkbox-row__input {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--color-text-muted-70);
  border-radius: 4px;
  background: var(--color-white) center / 14px no-repeat;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-row__input:checked {
  background-color: var(--color-maroon);
  border-color: var(--color-maroon);
  background-image: url("../img/check-white.svg");
}

.checkbox-row__label {
  font-size: var(--fs-lg);
  color: var(--color-text-muted-70);
  cursor: pointer;
}

.auth-form__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  width: 100%;
  background: var(--color-maroon);
  color: var(--color-white);
  border: none;
  border-radius: 9.1875rem;
  padding: 0.9375rem 1.875rem;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary span {
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.625rem;
}

.btn-primary img {
  width: 14px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  transform: rotate(90deg);
}

.auth-form__switch {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-lg);
  line-height: 1.625rem;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.auth-form__switch-text {
  color: var(--color-text-muted-60);
}

.auth-form__switch-link {
  color: var(--color-text-dark);
  font-weight: 500;
  text-decoration: underline;
}

.auth-alert {
  border-radius: 12px;
  padding: 0.875rem 1rem;
  font-size: var(--fs-sm);
  line-height: 1.4;
}

.auth-alert--success {
  background: rgba(122, 31, 43, 0.06);
  color: var(--color-maroon);
}

.auth-alert--error {
  background: #ffdad6;
  color: #93000a;
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--color-footer-bg);
  color: var(--color-footer-text);
  position: relative;
  overflow: hidden;
}

.site-footer__top {
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 6.25rem 1.25rem 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1.5625rem;
  max-width: 16.4375rem;
}

.footer-brand__logo {
  width: 9.75rem;
  height: auto;
  aspect-ratio: 156 / 57;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-brand__tagline {
  font-family: var(--font-footer-tagline);
  font-weight: 500;
  font-size: var(--fs-md);
  line-height: 1.75rem;
  color: var(--color-footer-text-muted);
  text-transform: capitalize;
}

.footer-follow {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-follow__heading {
  font-family: var(--font-footer-heading);
  font-weight: 500;
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  color: var(--color-footer-text);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-footer-icon-bg);
}

.footer-social__link img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-social__link:not(:first-child) img {
  width: 18px;
  height: 18px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(2.5rem, 10vw, 168px);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 9rem;
}

.footer-col__heading {
  font-family: var(--font-footer-heading);
  font-weight: 500;
  font-size: var(--fs-lg);
  line-height: 1.5rem;
  color: var(--color-footer-gold);
}

.footer-col__list {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.footer-col__list a {
  font-family: var(--font-footer-heading);
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--color-footer-text);
}

.footer-contact__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-contact__row {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.footer-contact__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--color-footer-icon-bg);
  flex-shrink: 0;
}

.footer-contact__icon img {
  width: 15px;
  height: 15px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-contact__row span {
  font-family: var(--font-footer-heading);
  font-weight: 400;
  font-size: var(--fs-md);
  color: var(--color-footer-text);
}

.site-footer__copyright {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-light, rgba(255, 255, 255, 0.6));
  padding: 0 1.25rem 1.5rem;
  margin: 0;
}

.site-footer__illustration {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 227px;
  line-height: 0;
  margin-top: 22px;
  overflow: hidden;
}

.site-footer__illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1921 / 382.33;
  object-fit: cover;
  object-position: top;
  opacity: 0.9;
}

/* =========================================================
   RESPONSIVE — TABLET (<=1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .navbar__inner {
    padding: 1rem 1.25rem;
    position: relative;
  }

  .navbar__toggle {
    display: flex;
  }

  .navbar__collapse {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-nav-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 0 1.25rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
    z-index: 20;
  }

  .navbar__collapse.is-open {
    max-height: 32rem;
    opacity: 1;
    padding: 1.25rem;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
  }

  .navbar__links {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.125rem;
    width: 100%;
  }

  .navbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .breadcrumb {
    padding: 1.25rem 1.25rem;
  }

  .auth-page {
    padding: 5rem 1.25rem;
  }

  .auth-card {
    padding: 3rem 2.25rem;
  }

  .site-footer__top {
    padding: 4rem 1.25rem 2.5rem;
    gap: 2.5rem;
  }

  .site-footer__links {
    gap: 2.5rem 3rem;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (<=768px)
   ========================================================= */
@media (max-width: 768px) {
  .announcement-bar {
    padding: 0.625rem 2.25rem;
  }

  .announcement-bar__text {
    font-size: 0.8125rem;
    line-height: 1.25rem;
  }

  .announcement-bar__close {
    right: 0.25rem;
    width: 24px;
    height: 24px;
    font-size: 1.25rem;
  }

  .navbar__logo {
    width: 7.5rem;
  }

  .breadcrumb__item {
    font-size: var(--fs-xs);
  }

  .auth-page {
    padding: 3rem 1rem;
  }

  .auth-card {
    padding: 2.25rem 1.25rem;
    border-radius: 1rem;
  }

  .auth-card__title {
    font-size: 1.75rem;
    line-height: 2.25rem;
  }

  .auth-card__subtitle {
    font-size: var(--fs-sm);
  }

  .auth-card__divider-full {
    margin: 1.5rem 0;
    width: 100%;
  }

  .auth-form {
    gap: 1.5rem;
  }

  .auth-card--register .auth-form {
    gap: 1.75rem;
  }

  .checkbox-row__label {
    font-size: var(--fs-sm);
  }

  .auth-form__switch {
    font-size: var(--fs-sm);
    gap: 0.5rem;
  }

  .site-footer__top {
    flex-direction: column;
    padding: 3rem 1.25rem 2rem;
    gap: 2.5rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .site-footer__links {
    flex-direction: column;
    gap: 2rem;
  }

  .site-footer__illustration {
    margin-top: -1rem;
    height: auto;
  }
}

/* =========================================================
   SEARCH PANEL (header) — ported 1:1 from search-popup-modal.html.
   .search-panel-overlay is our own addition (fixed backdrop) — the
   reference shows the panel in isolation, but on the live site it opens
   as an overlay above the current page.
   ========================================================= */
.search-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.8125rem 1.25rem;
  /* 45px 20px */
  overflow-y: auto;
  z-index: 100;
}

.search-panel {
  width: 100%;
  max-width: 41.25rem;
  /* 660px */
  background: #f8f8f8;
  border-radius: 1rem;
  /* 16px */
  box-shadow: 0 11px 50px 10px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.search-panel__header {
  background: var(--color-nav-bg);
  padding: 1.5rem 2rem;
  /* 24px 32px */
}

.search-form__field {
  position: relative;
  width: 100%;
  height: 3rem;
  /* 48px */
}

.search-form__icon {
  position: absolute;
  z-index: 1;
  top: 0.875rem;
  left: 0.875rem;
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.search-form__input {
  width: 100%;
  height: 100%;
  padding: 0 0.875rem 0 2.75rem;
  border: 1px solid rgba(17, 17, 17, 0.2);
  border-radius: var(--radius-pill);
  outline: none;
  background: var(--color-white);
  font-family: var(--font-primary);
  font-size: 1.125rem;
  color: var(--color-text-dark);
}

.search-form__input::placeholder {
  color: rgba(17, 17, 17, 0.5);
}

.search-form__input:focus {
  border-color: rgba(17, 17, 17, 0.45);
}

.search-panel__content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-height: 70vh;
  overflow-y: auto;
}

.search-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.search-section__title {
  font-size: 1.5rem;
  /* 24px */
  font-weight: 600;
  color: var(--color-text-dark);
  text-transform: capitalize;
}

.search-chip-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.search-chip-group__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.search-chip {
  height: 2.5rem;
  /* 40px */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 0 0 auto;
  padding: 0 1.25rem;
  border: 1px solid rgba(17, 17, 17, 0.09);
  border-radius: var(--radius-pill);
  color: var(--color-text-muted-60);
  background: var(--color-white);
  font-size: 1rem;
  cursor: pointer;
}

.search-chip__icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.search-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9375rem;
  /* 15px */
}

.search-product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4575rem;
}

.search-product-card__image {
  width: 100%;
  aspect-ratio: 188.457 / 220.934;
  border-radius: 0.5718rem;
  /* 9.148px */
  object-fit: cover;
}

.search-product-card__details {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.search-product-card__pricing {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.search-product-card__amounts {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.search-product-card__price {
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--color-maroon);
}

.search-product-card__old-price {
  font-size: 0.625rem;
  color: #707070;
  text-decoration: line-through;
}

.search-product-card__discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #a11a39;
  color: var(--color-white);
  font-size: 0.4575rem;
  font-weight: 600;
  padding: 0.257rem 0.4rem;
  border-radius: var(--radius-pill);
  line-height: 1.6;
}

.search-product-card__title {
  font-weight: 500;
  font-size: 0.625rem;
  color: var(--color-text-dark);
  text-align: center;
}

.search-view-all {
  display: block;
  margin-top: 1.5rem;
  text-align: center;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-maroon);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--color-text-muted-60);
  font-size: var(--fs-sm);
}

/* =========================================================
   RESPONSIVE — TABLET (≤1024px)
   ========================================================= */
@media (max-width: 1024px) {
  .search-panel-overlay {
    padding: 2rem 1.25rem;
  }

  .search-panel__header {
    padding: 1.25rem 1.5rem;
  }

  .search-panel__content {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .product-grid {
    gap: 0.75rem;
  }
}

/* =========================================================
   RESPONSIVE — MOBILE (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  .search-panel-overlay {
    padding: 0;
    align-items: stretch;
  }

  .search-panel {
    max-width: 100%;
    border-radius: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .search-panel__header {
    padding: 1rem 1.25rem;
  }

  .search-form__field {
    height: 2.75rem;
  }

  .search-panel__content {
    padding: 1.25rem;
    gap: 1.5rem;
    max-height: none;
    flex: 1;
  }

  .search-section__title {
    font-size: 1.25rem;
  }

  .search-chip {
    padding: 0 1rem;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   SHARED: floating WhatsApp button + toast
   ========================================================= */
.nd-whatsapp-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 50;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.nd-whatsapp-fab svg {
  width: 1.6rem;
  height: 1.6rem;
}

.nd-toast {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%) translateY(1rem);
  z-index: 100;
  max-width: min(90vw, 26rem);
  padding: 0.85rem 1.5rem;
  border-radius: 100px;
  background: #281d16;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nd-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================================================
   MARKETING POPUP (header) — admin-managed, dismissible, above everything
   ========================================================= */
.marketing-popup-overlay {
  position: fixed;
  inset: 0;
  background: var(--color-overlay, rgba(17, 17, 17, 0.55));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  z-index: 200;
}

.marketing-popup {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: var(--color-white);
  border-radius: var(--radius-modal, 20px);
  box-shadow: 0px 11px 50px 10px rgba(0, 0, 0, 0.13);
  overflow: hidden;
}

.marketing-popup__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  color: var(--color-text-dark);
  font-size: 1.25rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}

.marketing-popup__image {
  width: 100%;
  max-height: 14rem;
  object-fit: cover;
  display: block;
}

.marketing-popup__body {
  padding: 1.75rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.marketing-popup__heading {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-text-dark);
}

.marketing-popup__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted-70);
}

.marketing-popup__cta {
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .marketing-popup__body {
    padding: 1.25rem;
  }
}