/* Chatru Craft — shared polish */
:root {
  --cream: #FFF8F0;
  --cream-deep: #F9EEDF;
  --ink: #3A2010;
  --ink-soft: #5A2E14;
  --accent: #B85C1A;
  --accent-deep: #8B4513;
  --gold: #E6B17E;
  --gold-mid: #C16E2E;
  --footer: #261A0C;
  --footer-muted: #EADBC6;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --radius: 1.25rem;
  --shadow-sm: 0 4px 16px -8px rgba(58, 32, 16, 0.12);
  --shadow-md: 0 16px 32px -16px rgba(58, 32, 16, 0.18);
  --shadow-lg: 0 24px 48px -20px rgba(58, 32, 16, 0.22);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
  margin: 0;
}

h1, h2, h3, .serif {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: -0.01em;
}

img {
  max-width: 100%;
  display: block;
}

a { transition: color 0.25s var(--ease); }

/* ——— Logo ——— */
.custom-logo {
  display: block;
  width: auto;
  height: 52px;
  max-height: 52px;
  object-fit: contain;
  object-position: left center;
}
.logo-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media (min-width: 768px) {
  .custom-logo {
    height: 62px;
    max-height: 62px;
  }
}

/* ——— Navbar ——— */
.navbar {
  transition: box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  background: rgba(255, 248, 240, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212, 163, 115, 0.18);
}
.navbar-scrolled {
  box-shadow: 0 4px 24px -8px rgba(58, 32, 16, 0.1);
  background: rgba(255, 248, 240, 0.97);
}

.nav-link {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.nav-link:hover { color: var(--accent); }
.nav-link.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

#mobileMenu {
  transition: max-height 0.35s var(--ease), opacity 0.3s var(--ease);
  overflow: hidden;
  background: #fff;
  border-top: 1px solid #E8DCCF;
}
.mobile-link {
  display: block;
  padding: 0.65rem 0.85rem;
  border-radius: 0.65rem;
  color: var(--ink-soft);
  font-weight: 500;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.mobile-link:hover,
.mobile-link.active {
  background: var(--cream-deep);
  color: var(--accent);
}

/* ——— Section accents ——— */
.section-rule {
  width: 4.5rem;
  height: 3px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-mid), var(--gold));
}
@media (min-width: 768px) {
  .section-rule { width: 5.5rem; }
}

.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  background: rgba(184, 92, 26, 0.08);
  color: var(--accent-deep);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ——— Cards ——— */
.card-modern,
.product-card,
.related-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  border: 1px solid rgba(184, 92, 26, 0.06);
}
.card-modern:hover,
.product-card:hover,
.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.card-media {
  overflow: hidden;
  background: #EADBC6;
  aspect-ratio: 4 / 5;
}
.card-media img,
.img-zoom {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}
.group:hover .img-zoom,
.product-card:hover .img-zoom,
.card-modern:hover .img-zoom {
  transform: scale(1.06);
}

.feature-card,
.testimonial-card,
.stat-card {
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease);
  border: 1px solid rgba(184, 92, 26, 0.08);
}
.feature-card:hover,
.testimonial-card:hover,
.stat-card:hover {
  transform: translateY(-4px);
  background: #fff;
  box-shadow: var(--shadow-sm);
  border-color: rgba(184, 92, 26, 0.18);
}

/* ——— Buttons ——— */
.btn-explore,
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-weight: 560;
  font-size: 0.9rem;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
  text-align: center;
  width: 100%;
}
@media (min-width: 640px) {
  .btn-explore, .btn-wa {
    width: auto;
    padding: 0.85rem 1.85rem;
    font-size: 1rem;
  }
}
.btn-explore {
  background: linear-gradient(95deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(139, 69, 19, 0.45);
}
.btn-explore:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -8px rgba(139, 69, 19, 0.5);
}
.btn-wa {
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px -6px rgba(37, 211, 102, 0.4);
}
.btn-wa:hover {
  background: #20B859;
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  padding: 0.65rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}
.btn-outline i {
  transition: transform 0.3s var(--ease);
}
.btn-outline:hover i {
  transform: translateX(3px);
}

.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: 0 6px 16px -6px rgba(184, 92, 26, 0.4);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn-solid:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
  color: #fff;
}

/* ——— Filters ——— */
.filter-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 0.25rem 0.5rem 0.75rem;
  margin-bottom: 1.5rem;
  justify-content: flex-start;
  scroll-snap-type: x proximity;
}
.filter-row::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .filter-row {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
  }
}
.filter-btn {
  flex: 0 0 auto;
  scroll-snap-align: start;
  transition: all 0.3s var(--ease);
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--accent-deep);
  color: var(--accent-deep);
  background: transparent;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
@media (min-width: 640px) {
  .filter-btn {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
  }
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-deep);
  color: #fff;
  border-color: var(--accent-deep);
}

/* ——— Floats ——— */
.back-to-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0.3s, transform 0.3s var(--ease);
  z-index: 99;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  border: none;
  color: #fff;
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.back-to-top:hover { transform: translateY(-2px); }
@media (min-width: 768px) {
  .back-to-top {
    bottom: 6rem;
    right: 1.5rem;
    width: 46px;
    height: 46px;
  }
}

.whatsapp-float {
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 8px 24px -6px rgba(37, 211, 102, 0.45);
}
.whatsapp-float:hover {
  transform: scale(1.06);
}

/* ——— Hero ——— */
.hero-pattern {
  background:
    radial-gradient(ellipse 70% 60% at 85% 20%, rgba(184, 92, 26, 0.08), transparent 55%),
    linear-gradient(145deg, #FDF6EB 0%, #F8E8C8 55%, #F5DFB8 100%);
  position: relative;
  overflow: hidden;
}
.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}
@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
    gap: 1rem;
  }
}
.hero-visual {
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 5 / 4;
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Gallery ——— */
.gallery-item {
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item img {
  transition: transform 0.6s var(--ease);
  width: 100%;
  height: auto;
  display: block;
}
.gallery-item:hover img { transform: scale(1.04); }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 6, 0.94);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.lightbox.active { display: flex; }
.lightbox-img {
  max-width: 88%;
  max-height: 85%;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: fadeZoom 0.3s var(--ease);
}
@keyframes fadeZoom {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ——— Product detail ——— */
.main-image-wrapper {
  position: relative;
  background: linear-gradient(135deg, #F5EDE0, #EDE3D4);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.main-image {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.main-image-wrapper:hover .main-image {
  transform: scale(1.02);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--footer);
  color: var(--footer-muted);
}
.site-footer a:hover { color: var(--gold); }
.footer-logo {
  height: 2.25rem;
  width: auto;
  object-fit: contain;
}
@media (min-width: 768px) {
  .footer-logo { height: 2.5rem; }
}

/* ——— Loader ——— */
#loader {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
#loader.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ——— Misc ——— */
.price {
  font-weight: 700;
  color: var(--accent);
}
.view-link {
  color: var(--accent-deep);
  font-weight: 500;
  font-size: 0.875rem;
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.view-link:hover {
  border-bottom-color: var(--accent);
  color: var(--accent);
}
