/* =========================================
   product-detail.css — 产品详情页
   ========================================= */

/* =========================================
   面包屑
   ========================================= */
.breadcrumb {
  padding: 12px 4.8vw;
  font-size: 12px;
  color: var(--color-text-muted);
}
.breadcrumb a {
  color: var(--color-text-muted);
  text-decoration: underline;
}
.breadcrumb a:hover { color: var(--color-primary); }
.breadcrumb-sep { margin: 0 6px; }

/* =========================================
   Charte Qualité — popup modal
   ========================================= */
#charte-qualite {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 20px;
}
#charte-qualite.hide { display: none; }

#charte-qualite .charte-inner {
  background: #fff;
  max-width: 780px;
  width: 100%;
  padding: 50px 50px 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

#charte-qualite .close-popup {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

#charte-qualite h2 {
  color: var(--color-primary);
  font-family: "Georgia", serif;
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 36px;
  text-align: center;
}

/* =========================================
   #product-top-content
   ========================================= */
#product-top-content {
  padding: 0 4.8vw 80px;
}
#product-top-content .container {
  display: flex;
  align-items: flex-start;
  padding-top: 60px;
  gap: 40px;
}

/* 移动端返回按钮（桌面端隐藏） */
.bt-retour {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ──── 左侧列（图片展示区） ──── */
#product-top-content .col-left {
  width: 50%;
  flex-shrink: 0;
}
#product-top-content .col-left-container {
  max-width: 670px;
  margin-left: auto;
  padding-right: 60px;
}

/* 图片展示 */
.gallery { position: relative; }

.main-slider .single-slide { display: none; }
.main-slider .single-slide.active { display: block; }
.main-slider .single-slide img { width: 100%; display: block; }

.nav-slider {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  gap: 6px;
}
.nav-thumb {
  cursor: pointer;
  width: 75px;
  height: 75px;
  overflow: hidden;
  opacity: 0.55;
  transition: opacity var(--transition);
  flex-shrink: 0;
}
.nav-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nav-thumb:hover,
.nav-thumb.active { opacity: 1; }

/* 图片区底部说明 */
.gallery-infos {
  max-width: 380px;
  margin: 80px auto 0 auto;
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 12px;
  line-height: 1.5;
}
.gallery-infos a {
  text-decoration: underline;
  color: var(--color-primary);
}

/* ──── 右侧列（产品信息） ──── */
#product-top-content .col-right { width: 50%; }
#product-top-content .col-right-container { max-width: 600px; }

/* font-50 用于产品标题 h1 */
.font-50 {
  font-size: clamp(28px, 4vw, 50px);
  line-height: 1.1em;
}

#product-top-content h1 { margin-bottom: 20px; }

.product-format { margin-bottom: 30px; }
.product-format .label {
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 4px;
}

.product-pictos {
  display: flex;
  gap: 16px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.product-description {
  color: var(--color-text-muted);
  margin-bottom: 50px;
  line-height: 1.7;
}
.product-description p + p { margin-top: 10px; }
.product-description strong { color: var(--color-text); }
.product-description ul { list-style: none; }
.product-description li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
}
.product-description li::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* 移动端信息区域（桌面端隐藏） */
.infos-mobile { display: none; }

/* 手风琴展开内容 */
.prod-accordions { border-bottom: 1px solid #ddd; }

.single-conseil {
  border-top: 1px solid #ddd;
  padding: 18px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}
.single-conseil span { pointer-events: none; }

.bt-plus {
  width: 16px;
  height: 16px;
  position: relative;
  flex-shrink: 0;
}
.bt-plus > div {
  background: var(--color-text);
  width: 100%;
  height: 2px;
  position: absolute;
  top: 7px;
  left: 0;
  transition: transform 0.35s ease;
}
.bt-plus > div:first-child { transform: rotate(90deg); }
.single-conseil.active .bt-plus > div:first-child { transform: rotate(0deg); }

.single-conseil-content {
  overflow: hidden;
  height: 0;
  transition: height 0.35s ease;
}
.single-conseil-content .content-height {
  padding: 10px 0 36px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.single-conseil-content ul { list-style: none; }
.single-conseil-content li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
}
.single-conseil-content li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--color-primary);
}
.single-conseil-content p + p { margin-top: 8px; }

/* =========================================
   #product-efficacite
   ========================================= */
#product-efficacite {
  padding: 0 80px 50px 80px;
}
#product-efficacite .container {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #EDE6E0;
  min-height: 600px;
}
#product-efficacite .col-left {
  width: 65%;
  padding: 70px;
  display: flex;
  flex-direction: column;
}
#product-efficacite h2 {
  font-size: clamp(28px, 3.5vw, 50px);
  line-height: 1.1;
  margin-bottom: 8px;
}
#product-efficacite h2 .asterisque {
  font-size: 0.55em;
  vertical-align: super;
}

.satisfaction-cards {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  flex: 1;
}
.carte-notice {
  background: transparent;
  width: 100%;
}
.carte-notice .notice {
  color: var(--color-text-muted);
  font-style: italic;
}

#product-efficacite .col-right {
  width: 35%;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* =========================================
   #product-tolerance
   ========================================= */
#product-tolerance {
  padding: 50px 80px 0 80px;
  border-top: 1px solid #eee;
}
#product-tolerance .container {
  display: flex;
  align-items: flex-start;
  gap: 60px;
}
#product-tolerance .col-left {
  max-width: 380px;
  flex-shrink: 0;
}
#product-tolerance h2 {
  font-size: clamp(26px, 3vw, 50px);
  line-height: 1.1;
  margin-bottom: 16px;
}
#product-tolerance h2 .asterisque {
  font-size: 0.55em;
  vertical-align: super;
}
.tol-description {
  font-family: var(--font-medium);
  font-size: clamp(14px, 1.4vw, 20px);
  text-transform: uppercase;
  margin-bottom: 18px;
}
#product-tolerance .col-right {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 20px 30px;
  align-items: flex-start;
}

.carte-tolerance {
  align-items: flex-start;
  gap: 12px;
  width: calc(50% - 15px);
}
.carte-tolerance svg { flex-shrink: 0; }
.carte-tolerance span { line-height: 1.5; }

.tol-notice {
  color: var(--color-text-muted);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 16px;
}

/* =========================================
   #product-detailed (HTML libre éditorial)
   ========================================= */
#product-detailed {
  padding: 60px 4.8vw;
  border-top: 1px solid #eee;
}

/* 推荐产品区块 */
#product-decouvrir {
  padding: 60px 4.8vw 80px;
  border-top: 1px solid #eee;
}
#product-decouvrir h2 {
  font-size: clamp(26px, 3vw, 40px);
  text-align: center;
  margin-bottom: 36px;
}
#product-decouvrir .decouvrir-grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* 产品卡片 */
.single-product {
  width: calc(33.333% - 16px);
  min-width: 200px;
  max-width: 280px;
}
.single-product .vignette {
  display: block;
  overflow: hidden;
  background: #f9f8f5;
}
.single-product .vignette img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}
.single-product:hover .vignette img { transform: scale(1.03); }

.single-product .pmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 4px;
  gap: 8px;
}
.single-product .ptext h3 { margin-bottom: 2px; }
.single-product .ptext .value { color: var(--color-text-muted); }

.single-product .voir-plus {
  width: 28px;
  height: 28px;
  position: relative;
  flex-shrink: 0;
}
.single-product .voir-plus .bg-main {
  background: var(--color-primary);
  width: 100%;
  height: 2px;
  position: absolute;
  top: 13px;
  left: 0;
}
.single-product .voir-plus .bg-main:first-child { transform: rotate(90deg); }

/* =========================================
   #efficacite-dermo — 药妆系列专用功效/成分区块
   ========================================= */
#efficacite-dermo {
  padding: 0 4.8vw 50px;
}
#efficacite-dermo .container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  background: #EDE6E0;
  display: flex;
  align-items: stretch;
}
#efficacite-dermo .container .col-left {
  width: 65%;
  padding: 70px;
}
#efficacite-dermo .firstContent {
  margin-bottom: 60px;
}
#efficacite-dermo .firstContent h2,
#efficacite-dermo .secondContent h2 {
  font-size: clamp(26px, 3.5vw, 50px);
  margin-bottom: 30px;
  color: var(--color-primary);
}
#efficacite-dermo .containerCarteEfficacite {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: stretch;
  gap: 20px;
}
#efficacite-dermo .carteEfficacite {
  width: calc(33.33% - 14px);
  background: #fff;
  padding: 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: var(--color-primary);
  font-size: clamp(14px, 1.2vw, 20px);
  line-height: 1.4;
}
#efficacite-dermo .firstContent .content {
  max-width: 550px;
  color: var(--color-text-muted);
  line-height: 1.6;
}
#efficacite-dermo .secondContent .content {
  font-size: 14px;
}
#efficacite-dermo .secondContent .content h3 {
  margin-bottom: 40px;
  font-weight: 500;
}
#efficacite-dermo .secondContent .content ul {
  list-style: none;
  padding: 0;
}
#efficacite-dermo .secondContent .content ul li {
  margin-bottom: 30px;
  color: var(--color-text-muted);
  font-weight: 300;
  padding-left: 20px;
  position: relative;
}
#efficacite-dermo .secondContent .content ul li:last-child { margin: 0; }
#efficacite-dermo .secondContent .content ul li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-primary);
  position: absolute;
  top: 4px;
  left: 0;
}
#efficacite-dermo .secondContent .content ul li strong { color: var(--color-text); font-weight: 500; }
#efficacite-dermo .container .col-right {
  width: 35%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@media (max-width: 992px) {
  #efficacite-dermo .container { flex-direction: column; }
  #efficacite-dermo .container .col-left { width: 100%; padding: 36px 24px; }
  #efficacite-dermo .container .col-right { width: 100%; min-height: 260px; }
  #efficacite-dermo .carteEfficacite { width: calc(50% - 10px); }
}
@media (max-width: 600px) {
  #efficacite-dermo .carteEfficacite { width: 100%; }
}

/* =========================================
   响应式 — ≤ 992px
   ========================================= */
@media (max-width: 992px) {
  #product-efficacite { padding: 0 4.8vw 40px; }
  #product-tolerance { padding: 30px 4.8vw 0; }

  #product-top-content .container { flex-direction: column; padding-top: 30px; }
  #product-top-content .col-left,
  #product-top-content .col-right { width: 100%; }
  #product-top-content .col-left-container { padding-right: 0; max-width: 100%; margin: 0; }
  #product-top-content .col-right-container { max-width: 100%; }

  .nav-slider { position: static; margin-top: 10px; }
  .gallery-infos { margin-top: 20px; }

  .bt-retour { display: flex; }
  .infos-mobile { display: block; margin-bottom: 30px; color: var(--color-text-muted); font-style: italic; font-size: 12px; }
  .infos-mobile a { text-decoration: underline; color: var(--color-primary); }
  .gallery-infos { display: none; }

  #product-efficacite .container { flex-direction: column; min-height: auto; }
  #product-efficacite .col-left { width: 100%; padding: 30px; }
  #product-efficacite .col-right { width: 100%; min-height: 280px; }

  #product-tolerance .container { flex-direction: column; gap: 30px; }
  #product-tolerance .col-left { max-width: 100%; }
  .carte-tolerance { width: 100%; }
  .eff-img-col { display: none; }

  #charte-qualite .charte-inner { padding: 36px 24px 28px; }

  .single-product { width: calc(50% - 12px); }
}

@media (max-width: 600px) {
  .single-product { width: 100%; max-width: 100%; }

  .single-product .vignette {
    background: transparent;
    border: 0;
    box-shadow: none;
  }
}

/* =========================================
   Buy Now 按钮 + 购买渠道弹窗
   ========================================= */
.buy-now-wrap {
  margin-top: 28px;
}
.bt-buy-now {
  width: 100%;
  padding: 16px 20px;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.bt-buy-now:hover {
  background: var(--color-primary);
  color: #fff;
}

/* —— 弹窗容器（覆盖在右侧） —— */
.buy-channels-popup {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 20px;
  pointer-events: none;
}
.buy-channels-popup.show {
  pointer-events: auto;
}
.buy-channels-popup.hide {
  display: none;
}

.buy-channels-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity var(--transition);
}
.buy-channels-popup.show .buy-channels-overlay {
  opacity: 1;
}

.buy-channels-panel {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 28px 24px;
  border: 1px solid #e6e6e6;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateX(20px);
  opacity: 0;
  transition: transform var(--transition), opacity var(--transition);
}
.buy-channels-popup.show .buy-channels-panel {
  transform: translateX(0);
  opacity: 1;
}

.buy-channels-panel .close-popup {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}

.buy-channels-panel h2 {
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 22px;
  font-weight: 700;
}

.buy-channels-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.buy-channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.buy-channel-info {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.buy-channel-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.buy-channel-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.buy-channel-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.buy-channel-name {
  font-size: 15px;
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
}
.buy-channel-domain {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.4;
  margin-top: 2px;
  word-break: break-all;
}

.bt-go-purchase {
  flex-shrink: 0;
  padding: 8px 14px;
  background: #fff;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  border-radius: 2px;
}
.bt-go-purchase:hover {
  background: var(--color-primary);
  color: #fff;
}

.buy-channels-empty {
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
  padding: 30px 0;
}

/* —— 移动端：底部弹出 —— */
@media (max-width: 600px) {
  .buy-channels-popup {
    align-items: flex-end;
    justify-content: center;
    padding: 0;
  }
  .buy-channels-panel {
    max-width: 100%;
    border-radius: 8px 8px 0 0;
    transform: translateY(20px);
  }
  .buy-channels-popup.show .buy-channels-panel {
    transform: translateY(0);
  }
}
