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

:root {
  --bg: #faf8f5;
  --bg-warm: #f3efe9;
  --bg-card: #ffffff;
  --ink: #2b2825;
  --ink-soft: #4a4540;
  --text: #3d3833;
  --text-light: #8a8278;
  --sage: #8a9a7b;
  --sage-dark: #6b7d5c;
  --sage-light: #b5c4a8;
  --clay: #c4a882;
  --clay-dark: #a0855f;
  --line: #e5dfd7;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(43,40,37,0.05);
  --shadow-md: 0 6px 30px rgba(43,40,37,0.08);
  --shadow-lg: 0 16px 50px rgba(43,40,37,0.10);
  --radius: 6px;
  --radius-lg: 12px;
  --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --font-display: 'DM Serif Display', 'Noto Serif SC', serif;
  --font-body: 'DM Sans', 'Noto Sans SC', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--ink); letter-spacing: -0.01em; }

/* === Navbar === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1rem 3rem; display: flex; align-items: center; justify-content: space-between; background: rgba(250,248,245,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); transition: var(--transition); }
.navbar.scrolled { padding: 0.75rem 3rem; box-shadow: var(--shadow-sm); }
.nav-logo { font-family: var(--font-display); font-size: 1.5rem; font-weight: 400; color: var(--ink); display: flex; align-items: center; gap: 0.4rem; }
.nav-logo span { color: var(--sage-dark); font-size: 1.1rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a { font-size: 0.88rem; font-weight: 500; color: var(--text-light); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--sage-dark); transition: width var(--transition); }
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; gap: 1rem; align-items: center; }
.nav-cart { position: relative; cursor: pointer; background: none; border: none; display: flex; align-items: center; gap: 0.4rem; }
.nav-cart svg { width: 22px; height: 22px; color: var(--ink); }
.nav-cart-badge { position: absolute; top: -6px; right: -8px; background: var(--sage-dark); color: var(--white); font-size: 0.68rem; font-weight: 700; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.nav-cta { background: var(--ink); color: var(--white) !important; padding: 0.6rem 1.4rem; border-radius: var(--radius); font-weight: 600; font-size: 0.85rem; transition: all var(--transition); }
.nav-cta:hover { background: var(--sage-dark); transform: translateY(-2px); }
.nav-cta::after { display: none !important; }
.nav-toggle { display: none; cursor: pointer; background: none; border: none; }
.nav-toggle svg { width: 26px; height: 26px; color: var(--ink); }

/* === Hero === */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 4rem; padding: 8rem 3rem 4rem; position: relative; }
.hero::before { content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: var(--bg-warm); z-index: 0; }
.hero-text { position: relative; z-index: 2; }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--white); padding: 0.4rem 1rem; border-radius: 50px; font-size: 0.8rem; font-weight: 500; color: var(--sage-dark); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.hero-tag svg { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(2.8rem, 5vw, 4.2rem); margin-bottom: 1.2rem; font-weight: 400; }
.hero h1 em { font-style: normal; color: var(--sage-dark); }
.hero-sub { font-size: 1.08rem; color: var(--text-light); max-width: 440px; margin-bottom: 2rem; line-height: 1.9; }
.hero-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--ink); color: var(--white); padding: 0.9rem 2rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; transition: all var(--transition); border: none; cursor: pointer; }
.btn-primary:hover { background: var(--sage-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-primary svg { width: 18px; height: 18px; }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; background: transparent; color: var(--ink); padding: 0.9rem 1.6rem; border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; border: 1px solid var(--line); transition: all var(--transition); cursor: pointer; }
.btn-secondary:hover { border-color: var(--ink); background: var(--bg-warm); }
.hero-features { display: flex; gap: 2rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.hero-feature { display: flex; align-items: center; gap: 0.6rem; font-size: 0.85rem; color: var(--text-light); }
.hero-feature svg { width: 20px; height: 20px; color: var(--sage-dark); }
.hero-image { position: relative; z-index: 2; }
.hero-image-main { width: 100%; height: 540px; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.hero-image-card { position: absolute; bottom: -25px; left: -25px; background: var(--white); padding: 1rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 0.8rem; }
.hero-image-card-icon { width: 40px; height: 40px; border-radius: 50%; background: var(--sage-light); display: flex; align-items: center; justify-content: center; }
.hero-image-card-icon svg { width: 20px; height: 20px; color: var(--sage-dark); }
.hero-image-card strong { display: block; font-size: 0.85rem; color: var(--ink); }
.hero-image-card span { font-size: 0.75rem; color: var(--text-light); }

/* === Section Common === */
.section { padding: 6rem 3rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.78rem; font-weight: 600; color: var(--sage-dark); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.8rem; }
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--sage); }
.section-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); margin-bottom: 0.6rem; }
.section-header h2 em { font-style: normal; color: var(--sage-dark); }
.section-header p { font-size: 1rem; color: var(--text-light); max-width: 500px; margin: 0 auto; }

/* === Categories === */
.categories { background: var(--bg-warm); }
.categories-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.category-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem 1.5rem; text-align: center; transition: all var(--transition); cursor: pointer; border: 1px solid transparent; }
.category-card:hover { border-color: var(--sage-light); transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-icon { width: 56px; height: 56px; margin: 0 auto 1rem; background: var(--bg-warm); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.category-card:hover .category-icon { background: var(--sage-light); }
.category-icon svg { width: 26px; height: 26px; color: var(--sage-dark); }
.category-card h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.category-card p { font-size: 0.82rem; color: var(--text-light); }
.category-card .count { font-size: 0.75rem; color: var(--clay-dark); margin-top: 0.5rem; font-weight: 600; }

/* === Products === */
.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.product-card { background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); border: 1px solid var(--line); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-img-wrap { height: 260px; background: var(--bg-warm); overflow: hidden; position: relative; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.06); }
.product-badge { position: absolute; top: 1rem; left: 1rem; background: var(--ink); color: var(--white); padding: 0.3rem 0.7rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; }
.product-badge.new { background: var(--sage-dark); }
.product-badge.sale { background: #c75d4a; }
.product-wishlist { position: absolute; top: 1rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; opacity: 0; transition: all var(--transition); box-shadow: var(--shadow-sm); }
.product-card:hover .product-wishlist { opacity: 1; }
.product-wishlist svg { width: 18px; height: 18px; color: var(--text-light); }
.product-wishlist.active svg { color: #c75d4a; fill: #c75d4a; }
.product-info { padding: 1.2rem 1.4rem 1.4rem; }
.product-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 400; color: var(--ink); margin-bottom: 0.3rem; }
.product-desc { font-size: 0.83rem; color: var(--text-light); margin-bottom: 0.8rem; line-height: 1.6; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; }
.product-price { font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 400; }
.product-price del { font-size: 0.85rem; color: var(--text-light); margin-right: 0.4rem; font-family: var(--font-body); }
.product-add { background: var(--ink); color: var(--white); border: none; padding: 0.6rem 1rem; border-radius: var(--radius); font-size: 0.8rem; font-weight: 600; cursor: pointer; transition: all var(--transition); display: flex; align-items: center; gap: 0.3rem; }
.product-add:hover { background: var(--sage-dark); }
.product-add svg { width: 16px; height: 16px; }

/* === Story === */
.story { background: var(--ink); color: var(--bg); overflow: hidden; }
.story .section-tag { color: var(--sage-light); }
.story .section-tag::before { background: var(--sage); }
.story .section-header h2 { color: var(--bg); }
.story .section-header h2 em { color: var(--sage-light); }
.story .section-header p { color: rgba(250,248,245,0.6); }
.story-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1200px; margin: 0 auto; }
.story-image { position: relative; }
.story-image img { width: 100%; height: 420px; object-fit: cover; border-radius: var(--radius-lg); }
.story-image-deco { position: absolute; bottom: -20px; right: -20px; width: 120px; height: 120px; border: 2px solid var(--sage); border-radius: var(--radius-lg); z-index: -1; }
.story-content h2 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); margin-bottom: 1rem; color: var(--bg); }
.story-content > p { font-size: 1rem; color: rgba(250,248,245,0.65); margin-bottom: 1.5rem; line-height: 1.9; }
.story-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2rem; }
.story-stat { border-left: 2px solid var(--sage); padding-left: 1rem; }
.story-stat-num { font-family: var(--font-display); font-size: 1.6rem; color: var(--sage-light); }
.story-stat-label { font-size: 0.78rem; color: rgba(250,248,245,0.5); }

/* === Inspiration === */
.inspiration { background: var(--bg-warm); }
.inspiration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.insp-card { position: relative; height: 380px; border-radius: var(--radius-lg); overflow: hidden; cursor: pointer; transition: all var(--transition); }
.insp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.insp-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.insp-card:hover img { transform: scale(1.05); }
.insp-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem 1.5rem 1.5rem; background: linear-gradient(transparent, rgba(43,40,37,0.85)); color: var(--white); }
.insp-overlay h3 { font-size: 1.3rem; color: var(--white); margin-bottom: 0.3rem; }
.insp-overlay p { font-size: 0.82rem; color: rgba(255,255,255,0.75); }
.insp-tag { display: inline-block; background: var(--sage-dark); color: var(--white); padding: 0.2rem 0.7rem; border-radius: 50px; font-size: 0.72rem; font-weight: 600; margin-bottom: 0.6rem; }

/* === Testimonials === */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 2rem; transition: all var(--transition); border: 1px solid var(--line); }
.testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.testimonial-stars { display: flex; gap: 0.15rem; margin-bottom: 0.8rem; }
.testimonial-stars svg { width: 17px; height: 17px; color: var(--clay-dark); }
.testimonial-text { font-size: 0.92rem; color: var(--text); line-height: 1.8; margin-bottom: 1.2rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.testimonial-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sage-light); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 700; }
.testimonial-name { font-size: 0.88rem; font-weight: 600; color: var(--ink); }
.testimonial-product { font-size: 0.76rem; color: var(--text-light); }

/* === Footer === */
.footer { background: var(--ink); color: rgba(250,248,245,0.5); padding: 4rem 3rem 2rem; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(250,248,245,0.08); }
.footer-brand .nav-logo { color: var(--bg); }
.footer-brand p { margin-top: 1rem; font-size: 0.85rem; line-height: 1.8; max-width: 280px; }
.footer-col h4 { color: var(--bg); font-size: 0.95rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul a { font-size: 0.82rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--sage-light); }
.footer-subscribe h4 { color: var(--bg); font-size: 0.95rem; margin-bottom: 0.5rem; }
.footer-subscribe p { font-size: 0.82rem; margin-bottom: 1rem; }
.footer-subscribe-form { display: flex; gap: 0.5rem; }
.footer-subscribe-form input { flex: 1; padding: 0.7rem 1rem; border: 1px solid rgba(250,248,245,0.12); background: rgba(250,248,245,0.05); color: var(--bg); font-size: 0.82rem; outline: none; border-radius: var(--radius); font-family: var(--font-body); }
.footer-subscribe-form input::placeholder { color: rgba(250,248,245,0.3); }
.footer-subscribe-form input:focus { border-color: var(--sage); }
.footer-subscribe-form button { padding: 0.7rem 1.2rem; background: var(--sage-dark); color: var(--white); border: none; cursor: pointer; font-weight: 600; font-size: 0.82rem; border-radius: var(--radius); transition: all var(--transition); }
.footer-subscribe-form button:hover { background: var(--sage); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.78rem; }
.footer-social { display: flex; gap: 0.8rem; }
.footer-social a { width: 34px; height: 34px; border: 1px solid rgba(250,248,245,0.1); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; transition: all var(--transition); }
.footer-social a:hover { background: var(--sage-dark); border-color: var(--sage-dark); }
.footer-social svg { width: 15px; height: 15px; }

/* === Reveal === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === Toast === */
.toast { position: fixed; bottom: 2rem; right: 2rem; z-index: 200; background: var(--ink); color: var(--white); padding: 1rem 1.5rem; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: 0.88rem; display: flex; align-items: center; gap: 0.5rem; transform: translateY(100px); opacity: 0; transition: all 0.4s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast svg { width: 20px; height: 20px; color: var(--sage-light); }

/* === Responsive === */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; padding: 7rem 2rem 3rem; }
  .hero::before { display: none; }
  .hero-image { display: none; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .story-layout { grid-template-columns: 1fr; gap: 2rem; }
  .inspiration-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section { padding: 4rem 2rem; }
  .navbar { padding: 1rem 1.5rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-actions { display: none; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 2.2rem; }
  .hero-features { flex-direction: column; gap: 0.8rem; }
  .categories-grid { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: 1fr; }
  .story-stats { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
}
