:root {
  --ink: #101820;
  --muted: #637083;
  --line: #e5edf5;
  --paper: #ffffff;
  --soft: #f4f8fb;
  --aqua: #00a7a5;
  --aqua-dark: #007a7a;
  --blue: #2867d8;
  --mint: #dff8f4;
  --gold: #d59b2d;
  --danger: #d94a4a;
  --shadow: 0 24px 70px rgba(16, 24, 32, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top left, rgba(0, 167, 165, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7fbfd 0%, #eef5f8 48%, #ffffff 100%);
  color: var(--ink);
}

body.modal-open {
  overflow: hidden;
}

.telegram-webapp body {
  background:
    radial-gradient(circle at top left, rgba(0, 167, 165, 0.16), transparent 34rem),
    linear-gradient(180deg, #f7fbfd 0%, #eef5f8 48%, #ffffff 100%);
  color: var(--ink);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto 60px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto auto minmax(190px, 240px) minmax(420px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  margin: 12px 0 22px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  border-radius: 24px;
  box-shadow: 0 16px 50px rgba(39, 83, 113, 0.11);
}

.mobile-controls {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  color: white;
  font-weight: 900;
  letter-spacing: 0;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  box-shadow: 0 12px 30px rgba(0, 167, 165, 0.3);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  margin-top: 2px;
}

.search-wrap input,
.city-select,
.sort-select,
.modal input,
.chat-form input,
.chat-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
  outline: none;
  padding: 14px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input:focus,
.city-select:focus,
.sort-select:focus,
.modal input:focus,
.chat-form input:focus,
.chat-form textarea:focus {
  border-color: rgba(0, 167, 165, 0.55);
  box-shadow: 0 0 0 4px rgba(0, 167, 165, 0.12);
}

.city-select {
  min-width: 190px;
}

.icon-btn,
.cart-button {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
  color: var(--ink);
}

.icon-btn svg,
.cart-button svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-btn {
  display: none;
}

.menu-btn span {
  width: 18px;
  height: 2px;
  background: currentColor;
}

.cart-button {
  position: relative;
  background: var(--ink);
  color: white;
}

.cart-button span {
  position: absolute;
  top: -6px;
  right: -6px;
  display: grid;
  min-width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.hero {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  padding: 44px 0 28px;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  box-shadow: 0 18px 44px rgba(37, 67, 93, 0.14);
  transform: translateY(-50%);
  backdrop-filter: blur(14px);
}

.hero-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-prev {
  left: -18px;
}

.hero-next {
  right: -18px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--aqua-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: 12px;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
}

h3 {
  font-size: 24px;
}

.hero-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary-btn,
.ghost-btn,
.load-more {
  border: 0;
  border-radius: 16px;
  padding: 14px 20px;
  font-weight: 800;
}

.primary-btn {
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  color: white;
  box-shadow: 0 14px 34px rgba(0, 167, 165, 0.26);
}

.ghost-btn,
.load-more {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.ghost-btn.small {
  padding: 12px 16px;
}

.hero-stage {
  position: relative;
  min-height: clamp(580px, 72vh, 760px);
  overflow: hidden;
  border-radius: 38px;
  touch-action: pan-y;
}

.hero-product {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 38px;
  background: white;
  box-shadow: var(--shadow);
  will-change: transform, opacity;
}

.hero-product.is-current {
  transform: translateX(0);
}

.hero-product.slide-next,
.hero-product.enter-right {
  animation: heroEnterRight 1s cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.hero-product.slide-prev,
.hero-product.enter-left {
  animation: heroEnterLeft 1s cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.hero-product.exit-left {
  animation: heroExitLeft 1s cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.hero-product.exit-right {
  animation: heroExitRight 1s cubic-bezier(0.22, 0.72, 0.18, 1) both;
}

.hero-product img {
  width: 100%;
  height: 100%;
  min-height: 580px;
  object-fit: contain;
  background: var(--soft);
}

.hero-product .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 5vw, 64px);
  background:
    linear-gradient(135deg, rgba(223, 248, 244, 0.72), rgba(255, 255, 255, 0.94)),
    white;
}

.hero-product h3 {
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 1.18;
}

.hero-product p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-product .price-row {
  margin-top: 26px;
}

.hero-product::after {
  content: "Top mahsulot";
  position: absolute;
  left: 28px;
  top: 28px;
  border-radius: 999px;
  background: rgba(16, 24, 32, 0.86);
  color: white;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 900;
}

@keyframes heroEnterRight {
  from {
    opacity: 1;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroEnterLeft {
  from {
    opacity: 1;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes heroExitLeft {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(-100%);
  }
}

@keyframes heroExitRight {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 1;
    transform: translateX(100%);
  }
}

.price-row,
.card-bottom,
.total-row,
.cart-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.price {
  font-size: 26px;
  font-weight: 900;
}

.stock-pill {
  border-radius: 999px;
  background: var(--mint);
  color: var(--aqua-dark);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0 0 52px;
}

.trust-strip div {
  padding: 18px;
  border: 1px solid rgba(0, 167, 165, 0.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(223,248,244,0.68));
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  font-size: 22px;
}

.trust-strip span {
  margin-top: 4px;
  color: var(--muted);
}

.section-head,
.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin: 34px 0 18px;
}

.carousel-controls {
  display: flex;
  gap: 10px;
}

.top-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(300px, 360px);
  gap: 16px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scroll-snap-type: x mandatory;
}

.top-card {
  scroll-snap-align: start;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 18px 44px rgba(37, 67, 93, 0.1);
}

.top-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  background: var(--soft);
}

.top-card .content {
  display: flex;
  min-height: 180px;
  flex-direction: column;
  padding: 18px;
}

.top-card .card-bottom {
  align-items: stretch;
  flex-direction: column;
  margin-top: auto;
}

.top-card .add-btn {
  width: 100%;
}

.top-card p,
.product-card p {
  color: var(--muted);
  line-height: 1.45;
}

.store-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 22px;
  align-items: start;
}

.filters {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.88);
  padding: 18px;
}

.filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.close-filter {
  display: none;
}

.groups-list {
  display: grid;
  gap: 8px;
}

.group-chip {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  padding: 12px;
  text-align: left;
  color: var(--ink);
}

.group-chip.active,
.group-chip:hover {
  border-color: rgba(0, 167, 165, 0.28);
  background: var(--mint);
}

.group-chip span {
  color: var(--muted);
}

.catalog {
  min-width: 0;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  background: white;
  box-shadow: 0 14px 40px rgba(37, 67, 93, 0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 54px rgba(37, 67, 93, 0.14);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1.18;
  object-fit: cover;
  background: var(--soft);
}

.product-card .content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}

.product-card h3 {
  display: -webkit-box;
  min-height: 58px;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  font-size: 19px;
  line-height: 1.25;
}

.product-card .group-name {
  margin: 0 0 10px;
  color: var(--aqua-dark);
  font-size: 13px;
  font-weight: 800;
}

.product-card p {
  min-height: 62px;
  margin: 10px 0 16px;
}

.card-bottom {
  margin-top: auto;
}

.add-btn {
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  padding: 12px 14px;
  font-weight: 900;
}

.load-more {
  display: block;
  width: 100%;
  margin: 24px 0 0;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100vh;
  background: white;
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: transform 0.26s ease;
}

.cart-drawer.open {
  transform: translateX(0);
}

.drawer-head {
  display: flex;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 14px 22px;
}

.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item img {
  width: 72px;
  height: 72px;
  border-radius: 16px;
  object-fit: cover;
  background: var(--soft);
}

.cart-item strong {
  display: block;
  line-height: 1.25;
}

.qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: white;
}

.checkout-box {
  padding: 22px;
  border-top: 1px solid var(--line);
  background: #f9fcfd;
}

.full {
  width: 100%;
  margin-top: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(16, 24, 32, 0.48);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(560px, 100%);
  border-radius: 28px;
  background: white;
  padding: 28px;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.notice {
  min-height: 22px;
  margin-top: 14px;
  color: var(--aqua-dark);
  font-weight: 700;
}

.notice.error {
  color: var(--danger);
}

.hidden-field {
  display: none !important;
}

.bot-link {
  display: none;
  margin-top: 12px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--aqua-dark);
  padding: 13px 16px;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.bot-link.show {
  display: block;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 80;
  display: none;
  transform: translateX(-50%);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  box-shadow: var(--shadow);
}

.toast.show {
  display: block;
}

.reviews-section,
.info-section {
  margin-top: 72px;
}

.section-head.compact {
  margin-bottom: 18px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.review-grid article,
.about-panel,
.tips-panel,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 40px rgba(37, 67, 93, 0.08);
}

.review-grid article {
  padding: 22px;
}

.review-grid strong {
  display: block;
  font-size: 20px;
}

.review-grid p,
.about-panel p,
.contact-panel p,
.tips-panel li {
  color: var(--muted);
  line-height: 1.65;
}

.review-grid span {
  color: var(--aqua-dark);
  font-weight: 900;
}

.info-section {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 16px;
  margin-bottom: 70px;
}

.about-panel,
.tips-panel,
.contact-panel {
  padding: 24px;
}

.tips-panel ul {
  padding-left: 20px;
  margin: 0;
}

.primary-link {
  display: inline-block;
  margin-top: 10px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  color: white;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
}

.chat-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 0;
  background: linear-gradient(135deg, var(--aqua), var(--blue));
  color: white;
  padding: 14px 18px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(0, 167, 165, 0.28);
}

.chat-float svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 88px;
  z-index: 69;
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100% - 32px));
  max-height: min(650px, calc(100vh - 120px));
  border: 1px solid var(--line);
  border-radius: 28px;
  background: white;
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: translateY(16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.chat-panel.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.chat-body {
  display: grid;
  gap: 10px;
  padding: 18px;
  overflow: auto;
  background: #f6fbfc;
}

.chat-bubble {
  max-width: 88%;
  border-radius: 18px;
  padding: 12px 14px;
  line-height: 1.45;
}

.chat-bubble.bot {
  background: white;
  color: var(--ink);
}

.chat-bubble.user {
  justify-self: end;
  background: var(--ink);
  color: white;
}

.chat-form {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--line);
}

.chat-form textarea {
  min-height: 92px;
  resize: vertical;
}

.skeleton {
  background: linear-gradient(90deg, #edf4f6, #ffffff, #edf4f6);
  background-size: 220% 100%;
  animation: shimmer 1.3s infinite;
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@media (max-width: 1100px) {
  .topbar {
    grid-template-columns: auto minmax(180px, 1fr) auto auto;
  }

  .menu-btn {
    display: inline-grid;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .search-wrap {
    grid-column: 1 / -1;
    order: 2;
  }

  .city-select {
    grid-column: 1 / -1;
    order: 1;
  }

  .hero-stage {
    min-height: 560px;
  }

  .hero-product {
    grid-template-columns: 1fr;
  }

  .hero-product img {
    min-height: 300px;
    height: 340px;
  }

  .store-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 45;
    width: min(340px, 92%);
    overflow: auto;
    border-radius: 0 24px 24px 0;
    transform: translateX(-105%);
    transition: transform 0.25s;
  }

  .filters.open {
    transform: translateX(0);
  }

  .close-filter {
    display: inline-grid;
  }

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

  .review-grid,
  .info-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 18px, 1440px);
    margin-bottom: 34px;
    padding-top: 70px;
  }

  .topbar {
    position: fixed;
    top: 6px;
    left: 9px;
    right: 9px;
    z-index: 90;
    width: auto;
    gap: 8px;
    padding: 8px;
    border-radius: 18px;
    grid-template-columns: auto 1fr auto auto;
  }

  .topbar > .city-select,
  .topbar > .search-wrap {
    display: none;
  }

  .mobile-controls {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 8px;
    margin: 4px 0 16px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 12px 34px rgba(39, 83, 113, 0.1);
    backdrop-filter: blur(18px);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    font-size: 14px;
  }

  .brand strong {
    font-size: 14px;
  }

  .icon-btn,
  .cart-button {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .cart-button span {
    top: -7px;
    right: -5px;
  }

  .search-wrap input,
  .city-select {
    min-height: 42px;
    border-radius: 14px;
    padding: 11px 12px;
  }

  .auth-btn {
    display: inline-grid;
  }

  .hero {
    min-height: auto;
    padding: 18px 0 14px;
  }

  h1 {
    font-size: 42px;
  }

  .hero-stage {
    min-height: 420px;
    border-radius: 24px;
  }

  .hero-arrow {
    width: 42px;
    height: 42px;
  }

  .hero-prev {
    left: 8px;
  }

  .hero-next {
    right: 8px;
  }

  .hero-product {
    width: 100%;
    min-height: 410px;
    border-radius: 24px;
  }

  .hero-product img {
    height: 238px;
    min-height: 238px;
  }

  .hero-product .content {
    padding: 20px;
  }

  .hero-product h3 {
    font-size: 28px;
    line-height: 1.12;
  }

  .hero-product p {
    font-size: 14px;
    line-height: 1.45;
  }

  .hero-product::after {
    left: 16px;
    top: 16px;
    padding: 8px 11px;
    font-size: 11px;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
  }

  .section-head,
  .catalog-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    min-height: 0;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(37, 67, 93, 0.08);
  }

  .product-card:hover {
    transform: none;
  }

  .product-card img {
    aspect-ratio: 1;
    object-fit: cover;
  }

  .product-card .content {
    padding: 7px;
  }

  .product-card .group-name,
  .product-card p {
    display: none;
  }

  .product-card h3 {
    min-height: 28px;
    font-size: 10.5px;
    line-height: 1.25;
    -webkit-line-clamp: 2;
  }

  .product-card .card-bottom {
    gap: 5px;
    align-items: center;
    margin-top: 7px;
  }

  .product-card .price {
    display: block;
    max-width: 100%;
    font-size: 10px;
    line-height: 1.15;
  }

  .product-card .add-btn {
    display: grid;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 9px;
    padding: 0;
    font-size: 17px;
    line-height: 1;
  }

  .top-rail {
    grid-auto-columns: minmax(220px, 78vw);
  }

  .top-card {
    min-height: 330px;
    border-radius: 20px;
  }

  .top-card img {
    height: 170px;
  }

  .top-card .content {
    min-height: 160px;
    padding: 14px;
  }

  .top-card h3 {
    font-size: 18px;
  }

  .top-card .price {
    font-size: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    max-height: calc(100vh - 150px);
    overflow: auto;
    border-radius: 22px;
    padding: 18px;
  }

  .modal {
    align-items: start;
    padding: 88px 14px 16px;
  }

  .modal .eyebrow {
    margin-bottom: 6px;
    font-size: 11px;
  }

  .modal-card h3 {
    font-size: 22px;
  }

  .modal-card .muted {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.45;
  }

  .modal .form-grid {
    gap: 9px;
    margin-top: 12px;
  }

  .modal input,
  .modal button,
  .bot-link {
    min-height: 48px;
    border-radius: 15px;
    padding: 11px 14px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }

  .chat-float {
    right: 14px;
    bottom: 14px;
    padding: 13px;
  }

  .chat-panel {
    right: 10px;
    bottom: 76px;
    width: calc(100% - 20px);
  }

  .chat-float span {
    display: none;
  }
}
