.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(250, 244, 236, 0.94));
  border-bottom: 1px solid rgba(71, 48, 38, 0.08);
  box-shadow: 0 10px 24px rgba(71, 48, 38, 0.06);
  transition: transform 220ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

:root {
  --site-floating-viewport-bottom: 0px;
}

.site-header--scrolled {
  box-shadow: 0 16px 32px rgba(71, 48, 38, 0.1);
}

.site-header--hidden {
  transform: translateY(-100%);
}

.site-header__topbar {
  border-bottom: 1px solid rgba(71, 48, 38, 0.08);
  background: rgba(252, 246, 239, 0.82);
}

.top-bar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  gap: var(--space-4);
  color: var(--text-soft);
  font-size: 0.86rem;
}

.top-bar-left,
.top-bar-actions,
.top-bar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.top-bar-actions {
  gap: 1rem;
}

.top-bar-link {
  color: var(--text-soft);
  font-weight: 600;
  transition: color 160ms ease, transform 160ms ease;
}

.top-bar-link__label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.top-bar-link:hover {
  color: var(--brand-deep);
  transform: translateY(-1px);
}

.top-bar-link--accent {
  color: var(--accent);
  font-weight: 700;
}

.site-header__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  min-height: 76px;
  gap: var(--space-5);
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  letter-spacing: -0.03em;
  justify-self: start;
}

.site-logo__mark {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-block: -10px;
}

.site-logo__label {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.site-logo__title {
  display: flex;
  flex-direction: row;
  gap: 0.38rem;
  font-family: "Sirin Display", "Avenir Next", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 0.92;
  color: var(--brand-deep);
  letter-spacing: -0.02em;
  align-items: center;
  text-align: left;
}

.site-logo__title-main {
  font-size: clamp(1.62rem, 1.9vw, 2.12rem);
}

.site-logo__title-sub {
  font-size: clamp(1.62rem, 1.9vw, 2.12rem);
  color: var(--brand-deep);
  font-weight: 700;
}

.site-header__search {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 460px;
  min-height: 58px;
  padding: 0 0.55rem 0 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(71, 48, 38, 0.08);
  box-shadow: var(--shadow-soft);
  justify-self: center;
}

.site-header__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.site-header__search input::placeholder {
  color: var(--text-soft);
}

.site-header__search button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  min-width: 46px;
  min-height: 46px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 14px 24px rgba(141, 47, 76, 0.22);
}

.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: end;
  gap: var(--space-3);
}

.site-header__action {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(71, 48, 38, 0.08);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.site-header__action--authenticated {
  border-color: rgba(45, 124, 95, 0.16);
  background: rgba(45, 124, 95, 0.08);
  color: #216a51;
}

.site-header__action--authenticated::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #2d7c5f;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.94);
}

.site-header__action--authenticated.site-header__action--has-account-badge::after {
  display: none;
}

.site-header__cart-badge,
.site-header__favorites-badge,
.site-header__account-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 0.46rem;
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  border: 2px solid rgba(255, 255, 255, 0.96);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 1px rgba(76, 21, 40, 0.18);
  box-shadow:
    0 14px 26px rgba(91, 28, 48, 0.24),
    0 3px 8px rgba(91, 28, 48, 0.16);
  transform: translate3d(0, 0, 0) scale(1);
}

.site-header__cart-badge::before,
.site-header__favorites-badge::before,
.site-header__account-badge::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  opacity: 0.9;
}

.site-header__cart-badge[hidden] {
  display: none;
}

.site-header__cart-badge {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(180deg, #ab4667 0%, #7f2947 100%);
}

.site-header__favorites-badge[hidden] {
  display: none;
}

.site-header__favorites-badge,
.site-header__account-badge {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(180deg, #d5567c 0%, #ad365c 100%);
}

.site-header__account-badge {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.3), transparent 46%),
    linear-gradient(180deg, #bc4e70 0%, #8c2d4d 100%);
}

.site-header__account-badge[hidden] {
  display: none;
}

.site-header__action--has-badge {
  color: #8d2f4c;
  border-color: rgba(180, 52, 88, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 247, 249, 0.97), rgba(255, 241, 245, 0.92));
  box-shadow:
    0 14px 26px rgba(108, 41, 61, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.site-header__action svg,
.site-header__search svg,
.top-bar-link svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-floating-scrolltop,
.site-floating-order-tracking,
.site-floating-whatsapp {
  display: none;
}

.favorites-drawer {
  position: fixed;
  inset: 0;
  z-index: 130;
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.favorites-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(38, 25, 21, 0.18);
  opacity: 0;
  transition: opacity 180ms ease;
}

.favorites-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  width: min(420px, 100vw);
  height: 100vh;
  padding: 1.2rem 0;
  background: rgba(255, 252, 247, 0.98);
  border-left: 1px solid rgba(71, 48, 38, 0.08);
  box-shadow: -18px 0 44px rgba(35, 22, 20, 0.12);
  transform: translateX(104%);
  transition: transform 220ms ease;
}

.favorites-drawer[data-open="true"] {
  pointer-events: auto;
  visibility: visible;
}

.favorites-drawer[data-closing="true"] {
  pointer-events: auto;
  visibility: visible;
}

.favorites-drawer[data-open="true"] .favorites-drawer__backdrop {
  opacity: 1;
}

.favorites-drawer[data-open="true"] .favorites-drawer__panel {
  transform: translateX(0);
}

.favorites-drawer__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 1.15rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(71, 48, 38, 0.08);
}

.favorites-drawer__title {
  display: inline-flex;
  align-items: center;
  color: var(--brand-deep);
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.favorites-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(71, 48, 38, 0.08);
  color: var(--brand-deep);
  box-shadow: var(--shadow-soft);
}

.favorites-drawer__close svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.favorites-drawer__close svg {
  fill: none;
}

.favorites-drawer__remove-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  line-height: 1;
}

.favorites-drawer__remove-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: currentColor;
  stroke-width: 1.9;
  transition: fill 160ms ease, stroke 160ms ease, transform 160ms ease;
}

.favorites-drawer__content {
  min-height: 0;
  overflow-y: auto;
  padding: 1rem 1.15rem 0.2rem;
}

.favorites-drawer__state {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  padding: 3rem 1rem;
  text-align: center;
}

.favorites-drawer__state strong {
  color: var(--brand-deep);
  font-size: 1.02rem;
  line-height: 1.4;
}

.favorites-drawer__state p {
  margin: 0;
  max-width: 28ch;
  color: var(--text-soft);
  line-height: 1.65;
}

.favorites-drawer__state-icon {
  display: inline-grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: rgba(255, 242, 246, 0.94);
  color: #b43458;
  font-size: 1.8rem;
  font-weight: 700;
}

.favorites-drawer__state-action {
  min-width: 180px;
}

.favorites-drawer__list {
  display: grid;
  gap: 0.85rem;
}

.favorites-drawer__item {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 0.9rem;
  align-items: center;
  padding: 0.78rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(71, 48, 38, 0.08);
  box-shadow: 0 14px 28px rgba(49, 33, 29, 0.06);
}

.favorites-drawer__item-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(246, 236, 229, 0.92), rgba(230, 214, 204, 0.88));
  border: 1px solid rgba(94, 63, 51, 0.08);
}

.favorites-drawer__item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.favorites-drawer__item-placeholder {
  display: none;
  place-items: center;
  width: 100%;
  height: 100%;
  color: rgba(121, 34, 58, 0.56);
}

.favorites-drawer__item-placeholder svg {
  width: 48%;
  height: 48%;
}

.favorites-drawer__item-media.is-missing .favorites-drawer__item-placeholder {
  display: grid;
}

.favorites-drawer__item-media.is-missing img {
  display: none;
}

.favorites-drawer__item-body {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.favorites-drawer__item-title {
  color: var(--brand-deep);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.38;
}

.favorites-drawer__item-category {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.favorites-drawer__item-price {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  align-items: center;
  color: var(--brand-deep);
}

.favorites-drawer__item-price strong {
  font-size: 0.98rem;
}

.favorites-drawer__item-price-old {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: line-through;
}

.favorites-drawer__remove {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(255, 236, 242, 0.92);
  border: 1px solid rgba(180, 52, 88, 0.18);
  color: #b43458;
  box-shadow: 0 10px 18px rgba(180, 52, 88, 0.12);
}

.favorites-drawer__remove:hover {
  background: rgba(255, 228, 236, 0.98);
}

.favorites-drawer__skeleton {
  min-height: 102px;
  border-radius: 20px;
  border: 1px solid rgba(71, 48, 38, 0.08);
  background: rgba(255, 255, 255, 0.74);
  position: relative;
  overflow: hidden;
}

.favorites-drawer__skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.68), transparent);
  animation: site-boot-shimmer 1.35s ease-in-out infinite;
}

@media (max-width: 767.98px) {
  .site-logo__title {
    flex-direction: column;
    gap: 0;
    text-align: center;
  }
}

@media (min-width: 641px) and (max-width: 767.98px) {
  .top-bar-link--whatsapp .top-bar-link__prefix {
    display: none;
  }

  .top-bar-link--whatsapp .top-bar-link__label {
    gap: 0;
  }

  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 68px;
    gap: 0.6rem;
  }

  .site-logo {
    min-width: 0;
    gap: 0.5rem;
  }

  .site-logo__mark {
    width: 66px;
    height: 66px;
    margin-block: -4px;
  }

  .site-logo__title {
    line-height: 0.9;
  }

  .site-logo__title-main,
  .site-logo__title-sub {
    font-size: 0.98rem;
    white-space: nowrap;
  }

  .site-header__search {
    max-width: none;
    min-height: 48px;
    padding: 0 0.36rem 0 0.72rem;
  }

  .site-header__search input {
    font-size: 0.86rem;
  }

  .site-header__search button {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
  }

  .site-header__search svg {
    width: 16px;
    height: 16px;
  }

  .site-header__actions {
    gap: 0.35rem;
  }

  .site-header__action {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
}

@media (max-width: 640px) {
  .site-header__topbar {
    display: none;
  }

  .site-header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.55rem;
    padding-bottom: 0.45rem;
  }

  .site-header__search {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: none;
  }

  .site-logo {
    min-width: 0;
    gap: 0.55rem;
  }

  .site-logo__mark {
    width: 58px;
    height: 58px;
    margin-block: -2px;
  }

  .site-logo__title-main,
  .site-logo__title-sub {
    font-size: 1.12rem;
    white-space: nowrap;
  }

  .site-header__actions {
    gap: var(--space-2);
  }

}

@media (max-width: 1023.98px) and (min-width: 768px) {
  .site-header__inner {
    grid-template-columns: auto minmax(0, 280px) auto;
    gap: 0.75rem;
    min-height: 68px;
  }

  .site-logo {
    gap: 0.55rem;
  }

  .site-logo__mark {
    width: 76px;
    height: 76px;
    margin-block: -4px;
  }

  .site-logo__title-main {
    font-size: 1.18rem;
  }

  .site-logo__title-sub {
    font-size: 1.18rem;
  }

  .site-header__search {
    max-width: 280px;
    min-height: 46px;
    padding: 0 0.35rem 0 0.72rem;
  }

  .site-header__search input {
    font-size: 0.88rem;
  }

  .site-header__search button {
    width: 34px;
    height: 34px;
  }

  .site-header__search svg {
    width: 16px;
    height: 16px;
  }

  .site-header__actions {
    gap: 0.32rem;
  }

  .site-header__action {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .site-header__action svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 640px) {
  .site-shell:not(.site-shell--home) .site-floating-order-tracking {
    display: none !important;
  }

  .site-shell:not(.site-shell--home) .site-floating-whatsapp {
    display: none !important;
  }

  .site-header__search {
    min-height: 48px;
    padding: 0 0.45rem 0 0.8rem;
  }

  .site-header__search input {
    font-size: 16px;
  }

  .site-header__search button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0.2rem;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--brand);
  }

  .site-header__search svg {
    width: 18px;
    height: 18px;
  }

  .top-bar-left {
    display: none;
  }

  .top-bar-link--whatsapp {
    display: none;
  }

  .site-logo__mark {
    width: 58px;
    height: 58px;
  }

  .site-header__action {
    width: 36px;
    height: 36px;
    border-radius: 12px;
  }

  .site-floating-scrolltop,
  .site-floating-order-tracking,
  .site-floating-whatsapp {
    position: fixed;
    right: max(14px, env(safe-area-inset-right));
    z-index: 45;
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 999px;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, opacity 160ms ease, visibility 160ms ease;
  }

  .site-floating-order-tracking {
    display: none;
  }

  .site-shell--home .site-floating-order-tracking {
    display: inline-flex;
  }

  .site-floating-scrolltop {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--site-floating-viewport-bottom, 0px) + 116px);
    background: rgba(255, 255, 255, 0.92);
    color: rgba(71, 48, 38, 0.82);
    border: 1px solid rgba(71, 48, 38, 0.08);
    box-shadow: 0 12px 22px rgba(71, 48, 38, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
  }

  .site-floating-scrolltop--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-floating-scrolltop svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-floating-scrolltop:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(71, 48, 38, 0.16);
  }

  .site-floating-order-tracking {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--site-floating-viewport-bottom, 0px));
    width: 54px;
    height: 54px;
    padding: 0;
    border-radius: 18px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.14rem;
    background: rgba(255, 255, 255, 0.96);
    color: var(--brand-deep);
    border: 1px solid rgba(71, 48, 38, 0.08);
    box-shadow: 0 12px 22px rgba(71, 48, 38, 0.12);
  }

  .site-floating-order-tracking:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(71, 48, 38, 0.16);
  }

  .site-floating-order-tracking svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.1;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .site-floating-order-tracking span {
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  .site-floating-whatsapp {
    bottom: calc(max(18px, env(safe-area-inset-bottom)) + var(--site-floating-viewport-bottom, 0px) + 58px);
    background: #25d366;
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(24, 122, 71, 0.24);
  }

  .site-floating-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(24, 122, 71, 0.28);
    background: #22c55e;
  }

  .site-floating-whatsapp svg {
    width: 23px;
    height: 23px;
  }
}

@media (max-width: 359px) {
  .site-logo {
    gap: 0.38rem;
  }

  .site-logo__mark {
    width: 50px;
    height: 50px;
    margin-block: 0;
  }

  .site-logo__title {
    flex-direction: row;
    gap: 0;
    text-align: left;
  }

  .site-logo__title-main {
    font-size: 1rem;
  }

  .site-logo__title-sub {
    display: none;
  }

  .site-header__search {
    min-height: 42px;
    padding: 0 0.35rem 0 0.68rem;
  }

  .site-header__search input {
    font-size: 16px;
  }

  .site-header__search button {
    width: auto;
    height: auto;
    min-width: 0;
    min-height: 0;
    padding: 0.16rem;
  }

  .site-header__search svg {
    width: 16px;
    height: 16px;
  }

  .site-header__actions {
    gap: 0.25rem;
  }

  .site-header__action {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .site-header__cart-badge,
  .site-header__favorites-badge,
  .site-header__account-badge {
    top: -8px;
    right: -8px;
    min-width: 21px;
    height: 21px;
    padding: 0 0.35rem;
    font-size: 0.65rem;
  }

  .site-header__action svg {
    width: 15px;
    height: 15px;
  }

  .favorites-drawer__panel {
    width: 100vw;
    padding: 1rem 0;
  }

  .favorites-drawer__item {
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 0.75rem;
    padding: 0.7rem;
  }

  .site-floating-scrolltop,
  .site-floating-whatsapp {
    width: 44px;
    height: 44px;
    right: max(12px, env(safe-area-inset-right));
  }

  .site-floating-scrolltop {
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--site-floating-viewport-bottom, 0px) + 104px);
  }

  .site-floating-order-tracking {
    display: none;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--site-floating-viewport-bottom, 0px));
    right: max(12px, env(safe-area-inset-right));
    width: 48px;
    height: 48px;
    border-radius: 16px;
  }

  .site-shell--home .site-floating-order-tracking {
    display: inline-flex;
  }

  .site-floating-whatsapp {
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + var(--site-floating-viewport-bottom, 0px) + 52px);
  }

  .site-floating-scrolltop svg,
  .site-floating-whatsapp svg {
    width: 21px;
    height: 21px;
  }

  .site-floating-order-tracking svg {
    width: 17px;
    height: 17px;
  }

  .site-floating-order-tracking span {
    font-size: 0.54rem;
  }
}
