/* ═══════════════════════════════════════════
   REDBEAN DESIGN — products.css
   상품 목록·상세 전용 스타일
═══════════════════════════════════════════ */

/* ── 히어로 ── */
.products-hero {
  padding: 120px 0 56px;
  background:
    linear-gradient(135deg, rgba(196, 18, 48, 0.14) 0%, transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}

.products-hero .eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.products-hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 14px;
}

.products-hero h1 em {
  font-style: normal;
  color: var(--red);
}

.products-hero p {
  color: rgba(255,255,255,0.52);
  font-size: 15px;
  line-height: 1.75;
  max-width: 480px;
}

/* ── 레이아웃 ── */
.products-layout {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 48px 0 80px;
}

/* ── 사이드바 ── */
.products-sidebar {
  width: 220px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  padding-right: 24px;
}

.sidebar-title {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 12px;
  padding-left: 2px;
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-list li button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  text-align: left;
}

.sidebar-list li button:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
}

.sidebar-list li button.active {
  background: rgba(196, 18, 48, 0.18);
  color: #fff;
}

.sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 20px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.04em;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.45);
  border-radius: 2px;
  flex-shrink: 0;
}

.sidebar-list li button.active .sidebar-icon {
  background: rgba(196, 18, 48, 0.35);
  color: #ffd7dc;
}

/* ── 상품 메인 ── */
.products-main {
  flex: 1;
  min-width: 0;
  border-left: 1px solid var(--line);
  padding-left: 48px;
}

.products-category-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.products-category-header h2 {
  font-size: 22px;
  font-weight: 900;
}

.products-category-header .count {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  font-weight: 600;
}

/* ── 상품 카드 그리드 ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
  text-decoration: none;
  color: inherit;
}

/* ── 카드 썸네일 이미지 영역 (4:3 고정 비율) ── */
.card-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #181818;
  flex-shrink: 0;
  position: relative;
}

.card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* max-width, height:auto 등 전역 img 규칙 무력화 */
  max-width: none;
  max-height: none;
  min-width: 0;
  transition: transform 0.35s ease;
}

.product-card:hover .card-thumb img {
  transform: scale(1.04);
}

/* 이미지 없거나 로딩 실패 시: 다크 패턴 placeholder 유지 */
.card-thumb:not(:has(img)),
.card-thumb.no-img {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px,
      transparent 1px, transparent 12px
    ),
    linear-gradient(135deg, rgba(196,18,48,0.08) 0%, transparent 60%),
    #1a1a1a;
}

.card-thumb.no-img::after {
  content: '🖼';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  opacity: 0.18;
}

/* ── 카드 바디 ── */
.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 20px 18px;
}

.product-card:hover {
  border-color: var(--red);
  background: rgba(196, 18, 48, 0.06);
  transform: translateY(-2px);
}

.card-type-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 3px 8px;
  border-radius: 2px;
  margin-bottom: 14px;
  text-transform: uppercase;
  width: fit-content;
}

.card-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 18px;
}

.card-price {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  margin-top: auto;
}

.card-price strong {
  color: #ffd7dc;
  font-size: 16px;
  font-weight: 900;
}

.card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--red);
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover .card-arrow {
  opacity: 1;
}

/* ── 모바일: 가로 스크롤 탭 ── */
.sidebar-mobile-tabs {
  display: none;
}

/* ── 나이스페이 심사용 결제 섹션 ── */
.review-payment-section {
  margin-top: 56px;
  border: 1px solid rgba(196, 18, 48, 0.45);
  background: rgba(196, 18, 48, 0.07);
}

.review-payment-header {
  padding: 18px 28px;
  border-bottom: 1px solid rgba(196, 18, 48, 0.3);
  background: rgba(196, 18, 48, 0.1);
}

.review-payment-header h2 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffd7dc;
  margin: 0;
}

.review-payment-body {
  padding: 28px;
}

.review-product-name {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  margin: 0 0 10px;
}

.review-product-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin: 0 0 24px;
  max-width: 520px;
}

.review-product-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}

.review-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.review-meta-row:last-child { border-bottom: 0; }

.review-meta-row dt {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.review-meta-row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  text-align: right;
}

.review-meta-row dd.amount {
  color: var(--red);
  font-size: 18px;
}

.btn-review-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 36px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-review-pay:hover {
  background: #a50f27;
}

/* ── CTA ── */
.products-cta {
  margin-top: 48px;
  margin-bottom: 80px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .products-cta {
    margin-bottom: 56px;
  }
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  font-weight: 700;
  transition: border-color 0.2s, color 0.2s;
}

.btn-back:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.btn-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-contact:hover { background: #a50f27; }

/* ═══════════════════════════════════════════
   DETAIL PAGE
═══════════════════════════════════════════ */

.detail-page {
  padding: 100px 0 80px;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(196, 18, 48, 0.10) 0%, transparent 40%),
    var(--bg);
}

.detail-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  margin-bottom: 36px;
  transition: color 0.2s;
}

.detail-back-link:hover { color: rgba(255,255,255,0.85); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ── 상세 이미지 ── */
.detail-image-area {
  position: sticky;
  top: 100px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  overflow: hidden;
}

/* 실제 이미지가 로드됐을 때 placeholder 숨김 */
.detail-image-area.has-img .detail-image-placeholder,
.detail-image-area.has-img .detail-image-label {
  display: none;
}

.detail-product-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.detail-image-placeholder {
  font-size: 40px;
  opacity: 0.2;
}

.detail-image-label {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

/* ── 상세 우측 정보 ── */
.detail-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(196, 18, 48, 0.14);
  border: 1px solid rgba(196, 18, 48, 0.35);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.detail-name {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 12px;
}

.detail-short-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.52);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ── 가격 영역 ── */
.detail-price-area {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px;
  margin-bottom: 24px;
}

.option-label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* fixed — 라디오 */
.option-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.option-radio-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.65);
  transition: border-color 0.18s, background 0.18s, color 0.18s;
  user-select: none;
}

.option-radio-btn input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  flex-shrink: 0;
  transition: border-color 0.18s;
}

.option-radio-btn input[type="radio"]:checked {
  border-color: var(--red);
  background: var(--red);
  box-shadow: inset 0 0 0 3px var(--bg2);
}

.option-radio-btn:has(input:checked) {
  border-color: var(--red);
  background: rgba(196, 18, 48, 0.1);
  color: #fff;
}

.option-price-hint {
  font-size: 12px;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}

/* pages — 드롭다운 */
.option-select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
  margin-bottom: 20px;
  transition: border-color 0.18s;
}

.option-select:focus {
  outline: none;
  border-color: var(--red);
}

/* sides — 라디오 */
/* (option-radio-btn 재사용) */

/* minutes — number + range */
.option-minutes-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}

.option-minutes-input {
  width: 90px;
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 3px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  text-align: center;
  transition: border-color 0.18s;
}

.option-minutes-input:focus {
  outline: none;
  border-color: var(--red);
}

.option-minutes-unit {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
}

.option-range {
  width: 100%;
  height: 4px;
  accent-color: var(--red);
  cursor: pointer;
  margin-bottom: 20px;
}

/* 총 결제금액 */
.detail-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.detail-total span {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  font-weight: 700;
}

.detail-total-right {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.detail-total strong {
  font-size: 28px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
}

.vat-label {
  font-size: 11px;
  font-weight: 700;
  color: rgba(196, 18, 48, 0.85);
  background: rgba(196, 18, 48, 0.12);
  border: 1px solid rgba(196, 18, 48, 0.3);
  padding: 2px 6px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* 페이지 단가 VAT 안내 */
.option-vat-note {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.04);
  border-left: 2px solid rgba(196, 18, 48, 0.5);
  padding: 7px 10px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.total-note {
  font-size: 11px;
  color: rgba(255,255,255,0.28);
  margin-top: 6px;
  text-align: right;
}

/* 버튼 */
.detail-actions {
  display: flex;
  gap: 12px;
}

.btn-buy {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  border-radius: 3px;
  transition: background 0.2s;
  text-decoration: none;
}

.btn-buy:hover { background: #a50f27; }

.btn-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: 700;
  border-radius: 3px;
  transition: border-color 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-consult:hover {
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}

/* ── 탭 ── */
.detail-tabs {
  margin-top: 60px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0;
  overflow-x: auto;
}

.detail-tab-btn {
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s;
  margin-bottom: -1px;
}

.detail-tab-btn:hover { color: rgba(255,255,255,0.75); }

.detail-tab-btn.active {
  color: #fff;
  border-bottom-color: var(--red);
}

.detail-tab-panel {
  display: none;
  padding: 36px 0;
}

.detail-tab-panel.active { display: block; }

.tab-section-title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  margin-top: 28px;
}

.tab-section-title:first-child { margin-top: 0; }

.tab-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tab-list li {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.65;
  padding-left: 18px;
  position: relative;
}

.tab-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.tab-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 14px;
}

.tab-faq-item {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.tab-faq-item:last-child { border-bottom: 1px solid var(--line); }

.tab-faq-q {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.8);
  margin-bottom: 10px;
}

.tab-faq-a {
  font-size: 14px;
  color: rgba(255,255,255,0.48);
  line-height: 1.75;
}

/* ═══════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  .detail-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .detail-image-area {
    position: static;
    aspect-ratio: 16/7;
  }
}

@media (max-width: 768px) {
  /* 사이드바 → 가로 탭 */
  .products-sidebar {
    display: none;
  }

  .sidebar-mobile-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid var(--line);
    margin-bottom: 28px;
  }

  .sidebar-mobile-tabs::-webkit-scrollbar { display: none; }

  .sidebar-tab-btn {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,0.45);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.18s, border-color 0.18s;
    margin-bottom: -1px;
  }

  .sidebar-tab-btn:hover { color: rgba(255,255,255,0.75); }

  .sidebar-tab-btn.active {
    color: #fff;
    border-bottom-color: var(--red);
  }

  .products-layout {
    display: block;
    padding: 0 0 60px;
  }

  .products-main {
    border-left: none;
    padding-left: 0;
  }

  .products-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-tabs {
    margin-top: 40px;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }

  .products-hero {
    padding: 100px 0 40px;
  }

  .review-payment-body {
    padding: 20px;
  }

  .review-meta-row {
    flex-direction: column;
    gap: 4px;
  }

  .review-meta-row dd {
    text-align: left;
  }
}

/* ═══════════════════════════════════════════
   주문서 모달
═══════════════════════════════════════════ */

.order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 16px 24px;
  overflow-y: auto;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.order-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.order-overlay[aria-hidden="true"]:not(.is-open) {
  display: none;
}

.order-modal {
  background: #111;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  max-width: 640px;
  border-radius: 2px;
  overflow: hidden;
}

/* ── 헤더 ── */
.order-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.order-modal-header h2 {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.order-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.order-modal-close:hover {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

/* ── 주문 요약 ── */
.order-summary {
  background: rgba(196,18,48,0.07);
  border-bottom: 1px solid rgba(196,18,48,0.2);
  padding: 16px 28px;
  display: grid;
  gap: 8px;
}

.order-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
}

.order-summary-row span {
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  white-space: nowrap;
}

.order-summary-row strong {
  color: #fff;
  font-weight: 700;
  text-align: right;
}

.order-summary-total {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 4px;
}

.order-summary-total strong {
  font-size: 18px;
  color: #fff;
}

.order-summary-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

/* ── 폼 섹션 ── */
.order-form-section {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: grid;
  gap: 14px;
}

.order-form-section-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  margin: 0 0 2px;
}

.order-form-section-optional .optional-mark {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.order-fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.order-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-field span {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.02em;
}

.order-field span em {
  color: var(--red);
  font-style: normal;
}

.order-field input,
.order-field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 12px;
  outline: none;
  transition: border-color 0.15s;
  border-radius: 0;
  width: 100%;
  box-sizing: border-box;
}

.order-field input:focus,
.order-field textarea:focus {
  border-color: rgba(196,18,48,0.7);
}

.order-field input::placeholder,
.order-field textarea::placeholder {
  color: rgba(255,255,255,0.22);
}

.order-field textarea {
  resize: vertical;
  min-height: 80px;
}

.order-field-full {
  grid-column: 1 / -1;
}

.order-field-check {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.04);
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  transition: border-color 0.15s;
}

.order-checkbox-label:hover {
  border-color: rgba(255,255,255,0.25);
}

.order-checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  border: none;
  flex-shrink: 0;
  accent-color: var(--red);
}

/* ── 개인정보 동의 ── */
.order-privacy {
  padding: 20px 28px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.order-privacy-text {
  font-size: 12px;
  color: rgba(255,255,255,0.38);
  line-height: 1.7;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid rgba(255,255,255,0.12);
  padding: 10px 14px;
  margin-bottom: 14px;
}

.order-privacy-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

.order-privacy-agree input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--red);
}

.order-privacy-agree em {
  color: var(--red);
  font-style: normal;
}

/* ── 오류 메시지 / 제출 버튼 ── */
.order-form-error {
  margin: 0 28px;
  padding: 10px 14px;
  font-size: 13px;
  color: #ff6b6b;
  background: rgba(255,60,60,0.08);
  border-left: 2px solid rgba(255,60,60,0.5);
  display: none;
}

.order-form-error:not(:empty) {
  display: block;
}

.btn-order-submit {
  display: block;
  width: calc(100% - 56px);
  margin: 20px 28px 28px;
  padding: 16px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  font-family: inherit;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-order-submit:hover:not(:disabled) {
  background: #a50f27;
}

.btn-order-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ── 반응형 ── */
@media (max-width: 540px) {
  .order-overlay {
    padding: 0;
    align-items: flex-end;
  }

  .order-modal {
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 92vh;
    overflow-y: auto;
  }

  .order-fields-row {
    grid-template-columns: 1fr;
  }

  .order-modal-header,
  .order-summary,
  .order-form-section,
  .order-privacy {
    padding-left: 20px;
    padding-right: 20px;
  }

  .btn-order-submit {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
  }

  .order-form-error {
    margin-left: 20px;
    margin-right: 20px;
  }
}
