:root {
  --bg: #faf7f3;
  --bg-alt: #ffffff;
  --text: #1f1a17;
  --muted: #827568;
  --accent: #c8a676;
  --accent-soft: rgba(200, 166, 118, 0.12);
  --border-subtle: rgba(0,0,0,0.06);
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-soft: 0 18px 45px rgba(15, 9, 3, 0.12);
}

body {
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(250,247,243,0.95), rgba(250,247,243,0.80));
  border-bottom: 1px solid var(--border-subtle);
}

.site-header, .site-header * {
  pointer-events: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-main {
  letter-spacing: 0.22em;
  font-size: 13px;
  font-weight: 600;
}

.logo-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.nav-list li {
  display: inline-flex;
}

.nav-list a {
  position: relative;
  z-index: 10000;
  display: inline-block;
  padding: 4px 0;
  white-space: nowrap;
  word-break: keep-all;
  line-height: 1.2;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width .18s ease-out;
}

.nav-list a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  white-space: nowrap;
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.9);
  padding: 6px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  padding: 64px 0 80px;
  background: radial-gradient(circle at top left, #f4ebe0 0, #faf7f3 40%, #fdfcfb 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.4), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

.hero-kicker {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 16px;
}

.hero-sub {
  margin: 0 0 22px;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}

.hero-meta span::before {
  content: "• ";
}

.hero-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(255,250,244,0.98));
  border-radius: var(--radius-xl);
  padding: 22px 22px 20px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255,255,255,0.9);
}

.hero-card h2 {
  font-size: 18px;
  margin: 0 0 4px;
}

.hero-card-tag {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
}

.hero-card-meta {
  list-style: none;
  margin: 0 0 10px;
  padding: 0;
  font-size: 12px;
}

.hero-card-meta li {
  display: flex;
  gap: 10px;
  margin-bottom: 4px;
}

.hero-card-meta span {
  min-width: 46px;
  color: var(--muted);
}

.hero-card-link {
  font-size: 12px;
  text-decoration: underline;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 13px;
  border: none;
  cursor: pointer;
  transition: background .12s ease-out;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 12px 25px rgba(200,166,118,0.35);
}

.btn.primary:hover {
  box-shadow: 0 16px 30px rgba(200,166,118,0.42);
}

.btn.ghost {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border-subtle);
}

.btn.ghost:hover {
  background: #fff;
}

.btn.outline {
  background: transparent;
  border: 1px solid var(--accent);
}

.btn.kakao-btn {
  background: #fee500;
  color: #3a1d1d;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Sections */
.section {
  padding: 56px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 32px;
}

.section-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.section-header h2 {
  margin: 0;
  font-size: 24px;
}

.section-title-sm {
  margin: 0 0 18px;
  font-size: 20px;
}

/* Grid */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0,1fr));
}

/* Cards */
.features .feature-card,
.collections .collection-card {
  padding: 21px 20px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.96);
}

.feature-card h3,
.collection-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.feature-card p,
.collection-card p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 0;
}

.feature-card ul,
.collection-card ul {
  list-style: none;
  padding-left: 0;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.feature-card li::before,
.collection-card li::before {
  content: "· ";
}

.collection-tag {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11px;
  margin-bottom: 8px;
}

.text-link {
  font-size: 12px;
  text-decoration: underline;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.step {
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 12px;
  background: var(--accent-soft);
  margin-bottom: 6px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.step p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.fitting-cta {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  font-size: 13px;
}

/* CTA section */
.section-cta {
  background: linear-gradient(135deg, #f6efe6, #fdfaf7);
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-inner h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 22px;
}

.cta-inner p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Footer */
.site-footer {
  padding: 28px 0 32px;
  background: #f3ebe2;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  margin-top: 8px;
  color: var(--muted);
}

.footer-meta {
  margin-top: 10px;
  color: var(--muted);
}

/* Subpages 공통 */
.subpage main {
  min-height: 80vh;
}

.sub-hero {
  padding: 50px 0 30px;
  background: linear-gradient(140deg, #f6efe6, #faf7f3);
  border-bottom: 1px solid var(--border-subtle);
}

.sub-main-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.sub-kicker {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.sub-hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
}

.sub-desc {
  margin: 0;
  color: var(--muted);
}

.sub-main-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.stat {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.95);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
}

.stat-label {
  color: var(--muted);
  margin-right: 6px;
}

.stat-value {
  font-weight: 600;
}

/* About grid */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
}

.about-block {
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
}

.about-block.muted {
  background: rgba(255,255,255,0.9);
}

.about-block h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 20px;
}

.about-block p {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--muted);
}

.about-block ul {
  margin: 0;
  padding-left: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* Collection cards (V2) */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.chip {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(255,255,255,0.98);
  padding: 8px 18px;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.chip.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.collection-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.collection-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.collection-item-thumb {
  position: relative;
  padding-top: 70%;
  background: linear-gradient(135deg, #f4eee6 0%, #ebe4da 100%);
  overflow: hidden;
}

.collection-item-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collection-item-thumb:not(:has(img))::after,
.collection-item-thumb.is-broken::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.collection-item-thumb.is-broken img {
  display: none;
}

.collection-item-body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.collection-line-label {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12px;
  margin-bottom: 6px;
  align-self: flex-start;
}

.collection-item-title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-item-desc {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.collection-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}

.collection-gallery-thumb {
  position: relative;
  padding-top: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: #f4eee6;
}

.collection-gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.collection-gallery-thumb.is-broken img {
  display: none;
}

.collection-gallery-thumb.has-more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  border-radius: 6px;
}

.collection-gallery-count {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  z-index: 1;
}

.collection-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.collection-tag-chip {
  font-size: 12px;
  color: var(--muted);
}

/* Fitting table */
.fitting-table-wrap {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  padding: 16px 16px 12px;
}

.fitting-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.fitting-table th,
.fitting-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.fitting-table thead th {
  background: rgba(250,247,243,0.9);
  text-align: left;
}

.fitting-table tbody tr:last-child td {
  border-bottom: none;
}

.fitting-note {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* News list */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.news-item:first-child {
  border-top: 1px solid var(--border-subtle);
}

.news-item-thumb {
  flex-shrink: 0;
  width: 180px;
  height: 130px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #f4eee6;
}

.news-item-thumb img {
  width: 100%;
  height: 100%;
}

.news-item-thumb.is-broken {
  display: none;
}

.news-item-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.news-item-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.news-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.news-item-date {
  font-size: 12px;
  color: var(--muted);
}

.news-item-title {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.4;
}

.news-item-excerpt {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.news-tag-chip {
  font-size: 12px;
  color: var(--muted);
}

.news-item-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  margin-top: auto;
}

.news-item-link:hover {
  text-decoration: underline;
}

/* Pagination (Tabler Outline style) */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.page-item {
  display: flex;
}

.page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,0.98);
  line-height: 1;
}

.page-item .page-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.page-item.active .page-link {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.page-item.disabled .page-link {
  color: var(--muted);
  opacity: 0.45;
  pointer-events: none;
  background: rgba(255,255,255,0.6);
}

.page-item .page-link svg {
  display: block;
}

/* Collection item as link */
a.collection-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}

/* News title link */
.news-item-title-link {
  text-decoration: none;
  color: inherit;
}

.news-item-title-link:hover .news-item-title {
  color: var(--accent);
}

/* Detail page hero */
.detail-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}

.detail-back-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 6px;
}

/* Detail gallery */
.detail-gallery {
  margin-bottom: 28px;
}

.detail-gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, #f4eee6 0%, #ebe4da 100%);
  margin-bottom: 10px;
}

.detail-gallery-main img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: contain;
  background: #f9f6f1;
}

.detail-gallery-main.is-broken {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-gallery-main.is-broken img {
  display: none;
}

.detail-gallery-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  font-size: 14px;
  color: var(--muted);
}

.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.detail-gallery-thumb-btn {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: #f4eee6;
  cursor: pointer;
}

.detail-gallery-thumb-btn.is-active {
  border-color: var(--accent);
}

.detail-gallery-thumb-btn:hover {
  border-color: var(--accent);
}

.detail-gallery-thumb-btn img {
  width: 100%;
  height: 100%;
  display: block;
}

/* Detail content */
.detail-content {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text);
}

.detail-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 12px 0;
}

.detail-content p {
  margin: 0 0 14px;
}

/* Detail tags */
.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tag-chip {
  display: inline-flex;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 12px;
  color: var(--text);
}

/* Detail external link */
.detail-external-link {
  margin-top: 24px;
}

/* Detail article */
.detail-article {
  padding: 28px 0 120px;
}

/* Detail navigation (prev/next) */
.detail-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.detail-nav-item a {
  display: block;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease-out;
}

.detail-nav-item a:hover {
  border-color: var(--accent);
}

.detail-nav-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.detail-nav-title {
  display: block;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.detail-nav-next {
  text-align: right;
}

.collection-detail-specs {
  margin-bottom: 24px;
}

.collection-detail-specs h3,
.collection-detail-desc h3 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}

.spec-list {
  margin: 0;
}

.spec-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 14px;
}

.spec-row:first-child {
  border-top: 1px solid var(--border-subtle);
}

.spec-row dt {
  min-width: 60px;
  color: var(--muted);
  font-weight: 500;
}

.spec-row dd {
  margin: 0;
  font-weight: 500;
}

.collection-detail-desc {
  margin-bottom: 20px;
}

.collection-detail-cta {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.empty-state {
  text-align: center;
  padding: 48px 0;
}

.empty-message {
  font-size: 14px;
  color: var(--muted);
}

/* Captcha */
.captcha-field {
  margin-bottom: 10px;
}

.captcha-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-image {
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  display: block;
}

.captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(0,0,0,0.12);
  background: #fff;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  transition: color .12s, border-color .12s;
  flex-shrink: 0;
}

.captcha-refresh:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
  pointer-events: none;
}

/* Contact form */
.contact-form {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  padding: 18px 18px 16px;
}

.form-row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.form-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}

.form-field label {
  font-size: 12px;
}

input[type="text"],
input[type="tel"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 8px 9px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
}

textarea {
  resize: vertical;
}

.form-consent {
  margin: 8px 0 10px;
  font-size: 12px;
  color: var(--muted);
}

.form-consent input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: checkbox;
  width: 14px;
  height: 14px;
  margin-right: 5px;
  vertical-align: middle;
  cursor: pointer;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.required {
  color: #c25050;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
}

.form-note {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.form-result {
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.form-result-success {
  background: rgba(34, 139, 34, 0.08);
  color: #1a6b1a;
  border: 1px solid rgba(34, 139, 34, 0.18);
}

.form-result-error {
  background: rgba(200, 50, 50, 0.08);
  color: #a03030;
  border: 1px solid rgba(200, 50, 50, 0.18);
}

/* Kakao section */
.kakao-box {
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  padding: 16px 18px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.kakao-text {
  font-size: 13px;
  color: var(--muted);
}

.kakao-text p {
  margin-top: 0;
  margin-bottom: 6px;
}

.kakao-text ul {
  margin: 0;
  padding-left: 16px;
}

.kakao-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.kakao-note {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: minmax(0,1fr);
  }
  .hero-card {
    order: -1;
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .steps,
  .steps-wide {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }
  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
  }
  .about-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .collection-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    height: 64px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-list {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    flex-direction: column;
    flex-wrap: wrap;
    background: rgba(250,247,243,0.98);
    padding: 14px 18px 16px;
    border-bottom: 1px solid var(--border-subtle);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .16s ease-out, transform .16s ease-out;
  }
  .nav-list a {
    padding: 10px 10px;
    font-size: 14.5px;
  }
  .nav-list.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .hero {
    padding-top: 42px;
  }
  .hero h1 {
    font-size: 26px;
  }
  .grid-3 {
    grid-template-columns: minmax(0,1fr);
  }
  .steps,
  .steps-wide {
    grid-template-columns: minmax(0,1fr);
  }
  .fitting-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .sub-main-inner {
    flex-direction: column;
  }
  .sub-main-meta {
    justify-content: flex-start;
  }
  .collection-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .news-item {
    flex-direction: column;
    gap: 12px;
  }
  .news-item-thumb {
    width: 100%;
    height: 180px;
  }
  .detail-nav {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .detail-nav-next {
    text-align: left;
  }
  .detail-gallery-main img {
    max-height: 400px;
  }
  .detail-gallery-thumb-btn {
    width: 60px;
    height: 60px;
  }
  .form-row {
    flex-direction: column;
  }
  .form-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .kakao-box {
    flex-direction: column;
  }
  .kakao-actions {
    align-items: flex-start;
  }
}


/* ========== 오시는 길 Submain (Atelier 스타일) ========== */
.section-location-main .location-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr);
  gap: 32px;
  align-items: flex-start;
}

.location-info .location-address {
  font-size: 16px;
  margin-bottom: 10px;
}

.location-info .location-address span {
  font-size: 14px;
  color: #777;
}

.location-info .location-contact {
  font-size: 14px;
  margin-bottom: 16px;
}

.location-subcards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 8px;
}

.loc-card {
  padding: 12px 14px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  font-size: 13px;
  line-height: 1.6;
}

.loc-card h3 {
  font-size: 14px;
  margin-bottom: 6px;
}

.location-map .map-embed {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #eee;
  box-shadow: 0 8px 24px rgba(0,0,0,0.04);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.location-map iframe {
  display: block;
  width: 100%;
  height: 420px;
  border: 0;
}

.map-links {
  margin-top: 14px;
}

.map-links h3 {
  font-size: 14px;
  margin-bottom: 8px;
}

.map-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.map-note {
  font-size: 12px;
  color: #999;
}

.location-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.loc-summary-card {
  border-radius: 16px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid #eee3d4;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
  font-size: 13px;
  line-height: 1.7;
}

.loc-summary-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .section-location-main .location-grid {
    grid-template-columns: 1fr;
  }
  .location-map iframe {
    height: 260px;
  }
}


/* ========== Location Visuals (매장 사진/랜드마크/주차 안내) ========== */
.location-visuals .location-visuals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.loc-visual-card {
  border-radius: 16px;
  padding: 16px 18px 18px;
  background: #fff;
  border: 1px solid #eee3d4;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04);
  font-size: 13px;
  line-height: 1.7;
}

.loc-visual-card h3 {
  font-size: 15px;
  margin-bottom: 6px;
}

.loc-visual-img-wrap {
  margin: 10px 0 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eee;
  background: #f6f6f6;
}

.loc-visual-img-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.loc-visual-note {
  font-size: 11px;
  color: #999;
}

.loc-visual-list {
  margin: 6px 0 0;
  padding-left: 16px;
  font-size: 12px;
  color: #666;
}

.loc-visual-list li {
  list-style: disc;
  margin-bottom: 2px;
}

@media (max-width: 768px) {
  .loc-visual-card {
    padding: 14px 14px 16px;
  }
}


/* ========== Gallery Grid ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.gallery-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: border-color 0.15s ease-out;
}

.gallery-card:hover {
  border-color: var(--accent);
}

.gallery-card-thumb {
  position: relative;
  padding-top: 75%;
  background: linear-gradient(135deg, #f4eee6 0%, #ebe4da 100%);
  overflow: hidden;
}

.gallery-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease-out;
}

.gallery-card:hover .gallery-card-thumb img {
  transform: scale(1.03);
}

.gallery-card-thumb:not(:has(img))::after,
.gallery-card-thumb.is-broken::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.gallery-card-thumb.is-broken img {
  display: none;
}

.gallery-card-body {
  padding: 14px 16px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.gallery-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gallery-card-cat {
  flex-shrink: 0;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  font-size: 11px;
}

/* Real Wedding Cards (Home) */
.real-wedding-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255,255,255,0.98);
  border: 1px solid var(--border-subtle);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease-out;
}

.real-wedding-card:hover {
  border-color: var(--accent);
}

.real-wedding-thumb {
  position: relative;
  padding-top: 65%;
  background: linear-gradient(135deg, #f0ebe4 0%, #e8e1d8 100%);
  overflow: hidden;
}

.real-wedding-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.25s ease-out;
}

.real-wedding-card:hover .real-wedding-thumb img {
  transform: scale(1.03);
}

.real-wedding-thumb:not(:has(img))::after,
.real-wedding-thumb.is-broken::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  line-height: 1.5;
}

.real-wedding-thumb.is-broken img {
  display: none;
}

.real-wedding-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 18px 16px 20px;
  text-align: center;
}

.real-wedding-name {
  font-size: 16px;
  font-weight: 600;
}

.real-wedding-label {
  font-size: 13px;
  color: var(--muted);
}

.section-more {
  text-align: center;
  margin-top: 28px;
}

/* Gallery Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}

.gallery-lightbox.is-active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.85);
}

.gallery-lightbox-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 60px 60px 80px;
}

.gallery-lightbox-close {
  position: absolute;
  top: 16px;
  right: 20px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  font-size: 28px;
  border-radius: 999px;
  cursor: pointer;
  z-index: 2;
  transition: background 0.15s;
}

.gallery-lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

.gallery-lightbox-img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}

.gallery-lightbox-img-wrap img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 8px;
}

.gallery-lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 14px;
  text-align: center;
}

.gallery-lightbox-title {
  font-weight: 500;
}

@media (max-width: 960px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .gallery-lightbox-content {
    padding: 50px 16px 70px;
  }
}
