@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');

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

:root {
  --cream:    #F7F2EA;
  --warm:     #FDFAF5;
  --char:     #18181A;
  --stone:    #5A5450;
  --clay:     #9C7B60;
  --terra:    #BF6B3D;
  --terra-lt: rgba(191,107,61,0.1);
  --sage:     #7A9E87;
  --ice:      #5B8FA8;
  --ice-lt:   rgba(91,143,168,0.1);
  --gold:     #C8973A;
  --border:   rgba(90,84,80,0.13);
  --shadow:   0 4px 24px rgba(24,24,26,0.08);
  --shadow-lg:0 12px 48px rgba(24,24,26,0.13);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Outfit', sans-serif;
  background: var(--warm);
  color: var(--char);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── NAV ── */
.site-nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(253,250,245,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem; font-weight: 700;
  color: var(--char); text-decoration: none; letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo em { color: var(--terra); font-style: normal; }

.nav-menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-menu a {
  text-decoration: none; color: var(--stone);
  font-size: 0.88rem; font-weight: 500;
  padding: 0.45rem 0.85rem; border-radius: 8px;
  transition: all 0.18s; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  color: var(--terra); background: var(--terra-lt);
}
.nav-cta-btn {
  background: var(--char) !important; color: var(--cream) !important;
  border-radius: 100px !important; padding: 0.5rem 1.3rem !important;
  font-weight: 600 !important;
}
.nav-cta-btn:hover { background: var(--terra) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 4px;
}
.hamburger span { width: 22px; height: 2px; background: var(--char); border-radius: 2px; transition: 0.3s; }

/* ── PAGE HERO (INNER PAGES) ── */
.page-hero {
  padding: 5rem 2.5rem 4rem;
  max-width: 1200px; margin: 0 auto;
}
.breadcrumb {
  font-size: 0.78rem; color: var(--stone); margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}
.breadcrumb a { color: var(--terra); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.page-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.08; margin-bottom: 1rem;
}
.page-hero p {
  font-size: 1.05rem; color: var(--stone);
  max-width: 560px; line-height: 1.7;
}

/* ── FILTER BAR ── */
.filter-section {
  background: white; border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2.5rem; position: sticky; top: 70px; z-index: 100;
}
.filter-row {
  max-width: 1200px; margin: 0 auto;
  display: flex; gap: 1rem; flex-wrap: wrap; align-items: center;
}
.filter-group { display: flex; flex-direction: column; gap: 0.3rem; }
.filter-label {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--clay);
}
.filter-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.pill {
  padding: 0.38rem 0.85rem; border-radius: 100px;
  border: 1.5px solid var(--border); background: white;
  font-size: 0.8rem; font-weight: 500; color: var(--stone);
  cursor: pointer; transition: all 0.18s; white-space: nowrap;
  font-family: 'Outfit', sans-serif;
}
.pill:hover { border-color: var(--terra); color: var(--terra); }
.pill.active { background: var(--terra); border-color: var(--terra); color: white; }

/* ── RESULTS BAR ── */
.results-bar {
  max-width: 1200px; margin: 0 auto;
  padding: 1.5rem 2.5rem 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 0.5rem;
}
.results-count { font-size: 0.88rem; color: var(--stone); }
.results-count strong { color: var(--char); }
.sort-select {
  padding: 0.45rem 2.2rem 0.45rem 0.85rem; border-radius: 8px;
  border: 1.5px solid var(--border); background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A5450' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 0.75rem center;
  font-size: 0.85rem; color: var(--char);
  font-family: 'Outfit', sans-serif; font-weight: 500;
  appearance: none; cursor: pointer;
}

/* ── PRODUCT GRID ── */
.product-section {
  max-width: 1200px; margin: 0 auto;
  padding: 2rem 2.5rem 5rem;
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* ── PRODUCT CARD ── */
.product-card {
  background: white; border-radius: 20px;
  border: 1px solid var(--border);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
  animation: fadeUp 0.5s ease both;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.product-card.hidden { display: none; }

.card-thumb {
  height: 190px; position: relative;
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem; overflow: hidden;
}
.card-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 0.4rem; flex-wrap: wrap;
}
.badge {
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 0.28rem 0.7rem; border-radius: 100px;
}
.badge-best   { background: var(--gold); color: white; }
.badge-budget { background: var(--sage); color: white; }
.badge-new    { background: var(--ice);  color: white; }
.badge-top    { background: var(--terra); color: white; }
.badge-editor { background: var(--char); color: var(--cream); }

.card-body { padding: 1.4rem; flex: 1; display: flex; flex-direction: column; }
.card-cat {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--clay); margin-bottom: 0.4rem;
}
.card-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 700; line-height: 1.25;
  margin-bottom: 0.6rem; color: var(--char);
}
.card-rating {
  display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.7rem;
}
.stars { color: var(--gold); font-size: 0.85rem; }
.rating-val { font-size: 0.85rem; font-weight: 700; }
.rating-ct  { font-size: 0.78rem; color: var(--stone); }
.card-desc { font-size: 0.86rem; color: var(--stone); line-height: 1.6; flex: 1; margin-bottom: 1rem; }

.card-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tag {
  font-size: 0.72rem; font-weight: 500; padding: 0.2rem 0.6rem;
  border-radius: 6px; background: var(--cream); color: var(--stone);
}

.card-price-row {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 1rem;
}
.card-price { font-size: 1.35rem; font-weight: 700; color: var(--char); }
.card-price-tier {
  font-size: 0.72rem; color: var(--stone);
  display: flex; align-items: center; gap: 0.25rem;
}
.tier-dot {
  width: 8px; height: 8px; border-radius: 50%;
  display: inline-block;
}
.tier-budget .tier-dot { background: var(--sage); }
.tier-mid    .tier-dot { background: var(--gold); }
.tier-premium .tier-dot { background: var(--terra); }
.tier-luxury .tier-dot  { background: var(--char); }

.card-actions { display: flex; gap: 0.6rem; }
.btn-read {
  flex: 1; padding: 0.65rem; border-radius: 10px;
  background: var(--cream); color: var(--char);
  border: 1.5px solid var(--border);
  font-size: 0.83rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: all 0.18s; font-family: 'Outfit', sans-serif;
}
.btn-read:hover { background: var(--char); color: white; border-color: var(--char); }
.btn-buy {
  flex: 1; padding: 0.65rem; border-radius: 10px;
  background: var(--terra); color: white;
  font-size: 0.83rem; font-weight: 600;
  text-decoration: none; text-align: center;
  transition: opacity 0.18s; font-family: 'Outfit', sans-serif;
}
.btn-buy:hover { opacity: 0.86; }

/* ── SECTION DIVIDER ── */
.sub-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem; font-weight: 700;
  color: var(--char); margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

/* ── FOOTER ── */
.site-footer {
  background: var(--char); color: rgba(247,242,234,0.5);
  padding: 4rem 2.5rem 2.5rem;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
}
.footer-brand .nav-logo { color: var(--cream); display: block; margin-bottom: 0.75rem; }
.footer-brand p { font-size: 0.85rem; line-height: 1.7; max-width: 260px; }
.footer-col h4 {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(247,242,234,0.35);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(247,242,234,0.5); text-decoration: none; font-size: 0.88rem; transition: color 0.18s; }
.footer-col a:hover { color: var(--terra); }
.footer-bottom {
  max-width: 1200px; margin: 3rem auto 0;
  padding-top: 2rem; border-top: 1px solid rgba(247,242,234,0.08);
  font-size: 0.77rem; color: rgba(247,242,234,0.28);
  line-height: 1.8;
}
.footer-bottom strong { color: rgba(247,242,234,0.45); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:nth-child(2) { animation-delay: 0.07s; }
.product-card:nth-child(3) { animation-delay: 0.14s; }
.product-card:nth-child(4) { animation-delay: 0.21s; }
.product-card:nth-child(5) { animation-delay: 0.28s; }
.product-card:nth-child(6) { animation-delay: 0.35s; }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .site-nav { padding: 0 1.25rem; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: white; border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.25rem; }
  .nav-menu.open { display: flex; }
  .hamburger { display: flex; }
  .filter-section { padding: 1rem 1.25rem; top: 70px; }
  .page-hero { padding: 3rem 1.25rem 2.5rem; }
  .product-section { padding: 1.5rem 1.25rem 4rem; }
  .results-bar { padding: 1.25rem 1.25rem 0; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
