/** Shopify CDN: Minification failed

Line 16:15 Expected identifier but found whitespace
Line 16:17 Unexpected "{"
Line 16:26 Expected ":"

**/
  .wtc {
    --wtc-max: 1520px;
    --wtc-blue: #22467A;
    --wtc-blue-soft: #103365;
    --wtc-red: #CC0000;
    font-family: Montserrat, sans-serif;
    padding: clamp(28px, 4vw, 56px) clamp(16px, 3vw, 40px);
    box-sizing: border-box;
    background: {{ section.settings.background_color }};
  }

  .wtc__inner {
    max-width: var(--wtc-max);
    margin: 0 auto;
  }

  .wtc__title {
    margin: 0 0 clamp(20px, 3vw, 36px);
    text-align: center;
    font-size: clamp(20px, calc(20px + (40 - 20) * ((100vw - 375px) / 1145)), 40px);
    font-weight: 700;
    line-height: 1.25;
    color: #000;
    text-transform: capitalize;
  }

  .wtc__stage {
    position: relative;
    overflow: visible;
  }

  .wtc__swiper {
    overflow: hidden; 
    width: 100%;
    padding: 8px 0 4px;
    box-sizing: border-box;
  }

  .wtc__swiper .swiper-wrapper {
    align-items: stretch;
  }

  .wtc__slide {
    height: auto;
    box-sizing: border-box;
    padding: 12px 10px;
    overflow: hidden;
    display: flex;
  }

  .wtc__card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 0; 
    box-sizing: border-box;
    border-radius: 10px;
    overflow: hidden;
    box-shadow:
      0 0 22.8px 0 rgba(0, 0, 0, 0.11),
      0 0 14px 0 rgba(0, 0, 0, 0),
      0 4px 11.6px 0 rgba(0, 0, 0, 0.07);
  }

  .wtc__card-inner {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    height: 100%;
    padding: 12px 14px 20px;
    box-sizing: border-box;
  }

  .wtc__media {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin: 0 auto 12px;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
  }

  .wtc__media-link,
  .wtc__media img,
  .wtc__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 1s ease;
  }
  .wtc__media img:hover {
    transform: scale(1.05);
  }

  .wtc__badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width:clamp(36px,5vw,70px);
    height:clamp(18px,5vw,36px);
    padding: 0 16px 0 8px;
    box-sizing: border-box;
    background: url('/cdn/shop/files/Vector_736.png?v=1785116418') no-repeat left center / 100% 100%;
    color: #fff;
    font-size: clamp(9.3px, calc(9.3px + (18 - 9.3) * ((100vw - 375px) / 1145)), 18px);
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    margin-top:20px;
  }

  .wtc__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2; /* 移动端固定两行 */
    overflow: hidden;
    margin: 0 0 10px;
    color: #000;
    font-size: clamp(10px, calc(10px + (16 - 10) * ((100vw - 375px) / 1145)), 16px);
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
    text-align: left;
    height: calc(1.35em * 2);
    max-height: calc(1.35em * 2);
  }


  .wtc__price {
    margin: 0 0 20px;
    color: var(--wtc-red);
    font-size: clamp(12px, calc(12px + (19 - 12) * ((100vw - 375px) / 1145)), 19px);
    font-weight: 700;
    line-height: 1.2;
  }

  .wtc__compare {
    margin-left: 6px;
    color: #999;
    font-size: 0.75em;
    font-weight: 400;
    text-decoration: line-through;
  }
  .wtc__form,
  .wtc__card-inner > .wtc__atc {
    margin-top: auto; /* 按钮统一沉底，卡片等高 */
  }

  .wtc__atc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 23px;
    padding: 3px 8px;
    border: 1px solid var(--wtc-blue-soft);
    border-radius: 4px;
    color: var(--wtc-blue-soft);
    font-family: inherit;
    font-size: clamp(10px, calc(10px + (15 - 10) * ((100vw - 375px) / 1145)), 15px);
    font-weight: 600;
    background:#fff;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  }

 
  .wtc__atc--disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
  }

  .wtc__atc-icon {
    flex: 0 0 auto;
  }

  .wtc__controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
    width: 100%;
    padding: 0;
    box-sizing: border-box;
  }

  .wtc__scrollbar {
    display: none;
    width: 100%;
    max-width: none;
    height: 8px;
    margin: 0;
    background: #E4EFFF;
    border-radius: 999px;
    overflow: hidden;
  }

  .wtc__scrollbar .swiper-scrollbar-drag {
    background: var(--wtc-blue);
    border-radius: 999px;
    height: 4px;
    top: 50%;
    margin-top: -2px; 
  }

  .wtc__navs,
  .wtc__nav-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 70px;
  }

  .wtc__nav {
    flex: 0 0 auto;
    width: 50px;
    height: 50px;
    border: 0;
    border-radius: 50%;
    background: #21467A1A;
    color: var(--wtc-blue);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease, opacity 0.2s ease;
  }


  .wtc__nav.swiper-button-disabled {
    opacity: 0.4;
    cursor: default;
  }

  .wtc__nav svg {
    width: 16px;
    height: 16px;
  }

  .wtc__pagination {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: auto !important;
  }

  .wtc__pagination .swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    margin: 0 !important;
    background: #cfd8e3;
    opacity: 1;
  }

  .wtc__pagination .swiper-pagination-bullet-active {
    background: var(--wtc-blue);
  }

  .wtc__empty {
    margin: 0;
    text-align: center;
    color: #666;
    font-size: 14px;
  }

  
  @media screen and (max-width: 989px) {
    .wtc {
      padding-left: 12px;
      padding-right: 12px;
    }

    .wtc__swiper {
      padding: 4px 0 8px;
    }

    .wtc__slide {
      padding: 8px;
    }

    .wtc__controls {
      flex-direction: row;
      justify-content: center;
      gap: 12px;
      padding: 0;
      margin-top: 12px;
    }

    .wtc__scrollbar {
      display: none !important;
    }

    .wtc__pagination {
      display: flex !important;
    }

    .wtc__card {
      padding: 0;
      box-shadow: 0 0 22.8px 0 rgba(0, 0, 0, 0.11);
    }

    .wtc__card-inner {
      padding: 12px 14px 20px;
    }

    .wtc__price {
      margin-bottom: 8px;
    }

    .wtc__atc svg{
      width: 15px;
      height: 15px;
      color: #103365;
    }

    .wtc__navs,
    .wtc__nav-row {
      gap: 20px;
    }

    .wtc__nav {
      width: 30px;
      height: 30px;
    }

    .wtc__nav svg {
      width: 11px;
      height: 11px;
    }

    .wtc__swiper:not(.swiper-initialized) .swiper-wrapper {
      display: flex !important;
      flex-wrap: wrap !important;
      gap: 0;
    }

    .wtc__swiper:not(.swiper-initialized) .swiper-slide {
      width: 50% !important;
      max-width: 50% !important;
      margin: 0 !important;
      flex-shrink: 0;
      padding: 8px;
    }

    /* 移动端首屏只露 2×2 共 4 个，避免先闪出 8 个再收 */
    .wtc__swiper:not(.swiper-initialized) .swiper-slide:nth-child(n + 5) {
      display: none !important;
    }

     .wtc__badge {
      padding: 0 8px 0 8px;
      font-weight: 500;
      margin-top:10px;
    }
  }

  @media screen and (min-width: 990px) {
    .wtc__swiper:not(.swiper-initialized) .swiper-wrapper {
      display: flex !important;
      flex-wrap: nowrap !important;
      gap: 0;
    }

    .wtc__swiper:not(.swiper-initialized) .swiper-slide {
      width: 25% !important;
      max-width: 25% !important;
      margin: 0 !important;
      flex-shrink: 0;
      box-sizing: border-box;
      padding: 12px 10px;
    }

    .wtc__swiper:not(.swiper-initialized) .swiper-slide:nth-child(n + 5) {
      display: none !important;
    }

     .wtc__scrollbar {
      display: block !important;
      position: relative;
      visibility: visible;
      opacity: 1;
    }

    .wtc__swiper:not(.swiper-initialized) ~ .wtc__controls .wtc__scrollbar::before {
      content: '';
      position: absolute;
      left: 0;
      top: 50%;
      width: 25%;
      height: 4px;
      margin-top: -2px;
      background: var(--wtc-blue);
      border-radius: 999px;
      pointer-events: none;
    }

    .wtc__controls {
      visibility: visible;
      opacity: 1;
      min-height: 74px; /* 预留进度条 + 箭头高度，避免后弹出 */
    }

    .wtc__pagination {
      display: none !important;
    }

    .wtc__card {
      padding: 0;
      align-items: stretch;
    }

    .wtc__card-inner {
      padding: 30px;
      align-items: stretch;
    }

    .wtc__media {
      width: 305px;
      max-width: 100%;
      height: 305px;
      aspect-ratio: auto;
      flex: 0 0 auto;
      margin-left: auto;
      margin-right: auto;
    }

    .wtc__media-link,
    .wtc__media img,
    .wtc__placeholder {
      width: 100%;
      max-width: 305px;
      height: 305px;
      object-fit: contain;
      margin: 0 auto;
    }

    .wtc__name {
      display: -webkit-box;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 3; /* PC 固定三行 */
      font-weight: 500;
      height: calc(1.35em * 3);
      max-height: calc(1.35em * 3);
    }
    .wtc__name:hover {
      text-decoration:underline;
    }
    .wtc__atc {
      min-height: 38px;
      padding: 10px 12px;
    }

    .wtc__atc:hover {
      background: var(--wtc-blue-soft);
      color: #fff;
    }

    .wtc__atc:hover svg path {
      fill: #fff;
    }

    .wtc__atc:hover svg path[stroke] {
      fill: none;
      stroke: #fff;
    }
  }
