:root {
  --bg: #ffe9ec;
  --blush: #fff7f8;
  --blush-2: #ffe1e6;
  --coral: #ff6f6b;
  --coral-soft: #ff9a98;
  --coral-dark: #e65450;
  --graphite: #30323a;
  --ink: #17202a;
  --muted: #74656a;
  --line: rgba(255, 111, 107, 0.22);
  --white: #fffafa;
  --shadow: 0 24px 60px rgba(48, 50, 58, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
}

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

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 10%, rgba(255, 255, 255, 0.8), transparent 18rem),
    radial-gradient(circle at 82% 8%, rgba(255, 154, 152, 0.24), transparent 16rem),
    linear-gradient(180deg, var(--blush) 0%, var(--bg) 48%, var(--graphite) 100%);
  color: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 250, 0.94);
  box-shadow: 0 16px 40px rgba(48, 50, 58, 0.08);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  max-width: 1250px;
  margin: 0 auto;
  padding: 12px 20px;
  align-items: center;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.brand__mark {
  display: grid;
  width: 54px;
  height: 54px;
  overflow: hidden;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.94);
  border-radius: 999px;
  background: var(--bg);
  box-shadow: 0 12px 26px rgba(255, 111, 107, 0.24);
}

.brand__mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand strong {
  display: block;
  max-width: 300px;
  color: var(--graphite);
  font-size: 19px;
  line-height: 1.05;
}

.brand strong span,
.headline b,
.fresh b,
.product-card__price,
.product-card__foot b,
.modal__eyebrow,
.modal__price,
.modal__warning {
  color: var(--coral);
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.headline {
  justify-self: center;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cart {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 0;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font-size: 22px;
}

.cart b {
  position: absolute;
  top: 0;
  right: 0;
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
}

.search {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(48, 50, 58, 0.1);
  border-radius: 18px;
  background: #ffffff;
  color: #9a858c;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--graphite);
}

.trustbar {
  display: flex;
  justify-content: center;
  gap: 34px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 233, 236, 0.78);
}

.trustbar__item {
  border: 0;
  background: transparent;
  color: var(--graphite);
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
}

.catalog {
  max-width: 1250px;
  margin: 0 auto;
  padding: 22px 20px 150px;
}

.catalog__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.catalog__meta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog__meta strong {
  color: var(--graphite);
}

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

.fresh span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--coral);
  box-shadow: 0 0 16px rgba(255, 111, 107, 0.52);
}

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

.product-card {
  display: flex;
  min-height: 410px;
  overflow: hidden;
  position: relative;
  flex-direction: column;
  border: 1px solid rgba(255, 111, 107, 0.18);
  border-radius: 18px;
  background: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 111, 107, 0.52);
  box-shadow: 0 20px 46px rgba(255, 111, 107, 0.2);
}

.product-card__image {
  position: relative;
  min-height: 290px;
  overflow: hidden;
  background:
    linear-gradient(to top, var(--ink) 0%, rgba(23, 32, 42, 0.12) 45%, transparent 72%),
    radial-gradient(circle at 35% 25%, rgba(255, 154, 152, 0.42), transparent 34%),
    linear-gradient(135deg, #ffe9ec, #fffafa 54%, #ffd7dd);
}

.product-card__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--ink) 0%, rgba(23, 32, 42, 0.18) 45%, transparent 72%);
  pointer-events: none;
}

.product-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: rgba(48, 50, 58, 0.72);
  font-weight: 850;
  text-align: center;
}

.product-card__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--coral-soft), var(--coral));
  color: white;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(255, 111, 107, 0.28);
}

.product-card__body {
  display: flex;
  min-height: 120px;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 13px 14px;
}

.product-card h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 17px;
  line-height: 1.25;
}

.product-card__price {
  font-size: 24px;
  font-weight: 950;
}

.product-card__unit {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-card__foot {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
}

.bottom-cta {
  position: fixed;
  right: 50%;
  bottom: 0;
  z-index: 30;
  width: min(1270px, calc(100% - 36px));
  transform: translateX(50%);
  border-radius: 18px 18px 0 0;
  background: rgba(255, 250, 250, 0.92);
  box-shadow: 0 -18px 48px rgba(255, 111, 107, 0.3);
  backdrop-filter: blur(14px);
}

.bottom-cta__button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-radius: 18px 18px 0 0;
  background: linear-gradient(180deg, var(--coral-soft), var(--coral));
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.bottom-cta__benefits {
  display: flex;
  min-height: 34px;
  justify-content: center;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.bottom-cta__benefits span::before {
  content: ".";
  display: inline-grid;
  width: 8px;
  height: 8px;
  margin-right: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--coral);
  vertical-align: middle;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px;
}

.modal.is-open {
  display: grid;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(48, 50, 58, 0.66);
  backdrop-filter: blur(7px);
}

.modal__card {
  position: relative;
  width: min(410px, 100%);
  padding: 44px 24px 26px;
  border: 1px solid rgba(255, 111, 107, 0.55);
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 0%, rgba(255, 111, 107, 0.24), transparent 43%),
    linear-gradient(145deg, rgba(31, 33, 38, 0.98), rgba(17, 20, 27, 0.98));
  box-shadow: 0 0 90px rgba(255, 111, 107, 0.34), 0 28px 90px rgba(0, 0, 0, 0.42);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #aeb5c2;
  cursor: pointer;
  font-size: 26px;
}

.modal__eyebrow {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 111, 107, 0.58);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.modal h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 25px;
  line-height: 1.18;
}

.modal__price {
  display: block;
}

.modal p {
  margin: 10px 0 18px;
  color: #a2aaba;
  font-size: 14px;
}

.modal__warning {
  margin: 0 0 20px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 111, 107, 0.35);
  border-radius: 11px;
  background: rgba(255, 111, 107, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.modal__checkout {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--coral-soft), var(--coral));
  color: #fff;
  cursor: pointer;
  font-weight: 950;
}

.modal small {
  display: block;
  margin-top: 18px;
  color: #87909f;
}

.social-proof {
  position: fixed;
  left: max(20px, calc((100% - 1250px) / 2));
  bottom: 108px;
  z-index: 40;
  display: flex;
  width: min(430px, calc(100% - 40px));
  gap: 14px;
  align-items: center;
  padding: 14px 20px;
  border: 1px solid rgba(255, 111, 107, 0.45);
  border-radius: 16px;
  background: rgba(255, 250, 250, 0.97);
  color: var(--graphite);
  box-shadow: 0 18px 38px rgba(48, 50, 58, 0.22);
  animation: proofIn 0.36s ease both;
}

.social-proof[hidden] {
  display: none;
}

.social-proof__icon {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 111, 107, 0.16);
  color: var(--coral);
  font-weight: 950;
}

.social-proof strong,
.social-proof small {
  display: block;
}

.social-proof small {
  color: var(--muted);
}

@keyframes proofIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 820px) {
  body {
    background:
      radial-gradient(circle at 20% 4%, rgba(255, 255, 255, 0.86), transparent 12rem),
      linear-gradient(180deg, var(--blush) 0%, var(--bg) 52%, #f7d4da 100%);
  }

  .topbar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 10px;
    width: 100%;
    max-width: 100vw;
    padding: 8px 14px 10px;
  }

  .brand {
    min-width: 0;
    gap: 8px;
  }

  .brand__mark {
    width: 38px;
    height: 38px;
    border-width: 3px;
    box-shadow: 0 8px 18px rgba(255, 111, 107, 0.18);
  }

  .brand strong {
    max-width: 220px;
    font-size: 15px;
    line-height: 1.04;
  }

  .brand small {
    font-size: 9px;
    letter-spacing: 0;
  }

  .cart {
    grid-column: 2;
    grid-row: 1;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .cart b {
    width: 17px;
    height: 17px;
    font-size: 10px;
  }

  .headline {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: start;
    max-width: 100%;
    overflow: hidden;
    color: #786c72;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 11px;
  }

  .search {
    grid-column: 1 / -1;
    grid-row: 3;
    height: 40px;
    gap: 8px;
    padding: 0 12px;
    border-radius: 13px;
    font-size: 15px;
  }

  .trustbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: initial;
    gap: 6px;
    padding: 9px 14px;
  }

  .trustbar__item {
    max-width: none;
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.12;
    text-align: left;
    overflow-wrap: anywhere;
  }

  .catalog {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 16px 14px 108px;
  }

  .catalog__meta {
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .catalog__meta p {
    font-size: 12px;
    line-height: 1.18;
  }

  .catalog__meta p:first-child {
    max-width: 44%;
  }

  .fresh {
    max-width: 52%;
    justify-content: flex-end;
    text-align: right;
    gap: 6px;
  }

  .fresh b {
    font-size: 12px;
  }

  .fresh span {
    width: 7px;
    height: 7px;
  }

  .product-grid {
    grid-template-columns: repeat(2, calc((100vw - 38px) / 2));
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    gap: 10px;
    justify-content: center;
  }

  .product-card {
    min-width: 0;
    min-height: 252px;
    border-radius: 11px;
  }

  .product-card__image {
    min-height: 154px;
  }

  .product-card__badge {
    top: 8px;
    left: 8px;
    padding: 4px 9px;
    font-size: 10px;
  }

  .product-card__body {
    min-width: 0;
    min-height: 98px;
    padding: 9px 9px 8px;
  }

  .product-card h2 {
    overflow-wrap: anywhere;
    display: -webkit-box;
    margin-bottom: 5px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 13px;
    line-height: 1.15;
  }

  .product-card__price {
    font-size: 20px;
  }

  .product-card__unit,
  .product-card__foot {
    font-size: 10px;
  }

  .product-card__foot {
    gap: 4px;
    margin-top: 7px;
    flex-wrap: wrap;
  }

  .bottom-cta {
    width: calc(100% - 28px);
    max-width: calc(100vw - 28px);
    border-radius: 14px 14px 0 0;
  }

  .bottom-cta__button {
    min-height: 48px;
    padding: 0 10px;
    border-radius: 14px 14px 0 0;
    font-size: 13px;
    line-height: 1.12;
    text-align: center;
  }

  .bottom-cta__button b {
    white-space: normal;
  }

  .bottom-cta__benefits {
    min-height: 32px;
    gap: 8px;
    padding: 0 8px;
    font-size: 10.5px;
  }

  .bottom-cta__benefits span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .modal {
    align-items: center;
    padding: 14px;
  }

  .modal__card {
    width: min(330px, 100%);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 30px 18px 18px;
    border-radius: 20px;
  }

  .modal__close {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 25px;
  }

  .modal__eyebrow {
    margin-bottom: 12px;
    padding: 5px 12px;
    font-size: 11px;
  }

  .modal h1 {
    font-size: 23px;
    line-height: 1.14;
  }

  .modal__price {
    font-size: 14px;
  }

  .modal p {
    margin: 7px 0 12px;
    font-size: 13px;
  }

  .modal__warning {
    margin-bottom: 13px;
    padding: 10px;
    font-size: 12px;
  }

  .modal__checkout {
    min-height: 48px;
    font-size: 14px;
  }

  .modal small {
    margin-top: 12px;
    font-size: 11px;
  }

  .social-proof {
    bottom: 88px;
    left: 14px;
    width: min(320px, calc(100% - 28px));
    gap: 9px;
    padding: 9px 10px;
    border-radius: 12px;
    font-size: 13px;
  }

  .social-proof__icon {
    width: 32px;
    height: 32px;
  }
}

@media (max-width: 380px) {
  .topbar__inner {
    padding-inline: 11px;
  }

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

  .catalog {
    padding-inline: 11px;
  }

  .product-grid {
    grid-template-columns: repeat(2, calc((100vw - 31px) / 2));
    gap: 9px;
  }

  .product-card {
    min-height: 240px;
  }

  .product-card__image {
    min-height: 146px;
  }

  .product-card h2 {
    font-size: 12.5px;
  }

  .product-card__price {
    font-size: 19px;
  }

  .bottom-cta__button {
    min-height: 46px;
    font-size: 13px;
  }

  .bottom-cta__benefits {
    font-size: 10px;
  }
}
