/* =========================================================================
   IndoorArts - Modern Architectural Design System & Stylesheet
   Adhering to the rich, warm, obsidian & champagne gold aesthetic of old-index.html
   ========================================================================= */

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

:root {
  /* Brand Luxury Color Palette */
  --brand-ebony: #0F0A09;
  --brand-darkGrey: #1C1514;
  --brand-darkerGrey: #140E0D;
  --brand-cardHover: #261c1b;
  --brand-borderMuted: #3E2521;
  --brand-borderLight: rgba(197, 168, 128, 0.25);
  
  --brand-terracotta: #5C251C;
  --brand-terracottaDark: #2D110D;
  
  --brand-gold: #C5A880;
  --brand-goldMuted: #AFA08C;
  --brand-goldLight: #E6D7BE;
  
  /* Studio Lighting Radial Gradients */
  --bg-center: #a34640;
  --bg-mid: #702a25;
  --bg-edge: #381210;
  
  --text-main: #FCF6F2;
  --text-muted: #D1C2BA;
  --text-dim: #9E8F87;
  
  /* Fonts */
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-cinzel: 'Cinzel', serif;
  
  --swiper-navigation-size: 32px;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-ebony);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Typography Helpers */
.font-serif {
  font-family: var(--font-serif);
}

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

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--brand-ebony);
}
::-webkit-scrollbar-thumb {
  background: var(--brand-borderMuted);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--brand-terracotta);
}

/* Studio Lighting Atmosphere */
.studio-background {
  background: radial-gradient(circle at 50% 45%, var(--bg-center) 0%, var(--bg-mid) 45%, var(--bg-edge) 100%);
  position: relative;
}

.studio-lighting {
  background: radial-gradient(circle at 65% 50%, #9d544b 0%, #4c2118 60%, #30110e 100%);
}

.card-gradient {
  background: linear-gradient(180deg, rgba(28, 21, 20, 0.95) 0%, rgba(20, 14, 13, 0.98) 100%);
}

/* Glassmorphism Header */
.header-glass {
  background: rgba(15, 10, 9, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--brand-borderMuted);
}

/* Seamless 60FPS Marquee Scroll */
@keyframes seamless-marquee {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

.marquee-container {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  min-width: 200%;
  animation: seamless-marquee 25s linear infinite;
  will-change: transform;
}

.marquee-container:hover .marquee-track {
  animation-play-state: paused;
}

/* Swiper Hero Customizations */
.hero-swiper {
  width: 100%;
  height: 100vh;
  min-height: 650px;
  position: relative;
  z-index: 1;
}

.hero-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0 !important;
  filter: blur(20px);
  transition: filter 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 1s ease !important;
  height: 100%;
}

.hero-slide.swiper-slide-active {
  opacity: 1 !important;
  filter: blur(0px);
}

/* Swiper Pagination Bullets */
.swiper-pagination-bullet {
  background: rgba(197, 168, 128, 0.3) !important;
  opacity: 1 !important;
  width: 10px !important;
  height: 10px !important;
  transition: all 0.3s ease !important;
}

.swiper-pagination-bullet-active {
  background: var(--brand-gold) !important;
  width: 28px !important;
  border-radius: 6px !important;
  box-shadow: 0 0 10px rgba(197, 168, 128, 0.5) !important;
}

/* Swiper Nav Arrows */
.swiper-button-next,
.swiper-button-prev {
  color: var(--brand-gold) !important;
  transition: all 0.3s ease;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  color: #FFFFFF !important;
  transform: scale(1.15);
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #E6D7BE 0%, #C5A880 50%, #AFA08C 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Architectural Card Glow & Hover */
.arch-card {
  background-color: var(--brand-darkGrey);
  border: 1px solid var(--brand-borderMuted);
  border-radius: 12px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.arch-card:hover {
  border-color: var(--brand-gold);
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
}

/* Button System */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--brand-gold);
  color: #0F0A09;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--brand-gold);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-gold:hover {
  background-color: #E6D7BE;
  border-color: #E6D7BE;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(197, 168, 128, 0.3);
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: transparent;
  color: var(--brand-gold);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  border: 1px solid var(--brand-gold);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
}

.btn-outline-gold:hover {
  background-color: var(--brand-gold);
  color: #0F0A09;
  transform: translateY(-2px);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 5, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background: var(--brand-darkGrey);
  border: 1px solid var(--brand-borderMuted);
  border-radius: 16px;
  max-width: 600px;
  width: 92%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8);
  transform: scale(0.96);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

/* Full-Height Product Filter Sidebar */
.filter-sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 5, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.filter-sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.filter-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  max-width: 100vw;
  height: 100vh;
  background: var(--brand-darkGrey);
  border-right: 1px solid var(--brand-borderMuted);
  z-index: 9995;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.filter-sidebar.active {
  transform: translateX(0);
}

/* Category Tree Hierarchy Styles */
.category-tree-node .category-sub-tree {
  border-left: 1px solid var(--brand-borderMuted);
  margin-left: 0.75rem;
  padding-left: 0.5rem;
}

.category-tree-node .tree-toggle-icon {
  transition: transform 0.2s ease;
}

.category-tree-node .tree-toggle-icon.rotated {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .filter-sidebar {
    width: 100vw;
  }
}

/* Multi-Level Header Dropdown */
.nav-item-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--brand-darkGrey);
  border: 1px solid var(--brand-borderMuted);
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
  padding: 0.5rem 0;
}

.nav-item-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all 0.2s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background: rgba(197, 168, 128, 0.1);
  color: var(--brand-gold);
  padding-left: 1.4rem;
}

/* Global Search Modal */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 5, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.search-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.search-modal-box {
  background: var(--brand-darkGrey);
  border: 1px solid var(--brand-gold);
  border-radius: 16px;
  width: 90%;
  max-width: 680px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s ease;
}

.search-modal.active .search-modal-box {
  transform: translateY(0);
}

/* WhatsApp Floating Quick Action */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 54px;
  height: 54px;
  background-color: #25D366;
  color: #0F0A09;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 990;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.6);
}

/* Custom Checkbox */
.custom-checkbox {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 1px solid var(--brand-borderMuted);
  border-radius: 4px;
  background-color: var(--brand-ebony);
  cursor: pointer;
  display: inline-grid;
  place-content: center;
  transition: all 0.2s ease;
}

.custom-checkbox:checked {
  background-color: var(--brand-gold);
  border-color: var(--brand-gold);
}

.custom-checkbox:checked::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--brand-ebony);
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

/* Lightbox Gallery Modal */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-overlay img {
  max-height: 80vh;
  max-width: 90vw;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 16px;
  z-index: 10;
}

.lightbox-nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--brand-gold);
  color: var(--brand-gold);
}

.lightbox-nav-btn.prev { left: 24px; }
.lightbox-nav-btn.next { right: 24px; }

.lightbox-close-btn {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 18px;
  z-index: 10;
}

.lightbox-close-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

/* Cursor zoom-in for gallery images */
.cursor-zoom-in { cursor: zoom-in; }
