header{
    background-color: #532E84;
}
.product {
  padding: 48px 0 64px;
  background: #f5f5f7;
}

.product__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  border-radius: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1.0fr) minmax(0, 1.4fr);
  gap: 40px;
}

/* галерея */

.product-gallery {
  position: relative;
}

.product-gallery__fav {
  position: absolute;
  left: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #d1cfe7;
  background: #ffffff;
  cursor: pointer;
}

.product-gallery__main {
  border-radius: 10px;
  overflow: hidden;
  background: #f2f2f5;
}

.product-gallery__main img {
  width: 100%;
  height:330px;
  display: block;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.product-thumb {
  padding: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  cursor: pointer;
}

.product-thumb--active {
  border-color: #ffba1a;
}

.product-thumb img {
  display: block;
  width: 100%;
  height: 72px;
  object-fit: cover;
}

/* инфо */

.product-info__sku {
  font-size: 13px;
  color: #8f869a;
  margin-bottom: 8px;
}

.product-info__sku span {
  color: #4a257f;
}

.product-info__title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.25;
  color: #231638;
}

.product-info__subtitle {
  margin: 0 0 20px;
  font-size: 16px;
  color: #6a6476;
}

/* характеристики */

.product-details {
  padding: 16px 20px;
  border-radius: 12px;
  background: #f8f7fb;
  margin-bottom: 20px;
}

.product-details__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 0;
  font-size: 14px;
  border-bottom: 1px solid #ece9f3;
}

.product-details__row:last-child {
  border-bottom: none;
}

.product-details__label {
  color: #8a8295;
}

.product-details__value {
  color: #322440;
}

.product-details__all {
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  color: #4a257f;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.product-details__right{
    display: flex;
    gap: 20px;
}
/* блок покупки */

.product-buy {
  padding: 18px 20px 20px;
  border-radius: 12px;
  /* background: #fff7e5; */
  /* border: 1px solid #ffe2a8; */
}

.product-buy__row {
  display: flex;
  gap: 24px;
  margin-bottom: 14px;
}

.product-buy__block {
  flex: 1;
}

.product-buy__label {
  font-size: 13px;
  color: #8a8295;
  margin-bottom: 4px;
}

.product-buy__price {
  font-size: 16px;
  font-weight: 600;
  color: #231638;
  margin-bottom: 6px;
}

.product-buy__price--lg {
  font-size: 20px;
}

.product-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid #ddd3e9;
}

.product-qty__btn {
  width: 32px;
  height: 32px;
  border: none;
  background: #f6f2ff;
  color: #4a257f;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.product-qty__input {
  width: 52px;
  height: 32px;
  border: none;
  text-align: center;
  font-size: 14px;
}

.product-buy__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 16px;
}

.product-buy__btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  border: none;
  background: #ffba1a;
  color: #3b2400;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.product-buy__btn:hover {
  background: #ffcf4d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.2);
}



.stock {
  padding: 40px 0 56px;
}

.stock__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  background: #f5f5f9;
  border-radius: 16px;
}

.stock__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #231638;
}

.stock__layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 24px;
}

/* карточки складов */

.stock-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stock-card {
  text-align: left;
  padding: 18px 20px;
  border-radius: 10px;
  border: none;
  background: #ffffff;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.05s ease;
}

.stock-card--active {
  background: linear-gradient(135deg, #4a257f, #7b3eea);
  color: #ffffff;
  box-shadow: 0 10px 30px rgba(35, 10, 80, 0.35);
}

.stock-card__name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stock-card__delivery {
  font-size: 13px;
  margin-bottom: 4px;
  opacity: 0.85;
}

.stock-card__addr {
  font-size: 13px;
  color: #6a6476;
}

.stock-card--active .stock-card__addr {
  color: rgba(255, 255, 255, 0.9);
}

/* карта */

.stock-map {
  border-radius: 16px;
  overflow: hidden;
  background: #e5e5e5;
}

.stock-map__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.payment {
  padding: 64px 0 72px;
  background: #ffffff;
}

.payment__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.payment__title {
  margin: 0 0 24px;
  font-size: 32px;
  line-height: 1.25;
  font-weight: 700;
  color: #231638;
}

.payment__cols {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.3fr);
  gap: 32px;
}

.payment__subtitle {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: #231638;
}

.payment__text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #6c6475;
}

.payment__list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
  font-size: 14px;
}

.payment__list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
}

.payment__list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b3eea;
}

/* калькулятор */

.delivery-calc {
  border-radius: 16px;
  background: #3d1f7f;
  color: #ffffff;
  padding: 24px 24px 28px;
}

.delivery-calc__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
}

.delivery-calc__text {
  margin: 0 0 20px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
}

.delivery-calc__form {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px 16px;
  margin-bottom: 20px;
}

.delivery-calc__field {
  display: flex;
  flex-direction: column;
}

.delivery-calc__label {
  font-size: 12px;
  margin-bottom: 6px;
  color: rgba(255, 255, 255, 0.7);
}

.delivery-calc__select,
.delivery-calc__input {
  height: 48px;
  border-radius: 8px;
  border: none;
  padding: 0 16px;
  font-size: 14px;
  background: rgba(9, 0, 40, 0.6);
  color: #ffffff;
}

.delivery-calc__select:focus,
.delivery-calc__input:focus {
  outline: 1px solid #ffba1a;
}

.delivery-calc__result {
  margin-top: 4px;
}

.delivery-calc__price {
  margin-top: 4px;
  font-size: 20px;
  font-weight: 700;
}

/* адаптив */

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

@media (max-width: 640px) {
  .payment {
    padding: 48px 0 56px;
  }

  .payment__title {
    font-size: 24px;
  }

  .delivery-calc__form {
    grid-template-columns: 1fr;
  }
}
.specs {
  padding: 40px 0 56px;
  background: #ffffff;
}

.specs__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.specs__title {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 700;
  color: #231638;
}

/* таблица характеристик */

.specs-table {
  border-radius: 12px;
  overflow: hidden;
  background: #fafafb;
}

.specs-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  padding: 14px 24px;
  font-size: 14px;
  border-bottom: 1px solid #f0f0f3;
}

.specs-row--last {
  border-bottom: none;
}

.specs-row__label {
  color: #8f8699;
}

.specs-row__value {
  text-align: right;
  color: #231638;
}
.description {
  padding: 40px 0 56px;
  background: #ffffff;
}

.description__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 32px;
  background: #fafafb;
  border-radius: 16px;
}

.description__title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  color: #231638;
}

.description__text p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #5f5868;
}

.description__text p:last-child {
  margin-bottom: 0;
}
.reviews {
  padding: 56px 0 64px;
}

.reviews__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.reviews__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #231638;
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 24px;
}

.review-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 20px 22px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  font-size: 14px;
  line-height: 1.6;
  color: #5f5869;
}

.review-card__name {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #231638;
}

.review-card__stars {
  margin-bottom: 10px;
  font-size: 16px;
  letter-spacing: 2px;
  color: #ffba1a;
}

.review-card__text {
  margin: 0;
}

/* кнопка */

.reviews__btn {
  margin-top: 4px;
  padding: 12px 32px;
  border-radius: 8px;
  border: none;
  background: #ffba1a;
  color: #3b2500;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.reviews__btn:hover {
  background: #ffcf4d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.related {
  padding: 56px 0 72px;
  /* background: #ffffff; */
}

.related__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.related__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #231638;
}

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

/* карточка товара */

.product-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card__fav {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid #ddd2eb;
  background: #ffffff;
  cursor: pointer;
}

.product-card__image img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.product-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-card__name {
  font-size: 15px;
  font-weight: 600;
  color: #231638;
  text-decoration: none;
}

.product-card__name:hover {
  text-decoration: underline;
}

.product-card__subtitle {
  font-size: 13px;
  color: #8a8297;
}

.product-card__prices {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 6px;
}

.product-card__price-block {
  flex: 1;
}

.product-card__price-label {
  font-size: 12px;
  color: #9690a3;
}

.product-card__price-value {
  font-size: 14px;
  font-weight: 600;
  color: #231638;
}

.product-card__total {
  margin-top: 8px;
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.product-card__total-value {
  font-weight: 700;
}

/* кнопка */

.product-card__btn {
  margin-top: 12px;
  height: 44px;
  border-radius: 8px;
  border: none;
  background: #ffba1a;
  color: #3b2500;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.product-card__btn:hover {
  background: #ffcf4d;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
}

/* адаптив */

@media (max-width: 1100px) {
  .related__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* адаптив */

@media (max-width: 1100px) {
  .reviews__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
    .product-details__right{
    flex-wrap: wrap;
}
  .reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .reviews__extra {
    display: none;
  }
}


/* адаптив */

@media (max-width: 640px) {
  .specs-row {
    grid-template-columns: 1fr;
    row-gap: 4px;
  }

  .specs-row__value {
    text-align: left;
  }
}


/* адаптив */

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



/* адаптив */

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

@media (max-width: 640px) {
  .product {
    padding: 32px 0 40px;
  }

  .product-info__title {
    font-size: 22px;
  }

  .product-buy__row {
    flex-direction: column;
  }
}
.tabs__list {
  display: inline-flex;
  gap: 8px;
  margin-left: 5.5%;
  padding: 16px 24px 0;
  flex-wrap: wrap;
}

.tabs__tab {
  min-width: 180px;
  padding: 10px 18px;
  border-radius: 5px;
  border: none;
  background: #ffffff;
  color: #5e5670;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tabs__tab--active {
  background: #e5d5ff;
  color: #2a163d;
  box-shadow: 0 -2px 0 #e5d5ff, 0 0 0 1px #e5d5ff;
}

.tabs__panels {
  padding: 24px;
  border-radius: 5px;
  
}
