*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --color-bg: #fff;
  --color-bg-alt: #f8f8f8;
  --color-text: #222;
  --color-muted: #555;
  --color-border: #e5e5e5;
  --font: Helvetica, "Pretendard", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header - 로고 + Brand story, Products, Contact Us 한 줄 */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-img {
  display: block;
  max-height: 30px;
  max-width: 220px;
  width: auto;
}

.logo-text {
  display: none;
}

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

.nav a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1;
}

.nav a:hover {
  color: var(--color-muted);
}

.nav > a:not(.lang-switch) {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.lang-switch {
  margin-left: 8px;
  padding-left: 16px;
  border-left: 1px solid var(--color-border);
  font-size: 0.9rem;
  color: var(--color-muted);
}

.lang-switch:hover {
  color: var(--color-text);
}

.nav-toggle {
  display: none;
  position: absolute;
  top: 14px;
  right: 20px;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--color-text);
}

/* Hero - 메인 비주얼 영역 */
.hero {
  background: var(--color-bg-alt);
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 1200px;
  height: auto;
  margin: 0 auto;
}

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

.section h2 {
  margin: 0 0 28px;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.02em;
}

/* Brand */
.brand {
  background: var(--color-bg);
}

.brand-lead {
  font-size: 1rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 10px;
}

.brand-text {
  text-align: center;
  color: var(--color-muted);
  max-width: 440px;
  margin: 0 auto;
  font-size: 0.95rem;
}

/* Product - 단일 제품, 사진 + 설명 + Buy It */
.product {
  background: var(--color-bg-alt);
}

.product-single {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 800px;
  margin: 28px auto 0;
  background: #fff;
  border: 1px solid var(--color-border);
  padding: 32px;
}

.product-single .product-image {
  width: 100%;
  aspect-ratio: 1;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-muted);
  font-size: 0.9rem;
  overflow: hidden;
}

.product-single .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-single .product-image-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.product-body {
  text-align: left;
}

.product-title {
  margin: 0 0 12px;
  font-size: 1.35rem;
  font-weight: 600;
}

.product-desc {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: var(--color-muted);
  line-height: 1.65;
}

.btn-buy-it {
  display: inline-block;
  padding: 12px 28px;
  background: #222;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: 6px;
  transition: background 0.2s, transform 0.15s;
}

.btn-buy-it:hover {
  background: #000;
  transform: translateY(-1px);
}

.product-gallery {
  margin: 24px auto 0;
  max-width: 800px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.gallery-item {
  border: 1px solid var(--color-border);
  background: #fff;
  overflow: hidden;
}

.gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

/* Contact */
.contact {
  background: var(--color-bg);
}

.contact-info {
  max-width: 620px;
  margin: 0 auto;
  text-align: left;
}

.contact-info p {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--color-text);
}

.contact-info strong {
  display: inline-block;
  min-width: 90px;
  font-weight: 600;
  font-size: 0.9rem;
}

.no-break {
  white-space: nowrap;
}

/* Footer - 원본 푸터와 동일 */
.footer {
  padding: 28px 24px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-alt);
  text-align: center;
}

.footer-links {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--color-muted);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 10px;
}

.footer-links a:hover {
  color: var(--color-text);
}

.copyright {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Mobile */
@media (max-width: 768px) {
  .header-inner {
    height: 56px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 120;
    width: 100%;
    background: #fff;
    flex-direction: column;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .nav.open {
    display: flex;
  }

  .nav .lang-switch {
    margin-left: 0;
    padding-left: 0;
    border-left: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-image {
    max-width: 100%;
  }

  .product-single {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .product-gallery {
    grid-template-columns: 1fr;
  }
}
