/* product-animal-healthcare.css */

/* ========== 01-header / 02-navbar ========== */
/* Uses common.css .page-header and .navbar-index styles */

/* ========== 03-product-modules ========== */

.product-modules {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 clamp(1.25rem, calc((100vw - 80rem) / 2), 20rem);
  box-sizing: border-box;
}

/* Product Module */
.product-module {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #c0c0c0;
}

.product-module:last-child {
  border-bottom: 1px solid #c0c0c0;
}

/* Product Header */
.product-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 3.75rem 0;
  background-color: #ffffff;
}

.product-title-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.375rem;
  flex: 1;
  min-width: 0;
}

.product-name {
  font-family: var(--font-paperlogy);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1.3;
  letter-spacing: -0.05rem;
  color: var(--darkgreen);
  margin: 0;
}

.product-subtitle {
  font-family: var(--font-pretendard);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.4;
  letter-spacing: -0.0275rem;
  color: var(--logogreen);
  text-transform: capitalize;
  padding: 0 0.25rem;
  margin: 0;
}

/* Toggle Button */
.btn-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  background-color: var(--logogreen);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.btn-toggle:hover {
  transform: scale(1.05);
}

.btn-toggle-icon {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
}

.btn-toggle-icon::before,
.btn-toggle-icon::after {
  content: '';
  position: absolute;
  background-color: #ffffff;
  transition: transform 0.3s ease;
}

.btn-toggle-icon::before {
  top: 50%;
  left: 50%;
  width: 2.25rem;
  height: 0.25rem;
  transform: translate(-50%, -50%);
}

.btn-toggle-icon::after {
  top: 50%;
  left: 50%;
  width: 0.25rem;
  height: 2.25rem;
  transform: translate(-50%, -50%);
}

.product-module.expanded .btn-toggle-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

/* Product Content */
.product-content {
  display: none;
  align-items: flex-start;
  gap: 5rem;
  width: 100%;
  padding-bottom: 5rem;
  background-color: #ffffff;
}

.product-module.expanded .product-content {
  display: flex;
}

/* Product Image */
.product-image-wrapper {
  flex-shrink: 0;
  width: 25rem;
  max-width: 100%;
}

.product-image {
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* Product Details */
.product-details {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.875rem;
  justify-content: center;
  min-width: 0;
}

/* Detail Row */
.detail-row {
  display: flex;
  align-items: flex-start;
  width: 100%;
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: #000000;
}

.detail-label {
  flex-shrink: 0;
  width: 7.5rem;
}

.detail-value {
  flex: 1;
  margin: 0;
  padding-left: 1.5rem;
  list-style-type: disc;
}

.detail-value li {
  margin-bottom: 0;
}

.detail-value li + li {
  margin-top: 0.25rem;
}

/* Product Notice */
.product-notice {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  min-height: 5rem;
}

.product-notice p {
  font-family: var(--font-pretendard);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--logogreen);
  text-align: right;
  margin: 0;
}

/* ==========================================================================
   Responsive - Tablet (max-width: 1199px)
   ========================================================================== */
@media (max-width: 1199px) {
  .product-modules {
    padding: 0 5%;
  }

  .product-header {
    padding: 2.5rem 0;
  }

  .product-name {
    font-size: 2rem;
  }

  .product-subtitle {
    font-size: 1.125rem;
  }

  .btn-toggle {
    width: 4rem;
    height: 4rem;
  }

  .btn-toggle-icon {
    width: 1.75rem;
    height: 1.75rem;
  }

  .btn-toggle-icon::before {
    width: 1.75rem;
    height: 0.1875rem;
  }

  .btn-toggle-icon::after {
    width: 0.1875rem;
    height: 1.75rem;
  }

  .product-content {
    gap: 2.5rem;
    padding-bottom: 3rem;
  }

  .product-image-wrapper {
    width: 18rem;
  }

  .detail-label {
    width: 6rem;
  }

  .detail-row {
    font-size: 1rem;
  }

  .product-notice p {
    font-size: 1rem;
  }
}

/* ==========================================================================
   Responsive - Mobile (max-width: 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .product-header {
    padding: 1.5rem 0;
  }

  .product-title-area {
    gap: 0.25rem;
  }

  .product-name {
    font-size: 1.5rem;
    letter-spacing: -0.03rem;
  }

  .product-subtitle {
    font-size: 1rem;
    padding: 0;
  }

  .btn-toggle {
    width: 3rem;
    height: 3rem;
  }

  .btn-toggle-icon {
    width: 1.25rem;
    height: 1.25rem;
  }

  .btn-toggle-icon::before {
    width: 1.25rem;
    height: 0.125rem;
  }

  .btn-toggle-icon::after {
    width: 0.125rem;
    height: 1.25rem;
  }

  .product-content {
    flex-direction: column;
    padding-bottom: 2rem;
    gap: 1.5rem;
  }

  .product-image-wrapper {
    width: 100%;
    max-width: 18rem;
  }

  .product-details {
    gap: 1.25rem;
  }

  .detail-row {
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9375rem;
  }

  .detail-label {
    width: 100%;
    font-weight: 600;
    color: var(--darkgreen);
  }

  .detail-value {
    padding-left: 1.25rem;
  }

  .product-notice {
    min-height: auto;
    padding-top: 1rem;
  }

  .product-notice p {
    font-size: 0.875rem;
    text-align: center;
  }
}
