#product-detail {
  position: relative;
  width: 100%;
  padding-top: calc(var(--h-header) + var(--header-top) + 20px);
  background: #fff;
}

#product-detail .breadcrumb {
  position: relative;
  width: 100%;
  margin-top: 25px;
  font-size: 14px;
  color: #777;
}

#product-detail .breadcrumb a {
  color: #528403;
  text-decoration: none;
}

#product-detail .breadcrumb a:hover {
  text-decoration: underline;
}

#product-detail .breadcrumb .sep {
  margin: 0 8px;
  color: #bbb;
}

#product-detail .hero {
  position: relative;
  width: 100%;
  margin-top: 30px;
  margin-bottom: 40px;
}

#product-detail .hero .image {
  position: relative;
  float: left;
  width: 45%;
  border: 1px solid silver;
  box-shadow: 5px 5px 10px 2px #e5e4e2;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
}

#product-detail .hero .image .frame {
  position: relative;
  float: left;
  width: 80%;
  padding-top: 80%;
  left: 50%;
  transform: translate(-50%);
  margin: 5% 0;
}

#product-detail .hero .image .frame img {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%);
  height: 100%;
}

#product-detail .hero .image .badge-offer {
  position: absolute;
  top: 25px;
  right: 25px;
  z-index: 2;
  background: #fd7200;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 7px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#product-detail .hero .image .badge-offer i {
  font-size: 13px;
}

#product-detail .hero .info {
  position: relative;
  float: right;
  width: 50%;
}

#product-detail .hero .info h1 {
  font-size: 38px;
  font-weight: 700;
  color: #333;
  margin: 0 0 15px 0;
}

#product-detail .hero .info .price-block {
  position: relative;
  float: left;
  width: 100%;
  margin: 10px 0 25px 0;
}

#product-detail .hero .info .price-block .price {
  font-size: 36px;
  font-weight: 700;
  color: #222;
}

#product-detail.offer .hero .info .price-block .price {
  color: var(--brand);
}

#product-detail .hero .info .price-block .price .unit {
  font-size: 18px;
  font-weight: 400;
  margin-left: 8px;
  color: #777;
}

#product-detail .hero .info .price-block .price-old {
  display: inline-block;
  margin-left: 15px;
  font-size: 20px;
  color: #999;
  text-decoration: line-through;
}

#product-detail .hero .info .description {
  position: relative;
  float: left;
  width: 100%;
  margin: 15px 0 25px 0;
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  white-space: pre-line;
}

#product-detail .hero .info .actions {
  position: relative;
  float: left;
  width: 100%;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

#product-detail .hero .info .quantity {
  position: relative;
  float: left;
  width: 140px;
  height: 50px;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 15px;
}

#product-detail .hero .info .quantity .icon {
  position: relative;
  float: left;
  width: 40px;
  height: 50px;
  background: var(--qty-btn-bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
  color: var(--qty-btn-fg);
  padding: 0;
}

#product-detail .hero .info .quantity .icon:hover {
  background: var(--qty-btn-bg-hover);
  color: var(--qty-btn-fg-hover);
}

#product-detail .hero .info .quantity .icon i {
  font-size: 16px;
}

#product-detail .hero .info .quantity input {
  position: relative;
  float: left;
  width: 60px;
  height: 50px;
  padding: 0;
  margin: 0;
  font-size: 18px;
  border: none;
  -webkit-appearance: none;
  -moz-appearance: textfield;
  outline: 0;
  text-align: center;
  color: #333;
}

#product-detail .hero .info .add-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 32px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
  box-shadow: 0 6px 16px rgba(82, 132, 3, 0.22);
  font-family: inherit;
}

#product-detail .hero .info .add-cart i {
  font-size: 18px;
}

#product-detail .hero .info .add-cart:hover {
  background: var(--brand-dark);
}

#product-detail .hero .info .add-cart:active {
  transform: scale(0.98);
}

#product-detail .hero .info .add-cart.bump i {
  animation: cart-bump 0.45s ease;
}


#related-products {
  position: relative;
  float: left;
  width: 100%;
  background: #f8f8f4;
  padding: 40px 0 60px 0;
}

#related-products .title {
  position: relative;
  float: left;
  width: 100%;
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #528403;
  margin-bottom: 20px;
}

#related-products #products {
  margin-top: 10px;
}

@media (max-width: 1000px) {
  #product-detail .hero .image {
    width: 100%;
    border-radius: 15px;
  }

  #product-detail .hero .info {
    width: 100%;
    margin-top: 25px;
  }

  #product-detail .hero .info h1 {
    font-size: 26px;
    text-align: center;
  }

  #product-detail .hero .info .price-block {
    text-align: center;
  }

  #product-detail .hero .info .price-block .price {
    font-size: 28px;
  }

  #product-detail .hero .info .description {
    font-size: 15px;
    text-align: center;
  }

  #product-detail .hero .info .actions {
    align-items: stretch;
    width: 100%;
  }

  #product-detail .hero .info .quantity {
    width: 100%;
    margin-right: 0;
    display: flex;
    height: 50px;
  }

  #product-detail .hero .info .quantity .icon {
    flex: 0 0 56px;
    width: 56px;
    height: 50px;
  }

  #product-detail .hero .info .quantity .icon i {
    font-size: 18px;
  }

  #product-detail .hero .info .quantity input {
    flex: 1 1 auto;
    width: 100%;
    height: 50px;
    font-size: 16px;
  }

  #product-detail .hero .info .add-cart {
    width: 100%;
    padding: 0 18px;
    font-size: 14px;
    justify-content: center;
  }

  #related-products .title {
    font-size: 22px;
  }
}
