/* 产品详情页专用样式 */
/* 导入基础布局样式 */
@import "../../layout/base.css";

/* 导入通用组件样式 */
@import "../../common/navigation/navigation.css";
@import "../../common/banner/banner.css";
@import "../../common/search/search.css";
@import "../../common/buttons/buttons.css";
@import "../../common/footer/footer.css";

@import "./inquiry-modal.css";

/* 导入退换货政策弹窗样式 */
@import "./return-policy-modal.css";

.product-gallery {
  position: relative;
}

.main-image {
  width: 100%;
  height: 700px;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}
.main-image .next-btn,
.main-image .pre-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}
.main-image .next-btn {
  right: -64px;
  margin-right: 24px;
}
.main-image .pre-btn {
  left: -64px;
  margin-left: 24px;
}
.main-image:hover .next-btn {
  right: 0;
}
.main-image:hover .pre-btn {
  left: 0;
}

.thumbnail-gallery {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  opacity: 0.5;
}

.thumbnail.active {
  border-color: #633d26;
  opacity: 1;
}

.product-info {
  padding: 0 32px;
}

.breadcrumb {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.product-title {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
  color: #633d26;
}

.product-subtitle {
  font-size: 1.125rem;
  color: #6b7280;
  margin-bottom: 16px;
}

.price-section {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.current-price {
  font-size: 2rem;
  font-weight: 600;
  color: #633d26;
}

.original-price {
  font-size: 1.25rem;
  color: #9ca3af;
  text-decoration: line-through;
  margin-left: 12px;
}

.discount-badge {
  background-color: #fef3c7;
  color: #92400e;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-left: 12px;
}

.quantity-selector {
  margin-bottom: 24px;
  display: flex;
  gap: 20px;
}

.quantity-input {
  width: 160px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 1rem;
}

.add-to-cart-btn {
  color: white;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
  background-color: #f97316;
  transform: translateY(-2px);
}

.product-tabs {
  margin-top: 32px;
}

.tab-buttons {
  display: flex;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 24px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #d1bfa7 #f3f4f6;
}


/* Webkit 浏览器滚动条样式 */
.tab-buttons::-webkit-scrollbar {
  height: 6px;
  background: #f3f4f6;
  border-radius: 4px;
}
.tab-buttons::-webkit-scrollbar-thumb {
  background: #d1bfa7;
  border-radius: 4px;
}
.tab-buttons::-webkit-scrollbar-thumb:hover {
  background: #bfa074;
}

.tab-button {
  padding: 12px 0px;
  margin-right: 48px;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  /* border-bottom: 2px solid transparent; */
  transition: all 0.3s ease;

  background-image: linear-gradient(#633d26, #633d26);
  background-size: 0 2px;
  background-position: center bottom;
  background-repeat: no-repeat;
}
.tab-button:last-of-type {
  margin-right: 0px;
}

.tab-button.active {
  color: #633d26;
  background-size: 100% 2px;
}
.tab-button:hover {
  background-size: 100% 2px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content ul {
  list-style: none;
  padding: 0;
}

.tab-content li {
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}

.tab-content li:last-child {
  border-bottom: none;
}

.shipping-info {
  background-color: #f9fafb;
  padding: 16px;
  padding-left: 0px;
  border-radius: 8px;
  margin-top: 24px;
}

.shipping-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
}
.shipping-item i {
  margin-top: 4px;
}

.shipping-item:last-child {
  margin-bottom: 0;
}

.shipping-icon {
  margin-right: 8px;
  color: #633d26;
}

.related-products {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid #e5e7eb;
}

.related-title {
  font-family: "Playfair Display", serif;
  font-size: 1.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 24px;
}


.related-product {
  text-align: center;
  display: block;
}

.related-product-img {
  display: block;
  width: 100%;
  height: 300px;
  /* border-radius: 8px; */
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
}
.related-product-img button {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;

  border: none;
  cursor: pointer;
}
.related-product-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.8s ease;
}
.related-product .related-product-img img:nth-of-type(1) {
  opacity: 1;
}
.related-product .related-product-img img:nth-of-type(2) {
  opacity: 0;
}

.related-product:hover .related-product-img img:nth-of-type(1) {
  opacity: 0;
}
.related-product:hover .related-product-img img:nth-of-type(2) {
  opacity: 1;
}

.related-product h4 {
  font-size: 1rem;
  font-weight: 500;
  color: #1f2937;
  margin-bottom: 4px;
}

.related-product .price {
  color: #633d26;
  font-weight: 600;
}

@media (max-width: 1280px) {
  .main-image {
    height: 500px;
  }
}

@media (max-width: 768px) {
  .product-info {
    padding: 0 16px;
    margin-top: 24px;
  }

  .product-title {
    font-size: 2rem;
  }

  .main-image {
    height: 400px;
  }

  .main-image .next-btn {
    right: 0px;
    margin-right: 12px;
  }
  .main-image .pre-btn {
    left: 0px;
    margin-left: 12px;
  }

  .thumbnail {
    width: 60px;
    height: 60px;
  }
}
