/*
Theme Name:   Astra Child - Cool Mzansi
Theme URI:    https://www.coolmzansi.co.za
Description:  Astra Child theme for Cool Mzansi — rich product catalog with 7 sections.
Author:       Cool Mzansi
Author URI:   https://www.coolmzansi.co.za
Template:     astra
Version:      1.2.0
Text Domain:  astra-child
*/

/* ===================================================================
   기존 스타일 (제품 카드, 상세 페이지)
   =================================================================== */

.cm-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin: 32px 0;
}

.cm-product-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.cm-product-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  transform: translateY(-2px);
}

.cm-product-card__image {
  aspect-ratio: 1 / 1;
  background: #f4f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cm-product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-product-card__image--placeholder {
  color: #999;
  font-size: 12px;
  letter-spacing: 1px;
}

.cm-product-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.cm-product-card__category {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #888;
  text-transform: uppercase;
}

.cm-product-card__title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  line-height: 1.3;
  color: #1a1a1a;
}

.cm-product-card__tagline {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.cm-product-card__specs {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.cm-product-card__cta {
  margin-top: auto;
  padding: 10px 20px;
  background: #1a1a1a;
  color: #fff;
  font-size: 13px;
  letter-spacing: 1px;
  text-align: center;
  border-radius: 4px;
  align-self: flex-start;
}

/* ===== 제품 상세 페이지 ===== */

.cm-product-single {
  max-width: 1140px;
  margin: 0 auto;
  padding: 40px 20px;
}

.cm-product-breadcrumb {
  font-size: 13px;
  color: #888;
  margin-bottom: 24px;
}

.cm-product-breadcrumb a {
  color: #888;
  text-decoration: none;
}

.cm-product-breadcrumb a:hover {
  color: #1a1a1a;
}

.cm-product-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .cm-product-hero {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.cm-product-hero__image {
  aspect-ratio: 1 / 1;
  background: #f4f0e8;
  border-radius: 8px;
  overflow: hidden;
}

.cm-product-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cm-product-hero__content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cm-product-hero__category {
  font-size: 12px;
  letter-spacing: 2px;
  color: #888;
  text-transform: uppercase;
}

.cm-product-hero__title {
  font-size: 34px;
  font-weight: 500;
  margin: 0;
  line-height: 1.2;
  color: #1a1a1a;
}

.cm-product-hero__tagline {
  font-size: 17px;
  color: #555;
  line-height: 1.5;
}

.cm-product-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.cm-product-specs-table td {
  padding: 10px 0;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.cm-product-specs-table td:first-child {
  color: #888;
  width: 40%;
}

.cm-product-specs-table td:last-child {
  color: #1a1a1a;
  font-weight: 500;
}

.cm-cta-button {
  display: inline-block;
  padding: 14px 32px;
  background: #1a1a1a;
  color: #fff !important;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 4px;
  align-self: flex-start;
  transition: background 0.2s;
}

.cm-cta-button:hover {
  background: #333;
}

.cm-product-section {
  margin: 48px 0;
}

.cm-product-section h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: #1a1a1a;
}

.cm-product-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.cm-product-section ul {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  padding-left: 20px;
}

/* 향 섹션 */
.cm-scents-section {
  background: #faf6ee;
  padding: 32px;
  border-radius: 8px;
  border-left: 4px solid #b8945c;
}

.cm-scents-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cm-scents-count {
  font-size: 18px;
  color: #1a1a1a;
  line-height: 1.5;
}

.cm-scents-count strong {
  font-weight: 600;
  color: #b8945c;
  font-size: 22px;
}

.cm-scents-note {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin: 0;
  padding: 12px 0 0 0;
  border-top: 1px solid rgba(184, 148, 92, 0.2);
}

.cm-related-products {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid #eee;
}

.cm-related-products h2 {
  font-size: 22px;
  margin-bottom: 24px;
}

/* ===================================================================
   카테고리 아카이브 페이지 (v3 - 풍부한 7섹션)
   =================================================================== */

.cm-archive-hero {
  text-align: center;
  padding: 80px 20px 60px;
  background: linear-gradient(180deg, #f9f6ef 0%, #f4f0e8 100%);
  margin-bottom: 0;
}

.cm-archive-hero__title {
  font-size: 42px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.cm-archive-hero__description {
  font-size: 17px;
  color: #555;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

.cm-archive-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 공통 섹션 ===== */

.cm-section {
  padding: 80px 0;
  border-bottom: 1px solid #f0eadf;
}

.cm-section:last-of-type {
  border-bottom: none;
}

.cm-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.cm-section-header__label {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2.5px;
  color: #b8945c;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}

.cm-section-header__title {
  font-size: 32px;
  font-weight: 500;
  margin: 0 0 16px 0;
  color: #1a1a1a;
  line-height: 1.2;
}

.cm-section-header__intro {
  font-size: 16px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.cm-section-header--light .cm-section-header__title,
.cm-section-header--light .cm-section-header__intro {
  color: #f4f0e8;
}

.cm-section-header--light .cm-section-header__intro {
  opacity: 0.85;
}

/* 2. Trust indicators ===== */

.cm-trust-section {
  padding: 60px 0;
  border-bottom: 1px solid #f0eadf;
}

.cm-trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

.cm-trust-card {
  text-align: center;
  padding: 24px 16px;
}

.cm-trust-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: #f9f6ef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8945c;
}

.cm-trust-card__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  color: #1a1a1a;
}

.cm-trust-card__text {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
}

/* 4. Process steps ===== */

.cm-process-section {
  background: #faf6ee;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.cm-process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  max-width: 1080px;
  margin: 0 auto;
}

.cm-process-step {
  position: relative;
  background: #fff;
  padding: 32px 28px;
  border-radius: 8px;
  border: 1px solid #ece5d4;
}

.cm-process-step__number {
  font-size: 14px;
  letter-spacing: 2px;
  color: #b8945c;
  font-weight: 700;
  margin-bottom: 16px;
}

.cm-process-step__title {
  font-size: 19px;
  font-weight: 500;
  margin: 0 0 12px 0;
  color: #1a1a1a;
}

.cm-process-step__text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* 5. Coming Soon ===== */

.cm-coming-soon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.cm-coming-soon-card {
  position: relative;
  background: #fff;
  border: 1px dashed #d4c8a8;
  border-radius: 8px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s, transform 0.2s;
}

.cm-coming-soon-card:hover {
  border-color: #b8945c;
  border-style: solid;
}

.cm-coming-soon-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 10px;
  letter-spacing: 1px;
  background: #f9f6ef;
  color: #b8945c;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.cm-coming-soon-card__icon {
  width: 56px;
  height: 56px;
  background: #faf6ee;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b8945c;
  margin-bottom: 8px;
}

.cm-coming-soon-card__title {
  font-size: 18px;
  font-weight: 500;
  margin: 0;
  color: #1a1a1a;
}

.cm-coming-soon-card__desc {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  margin: 0;
  flex: 1;
}

.cm-coming-soon-card__link {
  font-size: 13px;
  color: #b8945c;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: 8px;
  transition: color 0.2s;
}

.cm-coming-soon-card__link:hover {
  color: #8a6b3e;
  text-decoration: underline;
}

/* 6. Industries ===== */

.cm-industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.cm-industry-tag {
  background: #fff;
  border: 1px solid #ece5d4;
  padding: 12px 20px;
  border-radius: 24px;
  font-size: 14px;
  color: #555;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.cm-industry-tag:hover {
  border-color: #b8945c;
  color: #1a1a1a;
}

.cm-industries-note {
  text-align: center;
  font-size: 14px;
  color: #888;
  margin: 32px 0 0 0;
  font-style: italic;
}

/* 7. Multi-CTA ===== */

.cm-multi-cta-section {
  background: #1a1a1a;
  margin: 0 -20px;
  padding: 80px 20px 100px;
  border-bottom: none;
}

.cm-cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}

.cm-cta-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  padding: 28px 24px;
  text-decoration: none;
  color: #f4f0e8;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.cm-cta-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(184,148,92,0.5);
  transform: translateY(-2px);
  color: #fff;
}

.cm-cta-card--primary {
  background: #b8945c;
  border-color: #b8945c;
  color: #1a1a1a;
}

.cm-cta-card--primary:hover {
  background: #d4a76a;
  border-color: #d4a76a;
  color: #1a1a1a;
}

.cm-cta-card--whatsapp:hover {
  border-color: #25D366;
  background: rgba(37, 211, 102, 0.1);
}

.cm-cta-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.9;
}

.cm-cta-card__title {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.cm-cta-card__text {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}

/* ===== 모바일 반응형 ===== */

@media (max-width: 768px) {
  .cm-archive-hero {
    padding: 50px 20px 40px;
  }

  .cm-archive-hero__title {
    font-size: 32px;
  }

  .cm-section {
    padding: 50px 0;
  }

  .cm-section-header__title {
    font-size: 26px;
  }

  .cm-trust-grid,
  .cm-process-grid,
  .cm-coming-soon-grid,
  .cm-cta-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .cm-process-section,
  .cm-multi-cta-section {
    margin: 0 -20px;
  }
}

.cm-archive-hero {
    background-image: url('https://www.coolmzansi.co.za/wp-content/uploads/2026/04/photo-1608755728617-aefab37d2edd.avif');
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 140px 20px 120px;  /* 상하 패딩 증가 */
    min-height: 500px;           /* 최소 높이 설정 */
}

.cm-archive-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.cm-archive-hero__title,
.cm-archive-hero__description {
    position: relative;
    z-index: 1;
}

.cm-archive-hero__title,
.cm-archive-hero__description {
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.cm-archive-hero::before {
    background: rgba(0, 0, 0, 0.45);
}

.cm-archive-hero__title {
    font-size: 52px;
    font-weight: 700;
}

.cm-archive-hero__description {
    font-size: 22px;
}

/* 푸터 컬럼 겹침 수정 */
.site-footer .footer-widget-area,
.site-footer .widget-area,
.ast-footer-widget-area {
    clear: both;
    overflow: hidden;
}

.site-footer .footer-widgets-outer-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer .footer-widget-area {
    flex: 1;
    min-width: 200px;
}