/* =========================================================
   CLINIC SKINCARE PAGE — clinic-skincare.css
   ========================================================= */

body {
  background-color: #f0f1f3;
  margin: 0;
  padding: 0;
}

/* =========================================================
   HERO SECTION
   ========================================================= */
.cs-hero {
  position: relative;
  width: 100%;
  min-height: 75vh;
  background-color: #f0f1f3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: -130px;
}

/* Teal triangle accent — top right */
.cs-hero::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 250px;
  background-color: var(--teal-primary, #a4b697);
  clip-path: polygon(100% 0, 0 0, 100% 100%);
  z-index: 2;
}

/* Organic shape background */
.cs-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 65%;
  height: 140%;
  background-color: #e9ecef;
  border-radius: 40% 60% 50% 50% / 40% 50% 60% 50%;
  z-index: 1;
  transform: rotate(-15deg);
}

.cs-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
  padding: 210px 5% 60px;
  gap: 40px;
  flex: 1;
}

/* Hero Image */
.cs-hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: flex-start;
}

.cs-hero-image-wrapper img {
  max-height: 480px;
  width: auto;
  object-fit: contain;
  position: relative;
  z-index: 3;
}

/* Hero Text */
.cs-hero-text-content {
  flex: 1;
  padding-left: 3rem;
  position: relative;
  z-index: 3;
}

.cs-hero-subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  padding-left: 25px;
}

.cs-hero-subtitle::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 1px;
  background-color: #6c757d;
}

.cs-hero-title {
  font-size: 2.8rem;
  color: #495057;
  font-weight: 400;
  line-height: 1.3;
  margin: 0 0 1.2rem 0;
}

.cs-hero-desc {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.8;
  max-width: 440px;
  margin-bottom: 2rem;
}

.cs-hero-btn {
  display: inline-block;
  background-color: var(--teal-primary, #a4b697);
  color: white;
  text-decoration: none;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cs-hero-btn:hover {
  background-color: #8f9b88;
  transform: translateY(-2px);
}

/* Wave Divider */
.cs-hero-wave {
  position: relative;
  z-index: 4;
  line-height: 0;
  margin-top: auto;
}

.cs-hero-wave svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* =========================================================
   PRODUCTS SECTION
   ========================================================= */
.cs-products {
  background-color: #ffffff;
  padding: 4rem 2rem 6rem;
}

.cs-products-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Header */
.cs-list-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  position: relative;
}

.cs-title-wrapper h2 {
  font-size: 2rem;
  color: #888;
  font-weight: 300;
  margin: 0;
}

.cs-title-underline {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 220px;
  height: 3px;
  background-color: var(--teal-primary, #a4b697);
}

/* ---- CATEGORY TABS ---- */
.cs-tabs-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.cs-tab {
  padding: 8px 20px;
  border: 1px solid #e0e0e0;
  background: transparent;
  color: #888;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: "Plus Jakarta Sans", sans-serif;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.cs-tab:hover {
  border-color: var(--teal-primary, #a4b697);
  color: var(--teal-primary, #a4b697);
}

.cs-tab.active {
  background-color: var(--teal-primary, #a4b697);
  border-color: var(--teal-primary, #a4b697);
  color: white;
}

/* ---- PANELS ---- */
.cs-panel {
  display: none;
  animation: panelIn 0.4s ease forwards;
}

.cs-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- PRODUCT GRID ---- */
.cs-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ---- PRODUCT CARD ---- */
.cs-product-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease var(--cd, 0ms), transform 0.5s ease var(--cd, 0ms);
}

.cs-product-card.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Product image box */
.cs-product-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: #f0f1f3;
  position: relative;
}

.cs-product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.cs-product-card:hover .cs-product-img img {
  transform: scale(1.05);
}

/* Placeholder when no image */
.cs-product-img.img-placeholder::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-radius: 12px;
}

/* Category badge — overlaid inside image */
.cs-product-category {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  font-size: 0.68rem;
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  background-color: var(--teal-primary, #a4b697);
  padding: 4px 10px;
  border-radius: 4px;
  margin: 0;
}

/* Product info row */
.cs-product-info {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cs-product-name {
  font-size: 1rem;
  color: #6c757d;
  font-weight: 500;
  margin: 0;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.cs-product-arrow {
  color: var(--teal-primary, #a4b697);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: transform 0.25s ease;
  text-decoration: none;
  margin-left: 12px;
  margin-bottom: 2px;
}

.cs-product-card:hover .cs-product-arrow {
  transform: translateX(5px);
}

/* =========================================================
   CTA SECTION
   ========================================================= */
.cs-cta {
  background-color: var(--teal-primary, #a4b697);
  padding: 80px 5%;
  text-align: center;
}

.cs-cta-container {
  max-width: 600px;
  margin: 0 auto;
}

.cs-cta-sub {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
  padding-left: 25px;
}

.cs-cta-sub::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 15px;
  height: 1px;
  background: rgba(255,255,255,0.75);
}

.cs-cta-title {
  font-size: 2.2rem;
  font-weight: 300;
  color: white;
  line-height: 1.4;
  margin: 0 0 1rem 0;
}

.cs-cta-desc {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  margin: 0 0 2rem 0;
}

.cs-cta-btn {
  display: inline-block;
  background: white;
  color: var(--teal-primary, #7a9670);
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.cs-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
  .cs-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .cs-tabs-bar {
    flex-wrap: wrap;
  }

  .cs-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .cs-hero-container {
    flex-direction: column-reverse;
    text-align: center;
    padding: 180px 5% 50px;
  }

  .cs-hero-text-content {
    padding-left: 0;
  }

  .cs-hero-subtitle::before {
    display: none;
  }

  .cs-hero-subtitle {
    padding-left: 0;
  }

  .cs-hero-title {
    font-size: 2rem;
  }

  .cs-hero-image-wrapper img {
    max-height: 320px;
  }

  .cs-hero::after {
    width: 150px;
    height: 150px;
  }

  .cs-cta-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 560px) {
  .cs-product-grid {
    grid-template-columns: 1fr;
  }

  .cs-hero-title {
    font-size: 1.7rem;
  }
}
