/* 匠金台 · 产品中心 */

/* ===== 产品列表页（scoped to .jjt-product-list） ===== */
.jjt-product-list {
  padding: clamp(3.5rem, 6vw, 5rem) 0 clamp(4rem, 7vw, 5.5rem);
  background: linear-gradient(180deg, var(--jjt-cream) 0%, #fff 40%, var(--jjt-cream) 100%);
}

.jjt-product-list__header {
  max-width: 720px;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.jjt-product-list__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2rem);
}

.jjt-product-list__card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: calc(var(--jjt-radius) + 2px);
  border: 1px solid rgba(200, 150, 46, 0.14);
  box-shadow: 0 12px 40px rgba(26, 20, 16, 0.06);
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.jjt-product-list__card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 150, 46, 0.35);
  box-shadow: 0 20px 56px rgba(26, 20, 16, 0.1);
}

.jjt-product-list__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 5;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(145deg, #fff 0%, var(--jjt-cream) 100%);
  overflow: hidden;
  text-decoration: none;
}

.jjt-product-list__visual-bg {
  position: absolute;
  width: min(260px, 80%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 46, 0.14) 0%, rgba(200, 150, 46, 0) 70%);
  pointer-events: none;
  transition: transform 0.45s ease;
}

.jjt-product-list__card:hover .jjt-product-list__visual-bg {
  transform: scale(1.08);
}

.jjt-product-list__visual img {
  position: relative;
  z-index: 1;
  width: min(220px, 72%);
  height: auto;
  max-height: 88%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(26, 20, 16, 0.12));
  transition: transform 0.45s ease;
}

.jjt-product-list__card:hover .jjt-product-list__visual img {
  transform: scale(1.04);
}

.jjt-product-list__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.35rem 1.5rem 1.5rem;
  border-top: 1px solid rgba(200, 150, 46, 0.1);
}

.jjt-product-list__slogan {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jjt-copper);
}

.jjt-product-list__title {
  font-family: var(--jjt-font-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.65rem;
}

.jjt-product-list__title a {
  color: var(--jjt-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.jjt-product-list__title a:hover {
  color: var(--jjt-amber);
}

.jjt-product-list__price {
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
  color: rgba(26, 20, 16, 0.55);
}

.jjt-product-list__price strong {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--jjt-font-serif);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  color: var(--jjt-accent);
}

.jjt-product-list__cta {
  align-self: flex-start;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--jjt-ink);
  text-decoration: none;
  border: 1px solid rgba(200, 150, 46, 0.35);
  border-radius: 999px;
  background: #fff;
  transition: background 0.22s ease, border-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.jjt-product-list__cta:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--jjt-accent), var(--jjt-amber));
  border-color: transparent;
  transform: translateY(-1px);
}

.jjt-product-list__pagination {
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

@media (max-width: 991px) {
  .jjt-product-list__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .jjt-product-list__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ===== 产品详情页 ===== */
.jjt-product-detail {
  padding: clamp(2.5rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4rem);
  background: linear-gradient(180deg, var(--jjt-cream) 0%, #fff 45%, var(--jjt-cream) 100%);
}

.jjt-product-detail-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.jjt-product-gallery {
  position: sticky;
  top: calc(var(--jjt-header-offset, 88px) + 1rem);
}

.jjt-product-gallery__stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.jjt-product-gallery__main {
  position: relative;
  background: #fff;
  border-radius: calc(var(--jjt-radius) + 2px);
  border: 1px solid rgba(200, 150, 46, 0.18);
  box-shadow: 0 16px 48px rgba(26, 20, 16, 0.06);
  overflow: hidden;
}

.jjt-product-gallery__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(145deg, #fff 0%, var(--jjt-cream) 100%);
}

.jjt-product-gallery__slide img {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(26, 20, 16, 0.1));
}

.jjt-product-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(200, 150, 46, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--jjt-ink);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.jjt-product-gallery__arrow:hover {
  background: linear-gradient(135deg, var(--jjt-accent), var(--jjt-amber));
  border-color: transparent;
  color: #fff;
}

.jjt-product-gallery__arrow--prev { left: 12px; }
.jjt-product-gallery__arrow--next { right: 12px; }

.jjt-product-gallery__pagination {
  position: absolute !important;
  left: 0;
  right: 0;
  bottom: 12px !important;
}

.jjt-product-gallery__pagination .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: rgba(26, 20, 16, 0.25);
  opacity: 1;
}

.jjt-product-gallery__pagination .swiper-pagination-bullet-active {
  width: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--jjt-accent), var(--jjt-amber));
}

.jjt-product-gallery__thumbs {
  margin-top: 0.25rem;
}

.jjt-product-gallery__thumbs .swiper-slide {
  width: auto;
}

.jjt-product-gallery__thumb {
  display: block;
  width: 72px;
  height: 72px;
  padding: 4px;
  border: 2px solid rgba(200, 150, 46, 0.2);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.jjt-product-gallery__thumbs .swiper-slide-thumb-active .jjt-product-gallery__thumb {
  border-color: var(--jjt-amber);
  box-shadow: 0 4px 16px rgba(200, 150, 46, 0.25);
}

.jjt-product-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--jjt-copper);
  background: rgba(200, 150, 46, 0.12);
  padding: 0.35em 0.95em;
  border-radius: 999px;
  margin-bottom: 1rem;
  display: inline-block;
}

.jjt-product-title {
  font-family: var(--jjt-font-serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.25;
  margin: 0 0 0.75rem;
}

.jjt-product-slogan {
  color: var(--jjt-accent);
  font-size: 1rem;
  margin: 0 0 1.25rem;
}

.jjt-product-retail {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem;
  padding: 1rem 1.25rem;
  background: #fff;
  border-left: 4px solid var(--jjt-amber);
  border-radius: 0 var(--jjt-radius) var(--jjt-radius) 0;
  margin-bottom: 1.75rem;
  box-shadow: 0 8px 24px rgba(26, 20, 16, 0.04);
}

.jjt-product-retail-label {
  font-size: 0.88rem;
  color: rgba(26, 20, 16, 0.55);
}

.jjt-product-retail-price {
  font-family: var(--jjt-font-serif);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  color: var(--jjt-accent);
}

.jjt-product-ingredients {
  background: #fff;
  border: 1px solid rgba(200, 150, 46, 0.16);
  border-radius: var(--jjt-radius);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(26, 20, 16, 0.04);
}

.jjt-product-ingredients__title {
  margin: 0;
  padding: 0.9rem 1.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--jjt-ink);
  background: linear-gradient(90deg, rgba(200, 150, 46, 0.12), rgba(200, 150, 46, 0.04));
  border-bottom: 1px solid rgba(200, 150, 46, 0.14);
}

.jjt-product-ingredients__table {
  width: 100%;
  border-collapse: collapse;
}

.jjt-product-ingredients__table th,
.jjt-product-ingredients__table td {
  padding: 0.85rem 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  vertical-align: top;
  border-bottom: 1px solid rgba(200, 150, 46, 0.1);
}

.jjt-product-ingredients__table th {
  width: 38%;
  font-weight: 600;
  color: rgba(26, 20, 16, 0.55);
  background: rgba(250, 246, 240, 0.6);
}

.jjt-product-ingredients__table td {
  font-weight: 500;
  color: var(--jjt-ink);
}

.jjt-product-ingredients__table tr:last-child th,
.jjt-product-ingredients__table tr:last-child td {
  border-bottom: none;
}

.jjt-product-ingredients__tip td {
  color: rgba(26, 20, 16, 0.65);
  font-size: 0.85rem;
}

.jjt-product-tabs {
  margin-top: 0;
  background: #fff;
  border-radius: var(--jjt-radius);
  border: 1px solid rgba(200, 150, 46, 0.12);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: 0 8px 28px rgba(26, 20, 16, 0.04);
}

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

  .jjt-product-gallery {
    position: static;
  }

  .jjt-product-gallery__thumb {
    width: 64px;
    height: 64px;
  }
}
