* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #fff;
  color: #24242e;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* HEADER */

.header {
  background: linear-gradient(110deg, #e536c8, #b319ef 48%, #6f16ff);
  color: #fff;
}

.header-top {
  max-width: 1720px;
  height: 34px;
  margin: 0 auto;
  padding: 0 38px;
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.header-top span {
  opacity: .72;
  margin-right: auto;
}

.header-top nav {
  display: flex;
  gap: 28px;
}

.header-main {
  max-width: 1720px;
  height: 100px;
  margin: 0 auto;
  padding: 0 38px 18px;
  display: grid;
  grid-template-columns: 270px 70px 1fr 240px;
  align-items: center;
  gap: 18px;
}

.brand {
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -2px;
}

.menu-btn {
  width: 70px;
  height: 70px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 34px;
}

.search {
  height: 70px;
  border-radius: 20px;
  background: #fff;
  padding: 0 26px;
  display: flex;
  align-items: center;
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  font-size: 20px;
}

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

.header-icons {
  display: flex;
  justify-content: flex-end;
  gap: 26px;
}

.header-icons a {
  text-align: center;
  font-size: 13px;
}

.header-icons b {
  display: block;
  font-size: 28px;
  line-height: 1;
  margin-bottom: 6px;
}

/* PAGE */

.page {
  max-width: 1720px;
  margin: 0 auto;
  padding: 30px 38px 90px;
  position: relative;
}

.breadcrumbs {
  height: 48px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #8e8ea1;
  font-size: 14px;
  margin-bottom: 14px;
}

.back {
  border: 0;
  background: transparent;
  color: #24242e;
  font-size: 34px;
  margin-right: 8px;
}

.top-actions {
  position: absolute;
  right: 38px;
  top: 36px;
  display: flex;
  gap: 18px;
}

.top-actions button {
  border: 0;
  background: transparent;
  font-size: 26px;
}

/* PRODUCT */

.product {
  display: grid;
  grid-template-columns: minmax(640px, 1.28fr) minmax(430px, .82fr) 390px;
  gap: 34px;
  align-items: start;
}

.gallery {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 16px;
}

.thumbs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 650px;
  overflow: hidden;
}

.thumb {
  width: 88px;
  height: 108px;
  border-radius: 14px;
  border: 2px solid transparent;
  background: #f0f0f4;
  color: #8f8f98;
  font-size: 12px;
}

.thumb.active {
  border-color: #9a27ff;
}

.photo {
  min-height: 650px;
  border-radius: 8px;
  background: #f1f1f4;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 20px;
  overflow: hidden;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.info {
  padding-top: 0;
}

.chip {
  display: inline-block;
  background: #f1f1f5;
  padding: 6px 12px;
  border-radius: 13px;
  font-size: 14px;
  margin-bottom: 16px;
}

.info h1 {
  font-size: 26px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.rating {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 28px;
  font-size: 15px;
}

.star {
  color: #ff8a1d;
  font-size: 20px;
}

.muted {
  color: #8d8da0;
}

.label {
  margin-bottom: 13px;
  font-size: 14px;
}

.variants {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.variant {
  width: 64px;
  height: 82px;
  border: 0;
  border-radius: 13px;
  background: #efeff3;
  font-size: 12px;
}

.variant.active {
  outline: 2px solid #9d2cff;
}

.variant.arrow {
  border-radius: 50%;
  width: 52px;
  height: 52px;
  align-self: center;
  background: #fff;
  box-shadow: 0 6px 22px rgba(0,0,0,.08);
  font-size: 24px;
}

.sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.sizes button {
  min-width: 58px;
  height: 54px;
  border: 1px solid #d7d7e2;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
}

.sizes button small {
  color: #8d8da0;
}

.sizes button.active {
  border-color: #9d2cff;
  box-shadow: 0 0 0 2px rgba(157,44,255,.12);
}

.sizes .disabled {
  background: #f4f4f7;
  color: #bebecb;
  border-color: transparent;
  cursor: default;
}

.specs {
  margin-top: 10px;
}

.specs div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  padding: 9px 0;
  font-size: 14px;
}

.specs span {
  color: #8e8ea1;
}

.specs b {
  font-weight: 500;
  max-width: 260px;
}

/* BUY CARD */

.buy {
  position: sticky;
  top: 20px;
  border-radius: 24px;
  padding: 28px 26px;
  background: #fff;
  box-shadow: 0 12px 38px rgba(25,20,45,.09);
}

.price {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 18px;
}

.price strong {
  color: #ff244f;
  font-size: 32px;
}

.price b {
  font-size: 16px;
}

.price span {
  color: #9d9daa;
  text-decoration: line-through;
}

.badges {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.badges span {
  background: #f3f0f8;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 13px;
}

.buy-btn {
  width: 100%;
  height: 64px;
  border: 0;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 800;
}

.buy-btn.main {
  background: #a832f2;
  color: #fff;
  margin-bottom: 12px;
}

.buy-btn.second {
  background: #f3ddfb;
  color: #9b2be8;
  margin-bottom: 24px;
}

.delivery {
  border-top: 1px solid #efeff3;
  padding-top: 18px;
  color: #747484;
  display: grid;
  gap: 12px;
  font-size: 14px;
}

/* REVIEWS */

.reviews {
  margin-top: 54px;
}

.review-tabs {
  display: flex;
  gap: 36px;
  margin-bottom: 26px;
}

.review-tabs button {
  border: 0;
  background: transparent;
  font-size: 30px;
  font-weight: 900;
  color: #8c8c9c;
}

.review-tabs .active {
  color: #24242e;
}

.review-tabs span {
  font-size: 16px;
  margin-left: 6px;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 26px;
}

.score {
  font-size: 48px;
  font-weight: 900;
}

.review-summary p {
  color: #8d8da0;
}

.review-summary > span {
  background: #f1f1f5;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
}

.review-summary a {
  margin-left: auto;
  color: #8d8da0;
}

.media {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-bottom: 26px;
}

.media div {
  flex: 0 0 126px;
  height: 126px;
  border-radius: 14px;
  background: #eeeef3;
  display: grid;
  place-items: center;
  color: #999;
  font-size: 16px;
}

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

.review-list article {
  min-height: 210px;
  border-radius: 22px;
  padding: 24px 28px;
  background: #fff;
  box-shadow: 0 8px 28px rgba(25,20,45,.07);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.review-head span {
  color: #8c8c9c;
}

.review-head em {
  margin-left: auto;
  color: #ff9b4a;
  font-style: normal;
  font-size: 22px;
  letter-spacing: 2px;
}

.review-list p {
  font-size: 16px;
  line-height: 1.45;
}

.tags {
  margin-top: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.tags span {
  background: #ededf2;
  color: #77778a;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
}

.all-reviews {
  margin-top: 28px;
  border: 0;
  border-radius: 14px;
  background: #f3ddfb;
  color: #9b2be8;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 800;
}

/* MOBILE */

.mobile-buy {
  display: none;
}

@media (max-width: 1250px) {
  .product {
    grid-template-columns: 1fr 390px;
  }

  .info {
    grid-column: 1;
  }

  .buy {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
}

@media (max-width: 850px) {
  .header-top {
    display: none;
  }

  .header-main {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 12px;
  }

  .brand {
    font-size: 30px;
  }

  .menu-btn,
  .header-icons {
    display: none;
  }

  .search {
    height: 52px;
    border-radius: 16px;
  }

  .page {
    padding: 16px 12px 110px;
  }

  .breadcrumbs {
    overflow-x: auto;
    white-space: nowrap;
    height: auto;
    padding-bottom: 8px;
    margin-bottom: 10px;
  }

  .top-actions {
    display: none;
  }

  .product {
    display: block;
  }

  .gallery {
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
  }

  .thumbs {
    flex-direction: row;
    overflow-x: auto;
    max-height: none;
  }

  .thumb {
    flex: 0 0 74px;
    width: 74px;
    height: 92px;
  }

  .photo {
    min-height: 420px;
    border-radius: 18px;
  }

  .info {
    margin-top: 22px;
  }

  .info h1 {
    font-size: 22px;
  }

  .variants {
    overflow-x: auto;
  }

  .buy {
    position: static;
    margin-top: 22px;
    padding: 22px;
  }

  .buy-btn {
    height: 58px;
    font-size: 18px;
  }

  .review-tabs {
    overflow-x: auto;
    gap: 22px;
  }

  .review-tabs button {
    white-space: nowrap;
    font-size: 25px;
  }

  .review-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .review-summary a {
    margin-left: 0;
  }

  .media div {
    flex-basis: 94px;
    height: 112px;
  }

  .review-list {
    display: flex;
    overflow-x: auto;
    gap: 14px;
    padding-bottom: 8px;
  }

  .review-list article {
    min-width: 285px;
    min-height: 190px;
  }

  .mobile-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #fff;
    padding: 12px 14px;
    box-shadow: 0 -8px 28px rgba(0,0,0,.1);
  }

  .mobile-buy strong {
    display: block;
    color: #ff244f;
    font-size: 22px;
  }

  .mobile-buy span {
    color: #9d9daa;
    text-decoration: line-through;
    font-size: 13px;
  }

  .mobile-buy button {
    height: 50px;
    border: 0;
    border-radius: 16px;
    background: #a832f2;
    color: #fff;
    padding: 0 24px;
    font-size: 16px;
    font-weight: 800;
  }
}.thumb {
  position: relative;
  font-weight: 800;
}

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

.photo {
  position: relative;
}

.photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-arrow {
  position: absolute;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: white;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  font-size: 38px;
  line-height: 1;
}

.photo-arrow.left {
  left: 14px;
}

.photo-arrow.right {
  right: 14px;
}
.thumb {
  overflow: hidden;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.variant {
  overflow: hidden;
}

.variant img,
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}.variant {
  overflow: hidden;
  padding: 0;
}

.variant img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 13px;
}

.variant.arrow {
  overflow: visible;
}.media div {
  overflow: hidden;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.78);
  padding: 20px;
}

.photo-modal.active {
  display: flex;
}

.photo-modal img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 18px;
  object-fit: contain;
}

.modal-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: white;
  font-size: 34px;
}a.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}