/*
 * Bellstore design patch v2
 * Append-only overrides for the locked production bundle.
 * Do not rebuild catalog/src: see catalog/DO_NOT_REBUILD.md.
 */

:root {
  --design-page-max: 1360px;
  --design-section-gap: 18px;
  --design-card-radius: 22px;
}

/* Header: clearer hierarchy without changing navigation/auth behavior. */
.header-wrap {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

.header-logo {
  height: 46px;
}

.header-tagline {
  max-width: 190px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(60, 60, 67, 0.72);
}

.header-nav-item,
.header-nav-segment-item,
.header-login-btn {
  min-height: 38px;
}

.spotlight-search__field {
  min-height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: rgba(248, 248, 250, 0.94);
}

.spotlight-search__input {
  font-size: 14px;
}

/* Homepage rhythm and calmer background. */
.page-home {
  gap: var(--design-section-gap);
}

.page-home .home-category-widget,
.page-home .store-highlights,
.page-home .home-actions-hub,
.page-home .store-home-group {
  border-radius: var(--design-card-radius);
}

.home-category-widget {
  min-height: 286px;
  border: 1px solid rgba(255, 255, 255, 0.34);
}

.home-category-widget__head {
  padding-bottom: 14px;
}

.home-category-widget__eyebrow {
  letter-spacing: 0.08em;
}

.home-category-widget__title {
  font-size: clamp(20px, 2vw, 27px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.home-category-widget__subtitle {
  max-width: 260px;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.82);
}

.home-category-widget__cta {
  min-height: 36px;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.34);
}

.home-category-widget__cta:hover {
  background: rgba(255, 255, 255, 0.24);
}

/* Product rails: aligned content and an explicit scroll affordance. */
.home-category-widget__track-wrap {
  padding-bottom: 3px;
}

.home-category-widget__track {
  align-items: stretch;
  padding-bottom: 9px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.48) rgba(255, 255, 255, 0.12);
}

.home-category-widget__track::-webkit-scrollbar {
  height: 5px;
}

.home-category-widget__track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.home-category-widget__track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 999px;
}

.home-widget-card {
  align-self: stretch;
  min-height: 208px;
  border: 1px solid rgba(0, 0, 0, 0.055);
  background: rgba(255, 255, 255, 0.94);
}

.home-widget-card__tap {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.home-widget-card__media {
  flex: 0 0 auto;
}

.home-widget-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 11px 12px 13px;
}

.home-widget-card__name {
  min-height: 32px;
  font-size: 13px;
  line-height: 1.25;
}

.home-widget-card__price {
  margin-top: auto;
  padding-top: 7px;
  font-size: 16px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.home-widget-card__monthly {
  margin-top: 4px;
  font-size: 10.5px;
  color: rgba(0, 75, 190, 0.76);
}

/* Main store/benefits hero. First API item is treated as the sales headline. */
.store-highlights {
  border-color: rgba(0, 0, 0, 0.055);
}

.store-highlights__body {
  justify-content: center;
  padding: 24px;
}

.store-highlights__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin-bottom: 22px;
}

.store-highlights__item {
  min-width: 0;
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(0, 88, 230, 0.055);
}

.store-highlights__item:first-child {
  grid-column: 1 / -1;
  padding: 0 0 7px;
  background: transparent;
}

.store-highlights__item:first-child .store-highlights__bullet {
  display: none;
}

.store-highlights__item:first-child .store-highlights__text {
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text);
}

.store-highlights__bullet {
  width: 7px;
  height: 7px;
  margin-top: 6px;
  background: var(--accent);
}

.store-highlights__text {
  font-size: 14px;
  line-height: 1.35;
  color: rgba(29, 29, 31, 0.82);
}

.store-highlights__cta {
  min-height: 46px;
  padding-inline: 24px;
  font-size: 15px;
  font-weight: 650;
}

/* Trust and discovery blocks. */
.our-stores-section__head,
.home-section-head {
  padding-inline: 2px;
}

.home-section-title,
.our-stores-section__head h2 {
  letter-spacing: -0.025em;
}

.store-home-row {
  min-height: 66px;
}

.store-home-row__rating,
.star-rating__value {
  font-weight: 650;
}

.home-actions-hub {
  padding: 12px;
  border-color: rgba(0, 0, 0, 0.055);
  background: rgba(255, 255, 255, 0.82);
}

.home-action-tile {
  min-height: 76px;
}

.home-action-tile__label {
  margin-top: 7px;
  font-weight: 650;
}

/* Catalog cards inherit the stronger price hierarchy. */
.product-card-name {
  font-size: 14px;
  line-height: 1.3;
}

.product-card-price {
  font-size: 16px;
  font-weight: 700;
}

.product-card-installment {
  color: rgba(60, 60, 67, 0.68);
}

/* Desktop composition. */
@media (min-width: 1024px) {
  html.is-desktop-layout {
    --page-padding: 32px;
    --header-height: 112px;
  }

  html.is-desktop-layout .header-wrap--desktop {
    padding-top: 12px;
    padding-bottom: 14px;
  }

  html.is-desktop-layout .header-inner--desktop {
    max-width: var(--design-page-max);
    gap: 12px;
  }

  html.is-desktop-layout .header-logo {
    height: 54px;
  }

  html.is-desktop-layout .header-tagline {
    max-width: 230px;
    font-size: 12px;
  }

  html.is-desktop-layout .header-desktop-top,
  html.is-desktop-layout .header-desktop-bar {
    gap: 28px;
  }

  html.is-desktop-layout .header-nav-segment-item {
    padding: 9px 17px;
    font-size: 13.5px;
  }

  html.is-desktop-layout .spotlight-search--header {
    max-width: 460px;
  }

  html.is-desktop-layout .page-home {
    max-width: var(--design-page-max);
    gap: 22px;
    padding-top: 14px;
  }

  html.is-desktop-layout .home-widgets-section--grid {
    gap: 18px;
  }

  html.is-desktop-layout .home-category-widget {
    min-height: 308px;
  }

  html.is-desktop-layout .home-widget-card {
    flex-basis: min(176px, 44%);
    min-height: 216px;
    transition: transform 0.18s ease, border-color 0.18s ease;
  }

  html.is-desktop-layout .home-widget-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0, 88, 230, 0.18);
  }

  html.is-desktop-layout .page-home .store-highlights--banner {
    grid-template-columns: minmax(0, 1.12fr) minmax(420px, 0.88fr);
    min-height: 340px;
  }

  html.is-desktop-layout .store-highlights__image {
    object-position: center 30%;
  }

  html.is-desktop-layout .store-highlights__body {
    padding: 34px 38px;
  }

  html.is-desktop-layout .store-highlights__cta {
    align-self: flex-start;
    width: auto;
  }

  html.is-desktop-layout .home-actions-hub {
    padding: 16px;
  }
}

/* Mobile and Mini Apps: same visual language, touch-safe dimensions. */
@media (max-width: 767px) {
  :root {
    --design-section-gap: 14px;
    --design-card-radius: 20px;
  }

  .header-wrap {
    padding-top: 7px;
    padding-bottom: 7px;
  }

  .header-logo {
    height: 42px;
  }

  .header-tagline {
    max-width: 128px;
    font-size: 10px;
  }

  .page-home {
    padding-top: 6px;
  }

  .home-category-widget {
    min-height: 270px;
  }

  .home-category-widget__title {
    font-size: 20px;
  }

  .home-widget-card {
    min-height: 198px;
  }

  .store-highlights__body {
    padding: 20px 16px 18px;
  }

  .store-highlights__list {
    grid-template-columns: 1fr;
    gap: 7px;
    margin-bottom: 16px;
  }

  .store-highlights__item:first-child {
    grid-column: auto;
  }

  .store-highlights__item:first-child .store-highlights__text {
    font-size: 24px;
  }

  .store-highlights__item {
    padding: 8px 10px;
  }

  .store-highlights__cta {
    width: 100%;
  }

  .bottom-nav--ios {
    border-color: rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.92);
  }
}

/* Platform safe areas; no interaction or route changes. */
html.in-telegram .header-wrap {
  padding-top: max(7px, env(safe-area-inset-top));
}

html.in-telegram .bottom-nav {
  padding-bottom: max(6px, env(safe-area-inset-bottom));
}

html.in-vk .header-wrap {
  padding-top: calc(7px + var(--vk-safe-top, 0px));
}

/* Keep focus visible for keyboard and accessibility. */
.header-brand-btn:focus-visible,
.header-nav-item:focus-visible,
.header-nav-segment-item:focus-visible,
.home-category-widget__cta:focus-visible,
.home-widget-card__tap:focus-visible,
.store-highlights__cta:focus-visible,
.home-action-tile:focus-visible {
  outline: 3px solid rgba(0, 88, 230, 0.28);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html.is-desktop-layout .home-widget-card {
    transition: none;
  }
}
