/* frontend/css.product.css */
.main-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.sticky-panel-wrapper {
  overflow: visible !important;
}

.sticky-panel-wrapper h2 {
  font-size: 1.2rem;
}

.description-content {
  padding-bottom: 4rem;
}

.description-content .ql-editor {
  padding: 0 !important;
  font-size: 0;
}


.description-content .ql-editor p,
.description-content .ql-editor span,
.description-content .ql-editor div {
  font-size: 14px;
  line-height: 1.6;
}

.description-content img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn {
  padding: 0.75rem 1rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.btn-buy {
  width: 50%;
  padding: 0.5rem 1rem;
  font-size: 1.125rem;
  background-color: #000;
  color: white;
  border: 1px solid #000;
}

.btn-cart {
  width: 50%;
  color: #000;
  background: #FFFFFF;
  border: 1px solid #000;
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  color: #000000;
  cursor: pointer;
  transition: background-color 0.2s;
  border-bottom: 1px solid #000000;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease-in-out;
  font-size: 0.875rem;
  color: #000000;
}

.content-inner {
  padding: 0.5rem 0;
}

.content-inner ul {
  margin: 5px auto;
}

.content-inner ul,
.content-inner p {
  padding-left: 10px;
}

.accordion-icon {
  width: 20px;
  height: 20px;
  transition: transform 0.3s;
}

.accordion-icon.open {
  transform: rotate(180deg);
}

.price-quantity-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.quantity-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qty-btn {
  width: 28px;
  height: 28px;
  background-color: white;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.qty-input {
  width: 20px;
  text-align: center;
  border: none;
  background-color: transparent;
  font-weight: 600;
  -moz-appearance: textfield;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.quantity-control-cart .qty-input:focus,
.quantity-control-cart .qty-input:focus-visible {
  outline: none !important;
  box-shadow: none !important;
  cursor: default;
}

.item-price {
  font-size: 1.2rem;
}

.total-price-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1rem;
  gap: 10px;
}

.total-label {
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000;
}

.total-value {
  font-size: 1.2rem;
  font-weight: 600;
}

.button-group {
  display: flex;
  margin-top: 1rem;
}

.card .title-group {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  border-bottom: 1px solid #000000;
  padding-bottom: 10px;
  font-size: 0.9rem;
}

.card-detail-section {
  margin-bottom: 1rem;
}

.card-detail-form {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.card-detail-content {
  color: #4b5563;
  margin-top: 0.25rem;
}

#reviews,
#qna {
  font-size: 0.8rem;
  margin-bottom: 2rem;
}

.review-header {
  font-size: 14px;
}

.pagination-detail {
  margin-top: 0;
  padding: 0;
}

.pagination-detail img {
  height: 12px;
}

.accordion-item.delivery {
  margin-bottom: 1.5rem;
  border-bottom: none;
}

.accordion-content table {
  width: 100%;
  text-align: center;
  border-collapse: collapse;
}

.accordion-content table th {
  padding: 0.25rem 0;
}

.accordion-content table td {
  padding: 5px;
}

.accordion-content table .accordion-key {
  width: 35%;
}

.mb-2 {
  margin-bottom: 0.25rem;
}

.studio-booking-form {
  margin-top: 10px;
  background: #ffffff;
  font-size: 14px;
  /* border-radius: 14px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06); */
}

/* 라벨 */
.studio-booking-form .form-label-box {
  font-weight: var(--font-weight-regular);
  color: #000000;
  width: 80px;
}

.studio-booking-form .form-row-group {
  margin-bottom: 0px;
  padding: 10px 0;
}

.studio-select,
.studio-input {
  padding: 10px;
  border: 1px solid #d4d4d4;
  transition: all 0.22s ease;
  box-sizing: border-box;
  width: 100%;
  height: 40px;
  line-height: 20px;
}

.studio-date {
  padding: 10px;
  background-image: url('/assets/icons/calendar.svg');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 15px 15px;
  cursor: pointer;
}

#bookingDate {
  caret-color: transparent;
}

.studio-select {
  background-image: url('/assets/icons/down_arrow.svg');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
  padding: 10px 40px 10px 15px;
  cursor: pointer;
}

.studio-select:hover,
.studio-input:hover {
  border-color: #b9b9b9;
}

/* focus 시 */
.studio-select:focus,
.studio-input:focus {
  outline: none;
  border-color: #000;
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

.input-hint {
  margin-top: 5px;
  font-size: 12px;
  color: #666;
}

/* studio-booking-form 내에서 packageDetails 스타일링 */
.studio-booking-form .package-details-info {
  /* 1. 기본 스타일 */
  margin-top: 10px;
  padding: 10px 15px;
  /* studio-select와 유사한 좌우 패딩 */
  border: 1px solid #e0e0e0;
  /* 테두리를 추가하여 별도의 박스임을 명확히 */
  border-radius: 4px;
  /* 모서리 둥글게 */
  background-color: #f9f9f9;
  /* 배경색으로 구분 */

  /* 2. 텍스트 가독성 */
  font-size: 13px;
  /* 조금 작게 설정 */
  line-height: 1.6;
  /* 줄 간격 넓혀서 가독성 향상 */
  color: #555;
}

/* 3. 내부 레이블 (예: "시간당 가격:") 강조 */
.studio-booking-form .package-details-info strong {
  display: inline-block;
  /* 레이블 너비를 확보하여 텍스트 정렬 */
  min-width: 90px;
  /* 레이블 최소 너비 지정 */
  font-weight: 500;
  color: #333;
  margin-right: 5px;
  /* 값과의 간격 */
}

/* 4. 초기 상태의 텍스트 스타일 (선택 전) */
.studio-booking-form .package-details-info.default-text {
  font-style: italic;
  color: #999;
}

.studio-total-price {
  padding: 1.2rem 0 1.2rem;
  border-top: 2px solid #111;
  text-align: right;
}

.studio-total-price .total-label {
  font-weight: var(--font-weight-semibold);
  margin-right: 0.6rem;
}

.studio-total-price .total-value {
  font-weight: var(--font-weight-semibold);
  color: #000;
}

/* 예약 버튼 */
.studio-booking-btn {
  width: 100%;
  padding: 1rem;
  background: #000;
  color: white;
  font-size: 1.25rem;
  font-weight: var(--font-weight-semibold);
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.15s ease;
}

.studio-booking-btn:hover {
  background: #1a1a1a;
}

.studio-booking-btn:active {
  transform: scale(0.98);
}

#reviews .title-group h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.5px;
}

/* 개별 리뷰 아이템 */
.review-item {
  padding: 20px 10px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.review-item:hover {
  background-color: #fafafa;
}

.review-item:last-child {
  border-bottom: none;
}

/* 제목 + 별점 라인 */
.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.review-title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.3px;
}

/* 별점 조금 더 크게 + 선명하게 */
.sz-s .rating-star-fix {
  width: 18px;
  height: 18px;
  background-size: 18px;
}

/* 작성자 + 날짜 */
.review-meta {
  font-size: 13px;
  color: #777;
  margin-bottom: 12px;
}

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

.review-date {
  margin-left: 8px;
}

/* 착용 정보 강조 */
.review-size {
  background-color: #f9f9f9;
  border: 1px solid #e0e0e0;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  color: #444;
  margin: 10px 0;
  display: inline-block;
  font-weight: 500;
}

/* 리뷰 본문 */
.review-content {
  font-size: 14px;
  line-height: 1.68;
  color: #333;
  margin: 16px 0 20px;
  word-break: keep-all;
  white-space: pre-wrap;
  max-height: 140px;
  overflow: auto;
}

.image-attachment-item .input-label {
  font-size: 14px;
  font-weight: 600;
  color: #000;
  margin-bottom: 0px;
  display: block;
}

.card .image-upload-grid {
  gap: 12px;
  padding-bottom: 4px;
  padding-top: 15px;
}

.card .uploaded-image-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card .uploaded-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.card .uploaded-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}

.card .uploaded-image:hover {
  opacity: 0.9;
}

.card .photo-overlay {
  background: rgba(0, 0, 0, 0.75);
  font-size: 20px;
  font-weight: 700;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  cursor: pointer;
}

/* 더 보기 버튼 (기존 스타일 살짝 강화) */
.load-more-wrapper {
  text-align: center;
  margin: 50px 0 20px;
}

.load-more-btn.secondary-button:hover {
  background: #000;
  color: white;
}

/* Q&A 전체 카드 */
#qna .card {
  border: none;
  padding: 0;
  margin-bottom: 4rem;
}

.qna-write-link.primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #000;
  color: #fff;
  padding: 9px 13px;
  border-radius: 6px;
  font-weight: var(--font-weight-medium);
  font-size: 13px;
  transition: all 0.25s ease;
}

.qna-write-link.primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.qna-write-link.primary svg {
  stroke: #fff;
}

.qna-write-link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  /* 호버 시 자동으로 흰색으로 변함 */
}

/* 개별 Q&A 아이템 */
.qna-item {
  padding: 20px 10px;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.qna-item:hover {
  background-color: #fafafa;
}

/* 질문 헤더 */
.qna-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.qna-title {
  font-size: 15px;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.3px;
  flex: 1;
}

/* 공개/비공개 태그 */
.qna-title::before {
  content: attr(data-privacy);
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 4px;
  background: #f0f0f0;
  color: #555;
}

.qna-title[data-privacy="비공개"]::before {
  background: #333;
  color: #fff;
}

/* 상태 태그 */
.qna-status {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
}

.qna-status.replied {
  background: #000;
  color: #fff;
}

.qna-status.pending {
  background: #f5f5f5;
  color: #666;
  border: 1px solid #ddd;
}

/* 작성자 + 날짜 */
.qna-meta {
  font-size: 13px;
  color: #777;
}

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

.qna-date {
  margin-left: 8px;
}

/* 질문 내용 */
.qna-content {
  font-size: 14px;
  line-height: 1.68;
  color: #333;
  margin: 16px 0;
  word-break: keep-all;
  padding-left: 4px;
  white-space: pre-wrap;
  max-height: 140px;
  overflow: auto;
}

.qna-arrow .accordion-icon {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  /* 부드럽고 고급스러운 곡선 */
  display: block;
}

/* 답변 영역 (리뷰의 착용정보랑 비슷한 느낌) */
.qna-reply {
  padding: 10px;
  border-radius: 0 8px 8px 8px;
  font-size: 14px;
  line-height: 1.68;
  color: #222;
}

.qna-reply strong {
  color: #000;
  font-weight: 600;
}

/* 더 보기 버튼 호버 (너가 안 넣은 부분) */
.load-more-btn.secondary-button:hover {
  background: #000;
  color: white;
}

/* 아코디언 준비 (나중에 쓰라고 미리 넣어둠) */
.qna-summary,
.review-summary {
  cursor: pointer;
}

.qna-detail,
.review-detail {
  display: none;
}

.qna-item.open .qna-detail,
.review-item.open .review-detail {
  display: block;
}

.qna-arrow,
.review-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
  color: #999;
}

.qna-item.open .qna-arrow,
.review-item.open .review-arrow {
  transform: rotate(180deg);
}

.review-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  margin-right: 8px;
  border-radius: 4px;
  vertical-align: middle;
}

.review-tag.photo {
  background: #000;
  color: #fff;
}

.review-tag.text {
  background: #f0f0f0;
  color: #555;
}

@media (min-width: 700px) {
  .main-grid {
    grid-template-columns: 2fr 1fr;
  }

  .sticky-panel-wrapper {
    position: sticky;
    top: 130px;
    align-self: flex-start;
  }

  .content-section {
    min-height: 1200px;
  }
}