.product-page {
  background: #fff;
  padding-top: 28px;
}

.product-page .container {
  width: min(1180px, calc(100% - 48px));
}

.product-detail {
  display: grid !important;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
  margin-bottom: 34px;
}

.product-gallery {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
}

.product-thumbs {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 540px;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.product-thumbs::-webkit-scrollbar {
  display: none;
}

.product-thumb {
  width: 92px;
  height: 92px;
  border: 1px solid #eadcd5;
  border-radius: 8px;
  padding: 4px;
  background: #fff;
  cursor: pointer;
  transition: .2s ease;
}

.product-thumb.active,
.product-thumb:hover {
  border-color: #d88480;
  box-shadow: 0 8px 18px rgba(216,132,128,.16);
}

.product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.product-main-image {
  grid-column: 2;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #f5ebe5;
  box-shadow: 0 18px 46px rgba(79,48,35,.11);
}

.product-image-link,
.product-image-link img {
  display: block;
}

.product-main-image img {
  width: 100%;
  aspect-ratio: 1 / 1.05;
  object-fit: cover;
  cursor: zoom-in;
}

.zoom-hint {
  position: absolute;
  right: 14px;
  top: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(187,103,100,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #4a403b;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 8px 22px rgba(40,25,20,.12);
}

.product-info {
  background: #fff;
  border: 1px solid #eadcd5;
  border-radius: 10px;
  padding: 28px;
  box-shadow: 0 14px 38px rgba(79,48,35,.07);
}

.product-info .breadcrumbs {
  margin-bottom: 14px;
}

.product-info h1 {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: 0;
  font-weight: 850;
  color: #282320;
  margin: 0 0 12px;
}

.product-code {
  color: #8c817b;
  font-size: 14px;
  margin-bottom: 10px;
}

.stock-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #edf9ef;
  color: #2d8a42;
  padding: 7px 11px;
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 18px;
}

.product-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  color: #bb6764;
  margin: 0 0 20px;
}

.current-price {
  color: #bb6764;
  font-weight: 900;
}

.old-price {
  color: #9d9490;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  font-weight: 700;
}

.product-price .old-price {
  font-size: 18px;
}

.product-actions {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(140px, auto);
  gap: 12px;
  align-items: center;
  margin-bottom: 22px;
}

.product-actions .button {
  min-height: 48px;
}

.product-mini-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.product-mini-specs div {
  border: 1px solid #eadcd5;
  border-radius: 8px;
  background: #fffaf7;
  padding: 12px;
}

.product-mini-specs span {
  display: block;
  color: #82766f;
  font-size: 13px;
  margin-bottom: 4px;
}

.product-mini-specs b {
  color: #282320;
  font-size: 14px;
}

.product-service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.service-card {
  border: 1px solid #eadcd5;
  border-radius: 10px;
  background: #fff;
  padding: 16px;
}

.service-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  color: #282320;
}

.service-card p {
  margin: 0 0 6px;
  color: #403833;
}

.service-card span {
  color: #82766f;
  font-size: 14px;
}

.product-tabs-section {
  background: #fff;
  border: 1px solid #eadcd5;
  border-radius: 10px;
  box-shadow: 0 14px 38px rgba(79,48,35,.07);
  overflow: hidden;
  margin-bottom: 44px;
}

.product-tabs {
  display: flex;
  border-bottom: 1px solid #eadcd5;
  overflow-x: auto;
}

.tab-button {
  border: 0;
  background: #fff;
  padding: 18px 24px;
  cursor: pointer;
  font-weight: 850;
  color: #4f4742;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.tab-button.active {
  color: #bb6764;
  border-bottom-color: #d88480;
}

.tab-panel {
  display: none;
  padding: 28px;
}

.tab-panel.active {
  display: block;
}

.tab-panel h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 30px;
  color: #001f34;
}

.tab-panel h2 span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border: 2px solid #001f34;
  border-radius: 50%;
  font-size: 14px;
}

.tab-panel h3 {
  margin: 0 0 14px;
  color: #001f34;
}

.tab-panel p {
  max-width: 900px;
  color: #3f3935;
  font-size: 16px;
}

.characteristics-list {
  display: grid;
  max-width: 900px;
}

.characteristic-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 17px 20px;
  color: #0c3b61;
}

.characteristic-row:nth-child(even) {
  background: #f6f9fb;
}

.characteristic-row span {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

.characteristic-row span::after {
  content: "";
  height: 1px;
  border-bottom: 1px dotted #8d9aa3;
  flex: 1;
  min-width: 24px;
  transform: translateY(-5px);
}

.characteristic-row b {
  color: #050505;
  min-width: 260px;
  font-weight: 750;
}

.reviews-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.review-placeholder,
.question-box {
  max-width: 720px;
  border: 1px dashed #d8c5bc;
  border-radius: 10px;
  background: #fffaf7;
  padding: 20px;
  color: #514842;
}

.review-placeholder {
  color: #bb6764;
  font-weight: 850;
}

.interaction-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 22px;
}

.interaction-item {
  border: 1px solid #eadcd5;
  border-radius: 10px;
  background: #fffaf7;
  padding: 16px;
}

.interaction-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 8px;
}

.interaction-meta b {
  color: #2b2522;
}

.interaction-meta span {
  color: #8a7d76;
  font-size: 13px;
}

.review-stars {
  color: #d88480;
  letter-spacing: 2px;
  font-size: 16px;
  margin-bottom: 8px;
}

.interaction-item p {
  margin: 0;
  color: #403833;
}

.answer-box {
  margin-top: 12px;
  border-left: 3px solid #d88480;
  background: #fff;
  border-radius: 8px;
  padding: 11px 12px;
  color: #403833;
}

.interaction-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin-top: 20px;
  border: 1px solid #eadcd5;
  border-radius: 12px;
  background: #fff;
  padding: 18px;
}

.interaction-form h3 {
  margin: 0;
  font-size: 20px;
  color: #282320;
}

.interaction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.interaction-form label {
  display: grid;
  gap: 7px;
  color: #3d3632;
  font-weight: 800;
}

.interaction-form input,
.interaction-form select,
.interaction-form textarea {
  width: 100%;
  border: 1px solid #eadcd5;
  border-radius: 9px;
  background: #fffaf7;
  padding: 12px 13px;
  color: #282320;
  font-weight: 500;
}

.interaction-form textarea {
  resize: vertical;
  min-height: 110px;
}

.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-notice {
  margin: 16px 0;
  border-radius: 10px;
  background: #edf9ef;
  color: #2d6f3a;
  padding: 12px 14px;
  font-weight: 800;
}

.form-notice.error {
  background: #fff0ee;
  color: #9b3d37;
}

.product-recommendations {
  padding-bottom: 58px;
}

.product-recommendations h2 {
  margin: 0 0 22px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -.04em;
}

.product-recommendations .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(19, 15, 14, .9);
}

.image-lightbox.open {
  display: flex;
}

.image-lightbox img {
  max-width: min(96vw, 1120px);
  max-height: 92vh;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.lightbox-close {
  position: absolute;
  right: 24px;
  top: 18px;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #1f1d1c;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
}

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

  .product-gallery {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .product-thumb {
    width: 76px;
    height: 76px;
  }

  .product-recommendations .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .product-page .container {
    width: min(100% - 28px, 1180px);
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }

  .product-main-image,
  .product-thumbs {
    grid-column: auto;
    grid-row: auto;
  }

  .product-main-image {
    order: 1;
  }

  .product-thumbs {
    order: 2;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    max-height: none;
    padding: 2px 0 4px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .product-thumb {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
  }

  .product-info {
    padding: 18px;
  }

  .product-actions,
  .product-mini-specs {
    grid-template-columns: 1fr;
  }

  .interaction-grid {
    grid-template-columns: 1fr;
  }

  .tab-panel {
    padding: 20px 14px;
  }

  .reviews-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .characteristic-row {
    padding: 14px 10px;
    gap: 10px;
  }

  .characteristic-row b {
    min-width: 110px;
  }

  .product-recommendations .product-grid {
    grid-template-columns: 1fr;
  }
}
