/* ========== 产品详情页 - 色块选择器 ========== */
.color-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 30px;
}

.color-swatches .swatch-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  width: 100%;
  margin-bottom: 4px;
}

.color-swatch-item {
  position: relative;
  display: inline-block;
}

.color-swatch-item .swatch-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: block;
  transition: transform 0.3s cubic-bezier(.4, 0, .2, 1);
}

.color-swatch-item:hover .swatch-circle {
  transform: scale(1.2);
}

/* 悬浮提示 */
.color-swatch-item .swatch-name {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  font-size: 11px;
  color: #fff;
  background: rgba(0, 0, 0, 0.75);
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
}

.color-swatch-item:hover .swatch-name {
  opacity: 1;
  transform: translateX(-50%) translateY(-6px);
}

/* ========== 色块颜色（新增颜色只需在此追加） ========== */
.swatch-black    { background: linear-gradient(135deg, #2c2c2c, #000); }
.swatch-ivory    { background: linear-gradient(135deg, #FFFFF0, #F5F5DC); }
.swatch-rosegold { background: linear-gradient(135deg, #E8B4B8, #D4A0A7); }
.swatch-green    { background: linear-gradient(135deg, #7DA87B, #5C8A5A); }
.swatch-pink     { background: linear-gradient(135deg, #F4C2C2, #E8A0BF); }
.swatch-lilac    { background: linear-gradient(135deg, #C8A2C8, #B589B5); }

/* ========== Accessories Slider Section ========== */
.accessories-section {
  position: relative;
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); /* Optimized Gradient Blue */
  padding: 80px 0 160px;
}

.accessories-section .container {
  background-color: #fff;
  padding: 60px 0 50px;
  position: relative;
  z-index: 2;
  box-shadow: 0 15px 45px rgba(0,0,0,0.2);
  max-width: 1600px; /* Further widened for modern large displays */
  width: 95%; /* Responsive width on smaller screens */
}

.accessories-title-wrap {
  text-align: center;
  margin-bottom: 50px;
}

.accessories-title {
  font-size: 42px;
  font-weight: 900;
  font-style: italic;
  color: #1a1a1a;
  text-transform: capitalize;
  letter-spacing: -1px;
}

.accessory-slider {
  padding: 0;
  margin: 0;
  overflow: hidden;
}

.accessory-slider .swiper-wrapper {
  margin-left: -1px; /* Clips the first border-left on the far left edge */
}

.accessory-slider .swiper-slide {
  border-left: 1px solid #eee; /* Inner borders only through this combined with negative margin */
}

/* Accessory Card Styling */
.accessory-card {
  text-align: center;
  padding: 20px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.accessory-image {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
}

.accessory-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.accessory-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 10px;
}

.accessory-divider {
  width: 25px;
  height: 3px;
  background-color: #ffcc00;
  margin: 0 auto 12px;
}

.accessory-type {
  font-size: 13px;
  color: #333;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* Navigation Buttons - Positioned on the blue area below the white box */
.accessories-nav-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 60px; /* Position relative to the SECTION */
  display: flex;
  gap: 20px;
  z-index: 100;
}

.accessory-nav-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: #fff; /* Both buttons white by default */
  color: #1e3a8a;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Translucent state for disabled buttons */
.accessory-nav-btn.swiper-button-disabled {
  opacity: 0.15;
  cursor: not-allowed;
  pointer-events: none;
}

.accessory-nav-btn:hover:not(.swiper-button-disabled) {
  transform: scale(1.1);
  background-color: #1e3a8a; /* Hover background color matches section */
  color: #fff;
}

@media (max-width: 1199px) {
  .accessories-title {
    font-size: 36px;
  }
}

@media (max-width: 991px) {
  .accessories-section {
    padding: 60px 0 140px;
  }
  .accessories-section .container {
    padding: 40px 0 30px;
    margin: 0 15px;
    width: auto;
    max-width: none;
  }
  .accessories-title {
    font-size: 30px;
  }
  .accessories-title-wrap {
    margin-bottom: 30px;
  }
  .accessory-slider .swiper-slide {
    /* Keep border-left logic as it still works for 2 column view */
  }
}

@media (max-width: 575px) {
  .accessories-section {
    padding: 40px 0 120px;
  }
  .accessories-title {
    font-size: 24px;
  }
  .accessory-slider .swiper-slide {
    border-left: none; /* No vertical border for single column */
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 30px;
  }
  .accessory-slider .swiper-slide:last-child {
    border-bottom: none;
  }
  .accessories-nav-container {
    bottom: 40px;
  }
}
