*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 2% 20%;
  background-color: #FBFBFB;
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.breadcrumbs {
  margin-bottom: 4px;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: #6b7568;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.breadcrumbs__item + .breadcrumbs__item::before {
  content: '/';
  color: #c5cbbf;
}

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

.breadcrumbs__item a:hover {
  color: #2f6b45;
}

.breadcrumbs__item a:focus-visible {
  outline: 2px solid #2f6b45;
  outline-offset: 2px;
}

.breadcrumbs__item[aria-current='page'] {
  color: #1f2420;
}

.product-card__header {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #F0F0F0;
}

.product-card__title {
  font-size: 32px;
}

.product-card__sku {
  font-size: 14px;
  color: #808080;
}

.product-card__category {
  margin: -12px 0 0;
  font-size: 14px;
  color: #808080;
}

.product-card__category a {
  color: inherit;
  text-decoration: none;
}

.product-card__category a:hover {
  color: #2f6b45;
}

.product-card__category a:focus-visible {
  outline: 2px solid #2f6b45;
  outline-offset: 2px;
}

.product-card__body {
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: flex-start;
  gap: 20px;
}

.gallery {
  width: 50%;
  min-width: 250px;
  margin: 0;
}

.gallery__image {
  width: 100%;
  height: auto;
  display: block;
}

.purchase {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.packaging {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 20px;
}

.packaging__list {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  background-color: #F6F7F8;
  border: 1px solid #F0F0F0;
  border-radius: 30px;
  overflow: hidden;
  width: 80%;
  min-width: 300px;
}

.packaging__item {
  flex: 1;
  min-width: 70px;
  padding: 12px 8px;
  font-family: inherit;
  font-size: 16px;
  color: inherit;
  background-color: transparent;
  border: none;
  cursor: pointer;
}

.packaging__item:hover {
  background-color: #EFF3E2;
}

.packaging__item:focus-visible {
  outline: 2px solid #2f6b45;
  outline-offset: -2px;
}

.packaging__item--selected,
.packaging__item--selected:hover {
  background-color: #E9F2C3;
  font-weight: bold;
}

.paying {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
  white-space: nowrap;
}

.price {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  font-size: 18px;
  color: #1f2420;
}

.price__label {
  margin: 0;
}

.price__values {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.price__current {
  margin: 0;
  font-weight: bold;
  color: #FF0000;
}

.price__old {
  font-size: 14px;
  color: #808080;
}

.add-cart-btn {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
  background-color: #E9F2C3;
  border: none;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: bold;
  font-family: inherit;
  font-size: 16px;
}

.add-cart-btn:hover {
  background-color: #202020;
  color: #F5D730;
}

.add-cart-btn:focus-visible {
  outline: 2px solid #202020;
  outline-offset: 2px;
}

.add-cart-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: currentColor;
}

.description {
  width: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid #F0F0F0;
  border-radius: 10px;
  overflow: hidden;
}

.description__title {
  background-color: #202020;
  color: #FFFFFF;
  padding: 20px;
  margin: 0;
  text-align: center;
  font-size: 20px;
}

.description__text {
  margin: 0;
  padding: 30px 10%;
  background-color: #FEFCEF;
  line-height: 1.5;
  font-size: 14px;
}

@media (max-width: 987px) {
  body {
    padding: 2% 10%;
  }
}

@media (max-width: 768px) {
  body {
    padding: 2% 5%;
  }

  .product-card__header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-bottom: 12px;
  }

  .product-card__title {
    font-size: 26px;
  }

  .product-card__body {
    flex-direction: column;
    align-items: center;
  }

  .gallery {
    width: 100%;
    max-width: 360px;
    min-width: 0;
  }

  .purchase {
    width: 100%;
    gap: 28px;
  }

  .packaging__list {
    width: 100%;
    min-width: 0;
  }

  .description__text {
    padding: 24px;
  }
}

@media (max-width: 560px) {
  .breadcrumbs__item:not(:nth-last-child(-n + 2)) {
    display: none;
  }

  .breadcrumbs__item:nth-last-child(2)::before {
    content: none;
  }

  .packaging__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-radius: 16px;
  }

  .packaging__item {
    min-width: 0;
    padding: 14px 8px;
  }

  .paying {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .price {
    justify-content: center;
  }

  .add-cart-btn {
    width: 100%;
  }
}
