body {
  background-color: #F5F5F5;
}

.accessories-container {
  padding-bottom: 40px;
  max-width: 1296px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.accessories-title {
  margin: 44px 0 48px;
  font-size: 32px;
  font-weight: 700;
  color: #040921;
  text-transform: uppercase;
}

.accessories-header {
  display: flex;
  align-items: center;
}

.accessories-selector {
  margin-right: 50px;
}

.accessories-selector .sl-selector-entry {
  height: 32px;
}

.accessories-order {
  display: flex;
  align-items: center;
  margin-left: 24px;
}

.accessories-order__mobile {
  display: none;
}

.accessories-order-tip{
  width: 115px;
  line-height: 1;
  font-size: 14px;
  color: #040921;
  font-weight: 500;
}


@media screen and (max-width: 959px) {
  .accessories-container {
    padding-bottom: 30px;
  }

  .accessories-title {
    margin: 24px 0;
    font-size: 20px;
  }
  .accessories-header {
    display: block;
  }

  .accessories-header-mobile-top {
    display: flex;
    margin-bottom: 8px;
  }
  .accessories-selector {
    margin-right: 0;
  }
  .accessories-order {
    display: none;
  }
  .accessories-order__mobile {
    margin-left: 18px;
    display: flex;
  }
  .accessories-order__mobile > svg {
    width: 25px;
    height: 24px;
  }
  .accessories-order-tip{
    width: initial;
    font-size: 12px;
    color: rgb(4, 9, 33);
  }
}

.accessories-body {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.accessories-product-item[style*="display: block"] {
  display: flex !important;
  flex-direction: column;
  justify-content: space-around;
}

/* 商品列表样式 */
.accessories-product-item {
  border-radius: 8px;
  overflow: hidden;
  background-color: #fff;
}

.accessories-product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 288 / 250;
  overflow: hidden;
}

.accessories-product-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.accessories-product-download {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accessories-product-title {
  padding: 10px 20px 0px 20px;
  font-size: 18px;
  line-height: 28px;
  letter-spacing: 0;
  font-weight: 600;
  color: rgb(4, 9, 33);
}

.accessories-product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  margin-bottom: 10px;
}

.accessories-product-price {
  font-size: 28px;
  line-height: 42px;
  letter-spacing: 0;
  color: rgb(52, 52, 52);
}

.accessories-product-buy-now-button {
  background-color: rgb(254, 219, 30);
  color: rgb(4, 9, 33);
  padding: 11px 20px;
  border-radius: 20px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  cursor: pointer;
  position: relative;
}

.accessories-product-buy-now-button[data-loading="true"] .buy-now-text {
  color: transparent;
}

.accessories-product-buy-now-button[data-loading="true"] .buy-now-icon {
  color: transparent;
}

.accessories-product-buy-now-button[data-loading="true"] .loading-overlay__spinner {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-left: -10px;
  margin-top: -10px;
  color: #fff;
  display: flex;
  animation: button-loading linear 1.5s infinite;
}

.accessories-no-products {
  grid-column: 1 / -1;
  width: 100%;
  background-color: #f8f8f8;
  height: 314px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.accessories-no-products-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 90%;
  text-align: center;
}


.accessories-no-products-title {
  font-size: 24px;
  line-height: 1.6;
  color: #000;
  font-weight: 400;
}

.accessories-product-buy-now-button .buy-now-text {
  display: block;
}

.accessories-product-buy-now-button .buy-now-icon {
  display: none;
}

@media screen and (max-width: 1440px) {
  .accessories-container {
     max-width: 972px;
  }

  .accessories-title {
    font-size: 24px;
    margin: 33px 0 36px;
  }

  .accessories-order svg {
    width: 31px;
    height: 30px;
  }

  .accessories-order-tip {
    font-size: 10.5px;
  }

  .accessories-body {
    gap: 9px;
    margin-top: 25.5px;
  }

  .accessories-product-title {
    font-size: 13.5px;
    line-height: 21px;
    padding: 7.5px 15px 0 15px;
  }

  .accessories-product-price-row {
    padding: 7.5px 15px;
    margin-bottom: 7.5px;
  }

  .accessories-product-price {
    font-size: 21px;
    line-height: 31.5px;
  }

  .accessories-product-buy-now-button {
    font-size: 10.5px;
    line-height: 15px;
    padding: 8.3px 15px;
  }
}

@media screen and (max-width: 959px) {
  .accessories-container {
    padding-left: 17px;
    padding-right: 17px;
  }

  .accessories-body {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-top: 24px;
  }

  .accessories-product-download {
    width: 27px;
    height: 27px;
  }

  .accessories-product-title {
    font-size: 28px;
    line-height: 40px;
    padding: 16px 16px 0 16px;
  }

  .accessories-product-price-row {
    margin-bottom: 24px;
    padding: 4px 24px;
  }
  
  .accessories-product-price {
    font-size: 36px;
    line-height: 56.5px;
  }
  
  .accessories-product-buy-now-button {
    width: 76.5px;
    height: 76.5px;
    padding: 0;
    border-radius: 50%;
  }

  .accessories-product-buy-now-button .buy-now-text {
    display: none;
  }
  
  .accessories-product-buy-now-button .buy-now-icon {
    width: 36px;
    height: 37px;
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .accessories-product-buy-now-button .buy-now-icon svg {
    width: 100%;
    height: 100%;
  }

  .accessories-no-products {
    height: 250px;
  }

  .accessories-no-products svg {
    width: 120px;
    height: 120px;
  }
  
  .accessories-no-products-title {
    font-size: 18px;
  }

  .accessories-product-download {
    top: 4px;
    right: 4px;
  }
}

@media screen and (max-width: 768px) {
  .accessories-product-title {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 8px 0 8px;
  }

  .accessories-product-price-row {
    padding: 2px 12px;
    margin-bottom: 12px;
  }

  .accessories-product-price {
    font-size: 18px;
    line-height: 28px;
  }

  .accessories-product-buy-now-button {
    width: 38px;
    height: 38px;
  }

  .accessories-product-buy-now-button .buy-now-icon {
    width: 18px;
    height: 18px;
  }
}

@media screen and (max-width: 375px) {
  .accessories-product-title {
    font-size: 14px;
    line-height: 20px;
    padding: 8px 8px 0 8px;
  }

  .accessories-product-price-row {
    padding: 2px 12px;
    margin-bottom: 12px;
  }

  .accessories-product-price {
    font-size: 18px;
    line-height: 28px;
  }

  .accessories-product-buy-now-button {
    width: 38px;
    height: 38px;
  }

  .accessories-product-buy-now-button .buy-now-icon {
    width: 18px;
    height: 18px;
  }
}
