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

:root {
  --ivory: #F5F0E8;
  --cream: #FDFAF5;
  --walnut: #3B2A1A;
  --gold: #C8906A;
  --sage: #8A9E7E;
  --charcoal: #2C2C2C;
  --border: #E0D8CC;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  --radius: 8px;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --transition: all 0.3s ease;
  --max-w: 1280px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); background: var(--cream); color: var(--charcoal); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ─── NAVBAR ─── */
#navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 24px; background: rgba(253,250,245,0.97); backdrop-filter: blur(12px); box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.nav-inner { max-width: var(--max-w); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--walnut); letter-spacing: 3px; }
.nav-logo span { display: none; }
.nav-logo-img { height: 44px; width: auto; max-width: 160px; object-fit: contain; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a { font-size: 13px; font-weight: 500; letter-spacing: 0.5px; color: var(--charcoal); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-ctas { display: flex; gap: 12px; }
.nav-ctas a { font-size: 13px; font-weight: 500; padding: 8px 20px; border-radius: 4px; transition: var(--transition); }
.nav-cta-call { border: 1.5px solid var(--walnut); color: var(--walnut); }
.nav-cta-wa { background: var(--gold); color: #fff; }
.nav-ctas a:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; border: none; background: none; }
.nav-hamburger span { width: 24px; height: 1.5px; background: var(--walnut); display: block; transition: var(--transition); }

/* Mobile nav */
.mobile-nav { position: fixed; top: 0; right: -100%; width: 80%; max-width: 360px; height: 100vh; background: var(--cream); z-index: 1100; transition: right 0.4s cubic-bezier(0.77,0,0.18,1); padding: 80px 32px 32px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 8px; }
.mobile-nav.open { right: 0; }
.mobile-nav a { font-size: 20px; font-family: var(--font-display); color: var(--walnut); padding: 12px 0; border-bottom: 1px solid var(--border); display: block; }
.mobile-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 1050; }
.mobile-overlay.open { display: block; }
.mobile-nav-close { position: absolute; top: 24px; right: 24px; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--walnut); }

/* ─── PAGE HERO ─── */
.page-hero { margin-top: 72px; position: relative; height: 320px; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--walnut); }
.page-hero-img { position: absolute; inset: 0; opacity: 0.45; }
.page-hero-img img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-content { position: relative; text-align: center; color: #fff; padding: 24px; }
.page-hero-content .breadcrumb { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.page-hero-content .breadcrumb a { color: rgba(255,255,255,0.6); transition: var(--transition); }
.page-hero-content .breadcrumb a:hover { color: var(--gold); }
.page-hero-content .breadcrumb span { color: var(--gold); }
.page-hero-content h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 60px); font-weight: 400; line-height: 1.1; }
.page-hero-content p { font-size: 15px; color: rgba(255,255,255,0.75); margin-top: 12px; font-weight: 300; }

/* ─── FILTER TABS ─── */
.filter-section { padding: 40px 0 0; background: var(--cream); }
.filter-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-tab { padding: 8px 22px; border-radius: 24px; font-size: 13px; font-weight: 500; letter-spacing: 0.5px; cursor: pointer; transition: var(--transition); border: 1.5px solid var(--border); background: transparent; color: var(--charcoal); }
.filter-tab:hover { border-color: var(--gold); color: var(--gold); }
.filter-tab.active { background: var(--walnut); border-color: var(--walnut); color: #fff; }

/* ─── PRODUCT GRID ─── */
.products-section { padding: 48px 0 96px; background: var(--cream); }
.products-count { font-size: 13px; color: #9a8f84; margin-bottom: 32px; }
.products-count span { font-weight: 600; color: var(--charcoal); }
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ─── PRODUCT CARD ─── */
.product-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: var(--transition); cursor: pointer; border: 1px solid var(--border); }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.product-img { aspect-ratio: 1; position: relative; overflow: hidden; background: var(--ivory); }
.product-img img { transition: transform 0.5s ease; width: 100%; height: 100%; object-fit: contain; }
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: #b8a898; background: linear-gradient(135deg, var(--ivory) 0%, #ede5d8 100%); }
.product-img-placeholder .placeholder-icon { font-size: 40px; opacity: 0.6; }
.product-img-placeholder p { font-size: 11px; letter-spacing: 1px; text-transform: uppercase; font-weight: 500; opacity: 0.7; }
.product-badge { position: absolute; top: 12px; left: 12px; font-size: 10px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; }
.badge-new { background: var(--gold); color: #fff; }
.badge-popular { background: var(--walnut); color: #fff; }
.product-body { padding: 18px 16px 20px; }
.product-body .sub-label { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--sage); margin-bottom: 6px; display: block; }
.product-body h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--walnut); margin-bottom: 6px; line-height: 1.3; }
.product-body .material { font-size: 12px; color: #9a8f84; margin-bottom: 14px; }
.product-inquire { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: var(--gold); border: none; background: none; cursor: pointer; padding: 0; transition: var(--transition); text-decoration: none; }
.product-inquire:hover { gap: 10px; color: #a06840; }

/* ─── PLACEHOLDER CARD (no image yet) ─── */
.product-card.no-image .product-img { background: var(--ivory); }

/* ─── INQUIRY CTA ─── */
.inquiry-cta { background: var(--walnut); padding: 64px 0; text-align: center; }
.inquiry-cta h2 { font-family: var(--font-display); font-size: clamp(28px, 3.5vw, 42px); font-weight: 400; color: #fff; margin-bottom: 12px; }
.inquiry-cta p { font-size: 15px; color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.inquiry-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 28px; font-family: var(--font-body); font-size: 14px; font-weight: 500; border: none; cursor: pointer; transition: var(--transition); border-radius: 4px; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: #b57a57; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
.btn-outline-white:hover { background: rgba(255,255,255,0.1); transform: translateY(-2px); }

/* ─── FOOTER ─── */
footer { background: #1E130A; padding: 48px 0 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand-mini .logo { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: #fff; letter-spacing: 3px; display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.footer-brand-mini .logo span { display: none; }
.footer-brand-mini .logo img { width: 120px; height: auto; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
.footer-brand-mini p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding: 16px 0; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.25); text-align: center; }

/* ─── MOBILE STICKY BAR ─── */
.mobile-bar { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: var(--walnut); z-index: 999; border-top: 1px solid rgba(255,255,255,0.1); }
.mobile-bar-inner { display: flex; }
.mobile-bar-btn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 8px; gap: 4px; font-size: 10px; font-weight: 500; color: rgba(255,255,255,0.8); transition: var(--transition); border: none; background: none; cursor: pointer; text-decoration: none; }
.mobile-bar-btn:hover { color: var(--gold); }
.mobile-bar-btn.wa { background: #25D366; color: #fff; }
.mobile-bar-btn .icon { font-size: 20px; }

/* ─── FADE UP ─── */
/* Cards are visible by default so the page never appears empty.
   The hidden state is only applied when JS is confirmed available (html.js). */
.fade-up { opacity: 1; transform: none; transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .fade-up { opacity: 0; transform: translateY(24px); }
html.js .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-bar { display: flex; }
  body { padding-bottom: 64px; }
}
@media (max-width: 480px) { .products-grid { grid-template-columns: 1fr; } }

.icon-wa {
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232'/%3E%3C/svg%3E") no-repeat center;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M13.601 2.326A7.85 7.85 0 0 0 7.994 0C3.627 0 .068 3.558.064 7.926c0 1.399.366 2.76 1.057 3.965L0 16l4.204-1.102a7.9 7.9 0 0 0 3.79.965h.004c4.368 0 7.926-3.558 7.93-7.93A7.9 7.9 0 0 0 13.6 2.326zM7.994 14.521a6.6 6.6 0 0 1-3.356-.92l-.24-.144-2.494.654.666-2.433-.156-.251a6.56 6.56 0 0 1-1.007-3.505c0-3.626 2.957-6.584 6.591-6.584a6.56 6.56 0 0 1 4.66 1.931 6.56 6.56 0 0 1 1.928 4.66c-.004 3.639-2.961 6.592-6.592 6.592m3.615-4.934c-.197-.099-1.17-.578-1.353-.646-.182-.065-.315-.099-.445.099-.133.197-.513.646-.627.775-.114.133-.232.148-.43.05-.197-.1-.836-.308-1.592-.985-.59-.525-.985-1.175-1.103-1.372-.114-.198-.011-.304.088-.403.087-.088.197-.232.296-.346.1-.114.133-.198.198-.33.065-.134.034-.248-.015-.347-.05-.099-.445-1.076-.612-1.47-.16-.389-.323-.335-.445-.34-.114-.007-.247-.007-.38-.007a.73.73 0 0 0-.529.247c-.182.198-.691.677-.691 1.654s.71 1.916.81 2.049c.098.133 1.394 2.132 3.383 2.992.47.205.84.326 1.129.418.475.152.904.129 1.246.08.38-.058 1.171-.48 1.338-.943.164-.464.164-.86.114-.943-.049-.084-.182-.133-.38-.232'/%3E%3C/svg%3E") no-repeat center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.icon-wa-mr {
  margin-right: 6px;
}

/* ─── SEARCH BAR (shared across collections & catalog-viewer) ─── */
.search-container {
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
  padding: 0 16px;
}
.search-label {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--walnut);
  margin-bottom: 12px;
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}
.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input {
  width: 100%;
  padding: 14px 72px 14px 24px;
  border-radius: 30px;
  border: 1.5px solid var(--border);
  font-family: var(--font-body);
  font-size: 15px;
  background: #fff;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  outline: none;
  color: var(--charcoal);
}
.search-input:focus {
  border-color: var(--gold);
  box-shadow: var(--shadow-md);
}
.search-icon-btn {
  position: absolute;
  right: 20px;
  background: none;
  border: none;
  color: var(--gold);
  font-size: 18px;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-clear-btn {
  position: absolute;
  right: 48px;
  background: none;
  border: none;
  font-size: 18px;
  color: #bbb;
  cursor: pointer;
  display: none;
  padding: 4px;
  transition: color 0.2s;
  z-index: 10;
}
.search-clear-btn:hover { color: var(--walnut); }
.search-results-count {
  text-align: center;
  color: #9a8f84;
  font-size: 0.9rem;
  margin: -20px 0 30px;
  font-family: var(--font-body);
}
.search-results-count span { color: var(--walnut); font-weight: 600; }
.search-no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.search-no-results p {
  font-size: 1.2rem;
  font-family: var(--font-display);
  color: var(--walnut);
  margin-bottom: 12px;
}
.search-no-results .sub { font-size: 0.9rem; color: #9a8f84; margin-bottom: 24px; }

/* ─── LIGHTBOX MODAL (shared across collections & catalog-viewer) ─── */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 11, 6, 0.95);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.lightbox-modal.active { display: flex; opacity: 1; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 44px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 2100;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  line-height: 1;
}
.lightbox-close:hover { background: rgba(255,255,255,0.1); color: var(--gold); transform: rotate(90deg); }
.lightbox-content {
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.lightbox-content img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.1);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lightbox-modal.active .lightbox-content img { transform: scale(1); }
.lightbox-caption {
  margin-top: 20px;
  text-align: center;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.lightbox-caption h3 {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 400;
  letter-spacing: 1px;
  margin: 0;
}
.lightbox-caption .product-inquire-wa {
  background: #25D366;
  border: 1px solid #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 12px 28px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: background 0.3s ease, transform 0.2s ease;
}
.lightbox-caption .product-inquire-wa:hover { background: #20ba5a; transform: translateY(-2px); }

/* ─── MOBILE STICKY BAR (catalog-viewer alias → same as .mobile-bar) ─── */
.mobile-sticky-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--walnut);
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 768px) { .mobile-sticky-bar { display: flex; } }
.sticky-bar-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  gap: 4px;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: var(--transition);
  border: none;
  background: none;
  cursor: pointer;
  text-decoration: none;
}
.sticky-bar-btn:hover { color: var(--gold); }
.sticky-bar-wa { background: #25D366; color: #fff; }
