* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
  color: #4a4038;
  background: #fff;
  word-break: keep-all;
}

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

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

/* =========================
   상단 메뉴
========================= */

.top-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #eee7e0;
}

.top-nav {
  width: 900px;
  max-width: calc(100% - 40px);
  min-height: 54px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 46px;
  flex-wrap: wrap;
}

.top-nav a {
  font-size: 13px;
  font-weight: 500;
  color: #5f554d;
  letter-spacing: -0.3px;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.top-nav a:hover,
.top-nav a.active {
  color: #a67c52;
}

/* =========================
   상품 섹션 공통
========================= */

.product-section,
.birthday-section,
.growth-section,
.invitation-section {
  width: 100%;
  padding: 40px 0 80px;
  background: #fff;
}

.section-title-wrap {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 0 auto 24px;
  text-align: center;
}

.section-label {
  margin: 0 0 6px;
  font-size: 12px;
  color: #a67c52;
  text-transform: lowercase;
  letter-spacing: 0.2px;
}

.section-title-wrap h1 {
  margin: 0;
  font-size: 22px;
  font-weight: 400;
  color: #4a3c31;
  letter-spacing: -0.8px;
  line-height: 1.35;
}

/* =========================
   상품 개수 안내
========================= */

.product-count {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 0 auto 24px;
  padding: 0 0 9px 2px;
  border-bottom: 1px solid #ded8d2;
  font-family: Dotum, '돋움', Gulim, '굴림', sans-serif;
  font-size: 11px;
  color: #777;
  line-height: 1.4;
}

/* =========================
   웨딩영상 상품 목록
========================= */

.product-list {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 26px;
}

.product-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e0da;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(90, 65, 45, 0.08);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.product-info {
  position: relative;
  min-height: 68px;
  padding: 10px 18px 24px;
  background: #fff;
}

.product-info h2 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3832;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.product-info p {
  margin: 0;
  font-size: 13px;
  color: #9a928b;
  line-height: 1.35;
  letter-spacing: -1px;
}

.product-meta {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-size: 13px;
  color: #9a928b;
  font-weight: 600;
  letter-spacing: -0.8px;
  word-spacing: -2px;
}

/* =========================
   웨딩 초대장 카드 목록
========================= */

.invitation-list {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}

.invitation-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e0da;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.invitation-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(90, 65, 45, 0.08);
}

.invitation-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #f7f7f7;
}

.invitation-info {
  min-height: 56px;
  padding: 10px 14px 13px;
  background: #fff;
}

.invitation-info h2 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3832;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.invitation-info p {
  margin: 0;
  font-size: 12px;
  color: #9a928b;
  line-height: 1.35;
  letter-spacing: -0.8px;
}

/* =========================
   돌잔치 초대장 카드 목록
========================= */

.birthday-list {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px 22px;
}

.birthday-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e0da;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.birthday-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(90, 65, 45, 0.08);
}

.birthday-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: #f7f7f7;
}

.birthday-info {
  min-height: 56px;
  padding: 10px 14px 13px;
  background: #fff;
}

.birthday-info h2 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3832;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.birthday-info p {
  margin: 0;
  font-size: 12px;
  color: #9a928b;
  line-height: 1.35;
  letter-spacing: -0.8px;
}

/* =========================
   성장동영상 카드 목록
========================= */

.growth-list {
  width: 900px;
  max-width: calc(100% - 40px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 26px;
}

.growth-card {
  display: block;
  background: #fff;
  border: 1px solid #e6e0da;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.growth-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(90, 65, 45, 0.08);
}

.growth-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f7f7f7;
}

.growth-info {
  position: relative;
  min-height: 68px;
  padding: 10px 18px 24px;
  background: #fff;
}

.growth-info h2 {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 500;
  color: #3f3832;
  line-height: 1.35;
  letter-spacing: -0.5px;
}

.growth-info p {
  margin: 0;
  font-size: 13px;
  color: #9a928b;
  line-height: 1.35;
  letter-spacing: -1px;
}

.growth-meta {
  position: absolute;
  right: 18px;
  bottom: 8px;
  font-size: 13px;
  color: #9a928b;
  font-weight: 600;
  letter-spacing: -0.8px;
  word-spacing: -2px;
}

/* =========================
   상세페이지 공통
========================= */

.detail-wrap {
  width: 697px;
  max-width: 100%;
  margin: 0 auto;
  padding: 30px 0 80px;
}

.love-page,
.wedding-detail-page,
.birthday-detail-page,
.growth-detail-page,
.invitation-detail-page {
  width: 697px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 0 80px;
  background: #fff;
}

.love-detail-img,
.wedding-detail-img,
.birthday-detail-img,
.growth-detail-img,
.invitation-detail-img {
  width: 100%;
  display: block;
  margin: 0 auto;
}

/* =========================
   비메오 영상 영역
========================= */

.vimeo-video-box {
  width: 100%;
  margin: 30px 0;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.vimeo-video-box iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* =========================
   기존 영상 영역
========================= */

.video-file-box,
.wedding-video-box,
.growth-video-box {
  width: 100%;
  margin: 30px 0;
  background: #000;
}

.video-file-box video,
.wedding-video-box video,
.growth-video-box video {
  width: 100%;
  display: block;
}

/* =========================
   샘플 / 신청양식 버튼
========================= */

.sample-link-box {
  width: 100%;
  margin: 28px auto 30px;
  padding: 26px 22px;
  text-align: center;
  background: #fbf8f4;
  border: 1px solid #eee2d6;
}

.sample-link-box p {
  margin: 0 0 16px;
  font-size: 15px;
  color: #6b5d50;
  letter-spacing: -0.4px;
}

.sample-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.sample-buttons.single {
  justify-content: center;
}

.sample-buttons a {
  display: inline-block;
  min-width: 180px;
  height: 44px;
  padding: 0 24px;
  line-height: 44px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.3px;
  border-radius: 2px;
  transition: background 0.2s ease;
}

.btn-sample {
  background: #a67c52;
}

.btn-sample:hover {
  background: #8e6742;
}

.btn-download {
  background: #5f554d;
}

.btn-download:hover {
  background: #4b4139;
}

/* =========================
   웨딩 초대장 상세 카드
========================= */

.invitation-detail-card {
  width: 100%;
  background: #fbf8f4;
  border: 1px solid #eee2d6;
  padding: 30px;
  text-align: center;
}

.invitation-detail-card img {
  width: 100%;
  max-width: 430px;
  margin: 0 auto 24px;
  border: 1px solid #eadfd5;
}

.invitation-detail-text {
  max-width: 540px;
  margin: 0 auto;
}

.invitation-label {
  margin: 0 0 8px;
  font-size: 12px;
  color: #a67c52;
  text-transform: lowercase;
  letter-spacing: 0.3px;
}

.invitation-detail-text h1 {
  margin: 0 0 14px;
  font-size: 26px;
  font-weight: 400;
  color: #4a3c31;
  letter-spacing: -0.8px;
}

.invitation-detail-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #786b60;
  letter-spacing: -0.4px;
}

/* =========================
   목록으로 돌아가기
========================= */

.back-link {
  display: inline-block;
  margin: 40px 0 0;
  color: #a67c52;
  text-decoration: none;
  font-size: 14px;
}

.back-link:hover {
  text-decoration: underline;
}

/* =========================
   반응형
========================= */

@media (max-width: 900px) {
  .top-nav {
    width: auto;
    max-width: calc(100% - 32px);
    min-height: 54px;
    margin: 0 auto;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px 28px;
  }

  .section-title-wrap,
  .product-count,
  .product-list,
  .birthday-list,
  .growth-list,
  .invitation-list {
    width: auto;
    max-width: calc(100% - 32px);
  }

  .product-list,
  .growth-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 22px;
  }

  .birthday-list,
  .invitation-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 26px 22px;
  }

  .detail-wrap,
  .love-page,
  .wedding-detail-page,
  .birthday-detail-page,
  .growth-detail-page,
  .invitation-detail-page {
    width: auto;
    max-width: calc(100% - 32px);
  }
}

@media (max-width: 600px) {
  .top-nav {
    max-width: calc(100% - 24px);
    min-height: 50px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
  }

  .top-nav a {
    font-size: 12px;
  }

  .product-section,
  .birthday-section,
  .growth-section,
  .invitation-section {
    padding: 32px 0 60px;
  }

  .section-title-wrap {
    max-width: calc(100% - 24px);
    margin-bottom: 20px;
  }

  .section-label {
    font-size: 11px;
  }

  .section-title-wrap h1 {
    font-size: 20px;
  }

  .product-count {
    max-width: calc(100% - 24px);
    font-size: 10px;
    margin-bottom: 20px;
  }

  .product-list,
  .birthday-list,
  .growth-list,
  .invitation-list {
    grid-template-columns: 1fr;
    max-width: calc(100% - 24px);
    gap: 24px;
  }

  .product-info,
  .growth-info {
    min-height: 62px;
    padding: 9px 16px 23px;
  }

  .product-info h2,
  .growth-info h2 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .product-info p,
  .growth-info p {
    font-size: 12px;
    letter-spacing: -0.8px;
  }

  .product-meta,
  .growth-meta {
    right: 16px;
    bottom: 8px;
    font-size: 12px;
    letter-spacing: -0.7px;
    word-spacing: -2px;
  }

  .birthday-info,
  .invitation-info {
    min-height: 54px;
    padding: 9px 16px 13px;
  }

  .birthday-info h2,
  .invitation-info h2 {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .birthday-info p,
  .invitation-info p {
    font-size: 12px;
  }

  .detail-wrap,
  .love-page,
  .wedding-detail-page,
  .birthday-detail-page,
  .growth-detail-page,
  .invitation-detail-page {
    max-width: calc(100% - 24px);
    padding-bottom: 60px;
  }

  .vimeo-video-box,
  .video-file-box,
  .wedding-video-box,
  .growth-video-box {
    margin: 22px 0;
  }

  .sample-link-box {
    margin: 22px auto 24px;
    padding: 22px 16px;
  }

  .sample-link-box p {
    font-size: 14px;
  }

  .sample-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .sample-buttons a {
    width: 100%;
    min-width: auto;
  }

  .invitation-detail-card {
    padding: 22px 16px;
  }

  .invitation-detail-text h1 {
    font-size: 24px;
  }

  .invitation-detail-text p {
    font-size: 13px;
  }

  .back-link {
    margin-top: 30px;
  }
}