/* ==================================================
   LAPONY PRODUCT PAGES — COMPACT VERSION
   Replace the complete old product-pages.css file.
================================================== */

.product-page {
  --product-blue: #2563eb;
  --product-blue-dark: #1d4ed8;
  --product-navy: #0f172a;
  --product-text: #1f2937;
  --product-muted: #667085;
  --product-border: #e5e7eb;
  --product-soft: #f7f9fc;
  --product-white: #ffffff;

  width: 100%;
  overflow-x: clip;
  background: var(--product-white);
  color: var(--product-text);
}

.product-page,
.product-page * {
  box-sizing: border-box;
}

.product-page img {
  max-width: 100%;
}

/* ---------- Compact collection hero ---------- */

.product-page .product-page-hero {
  position: relative;
  width: 100%;
  padding: 32px 24px 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 20%, rgba(37, 99, 235, 0.30), transparent 32%),
    linear-gradient(120deg, #0b1324 0%, #0f172a 58%, #14213d 100%);
}

.product-page .product-page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  pointer-events: none;
}

.product-page .product-page-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.product-page .product-breadcrumb {
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.60);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.product-page .product-breadcrumb a {
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
}

.product-page .product-page-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 720;
  line-height: 1.12;
  letter-spacing: -1px;
}

.product-page .product-page-hero p {
  max-width: 720px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.70);
  font-size: 15px;
  line-height: 1.62;
}

/* ---------- Collection layout ---------- */

.product-page .product-catalog-section {
  width: 100%;
  padding: 34px 24px 76px;
  background: var(--product-soft);
}

.product-page .product-catalog-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
}

.product-page .product-category-toolbar {
  width: 100%;
  margin-bottom: 30px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
}

.product-page .category-pill,
.product-page .category-menu a {
  flex: 0 0 auto;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #475467;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.product-page .category-pill:hover,
.product-page .category-pill.is-active,
.product-page .category-menu a:hover,
.product-page .category-menu li.active-category a {
  border-color: var(--product-blue);
  background: var(--product-blue);
  color: #ffffff;
}

.product-page .category-menu {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.product-page .category-menu li {
  flex: 0 0 auto;
  margin: 0;
}

.product-page .products-content {
  width: 100%;
  min-width: 0;
}

.product-page .catalog-heading-row {
  margin-bottom: 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.product-page .product-section-eyebrow,
.product-page .product-detail-eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--product-blue);
  font-size: 11px;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 1.4px;
}

.product-page .catalog-heading-row h2 {
  margin: 0;
  color: var(--product-navy);
  font-size: clamp(27px, 2.6vw, 37px);
  font-weight: 720;
  line-height: 1.15;
  letter-spacing: -0.8px;
}

.product-page #resultText {
  flex: 0 0 auto;
  margin: 0 0 3px;
  padding: 7px 11px;
  border: 1px solid var(--product-border);
  border-radius: 999px;
  background: #ffffff;
  color: var(--product-muted);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
}

/* ---------- Product sorting ---------- */

.product-page .catalog-tools {
  flex: 0 0 auto;
  margin-bottom: 3px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.product-page .product-sort-control {
  min-width: 245px;
  min-height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--product-border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-page .product-sort-control:hover {
  border-color: #cbd5e1;
}

.product-page .product-sort-control:focus-within {
  border-color: var(--product-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.product-page .product-sort-label {
  flex: 0 0 auto;
  color: var(--product-muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.product-page #productSort {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--product-navy);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
}

/* ---------- Collection image banner ---------- */

.product-page .collection-banner-slider {
  position: relative;
  width: 100%;
  height: clamp(180px, 22vw, 270px);
  margin: 0 0 26px;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 16px;
  background: #eef2f7;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.product-page .collection-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.product-page .collection-banner-slide.active {
  z-index: 1;
  opacity: 1;
}

.product-page .collection-banner-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.product-page .collection-banner-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translateX(-50%);
}

.product-page .banner-dot {
  width: 7px;
  height: 7px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: all 0.22s ease;
}

.product-page .banner-dot.active {
  width: 22px;
  background: #ffffff;
}

/* ---------- Product cards ---------- */

.product-page #productList {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.product-page .product-card-link {
  min-width: 0;
  height: 100%;
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-page .product-card {
  height: 100%;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--product-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-page .product-card:hover {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 15px 36px rgba(15, 23, 42, 0.10);
  transform: translateY(-4px);
}

.product-page .product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
}

.product-page .product-name {
  min-height: 44px;
  margin: 13px 2px 0;
  color: var(--product-navy);
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.product-page .product-card-link:hover .product-name {
  color: var(--product-blue);
}

/* ---------- Pagination ---------- */

.product-page .pagination {
  width: 100%;
  margin-top: 36px;

  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-page .page-btn {
  flex: 0 0 auto;

  min-width: 40px;
  height: 40px;
  padding: 0 12px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--product-border);
  border-radius: 9px;

  background: #ffffff;
  color: #475467;

  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  text-decoration: none;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.product-page .page-btn:not(:disabled):hover {
  border-color: var(--product-blue);
  color: var(--product-blue);
  transform: translateY(-1px);
}

.product-page .page-btn.active {
  border-color: var(--product-blue);
  background: var(--product-blue);
  color: #ffffff;
}

.product-page .page-btn.active:hover {
  border-color: var(--product-blue-dark);
  background: var(--product-blue-dark);
  color: #ffffff;
}

.product-page .page-btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.product-page .page-dots {
  flex: 0 0 auto;

  min-width: 28px;
  height: 40px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #667085;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;

  user-select: none;
}

.product-page .page-label-desktop {
  display: inline;
}

.product-page .page-label-mobile {
  display: none;
}


/* ---------- Mobile pagination ---------- */

@media (max-width: 700px) {

  .product-page .pagination {
    margin-top: 28px;
    gap: 5px;

    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;

    padding-bottom: 4px;

    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-page .pagination::-webkit-scrollbar {
    display: none;
  }

  .product-page .page-btn {
    min-width: 34px;
    height: 36px;
    padding: 0 8px;
    border-radius: 8px;
    font-size: 13px;
  }

  .product-page .page-nav-btn {
    width: 36px;
    min-width: 36px;
    padding: 0;
  }

  .product-page .page-dots {
    min-width: 22px;
    height: 36px;
    font-size: 15px;
  }

  .product-page .page-label-desktop {
    display: none;
  }

  .product-page .page-label-mobile {
    display: inline-block;
    font-size: 22px;
    font-weight: 500;
    line-height: 1;
  }
}

/* ---------- Detail breadcrumb ---------- */

.product-page .product-info-topline {
  width: 100%;
  margin: 0 0 14px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.product-page .product-detail-breadcrumb {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;

  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;

  color: var(--product-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.product-page .product-info-topline .product-detail-eyebrow {
  flex: 0 0 auto;
  margin: 0;
  white-space: nowrap;
}


.product-page .product-detail-breadcrumb a {
  color: #475467;
  text-decoration: none;
}

.product-page .product-detail-breadcrumb a:hover {
  color: var(--product-blue);
}

/* ---------- Product detail ---------- */

.product-page .product-detail-section {
  width: 100%;
  padding: 22px 24px 64px;
  background: #ffffff;
}

.product-page .product-single-container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}

.product-page .product-gallery,
.product-page .product-info {
  min-width: 0;
  max-width: 100%;
}

.product-page .zoom-container {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 16px;
  background: var(--product-soft);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.07);
}

.product-page .product-gallery .main-image,
.product-page #mainProductImage {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 4px;
  display: block;

  object-fit: contain;
  border-radius: 16px;

  /* 不再显示放大镜鼠标 */
  cursor: default;

  /* 默认显示完整图片 */
  transform: scale(1);
  transform-origin: center center;

  /* 鼠标进入和离开时立即切换 */
  transition: none;
  will-change: transform;
}


/* 只在支持鼠标悬停的电脑设备上开启 */
@media (hover: hover) and (pointer: fine) {

  .product-page #mainProductImage.is-hover-zoomed,
  .product-page .product-gallery .main-image.is-hover-zoomed {
    transform: scale(1.65);
  }

}

.product-page .zoom-lens,
.product-page .zoom-preview {
  display: none;
}

.product-page .gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 38px;
  height: 38px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--product-navy);
  font-size: 12px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.13);
  transform: translateY(-50%);
}

.product-page .gallery-prev {
  left: 12px;
}

.product-page .gallery-next {
  right: 12px;
}

.product-page .gallery-nav:hover {
  background: var(--product-blue);
  color: #ffffff;
}

.product-page .thumbnail-list {
  width: 100%;
  margin-top: 12px;
  padding: 1px 0 4px;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.product-page .thumbnail-list img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  padding: 3px;
  display: block;
  object-fit: contain;
  border: 1px solid var(--product-border);
  border-radius: 9px;
  background: #ffffff;
  cursor: pointer;
  opacity: 0.70;
}

.product-page .thumbnail-list img:hover,
.product-page .thumbnail-list img.active {
  border-color: var(--product-blue);
  opacity: 1;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.14);
}

.product-page .product-detail-eyebrow {
  margin-bottom: 9px;
}

.product-page .product-info h1 {
  max-width: 100%;
  margin: 0 0 16px;
  color: var(--product-navy);
  font-size: clamp(27px, 2.8vw, 35px);
  font-weight: 720;
  line-height: 1.16;
  letter-spacing: -0.8px;
  overflow-wrap: anywhere;
}

.product-page .product-meta-row {
  margin-bottom: 18px;
  padding-bottom: 17px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  border-bottom: 1px solid var(--product-border);
}

.product-page .product-category-pill {
  padding: 7px 11px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: #eff6ff;
  color: var(--product-blue);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
}

.product-page .product-oem-line {
  color: var(--product-muted);
  font-size: 13px;
  line-height: 1.5;
}

.product-page .product-oem-line strong {
  color: var(--product-navy);
}

.product-page .product-description {
  max-width: 100%;
  margin: 0 0 20px;
  color: #475467;
  font-size: 15px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  word-break: normal;
}

.product-page .collapse-item {
  margin-bottom: 8px;
  overflow: hidden;
  border: 1px solid var(--product-border);
  border-radius: 11px;
  background: #ffffff;
}

.product-page .collapse-header {
  width: 100%;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--product-navy);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.4;
  cursor: pointer;
}

.product-page .collapse-header i {
  color: var(--product-blue);
  font-size: 12px;
}

.product-page .collapse-content {
  max-height: 0;
  padding: 0 15px;
  overflow: hidden;
  color: var(--product-muted);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.product-page .collapse-content.show {
  max-height: 520px;
  padding: 0 15px 15px;
}

.product-page .product-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.product-page .product-action-btn,
.product-page .product-secondary-btn {
  min-height: 44px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.product-page .product-action-btn {
  border: 1px solid var(--product-blue);
  background: var(--product-blue);
  color: #ffffff;
}

.product-page .product-action-btn:hover {
  border-color: var(--product-blue-dark);
  background: var(--product-blue-dark);
}

.product-page .product-secondary-btn {
  border: 1px solid var(--product-border);
  background: #ffffff;
  color: var(--product-navy);
}

/* ---------- Related products ---------- */

.product-page .related-products-section {
  width: 100%;
  padding: 58px 24px 70px;
  background: var(--product-soft);
}

.product-page .related-products-inner {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.product-page .product-section-heading {
  max-width: 660px;
  margin: 0 auto 28px;
  text-align: center;
}

.product-page .product-section-heading h2 {
  margin: 5px 0 0;
  color: var(--product-navy);
  font-size: clamp(27px, 2.7vw, 36px);
  line-height: 1.16;
}

.product-page .product-section-heading p {
  margin: 10px auto 0;
  color: var(--product-muted);
  font-size: 14px;
  line-height: 1.65;
}

.product-page .related-products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-page .related-product-card {
  min-width: 0;
  padding: 10px 10px 15px;
  border: 1px solid var(--product-border);
  border-radius: 15px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.045);
}

.product-page .related-product-card a {
  color: inherit;
  text-decoration: none;
}

.product-page .related-product-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  object-fit: contain;
  border-radius: 11px;
  background: #f8fafc;
}

.product-page .related-product-card h3 {
  min-height: 42px;
  margin: 12px 2px 0;
  color: var(--product-navy);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* ---------- Product not found ---------- */

.product-page .product-not-found {
  width: calc(100% - 48px);
  max-width: 720px;
  margin: 54px auto 70px;
  padding: 36px;
  border: 1px solid var(--product-border);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
}


/* ---------- Tablet ---------- */

@media (max-width: 1100px) {
  .product-page #productList {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .product-page .product-detail-topline {
  grid-template-columns: minmax(0, 390px) minmax(0, 1fr);
  gap: 32px;
}

  .product-page .zoom-container {
    height: 390px;
  }

  .product-page .related-products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {

  .product-page .sidebar-product-search {
  display: none;
}
  .product-page .product-single-container {
    max-width: 620px;
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .product-page .product-gallery {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
  }

  .product-page .zoom-container {
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  .product-page .product-page-hero {
    padding: 24px 16px 26px;
  }

  .product-page .product-page-hero h1 {
    font-size: 28px;
  }

  .product-page .product-page-hero p {
    margin-top: 8px;
    font-size: 14px;
  }

  .product-page .product-catalog-section {
    padding: 24px 12px 56px;
  }

  .product-page .product-category-toolbar {
  margin-bottom: 24px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 8px;
  overflow: visible;
  border-radius: 12px;
}

/* 让 ul 不单独占一行，所有分类直接进入两列网格 */
.product-page .category-menu {
  display: contents;
}

/* 每个分类占一个网格 */
.product-page .category-menu li {
  min-width: 0;
  margin: 0;
}

/* 手机版分类按钮全部等宽显示 */
.product-page .category-pill,
.product-page .category-menu a {
  width: 100%;
  min-height: 42px;
  padding: 9px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
}

  .product-page .catalog-heading-row {
    margin-bottom: 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .product-page .catalog-heading-row h2 {
    font-size: 27px;
  }

  .product-page #resultText {
    margin: 0;
  }
  .product-page .catalog-tools {
  width: 100%;
  margin-bottom: 0;
  justify-content: space-between;
  gap: 10px;
}

.product-page .product-sort-control {
  flex: 1;
  min-width: 0;
  max-width: 280px;
}

  .product-page .collection-banner-slider {
    height: 165px;
    margin-bottom: 18px;
    border-radius: 12px;
  }

  .product-page #productList {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  .product-page .product-card {
    padding: 7px 7px 12px;
    border-radius: 13px;
  }

  .product-page .product-img {
    border-radius: 9px;
  }

  .product-page .product-name {
    min-height: 0;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.45;
  }
  
  .product-page .product-detail-section {
    padding: 17px 14px 50px;
  }

  .product-page .product-single-container {
    gap: 22px;
  }

  .product-page .product-gallery {
    max-width: 100%;
  }

  .product-page .zoom-container {
    border-radius: 13px;
  }

  .product-page .product-gallery .main-image,
  .product-page #mainProductImage {
    padding: 9px;
    border-radius: 13px;
  }

  .product-page .gallery-nav {
    width: 34px;
    height: 34px;
  }

  .product-page .gallery-prev {
    left: 8px;
  }

  .product-page .gallery-next {
    right: 8px;
  }

  .product-page .thumbnail-list img {
    flex-basis: 58px;
    width: 58px;
    height: 58px;
  }

  .product-page .product-info-topline {
  margin-bottom: 12px;
  align-items: flex-start;
  flex-direction: column;
  gap: 7px;
  }

  .product-page .product-info h1 {
    font-size: 27px;
  }

  .product-page .product-description {
    font-size: 14.5px;
    line-height: 1.62;
  }

  .product-page .product-actions {
    flex-direction: column;
  }

  .product-page .product-action-btn,
  .product-page .product-secondary-btn {
    width: 100%;
  }

  .product-page .related-products-section {
    padding: 48px 12px 58px;
  }

  .product-page .related-products-grid {
    gap: 11px;
  }

  .product-page .related-product-card {
    padding: 7px 7px 12px;
    border-radius: 13px;
  }

  .product-page .related-product-card h3 {
    min-height: 0;
    margin-top: 10px;
    font-size: 13px;
  }
}

@media (max-width: 420px) {

  .product-page .collection-banner-slider {
    height: 145px;
  }

  .product-page .product-page-hero h1 {
    font-size: 26px;
  }

  .product-page .catalog-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .product-page .product-sort-control {
    width: 100%;
    max-width: none;
  }

  .product-page #resultText {
    width: max-content;
  }
}

/* ==================================================
   DESKTOP PRODUCT CATEGORY SIDEBAR
   只影响电脑版，手机版保持原样
================================================== */

@media (min-width: 901px) {

  /* 左侧分类 + 右侧产品 */
 .product-page .product-catalog-container {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
}

  /* 左侧分类栏 */
  .product-page .product-category-toolbar {
    position: sticky;
    top: 95px;

    width: 100%;
    margin: 0;
    padding: 18px 14px;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;

    overflow: visible;

    border: 1px solid var(--product-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
  }

  /* 左侧分类标题 */
 .product-page .product-category-toolbar::before {
  content: "Product Categories";
  order: -1;
  display: block;
  margin: 4px 4px 8px;
  padding-bottom: 12px;

  border-bottom: 1px solid var(--product-border);

  color: var(--product-navy);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
}

/* 电脑版左侧产品搜索框 */
.product-page .sidebar-product-search {
  order: -2;
  width: 100%;
  margin: 0 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 7px;
}

.product-page .sidebar-product-search input {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 11px;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  outline: none;
  background: #ffffff;
  color: var(--product-navy);
  font-family: inherit;
  font-size: 12.5px;
  line-height: 1;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.product-page .sidebar-product-search input::placeholder {
  color: #98a2b3;
}

.product-page .sidebar-product-search input:focus {
  border-color: var(--product-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.10);
}

.product-page .sidebar-product-search button {
  width: 82px;
  height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;

  border: 1px solid var(--product-blue);
  border-radius: 8px;
  background: var(--product-blue);
  color: #ffffff;

  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-transform: none;
  cursor: pointer;

  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.product-page .sidebar-product-search button:hover {
  border-color: var(--product-blue-dark);
  background: var(--product-blue-dark);
}

.product-page .sidebar-product-search button:active {
  transform: translateY(1px);
}

.product-page .sidebar-product-search button i {
  font-size: 11px;
}

  /* 分类列表改成竖排 */
  .product-page .category-menu {
    width: 100%;
    margin: 0;
    padding: 0;

    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .product-page .category-menu li {
    width: 100%;
    margin: 0;
  }

  /* 分类按钮 */
  .product-page .category-pill,
  .product-page .category-menu a {
    width: 100%;
    min-height: 44px;
    padding: 11px 12px;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    border-radius: 9px;

    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
  }

  /* 分类右侧箭头 */
  .product-page .category-pill::after,
  .product-page .category-menu a::after {
    content: "›";
    margin-left: auto;

    font-size: 21px;
    font-weight: 500;
    line-height: 1;
  }

  /* 右边产品区域 */
  .product-page .products-content {
    width: 100%;
    min-width: 0;
  }
}

/* ==================================================
   PRODUCT DETAIL — DESKTOP VERTICAL THUMBNAILS
   电脑版：缩略图放在主图左侧
   平板和手机：继续放在主图下面
================================================== */

@media (min-width: 1101px) {

  /* 左边图片区略微加宽 */
  .product-page .product-single-container {
    grid-template-columns: minmax(0, 580px) minmax(0, 1fr);
    gap: 44px;
  }

  /* 图片区域改成：左边缩略图 + 右边主图 */
  .product-page .product-gallery {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "product-thumbs product-main";
    gap: 14px;
    align-items: start;
  }

  /* 主图放到右边 */
  .product-page .zoom-container {
    grid-area: product-main;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  /* 缩略图放到左边，并改成竖排 */
  .product-page .thumbnail-list {
    grid-area: product-thumbs;

    width: 72px;
    height: 494px;
    margin: 0;
    padding: 0 4px 0 0;

    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;

    overflow-x: hidden;
    overflow-y: auto;

    scrollbar-width: thin;
    overscroll-behavior: contain;
  }

  /* 每一张缩略图尺寸 */
  .product-page .thumbnail-list img {
    flex: 0 0 68px;
    width: 68px;
    height: 68px;
    padding: 3px;
  }

  /* Chrome / Edge 滚动条 */
  .product-page .thumbnail-list::-webkit-scrollbar {
    width: 5px;
  }

  .product-page .thumbnail-list::-webkit-scrollbar-track {
    background: transparent;
  }

  .product-page .thumbnail-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
  }

  .product-page .thumbnail-list::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}