/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --ivory: #FEFCF9;
  --charcoal: #1A1A2E;
  --coral: #FF6B6B;
  --coral-dark: #E85555;
  --gray-100: #F5F3F0;
  --gray-200: #E8E5E1;
  --gray-400: #A9A5A0;
  --gray-600: #6B6660;
  --font-main: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  background-color: var(--ivory);
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* ===== Demo Banner ===== */
.demo-banner {
  background: var(--charcoal);
  color: #fff;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.demo-banner strong {
  color: var(--coral);
}

/* ===== Header ===== */
.header {
  background: var(--ivory);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--charcoal);
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #FFF5EE 0%, #FFE8D6 50%, #FFDAB9 100%);
  padding: 100px 24px;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-sub {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gray-600);
  margin-bottom: 16px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-title .highlight {
  color: var(--coral);
}

.hero-desc {
  font-size: 17px;
  color: var(--gray-600);
  margin-bottom: 36px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 36px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--coral);
  color: #fff;
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border: 2px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--charcoal);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 16px;
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.01em;
}

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-img {
  height: 260px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.product-info {
  padding: 20px;
}

.product-name {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.product-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--coral);
}

/* ===== Product Detail ===== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.product-detail-img {
  height: 500px;
  border-radius: 16px;
}

.product-detail-category {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-400);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.product-detail-name {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.product-detail-price {
  font-size: 28px;
  font-weight: 800;
  color: var(--coral);
  margin-bottom: 24px;
}

.product-detail-desc {
  font-size: 15px;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-detail-options {
  margin-bottom: 32px;
}

.option-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
}

.quantity-selector {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
}

.qty-btn {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--gray-100);
  font-size: 18px;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--gray-200);
}

.qty-value {
  width: 56px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
}

.product-detail-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.product-detail-meta {
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 13px;
  color: var(--gray-400);
}

.product-detail-meta p {
  margin-bottom: 4px;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--charcoal);
  color: #fff;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Footer ===== */
.footer {
  background: var(--charcoal);
  color: #fff;
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer .logo {
  color: #fff;
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: var(--gray-400);
}

.footer-heading {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links p {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 12px;
  color: var(--gray-400);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav {
    display: none;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero {
    padding: 60px 24px;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .product-img {
    height: 180px;
  }

  .product-detail {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .product-detail-img {
    height: 300px;
  }

  .product-detail-actions {
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

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