/* LG 정수기 상세 페이지 스타일 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Noto Sans KR', sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 헤더 */
.header {
  text-align: center;
  margin-bottom: 30px;
}

.header h1 {
  font-size: 32px;
  margin-bottom: 10px;
  color: #333;
}

/* 제품 상세 스타일 */
.product-detail {
  background-color: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.product-main {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.product-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  min-height: 80vh;
  overflow: visible;
}

/* 더 구체적인 선택자로 우선순위 높이기 */
.product-detail .product-main .product-image-container .product-image-sticky {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 20px !important;
  z-index: 9999 !important;
  width: 100% !important;
  max-height: calc(100vh - 40px) !important;
  overflow: visible !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
  padding: 20px 20px 25px 20px !important;
  border-radius: 15px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  transition: all 0.3s ease !important;
}

/* 할인 배지가 sticky 컨테이너 내에서 최상위에 위치하도록 */
.product-detail
  .product-main
  .product-image-container
  .product-image-sticky
  .discount-badge {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  z-index: 99999 !important;
  pointer-events: none !important;
}

/* 메인 이미지 컨테이너 */
.main-image-container {
  position: relative;
  width: 100%;
  max-width: min(500px, 85vw);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-container img {
  width: 100%;
  max-width: min(500px, 85vw);
  height: auto;
  max-height: min(400px, 50vh);
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.product-image-container img:hover {
  transform: scale(1.02);
}

/* 화살표 네비게이션 - 메인 이미지용 (기본 회색, 클릭 시에만 빨간색) */
.image-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #ddd; /* 기본 회색 테두리 */
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  color: #333; /* 기본 회색 아이콘 */
  transition: all 0.3s ease;
  z-index: 1000;
  user-select: none;
}

.image-nav-arrow:hover {
  background: rgba(165, 0, 52, 0.1);
  border-color: #a50034;
  color: #a50034;
  transform: translateY(-50%) scale(1.1);
}

/* 클릭된(활성화된) 화살표만 빨간색 */
.image-nav-arrow.active {
  background: rgba(255, 255, 255, 0.95);
  border-color: #a50034; /* 빨간색 테두리 */
  color: #a50034; /* 빨간색 아이콘 */
  box-shadow: 0 3px 12px rgba(165, 0, 52, 0.3);
}

.image-nav-arrow.active:hover {
  background: rgba(165, 0, 52, 0.1);
  border-color: #8a002c;
  color: #8a002c;
  transform: translateY(-50%) scale(1.1);
}

.image-nav-arrow.prev {
  left: -20px;
}

.image-nav-arrow.next {
  right: -20px;
}

.image-nav-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background: rgba(200, 200, 200, 0.5);
}

.image-nav-arrow:disabled:hover {
  background: rgba(200, 200, 200, 0.5);
  color: #666;
  transform: translateY(-50%);
}

.product-info-container {
  flex: 1.5;
  min-width: 400px;
  min-height: 80vh;
  padding: 40px;
  border-left: 1px solid #eee;
  position: relative;
}

/* 할인 배지 */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 2px 10px rgba(255, 107, 107, 0.3);
  z-index: 99999 !important;
  pointer-events: none;
}

/* 이미지 갤러리 */
.image-gallery {
  position: relative;
  margin-top: 15px;
  margin-bottom: 15px;
  padding: 5px 25px 10px 25px; /* 화살표 공간 확보 */
  overflow: hidden;
}

.image-gallery-container {
  display: flex;
  gap: 8px;
  transition: transform 0.3s ease;
  justify-content: flex-start;
}

.image-gallery .thumbnail-img {
  width: 60px !important;
  height: 60px !important;
  border-radius: 6px;
  border: 2px solid #ddd;
  cursor: pointer;
  object-fit: cover;
  transition: all 0.3s ease;
  max-width: 60px !important;
  max-height: 60px !important;
  flex-shrink: 0;
}

/* 호버 시에는 약간의 효과만 */
.image-gallery .thumbnail-img:hover {
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 선택된 이미지만 빨간색 테두리 */
.image-gallery .thumbnail-item.active .thumbnail-img {
  border-color: #a50034;
  border-width: 3px;
  transform: scale(1.05);
  box-shadow: 0 3px 12px rgba(165, 0, 52, 0.4);
}

/* 갤러리 네비게이션 화살표 - 흰색 배경으로 되돌리기 */
.gallery-nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 25px !important;
  height: 25px !important;
  background: rgba(255, 255, 255, 0.9); /* 흰색 배경 */
  border: 1px solid #ddd;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px !important;
  color: #333; /* 회색 아이콘 */
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-nav-arrow:hover {
  background: #a50034; /* 호버 시에만 빨간색 */
  color: white;
  border-color: #a50034;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 3px 12px rgba(165, 0, 52, 0.5);
}

.gallery-nav-arrow.prev {
  left: 0;
}

.gallery-nav-arrow.next {
  right: 0;
}

.gallery-nav-arrow.disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-nav-arrow.disabled:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  border-color: #ddd;
  transform: translateY(-50%) scale(1);
}

/* 이미지 인디케이터 */
.image-indicator {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.image-indicator .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.image-indicator .dot.active {
  background-color: #a50034;
}

.product-title {
  margin-bottom: 20px;
}

.product-title h2 {
  font-size: 28px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-model {
  font-size: 16px;
  color: #666;
  margin-bottom: 15px;
}

/* 가격 정보 스타일 */
.price-info {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  border: 1px solid #ffcccb;
}

.original-price {
  font-size: 16px;
  color: #999;
  text-decoration: line-through;
  margin-bottom: 5px;
}

.current-price {
  font-size: 24px;
  font-weight: 700;
  color: #a50034;
  margin-bottom: 5px;
}

.discount-rate {
  font-size: 18px;
  font-weight: 600;
  color: #ff4757;
  background-color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  display: inline-block;
}

.price-description {
  font-size: 14px;
  color: #666;
  margin-top: 10px;
}

/* 혜택 정보 */
.benefits-section {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 25px;
}

.benefits-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.benefits-title::before {
  content: '🎁';
  margin-right: 8px;
}

.benefit-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 14px;
  color: #555;
}

.benefit-item::before {
  content: '✓';
  color: #28a745;
  font-weight: bold;
  margin-right: 8px;
}

/* 옵션 선택 스타일 */
.product-options {
  margin-bottom: 15px;
}

.option-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.color-options {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.color-option {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.color-option:hover {
  transform: translateY(-2px);
}

.color-option.active {
  transform: translateY(-2px);
}

.color-circle {
  width: 35px !important;
  height: 35px !important;
  border-radius: 50%;
  border: 3px solid #ddd !important;
  flex-shrink: 0;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.color-option:hover .color-circle {
  border-color: #a50034 !important;
  box-shadow: 0 4px 12px rgba(165, 0, 52, 0.2);
}

.color-option.active .color-circle {
  border-color: #a50034 !important;
  border-width: 4px !important;
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.4);
}

/* 색상 텍스트 숨기기 */
.color-option span {
  display: none; /* 기본적으로 숨김 */
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 100;
  animation: fadeInOut 3s ease-in-out;
}

/* 선택 시 3초간 툴팁 표시 애니메이션 */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  15% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  85% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
}

/* 툴팁이 보이는 상태 */
.color-option.show-tooltip span {
  display: block;
}

/* 툴팁 화살표 */
.color-option span::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-bottom: 4px solid rgba(0, 0, 0, 0.8);
}

.rental-options {
  margin-bottom: 20px;
}

.rental-option {
  padding: 18px;
  border: 2px solid #ddd;
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background-color: #fff;
}

.rental-option:hover {
  border-color: #a50034;
  background-color: #fff9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 0, 52, 0.1);
}

.rental-option.active {
  border-color: #a50034;
  background: linear-gradient(135deg, #fff9fa 0%, #ffebee 100%);
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.15);
}

.rental-option.active::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  background: #a50034;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.rental-option.active::after {
  content: '✓';
  position: absolute;
  top: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  color: white;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.popular-badge {
  position: absolute;
  top: -8px;
  left: 15px;
  background: linear-gradient(45deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}

.rental-option-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.rental-option-title {
  font-weight: 600;
}

.rental-option-price {
  color: #a50034;
  font-weight: 600;
}

.rental-option-desc {
  font-size: 14px;
  color: #666;
}

/* 제품 설명 */
.product-description,
.product-specs,
.rental-details {
  padding: 30px;
  border-top: 1px solid #eee;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #333;
}

.feature-list {
  list-style-type: none;
  margin-bottom: 20px;
}

.feature-list li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 20px;
}

.feature-list li:before {
  content: '•';
  position: absolute;
  left: 0;
  color: #a50034;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.spec-table th,
.spec-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.spec-table th {
  width: 30%;
  background-color: #f9f9f9;
  font-weight: 500;
}

/* 렌탈 정보 */
.rental-info {
  margin-bottom: 20px;
}

.rental-info-title {
  font-weight: 600;
  margin-bottom: 10px;
}

.rental-info-desc {
  margin-bottom: 20px;
}

.rental-benefits {
  list-style-type: none;
  margin-bottom: 20px;
}

.rental-benefits li {
  margin-bottom: 10px;
  position: relative;
  padding-left: 25px;
}

.rental-benefits li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #a50034;
}

/* 버튼 스타일 */
.action-buttons {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 20px;
  flex-wrap: nowrap;
}

.btn {
  padding: 16px 24px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.3s;
  text-align: center;
  flex: 1;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.btn-primary {
  background: linear-gradient(135deg, #a50034 0%, #8a002c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #8a002c 0%, #6d0023 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 0, 52, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #333;
  border: 2px solid #dee2e6;
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* 애니메이션 효과 */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

/* 긴급 문의 버튼 */
.btn-urgent {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(255, 107, 107, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 107, 107, 0);
  }
}

/* 추가 스타일 */
.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 18px;
  color: #666;
}

.loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #a50034;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 고객 리뷰 섹션 */
.customer-reviews {
  padding: 30px;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
}

.review-item {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review-rating {
  color: #ffc107;
  margin-bottom: 10px;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 10px;
}

.review-author {
  font-size: 14px;
  color: #888;
  text-align: right;
}

/* FAQ 섹션 */
.faq-section {
  padding: 30px;
  border-top: 1px solid #eee;
}

/* 제품 상세 정보 섹션 */
.product-detailed-info {
  padding: 30px;
  border-top: 1px solid #eee;
  background-color: #f8f9fa;
}

.detailed-content {
  line-height: 1.8;
  color: #333;
  text-align: center;
}

.detailed-content img {
  max-width: 100%;
  height: auto;
  margin: 10px auto;
  border-radius: 8px;
  display: block;
}

.detailed-content h1,
.detailed-content h2,
.detailed-content h3,
.detailed-content h4,
.detailed-content h5,
.detailed-content h6 {
  margin: 20px 0 10px 0;
  color: #333;
}

.detailed-content p {
  margin: 10px auto;
  text-align: center;
}

.detailed-content ul,
.detailed-content ol {
  margin: 10px 0;
  padding-left: 20px;
}

.detailed-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
}

.detailed-content table th,
.detailed-content table td {
  border: 1px solid #ddd;
  padding: 8px 12px;
  text-align: left;
}

.detailed-content table th {
  background-color: #f2f2f2;
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid #eee;
  padding: 15px 0;
}

.faq-question {
  font-weight: 600;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '+';
  font-size: 20px;
  color: #a50034;
}

.faq-question.active::after {
  content: '-';
}

.faq-answer {
  margin-top: 10px;
  color: #666;
  display: none;
  line-height: 1.6;
}

.faq-answer.active {
  display: block;
}

/* 스크롤 시 고정되는 제품 정보 영역 */
.product-info-sticky {
  position: sticky;
  top: 20px;
  z-index: 100;
}

/* 스크롤 시 고정되는 버튼 영역 */
.sticky-buttons {
  position: sticky;
  bottom: 20px;
  z-index: 101;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 15px;
  margin-top: 10px;
}

/* 반응형 스타일 */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }

  .product-main {
    flex-direction: column;
  }

  .product-info-container {
    border-left: none;
    border-top: 1px solid #eee;
    padding: 15px;
    min-width: 100%;
    flex: 1;
  }

  .product-image-container {
    padding: 15px;
    min-width: 100%;
  }

  /* 모바일에서는 sticky 비활성화 */
  .product-detail .product-main .product-image-container .product-image-sticky {
    position: static !important;
    top: auto !important;
    max-height: none !important;
    padding: 10px !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
  }

  .product-detail .product-main .product-image-container {
    min-height: auto !important;
  }

  .header h1 {
    font-size: 24px;
  }

  .action-buttons {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .btn {
    margin-bottom: 0;
    padding: 14px 16px;
    font-size: 14px;
    flex: 1;
    min-width: calc(50% - 4px);
  }

  .price-info {
    padding: 15px;
  }

  .current-price {
    font-size: 20px;
  }

  /* 모바일에서는 sticky 효과 비활성화 */
  .product-info-sticky {
    position: static;
  }

  .sticky-buttons {
    position: static;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 20px;
  }

  .image-gallery .thumbnail-img {
    width: 60px !important;
    height: 60px !important;
    max-width: 60px !important;
    max-height: 60px !important;
  }

  .image-gallery {
    gap: 6px;
    padding: 5px 20px 12px 20px; /* 모바일에서도 화살표 공간 확보 */
    margin-bottom: 10px;
  }

  /* 모바일에서 화살표 크기 조정 */
  .image-nav-arrow {
    width: 35px !important;
    height: 35px !important;
    font-size: 16px !important;
  }

  .image-nav-arrow.prev {
    left: -15px !important;
  }

  .image-nav-arrow.next {
    right: -15px !important;
  }

  /* 모바일에서 메인 이미지 크기 조정 */
  .main-image-container {
    max-width: min(400px, 90vw) !important;
  }

  .product-image-container img {
    max-width: min(400px, 90vw) !important;
    max-height: min(300px, 40vh) !important;
  }
}

/* 데스크톱에서만 sticky 적용 */
@media (min-width: 769px) {
  .product-detail .product-main .product-image-container .product-image-sticky {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    z-index: 9999 !important;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
  }
}

/* 제휴카드 할인 혜택 안내 - 개선된 디자인 */
.partnership-card-section {
  background: linear-gradient(135deg, #f8f9ff 0%, #e8f1ff 100%);
  border-radius: 16px;
  padding: 30px;
  margin: 40px 0;
  border: 1px solid #e1e8f0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.card-benefits-header {
  text-align: center;
  margin-bottom: 40px;
}

.card-benefits-header .section-title {
  color: #2c3e50;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.card-benefits-header .section-subtitle {
  color: #5a6c7d;
  font-size: 16px;
  margin: 0 0 25px 0;
}

.card-benefits-header .max-discount {
  color: #e74c3c;
  font-weight: 700;
  font-size: 18px;
}

/* 새로운 혜택 하이라이트 */
.benefits-highlight {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34495e;
  font-size: 14px;
  font-weight: 500;
}

.highlight-icon {
  font-size: 18px;
}

/* 개선된 카드 그리드 (2열 배치) */
.card-benefits-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  margin-bottom: 40px;
}

.card-benefit-item-enhanced {
  background: white;
  border-radius: 16px;
  padding: 25px;
  border: 2px solid #f0f4f8;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.card-benefit-item-enhanced::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #3498db, #e74c3c);
}

.card-benefit-item-enhanced:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.card-logo {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.card-icon {
  font-size: 24px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.card-info {
  flex: 1;
}

.card-name {
  display: block;
  font-weight: 700;
  color: #2c3e50;
  font-size: 18px;
  margin-bottom: 8px;
}

.max-amount {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 20px;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
  display: inline-block;
}

.benefit-details {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid #e9ecef;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.detail-label {
  color: #6c757d;
  font-size: 14px;
  font-weight: 500;
}

.detail-value {
  color: #495057;
  font-size: 14px;
  font-weight: 600;
}

.discount-range {
  display: flex;
  align-items: center;
  gap: 12px;
}

.range-bar {
  flex: 1;
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.range-fill {
  height: 100%;
  background: linear-gradient(90deg, #28a745, #20c997);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.range-text {
  font-size: 12px;
  color: #28a745;
  font-weight: 600;
  white-space: nowrap;
}

/* 추가 정보 섹션 */
.additional-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 12px;
  border: 1px solid rgba(52, 152, 219, 0.2);
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #34495e;
  font-size: 14px;
  font-weight: 500;
}

.info-icon {
  font-size: 16px;
}

.card-benefits-footer {
  text-align: center;
  border-top: 1px solid #e1e8f0;
  padding-top: 20px;
}

.benefit-note {
  color: #7f8c8d;
  font-size: 12px;
  margin: 0 0 15px 0;
  line-height: 1.4;
}

.card-benefit-action .detail-link {
  display: inline-block;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.card-benefit-action .detail-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
  background: linear-gradient(135deg, #2980b9, #1e6091);
}

/* 모바일 반응형 - 새로운 디자인 */
@media (max-width: 768px) {
  .partnership-card-section {
    padding: 20px;
    margin: 20px 0;
  }

  .card-benefits-header .section-title {
    font-size: 24px;
  }

  .card-benefits-header .section-subtitle {
    font-size: 14px;
  }

  /* 혜택 하이라이트 모바일 */
  .benefits-highlight {
    flex-direction: column;
    gap: 15px;
    margin-top: 15px;
  }

  .highlight-item {
    justify-content: center;
    font-size: 13px;
  }

  /* 개선된 카드 그리드 모바일 */
  .card-benefits-grid-enhanced {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
  }

  .card-benefit-item-enhanced {
    padding: 20px;
  }

  .card-header {
    gap: 12px;
    margin-bottom: 15px;
  }

  .card-logo {
    width: 45px;
    height: 45px;
  }

  .card-icon {
    font-size: 22px;
  }

  .card-name {
    font-size: 16px;
    margin-bottom: 6px;
  }

  .max-amount {
    font-size: 12px;
    padding: 5px 14px;
  }

  .benefit-details {
    padding: 12px;
  }

  .detail-row {
    margin-bottom: 12px;
  }

  .detail-label,
  .detail-value {
    font-size: 13px;
  }

  .range-text {
    font-size: 11px;
  }

  /* 추가 정보 섹션 모바일 */
  .additional-info {
    flex-direction: column;
    gap: 15px;
    padding: 15px;
    margin-bottom: 15px;
  }

  .info-item {
    justify-content: center;
    font-size: 13px;
  }

  .card-benefit-action .detail-link {
    padding: 10px 20px;
    font-size: 14px;
  }
}

/* 기존 제휴카드 섹션 숨김 처리 (호환성을 위해 유지하되 새 디자인이 우선되도록) */
.partnership-card-section .card-benefit-info {
  display: none;
}

/* 기존 partnership-card-section 스타일 수정 - 하위 호환성 유지 */
.partnership-card-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 30px;
  margin: 30px 0;
  border: 1px solid #dee2e6;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.partnership-card-section .section-title {
  color: #a50034;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.card-benefit-info {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.card-benefit-content {
  flex: 2;
}

.card-benefit-content h4 {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 15px;
}

.card-benefit-content p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.6;
}

.card-benefit-list {
  list-style: none;
  padding: 0;
}

.card-benefit-list li {
  background: rgba(165, 0, 52, 0.05);
  border: 1px solid rgba(165, 0, 52, 0.1);
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 10px;
  color: #333;
  font-weight: 500;
  transition: all 0.3s ease;
}

.card-benefit-list li:hover {
  background: rgba(165, 0, 52, 0.1);
  border-color: rgba(165, 0, 52, 0.2);
  transform: translateX(5px);
}

.card-benefit-action {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-benefit-btn {
  background: linear-gradient(135deg, #a50034 0%, #d41e4a 100%);
  color: white;
  text-decoration: none;
  padding: 18px 25px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.3);
  display: inline-block;
  min-width: 200px;
  margin-bottom: 15px;
}

.card-benefit-btn:hover {
  background: linear-gradient(135deg, #8c0029 0%, #b91a40 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 0, 52, 0.4);
}

/* 모달 include 영역 숨김 처리 */
#card-calculator-include {
  display: none !important;
  visibility: hidden !important;
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

/* 모달 컨테이너는 기본적으로 숨김 */
#modal-includes {
  /* modal-includes 자체는 DOM에서 접근 가능해야 함 */
}

/* 개별 모달들은 기본적으로 숨김 처리 */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
}

/* 실제 모달창들만 표시 (모달이 열릴 때) */
.modal.show,
.modal[style*='display: block'],
.modal[style*='display: flex'] {
  display: flex !important;
  position: fixed !important;
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
  visibility: visible !important;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 0;
  border: none;
  border-radius: 15px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  background: linear-gradient(135deg, #a50034, #c2185b);
  color: white;
  border-radius: 15px 15px 0 0;
}

.modal-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.modal-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
  color: #ffcdd2;
  text-decoration: none;
}

.modal-body {
  padding: 25px;
}

/* 제휴카드 계산기 모달 전용 스타일 */
.calculator-modal {
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
}

.calculator-modal .modal-header {
  background: linear-gradient(135deg, #a50034, #c2185b);
  color: white;
  padding: 20px;
  border-radius: 12px 12px 0 0;
}

.calculator-modal .modal-title {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

.calculator-modal .modal-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.calculator-modal .modal-close:hover {
  color: #ffcdd2;
}

.calculator-modal .modal-body {
  padding: 30px;
}

.calculator-subtitle {
  text-align: center;
  margin-bottom: 30px;
  color: #666;
  font-size: 16px;
  line-height: 1.5;
}

.calculator-inputs {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group label {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.input-group select {
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  background: white;
  transition: border-color 0.3s ease;
}

.input-group select:focus {
  outline: none;
  border-color: #a50034;
  box-shadow: 0 0 0 3px rgba(165, 0, 52, 0.1);
}

.calculator-result {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin: 20px 0;
  border: 2px solid #a50034;
}

.result-header h4 {
  margin: 0 0 20px 0;
  color: #a50034;
  text-align: center;
  font-size: 20px;
}

.price-comparison {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.price-comparison > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  background: white;
}

.original-price {
  border-left: 4px solid #666;
}

.discount-amount {
  border-left: 4px solid #ff6b00;
}

.final-price {
  border-left: 4px solid #a50034;
  font-weight: bold;
  font-size: 18px;
}

.label {
  font-weight: 500;
  color: #333;
}

.amount {
  font-weight: bold;
  font-size: 16px;
}

.amount.discount {
  color: #ff6b00;
}

.amount.final {
  color: #a50034;
  font-size: 20px;
}

.monthly-savings {
  text-align: center;
  padding: 16px;
  background: linear-gradient(135deg, #a50034, #c2185b);
  color: white;
  border-radius: 8px;
  font-size: 18px;
}

.monthly-savings strong {
  font-size: 22px;
  font-weight: bold;
}

.calculator-footer {
  margin-top: 30px;
  text-align: center;
}

.detail-link {
  display: inline-block;
  padding: 12px 24px;
  background: #a50034;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.detail-link:hover {
  background: #8a002c;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(165, 0, 52, 0.3);
}

.calculator-note {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  margin: 0;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .calculator-modal {
    max-width: 95vw;
    margin: 20px auto;
  }

  .calculator-modal .modal-body {
    padding: 20px;
  }

  .price-comparison > div {
    padding: 10px 12px;
  }

  .amount.final {
    font-size: 18px;
  }

  .monthly-savings {
    font-size: 16px;
  }

  .monthly-savings strong {
    font-size: 20px;
  }
}

/* 상담신청 모달 전용 스타일 */
.product-detail-consultation-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.product-detail-consultation-modal.show {
  display: flex !important;
}

.product-detail-consultation-content {
  background-color: #fefefe;
  margin: auto;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideInUp 0.4s ease-out;
  position: relative;
}

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

.product-detail-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: linear-gradient(135deg, #a50034, #c2185b);
  color: white;
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.product-detail-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.product-detail-close {
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.product-detail-close:hover,
.product-detail-close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  text-decoration: none;
}

.product-detail-modal-body {
  padding: 30px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* 제품 정보 표시 영역 */
.modal-product-info {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #dee2e6;
}

.modal-product-display {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.modal-product-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 10px;
  background: white;
  padding: 5px;
  border: 2px solid #e9ecef;
}

.modal-product-details h3 {
  margin: 0 0 8px 0;
  font-size: 20px;
  font-weight: 600;
  color: #333;
}

.modal-product-details p {
  margin: 5px 0;
  color: #666;
  font-size: 14px;
}

.modal-product-price {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  color: #a50034;
  background: rgba(165, 0, 52, 0.1);
  padding: 15px;
  border-radius: 10px;
  border: 2px solid rgba(165, 0, 52, 0.2);
  margin-bottom: 20px;
}

/* 선택된 옵션 표시 */
.modal-selected-options {
  background: white;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid #dee2e6;
}

.option-display {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.option-item {
  background: rgba(165, 0, 52, 0.05);
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid rgba(165, 0, 52, 0.1);
  text-align: center;
}

.option-item strong {
  display: block;
  color: #a50034;
  font-weight: 600;
  margin-bottom: 3px;
  font-size: 12px;
}

.option-item span {
  color: #333;
  font-weight: 500;
}

/* 폼 스타일 */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333;
  font-size: 15px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #fff;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #a50034;
  box-shadow: 0 0 0 3px rgba(165, 0, 52, 0.1);
  background: #fafafa;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
}

/* 체크박스 그룹 */
.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

.checkbox-group input[type='checkbox'] {
  width: 20px;
  height: 20px;
  accent-color: #a50034;
  margin-top: 2px;
  flex-shrink: 0;
}

.checkbox-group label {
  font-size: 14px;
  color: #555;
  line-height: 1.4;
  cursor: pointer;
  margin: 0;
}

.privacy-detail-arrow {
  color: #a50034;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
  transition: color 0.3s ease;
}

.privacy-detail-arrow:hover {
  color: #8a002c;
  text-decoration: underline;
}

/* 제출 버튼 */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #a50034 0%, #8a002c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.3);
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #8a002c 0%, #6d0023 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 0, 52, 0.4);
}

.submit-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.submit-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.submit-btn:hover::before {
  left: 100%;
}

/* 플로팅 버튼 (모바일용) */
.floating-rental-btn {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a50034 0%, #8a002c 100%);
  color: white;
  border: none;
  padding: 15px 25px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 4px 20px rgba(165, 0, 52, 0.4);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.floating-rental-btn:hover {
  background: linear-gradient(135deg, #8a002c 0%, #6d0023 100%);
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 6px 25px rgba(165, 0, 52, 0.5);
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .product-detail-consultation-content {
    width: 95%;
    max-height: 95vh;
    margin: 10px auto;
    border-radius: 15px;
  }

  .product-detail-modal-header {
    padding: 20px;
    border-radius: 15px 15px 0 0;
  }

  .product-detail-modal-header h2 {
    font-size: 20px;
  }

  .product-detail-modal-body {
    padding: 20px;
  }

  .modal-product-display {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .modal-product-image {
    width: 100px;
    height: 100px;
    align-self: center;
  }

  .option-display {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .option-item {
    padding: 8px 10px;
  }

  .form-group input,
  .form-group textarea {
    padding: 12px;
    font-size: 16px; /* iOS 줌 방지 */
  }

  .submit-btn {
    padding: 16px;
    font-size: 16px;
  }

  .checkbox-group {
    padding: 12px;
  }

  .checkbox-group label {
    font-size: 13px;
  }
}

/* iOS 사파리에서 입력 필드 줌 방지 */
@media screen and (max-width: 768px) {
  input[type='tel'],
  input[type='text'],
  textarea {
    font-size: 16px !important;
  }
}

/* 스크롤바 스타일링 */
.product-detail-consultation-content::-webkit-scrollbar {
  width: 6px;
}

.product-detail-consultation-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.product-detail-consultation-content::-webkit-scrollbar-thumb {
  background: #a50034;
  border-radius: 3px;
}

.product-detail-consultation-content::-webkit-scrollbar-thumb:hover {
  background: #8a002c;
}

/* 개인정보 모달 전용 스타일 */
.privacy-detail-modal {
  display: none;
  position: fixed;
  z-index: 10001; /* 상담 모달보다 위에 표시 */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
}

.privacy-detail-modal.show {
  display: flex !important;
}

.privacy-detail-content {
  background-color: #fefefe;
  margin: auto;
  border: none;
  border-radius: 20px;
  width: 90%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  animation: modalSlideInUp 0.4s ease-out;
  position: relative;
}

.privacy-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  background: linear-gradient(135deg, #a50034, #c2185b);
  color: white;
  border-radius: 20px 20px 0 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.privacy-detail-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
}

.privacy-detail-close {
  color: white;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.privacy-detail-close:hover,
.privacy-detail-close:focus {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
  text-decoration: none;
}

.privacy-detail-body {
  padding: 30px;
  max-height: calc(90vh - 100px);
  overflow-y: auto;
}

/* 포켓 소개 영역 */
.pocket-intro {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #dee2e6;
  text-align: center;
}

.pocket-intro h3 {
  font-size: 20px;
  font-weight: 700;
  color: #a50034;
  margin-bottom: 10px;
}

.pocket-subtitle {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.5;
}

.pocket-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 25px;
}

.service-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease;
}

.service-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.1);
}

.service-icon {
  font-size: 32px;
  margin-bottom: 10px;
}

.service-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.service-item p {
  font-size: 13px;
  color: #666;
  line-height: 1.4;
}

.vip-membership {
  background: linear-gradient(135deg, #a50034, #c2185b);
  color: white;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.vip-membership h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.vip-membership p {
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.9;
}

.contact-info {
  background: rgba(165, 0, 52, 0.05);
  padding: 15px;
  border-radius: 10px;
  border: 1px solid rgba(165, 0, 52, 0.1);
}

.contact-info p {
  margin: 5px 0;
  font-size: 14px;
  color: #333;
}

.phone-number {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #a50034 !important;
  text-align: center;
}

/* 개인정보 동의 내용 영역 */
.privacy-agreement {
  background: white;
  border-radius: 15px;
  padding: 25px;
  border: 2px solid #e9ecef;
}

.privacy-agreement h3 {
  font-size: 20px;
  font-weight: 700;
  color: #a50034;
  margin-bottom: 20px;
  text-align: center;
}

.privacy-agreement h4 {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin: 20px 0 10px 0;
  padding-left: 10px;
  border-left: 3px solid #a50034;
}

.privacy-agreement p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
  text-align: justify;
}

.privacy-agreement ul {
  margin: 10px 0 15px 20px;
  padding: 0;
}

.privacy-agreement li {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 5px;
}

.privacy-agreement strong {
  color: #a50034;
  font-weight: 600;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .privacy-detail-content {
    width: 95%;
    max-height: 95vh;
    margin: 10px auto;
    border-radius: 15px;
  }

  .privacy-detail-header {
    padding: 20px;
    border-radius: 15px 15px 0 0;
  }

  .privacy-detail-header h2 {
    font-size: 18px;
  }

  .privacy-detail-body {
    padding: 20px;
  }

  .pocket-intro {
    padding: 20px;
  }

  .pocket-intro h3 {
    font-size: 18px;
  }

  .pocket-services {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .service-item {
    padding: 15px;
  }

  .service-icon {
    font-size: 28px;
  }

  .vip-membership {
    padding: 15px;
  }

  .vip-membership h4 {
    font-size: 16px;
  }

  .privacy-agreement {
    padding: 20px;
  }

  .privacy-agreement h3 {
    font-size: 18px;
  }

  .privacy-agreement h4 {
    font-size: 15px;
  }

  .privacy-agreement p,
  .privacy-agreement li {
    font-size: 13px;
  }

  .phone-number {
    font-size: 18px !important;
  }
}

/* 스크롤바 스타일링 (개인정보 모달용) */
.privacy-detail-content::-webkit-scrollbar {
  width: 6px;
}

.privacy-detail-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.privacy-detail-content::-webkit-scrollbar-thumb {
  background: #a50034;
  border-radius: 3px;
}

.privacy-detail-content::-webkit-scrollbar-thumb:hover {
  background: #8a002c;
}

/* 모바일 플로팅 버튼들 스타일 (원래 디자인 사용) */
.mobile-floating-buttons {
  display: none; /* 기본적으로 숨김, JavaScript로 제어 */
  position: fixed;
  bottom: 20px;
  left: 20px;
  right: 20px;
  z-index: 100000; /* 모든 제품 이미지와 갤러리보다 위에 표시 */
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 15px;
  gap: 10px;
  transition: opacity 0.3s ease, transform 0.3s ease;
  flex-direction: row; /* 가로 배열 */
}

/* 원래 버튼 스타일을 모바일 플로팅에 적용 */
.mobile-floating-buttons .btn {
  flex: 1;
  margin: 0;
  font-size: 13px;
  padding: 12px 8px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* 모바일 플로팅 버튼 - 렌탈신청 스타일 */
.mobile-floating-buttons .btn-primary {
  background: linear-gradient(135deg, #a50034 0%, #8a002c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(165, 0, 52, 0.3);
}

.mobile-floating-buttons .btn-primary:hover {
  background: linear-gradient(135deg, #8a002c 0%, #6d0023 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(165, 0, 52, 0.4);
}

/* 모바일 플로팅 버튼 - 긴급상담 스타일 */
.mobile-floating-buttons .btn-urgent {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
  color: white;
  animation: pulse 2s infinite;
}

.mobile-floating-buttons .btn-urgent:hover {
  background: linear-gradient(135deg, #ee5a24 0%, #d63031 100%);
  transform: translateY(-2px);
}

/* 애니메이션 효과 */
.mobile-floating-buttons .btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.mobile-floating-buttons .btn:hover::before {
  left: 100%;
}

/* PC 플로팅 푸터 스타일 */
.pc-floating-footer {
  display: block; /* PC에서는 기본적으로 표시 */
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #a50034 0%, #8a002c 100%);
  color: white;
  z-index: 100000; /* 모든 제품 이미지와 갤러리보다 위에 표시 */
  box-shadow: 0 -4px 20px rgba(165, 0, 52, 0.3);
  border-top: 3px solid #ffffff20;
}

.floating-footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 30px;
  gap: 30px;
}

.footer-left {
  flex: 1;
}

.footer-main-text {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-sub-text {
  font-size: 14px;
  opacity: 0.9;
  font-weight: 400;
}

.footer-right {
  display: flex;
  gap: 15px;
  align-items: center;
}

.footer-consulting-btn,
.footer-card-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  min-width: 140px;
  justify-content: center;
}

.footer-consulting-btn {
  background: #ffffff;
  color: #a50034;
  border: 2px solid #ffffff;
}

.footer-consulting-btn:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.footer-card-btn {
  background: #333333;
  color: #ffffff;
  border: 2px solid #333333;
}

.footer-card-btn:hover {
  background: #222222;
  border-color: #222222;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(51, 51, 51, 0.4);
}

.footer-consulting-btn .material-icons,
.footer-card-btn .material-icons {
  font-size: 18px;
}

/* 모바일에서만 플로팅 버튼들 표시 */
@media (max-width: 768px) {
  .mobile-floating-buttons {
    display: flex;
  }

  .pc-floating-footer {
    display: none !important;
  }
}

/* PC에서만 플로팅 푸터 표시 */
@media (min-width: 769px) {
  .mobile-floating-buttons {
    display: none !important;
  }

  .pc-floating-footer {
    display: block;
  }
}
