.wintemp-size-toggle {
  border-bottom: 1px solid #e5e5e5;
  padding: 8px 0;
  margin: 8px 0;
}
button.wintemp-size-toggle__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: #252525;
}
.wintemp-size-toggle__title {
  font-size: 20px;
  font-weight: 600;
}
.wintemp-size-toggle__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.wintemp-size-toggle.is-open .wintemp-size-toggle__chevron {
  transform: rotate(180deg);
}
.wintemp-size-toggle__chevron svg {
  display: block;
}
.wintemp-size-toggle__body ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.wintemp-size-toggle__body li {
  margin: 6px 0;
  list-style: disc;
}

.wintemp-include-toggle {
  border-bottom: 1px solid #D8D8D8;
  padding: 8px 0;
  margin: 8px 0;
}
button.wintemp-include-toggle__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
}
.wintemp-include-toggle__title {
  font-size: 20px;
  font-weight: 600;
  color: #252525;
}
.wintemp-include-toggle__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.wintemp-include-toggle.is-open .wintemp-include-toggle__chevron {
  transform: rotate(180deg);
}
.wintemp-include-toggle__chevron svg {
  display: block;
}
.wintemp-include-toggle__body ul {
  margin: 8px 0 0 0;
  padding-left: 20px;
}
.wintemp-include-toggle__body li {
  list-style: disc;
  color: #444;
  font-size: 14px;
  line-height: 1.8;
}

/* Manual Download List (Card Grid) */
.wintemp-manual-toggle {
  margin: 20px 0;
  border-bottom: 1px solid #D8D8D8;
}
button.wintemp-manual-toggle__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 12px 0;
  cursor: pointer;
}
.wintemp-manual-toggle__title {
  font-size: 24px;
  font-weight: 600;
  color: #252525;
}
.wintemp-manual-toggle__chevron {
  display: inline-flex;
  transition: transform .25s ease;
}
.wintemp-manual-toggle.is-open .wintemp-manual-toggle__chevron {
  transform: rotate(180deg);
}

.wintemp-manual-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  padding: 16px 0 24px 0;
}
.wintemp-manual-item {
  display: flex;
  align-items: center;
  background-color: #F3F4F6;
  border: 1px solid rgba(10, 61, 96, 0.05);
  border-radius: 4px;
  padding: 12px 24px 12px 16px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}
.wintemp-manual-item:hover {
  background-color: #EBF0F3;
}
.wintemp-manual-item__icon {
  display: flex;
  margin-right: 16px;
  flex-shrink: 0;
}
.wintemp-manual-item__icon svg {
  width: 24px;
  height: 24px;
}
.wintemp-manual-item__info {
  font-size: 14px;
  font-weight: 500;
  color: #252525;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Product Gallery (Main + Thumbnails) */
.wintemp-product-gallery {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

.wintemp-product-gallery__main {
  width: 100%;
  background: #F8F8F8;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.wintemp-product-gallery__main-link {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
}

.wintemp-product-gallery__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Thumbnails */
.wintemp-product-gallery__thumbs {
  width: 100%;
}

/* Desktop: 1+4 Grid Look (Actually just the 4 small ones in a grid) */
@media (min-width: 769px) {
  .wintemp-product-gallery__thumbs {
    visibility: visible !important;
    display: block !important;
  }

  .wintemp-product-gallery__thumbs .splide__track {
    overflow: visible !important;
  }

  .wintemp-product-gallery__thumbs .splide__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100% !important;
    transform: none !important;
  }
  
  /* Hide the first thumbnail on desktop to achieve 1(top) + 4(grid) look */
  .wintemp-product-gallery__thumb[data-index="0"] {
    display: none !important;
  }

  .wintemp-product-gallery__thumb {
    background: #F8F8F8;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1 / 1;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
    width: auto !important;
    margin: 0 !important;
  }

  .wintemp-product-gallery__thumb.is-active {
    border-color: #FF6D08;
  }

  .wintemp-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
}

/* Mobile: Carousel */
@media (max-width: 768px) {
  .wintemp-product-gallery {
    gap: 12px;
  }

  .wintemp-product-gallery__thumbs {
    visibility: hidden; /* Hide before Splide mounts */
  }

  .wintemp-product-gallery__thumbs.is-initialized {
    visibility: visible;
  }

  .wintemp-product-gallery__thumb {
    width: 80px;
    height: 80px;
    background: #F8F8F8;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid transparent !important;
    flex-shrink: 0;
  }

  .wintemp-product-gallery__thumb.is-active {
    border-color: #FF6D08 !important;
  }

  .wintemp-product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

/* Breadcrumb Navigation */
.wintemp-breadcrumb {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #252525;
  font-weight: 400;
}
.wintemp-breadcrumb__back {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.wintemp-breadcrumb__back:hover {
  opacity: 0.7;
}
.wintemp-breadcrumb__icon {
  margin-right: 8px;
  display: flex;
}
.wintemp-breadcrumb__icon svg {
  width: 14px;
  height: 14px;
}
.wintemp-breadcrumb__separator--pipe {
  margin: 0 10px;
  color: #979797;
  font-weight: 300;
}
.wintemp-breadcrumb__separator--slash {
  margin: 0 12px;
  color: #252525;
  font-weight: 300;
}
.wintemp-breadcrumb__category {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}
.wintemp-breadcrumb__category:hover {
  opacity: 0.7;
}
.wintemp-breadcrumb__current {
  color: #252525;
  font-weight: 500;
}

/* Product Specifications */
.wintemp-product-specs {
  width: 100%;
  font-family: inherit;
}
.wintemp-spec-row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #D8D8D8;
  align-items: flex-start;
}
.wintemp-spec-row:last-child {
  border-bottom: none;
}
.wintemp-spec-key {
  width: 35%;
  font-weight: 700;
  color: #252525;
  padding-right: 16px;
  font-size: 16px;
  line-height: 1.4;
}
.wintemp-spec-value {
  width: 65%;
  color: #000;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 400;
}
@media (max-width: 767px) {
  .wintemp-spec-row {
    gap: 20px;
  }
  .wintemp-spec-key {
    width: 27vw;
    padding-right: 0;
    padding-bottom: 4px;
    font-size: 14px;
  }
  .wintemp-spec-value {
    flex: 1;
    font-size: 14px;
  }

}

/* Filter Modal */
.wintemp-filter-modal-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 12px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: #252525;
  transition: opacity 0.2s ease;
  border-bottom: 1px solid #D8D8D8;
  width: 100%;
}
.wintemp-filter-modal-trigger:hover {
  opacity: 0.7;
}
.wintemp-filter-icon {
  display: flex;
  align-items: center;
}

.wintemp-filter-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}
.wintemp-filter-modal.is-open {
  visibility: visible;
  opacity: 1;
}
.wintemp-filter-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}
.wintemp-filter-modal-content {
  position: absolute;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 90%;
  height: 100%;
  background: #fff;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}
.wintemp-filter-modal.is-open .wintemp-filter-modal-content {
  right: 0;
}
.wintemp-filter-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wintemp-filter-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}
.wintemp-filter-modal-close {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #999;
  padding: 0;
}
.wintemp-filter-modal-close:hover {
  color: #333;
}
.wintemp-filter-modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 25px;
}

body.wintemp-filter-modal-active {
  overflow: hidden;
}

/* 重写 Filter Everything 内部样式使其更符合 PC 模态框逻辑 */
.wintemp-filter-modal-body .wpc-filters-section {
  margin-bottom: 25px !important;
}
.wintemp-filter-modal-body .wpc-filter-header {
  font-size: 16px !important;
  font-weight: 600 !important;
  margin-bottom: 12px !important;
}

/* Product Color Switcher */
.wintemp-color-switcher {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  padding: 0 40px;
  margin-bottom: 14px;
}
.wintemp-color-switcher__main-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.wintemp-color-switcher__main-image a {
  display: block;
  width: 100%;
  text-align: center;
}
.wintemp-color-switcher__main-image img {
  max-width: 100%;
  height: auto;
  transition: opacity 0.2s ease, transform 0.2s ease;
  object-fit: contain;
}
.wintemp-color-switcher__main-image img.switching {
  opacity: 0.1;
}
.wintemp-color-switcher__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  height: 30px;
  justify-content: center;
}
.wintemp-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  background: #fff;
}
.wintemp-color-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}
.wintemp-color-swatch.is-active {
  outline: 1px solid #D3D3D3;
  box-shadow: 0px 4px 10px 0px rgba(190, 190, 190, 0.3);
  padding: 1px;
  box-sizing: initial;
}

/* Product Color List Toggle */
.wintemp-colors-toggle {
  border-bottom: 1px solid #D8D8D8;
  padding: 8px 0;
  margin: 8px 0;
}
button.wintemp-colors-toggle__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  color: #252525;
}
.wintemp-colors-toggle__title {
  font-size: 20px;
  font-weight: 600;
}
.wintemp-colors-toggle__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s ease;
}
.wintemp-colors-toggle.is-open .wintemp-colors-toggle__chevron {
  transform: rotate(180deg);
}
.wintemp-colors-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 8px 0;
  display: flex;
  gap: 24px;
  padding-bottom: 16px;
  overflow-x: scroll;
}
.wintemp-color-item {
  display: flex;
  align-items: center;
  gap: 12px;
}
.wintemp-color-item__circle {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f0f0f0;
}
.wintemp-color-item__circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.wintemp-color-item__title {
  font-size: 18px;
  color: #252525;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
}

button.wintemp-size-toggle__header:hover,
button.wintemp-include-toggle__header:hover,
button.wintemp-size-toggle__header:focus,
button.wintemp-include-toggle__header:focus,
button.wintemp-manual-toggle__header:hover,
button.wintemp-manual-toggle__header:focus,
button.wintemp-colors-toggle__header:hover,
button.wintemp-colors-toggle__header:focus {
  background: transparent;
}

@media (max-width: 768px) {
  .wintemp-color-switcher {
    padding: 0 4px;
    gap: 12px;
    margin-bottom: 4px;
  }
  .wintemp-color-swatch {
    width: 20px;
    height: 20px;
  }
  .wintemp-color-switcher__swatches {
    gap: 8px;
  }
  .wintemp-size-toggle__body ul {
    font-size: 14px;
    line-height: 30px;
  }
  .wintemp-size-toggle__title,
  .wintemp-colors-toggle__title,
  .wintemp-include-toggle__title,
  .wintemp-manual-toggle__title {
    font-size: 16px;
  }
  .wintemp-size-toggle,
  .wintemp-colors-toggle,
  .wintemp-include-toggle
   {
    padding-block: 24px;
    margin: 0;
  }
  .wintemp-color-item__circle {
    width: 40px;
    height: 40px;
  }
  .wintemp-colors-list {
    gap: 16px;
  }
  .wintemp-manual-item {
    padding: 9px 16px;
    max-width: 70vw;
    border-radius: 1px;
  }
  .wintemp-manual-item__icon svg {
    width: 19px;
    height: 19px;
  }
  .wintemp-manual-item__icon {
    margin-right: 9px;
  }
  .wintemp-manual-item__info {
    font-size: 16px;
  }
  .wintemp-manual-list {
    padding: 0 0 24px;
    gap: 15px;
  }
  .wintemp-color-item__title {
    font-size: 14px;
  }
}

/* Scroll Indicator Shortcode */
.wintemp-scroll-indicator {
  width: 56px;
  height: 56px;
  background-color: #EACB83;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.wintemp-scroll-indicator svg {
  width: 48px;
  height: 48px;
  stroke: #49280F;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  animation: wintemp-arrow-shuttle 1.6s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes wintemp-arrow-shuttle {
  0% {
    transform: translateY(-150%) scale(0.5);
    opacity: 0;
  }
  30% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  70% {
    transform: translateY(0) scale(0.9);
    opacity: 1;
  }
  100% {
    transform: translateY(150%) scale(0.5);
    opacity: 0;
  }
}
