/* ================================================================
   Chantely Beauty – Testimonial Carousel
   Frontend Styles
   ================================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,400&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --ch-cream:    #fffdf9;
  --ch-brown:    #2d1b12;
  --ch-warm:     #c8956c;
  --ch-muted:    #6b5b52;
  --ch-light:    #f5efe8;
  --ch-border:   #e8ddd4;
  --ch-radius:   20px;
  --ch-font-h:   'Cormorant Garamond', Georgia, serif;
  --ch-font-b:   'DM Sans', system-ui, sans-serif;
  --ch-shadow:   0 8px 40px rgba(45,27,18,.08);
  --ch-shadow-h: 0 16px 60px rgba(45,27,18,.14);
  --ch-transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

/* ── Section ────────────────────────────────────── */
.chantely-testimonial-section {
  font-family: var(--ch-font-b);
  padding: 80px 0;
  box-sizing: border-box;
  background: var(--ch-cream);
}

/* ── Header ─────────────────────────────────────── */
.chantely-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.chantely-section-tag {
  display: inline-block;
  font-family: var(--ch-font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ch-warm);
  margin-bottom: 14px;
  padding: 6px 18px;
  background: rgba(200,149,108,.10);
  border-radius: 50px;
}

.chantely-section-title {
  font-family: var(--ch-font-h);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  font-style: italic;
  color: var(--ch-brown);
  line-height: 1.18;
  margin: 0 0 16px;
}

.chantely-section-subtitle {
  font-size: 15px;
  color: var(--ch-muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── Carousel Wrapper ────────────────────────────── */
.chantely-carousel-wrapper {
  position: relative;
  padding: 10px 0 60px;
}

/* ── Card ────────────────────────────────────────── */
.chantely-card {
  background: var(--ch-cream);
  border-radius: var(--ch-radius);
  box-shadow: var(--ch-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: box-shadow var(--ch-transition), transform var(--ch-transition);
  border: 1px solid var(--ch-border);
  position: relative;
}

.chantely-card:hover {
  box-shadow: var(--ch-shadow-h);
  transform: translateY(-4px);
}

/* Accent strip at top */
.chantely-card-strip {
  height: 4px;
  background: var(--card-accent, #c8956c);
  flex-shrink: 0;
}

/* ── Review Section ──────────────────────────────── */
.chantely-review-section {
  padding: 24px 24px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Stars */
.chantely-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 14px;
}

.chantely-star {
  font-size: 16px;
  line-height: 1;
}

.chantely-star--full {
  color: #f5a623;
}

.chantely-star--half {
  color: #f5a623;
  opacity: 0.65;
}

.chantely-star--empty {
  color: #ddd;
}

/* Review Title */
.chantely-review-title {
  font-family: var(--ch-font-h);
  font-size: 18px;
  font-weight: 600;
  color: var(--ch-brown);
  line-height: 1.3;
  margin: 0 0 12px;
}

/* Review Body */
.chantely-review-body {
  font-size: 14px;
  color: var(--ch-muted);
  line-height: 1.72;
  margin: 0 0 20px;
  flex: 1;
}

/* Reviewer Row */
.chantely-reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ch-border);
  flex-wrap: wrap;
}

/* Avatar */
.chantely-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--card-accent, #c8956c);
}

.chantely-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.chantely-avatar--initial {
  background: var(--card-accent, #c8956c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ch-font-h);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
}

/* Reviewer Info */
.chantely-reviewer-info {
  flex: 1;
  min-width: 0;
}

.chantely-reviewer-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ch-brown);
}

.chantely-reviewer-location {
  display: block;
  font-size: 11px;
  color: var(--ch-muted);
  margin-top: 1px;
}

/* Verified Badge */
.chantely-verified {
  font-size: 10px;
  font-weight: 600;
  color: #3a9e6b;
  background: rgba(58,158,107,.10);
  padding: 3px 8px;
  border-radius: 50px;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

/* ── Product Card ─────────────────────────────────── */
.chantely-product-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  background: var(--ch-light);
  border-top: 1px solid var(--ch-border);
  flex-shrink: 0;
}

.chantely-product-thumb {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid var(--ch-border);
  background: #fff;
}

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

.chantely-product-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chantely-product-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--ch-brown);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chantely-product-sub {
  font-size: 10px;
  color: var(--ch-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chantely-product-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--card-accent, #c8956c);
  margin-top: 2px;
}

/* Shop Now Button */
.chantely-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--ch-brown);
  color: var(--ch-cream);
  font-family: var(--ch-font-b);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  transition: background var(--ch-transition), transform var(--ch-transition), box-shadow var(--ch-transition);
  flex-shrink: 0;
}

.chantely-shop-btn svg {
  transition: transform var(--ch-transition);
}

.chantely-shop-btn:hover {
  background: var(--card-accent, #c8956c);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(200,149,108,.35);
}

.chantely-shop-btn:hover svg {
  transform: translateX(3px);
}

/* ── Navigation Buttons ──────────────────────────── */
.chantely-btn-prev,
.chantely-btn-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 48px;
  height: 48px;
  background: var(--ch-cream);
  border: 1.5px solid var(--ch-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(45,27,18,.10);
  transition: all var(--ch-transition);
  color: var(--ch-brown);
}

.chantely-btn-prev {
  left: -24px;
}

.chantely-btn-next {
  right: -24px;
}

.chantely-btn-prev:hover,
.chantely-btn-next:hover {
  background: var(--ch-brown);
  border-color: var(--ch-brown);
  color: var(--ch-cream);
  box-shadow: 0 6px 24px rgba(45,27,18,.18);
}

.chantely-btn-prev:hover svg,
.chantely-btn-next:hover svg {
  stroke: var(--ch-cream);
}

/* ── Pagination ──────────────────────────────────── */
.chantely-pagination {
  bottom: 0 !important;
}

.swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  background: var(--ch-border);
  opacity: 1;
  transition: all 0.3s;
}

.swiper-pagination-bullet-active {
  background: var(--ch-warm);
  width: 24px;
  border-radius: 4px;
}

/* ── Style Variants ──────────────────────────────── */

/* Minimal */
.chantely-style-minimal .chantely-card {
  border: none;
  box-shadow: none;
  background: #fff;
  border-radius: 12px;
}

.chantely-style-minimal .chantely-card:hover {
  box-shadow: var(--ch-shadow);
}

/* Bold */
.chantely-style-bold .chantely-card {
  border-radius: 0;
  border: none;
}

.chantely-style-bold .chantely-card-strip {
  height: 0;
}

.chantely-style-bold .chantely-review-section {
  background: linear-gradient(135deg, var(--card-accent,#c8956c) 0%, rgba(200,149,108,.7) 100%);
}

.chantely-style-bold .chantely-review-title,
.chantely-style-bold .chantely-review-body,
.chantely-style-bold .chantely-reviewer-name,
.chantely-style-bold .chantely-reviewer-location {
  color: #fff;
}

.chantely-style-bold .chantely-star--full,
.chantely-style-bold .chantely-star--half {
  color: #fff;
}

.chantely-style-bold .chantely-reviewer {
  border-color: rgba(255,255,255,.25);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 1024px) {
  .chantely-btn-prev { left: 0; }
  .chantely-btn-next { right: 0; }
}

@media (max-width: 768px) {
  .chantely-testimonial-section { padding: 60px 0; }
  .chantely-section-header      { margin-bottom: 40px; }
  .chantely-btn-prev,
  .chantely-btn-next            { display: none; }
}

@media (max-width: 480px) {
  .chantely-product-card { flex-wrap: wrap; }
  .chantely-shop-btn     { width: 100%; justify-content: center; margin-top: 6px; }
}
