/* ====================== 肯夢AVEDA 設計師 Widget ====================== */
.customization-designer {
  padding: 56px 0;
}

.customization-designer__header {
  margin-bottom: 40px;
}

.customization-designer__title {
  font-size: 32px;
  font-weight: 700;
  color: #000000;
  text-align: center;
}

.customization-designer__container {
  max-width: 1280px;
  margin: 0 auto;
}

/* 地區 Tab 區塊 */
.customization-designer__region-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 40px;
}

.customization-designer .region-tab {
  padding: 12px 40px;
  background: #FFFFFF;
  color: #382720;
  font-size: 18px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  border: 2px solid transparent;
}

.customization-designer .region-tab:hover {
  border: 2px solid #382720;
}

.customization-designer .region-tab.active {
  background: #382720;
  color: #FFFFFF;
}

/* 門市列表 */
.customization-designer__store-list {
  text-align: center;
  margin-bottom: 48px;
  color: #382720;
  font-size: 18px;
  line-height: 1.6;
}

.customization-designer__store-row {
  margin: 0 0 12px 0;
  white-space: normal;
}

.customization-designer__store-row:last-child {
  margin-bottom: 0;
}

.customization-designer__store-link {
  color: #382720;
  text-decoration: none;
  transition: color 0.3s;
}

/* 點擊過後的顏色（已訪問） */
.customization-designer__store-link.active, .customization-designer__store-link:visited {
  color: #a38a6e;
}

.customization-designer__store-link:hover {
  color: #295E56;
  text-decoration: none;
  border-bottom: 1.5px dashed #295E56;
}

.customization-designer__store-name {
  color: #382720;
}

.customization-designer__empty-message {
  color: #999;
  font-size: 16px;
}

/* 商品展示區 - 每列最多 5 個，自動換行 */
.customization-designer__product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  justify-items: center;
  padding-bottom: 32px;
}

@media (max-width: 1400px) {
  .customization-designer__product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .customization-designer__product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* 商品卡片 */
.product-card {
  text-align: center;
  /* width: 220px; */
  /* max-width: 100%; */
}

.product-card__image-wrapper {
  width: 205px;
  height: 205px;
  margin: 0 auto;
  border-radius: 9999px;
  overflow: hidden;
  /* border: 8px solid #fff; */
  /* box-shadow: 0 10px 30px rgba(74, 55, 40, 0.15); */
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-card__title {
  margin: 24px 0 8px;
  font-size: 28px;
  font-weight: 700;
  color: #382720;
  line-height: 1.2;
}

.product-card__description {
  margin: 0;
  font-size: 14px;
  color: #382720;
  line-height: 1.4;
}

/* 地區下拉選單 (手機版) */
.customization-designer__region-dropdowns {
  display: none;
}

.region-dropdown {
  margin-bottom: 12px;
  border-radius: 0;
}

.region-dropdown__header {
  border: 1px solid #382720;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}

.region-dropdown__header::before {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 42px;
  line-height: inherit;
  color: #382720;
  content: "";
  font-family: "icons-blank-theme";
  vertical-align: middle;
  display: inline-block;
  font-weight: normal;
  overflow: hidden;
  speak: none;
  text-align: center;
  position: absolute;
  right: 0px;
}

.region-dropdown.active .region-dropdown__header::before {
  transform: rotate(180deg);
}

.region-dropdown__title {
  font-size: 18px;
  font-weight: 600;
  color: #382720;
}

.region-dropdown__arrow {
  font-size: 14px;
  color: #382720;
  transition: transform 0.3s ease;
  line-height: 1;
}

.region-dropdown.active .region-dropdown__arrow {
  transform: rotate(180deg);
}

.region-dropdown__content {
  display: none;
  padding: 16px;
  text-align: left;
}

.region-dropdown.active .region-dropdown__content {
  display: block;
}

.region-dropdown__content .customization-designer__store-link,
.region-dropdown__content .customization-designer__store-name {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
  color: #382720;
  text-decoration: none;
}

.region-dropdown__content .customization-designer__store-link:last-child,
.region-dropdown__content .customization-designer__store-name:last-child {
  margin-bottom: 0;
}

.region-dropdown__content .customization-designer__store-link {
  text-decoration: none;
}

.region-dropdown__content .customization-designer__store-link:hover {
  color: #295E56;
  text-decoration: none;
}

.region-dropdown__content .customization-designer__store-link.active {
  color: #a38a6e;
}

/* 手機版 CSS 開始 ================================================== */  
@media (max-width: 768px) {
  .customization-designer {
    padding: 32px 0;
  }

  .customization-designer__header {
    margin-bottom: 24px;
  }

  .customization-designer__title {
    font-size: 24px;
  }

  /* 電腦版按鈕隱藏 */
  .customization-designer__region-tabs {
    display: none;
  }

  /* 手機版下拉選單顯示 */
  .customization-designer__region-dropdowns {
    display: block;
    margin-bottom: 24px;
  }

  /* 電腦版門市列表隱藏 */
  .customization-designer__container > .customization-designer__content {
    display: none;
  }

  .region-dropdown__content .customization-designer__store-link,
  .region-dropdown__content .customization-designer__store-name {
    white-space: nowrap;
    display: inline-block;
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.5;
  }

  .customization-designer__product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    padding: 0;
  }

  .product-card {
    width: 100%;
    max-width: 180px;
  }

  .product-card__image-wrapper {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .product-card__title {
    font-size: 20px;
    margin: 16px 0 6px;
  }

  .product-card__description {
    font-size: 13px;
  }
}
/* 手機版 CSS 結束 ================================================== */

.customization-designer__product-grid.designer__empty {
  display: inline;
  text-align: center;
}

