/* 사이트별 추가 스타일 (style.css 이후에 로드) */
/* 손글씨 폰트(인사말): 나눔손글씨 펜, SIL OFL 무료 폰트. @import 는 파일 맨 위에 있어야 함 */
@import url('https://fonts.googleapis.com/css2?family=Nanum+Pen+Script&display=swap');

/* 특징 카드 아이콘: 인라인 SVG(icon())를 쓰므로 style.css의 마스크 배경 해제 */
.feature-icon { width: auto; height: auto; background: none; -webkit-mask: none; mask: none; color: var(--brand); }
.feature-icon svg { display: block; margin: 0 auto; }

/* 메인 이미지 롤링 (index.php 의 .hero-rolling) */
.hero-rolling { position: relative; overflow: hidden; background: #2b2118; }
.hero-slides, .hero-slide { position: absolute; inset: 0; }
.hero-slide { background-position: center; background-size: cover; opacity: 0; transform: scale(1.04); transition: opacity 1.2s ease, transform 6s ease-out; }
.hero-slide.is-active { opacity: 1; transform: scale(1); }
.hero-slides::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(31,59,45,.78), rgba(94,59,25,.35)); }
.hero-rolling .hero-inner { position: relative; z-index: 1; }
.hero-dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: 22px; display: flex; justify-content: center; gap: 10px; }
.hero-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); cursor: pointer; transition: width .3s, background .3s; }
.hero-dots button.is-active { width: 28px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; transform: none; } }

/* 폼 라벨: 필수 표시(*)·보조 문구가 제목 옆 같은 줄에 오도록 (style.css 의 flex 세로 배치 보정)
   → 2칸 배치에서 라벨 높이가 달라 입력칸이 어긋나던 문제 해결 */
.form label:not(.inline), .form .label { display: block; }
.radio-row label { display: flex; }
.form label:not(.inline) > input:not([type=checkbox]):not([type=radio]),
.form label:not(.inline) > select,
.form label:not(.inline) > textarea { display: block; width: 100%; margin-top: 6px; }
.form em { margin-left: 2px; }
.form [hidden] { display: none !important; }   /* 위 display:block 이 hidden 속성을 덮지 않도록 */

/* 하단 사업자정보확인 링크 (공정위) */
.site-footer .biz-check { color: inherit; opacity: .75; font-size: .9em; margin-left: 4px; }
.site-footer .biz-check:hover { opacity: 1; text-decoration: underline; }

/* 메인 로고 (타이교역(주) TR 코끼리 로고, 세로형) → 글자가 읽히도록 헤더를 조금 높임 */
.logo-main { height: 80px; width: auto; display: block; }
.site-header:has(.logo-has-main) .header-inner { height: 96px; }
@media (max-width: 860px) {
  .logo-main { height: 62px; }
  .site-header:has(.logo-has-main) .header-inner { height: 76px; }
  .site-header:has(.logo-has-main) .main-nav { top: 76px; }   /* 모바일 펼침 메뉴 위치를 헤더 높이에 맞춤 */
}

/* 로고 (원형 이미지 + 회사명) */
.logo { gap: 10px; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; box-shadow: 0 1px 3px rgba(0,0,0,.15); }

/* 섹션 제목: 위 라벨(eyebrow)은 크게, 아래 문구(h2)는 작게 */
.section-head .eyebrow { font-size: 1.375rem; letter-spacing: .06em; margin-bottom: 6px; }
.section-head .eyebrow::after {
  content: '+'; display: inline-block; margin-left: 3px;
  font-size: .8em; font-weight: 900; line-height: 1; vertical-align: .6em;
  color: var(--brand);
}
.section-head h2 { font-size: clamp(1.2rem, 2.3vw, 1.55rem); }

/* 섹션 제목 오른쪽 '더보기' 입체 버튼 */
.section-head { position: relative; }
.head-more { position: absolute; right: 0; bottom: 4px; }
.btn-3d {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: linear-gradient(180deg, #a5713d 0%, var(--brand) 55%, var(--brand-dark) 100%);
  color: #fff; font-weight: 700; font-size: .95rem; letter-spacing: -.01em; white-space: nowrap;
  border: 1px solid var(--brand-dark);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 3px 0 #4a2e13, 0 8px 16px rgba(94,59,25,.28);
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
  transition: transform .12s, box-shadow .12s, filter .12s;
}
.btn-3d:hover { color: #fff; text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 4px 0 #4a2e13, 0 12px 20px rgba(94,59,25,.32); }
.btn-3d:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 #4a2e13, 0 3px 6px rgba(94,59,25,.25); }
.btn-3d-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #f3ead9 100%); color: var(--brand-dark);
  font-size: 1.1rem; line-height: 1; padding-bottom: 2px; text-shadow: none;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
}
@media (max-width: 860px) {
  .head-more { position: static; margin-top: 14px; }
}

/* 창업안내: 가맹점 개설 상세 절차 (세로 타임라인) */
.open-tagline { color: var(--muted); margin: 10px 0 0; }
.open-tagline .ki { font-family: serif; font-size: 1.6em; font-weight: 700; color: #c0392b; vertical-align: -.12em; margin: 0 2px; }
.open-steps { list-style: none; margin: 0; padding: 0; position: relative; }
.open-steps::before { content: ''; position: absolute; left: 27px; top: 28px; bottom: 28px; border-left: 2px dashed #d9c7ad; }
.open-step { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 0 20px; margin-bottom: 18px; }
.open-step:last-child { margin-bottom: 0; }
.open-step-head { display: contents; }
.open-step-no {
  grid-row: 1 / span 2; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; position: relative; z-index: 1;
  background: linear-gradient(180deg, #a5713d, var(--brand-dark)); color: #fff; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 0 0 5px var(--bg-alt, #f7f1e8), 0 4px 10px rgba(94,59,25,.25);
}
.open-step h3 { margin: 0; padding: 14px 20px 10px; background: #fff; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--radius) var(--radius) 0 0; font-size: 1.1rem; color: var(--deep); }
.open-step-items { margin: 0; padding: 0 20px 16px 38px; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); color: var(--text); }
.open-step-items li { padding: 3px 0; }
.open-step-items li::marker { color: var(--accent); }
@media (max-width: 520px) {
  .open-step { grid-template-columns: 44px 1fr; gap: 0 12px; }
  .open-step-no { width: 44px; height: 44px; font-size: .95rem; }
  .open-steps::before { left: 21px; }
  .open-step-items { padding-left: 32px; }
}

/* 회사소개: 인사말 (손글씨 폰트는 파일 맨 위 @import) */
.greeting-head { margin-bottom: 24px; }
.greeting-visual {
  position: relative; min-height: 300px; border-radius: var(--radius); overflow: hidden;
  background-size: cover; background-position: 30% 60%; display: flex; justify-content: flex-end; margin-bottom: 36px;
}
.greeting-visual::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255,255,255,0) 20%, rgba(255,250,243,.92) 58%); }
.greeting-visual-text { position: relative; width: 52%; padding: 32px 32px 28px 0; }
.greeting-intro { color: #6b5d4f; font-size: .92rem; line-height: 1.7; margin: 0 0 14px; }
.greeting-hand { font-family: 'Nanum Pen Script', cursive; font-size: 2.1rem; line-height: 1.15; color: #2c4f7c; margin: 0; }
.greeting-body p { line-height: 1.95; margin: 0 0 1.4em; }
@media (max-width: 860px) {
  .greeting-visual { min-height: 0; display: block; }
  .greeting-visual::before { background: linear-gradient(180deg, rgba(255,250,243,.55), rgba(255,250,243,.95) 45%); }
  .greeting-visual-text { width: auto; padding: 120px 20px 22px; }
  .greeting-hand { font-size: 1.8rem; }
}

/* 주문 상세: 고객 주문 취소 */
.order-cancel summary { cursor: pointer; font-weight: 700; color: var(--danger, #c0392b); }
.order-cancel[open] summary { margin-bottom: 12px; }
.order-cancel .form { gap: 12px; }

/* 수출입 대행 페이지 */
.trade-card h3 { color: var(--deep); margin: 8px 0 12px; font-size: 1.25rem; }
.trade-flag { display: inline-block; padding: 3px 12px; border-radius: 999px; background: #f3ead9; color: var(--brand-dark); font-weight: 700; font-size: .85rem; letter-spacing: .05em; }
.trade-items { margin-top: 36px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.trade-items h3 { margin: 0 0 8px; color: var(--deep); }
.trade-items p { margin: 0; }

/* 쇼핑몰 탭: 정상상품 / 전시품 / USED */
.shop-tabs { display: flex; border-bottom: 2px solid var(--line); margin-bottom: 14px; gap: 4px; }
.shop-tabs a {
  flex: 1; text-align: center; padding: 14px 10px 12px; font-weight: 700; font-size: 1.05rem; color: var(--muted);
  border: 1px solid transparent; border-bottom: 0; border-radius: 10px 10px 0 0; margin-bottom: -2px; background: #faf7f2;
}
.shop-tabs a:hover { color: var(--brand); text-decoration: none; }
.shop-tabs a.active { color: var(--brand-dark); background: #fff; border-color: var(--line); border-bottom: 2px solid #fff; box-shadow: inset 0 3px 0 var(--brand); }
.shop-tab-count { display: inline-block; min-width: 24px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: #efe6d8; color: var(--brand-dark); font-size: .78rem; line-height: 1.6; vertical-align: 2px; }
.shop-tabs a.active .shop-tab-count { background: var(--brand); color: #fff; }
.shop-tab-desc { color: var(--muted); margin: 0 0 18px; }
/* 상품 카드·상세: 구분 배지 */
.product-card { position: relative; }
.type-badge { position: absolute; top: 10px; left: 10px; z-index: 1; padding: 3px 10px; border-radius: 6px; font-size: .78rem; font-weight: 700; color: #fff; letter-spacing: .03em; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.type-display { background: #2c6e8f; }
.type-used { background: #6b5a45; }
.type-badge-inline { position: static; display: inline-block; margin-bottom: 8px; box-shadow: none; }
.condition-box { background: #faf6ef; border: 1px solid #ecdcc4; border-left: 4px solid var(--brand); border-radius: 8px; padding: 12px 16px; margin: 0 0 16px; }
.condition-box p { margin: 6px 0 0; }
@media (max-width: 520px) { .shop-tabs a { font-size: .95rem; padding: 12px 4px 10px; } }

/* 관리자 사이드바: 로그인한 관리자 표시 */
.admin-who { color: #d8cfc3; font-size: .85rem; margin: -12px 20px 12px; }
.admin-who span { color: #8a8178; }

/* 카드 결제(토스) 화면 */
.pay-box { text-align: center; }
.pay-box #toss-methods, .pay-box #toss-agreement { text-align: left; margin: 0 -12px; }
.pay-amount { font-size: 2rem; font-weight: 900; color: var(--brand); margin: 4px 0 12px; }
.pay-error { color: var(--danger, #c0392b); margin-top: 10px; }
.status-awaiting { background: #fff4e0; color: #9a6400; }

/* 메인 메뉴: 로고와 로그인 사이에 고르게 배치 */
@media (min-width: 861px) {
  .header-inner { gap: 40px; }
  .main-nav { flex: 1; justify-content: space-evenly; gap: 12px; font-size: 1.05rem; }
}
