* {
  box-sizing: border-box;
}

:root {
  --bg: #edf6ff;
  --surface: rgba(255,255,255,.74);
  --surface-solid: #ffffff;
  --line: rgba(67,130,215,.17);
  --text: #0c1b3d;
  --muted: #63718f;
  --blue: #1f78ff;
  --blue-2: #3158f5;
  --shadow: 0 18px 55px rgba(42,95,160,.15);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;

  background:
    linear-gradient(
      180deg,
      #e8f4ff 0%,
      #f5faff 46%,
      #eaf5ff 100%
    );

  color: var(--text);

  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;

  min-height: 72px;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;

  padding: 13px 26px;

  background: rgba(248,252,255,.90);
  border-bottom: 1px solid var(--line);

  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;

  font-size: 25px;
  letter-spacing: .01em;
}

.brand-logo {
  width: 38px;
  height: 38px;

  position: relative;

  border-radius: 12px;

  background:
    linear-gradient(
      135deg,
      #9ed8ff 0%,
      #2d7eff 45%,
      #6558ff 100%
    );

  transform: rotate(45deg);

  box-shadow:
    0 9px 24px rgba(50,109,255,.28);
}

.brand-logo span {
  position: absolute;
  inset: 10px;

  border-radius: 6px;

  background: rgba(255,255,255,.7);
}

.top-nav {
  justify-self: center;

  display: flex;
  gap: 5px;

  padding: 4px;

  border: 1px solid var(--line);
  border-radius: 16px;

  background: rgba(255,255,255,.58);
}

.nav-link,
.category-button {
  border: 0;

  color: #304466;
  background: transparent;

  border-radius: 12px;

  transition: .18s ease;
}

.nav-link {
  padding: 10px 17px;
}

.nav-link.active {
  color: #0647dc;

  background:
    linear-gradient(
      135deg,
      #e8f3ff,
      #dbeaff
    );

  box-shadow:
    inset 0 0 0 1px rgba(62,123,255,.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-box {
  width: 260px;
  height: 44px;

  display: flex;
  align-items: center;
  gap: 9px;

  padding: 0 14px;

  border: 1px solid var(--line);
  border-radius: 15px;

  background: rgba(255,255,255,.62);
}

.search-box input {
  width: 100%;

  border: 0;
  outline: 0;

  background: transparent;
  color: var(--text);
}

.cart-button {
  height: 44px;

  display: flex;
  align-items: center;
  gap: 8px;

  padding: 0 13px;

  border: 1px solid var(--line);
  border-radius: 15px;

  color: var(--text);
  background: rgba(255,255,255,.74);

  font-weight: 700;
}

.cart-count {
  min-width: 24px;
  height: 24px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: #fff;
  background: var(--blue);
}

main {
  width: min(1560px, calc(100% - 32px));

  margin: 18px auto 30px;
}

.hero {
  min-height: 510px;

  display: grid;
  grid-template-columns: .94fr 1.06fr;

  overflow: hidden;

  position: relative;

  border: 1px solid rgba(73,141,223,.16);
  border-radius: 28px;

  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,.96) 0%,
      rgba(244,250,255,.75) 44%,
      rgba(221,240,255,.58) 100%
    );

  box-shadow: var(--shadow);
}

.hero-copy {
  position: relative;
  z-index: 2;

  padding: 58px 28px 48px 54px;
}

.eyebrow {
  margin-bottom: 15px;

  color: #3977e7;

  font-size: 13px;
  font-weight: 800;

  letter-spacing: .28em;
}

.hero h1 {
  margin: 0;

  max-width: 600px;

  font-size: clamp(54px, 5vw, 78px);
  line-height: .98;

  letter-spacing: -.05em;
}

.hero-copy > p {
  max-width: 620px;

  margin: 23px 0 28px;

  color: #506789;

  font-size: 21px;
  line-height: 1.44;
}

.hero-button {
  min-width: 255px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 23px;

  padding: 16px 24px;

  border: 0;
  border-radius: 18px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #288cff,
      #2e5df4
    );

  box-shadow:
    0 14px 28px rgba(37,112,245,.25);

  font-weight: 800;
  font-size: 18px;
}

.hero-benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 35px;

  margin-top: 38px;
}

.hero-benefit {
  display: flex;
  align-items: center;
  gap: 12px;

  color: #355178;

  font-size: 14px;
  line-height: 1.25;
}

.benefit-icon {
  width: 45px;
  height: 45px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: rgba(255,255,255,.75);
  border: 1px solid var(--line);

  color: var(--blue);

  font-size: 22px;
}

.hero-art {
  min-width: 0;

  position: relative;
  overflow: hidden;
}

.hero-art > img {
  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center right;

  display: block;
}

.hero-art::before {
  content: "";

  position: absolute;
  inset: 0;

  z-index: 1;

  background:
    linear-gradient(
      90deg,
      rgba(245,250,255,.95) 0%,
      rgba(245,250,255,.18) 22%,
      rgba(245,250,255,0) 50%
    );

  pointer-events: none;
}

.hero-badge {
  position: absolute;
  z-index: 3;

  top: 26px;
  right: 26px;

  display: flex;
  align-items: center;
  gap: 12px;

  padding: 15px 18px;

  border: 1px solid rgba(255,255,255,.72);
  border-radius: 20px;

  background: rgba(255,255,255,.62);

  backdrop-filter: blur(15px);

  box-shadow:
    0 15px 35px rgba(50,98,158,.14);
}

.hero-badge-icon {
  width: 42px;
  height: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #8cc9ff,
      #3e76ff
    );
}

.hero-badge strong,
.hero-badge span {
  display: block;
}

.hero-badge strong {
  font-size: 14px;
}

.hero-badge span {
  margin-top: 3px;

  color: #5f7190;
  font-size: 12px;
}

.catalog {
  margin-top: 16px;

  padding: 16px;

  border: 1px solid var(--line);
  border-radius: 26px;

  background: rgba(255,255,255,.72);

  backdrop-filter: blur(16px);

  box-shadow: var(--shadow);
}

.catalog-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 15px;

  margin-bottom: 14px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.category-button {
  display: flex;
  align-items: center;
  gap: 8px;

  padding: 11px 17px;

  border: 1px solid var(--line);

  background: rgba(255,255,255,.60);
}

.category-button.active {
  color: #fff;

  background:
    linear-gradient(
      135deg,
      #3196ff,
      #3659f5
    );

  border-color: transparent;

  box-shadow:
    0 9px 22px rgba(43,111,245,.22);
}

.sort-pill {
  display: flex;
  align-items: center;
  gap: 25px;

  padding: 11px 17px;

  border: 1px solid var(--line);
  border-radius: 14px;

  color: #48607e;

  background: rgba(255,255,255,.67);

  font-size: 14px;
}

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

.product-card {
  min-width: 0;

  overflow: hidden;

  display: flex;
  flex-direction: column;

  border: 1px solid rgba(74,139,217,.14);
  border-radius: 21px;

  background: rgba(255,255,255,.92);

  box-shadow:
    0 12px 30px rgba(56,102,153,.10);
}

.product-card.hidden {
  display: none;
}

.product-image-wrap {
  aspect-ratio: 1 / 1;

  position: relative;
  overflow: hidden;

  background: #ebf6ff;
}

.product-image {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;
}

.hit-badge {
  position: absolute;

  z-index: 2;

  top: 11px;
  left: 11px;

  padding: 7px 10px;

  border-radius: 999px;

  background: #ffd767;
  color: #614a00;

  font-size: 12px;
  font-weight: 800;

  box-shadow:
    0 8px 18px rgba(167,121,0,.13);
}

.product-body {
  flex: 1;

  display: flex;
  flex-direction: column;

  padding: 16px;
}

.product-body h2 {
  margin: 0;

  font-size: 18px;
  line-height: 1.18;

  letter-spacing: -.025em;
}

.product-description {
  min-height: 59px;

  margin: 9px 0 8px;

  color: #697793;

  font-size: 13px;
  line-height: 1.35;
}

.color-row {
  display: flex;
  gap: 8px;

  margin: 2px 0 13px;
}

.color-dot {
  width: 19px;
  height: 19px;

  display: block;

  border-radius: 50%;

  border: 1px solid rgba(21,41,70,.18);

  box-shadow:
    inset 0 0 0 2px rgba(255,255,255,.36);
}

.product-bottom {
  margin-top: auto;

  display: flex;
  flex-direction: column;
  gap: 11px;
}

.price {
  font-size: 24px;

  letter-spacing: -.035em;
}

.add-button {
  width: 100%;

  padding: 13px 14px;

  border: 0;
  border-radius: 13px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #278fff,
      #3158f3
    );

  box-shadow:
    0 10px 20px rgba(46,107,242,.18);

  font-weight: 800;
}

.empty-state {
  display: none;

  padding: 45px;

  text-align: center;

  color: var(--muted);
}

.trust-strip {
  margin-top: 16px;

  display: grid;
  grid-template-columns: repeat(4,1fr);

  overflow: hidden;

  border: 1px solid var(--line);
  border-radius: 23px;

  background: rgba(255,255,255,.75);

  backdrop-filter: blur(16px);

  box-shadow: var(--shadow);
}

.trust-item {
  min-width: 0;

  display: flex;
  align-items: center;
  gap: 13px;

  padding: 22px 25px;

  position: relative;
}

.trust-item:not(:last-child)::after {
  content: "";

  position: absolute;

  right: 0;
  top: 25%;
  bottom: 25%;

  width: 1px;

  background: var(--line);
}

.trust-icon {
  flex: 0 0 auto;

  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  color: var(--blue);

  background: #edf6ff;

  border: 1px solid var(--line);

  font-size: 21px;
}

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

.trust-item strong {
  font-size: 14px;
}

.trust-item span {
  margin-top: 4px;

  color: #71809a;

  font-size: 12px;
  line-height: 1.35;
}


/* CART */

body.modal-open {
  overflow: hidden;
}

.cart-overlay {
  position: fixed;
  inset: 0;

  z-index: 1000;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 18px;

  background: rgba(31,53,83,.42);

  backdrop-filter: blur(8px);
}

.cart-overlay.open {
  display: flex;
}

.cart-modal {
  width: min(720px,100%);
  max-height: 82vh;

  overflow-y: auto;

  padding: 24px;

  border: 1px solid rgba(255,255,255,.68);
  border-radius: 24px;

  background: rgba(248,252,255,.94);

  box-shadow:
    0 30px 100px rgba(31,64,111,.28);
}

.cart-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;

  margin-bottom: 18px;
}

.cart-modal-head h2 {
  margin: 0;
}

.cart-close {
  width: 38px;
  height: 38px;

  border: 0;
  border-radius: 12px;

  background: #e8f1fb;
  color: #2d4364;

  font-size: 22px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;

  padding: 15px;

  border: 1px solid var(--line);
  border-radius: 14px;

  background: #f3f8fd;
}

.cart-item-main strong,
.cart-item-main span {
  display: block;
}

.cart-item-main span {
  margin-top: 4px;

  color: var(--muted);

  font-size: 13px;
}

.cart-remove {
  border: 0;
  background: transparent;

  color: #6f7e94;

  font-size: 21px;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;

  margin-top: 18px;
  padding-top: 17px;

  border-top: 1px solid var(--line);

  font-size: 19px;
}

.cart-primary {
  width: 100%;

  margin-top: 17px;
  padding: 15px 18px;

  border: 0;
  border-radius: 14px;

  color: #fff;

  background:
    linear-gradient(
      135deg,
      #268eff,
      #3158f4
    );

  font-weight: 800;
}

.cart-empty {
  padding: 38px 15px;

  text-align: center;
  color: var(--muted);
}

.cart-checkout-step {
  display: none;
}

.cart-checkout-text {
  color: var(--muted);
  line-height: 1.5;
}


/* RESPONSIVE */

@media (max-width: 1150px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .top-nav {
    order: 3;
    grid-column: 1 / -1;
  }

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

@media (max-width: 820px) {
  .topbar {
    position: relative;

    display: flex;
    flex-wrap: wrap;

    padding: 12px;
  }

  .brand {
    font-size: 21px;
  }

  .top-nav {
    width: 100%;

    overflow-x: auto;

    justify-content: flex-start;
  }

  .header-actions {
    margin-left: auto;
  }

  .search-box {
    display: none;
  }

  main {
    width: min(100% - 18px, 1560px);

    margin-top: 9px;
  }

  .hero {
    min-height: 0;

    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 34px 23px;
  }

  .hero h1 {
    font-size: 47px;
  }

  .hero-copy > p {
    font-size: 17px;
  }

  .hero-art {
    min-height: 300px;
  }

  .hero-art::before {
    background:
      linear-gradient(
        180deg,
        rgba(246,251,255,.72),
        rgba(246,251,255,0) 38%
      );
  }

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

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-item:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 530px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-benefits {
    gap: 15px;
  }

  .hero-badge {
    top: 12px;
    right: 12px;

    transform: scale(.85);
    transform-origin: top right;
  }

  .catalog {
    padding: 9px;
  }

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

  .sort-pill {
    display: none;
  }

  .category-tabs {
    width: 100%;

    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .category-button {
    flex: 0 0 auto;
  }

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

  .product-image-wrap {
    aspect-ratio: 1.15 / 1;
  }

  .trust-strip {
    grid-template-columns: 1fr;
  }

  .trust-item::after {
    display: none;
  }

  .cart-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .cart-modal {
    width: 100%;
    max-height: 85vh;

    border-radius: 23px 23px 0 0;
  }
}
