/* Service Detail Page Styles */
.service-detail {
  padding: 8rem 5% 4rem;
  opacity: 0;
  transform: translateY(30px);
}
.service-detail.visible {
  animation: fadeUp 0.8s ease forwards;
}
.service-title {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  color: var(--point-color);
}
.service-title .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--point-color);
}

.point {
  color: var(--point-color);
}
.service-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 4rem;
  max-width: 900px;
}
.underline {
  text-decoration: underline;
}
.service-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}
.service-left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.service-right {
  position: sticky;
  top: 8rem;
  height: fit-content;
}
.service-image {
  border-radius: 20px;
  overflow: hidden;
  width: 40vw;
  transform: translateY(30px);
}
.service-image.visible {
  animation: fadeUp 0.8s ease 0.2s forwards;
}
.service-image img {
  width: 100%;
  object-fit: cover;
  transform: scale(1.1);
}
.service-image.visible img {
  animation: zoomOut 0.8s ease forwards;
}
.package-card {
  background: rgba(45, 74, 62, 0.05);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid rgba(45, 74, 62, 0.1);
}
.package-header {
  padding: 1.75rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: all 0.3s;
}
.package-header:hover {
  background: rgba(45, 74, 62, 0.02);
}
.package-header-content h3 {
  font-size: 1.5rem;

  color: #1a1a1a;
}
.package-price {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  color: #666;
}
.package-toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--point-color);
  transition: transform 0.4s ease;
  flex-shrink: 0;
  transform: rotate(45deg);
}
.package-card.collapsed .package-toggle {
  transform: rotate(0deg);
}
.package-body {
  max-height: 2000px;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    padding 0.4s ease;
  padding: 0 2rem 1rem;
}
.package-card.collapsed .package-body {
  max-height: 0;
  padding: 0 2rem;
}
.package-subtitle {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  line-height: 1.6;
}
.package-section {
  margin-bottom: 2rem;
}
.package-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: #1a1a1a;
}
.package-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.package-features.full-width {
  grid-template-columns: 1fr;
}
.feature-item {
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.feature-icon {
  width: 40px;
  height: 40px;
  background: var(--point-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  padding-left: 1.5rem;
  position: relative;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}
.feature-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--point-color);
  font-weight: 700;
}
.doctor-section {
  background: #fff;
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.doctor-profile {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.doctor-image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #e0e0e0;
}
.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-info h5 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  color: #1a1a1a;
}
.doctor-title {
  font-size: 0.9rem;
  color: #666;
}
.doctor-credentials {
  list-style: none;
  padding: 0;
}
.doctor-credentials li {
  padding-left: 1.5rem;
  position: relative;
  color: #666;
  font-size: 0.95rem;
  line-height: 1.8;
}
.doctor-credentials li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--point-color);
  font-weight: 700;
}
.info-section {
  margin-top: 4rem;
  padding-top: 4rem;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.info-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}
.info-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
}
.info-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.info-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.info-point-icon {
  width: 50px;
  height: 50px;
  background: var(--point-color);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}
.info-point-text {
  flex: 1;
  color: #666;
  line-height: 1.8;
}
.info-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}
.info-image {
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
}
.info-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.benefits-section {
  margin-top: 4rem;
}
.benefits-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a1a1a;
}
.benefits-text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #666;
  margin-bottom: 2rem;
}

/* ── Brand Tab Lineup ─────────────────────────────── */
.brand-lineup-container {
  margin-top: 0;
}

.brand-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  margin-bottom: 2rem;
}

.brand-tabs::-webkit-scrollbar {
  display: none;
}

.brand-tab {
  padding: 0.85rem 1.75rem;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #999;
  white-space: nowrap;
  transition:
    color 0.2s,
    border-color 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.brand-tab:hover {
  color: var(--point-color);
}

.brand-tab.active {
  color: var(--point-color);
  border-bottom-color: var(--point-color);
  font-weight: 600;
}

.brand-tab-logo {
  height: 22px;
  width: auto;
  object-fit: contain;
}

.brand-panel {
  display: none;
}
.brand-panel.active {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-card {
  background: white;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
}

.brand-card-header {
  margin-bottom: 2rem;
}

.brand-card-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  margin-bottom: 1rem;
  display: block;
}

.brand-card-title {
  font-size: 1.8rem;
  color: #1a1a1a;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.brand-card-desc {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  max-width: 700px;
}

.brand-card-desc-list {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  padding-left: 1.25rem;
  margin: 0;
  list-style: disc;
}

.brand-card-desc-list li {
  margin-bottom: 0.25rem;
}

/* Product Grid (< 8개, 캐러셀 없음) */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-grid .product-item {
  width: calc((100% - 7 * 12px) / 8);
}

/* Product Carousel (>= 8개) */
.product-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-track-viewport {
  flex: 1;
  overflow: hidden;
}

.product-track {
  display: flex;
  gap: 12px;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* 공통 제품 아이템 */
.product-item {
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-item-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  background: #f7f7f7;
}

.product-item-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.product-item:hover .product-item-image {
  transform: scale(1.06);
}

.product-item-name {
  font-size: 0.74rem;
  color: #666;
  text-align: center;
  margin-top: 0.45rem;
  line-height: 1.35;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* 캐러셀 버튼 */
.product-carousel-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  background: white;
  color: #555;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    border-color 0.2s,
    color 0.2s,
    transform 0.2s;
  padding-bottom: 2px;
}

.product-carousel-btn:hover {
  border-color: var(--point-color);
  color: var(--point-color);
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .brand-card {
    padding: 1.5rem;
  }
  .brand-card-title {
    font-size: 1.4rem;
  }
  .brand-tab {
    padding: 0.7rem 1.2rem;
    font-size: 0.88rem;
  }
  .product-grid .product-item {
    width: calc((100% - 2 * 12px) / 3);
  }
}

/* Lineup Section */
.lineup-section {
  padding: 5rem 5%;
  background: #fefdf5;
}
.lineup-header {
  margin-bottom: 3rem;
}
.lineup-label {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  background: rgba(40, 169, 75, 0.1);
  border-radius: 50px;
  font-size: 0.9rem;
  color: var(--point-color);
  margin-bottom: 1rem;
}
.lineup-title {
  font-size: 2.5rem;
  color: #1a1a1a;
}
.lineup-title .italic {
  font-style: italic;
  font-weight: 400;
  color: var(--point-color);
}
.lineup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.5rem;
}
.service-card-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.3rem 0.8rem;
  background: var(--point-color);
  color: white;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
}

.more-services {
  padding: 6rem 5%;
  background: #fefdf5;
}
.more-services-header {
  text-align: center;
  margin-bottom: 4rem;
}
.more-services-title {
  font-size: 3rem;
  color: #1a1a1a;
}
.more-services-title .italic {
  font-style: italic;
  color: var(--point-color);
}
.more-services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.service-card {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}
.service-card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-card-icon {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}
.service-card-content {
  padding: 1.5rem;
}
.service-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
  font-weight: 600;
}
.service-card-price {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--point-color);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}
@media (max-width: 1024px) {
  .service-title {
    font-size: 3.5rem;
  }
  .service-content {
    gap: 3rem;
  }
  .package-features {
    grid-template-columns: 1fr;
  }
  .more-services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .service-detail {
    padding: 6rem 4% 3rem;
  }
  .service-title {
    font-size: 2.5rem;
  }
  .service-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .service-right {
    position: static;
  }
  .service-image {
    width: 100%;
  }
  .package-features {
    grid-template-columns: 1fr;
  }
  .info-images {
    grid-template-columns: 1fr;
  }
  .more-services {
    padding: 4rem 4%;
  }
  .more-services-title {
    font-size: 2rem;
  }
  .more-services-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 480px) {
  .service-title {
    font-size: 2rem;
  }
  .package-header {
    padding: 1.5rem;
  }
  .package-body {
    padding: 0 1.5rem 1.5rem;
  }
  .package-card.collapsed .package-body {
    padding: 0 1.5rem;
  }
}
