/* =========================================================
   PRODUCT DETAIL LAYOUT
========================================================= */

.productHero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(16px, 2.6vw, 28px);
  align-items: start;
  margin-top: 18px;
}

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

.productMedia {
  overflow: hidden;
}

.productMedia__imgWrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(260px, 34vw, 390px);
  background: #f7f7f5;
  border-bottom: 1px solid rgba(15, 47, 31, 0.10);
  overflow: hidden;
}

.productMedia__imgEl {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.productMedia__imgEl--contain {
  object-fit: contain;
  padding: 24px;
  background: #f7f8f6;
}

.productThumbs {
  display: flex;
  gap: 8px;
}

.productThumbs--overlay {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 3;
  padding: 8px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 47, 31, 0.08);
  box-shadow: 0 12px 30px rgba(15, 47, 31, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.productThumb {
  display: block;
  width: 58px;
  height: 58px;
  padding: 4px;
  border: 1px solid rgba(15, 47, 31, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.productThumb:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 47, 31, 0.22);
}

.productThumb img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.productThumb span {
  display: none;
}

.productThumb.is-active {
  border-color: rgba(118, 193, 74, 0.75);
  box-shadow: 0 0 0 4px rgba(118, 193, 74, 0.16);
}

.productThumb:focus-visible {
  outline: none;
  border-color: rgba(118, 193, 74, 0.75);
  box-shadow: 0 0 0 4px rgba(118, 193, 74, 0.18);
}

.productMedia__body {
  padding: 18px 18px 20px;
}

.productMeta {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.productMeta__label {
  margin-bottom: 6px;
  color: var(--brand-900);
  font-size: 1rem;
  font-weight: 800;
}

.productMeta__value {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.inlineChecks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.inlineChecks__item {
  margin: 0;
  padding: 0;
  color: rgba(15, 47, 31, 0.88);
  font-weight: 650;
  line-height: 1.45;
  white-space: nowrap;
}

.inlineChecks__item:last-child {
  white-space: normal;
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {
  .productMedia__imgWrap {
    height: clamp(240px, 68vw, 340px);
  }

  .productThumbs--overlay {
    left: 12px;
    right: 12px;
    bottom: 12px;
    justify-content: center;
    padding: 7px;
    gap: 7px;
  }

  .productThumb {
    width: 52px;
    height: 52px;
  }
}
/* =========================================================
   PRODUCT SIDE PANELS
========================================================= */

.productPanel {
  padding: 18px 18px 20px;
}

.productPanel__title {
  margin: 0 0 12px;
  color: var(--brand-900);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.whyList {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.whyList__item {
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(15, 47, 31, 0.12);
  color: rgba(15, 47, 31, 0.88);
  font-weight: 650;
  line-height: 1.55;
}

.whyList__item:last-child {
  border-bottom: 0;
}


/* =========================================================
   PRODUCT SPECS
========================================================= */

.productSpecs {
  margin-top: 14px;
  padding: 18px;
}

.productSpecs__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.specTableWrap {
  overflow-x: auto;
  border: 0;
  border-bottom: 1px solid rgba(15, 47, 31, 0.18);
  border-radius: 0;
  background: #fff;
}

.specTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.specTable th,
.specTable td {
  padding: 14px;
  text-align: left;
  border-bottom: 1px solid rgba(15, 47, 31, 0.18);
}

.specTable thead th {
  background: rgb(232 232 232);
  color: var(--brand-900);
  font-weight: 750;
  letter-spacing: 0.01em;
}

.specTable tbody td {
  color: rgba(15, 47, 31, 0.92);
  font-weight: 750;
}

.specTable tbody tr:last-child td {
  border-bottom: 0;
}

.productSpecs__foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 14px;
  padding-top: 10px;
}

.productSpecs__kv {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.productSpecs__k {
  color: var(--brand-900);
  font-weight: 700;
}

.productSpecs__v {
  color: var(--muted);
  font-weight: 700;
}

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


/* =========================================================
   PAGE BACK LINK
========================================================= */

.pageBack {
  margin-bottom: 12px;
}

.pageBack__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  color: rgba(15, 47, 31, 0.78);
  font-size: 16px;
  font-weight: 750;
  text-decoration: none;
}

.pageBack__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease, opacity 0.28s ease, color 0.18s ease;
}

.pageBack__link:hover {
  color: var(--brand-900);
}

.pageBack__link:hover::after {
  opacity: 0.85;
  transform: scaleX(0);
}

.pageBack__link:focus-visible {
  padding: 2px 4px 5px;
  border-radius: 6px;
  outline: none;
  color: var(--brand-900);
  box-shadow: 0 0 0 4px rgba(118, 193, 74, 0.18);
}

.pageBack__link:focus-visible::after {
  opacity: 0.85;
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .pageBack__link::after {
    transition: none;
  }
}


.productSpecsCta{
  margin-top: 14px;
  padding: 18px;
  border: 1px solid rgba(118, 193, 74, 0.28);
  border-radius: var(--radius-lg);
  background:var(--accent);
  box-shadow: 0 12px 28px rgba(15, 47, 31, 0.06);
}

.productSpecsCta__content{
  display: grid;
  gap: 6px;
}

.productSpecsCta__title{
  margin: 0;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 850;
  letter-spacing: -0.01em;
}


.productSpecsCta__btn{
  width: 100%;
  justify-content: center;
  margin-top: 14px;
}

@media (min-width: 720px){
  .productSpecsCta{
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 16px;
  }

  .productSpecsCta__btn{
    width: auto;
    margin-top: 0;
    white-space: nowrap;
  }
}
