/* =========================
   QR ORDER (FINAL)
   ========================= */

/* 섹션 기본 */
.qrorder-section {
  background: #ffffff;
  min-height: 80vh;
  /* padding: 60px 0; */
}

/* 컨텐츠 최대폭 (1792 기준) */
.qrorder-wrap {
  max-width: 1792px;
  margin: 0 auto;
}

/* (선택) row를 확실히 가운데로 모으고 싶을 때 row에 qrorder-row 클래스를 추가 */
.qrorder-row {
  justify-content: center;
}

/* =========================
   좌측 버튼 영역
   - 모바일: 상단 가로 랩 + 가운데
   - PC: 세로 스택 + 고정폭
   ========================= */
.qrorder-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  /* 모바일 가운데 */
  align-items: center;
}

@media (max-width: 991px) {
  .qrorder-steps {
    gap: 8px;
    /* 버튼들 사이 간격도 약간 축소 */
    margin-top: 2rem;
    /* 위쪽 배너와 너무 붙지 않게 여백 추가 */
  }
}

/* PC: 세로 스택 + 고정폭 */
@media (min-width: 992px) {
  .qrorder-steps {
    width: 280px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
  }
}

/* 버튼 공통 */
.qr-btn {
  appearance: none;
  border: 2px solid #ff4d1a;
  background: #fff;
  color: #ff4d1a;
  border-radius: 999px;
  padding: 14px 18px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

@media (max-width: 768px) {
  .qr-btn {
    padding: 10px 14px;
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .qr-btn {
    padding: 8px 12px;
    font-size: 15px;
  }
}

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

/* PC에서 버튼은 폭 100% */
@media (min-width: 992px) {
  .qr-btn {
    width: 100%;
    height: 66px;
    text-align: center;
  }
}

/* 타입 */
.qr-btn--primary {
  background: #ff4d1a;
  color: #fff;
}

.qr-btn--outline {
  background: #fff;
  color: #ff4d1a;
}

.qr-btn--warn {
  border-color: #ffc107;
  color: #ffc107;
}

/* 활성 */
.qr-btn.is-active {
  background: #ff4d1a;
  color: #fff;
  border-color: #ff4d1a;
}

.qr-btn--warn.is-active {
  background: #ff4d1a;
  color: #fff;
  border-color: #ff4d1a;
}

/* 안내문 */
.qrorder-note {
  font-size: 0.95rem;
  font-weight: 600;
  color: #111;
  text-align: center;
}

@media (min-width: 992px) {
  .qrorder-note {
    text-align: left;
  }
}

/* =========================
   우측 폰(프레임 334x720)
   - PC 기본: 334x720
   - 모바일: 260/230으로 축소
   ========================= */
.qrorder-phone {
  position: relative;

  /* PC 기본: 334x720 */
  width: 334px;
  aspect-ratio: 334 / 720;

  margin: 0 auto;
  /* 가운데 정렬 */
}

/* 모바일 축소 */
@media (max-width: 576px) {
  .qrorder-phone {
    width: 260px;
  }
}

@media (max-width: 380px) {
  .qrorder-phone {
    width: 230px;
  }
}

/* 프레임 이미지: 박스를 꽉 채움(잘림 없이) */
.qrorder-phone__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  z-index: 1;
  pointer-events: none;
}

/* 화면 영역(프레임에 맞춰 미세조정 필요) */
.qrorder-phone__screen {
  /* 310/334 = 92.8144%, (334-310)/2 /334 = 3.5928% */
  --screen-left: 3.5928%;
  --screen-width: 92.8144%;

  /* 690/720 = 95.8333%, (720-690)/2 /720 = 2.0833% */
  --screen-top: 2.0833%;
  --screen-height: 95.8333%;

  position: absolute;
  left: var(--screen-left);
  top: var(--screen-top);
  width: var(--screen-width);
  height: var(--screen-height);

  overflow: hidden;
  border-radius: 18px;
  /* 프레임 곡률에 맞게 필요시 조정 */
  z-index: 1;
  background: transparent;
  /* 검은 배경 비침 방지 */
}

/* 슬라이드 이미지는 화면영역에 '딱' 맞게 */
.qrorder-screen {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* 이미지가 310x690이면 정확히 꽉 참(왜곡/여백 없음) */
}

@media (max-width: 576px) {
  .qrorder-phone__screen {
    border-radius: 16px;
  }
}

@media (max-width: 380px) {
  .qrorder-phone__screen {
    border-radius: 14px;
  }
}

/* Swiper: 화면 영역을 100% 채움 */
.qrorder-phone__screen .swiper,
.qrorder-phone__screen .swiper-wrapper,
.qrorder-phone__screen .swiper-slide {
  width: 100%;
  height: 100%;
}

/* 화면 이미지 */
.qrorder-screen {
  width: 100%;
  height: 100%;
  display: block;

  /* 꽉 채우기(잘림 싫으면 contain으로 변경) */
  object-fit: cover;

  /* 활성 슬라이드만 "등장" 효과 */
  opacity: 0;
  transform: translateX(24px);
  transition: opacity .35s ease, transform .35s ease;
}

.swiper-slide-active .qrorder-screen {
  opacity: 1;
  transform: translateX(0);
}

/* ===== 강제 표시(중복 CSS/순서 꼬임 방지) ===== */
.qrorder-phone__screen .swiper-slide .qrorder-screen {
  opacity: 0 !important;
  transform: translateX(24px) !important;
}

.qrorder-phone__screen .swiper-slide.swiper-slide-active .qrorder-screen {
  opacity: 1 !important;
  transform: translateX(0) !important;
}

.qrorder-phone__screen {
  background: transparent !important;
}


/* =========================
   POINT 04 Section
   ========================= */
.qr-point-section {
  background: #fff;
}

/* 상단 이미지 영역 (캡처처럼 넓게, 가운데) */
.qr-point-image {
  max-width: 1100px;
  margin: 0 auto 40px;
}

.qr-point-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

/* POINT 배지 */
.qr-point-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border: 1.5px solid #ff4d1a;
  color: #ff4d1a;
  border-radius: 999px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

/* 타이틀 */
.qr-point-title {
  font-size: 44px;
  font-weight: 900;
  color: #111;
  margin: 0 0 18px;
  line-height: 1.2;
}

/* 설명 */
.qr-point-desc {
  font-size: 18px;
  font-weight: 600;
  color: #444;
  margin: 0 auto 16px;
  max-width: 980px;
}

/* 주석 */
.qr-point-note {
  font-size: 13px;
  font-weight: 600;
  color: #666;
  margin: 0;
}

/* 반응형 */
@media (max-width: 992px) {
  .qr-point-section {
    padding: 60px 0;
  }

  .qr-point-title {
    font-size: 34px;
  }

  .qr-point-desc {
    font-size: 16px;
  }
}

@media (max-width: 576px) {
  .qr-point-image {
    margin-bottom: 28px;
  }

  .qr-point-title {
    font-size: 28px;
  }

  .qr-point-desc {
    font-size: 15px;
  }

  .qr-point-badge {
    padding: 7px 18px;
  }
}