@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&family=Source+Sans+3:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --font-heading: 'PPEiko', 'Playfair Display', Georgia, serif;
  --font-copy: 'Source Sans 3', 'AktivGrotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Cinzel', 'Playfair Display', serif;
  
  --color-primary-100: #251700;
  --color-primary-80: #514533;
  --color-primary-70: #665d4d;
  --color-primary-40: #a8a299;
  --color-primary-10: #e9e8e6;
  --color-primary-2: #fbfafa;
  --color-chartreuse: #e9f551;
  --color-chartreuse-hover: #dbe838;
  --color-accent-cobalt: #f2f6fb;
  --color-accent-limestone: #f7ffec;
  --color-cream-warm: #fbf9f5;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-copy);
  color: var(--color-primary-100);
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.font-heading {
  font-family: var(--font-heading);
}

.font-copy {
  font-family: var(--font-copy);
}

.font-brand {
  font-family: var(--font-brand);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1efe9;
}
::-webkit-scrollbar-thumb {
  background: #beb9b3;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #514533;
}

/* Shimmer Animation */
@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.animate-shimmer {
  animation: shimmer 2.4s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

/* Product Card Transitions */
.stone-card-media {
  overflow: hidden;
  position: relative;
  background-color: #f1efe9;
}
.stone-card-media img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  will-change: transform;
}
.stone-card:hover .stone-card-media img {
  transform: scale(1.05);
}
.stone-card:hover .stone-card-title {
  text-decoration: underline;
}

/* Eco Outdoor Signature Chartreuse Hover */
.hover-chartreuse:hover {
  background-color: var(--color-chartreuse) !important;
  color: var(--color-primary-100) !important;
}

/* Sticky Header Enhancement */
.site-header {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(37, 23, 0, 0.06);
}

/* Mega Menu Dropdowns */
.nav-item-dropdown {
  position: static;
}
.mega-menu {
  display: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.nav-item-dropdown:hover .mega-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Sizing Specification Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.spec-table th {
  text-align: left;
  padding: 14px 16px;
  background: #fbfafa;
  color: var(--color-primary-70);
  font-weight: 600;
  border-bottom: 1px solid var(--color-primary-10);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}
.spec-table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-primary-10);
  color: var(--color-primary-100);
}
.spec-table tr:hover td {
  background-color: #f7ffec;
}

/* Lightbox Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(37, 23, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.gallery-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.gallery-modal-content {
  max-width: 90vw;
  max-height: 88vh;
  position: relative;
}
.gallery-modal img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

/* Live Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(37, 23, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}
.search-modal-box {
  width: 100%;
  max-width: 680px;
  background: #ffffff;
  border-radius: 4px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

/* Toast Notifications */
.tianya-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1100;
  background: var(--color-primary-100);
  color: #ffffff;
  padding: 14px 24px;
  border-left: 4px solid var(--color-chartreuse);
  border-radius: 2px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.tianya-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Badge styles */
.badge-finish {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 8px;
  background-color: #f1efe9;
  color: var(--color-primary-80);
  border-radius: 2px;
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 400px;
  background: #ffffff;
  z-index: 900;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.mobile-nav-drawer.open {
  transform: translateX(0);
}
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(37, 23, 0, 0.5);
  z-index: 890;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.mobile-nav-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
