:root {
  --bg: #090c10;
  --panel: #11151b;
  --panel2: #151a20;
  --line: rgba(255,255,255,.08);
  --text: #f7f7f5;
  --muted: #a8b0be;
  --soft: #d9d9d2;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -10%, #16202d 0, transparent 36%),
    var(--bg);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.topbar {
  min-height: 88px;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  gap: 38px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,11,15,.88);
  backdrop-filter: blur(22px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: .04em;
}

.brand-logo {
  width: 39px;
  height: 39px;
  position: relative;
  display: inline-block;
}

.brand-logo span {
  position: absolute;
  width: 24px;
  height: 14px;
  background: #f2f2ef;
  border-radius: 50% 50% 45% 45%;
}

.brand-logo span:nth-child(1) {
  top: 2px;
  left: 7px;
}

.brand-logo span:nth-child(2) {
  transform: rotate(120deg);
  left: 0;
  top: 17px;
}

.brand-logo span:nth-child(3) {
  transform: rotate(240deg);
  right: 0;
  top: 17px;
}

.desktop-nav {
  display: flex;
  gap: 6px;
}

.nav-link,
.category-button {
  border: 1px solid transparent;
  color: #aeb6c2;
  background: transparent;
  padding: 11px 17px;
  border-radius: 999px;
}

.nav-link.active,
.category-button.active {
  color: #0b0e12;
  background:
    linear-gradient(
      135deg,
      #f2f1eb,
      #d9e8ff 60%,
      #b89dff
    );
}

.top-actions {
  margin-left: auto;
  display: flex;
  gap: 14px;
}

.search {
  width: 260px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10151b;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
}

.search input::placeholder {
  color: #707987;
}

.cart-button {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #10151b;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #111;
  background: #eee;
  font-size: 12px;
  font-weight: 800;
}

main {
  max-width: 1460px;
  margin: auto;
  padding: 18px 24px 34px;
}

.hero {
  min-height: 390px;
  display: grid;
  grid-template-columns: 50% 50%;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      110deg,
      #11161d 0%,
      #151b25 48%,
      #0c1015 100%
    );
}

.hero-copy {
  padding: 48px 22px 38px 48px;
  z-index: 5;
}

.eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .32em;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0;
  max-width: 670px;
  font-size: clamp(46px, 5vw, 76px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero h1 span {
  display: block;
  color: #c5d8ff;
  background: linear-gradient(90deg, #c7b6ff, #aee8ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-copy > p {
  max-width: 620px;
  color: #bbc4d2;
  font-size: 17px;
  line-height: 1.55;
}

.primary-button {
  margin-top: 10px;
  border: 0;
  border-radius: 15px;
  padding: 15px 24px;
  background: linear-gradient(115deg, #f3f0eb, #cfe3ff, #c6a7ff);
  color: #0b0d10;
  font-weight: 800;
  box-shadow: 0 0 28px rgba(130,155,255,.25);
}

.primary-button span {
  margin-left: 18px;
}

.advantages {
  display: flex;
  gap: 30px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.advantages > div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #c7ced7;
  font-size: 12px;
}

.advantages b {
  color: #b8c7ff;
  font-size: 25px;
  font-weight: 400;
}

.hero-art {
  min-height: 390px;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  left: 80px;
  top: -70px;
  border: 2px solid rgba(160,133,255,.45);
  box-shadow: 0 0 90px rgba(133,107,255,.18);
}

.hero-art::after {
  content: "";
  position: absolute;
  inset: auto -10% -28% 0;
  height: 57%;
  background:
    radial-gradient(
      ellipse at 50% 20%,
      #2c3139 0,
      #11161d 45%,
      #050608 72%
    );
  transform: skewY(-6deg);
}

.hero-device {
  position: absolute;
  z-index: 3;
}

.phone-back {
  width: 180px;
  height: 292px;
  left: 135px;
  bottom: 20px;
  border-radius: 34px;
  transform: rotate(-3deg);
  background:
    linear-gradient(135deg, #c8a374, #8f7358 58%, #45392f);
  box-shadow: 0 30px 50px rgba(0,0,0,.5);
}

.camera {
  width: 46px;
  height: 46px;
  position: absolute;
  border-radius: 50%;
  background:
    radial-gradient(circle, #080a0c 0 38%, #2a2d32 40% 58%, #090a0c 60%);
  box-shadow: 0 0 0 3px rgba(255,255,255,.2);
}

.c1 {
  left: 22px;
  top: 20px;
}

.c2 {
  left: 76px;
  top: 20px;
}

.c3 {
  left: 48px;
  top: 72px;
}

.apple {
  position: absolute;
  left: 74px;
  top: 145px;
  opacity: .2;
  font-size: 32px;
}

.tablet {
  width: 212px;
  height: 318px;
  left: 268px;
  bottom: 13px;
  border-radius: 22px;
  transform: rotate(4deg);
  border: 10px solid #101218;
  background:
    radial-gradient(circle at 75% 17%, #8d53ff, transparent 30%),
    linear-gradient(150deg, #4225b9, #16122f 45%, #2172ff);
  box-shadow: 0 26px 45px rgba(0,0,0,.6);
}

.screen-glow {
  position: absolute;
  inset: 10% 10%;
  transform: rotate(-28deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(180,122,255,.7),
    rgba(84,141,255,.65),
    transparent
  );
  filter: blur(14px);
}

.buds {
  width: 150px;
  height: 92px;
  left: 245px;
  bottom: 13px;
  border-radius: 34px;
  background: linear-gradient(#fff, #dcdfe4);
  box-shadow: 0 18px 35px rgba(0,0,0,.45);
}

.bud {
  width: 37px;
  height: 73px;
  position: absolute;
  bottom: 41px;
  border-radius: 30px 30px 15px 15px;
  background: #f7f7f7;
}

.bud::before {
  content: "";
  position: absolute;
  width: 23px;
  height: 16px;
  border-radius: 50%;
  background: #181a1d;
  top: 10px;
}

.bud.left {
  left: 30px;
  transform: rotate(-14deg);
}

.bud.right {
  right: 30px;
  transform: rotate(14deg);
}

.hero-note {
  position: absolute;
  z-index: 10;
  right: 18px;
  top: 19px;
  width: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(26,30,36,.72);
  backdrop-filter: blur(15px);
}

.hero-note strong {
  display: block;
  line-height: 1.35;
  font-size: 13px;
}

.hero-note span {
  display: block;
  color: #9fa7b2;
  margin-top: 11px;
  line-height: 1.4;
  font-size: 11px;
}

.catalog {
  padding-top: 22px;
}

.mobile-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

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

.product-card {
  min-width: 0;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, #181d23 0, #12161b 100%);
  transition:
    transform .2s ease,
    border-color .2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
}

.badge {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: 12px;
  color: #24180a;
  background: #ffbd56;
  font-size: 11px;
  font-weight: 800;
  padding: 7px 10px;
  border-radius: 999px;
}

.product-image-wrap {
  aspect-ratio: 1 / .93;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(circle at 50% 85%, #474039 0, #24282d 40%, #12161a 77%);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.image-placeholder {
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  gap: 8px;
  padding: 20px;
  color: #727b87;
}

.image-placeholder span {
  font-weight: 900;
  font-size: 42px;
  letter-spacing: .08em;
  opacity: .16;
}

.image-placeholder small {
  color: #89929f;
}

.product-content {
  min-height: 220px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}

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

.product-content p {
  margin: 9px 0 10px;
  color: #9ea8b6;
  font-size: 13px;
  line-height: 1.42;
}

.color-row {
  display: flex;
  gap: 8px;
  min-height: 20px;
  align-items: center;
  margin-top: auto;
  margin-bottom: 12px;
}

.color-dot {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.32);
  border-radius: 50%;
  background: var(--dot-color);
}

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

.price {
  white-space: nowrap;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
}

.add-button {
  margin-left: auto;
  white-space: nowrap;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  color: #101215;
  background: #f0efe9;
  font-size: 12px;
  font-weight: 800;
}

.add-button span {
  margin-right: 5px;
}

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

.empty-state {
  display: none;
  padding: 80px 0;
  text-align: center;
  color: #87909d;
  font-size: 20px;
}

.benefits {
  margin-top: 18px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #11151a;
}

.benefits > div {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  border-right: 1px solid var(--line);
}

.benefits > div:first-child {
  padding-left: 0;
}

.benefits > div:last-child {
  border-right: 0;
}

.benefit-icon {
  flex: 0 0 45px;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #f0f1f3;
  border: 1px solid var(--line);
  background: #1c232c;
}

.benefits p {
  margin: 0;
}

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

.benefits strong {
  font-size: 13px;
}

.benefits small {
  margin-top: 4px;
  color: #8f99a6;
  font-size: 11px;
}

@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }

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

  .hero {
    grid-template-columns: 57% 43%;
  }

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

@media (max-width: 760px) {
  body {
    background: #090c10;
  }

  .topbar {
    padding: 12px 14px;
    min-height: 65px;
  }

  .brand {
    font-size: 19px;
  }

  .brand-logo {
    transform: scale(.85);
  }

  .search {
    display: none;
  }

  .cart-button {
    margin-left: auto;
  }

  main {
    padding: 10px 10px 22px;
  }

  .hero {
    min-height: auto;
    display: block;
  }

  .hero-copy {
    padding: 28px 20px 20px;
  }

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

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

  .advantages {
    gap: 14px;
  }

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

  .hero-glow {
    width: 300px;
    height: 300px;
    left: 12%;
  }

  .phone-back {
    left: 25%;
    width: 130px;
    height: 215px;
  }

  .tablet {
    left: 48%;
    width: 150px;
    height: 225px;
  }

  .buds {
    left: 43%;
    width: 115px;
  }

  .hero-note {
    width: 150px;
    right: 9px;
    padding: 12px;
  }

  .mobile-categories {
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

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

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

  .product-content {
    min-height: 210px;
    padding: 13px;
  }

  .product-content h2 {
    font-size: 15px;
  }

  .product-content p {
    font-size: 12px;
  }

  .product-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .add-button {
    width: 100%;
    margin-left: 0;
  }

  .benefits {
    grid-template-columns: 1fr 1fr;
    gap: 20px 0;
  }

  .benefits > div {
    border-right: 0;
    padding: 0;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

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

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

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

/* ===== ZOV REAL IMAGES PATCH ===== */

.hero-art {
  position: relative;
  overflow: hidden;
  min-height: 390px;
  background: #0d1117;
}

.hero-main-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-art::after,
.hero-glow,
.hero-device {
  display: none !important;
}

.product-image-wrap {
  background:
    linear-gradient(
      180deg,
      #1a1e24 0%,
      #101317 100%
    );
}

.product-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .hero-art {
    min-height: 260px;
    height: 260px;
  }

  .hero-main-image {
    object-position: 67% center;
  }
}


/* =========================================================
   ZOV CART
   ========================================================= */

body.modal-open {
  overflow: hidden;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;

  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(3px);
}

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

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

  padding: 24px;

  border: 1px solid rgba(255,255,255,.10);
  border-radius: 22px;

  background: #1b1d21;

  box-shadow:
    0 30px 100px rgba(0,0,0,.55);
}

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

  margin-bottom: 18px;
}

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

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

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

  border: 0;
  border-radius: 11px;

  background: #25282e;
  color: #fff;

  font-size: 22px;
  line-height: 1;
}

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

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

  padding: 15px 13px;

  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;

  background: #24272d;
}

.cart-item-main {
  min-width: 0;
}

.cart-item-main strong {
  display: block;

  color: #f4f4f2;
  font-size: 16px;
}

.cart-item-main span {
  display: block;

  margin-top: 4px;

  color: #999fa9;
  font-size: 13px;
}

.cart-remove {
  flex: 0 0 auto;

  border: 0;
  background: transparent;

  color: #b9bdc5;
  font-size: 20px;
}

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

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

  border-top: 1px solid rgba(255,255,255,.10);

  font-size: 19px;
}

.cart-primary {
  width: 100%;

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

  border: 0;
  border-radius: 13px;

  background: #e8e7df;
  color: #141517;

  font-weight: 800;
}

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

  text-align: center;
  color: #8c929c;
}

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

.cart-checkout-text {
  margin: 0 0 16px;

  color: #989da6;
  font-size: 15px;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .cart-overlay {
    align-items: flex-end;
    padding: 0;
  }

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

    border-radius: 22px 22px 0 0;

    padding:
      20px
      16px
      calc(20px + env(safe-area-inset-bottom));
  }
}
