/* css/stores.css */
@charset "UTF-8";
/* ============================================================
   購買地點：選單位置 C，兩層「縣市 → 行政區」
   右側白色面板，一家門市一列：藥局名稱＋地址＋電話（Aura 2026-10-25 指定，不嵌地圖）；
   店名左側一條黃色短線（取自 dermak 參考站）
   ============================================================ */
.tpl-stores {
  background: var(--BgColorSection, #f4f7fa);
}
.tpl-stores .store-panel {
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--BorderRadius, 12px);
  background: #fff;
  box-shadow: 0 10px 30px rgba(11, 32, 68, 0.06);
}
.tpl-stores {
  /* 門市卡：兩欄小卡，品牌標籤 → 店名 → 地址與電話同列，以直線分隔。 */
}
.tpl-stores .store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--Space2, 24px);
}
.tpl-stores .store-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border: var(--BorderSecondary, 1px solid #e6ebf1);
  border-radius: var(--BorderRadius, 12px);
  font-size: var(--FontSizeHint, 16px);
  line-height: 1.6;
}
.tpl-stores .store-card .chain-tag {
  align-self: flex-start;
  margin-bottom: 8px;
  padding: 2px 18px;
  border-radius: var(--BtnBorderRadius, 999px);
  background: #eaf0f8;
  color: var(--ColorPrimary, #00368c);
  font-size: var(--FontSizeHint, 16px);
  font-weight: 500;
  letter-spacing: 2px;
}
.tpl-stores .store-card .store-name {
  padding-left: 0;
  border-left: 0;
  font-size: var(--FontSizeItemTitle, 20px);
  text-wrap: pretty;
  margin-bottom: 1rem;
}
.tpl-stores .store-card .store-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 8px 24px;
}
.tpl-stores .store-card .store-address {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 100%;
}
.tpl-stores .store-card .store-tel {
  position: relative;
  flex: none;
  white-space: nowrap;
}
.tpl-stores .store-card .store-tel::before {
  content: "";
  position: absolute;
  inset-block: 0;
  left: -12px;
  border-left: var(--BorderSecondary, 1px solid #e6ebf1);
  pointer-events: none;
}
.tpl-stores .store-card .store-tel.is-wrapped::before {
  display: none;
}
.tpl-stores .store-card .store-address,
.tpl-stores .store-card .store-tel {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.tpl-stores .store-card .store-icon {
  flex: none;
  width: 1em;
  height: 1em;
  margin-top: 0.3em;
}
.tpl-stores .store-card a {
  min-width: 0;
  overflow-wrap: anywhere;
  display: inline-block;
  padding-block: 10px;
  margin-block: -10px;
  font-size: var(--FontSizeHint, 17px);
  color: var(--TextColorPrimary, #1f2328);
  text-decoration: none;
}
.tpl-stores {
  /* 門市少的縣市：各行政區依序列出。 */
}
.tpl-stores .district-section {
  margin-top: var(--Space3, 48px);
}
.tpl-stores .district-section:first-child {
  margin-top: 0;
}
.tpl-stores .district-title {
  margin-bottom: 16px;
  font-size: var(--FontSizeItemTitle, 20px);
  font-weight: 700;
  color: var(--ColorPrimary, #00368c);
}
.tpl-stores {
  /* 官方旗艦店頁沿用一列式 */
}
.tpl-stores .store-item {
  padding-block: 20px;
  border-bottom: var(--BorderSecondary, 1px solid #e6ebf1);
}
.tpl-stores .store-item:last-child {
  border-bottom: 0;
}
.tpl-stores .store-name {
  padding-left: 14px;
  border-left: 4px solid var(--ColorSecondary, #ffc928);
  font-size: var(--FontSizeItemTitle, 20px);
  font-weight: 700;
  line-height: 1.45;
  color: var(--TextColorPrimary, #1f2328);
}
.tpl-stores .channel-list {
  margin-top: 32px;
}
.tpl-stores .channel-item {
  display: flex;
  flex-direction: column;
  padding: 28px clamp(24px, 2.4vw, 40px);
  border-radius: var(--BorderRadius, 12px);
  background: var(--BgColorSection, #f4f7fa) url("https://www.bortswen.com/storage/site-assets/dd989070e4bc7c3a/images/channel-consultation-bg.webp?v=1") center/cover no-repeat;
}
.tpl-stores .channel-item .item-title {
  font-size: var(--FontSizeItemTitle, 20px);
  font-weight: 700;
  color: var(--ColorPrimary, #00368c);
}
.tpl-stores .channel-item .description {
  max-width: 40%;
  margin-top: 8px;
  color: var(--TextColorSecondary, #4a5260);
  font-size: var(--FontSizeHint, 16px);
  line-height: 1.8;
}
.tpl-stores .channel-item > .btn-group {
  margin-top: auto;
}
.tpl-stores {
  /* 官方旗艦店：購物與醫療諮詢並排，兩張照片卡等高。 */
}
.tpl-stores .channel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.tpl-stores .channel-grid > .store-panel.channel-item {
  display: flex;
  padding: 28px clamp(24px, 2.4vw, 40px);
  background: linear-gradient(90deg, var(--BgColor, #fff) 60%, rgba(255, 255, 255, 0) 72%), var(--BgColor, #fff) url("https://www.bortswen.com/storage/site-assets/dd989070e4bc7c3a/images/channel-shop-bg.webp?v=1") right center/cover no-repeat;
  box-shadow: none;
}
.tpl-stores .channel-grid .store-list {
  display: flex;
  flex: 1;
  min-width: 0;
}
.tpl-stores .channel-grid .shop-item {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 0;
}
.tpl-stores .channel-grid .shop-item .btn-group {
  margin-top: auto;
}
.tpl-stores .channel-grid > .channel-list {
  display: flex;
  margin-top: 0;
}
.tpl-stores .channel-grid .channel-item {
  flex: 1;
  min-width: 0;
  background-image: linear-gradient(90deg, var(--BgColorSection, #f4f7fa) 60%, rgba(244, 247, 250, 0) 72%), url("https://www.bortswen.com/storage/site-assets/dd989070e4bc7c3a/images/channel-consultation-bg.webp?v=1");
  background-position: right center;
}
.tpl-stores .channel-grid > .store-panel,
.tpl-stores .channel-grid .channel-item {
  min-height: 320px;
}
.tpl-stores .channel-grid .item-title,
.tpl-stores .channel-grid .description {
  max-width: 58%;
}
.tpl-stores .channel-grid .description {
  margin-bottom: var(--Space3, 3rem);
}
.tpl-stores .channel-grid .btn-link {
  width: fit-content;
  max-width: 100%;
  padding-inline: 20px;
  white-space: nowrap;
  background: var(--BgColor, #fff);
}
/* ---------- RWD ---------- */
@media (max-width: 1599px) {
  .tpl-stores .channel-grid > .store-panel.channel-item {
    background-image: linear-gradient(180deg, var(--BgColor, #fff) 56%, rgba(255, 255, 255, 0) 68%), url("https://www.bortswen.com/storage/site-assets/dd989070e4bc7c3a/images/channel-shop-bg.webp?v=1");
    background-size: 100% 100%, auto 50%;
    background-position: center, right bottom;
  }
  .tpl-stores .channel-grid .channel-item {
    min-height: 440px;
    background-image: linear-gradient(180deg, var(--BgColorSection, #f4f7fa) 56%, rgba(244, 247, 250, 0) 68%), url("https://www.bortswen.com/storage/site-assets/dd989070e4bc7c3a/images/channel-consultation-bg.webp?v=1");
    background-size: 100% 100%, auto 50%;
    background-position: center, right bottom;
  }
  .tpl-stores .channel-grid .item-title,
  .tpl-stores .channel-grid .description {
    max-width: 100%;
  }
}
/* 窄版購買管道改為上下排列，避免手機卡片過窄。 */
@media (max-width: 1023px) {
  .tpl-stores .channel-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 767px) {
.tpl-stores .store-grid {
    grid-template-columns: 1fr;
  }
.tpl-stores .store-panel {
    padding: 0;
    border-radius: var(--BorderRadius, 12px);
    background: transparent;
    box-shadow: unset;
  }
.tpl-stores .store-card {
    background: #fff;
  }
.tpl-stores .channel-item {
    background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.55)), url("https://www.bortswen.com/storage/site-assets/dd989070e4bc7c3a/images/channel-consultation-bg.webp?v=1");
  }
.tpl-stores .channel-item .description {
    max-width: 100%;
  }
}