/* Общие стили и сброс */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: Arial, sans-serif;
  color: #242323;
  background-color: #ffffff;
  line-height: 1.5;
  overflow-x: hidden;
}

.product-detail-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Хлебные крошки */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem 0;
  font-size: 0.75rem;
  color: #727272;
}

.breadcrumb-link {
  color: #727272;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.25rem;
}

.breadcrumb-current {
  color: #242323;
}

/* Секция продукта */
.product-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.product-image {
  width: 100%;
  background-color: #ebebeb;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.product-image img {
  max-height: 350px;
  object-fit: contain;
}

.product-info-section {
  width: 100%;
}

.product-title {
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

/* Информация о продукте */
.product-info {
  margin-bottom: 1.5rem;
}

.info-row {
  display: flex;
  align-items: baseline;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.info-label {
  width: 120px;
  color: #727272;
  font-size: 0.875rem;
}

.info-dots {
  flex: 1;
  border-bottom: 1px dotted #c2c2c2;
  margin: 0 0.5rem;
  min-width: 2rem;
}
.product-card-price{
  font-family: Arial !important;

}
.info-row-sk{
  font-weight: 900 !important;

    align-items: baseline;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.info-value {
  font-size: 0.875rem;
  font-family: Arial !important;
}
#product-number-of-stones{
  font-family: Arial !important;

}
#product-code{
    font-family: Arial !important;

}
#product-metal-purity-detail{
    font-family: Arial !important;

}
#product-weight-detail{
    font-family: Arial !important;

}
#product-weight-in-carats{
  font-family: Arial !important;

}
.material-options {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.material-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: #242323;
}

.material-option input[type="radio"] {
    display: none;
}

.material-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #c2c2c2;
    transition: border-color 0.3s;
    /* Убираем background-color, чтобы не перекрывать стиль из атрибута style */
}

.material-option input[type="radio"]:checked + .material-dot {
    border: 2px solid #242323;
}

.material-option input[type="radio"]:checked + .material-dot::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    /*background-color: #242323;*/
    margin: 4px;
}
/* Варианты цвета */
.color-options {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.color-option {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.color-option.selected {
  border: 1px solid #242323;
}

.color-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #242323;
}

/* Детали */
.details-section {
  margin-bottom: 1.5rem;
}

.details-title {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.details-list {
  list-style: none;
}

.details-item {
  display: flex;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.details-item::before {
  content: "•";
  margin-right: 0.5rem;
}

/* Кнопка добавления в избранное */
.add-to-favorites {
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: transparent;
  border: 1px solid #242323;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background-color 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.add-to-favorites:hover {
  background-color: #f8f8f8;
}

.add-to-favorites:active {
  background-color: #f0f0f0;
}

/* Секция High Jewellery */
.high-jewellery-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.high-jewellery-content {
  width: 100%;
  margin-bottom: 1.5rem;
}

.high-jewellery-image {
  width: 100%;
  background-color: #ebebeb;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.high-jewellery-image img {
  max-height: 350px;
  object-fit: contain;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.section-text {
  font-size: 0.875rem;
  color: #727272;
  line-height: 1.6;
}

.section-text p {
  margin-bottom: 1rem;
}

/* Секция ухода за ювелирными изделиями */
.jewelry-care-section {
  display: flex;
  flex-direction: column;
  margin-bottom: 3rem;
}

.jewelry-care-image {
  width: 100%;
  background-color: #ebebeb;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.jewelry-care-image img {
  max-height: 350px;
  object-fit: contain;
}

.jewelry-care-content {
  width: 100%;
}

/* Разделительная линия */
.divider-line {
  width: 1040px;
  max-width: 100%;
  height: 1px;
  background-color: #c2c2c2;
  margin: 0 auto 3rem;
}

/* Секция похожих товаров */
.similar-products-section {
  margin-bottom: 3rem;
}

.similar-products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
}

.product-link {
  text-decoration: none;
  color: inherit;
}

.similar-product-card {
  border: 1px solid #e4e4e4;
  transition: box-shadow 0.3s;
}

.similar-product-card:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card-image {
  position: relative;
  background-color: #ebebeb;
  padding: 1rem;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image img {
  max-height: 100%;
  object-fit: contain;
}

.product-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  background-color: white;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  z-index: 1;
}

.product-card-info {
  padding: 1rem;
}

.product-card-title {
  text-align: center;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.product-card-price {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 0.25rem;
}

.product-card-gender {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #a4a4a4;
}
.favorites-add-to-favorites {
    background-color: white;
    color: #242323;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background-color 0.3s, color 0.3s;
}

.favorites-add-to-favorites:hover {
    background-color: #202020;
    color: white;
}
/* Адаптивность для разных устройств */
@media (min-width: 320px) {
  html {
      font-size: 14px;
  }

  .product-detail-wrapper {
      padding: 0 0.75rem;
  }

  .product-image {
      padding: 1rem;
  }

  .product-title {
      font-size: 1.25rem;
  }

  .info-label {
      width: 100px;
  }

  .product-card-image {
      height: 180px;
  }
}

@media (min-width: 481px) {
  html {
      font-size: 15px;
  }

  .similar-products-grid {
      grid-template-columns: repeat(2, 1fr);
  }

  .product-card-image {
      height: 200px;
  }
}

@media (min-width: 768px) {
  html {
      font-size: 16px;
  }

  .product-section {
      flex-direction: row;
      flex-wrap: wrap;
  }

  .product-image {
      width: 50%;
      margin-bottom: 0;
      padding: 2rem;
  }

  .product-info-section {
      width: 50%;
      padding-left: 2rem;
  }

  .high-jewellery-section {
      flex-direction: row;
  }

  .high-jewellery-content {
      width: 50%;
      padding-right: 2rem;
      margin-bottom: 0;
  }

  .high-jewellery-image {
      width: 50%;
      padding: 2rem;
  }

  .jewelry-care-section {
      flex-direction: row;
  }

  .jewelry-care-image {
      width: 50%;
      margin-bottom: 0;
      padding: 2rem;
  }

  .jewelry-care-content {
      width: 50%;
      padding-left: 2rem;
  }

  .similar-products-grid {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .similar-products-grid {
      grid-template-columns: repeat(4, 1fr);
  }

  .product-card-image {
      height: 220px;
  }
}

@media (min-width: 1200px) {
  .product-detail-wrapper {
      padding: 0 2rem;
  }

  .product-image img,
  .high-jewellery-image img,
  .jewelry-care-image img {
      max-height: 400px;
  }

  .product-card-image {
      height: 250px;
  }
}

@media (orientation: landscape) and (max-width: 900px) {
  .product-section,
  .high-jewellery-section,
  .jewelry-care-section {
      flex-direction: row;
  }

  .product-image,
  .product-info-section,
  .high-jewellery-content,
  .high-jewellery-image,
  .jewelry-care-image,
  .jewelry-care-content {
      width: 50%;
  }

  .high-jewellery-content {
      margin-bottom: 0;
  }

  .jewelry-care-image {
      margin-bottom: 0;
  }
}

@media (hover: none) {
  .add-to-favorites {
      padding: 0.875rem 1rem;
  }

  .color-option {
      width: 24px;
      height: 24px;
  }

  .color-dot {
      width: 10px;
      height: 10px;
  }

  .breadcrumb-link {
      padding: 0.25rem 0;
  }
}

@media (prefers-contrast: high) {
  body {
      color: #000;
  }

  .breadcrumb-link,
  .info-label,
  .section-text {
      color: #333;
  }

  .info-dots {
      border-bottom: 1px dotted #666;
  }

  .add-to-favorites {
      border: 2px solid #000;
  }

  .divider-line {
      background-color: #666;
      height: 2px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
      transition: none !important;
      animation: none !important;
  }
}

@media print {
  body {
      font-size: 12pt;
      color: #000;
      background: #fff;
  }

  .product-detail-wrapper {
      max-width: 100%;
      padding: 0;
  }

  .add-to-favorites,
  .similar-products-section {
      display: none;
  }
}