/* ============================================================
   TINY HOUSE MARKET — Custom CSS pour Furniture theme
   ============================================================ */

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

:root {
  --thm-ink: #1a1f2e;
  --thm-gold: #c9a961;
  --thm-gold-dk: #a88840;
  --thm-line: #e6e1d8;
}

/* Logo size fix */
header#header .logo,
#_desktop_logo img,
.header-top .logo,
.logo img,
.logo.img-responsive {
  max-height: 56px !important;
  height: auto !important;
  width: auto !important;
}

header#header {
  background: #ffffff !important;
  border-bottom: 1px solid var(--thm-line) !important;
  padding: 12px 0 !important;
}

/* ====== Custom THM grid for featured/new sections ====== */
.thm-featured,
.thm-new {
  padding: 0 30px !important;
  max-width: 1280px !important;
  margin: 70px auto !important;
}

.thm-featured h2,
.thm-new h2 {
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 500 !important;
  font-size: 36px !important;
  letter-spacing: -0.015em !important;
  text-align: center !important;
  margin-bottom: 8px !important;
  color: var(--thm-ink) !important;
}

.thm-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 24px !important;
  margin-top: 32px !important;
}

.thm-card {
  display: block !important;
  background: #fff !important;
  border: 1px solid var(--thm-line) !important;
  border-radius: 3px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.35s cubic-bezier(.2,.8,.2,1) !important;
}

.thm-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(26,31,46,0.12) !important;
  border-color: var(--thm-gold) !important;
  text-decoration: none !important;
}

.thm-card-img {
  width: 100% !important;
  height: 240px !important;
  overflow: hidden !important;
  background: #f7f5f0 !important;
  position: relative !important;
}

.thm-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  transition: transform 0.8s ease !important;
}

.thm-card:hover .thm-card-img img {
  transform: scale(1.06) !important;
}

.thm-card-body {
  padding: 18px 20px 22px !important;
}

.thm-card-title {
  font-family: 'Cormorant Garamond', serif !important;
  font-size: 20px !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.25 !important;
  color: var(--thm-ink) !important;
  margin: 0 0 8px 0 !important;
}

.thm-card-price {
  color: var(--thm-gold-dk) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

/* CTA button */
.thm-cta-btn {
  display: inline-block !important;
  padding: 14px 32px !important;
  background: var(--thm-ink) !important;
  color: #fff !important;
  text-transform: uppercase !important;
  letter-spacing: 0.1em !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 3px !important;
  text-decoration: none !important;
  transition: all 0.25s !important;
}

.thm-cta-btn:hover {
  background: var(--thm-gold-dk) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Mobile */
@media (max-width: 991px) {
  .thm-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 480px) {
  .thm-grid { grid-template-columns: 1fr !important; }
  .thm-card-img { height: 280px !important; }
}

/* Hide empty/irrelevant sections */
.bg-home {
  display: none !important;
}

/* Customize widget bnh middle banner */
.ybc-widget-display-home img {
  width: 100% !important;
  border-radius: 3px !important;
}

/* Footer */
.footer-container {
  background: var(--thm-ink) !important;
  color: rgba(255,255,255,0.72) !important;
}
.footer-container h3,
.footer-container .h3 {
  color: #fff !important;
  font-family: 'Cormorant Garamond', serif !important;
  font-weight: 500 !important;
  letter-spacing: -0.01em !important;
}
.footer-container a:hover {
  color: var(--thm-gold) !important;
}
