/* ===========================================
   MiMi HOME Premium Website
   style.css
=========================================== */

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: #342820;
  background: #f7f4ef;
  line-height: 1.8;
  overflow-x: hidden;
  animation: fadeIn .8s ease;
}

img {
  display: block;
  width: 100%;
}

a {
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 92%;
  max-width: 1280px;
  margin: auto;
}

/* ===========================================
   Header
=========================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(80, 60, 45, .08);
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.logo span {
  font-size: 30px;
  font-weight: 800;
  color: #4b3427;
  letter-spacing: 1.4px;
  line-height: 1;
}

nav {
  display: flex;
  align-items: center;
  gap: 38px;
}

nav a {
  position: relative;
  color: #4b4038;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .2px;
  transition: .25s;
}

nav a:hover {
  color: #9d8260;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: #b59a75;
  transition: .35s;
}

nav a:hover::after {
  width: 100%;
}

/* ===========================================
   Hero
=========================================== */

.hero {
  height: 100vh;
  min-height: 720px;
  background: url("../images/hero.png") center center;
  background-size: cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, .48);
}

.hero-overlay {
  position: relative;
  text-align: center;
  max-width: 980px;
  padding: 48px 36px;
}

.hero h1 {
  font-size: 64px;
  line-height: 1.18;
  margin-bottom: 28px;
  color: #3d2b20;
  font-weight: 800;
  letter-spacing: -1.5px;
}

.hero p {
  font-size: 22px;
  color: #5f534b;
  margin-bottom: 42px;
  line-height: 1.8;
}

.btn {
  display: inline-block;
  background: #b59a75;
  color: #fff;
  padding: 17px 44px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(181, 154, 117, .32);
  transition: .35s;
}

.btn:hover {
  background: #9d8260;
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(181, 154, 117, .42);
}

/* ===========================================
   Common Section
=========================================== */

section {
  padding: 120px 0;
}

section h2 {
  font-size: 48px;
  line-height: 1.25;
  text-align: center;
  margin-bottom: 48px;
  color: #9d8260;
  font-weight: 800;
  letter-spacing: -1px;
}

section p {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  font-size: 18px;
  color: #665c55;
  line-height: 1.9;
}

.section-subtitle {
  max-width: 760px;
  margin: -22px auto 64px;
  font-size: 18px;
  color: #756b63;
  line-height: 1.9;
}

/* ===========================================
   Brand Philosophy
=========================================== */

#brand {
  background: #f7f4ef;
}

.philosophy-wrap {
  display: grid;
  grid-template-columns: 0.58fr 1.42fr;
  align-items: center;
  gap: 36px;
  max-width: 1220px;
}

.section-title h2 {
  text-align: left;
  color: #9d8260;
  margin-bottom: 0;
  font-size: 48px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -1px;
}

.philosophy-text {
  padding-top: 0;
  text-align: left;
}

.philosophy-text p {
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  font-size: 19px;
  line-height: 2;
  color: #625850;
  margin-bottom: 18px;
  word-break: keep-all;
}

.philosophy-text .lead-text {
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  font-size: 25px;
  color: #3d2b20;
  font-weight: 700;
  margin-bottom: 24px;
}

.keep-line {
  white-space: nowrap;
}

/* ===========================================
   Why MiMi HOME
=========================================== */

#why {
  background: #fff;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  margin-top: 62px;
}

.feature {
  background: #faf8f5;
  border-radius: 24px;
  padding: 52px 36px;
  text-align: center;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .07);
  transition: .35s;
  min-height: 280px;
}

.feature:hover {
  transform: translateY(-8px);
}

.feature h3 {
  font-size: 26px;
  margin-bottom: 22px;
  color: #9d8260;
  font-weight: 800;
}

.feature p {
  font-size: 17px;
  color: #665c55;
  line-height: 1.9;
  word-break: keep-all;
}

/* ===========================================
   Collection
=========================================== */

#collection {
  background: #fff;
}

.cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  margin-top: 0;
  align-items: stretch;
}

.card {
  background: #fff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .08);
  transition: .35s;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 26px 60px rgba(0, 0, 0, .13);
}

.card img {
  height: 285px;
  object-fit: cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .05);
  transition: transform .55s ease;
}

.card:hover img {
  transform: scale(1.04);
}

.card h3 {
  min-height: 62px;
  padding: 24px 16px 10px;
  color: #333;
  text-align: center;
  line-height: 1.25;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
  letter-spacing: -0.4px;
}

.card h3 span:first-child {
  font-size: 21px !important;
  font-weight: 800 !important;
  color: #3d2b20 !important;
}

.card h3 span:last-child {
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #9a9a9a !important;
}

.card p {
  max-width: 100%;
  text-align: center;
  padding: 0 22px 34px;
  color: #666;
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
  flex: 1;
}

/* ===========================================
   Collection Detail Images
=========================================== */

.collection-detail-images {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 34px;
  margin-top: 70px;
}

.collection-detail-images img {
  width: 100%;
  border-radius: 26px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .10);
  object-fit: cover;
}

/* ===========================================
   Contact
=========================================== */

#contact {
  background: #f7f4ef;
}

.contact-box {
  max-width: 860px;
  margin: 58px auto 0;
  padding: 64px 56px;
  border-radius: 28px;
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .08);
}

.contact-box h3 {
  font-size: 38px;
  margin-bottom: 34px;
  color: #4b3427;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.contact-box p {
  max-width: 100%;
  margin-bottom: 16px;
  font-size: 19px;
  color: #5f554e;
  line-height: 1.8;
}

.contact-box strong {
  color: #3d2b20;
  font-weight: 800;
}

.contact-box span {
  color: #b59a75;
  margin: 0 8px;
}

.contact-box em {
  font-style: normal;
  color: #8c7b6c;
  font-size: 17px;
}

/* ===========================================
   Footer
=========================================== */

footer {
  background: #2a241f;
  color: #fff;
  text-align: center;
  padding: 58px 20px;
}

footer h3 {
  font-size: 30px;
  margin-bottom: 18px;
  letter-spacing: 2px;
}

footer p {
  color: #c8c0b8;
  line-height: 2;
  font-size: 15px;
}

/* ===========================================
   Animation
=========================================== */

.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: .8s;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ===========================================
   Responsive Design
=========================================== */

@media (max-width: 1280px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card img {
    height: 300px;
  }

  .keep-line {
    white-space: normal;
  }
}

@media (max-width: 1000px) {
  .header {
    flex-direction: column;
    gap: 16px;
    padding: 16px 0;
  }

  nav {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    min-height: 680px;
    padding: 40px 0;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero p {
    font-size: 20px;
  }

  .philosophy-wrap {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-title h2 {
    text-align: center;
  }

  .philosophy-text p,
  .philosophy-text .lead-text {
    text-align: left;
  }

  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .collection-detail-images {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 50px;
  }
}

@media (max-width: 700px) {
  .logo img {
    width: 48px;
    height: 48px;
  }

  .logo span {
    font-size: 25px;
  }

  nav a {
    font-size: 14px;
  }

  .hero {
    height: auto;
    min-height: 620px;
  }

  .hero-overlay {
    padding: 24px 18px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.35;
    letter-spacing: -1px;
  }

  .hero p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 32px;
  }

  .btn {
    padding: 14px 30px;
    font-size: 15px;
  }

  section {
    padding: 82px 0;
  }

  section h2,
  .section-title h2 {
    font-size: 34px;
    margin-bottom: 34px;
  }

  .section-subtitle {
    font-size: 16px;
    margin: -12px auto 42px;
  }

  .philosophy-text p {
    font-size: 16px;
    line-height: 1.9;
  }

  .philosophy-text .lead-text {
    font-size: 21px;
  }

  .cards {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .card img {
    height: 320px;
  }

  .card h3 {
    min-height: auto;
    padding: 24px 14px 10px;
  }

  .card h3 span:first-child {
    font-size: 21px !important;
  }

  .card h3 span:last-child {
    font-size: 14px !important;
  }

  .card p {
    font-size: 16px;
    padding: 0 24px 32px;
  }

  .feature {
    padding: 38px 26px;
    min-height: auto;
  }

  .feature h3 {
    font-size: 23px;
  }

  .contact-box {
    padding: 42px 24px;
  }

  .contact-box h3 {
    font-size: 30px;
  }

  .contact-box p {
    font-size: 16px;
  }

  .contact-box em {
    display: inline-block;
    font-size: 15px;
  }

  footer {
    padding: 44px 20px;
  }

  footer h3 {
    font-size: 24px;
  }
}

@media (max-width: 420px) {
  nav {
    gap: 16px;
  }

  .hero h1 {
    font-size: 31px;
  }

  .card h3 {
    gap: 4px;
  }

  .card h3 span:first-child {
    font-size: 19px !important;
  }

  .card h3 span:last-child {
    font-size: 13px !important;
  }
}
/* ===========================================
   Product Detail Page
=========================================== */

.product-detail-page {
  background: #f7f4ef;
  padding-top: 130px;
}

.product-detail-header {
  max-width: 980px;
  margin: 0 auto 70px;
  text-align: center;
  padding: 0 20px;
}

.product-detail-header .brand-label {
  font-size: 15px;
  color: #b59a75;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 16px;
}

.product-detail-header h1 {
  font-size: 52px;
  color: #3d2b20;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 14px;
}

.product-detail-header h1 span {
  display: block;
  font-size: 24px;
  color: #9d8260;
  font-weight: 500;
  margin-top: 8px;
}

.product-detail-header p {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  color: #665c55;
  line-height: 1.9;
  word-break: keep-all;
}

.product-detail-images {
  width: 92%;
  max-width: 1000px;
  margin: 0 auto;
}

.product-detail-images img {
  width: 100%;
  margin-bottom: 34px;
  border-radius: 0;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .08);
}

.back-to-collection {
  text-align: center;
  margin: 60px 0 100px;
}

.back-to-collection a {
  display: inline-block;
  padding: 15px 36px;
  border-radius: 50px;
  background: #b59a75;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(181, 154, 117, .28);
  transition: .3s;
}

.back-to-collection a:hover {
  background: #9d8260;
  transform: translateY(-3px);
}

@media (max-width: 700px) {
  .product-detail-page {
    padding-top: 120px;
  }

  .product-detail-header {
    margin-bottom: 44px;
  }

  .product-detail-header h1 {
    font-size: 36px;
  }

  .product-detail-header h1 span {
    font-size: 20px;
  }

  .product-detail-header p {
    font-size: 16px;
  }

  .product-detail-images {
    width: 100%;
  }

  .product-detail-images img {
    margin-bottom: 18px;
    box-shadow: none;
  }

  .back-to-collection {
    margin: 45px 0 70px;
  }
}