.product-detail {

}

.product-detail-button-wrapper {
  display: flex;
  justify-content: center;
  padding-top: 64px;
}
.product-detail-button-wrapper .btn_primary {
  width: 275px;
}

.product-detail__left {
  grid-column: 1;
  width: 100%;
}

.product-images {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  position: sticky;
  top: 150px;
}

.product-images__main-swiper {
  width: 100%;
  height: 450px;
  border-radius: 12px;
  overflow: hidden;
}

.product-images__main-swiper .swiper-slide {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
}

.product-images__main-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-images__thumbnails-swiper {
  width: 100%;
  height: 109px;
}

.product-images__thumbnails-swiper .swiper-slide {
  width: auto;
  height: 100%;
}

.product-images__thumbnail {
  height: 109px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s;
}

.product-images__thumbnail:hover {
  opacity: 0.8;
}

.product-images__thumbnail.swiper-slide-thumb-active {
  opacity: 0.6;
}

.product-images__thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-info__desktop {
  grid-column: 1;
}

.product-detail__right {
  grid-column: 1;
}

/* Product Info */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}


.product-info__header {
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  margin-bottom: 24px;
}

.product-info__price {
  margin-bottom: 32px;
}

.product-info__cart-btn--disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
.product-info__cart-btn--disabled:hover {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.product-info__category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
  height: 28px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: #353535;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.375;
  margin-bottom: 6px;
  font-family: var(--font-family);
}

.product-info__title {
  color: #353535;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.375;
  margin: 0;
  font-family: var(--font-family);
}

.product-info__price {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.product-info__price-main {
  color: #353535;
  font-weight: 600;
  font-size: 48px;
  line-height: 1.25;
  font-family: var(--font-family);
}

.product-info__price-unit {
  color: #353535;
  font-weight: 600;
  font-size: 32px;
  line-height: 1.25;
  font-family: var(--font-family);
}

.product-info__price-tax {
  color: #858585;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.375;
  margin-left: 8px;
  font-family: var(--font-family);
}

.product-info__quantity-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-info__quantity-label {
  color: #353535;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font-family);
}

.product-info__quantity {
  display: flex;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  overflow: hidden;
  width: 154px;
  height: 48px;
}

.product-info__quantity-btn {
  width: 47px;
  height: 46px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: opacity 0.2s;
}

.product-info__quantity-btn:hover {
  opacity: 0.8;
}

.product-info__quantity-btn--minus {
  border-right: 1px solid rgba(0, 0, 0, 0.2);
}

.product-info__quantity-btn--plus {
  border-left: 1px solid rgba(0, 0, 0, 0.2);
}

.product-info__quantity-value {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #353535;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.375;
  font-family: var(--font-family);
}

.product-info__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.product-info__spec-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: calc(50% - 8px);
}

.product-info__spec-label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  width: 124px;
  height: 28px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  color: #353535;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.5;
  flex: 0 0 124px;
  font-family: var(--font-family);
}

.product-info__spec-value {
  flex: 1;
  color: #353535;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font-family);
}

.product-info__cart-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 2px 12px;
  width: 340px;
  height: auto;
  background: #8B6E00;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}

.product-info__cart-btn:hover {
  opacity: 0.9;
}

.product-info__cart-btn svg {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
}

.product-info__cart-text {
  flex: 1;
  color: #F5F5F5;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  padding: 10px 0;
  font-family: var(--font-family);
}

.product-info__section {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 48px;
}
.product-info__section:last-child {
  margin-bottom: 0;
}

.product-info__section-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.product-info__section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  width: 100%;
}

.product-info__section-header svg {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
}

.product-info__section-title {
  color: #353535;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  margin: 0;
  font-family: var(--font-family);
}
.product-info__section-title-20 {
  font-size: 20px;
}

.product-info__description,
.product-info__notes {
  color: #000000;
  font-weight: 500;
  font-size: 16px;
  line-height: 2;
  margin: 0;
  font-family: var(--font-family);
}

.product-info__product-info-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 40px;
}
.product-info__form {
  width: 100%;
  display: flex;
  align-items: flex-end;
  gap: 40px;
}


@media screen and (max-width: 1200px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .product-detail__left {
    grid-column: 1;
  }
  .product-info__desktop {
    grid-column: 1;
  }
  .product-detail__right {
    grid-column: 1;
  }
  .product-images__main-swiper {
    height: 400px;
  }
  .product-images__thumbnails-swiper {
    height: 90px;
  }
  .product-images__thumbnail {
    height: 90px;
  }
  .product-info__title {
    font-size: 28px;
  }
  .product-info__price-main {
    font-size: 40px;
  }
  .product-info__price-unit {
    font-size: 28px;
  }
  .product-info__cart-btn {
    width: 100%;
    max-width: 340px;
  }
  .product-info__header {
    padding-bottom: 12px;
    margin-bottom: 12px;
  }
}

@media screen and (max-width: 890px) {
  .product-detail {
    grid-template-columns: 1fr;
    gap: 64px;
  }
  .product-detail__left {
    grid-column: 1;
  }
  .product-info__desktop {
    grid-column: 1;
  }
  .product-detail__right {
    grid-column: 1;
    width: 100%;
  }
  .product-images {
    gap: 16px;
  }
  .product-images__main-swiper {
    min-height: 272px;
    height: 65vw;
  }
  .product-images__thumbnails-swiper {
    height: 88px;
  }
  .product-images__thumbnails-swiper .swiper-slide {
    width: calc(33.333% - 3px);
  }
  .product-images__thumbnail {
    height: 88px;
  }
  .product-info {
    gap: 20px;
  }
  .product-info__price-main {
    font-size: 36px;
  }
  .product-info__price-unit {
    font-size: 24px;
  }
  .product-info__price-tax {
    font-size: 16px;
  }
  .product-info__quantity {
    width: 100%;
    max-width: 154px;
  }
  .product-info__spec-label {
    width: 100px;
    flex: 0 0 100px;
    font-size: 14px;
    padding: 4px 8px;
  }
  .product-info__spec-value {
    font-size: 14px;
  }
  .product-info__cart-btn {
    width: 100%;
    max-width: 100%;
  }
  .product-info__description,
  .product-info__notes {
    font-size: 14px;
  }
  .product-info__product-info-wrapper {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .product-info__form {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .product-info__quantity-wrapper {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  .product-info__price {
    margin-bottom: 24px;
  }
  .product-info__spec-row {
    width: 100%;
  }
  .product-info {
    gap: 0;
  }
}


/* layout */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "media header"
    "media detail";
  row-gap: 0;
  width: 100%;
  padding-top: 56px;
  gap: 48px;
  align-items: start;
}

.product-layout-media  { grid-area: media; width: 600px; }
.product-layout-header { grid-area: header; width: 100%; }
.product-layout-detail { grid-area: detail; width: 100%; }

@media (max-width: 1200px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-layout-media {
    width: 100%;
  }
}

/* mobile */
@media (max-width: 890px) {
  .product-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "header"  /* tiêu đề + giá + add to cart */
      "media"   /* <- ảnh nằm NGAY DƯỚI nút */
      "detail";
  }
  .product-layout-media {
    width: calc(100vw - 32px);
    margin-top: -16px;
  }
}
