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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: #1a1a1f;
  background: #e4e2f0;
  padding: 12px 12px calc(12px + env(safe-area-inset-bottom, 0));
}

.app-shell {
  max-width: 1024px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(26, 26, 31, 0.06);
  overflow: hidden;
  position: relative;
}

.feed-header__banner {
  height: 240px;
  background: #c4a574 center/cover no-repeat;
  background-image: url("https://images.unsplash.com/photo-1558961363-fa8fdf82db35?w=1000&auto=format&fit=crop&q=80");
}

.feed-header__brand {
  text-align: center;
  padding: 0 20px 20px;
  margin-top: -55px;
  position: relative;
  z-index: 1;
}

.feed-header__logo {
  width: 110px;
  height: 110px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #e8b4bc;
  border: 5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: #5c3d45;
}

.feed-header__title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.feed-header__title-row h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.feed-header__info-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f0f4;
  color: #6b6b76;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.feed-header__info-btn:hover {
  background: #e4e4ea;
  color: #1a1a1f;
}
.feed-header__info-btn:focus-visible {
  outline: 2px solid #e8b4bc;
  outline-offset: 2px;
}

.feed-header__action-btns {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-shrink: 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;
}

.feed-header__socials {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.feed-header__socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #6b6b76;
  text-decoration: none;
  line-height: 1.3;
}
.feed-header__socials a:hover {
  color: #1a1a1f;
  text-decoration: underline;
}
.feed-header__socials a:focus-visible {
  outline: 2px solid #e8b4bc;
  outline-offset: 2px;
  border-radius: 2px;
}

.feed-header__socials .bi {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.feed-header__address {
  margin: 16px 0 0;
  padding: 0 16px;
  text-align: center;
}

.feed-header__address-head {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a1a1f;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.feed-header__address-head .bi {
  font-size: 1.1rem;
  color: #6b6b76;
}

.feed-header__address-body {
  margin: 0;
  font-size: 0.85rem;
  color: #6b6b76;
  line-height: 1.4;
}

.feed-header__delivery {
  margin: 14px 0 0;
  padding: 0 16px;
  text-align: center;
}

.feed-header__delivery-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.feed-header__delivery-row:last-child {
  margin-bottom: 0;
}

.feed-header__delivery-row .bi {
  flex-shrink: 0;
  font-size: 1.1rem;
  color: #6b6b76;
}

.feed-header__delivery-row a {
  color: #1a1a1f;
  text-decoration: none;
}

.feed-header__delivery-row a:hover,
.feed-header__delivery-row a:focus-visible {
  color: #c94f6d;
  text-decoration: underline;
}

body.modal-open {
  overflow: hidden;
}

.info-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  box-sizing: border-box;
}
.info-modal[hidden] {
  display: none !important;
}

.info-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(26, 26, 31, 0.5);
  cursor: pointer;
}

.info-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  max-height: min(85vh, 620px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 20px 18px;
  box-shadow: 0 16px 48px rgba(26, 26, 31, 0.22);
}

.info-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f0f4;
  color: #1a1a1f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.info-modal__close:hover {
  background: #e4e4ea;
}
.info-modal__close:focus-visible {
  outline: 2px solid #e8b4bc;
  outline-offset: 2px;
}

.info-modal__title {
  margin: 0 28px 16px 0;
  font-size: 1.15rem;
  font-weight: 700;
  text-align: left;
}

.info-modal__body {
  text-align: left;
}

.info-modal__body .feed-header__socials {
  margin-top: 0;
  align-items: flex-start;
}

.info-modal__body .feed-header__address {
  margin-top: 16px;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

.info-modal__body .feed-header__address-head {
  justify-content: flex-start;
}

.info-modal__body .feed-header__delivery {
  margin-top: 14px;
  text-align: left;
  padding-left: 0;
  padding-right: 0;
}

.info-modal__body .feed-header__delivery-row {
  justify-content: flex-start;
}

#promo-modal .info-modal__panel,
.promo-modal__panel {
  max-width: min(100%, 440px);
  max-height: min(92vh, 720px);
}

.promo-modal__carousel {
  margin-top: 4px;
}

.promo-modal__slider {
  display: flex;
  align-items: center;
  gap: 4px;
}

.promo-modal__slider--single .promo-modal__arrow {
  display: none;
}

.promo-modal__viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f0f0f4;
}

.promo-modal__track {
  --promo-n: 1;
  --promo-i: 0;
  display: flex;
  width: calc(var(--promo-n) * 100%);
  transform: translateX(calc(-100% * var(--promo-i) / var(--promo-n)));
  transition: transform 0.35s ease;
  will-change: transform;
}

.promo-modal__slide {
  width: calc(100% / var(--promo-n));
  flex-shrink: 0;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.promo-modal__slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 520px);
  object-fit: cover;
}

.promo-modal__arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #f0f0f4;
  color: #1a1a1f;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.promo-modal__arrow:hover:not(:disabled) {
  background: #e4e4ea;
  color: #1a1a1f;
}

.promo-modal__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.promo-modal__arrow:focus-visible {
  outline: 2px solid #e8b4bc;
  outline-offset: 2px;
}

.category-carousel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 0;
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  padding: 0 12px 20px;
  box-sizing: border-box;
}
.category-carousel:not(.is-scrollable) .category-carousel__arrow {
  opacity: 0;
  pointer-events: none;
  width: 0;
  min-width: 0;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
}

.category-carousel__track {
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  touch-action: pan-x;
}
.category-carousel__track::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
  background: transparent;
}
.category-carousel__track:not(.is-scrollable) {
  overflow-x: hidden;
  display: flex;
  justify-content: center;
}

.category-carousel__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #f0f0f4;
  color: #1a1a1f;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, opacity 0.2s ease, color 0.15s ease;
}
.category-carousel__arrow--prev {
  justify-self: start;
  margin-right: 0;
}
.category-carousel__arrow--next {
  justify-self: end;
  margin-left: 0;
}
.category-carousel__arrow:hover:not(:disabled) {
  background: #e4e4ea;
}
.category-carousel__arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.category-nav {
  display: flex;
  gap: 10px;
  width: max-content;
  padding: 4px 8px;
  margin: 0;
  box-sizing: border-box;
}

.category-nav__item {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: #f0f0f4;
  cursor: pointer;
  color: #6b6b76;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.category-nav__item.is-active {
  background: #e4e4ea;
  box-shadow: inset 0 0 0 2px #e8b4bc;
  color: #1a1a1f;
}

a.category-nav__item {
  text-decoration: none;
}

.category-nav__label {
  line-height: 1.2;
}

.feed {
  padding: 0 16px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feed-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 12px 0 20px;
}

.pagination__pages {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 0 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #6b6b76;
  user-select: none;
}

.pagination__arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #f0f0f4;
  color: #1a1a1f;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.pagination__arrow:hover:not(:disabled) {
  background: #e4e4ea;
}
a.pagination__arrow:hover {
  background: #e4e4ea;
}
.pagination__arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

span.pagination__arrow.pagination__arrow--disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

a.pagination__arrow,
a.pagination__btn {
  text-decoration: none;
  box-sizing: border-box;
}

a.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pagination__btn {
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border: none;
  border-radius: 999px;
  background: #f0f0f4;
  color: #6b6b76;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.pagination__btn:hover {
  color: #1a1a1f;
  background: #e4e4ea;
}
.pagination__btn.is-active {
  background: #e4e4ea;
  box-shadow: inset 0 0 0 2px #e8b4bc;
  color: #1a1a1f;
}

.product-card {
  display: flex;
  gap: 14px;
  padding: 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(26, 26, 31, 0.08);
  position: relative;
}

.product-card__media {
  flex: 0 0 108px;
}

.product-card__img-btn {
  position: relative;
  display: block;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: 12px;
}
.product-card__img-btn:focus-visible {
  outline: 2px solid #e8b4bc;
  outline-offset: 2px;
}

.product-card__img-zoom {
  position: absolute;
  right: 4px;
  bottom: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(26, 26, 31, 0.72);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  line-height: 1;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(26, 26, 31, 0.25);
}

.product-card__img {
  width: 108px;
  height: 108px;
  border-radius: 12px;
  object-fit: cover;
  display: block;
}

.product-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 7rem;
}

.product-card__title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.product-card__desc {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: #6b6b76;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card__price-row {
  margin: 0;
  font-size: 0.78rem;
  color: #6b6b76;
}

.product-card__price-discount {
  margin: 2px 0 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: #c94f6d;
}

.product-card__cta {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-card__order-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a1a1f;
  white-space: nowrap;
}

.product-card__wa {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.15rem;
  box-shadow: 0 2px 10px rgba(37, 211, 102, 0.45);
}
.product-card__wa:hover {
  filter: brightness(1.05);
}

.product-card[data-category] {
  transition: opacity 0.2s ease;
}
.product-card[data-category].is-hidden {
  display: none;
}

@media (max-width: 639px) {
  .product-card__title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card__desc {
    display: block;
    margin: 0 0 10px;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }

  .product-card__body {
    padding-right: 0;
    padding-bottom: 48px;
  }

  .product-card__cta {
    top: auto;
    bottom: 12px;
    right: 12px;
    transform: none;
  }
}

.product-photo-modal__panel {
  max-width: min(100%, 520px);
  max-height: min(92vh, 720px);
}

.product-photo-modal__title {
  margin-bottom: 12px;
}

.product-photo-modal__body {
  line-height: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f0f0f4;
}

.product-photo-modal__body img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: contain;
}
