/* 타이교역 - 공통 스타일 */
:root {
  --brand: #8a5a2b;        /* 티크 우드 브라운 */
  --brand-dark: #5e3b19;
  --accent: #c9a04a;       /* 타이 골드 */
  --deep: #1f3b2d;         /* 딥 그린 */
  --text: #2a2622;
  --muted: #7a726a;
  --line: #e8e1d8;
  --bg: #ffffff;
  --bg-alt: #f8f4ee;
  --danger: #c0392b;
  --success: #2e7d4f;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(60, 40, 20, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Noto Sans KR', system-ui, -apple-system, 'Malgun Gothic', sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; word-break: keep-all; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .6em; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 860px; }
.narrow-sm { max-width: 460px; margin: 0 auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mt { margin-top: 32px; }
.nowrap { white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* 버튼 */
.btn { display: inline-block; padding: 10px 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-align: center; transition: .15s; }
.btn:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-ghost { background: transparent; }
.btn-danger { color: var(--danger); border-color: #f0c8c3; }
.btn-lg { padding: 14px 30px; font-size: 1.05rem; }
.btn-sm { padding: 5px 12px; font-size: .875rem; }
.btn-block { display: block; width: 100%; margin-top: 8px; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-weight: 900; font-size: 1.3rem; color: var(--deep); display: flex; align-items: center; gap: 8px; }
.logo:hover { text-decoration: none; }
.logo-mark { background: var(--brand); color: #fff; font-size: .75rem; padding: 4px 6px; border-radius: 4px; letter-spacing: .05em; }
.main-nav { display: flex; gap: 22px; flex: 1; }
.main-nav a { color: var(--text); font-weight: 500; }
.main-nav a.active, .main-nav a:hover { color: var(--brand); text-decoration: none; }
.header-util { display: flex; gap: 14px; font-size: .9rem; }
.header-util a { color: var(--muted); }
.cart-link { font-weight: 500; color: var(--text) !important; }
.badge { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .75rem; text-align: center; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; font-size: 1.5rem; cursor: pointer; }

/* 히어로 */
.hero { background: linear-gradient(120deg, rgba(31,59,45,.78), rgba(94,59,25,.35)), url('../img/hero.jpg') center/cover; color: #fff; padding: 110px 0 100px; }
.hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; }
.hero-sub { font-size: 1.1rem; opacity: .9; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: rgba(255,255,255,.1); }
.eyebrow { color: var(--accent); font-weight: 700; letter-spacing: .08em; font-size: .9rem; margin: 0 0 8px; }
.stats { background: var(--deep); color: #fff; }
.stats-inner { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 28px 16px; }
.stats strong { display: block; font-size: 1.6rem; color: var(--accent); }
.stats span { font-size: .9rem; opacity: .85; }

.page-hero { background: var(--bg-alt); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 2rem; font-weight: 900; color: var(--deep); }
.page-hero p { margin: 0; color: var(--muted); }

/* 섹션 */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 900; }
.cta-band { background: var(--brand); color: #fff; padding: 64px 0; text-align: center; }
.cta-band h2 { font-size: 1.8rem; }
.cta-band .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }

/* 그리드/카드 */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
a.card { color: inherit; display: block; padding: 0; overflow: hidden; transition: transform .15s; }
a.card:hover { transform: translateY(-3px); text-decoration: none; }
.card-body { padding: 16px; }
.card-body h3 { font-size: 1.05rem; margin: 6px 0; }
.feature { text-align: center; }
.feature-icon { display: block; width: 48px; height: 48px; margin: 0 auto 12px; background: var(--brand); -webkit-mask: var(--ico) center/contain no-repeat; mask: var(--ico) center/contain no-repeat; }
.ico-plan        { --ico: url('../img/icons/plan.svg'); }
.ico-blueprint   { --ico: url('../img/icons/blueprint.svg'); }
.ico-house-tools { --ico: url('../img/icons/house-tools.svg'); }
.ico-roller      { --ico: url('../img/icons/roller.svg'); }
.ico-tools       { --ico: url('../img/icons/tools.svg'); }
.ico-bed         { --ico: url('../img/icons/bed.svg'); }
.ico-box         { --ico: url('../img/icons/box.svg'); }
.ico-sign        { --ico: url('../img/icons/sign.svg'); }
.ico-megaphone   { --ico: url('../img/icons/megaphone.svg'); }
.ico-clipboard   { --ico: url('../img/icons/clipboard.svg'); }
.ico-handshake   { --ico: url('../img/icons/handshake.svg'); }
.feature p { color: var(--muted); margin: 0; }
.package { display: flex; flex-direction: column; }
.package h3 { font-size: 1.3rem; color: var(--deep); }
.package-size { color: var(--brand); font-weight: 700; margin-top: -6px; }
.package-price { margin-top: auto; font-weight: 700; font-size: 1.15rem; }
.package-highlight { border: 2px solid var(--accent); position: relative; }
.package-highlight::before { content: '추천'; position: absolute; top: -12px; right: 20px; background: var(--accent); color: #fff; font-size: .8rem; padding: 2px 12px; border-radius: 12px; }
.checklist { list-style: none; padding: 0; margin: 0 0 16px; }
.checklist li { padding: 4px 0 4px 24px; position: relative; }
.checklist li::before { content: '✓'; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.portfolio-card img, .product-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--bg-alt); }
.product-card img { aspect-ratio: 1; }
.tag { display: inline-block; padding: 1px 10px; border-radius: 12px; background: #f3ead9; color: var(--brand-dark); font-size: .8rem; font-weight: 500; }
.tag-gray { background: #eee; color: #777; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 20px 14px; text-align: center; border: 1px solid var(--line); }
.steps strong { color: var(--accent); font-size: 1.4rem; }
.steps h3 { font-size: 1rem; margin: 6px 0 4px; }
.steps p { color: var(--muted); font-size: .85rem; margin: 0; }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* 가격 */
.price { margin: 6px 0 0; }
.price strong { font-size: 1.1rem; }
.price del { color: var(--muted); font-size: .85rem; margin-right: 4px; }
.discount { color: var(--danger); font-weight: 700; margin-right: 4px; }
.price-lg strong { font-size: 1.8rem; }

/* 쇼핑몰 */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.cat-nav a { padding: 8px 18px; border: 1px solid var(--line); border-radius: 20px; color: var(--text); }
.cat-nav a.active, .cat-nav a:hover { background: var(--deep); color: #fff; border-color: var(--deep); text-decoration: none; }
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 8px; }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.product-image img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); aspect-ratio: 1; object-fit: cover; }
.product-info h1 { font-size: 1.7rem; }
.buy-form { margin-top: 20px; }
.qty input { width: 90px; margin-left: 8px; }
.buy-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.product-desc { border-top: 2px solid var(--deep); padding-top: 24px; }
.cart-table .thumb img, .table .thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
.qty-input { width: 80px; }
.cart-actions { display: flex; gap: 8px; margin: 12px 0 24px; }
.summary { max-width: 420px; margin-left: auto; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 12px; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-weight: 900; font-size: 1.15rem; border-top: 1px solid var(--line); padding-top: 10px; }
.checkout { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.checkout-main { display: grid; gap: 20px; }
.checkout-side { position: sticky; top: 90px; }
.checkout-side .summary { max-width: none; }
.order-lines { list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.order-lines li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; font-size: .92rem; }
.bank-info, .bank-notice { background: var(--bg-alt); border-radius: 8px; padding: 12px 16px; margin: 12px 0; }
.bank-line { font-size: 1.1rem; }

/* 폼 */
.form { display: grid; gap: 14px; }
.form h2 { font-size: 1.2rem; margin: 0; display: flex; justify-content: space-between; align-items: center; }
.form label, .form .label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .95rem; }
.form label.inline, label.inline { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.form em { color: var(--danger); font-style: normal; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #d8d0c5; border-radius: 6px; font: inherit; background: #fff; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(138,90,43,.25); border-color: var(--brand); }
input[readonly] { background: #faf8f5; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row-3 { grid-template-columns: repeat(3, 1fr); }
.form-row-zip { grid-template-columns: 1fr auto; align-items: end; }
.radio-row { display: flex; gap: 18px; flex-wrap: wrap; font-weight: 400; }
.radio-row label { flex-direction: row; align-items: center; gap: 6px; font-weight: 400; }
.agree-box { background: var(--bg-alt); padding: 14px; border-radius: 8px; display: grid; gap: 6px; }
.agree-box p { margin: 0; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* 테이블 */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table thead th { background: var(--bg-alt); font-size: .9rem; }
.table.spec th { width: 110px; background: var(--bg-alt); font-weight: 500; }
.table.card { padding: 0; overflow: hidden; }
.w-num { width: 80px; } .w-date { width: 120px; } .w-80 { width: 80px !important; }
td.warn { color: var(--danger); font-weight: 700; }

.status { display: inline-block; padding: 2px 10px; border-radius: 12px; background: #eee; font-size: .82rem; }
.status-pending { background: #fff3cd; color: #8a6d00; }
.status-paid, .status-preparing { background: #dbeafe; color: #1e4fa0; }
.status-shipped { background: #e0e7ff; color: #3730a3; }
.status-delivered { background: #d1fae5; color: #065f46; }
.status-cancelled { background: #f3f3f3; color: #999; }

.alert { padding: 12px 16px; border-radius: 8px; margin: 16px 0; }
.alert-success { background: #e8f5ec; color: var(--success); }
.alert-error { background: #fdecea; color: var(--danger); }
.alert-info { background: #eef3fb; color: #2d4f86; }

.empty { text-align: center; padding: 60px 0; color: var(--muted); }
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }
.pagination a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.pagination a.active { background: var(--deep); color: #fff; border-color: var(--deep); }

.prose { font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; color: var(--deep); }
.detail-img { width: 100%; border-radius: var(--radius); margin: 24px 0; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; border-radius: 8px; }
.gallery figcaption { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.article h2 { font-size: 1.4rem; }

/* 푸터 */
.site-footer { background: #24201c; color: #b9b0a5; padding: 40px 0; font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-logo { color: #fff; font-size: 1.1rem; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: #d8cfc3; }
.copyright { opacity: .7; }
.floating-cta { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 76px; height: 76px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: center; text-align: center; line-height: 1.25; box-shadow: 0 6px 20px rgba(0,0,0,.2); }
.floating-cta:hover { text-decoration: none; background: var(--brand); }

/* 반응형 */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .checkout { grid-template-columns: 1fr; }
  .checkout-side { position: static; }
}
@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; gap: 0; border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
  .header-util { display: none; }
  .main-nav.open ~ .header-util { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .product-detail { grid-template-columns: 1fr; gap: 24px; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .form-row-zip { grid-template-columns: 1fr auto; }
  .section { padding: 48px 0; }
  .hero { padding: 70px 0; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .toolbar-right { width: 100%; }
  .gallery { grid-template-columns: 1fr; }
}
