﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;600;700&display=swap");

:root {
  --bg: #f5f6fa;
  --ink: #1e2026;
  --muted: #616875;
  --primary: #1f4cff;
  --primary-dark: #1536c6;
  --accent: #ff6a00;
  --card: #ffffff;
  --line: #e3e7ef;
  --shadow: 0 18px 40px rgba(20, 24, 40, 0.08);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(980px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-title img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.hero {
  padding: 34px 0 42px;
}

.intro {
  padding: 32px 0 10px;
}

.intro h1 {
  font-size: 30px;
  letter-spacing: -0.02em;
  margin: 10px 0;
}

.intro p {
  margin: 0 0 18px;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-weight: 600;
  font-size: 12px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px;
}

.gallery {
  background: var(--card);
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.gallery-main {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.gallery-thumbs button {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0;
  background: #fff;
  cursor: pointer;
  overflow: hidden;
}

.gallery-thumbs button.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(31, 76, 255, 0.15);
}

.purchase-box {
  background: var(--card);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: sticky;
  top: 96px;
  align-self: start;
}

.purchase-box h1 {
  font-size: 26px;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 6px;
}

.price small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 400;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 14px;
  color: var(--muted);
}

.meta-row strong {
  color: var(--ink);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 18px;
}

.qty-control input {
  width: 88px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 12px 20px rgba(31, 76, 255, 0.2);
}

.btn.primary:hover {
  background: var(--primary-dark);
}

.btn.ghost {
  border-color: var(--line);
  background: #fff;
}

.btn.full {
  width: 100%;
}

.section {
  margin: 28px 0;
  padding: 22px;
  background: var(--card);
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.page-title {
  margin: 18px 0 12px;
  font-size: 26px;
  letter-spacing: -0.02em;
}

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

.tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  border: 1px solid var(--line);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.tab-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.tab-panel {
  display: none;
  padding-top: 16px;
}

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

.detail-grid {
  display: grid;
  gap: 16px;
}

.cta-band {
  margin: 26px 0;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(120deg, #eef3ff, #fff2e6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-band strong {
  font-size: 18px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  font-weight: 600;
  font-size: 14px;
}

input, select, textarea, button {
  font-family: inherit;
}

input, select, textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

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

.notice {
  font-size: 14px;
  color: var(--muted);
  background: #f4f7ff;
  border-radius: 10px;
  padding: 12px;
  border: 1px dashed #cfd9ff;
}

.card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.link-btn {
  border: none;
  background: none;
  color: var(--primary);
  font-weight: 600;
  padding: 0;
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 18, 30, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 80;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: #fff;
  border-radius: 14px;
  max-width: 640px;
  width: 100%;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.modal-body ul {
  margin: 8px 0 12px 18px;
}

.inquiry-list {
  display: grid;
  gap: 12px;
}

.inquiry-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.footer {
  text-align: center;
  color: var(--muted);
  padding: 40px 0 80px;
  font-size: 13px;
}

.sticky-cta {
  display: none;
}

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: 1fr;
  }

  .purchase-box {
    position: static;
  }
}

@media (max-width: 640px) {
  .sticky-cta {
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    display: inline-flex;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    padding: 14px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(255, 106, 0, 0.25);
    z-index: 60;
  }

  .cta-band {
    flex-direction: column;
    align-items: flex-start;
  }
}
