/* ================================================================
   Panacea — Products Showcase (Homepage)
   Aesthetic: clean apothecary white · floating product photography
   ================================================================ */

/* ── Section ───────────────────────────────────────────────────── */
.ps-section {
  background: #ffffff;
  padding: 96px 0 80px;
  position: relative;
}

/* Subtle top rule to separate from hero tagline above */
.ps-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 56px;
  right: 56px;
  height: 1px;
  background: #e4ece6;
}

/* ── Header ────────────────────────────────────────────────────── */
.ps-head {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 56px 56px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0 72px;
  align-items: end;
}

.ps-head-left {}

.ps-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #02a650;
  margin-bottom: 16px;
}
.ps-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #02a650;
}

.ps-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 300;
  line-height: 1.0;
  color: #013d1d;
  letter-spacing: -0.03em;
  margin: 0;
}
.ps-title em {
  font-style: italic;
  color: #02a650;
}

.ps-head-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 20px;
  max-width: 380px;
  padding-bottom: 6px;
}

.ps-desc {
  font-family: 'Work Sans', sans-serif;
  font-size: 15.5px;
  font-weight: 400;
  color: #5a7060;
  line-height: 1.75;
  margin: 0;
}

.ps-shop-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: #013d1d;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  border: none;
  align-self: flex-start;
  transition: background 0.22s ease, gap 0.22s ease;
}
.ps-shop-btn span {
  display: inline-block;
  transition: transform 0.22s ease;
}
.ps-shop-btn:hover {
  background: #02a650;
  gap: 14px;
}
.ps-shop-btn:hover span {
  transform: translateX(3px);
}

/* ── Slider body ───────────────────────────────────────────────── */
.ps-body {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 56px;
  position: relative;
}

/* Autoplay toggle — small pill top-right */
.ps-autoplay-btn {
  position: absolute;
  top: -42px;
  right: 56px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f2f7f3;
  border: 1px solid #d8e8da;
  color: #5a7060;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  z-index: 4;
}
.ps-autoplay-btn:hover {
  background: #013d1d;
  color: #fff;
  border-color: #013d1d;
}

/* Track overflow wrapper */
.ps-track-wrap {
  overflow: hidden;
  border-radius: 20px;
}

/* Track — JS transforms this */
#productsTrack {
  display: flex;
  transition: transform 0.75s cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

/* Each slide = 100% width */
.ps-slide {
  min-width: 100%;
  display: flex;
  gap: 16px;
  padding: 32px 0 8px;
  justify-content: center;
}

/* ── Product card ──────────────────────────────────────────────── */
.ps-card {
  flex: 1;
  max-width: 380px;
  min-width: 0;
  background: transparent;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease;
  cursor: pointer;
}
.ps-card:hover {
  transform: translateY(-6px);
}

/* Image display area */
.ps-img-area {
  width: 100% !important;
  height: 300px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px !important;
  position: relative;
  background: #f4f9f5 !important;
  border-radius: 16px !important;
  overflow: hidden;
  border-bottom: none !important;
  transition: background 0.28s ease;
}
.ps-card:hover .ps-img-area {
  background: #eaf5ed !important;
}

/* Product image */
.ps-img-area img {
  max-width: 100% !important;
  max-height: 100% !important;
  height: auto !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
  border-radius: 0 !important;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  z-index: 1;
}
.ps-card:hover .ps-img-area img {
  transform: scale(1.08) translateY(-4px);
}

/* Soft glow shadow on hover */
.ps-img-area::after {
  content: '';
  position: absolute;
  bottom: 12px;
  left: 20%;
  right: 20%;
  height: 16px;
  background: rgba(2,166,80,0.1);
  border-radius: 50%;
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}
.ps-card:hover .ps-img-area::after {
  opacity: 1;
}

/* Hide JS placeholder span */
.products-placeholder {
  display: none !important;
}

/* Hide product name label */
.ps-card-name {
  display: none !important;
}

/* ── Controls row (prev / dots / next) ─────────────────────────── */
.ps-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}

.ps-nav-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #013d1d;
  border: none;
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.22s ease, transform 0.22s ease;
  flex-shrink: 0;
}
.ps-nav-btn:hover {
  background: #02a650;
  transform: scale(1.08);
}

.ps-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Override old .products-indicator styles */
.products-indicator {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  background: #c8dcc9 !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;
  transition: background 0.25s ease, width 0.3s cubic-bezier(0.34,1.56,0.64,1), transform 0.25s ease !important;
}
.products-indicator.active {
  background: #02a650 !important;
  width: 26px !important;
  transform: none !important;
}
.products-indicator:hover:not(.active) {
  background: #013d1d !important;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .ps-head   { padding: 0 36px 48px; gap: 0 48px; }
  .ps-body   { padding: 0 36px; }
  .ps-autoplay-btn { right: 36px; }
  .ps-section::before { left: 36px; right: 36px; }
}

@media (max-width: 900px) {
  .ps-head {
    grid-template-columns: 1fr;
    gap: 28px 0;
    padding: 0 28px 40px;
  }
  .ps-head-right { max-width: 100%; }
  .ps-body   { padding: 0 28px; }
  .ps-autoplay-btn { right: 28px; }
  .ps-section::before { left: 28px; right: 28px; }
  .ps-slide  { gap: 12px; }
  .ps-img-area { height: 220px !important; }
}

@media (max-width: 680px) {
  .ps-section { padding: 64px 0 60px; }
  .ps-head    { padding: 0 20px 36px; }
  .ps-body    { padding: 0 20px; }
  .ps-autoplay-btn { right: 20px; }
  .ps-section::before { left: 20px; right: 20px; }

  .ps-slide {
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 16px 0 8px;
  }
  .ps-card {
    width: 100%;
    max-width: 340px;
  }
  .ps-img-area { height: 220px !important; }
}

/* ================================================================
   Tagline / Brand Statement Section
   Sits between the hero slider and the products showcase
   ================================================================ */

.tl-section {
  background: #ffffff;
  border-top: 1px solid #e8f0ea;
  border-bottom: 1px solid #e8f0ea;
  padding: 20px 0;
}

.tl-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}

.tl-tagline {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(25px, 1.35vw, 30px);
  font-weight: 500;
  color: #3a5442;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.6;
}
.tl-tagline em {
  font-style: normal;
  color: #02a650;
  font-weight: 600;
}

/* ── Responsive ────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .tl-inner { padding: 0 24px; }
}
@media (max-width: 480px) {
  .tl-section { padding: 16px 0; }
  .tl-tagline { font-size: 12px; }
}
