.product-page { padding: 25px 0 58px; }

.product-breadcrumbs {
  width: 300px;
  min-height: 82px;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px 7px;
  padding: 4px 12px 10px 0;
  border-right: 2px dotted var(--orange);
  border-bottom: 2px dotted var(--orange);
  color: #66686e;
  line-height: 1.35;
}

.product-breadcrumbs a:hover { color: var(--orange); }

.product-layout-main {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 21px;
  margin-top: 14px;
  margin-bottom: 48px;
}

.product-gallery { min-width: 0; }

.product-main-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: block;
  padding: 0;
  border: 0;
  background: #fff;
  cursor: zoom-in;
}

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

.product-main-image i {
  position: absolute;
  right: 50%;
  bottom: -18px;
  color: #737680;
  font-size: 14px;
}

.product-thumbnails {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 34px;
}

.product-thumbnail {
  width: 74px;
  height: 74px;
  padding: 3px;
  border: 1px solid transparent;
  background: #fff;
}

.product-thumbnail.is-active { border-color: var(--orange); }
.product-thumbnail img { width: 100%; height: 100%; object-fit: contain; }

.product-links {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  color: #202127;
}

.product-links button {
  width: max-content;
  padding: 0;
  border: 0;
  background: transparent;
}

.product-links button:hover { color: var(--orange); }
.rating-stars { color: var(--orange); font-size: 18px; letter-spacing: 1px; }

.product-content { min-width: 0; }

.product-page-title {
  margin: -55px 0 15px;
  padding: 0 14px 8px;
  border-bottom: 1px solid #929399;
  color: #17181c;
  font-size: 18px;
  font-weight: 700;
}

.product-pictograms {
  display: flex;
  gap: 8px;
  min-height: 62px;
  align-items: center;
  padding-bottom: 11px;
  border-bottom: 1px solid #929399;
}

.product-pictograms img {
  width: 43px;
  height: 43px;
  object-fit: contain;
}

.product-features {
  min-height: 139px;
  margin: 0 0 29px;
  padding: 22px 20px 17px 28px;
  border: 2px solid #aaa;
  border-top: 0;
  border-radius: 0 0 16px 16px;
  line-height: 1.45;
}

.product-page-title + .product-features {
  border-top: 2px solid #aaa;
  border-radius: 16px;
}

.product-composition-title,
.product-section-title {
  margin: 18px 0 12px;
  font-size: 16px;
  font-weight: 700;
}

.variants-scroll {
  max-width: 100%;
  overflow-x: auto;
}

/* Live-like HTML table (journal2 .items) */
.variants-table.items {
  width: 100%;
  min-width: 0;
  margin: 0;
  border: 0;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
  color: #575963;
  background: transparent;
}

.variants-table.items col.col-art { width: 4.8em; }
.variants-table.items col.col-attr { width: 3.5em; }
.variants-table.items col.col-unit { width: 5em; }
.variants-table.items col.col-qty { width: 3.2em; }
.variants-table.items col.col-price { width: 5.8em; }
.variants-table.items col.col-actions { width: 8.2em; }
.variants-table.items col.col-avail { width: 4.6em; }

.variants-table.items > thead > tr > th,
.variants-table.items > tbody > tr > td {
  border: 0;
  vertical-align: middle;
  text-align: center;
  background: transparent;
}

.variants-table.items > thead > tr > th {
  font-weight: 700;
  color: #f60;
  font-size: 13px;
  line-height: 1.15;
  padding: 0 .25em .5em;
  white-space: normal;
}

.variants-table.items > thead > tr > th.th-avail {
  font-size: 11px;
  white-space: nowrap;
  line-height: 1.15;
}

.variants-table.items td.date-coming {
  font-size: 12px;
  white-space: nowrap;
  color: #55565c;
}

.variants-table.items > thead > tr > th.attr-icon img {
  width: 36px;
  height: 28px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.variants-table.items > tbody > tr > td {
  border-bottom: 2px solid #aaa;
  padding: .45em .25em;
  height: 48px;
}

.variants-table.items td.art {
  border: 2px solid #aaa !important;
  border-radius: 1em 1em 0;
  font-weight: 700;
  width: 5em;
  min-width: 4.5em;
  font-size: 1.2em;
  padding: .2em 0;
  color: #4d505b;
}

.variants-table.items th.art {
  border: 0 !important;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  color: #f60;
  padding: 0 .25em .5em;
  text-align: center;
  white-space: nowrap;
}

.variants-table.items td.art a {
  color: inherit;
  text-decoration: none;
}

.variants-table.items td.art a:hover {
  color: var(--orange);
}

.complect-unit {
  width: 100%;
  max-width: 6.5em;
  height: 32px;
  padding: 0 2px;
  border: 1px solid #cfd0d4;
  background: #fff;
  color: #3b3c42;
  font-size: 12px;
  vertical-align: middle;
}

.variant-actions {
  white-space: nowrap;
  padding-left: .2em !important;
  padding-right: .2em !important;
}

.variant-actions .variant-buy,
.variant-actions .variant-compare {
  vertical-align: middle;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.variant-compare {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  margin-left: 3px;
  border: 1px solid #cfd0d4;
  border-radius: 50%;
  color: #555;
  background: #fff;
}

.variant-compare:hover {
  color: #fff;
  border-color: var(--orange);
  background: var(--orange);
}

.price-box[hidden] { display: none !important; }

.variants-table.items input.complect-qty {
  width: 41px;
  height: 32px;
  border: 1px solid #e0e1e3;
  text-align: center;
  vertical-align: middle;
}

.variant-buy {
  min-height: 32px;
  padding: 7px 10px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: #292a2e;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.variant-buy:hover { background: var(--orange); }

.availability {
  color: var(--orange);
  font-size: 19px;
  text-align: center;
}

.availability-call {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border: 1px solid #1ebc52;
  border-radius: 50%;
  color: #1ebc52;
  font-size: 13px;
}

/* Live Journal .table.complect-table */
.product-composition-title {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: #333745;
}

.variants-scroll:has(.complect-composition) {
  margin: 15px 10px 0 0;
  border: 1px solid #ddd;
  padding: 0 10px 10px;
  overflow-x: auto;
}

.variants-table.items.complect-composition {
  min-width: 0;
  width: 100%;
  color: #333745;
  font-size: 16px;
  table-layout: auto;
}

.variants-table.items.complect-composition > thead > tr > th,
.variants-table.items.complect-composition > tbody > tr > td {
  height: auto;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  vertical-align: middle;
  text-align: left !important;
  white-space: normal;
  padding: 5px 1px;
  font-size: 16px;
  line-height: 1.35;
  color: #333745;
}

.variants-table.items.complect-composition > thead > tr.compl-part-head > th {
  padding: 15px 1px 7px;
  font-size: 16px;
  font-weight: 700;
  color: #333745 !important;
  text-align: left !important;
}

.variants-table.items.complect-composition > thead:not(:first-child) > tr.compl-part-head > th {
  padding-top: 20px;
}

.variants-table.items.complect-composition > tbody > tr > td {
  border-top: 1px solid #ddd !important;
}

.complect-composition .composition-name {
  width: 60%;
  white-space: nowrap;
}

.complect-composition .composition-products {
  width: 40%;
}

.complect-composition .composition-name img {
  max-height: 28px;
  margin-right: 6px;
  vertical-align: middle;
}

.complect-composition a {
  color: #ff6400;
  text-decoration: none;
  font-weight: 400;
}

.complect-composition a:hover {
  color: #ff6400;
  text-decoration: underline;
}

.complect-composition .composition-products a.is-out {
  opacity: .45;
}

.product-complect-attr-unit {
  color: #ff6400;
}

.reviews-section {
  margin: 28px 0 0;
  color: #383a47;
}

.reviews-title {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 700;
}

.reviews-section p {
  margin: 0 0 16px;
  font-size: 14px;
}

.review-open,
.review-submit {
  min-height: 34px;
  padding: 8px 18px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: #292a2e;
  font-size: 12px;
  font-weight: 700;
}

.review-open:hover,
.review-submit:hover { background: var(--orange); }

.review-dialog {
  width: min(480px, calc(100% - 30px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 6px;
  box-shadow: 0 12px 45px rgba(0, 0, 0, .36);
}

.review-dialog::backdrop { background: rgba(0, 0, 0, .55); }

.review-form {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 22px 24px 20px;
}

.review-close {
  position: absolute;
  top: 10px;
  right: 12px;
  padding: 0;
  border: 0;
  color: #c2c2c2;
  background: transparent;
  font-size: 16px;
}

.review-form-title {
  margin-bottom: 4px;
  padding-right: 28px;
  color: #28292d;
  font-size: 18px;
  font-weight: 700;
}

.review-form label {
  display: grid;
  gap: 5px;
  color: #34353b;
  font-size: 14px;
}

.review-form b { color: #db3447; }

.review-form input,
.review-form textarea {
  width: 100%;
  border: 1px solid #dddfe2;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .05);
  font: inherit;
}

.review-form input { height: 36px; padding: 6px 10px; }
.review-form textarea { min-height: 90px; padding: 8px 10px; resize: vertical; }
.review-form small { font-size: 12px; color: #777; }

.review-rating {
  margin: 0;
  padding: 0;
  border: 0;
}

.review-rating legend {
  margin-bottom: 6px;
  font-size: 14px;
}

.review-rating div { display: flex; gap: 10px; }

.review-rating button {
  padding: 0;
  border: 0;
  color: var(--orange);
  background: transparent;
  font-size: 18px;
}

.review-submit {
  justify-self: start;
  margin-top: 2px;
}

@media (max-width: 980px) {
  .product-breadcrumbs { width: 260px; }
  .product-layout-main { grid-template-columns: 260px minmax(0, 1fr); }
  .product-page-title { margin-top: -55px; }
}

@media (max-width: 760px) {
  .product-page { padding-top: 18px; }
  .product-breadcrumbs {
    width: 100%;
    min-height: 0;
    padding-bottom: 12px;
    border-right: 0;
  }
  .product-layout-main {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .product-gallery { max-width: 430px; margin-inline: auto; }
  .product-page-title { margin: 0 0 14px; padding-left: 0; }
  .product-pictograms { overflow-x: auto; }
  .product-features { margin-bottom: 20px; }
  .reviews-section { margin-top: 34px; }
}

@media (max-width: 520px) {
  .product-pictograms img { width: 39px; height: 39px; }
  .product-features { padding: 17px 14px 15px 29px; }
  .variants-scroll {
    margin-inline: -17px;
    padding-inline: 17px;
  }
  .review-form { padding: 18px 16px 16px; }
}
