/**
 * Ravikanta Doors - Main Layout & Responsive Styles
 * Mobile-First Optimizations, Sticky Bottom Navigation & Dynamic Views
 */

/* Container Layout */
.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

.container-fluid {
  width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* =======================================================
   NAVBAR (DESKTOP & MOBILE HEADER - SMART SINGLE-LINE COMPACT)
======================================================= */
.site-header {
  position: sticky;
  top: 0.5rem;
  z-index: 1000;
  padding: 0 1rem;
  margin-bottom: 0.85rem;
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 1.15rem;
  min-height: 52px;
  max-height: 54px;
  background: rgba(230, 236, 244, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--radius-xl);
  box-shadow: var(--neu-flat);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}

/* Brand Logo Lockup - Strict Single Line */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
  transition: transform var(--transition-fast);
}

.brand-logo:hover {
  transform: translateY(-1px);
}

.brand-emblem {
  height: 38px !important;
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  max-height: 38px !important;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: var(--neu-flat-xs);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px;
  overflow: hidden !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.brand-emblem picture {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  width: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  overflow: hidden !important;
}

.brand-emblem img {
  height: auto !important;
  width: auto !important;
  max-height: 32px !important;
  max-width: 32px !important;
  object-fit: contain !important;
  display: block !important;
}

.brand-text-single {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.brand-title-single {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  line-height: 1;
}

.brand-title-gold {
  color: var(--primary-gold);
  font-weight: 800;
}

/* Desktop Nav Menu - Single Line */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--primary-gold);
}

.nav-link.active {
  color: var(--primary-gold);
  background: var(--bg-surface);
  box-shadow: var(--neu-pressed-sm);
  border-color: rgba(255, 255, 255, 0.4);
}

/* Nav Actions - Single Line */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.nav-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.42rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  line-height: 1;
}

.nav-action-label {
  display: inline-block;
}

.cart-btn-badge, .open-liked-drawer-btn {
  position: relative;
}

.cart-counter {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-gold);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.liked-counter-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(239,68,68,0.4);
}

.mobile-menu-btn {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  align-items: center;
  justify-content: center;
}

/* Intermediate screens (laptops: 992px to 1220px) */
@media (min-width: 992px) and (max-width: 1220px) {
  .navbar {
    padding: 0.35rem 0.85rem;
    gap: 0.4rem;
  }
  .nav-menu {
    gap: 0.2rem;
  }
  .nav-link {
    font-size: 0.85rem;
    padding: 0.35rem 0.6rem;
  }
  .open-liked-drawer-btn .nav-action-label,
  .cart-btn-badge .nav-action-label {
    display: none; /* Icon-only pills with counters so links never wrap! */
  }
  .nav-action-btn {
    padding: 0.42rem 0.6rem;
  }
  .neu-btn-whatsapp .nav-action-label {
    display: inline-block;
  }
}

/* Hide Mobile Elements on Desktop Completely */
@media (min-width: 992px) {
  .mobile-bottom-nav {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .mobile-sidebar-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateX(-150%) !important;
  }
  #mobile-sidebar-backdrop {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  .mobile-menu-btn {
    display: none !important;
  }
}

/* =======================================================
   MOBILE & TABLET STICKY BOTTOM NAVIGATION & HEADER (< 992px)
======================================================= */
@media (max-width: 991px) {
  .nav-menu {
    display: none !important;
  }
  
  .nav-action-btn .nav-action-label {
    display: none;
  }
  
  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header {
    top: 0.35rem;
    padding: 0 0.5rem;
    margin-bottom: 0.5rem;
  }

  .navbar {
    padding: 0.35rem 0.65rem;
    min-height: 48px;
    max-height: 52px;
    border-radius: var(--radius-lg);
  }

  .brand-emblem {
    height: 32px;
    width: 32px;
    min-width: 32px;
  }

  .brand-emblem img {
    max-height: 26px;
    max-width: 26px;
  }

  .brand-title-single {
    font-size: 0.95rem;
  }

  /* On mobile header, hide redundant action buttons (Liked, Cart, WhatsApp near menu) */
  .site-header .open-liked-drawer-btn,
  .site-header .cart-btn-badge,
  .site-header .neu-btn-whatsapp {
    display: none !important;
  }

  .nav-actions {
    gap: 0.4rem;
  }

  /* Sticky Bottom Bar for Mobile Device */
  .mobile-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(230, 236, 244, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 -4px 20px rgba(184, 196, 212, 0.7);
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
    z-index: 9990;
    justify-content: space-around;
    align-items: center;
    height: 58px;
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    position: relative;
    min-width: 54px;
    text-decoration: none;
  }

  .mobile-nav-item svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
  }

  .mobile-nav-item.active {
    color: var(--primary-gold);
    box-shadow: var(--neu-pressed-sm);
  }

  .mobile-nav-item .mobile-cart-badge {
    position: absolute;
    top: 2px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    min-width: 16px;
    height: 16px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 3px;
  }

  /* Give body bottom padding to prevent bottom bar overlapping content */
  body {
    padding-bottom: 68px;
  }
}

@media (max-width: 480px) {
  .navbar {
    gap: 0.25rem;
    padding: 0.3rem 0.5rem;
  }
  .brand-title-single {
    font-size: 0.88rem;
    letter-spacing: -0.2px;
  }
  .nav-actions {
    gap: 0.3rem;
  }
}

/* =======================================================
   OFF-CANVAS DRAWERS & BACKDROPS (CART, LIKED, MOBILE MENU)
======================================================= */
.neu-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.neu-drawer-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Slide-out Estimate / Cart Drawer (Must be higher than backdrop) */
.neu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100%;
  height: 100dvh;
  background: var(--bg-surface);
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.3);
  z-index: 99999 !important;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.25rem;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.neu-drawer.show {
  transform: translateX(0) !important;
}

.mobile-sidebar-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 290px;
  max-width: 82vw;
  height: 100%;
  height: 100dvh;
  background: var(--bg-surface);
  box-shadow: 10px 0 30px rgba(0, 0, 0, 0.25);
  z-index: 99999 !important;
  transform: translateX(-105%);
  transition: transform 0.32s cubic-bezier(0.25, 1, 0.5, 1);
  padding: 1.25rem 1.25rem 2rem;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
  .mobile-sidebar-drawer {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

.mobile-sidebar-drawer.show {
  transform: translateX(0) !important;
}

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(184, 196, 212, 0.3);
}

.mobile-drawer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  box-shadow: var(--neu-pressed-sm);
  color: var(--primary-gold);
}

/* =======================================================
   PWA INSTALL BANNER
   Show if not installed, hide if already installed
======================================================= */
.pwa-install-banner {
  display: none; /* controlled by pwa.js */
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-flat);
  margin-bottom: 1.25rem;
  border-left: 4px solid var(--primary-gold);
}

.pwa-install-banner.visible {
  display: flex;
}

/* =======================================================
   HERO SECTION
======================================================= */
.hero-section {
  padding: 2.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 991px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

/* Hero Multi-door Showcase */
.hero-showcase {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.showcase-door-center {
  width: 240px;
  z-index: 3;
}

.showcase-door-left, .showcase-door-right {
  position: absolute;
  width: 190px;
  opacity: 0.85;
  filter: blur(0.5px);
  transition: all var(--transition-normal);
}

.showcase-door-left {
  left: 20px;
  transform: rotate(-5deg) translateY(20px);
  z-index: 1;
}

.showcase-door-right {
  right: 20px;
  transform: rotate(5deg) translateY(20px);
  z-index: 2;
}

.hero-showcase:hover .showcase-door-left {
  transform: rotate(-8deg) translateX(-15px) translateY(10px);
}

.hero-showcase:hover .showcase-door-right {
  transform: rotate(8deg) translateX(15px) translateY(10px);
}

/* =======================================================
   CATALOG GRID & FULL DOOR IMAGE CARDS
======================================================= */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.door-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  height: 100%;
}

.door-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.door-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 0.85rem;
}

.door-card-code {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 0.5px;
}

.door-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.door-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 1.25rem;
}

.door-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* =======================================================
   FILTERS BAR
======================================================= */
.filter-bar {
  padding: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-categories-pills {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* =======================================================
   INTERACTIVE MAP SECTION (USER REQUIREMENT)
   On tap map: ask "Get direction" or "Contact Us"
======================================================= */
.factory-map-section {
  padding: 4rem 0;
}

.map-wrapper-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
}

.map-embed-container {
  position: relative;
  width: 100%;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--neu-pressed);
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Interactive Tap Overlay */
.map-tap-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 2rem;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.7) 0%, transparent 60%);
  transition: all var(--transition-normal);
}

.map-tap-overlay:hover {
  background: linear-gradient(to top, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.2) 60%);
}

.map-tap-banner {
  background: var(--bg-surface);
  box-shadow: var(--neu-flat);
  border-radius: var(--radius-full);
  padding: 0.85rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1rem;
  color: var(--text-primary);
  transform: translateY(0);
  transition: transform var(--transition-normal);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.map-tap-overlay:hover .map-tap-banner {
  transform: scale(1.05);
}

/* Map Action Modal Options */
.map-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (max-width: 480px) {
  .map-action-grid {
    grid-template-columns: 1fr;
  }
}

.map-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--neu-flat-sm);
  background: var(--bg-surface);
  cursor: pointer;
  text-align: center;
  gap: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: all var(--transition-fast);
}

.map-action-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--neu-flat);
}

.map-action-item:active {
  box-shadow: var(--neu-pressed-sm);
  transform: translateY(1px);
}

.map-action-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* =======================================================
   ESTIMATE CART / QUOTE DRAWER
======================================================= */
.cart-items-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  flex: 1;
  padding-right: 0.5rem;
  margin: 1rem 0;
}

.cart-item-row {
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
}

.cart-item-img {
  width: 75px;
  height: 120px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  background: #dfe6f0;
  box-shadow: var(--neu-pressed-sm);
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

/* =======================================================
   FOOTER
======================================================= */
.site-footer {
  background: var(--bg-surface);
  box-shadow: 0 -8px 24px var(--neu-shadow-dark);
  padding: 3.5rem 0 2rem;
  margin-top: 4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 991px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 28px;
  height: 3px;
  background: var(--primary-gold);
  border-radius: var(--radius-full);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 0.92rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(184, 196, 212, 0.4);
  font-size: 0.85rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* =======================================================
   ADMIN PANEL SPECIFIC LAYOUT & FULL DOOR DISPLAY
======================================================= */
.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  min-height: 100vh;
  padding: 1.5rem;
  box-shadow: 6px 0 18px var(--neu-shadow-dark);
  display: flex;
  flex-direction: column;
}

.admin-content {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}

.admin-door-thumb-cell {
  width: 70px;
  height: 130px;
  object-fit: contain;
  background: #dfe6f0;
  border-radius: var(--radius-xs);
  box-shadow: var(--neu-pressed-sm);
  padding: 4px;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 0.85rem;
}

.admin-table th {
  padding: 0.85rem 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.admin-table td {
  padding: 1rem;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  vertical-align: middle;
}

.admin-table tr td:first-child {
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
}

.admin-table tr td:last-child {
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
}

/* =======================================================
   1. FIRST LOAD CINEMATIC SPLASH PRELOADER (3-5 SECONDS)
   Responsive for Mobile, Tablet, and Desktop
======================================================= */
#rkd-splash-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: radial-gradient(circle at center, #1b2432 0%, #0d121c 70%, #06090e 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s ease, transform 0.8s ease;
  overflow: hidden;
  user-select: none;
}

#rkd-splash-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.04);
  pointer-events: none;
}

.splash-emblem-box {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .splash-emblem-box {
    width: 180px;
    height: 180px;
  }
}

.splash-glow-ring {
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 147, 59, 0.35);
  animation: splashSpin 12s linear infinite;
}

.splash-pulse-circle {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 147, 59, 0.25) 0%, rgba(201, 147, 59, 0) 70%);
  animation: splashPulse 2.4s ease-in-out infinite;
}

.splash-logo-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  background: linear-gradient(145deg, #222d3d, #121824);
  box-shadow: 10px 10px 25px rgba(0,0,0,0.6), -8px -8px 20px rgba(255,255,255,0.05), inset 0 0 15px rgba(201,147,59,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border: 1px solid rgba(201, 147, 59, 0.4);
}

.splash-logo-container picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.splash-logo-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(201, 147, 59, 0.4));
  animation: splashLogoShine 3s ease-in-out infinite;
}

.splash-brand-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 2px;
  color: #ffffff;
  text-align: center;
  margin-bottom: 0.35rem;
}

.splash-brand-title span {
  background: linear-gradient(135deg, #f6d365 0%, #d49e35 50%, #b88126 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 768px) {
  .splash-brand-title {
    font-size: 2.3rem;
  }
}

.splash-subtitle {
  font-size: 0.9rem;
  color: #94a3b8;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 2rem;
  max-width: 480px;
}

.splash-progress-track {
  width: 240px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.25rem;
}

.splash-progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #d49e35, #f59e0b, #fef08a);
  border-radius: 9999px;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.6);
  transition: width 0.2s linear;
}

.splash-loading-status {
  font-size: 0.75rem;
  color: #64748b;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.splash-skip-btn {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #cbd5e1;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.7;
  transition: all 0.2s;
}

.splash-skip-btn:hover {
  opacity: 1;
  background: rgba(201, 147, 59, 0.2);
  border-color: var(--primary-gold);
  color: #ffffff;
}

@keyframes splashSpin {
  100% { transform: rotate(360deg); }
}

@keyframes splashPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.3; }
  50% { transform: scale(1.15); opacity: 0.8; }
}

@keyframes splashLogoShine {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 4px 10px rgba(201, 147, 59, 0.3)); }
  50% { transform: scale(1.03); filter: drop-shadow(0 6px 18px rgba(201, 147, 59, 0.6)); }
}

/* =======================================================
   2. 2D FULLPAGE SLIDER WEBAPP ARCHITECTURE
   Vertical Scroll: Changes Category
   Horizontal Scroll: Changes 5 Images / Slides
======================================================= */
.slider-webapp-container {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg-base);
  touch-action: none; /* Controlled by gesture engine */
}

.slider-vertical-viewport {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.slider-vertical-track {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.slider-category-section {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  flex-shrink: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3.8rem 1rem 1.5rem;
  box-sizing: border-box;
  overflow: hidden;
}

@media (min-width: 992px) {
  .slider-category-section {
    padding: 4.2rem 2.5rem 2rem;
  }
}

/* Category Header Floating Pill */
.category-glass-header {
  position: absolute;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1.25rem;
  background: rgba(230, 236, 244, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid rgba(255, 255, 255, 0.85);
  white-space: nowrap;
  max-width: 92%;
}

.category-glass-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Horizontal Track (5 Slides inside Category - Strictly Centered) */
.horizontal-slider-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.horizontal-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  transition: transform 0.65s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.horizontal-slide-item {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0;
  box-sizing: border-box;
}

/* 2-Column Responsive Slide Layout - Center Aligned */
.slide-grid-layout {
  width: 100%;
  max-width: 1080px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 1.25rem;
  max-height: 100%;
}

@media (min-width: 860px) {
  .slide-grid-layout {
    grid-template-columns: minmax(280px, 350px) 1fr;
    gap: 3.5rem;
    align-items: center;
  }
}

/* Centered Door Showcase Display - Snug Fit, Zero Excess Dead Gap */
.slide-door-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  max-height: min(64vh, 580px);
  position: relative;
  cursor: pointer;
}

/* Mobile Heading at Top of Slide (Above Door Image - User Requirement) */
.slide-mobile-top-heading {
  display: none;
}

@media (max-width: 859px) {
  .slider-category-section {
    padding: 3.2rem 0.5rem 0.35rem;
    height: 100%;
    min-height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  .horizontal-slider-viewport {
    height: 100%;
    display: flex;
    align-items: center;
  }

  .horizontal-slide-item {
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    height: 100% !important;
  }

  .slide-mobile-top-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
    width: 100%;
    z-index: 20;
    flex-shrink: 0;
  }

  .slide-mobile-door-code {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary-gold);
    letter-spacing: 0.5px;
    background: rgba(201, 147, 59, 0.12);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    border: 1px solid rgba(201, 147, 59, 0.25);
  }

  .desktop-only-badge,
  .desktop-only-door-code {
    display: none !important;
  }

  .slide-grid-layout {
    gap: 0.3rem !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
  }

  /* Door Image Moved Upside and Sized for Full Visibility of Action Buttons */
  .slide-door-showcase {
    max-height: min(36vh, 250px) !important;
    height: min(36vh, 250px) !important;
    width: auto !important;
    margin: 0 auto !important;
    flex-shrink: 0 !important;
  }

  .door-aspect-box {
    aspect-ratio: 1 / 2.05 !important;
    max-height: min(36vh, 250px) !important;
    height: 100% !important;
  }

  .slide-details-card {
    padding: 0 0.5rem !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    max-width: 95vw !important;
  }

  .slide-animated-title {
    font-size: 1.05rem !important;
    line-height: 1.25 !important;
    margin: 0.15rem 0 !important;
    max-width: 330px !important;
  }

  .slide-animated-subtitle {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
    max-height: 2.7em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    margin-bottom: 0.35rem !important;
    max-width: 340px !important;
    color: var(--text-secondary) !important;
  }

  .slide-specs-row {
    display: none !important;
  }

  /* Slide Action Buttons Moved Upside and Fully Visible Above Bottom Navigation */
  .slide-action-buttons {
    display: flex !important;
    gap: 0.45rem !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
    width: 100% !important;
    z-index: 20 !important;
  }

  .slide-action-buttons .neu-btn {
    padding: 0.45rem 0.85rem !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .slider-horizontal-dots {
    padding: 0.15rem !important;
    gap: 0.45rem !important;
    margin-top: 0.1rem !important;
  }

  .slide-arrow-btn {
    top: 40% !important; /* Centered with the Door Image on Mobile */
  }
}

.door-aspect-box {
  position: relative;
  height: 100%;
  aspect-ratio: 1 / 2.1;
  max-height: 100%;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 10px 10px 24px var(--neu-shadow-dark), -8px -8px 20px var(--neu-shadow-light);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  overflow: hidden;
}

.door-aspect-box:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 14px 14px 28px var(--neu-shadow-dark), -10px -10px 24px var(--neu-shadow-light);
}

.door-full-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Snug fit - zero top and bottom empty gap */
  object-position: center;
  border-radius: 10px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.12));
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  display: block;
}

/* Fullscreen HD Zoom Badge Button inside Cards & Showcase - Bottom Centered to Never Collide with Top-Right Like Button */
.door-hd-zoom-btn {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.door-hd-zoom-btn:hover {
  background: var(--primary-gold);
  color: #0f172a;
  transform: translateX(-50%) scale(1.06);
}

/* Interactive Navigation Gesture Guide Intro (User Requirement) */
.slider-gesture-guide {
  position: absolute;
  bottom: 4.8rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  pointer-events: auto;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.slider-gesture-guide.fade-out {
  opacity: 0;
  transform: translateX(-50%) translateY(15px);
  pointer-events: none;
}

.guide-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 158, 53, 0.4);
  border-radius: 9999px;
  padding: 0.45rem 1.25rem 0.45rem 1rem;
  color: #f8fafc;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  animation: floatGentle 3s ease-in-out infinite;
}

.guide-arrows {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 1.15rem;
  color: var(--primary-gold);
  font-weight: 800;
}

.guide-arrow-h {
  animation: arrowHorizontal 1.6s ease-in-out infinite;
}

.guide-arrow-v {
  animation: arrowVertical 1.6s ease-in-out infinite;
}

@keyframes arrowHorizontal {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@keyframes arrowVertical {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

.guide-text {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #cbd5e1;
}

.guide-text strong {
  color: #ffffff;
}

.guide-close-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  transition: color 0.2s ease;
}

.guide-close-btn:hover {
  color: #ffffff;
}

@media (max-width: 859px) {
  .slider-gesture-guide {
    bottom: 5rem;
    width: 90%;
    max-width: 340px;
  }
  .guide-content {
    padding: 0.4rem 0.85rem;
  }
  .guide-text {
    font-size: 0.74rem;
  }
}

/* =======================================================
   FULLSCREEN HD IMAGE VIEWER MODAL (USER REQUIREMENT)
   High-definition view with close button top right & loading animation
======================================================= */
.hd-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  box-sizing: border-box;
}

.hd-modal-backdrop.show {
  display: flex;
  opacity: 1;
}

body.hd-modal-open {
  overflow: hidden !important;
}

/* Close Button Top Right (User Requirement) */
.hd-modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100010;
  transition: all 0.2s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hd-modal-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: scale(1.1);
}

/* Loading Animation Indicator */
.hd-modal-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #f8fafc;
  z-index: 100005;
}

.hd-spinner {
  width: 48px;
  height: 48px;
  border: 3.5px solid rgba(212, 158, 53, 0.25);
  border-top-color: var(--primary-gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.hd-loader-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: #cbd5e1;
  letter-spacing: 0.5px;
}

/* HD Content Container */
.hd-modal-content {
  max-width: 92vw;
  max-height: 90vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 100006;
}

.hd-modal-image {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  transition: opacity 0.3s ease, transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

/* Caption bar under HD image */
.hd-modal-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: 650px;
  margin-top: 1rem;
  padding: 0.65rem 1.4rem;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hd-caption-code {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-gold);
  letter-spacing: 1px;
}

.hd-caption-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1px;
}

@media (max-width: 640px) {
  .hd-modal-caption {
    flex-direction: column;
    text-align: center;
    border-radius: 16px;
    padding: 0.75rem 1rem;
    gap: 0.6rem;
  }
}

/* Protective Invisible Shield directly over image */
.door-shield-overlay {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  z-index: 10;
  background: transparent;
  cursor: default;
}

/* Floating Like Button on Door (Top Right to Never Collide with Bottom Centered HD View) */
.door-like-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 30;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(230, 236, 244, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 3px 3px 8px var(--neu-shadow-dark), -3px -3px 8px var(--neu-shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@media (max-width: 480px) {
  .door-like-btn {
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
  }
}

.door-like-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #64748b;
  stroke-width: 2.2;
  transition: all 0.25s ease;
}

.door-like-btn:hover {
  transform: scale(1.12);
  box-shadow: var(--neu-pressed-sm);
}

.door-like-btn.liked {
  background: #fee2e2;
  border-color: #fca5a5;
}

.door-like-btn.liked svg {
  fill: #ef4444;
  stroke: #dc2626;
  animation: heartPulse 0.4s ease;
}

@keyframes heartPulse {
  0% { transform: scale(0.8); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Slide Typography and Interactive Card */
.slide-details-card {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 859px) {
  .slide-details-card {
    text-align: center;
    align-items: center;
    padding: 0 0.5rem;
  }
}

.slide-category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: var(--neu-convex);
  box-shadow: var(--neu-flat-xs);
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
  width: fit-content;
}

.slide-animated-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease 0.15s, transform 0.5s ease 0.15s;
}

@media (min-width: 768px) {
  .slide-animated-title {
    font-size: 2.25rem;
  }
}

.horizontal-slide-item.active .slide-animated-title {
  opacity: 1;
  transform: translateY(0);
}

.slide-animated-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.4rem;
  max-width: 480px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease 0.25s, transform 0.5s ease 0.25s;
}

.horizontal-slide-item.active .slide-animated-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.slide-specs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 859px) {
  .slide-specs-row {
    justify-content: center;
    display: none; /* Hide on small mobile to save space */
  }
}

.slide-action-buttons {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

@media (max-width: 859px) {
  .slide-animated-title {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
  }
  .slide-animated-subtitle {
    font-size: 0.8rem;
    line-height: 1.45;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .slide-action-buttons {
    justify-content: center;
    gap: 0.5rem;
  }
  .slide-action-buttons .neu-btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.84rem !important;
  }
  .slide-category-badge {
    margin-bottom: 0.35rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.7rem;
  }
}

/* =======================================================
   4. NAVIGATION SLIDING DOTS & ARROWS
======================================================= */
/* Vertical Navigation Dots (Right Edge) */
.slider-vertical-dots {
  position: fixed;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 0.75rem 0.5rem;
  background: rgba(230, 236, 244, 0.7);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

@media (max-width: 767px) {
  .slider-vertical-dots {
    right: 0.3rem;
    gap: 0.35rem;
    padding: 0.35rem 0.2rem;
    background: rgba(230, 236, 244, 0.55);
    backdrop-filter: blur(5px);
  }
}

.v-dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #cbd5e1;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.2);
  cursor: pointer;
  position: relative;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

@media (max-width: 767px) {
  .v-dot-btn {
    width: 7px;
    height: 7px;
  }
  .v-dot-btn.active {
    height: 18px !important;
  }
}

.v-dot-btn.active {
  height: 28px;
  border-radius: 9999px;
  background: linear-gradient(180deg, #f59e0b 0%, #c9933b 100%);
  box-shadow: 0 2px 8px rgba(201, 147, 59, 0.5);
}

.v-dot-tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #1e293b;
  color: #f8fafc;
  padding: 0.3rem 0.75rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.v-dot-btn:hover .v-dot-tooltip {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Horizontal Slide Dots (Bottom of Section) */
.slider-horizontal-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.5rem;
  z-index: 40;
}

.h-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #b8c4d4;
  box-shadow: inset 1px 1px 3px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 0;
}

.h-dot-btn.active {
  width: 28px;
  border-radius: 9999px;
  background: var(--primary-gold);
  box-shadow: 0 2px 8px rgba(201, 147, 59, 0.45);
}

/* Desktop Arrow Buttons */
.slide-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.slide-arrow-btn:hover {
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--neu-pressed-sm);
  color: var(--primary-gold);
}

.slide-arrow-prev { left: 1rem; }
.slide-arrow-next { right: 1rem; }

@media (max-width: 767px) {
  .slide-arrow-btn {
    display: flex !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    top: 40% !important; /* Centered with door showcase image on mobile */
    z-index: 60 !important;
    background: rgba(230, 236, 244, 0.92) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-shadow: 2px 2px 8px var(--neu-shadow-dark), -2px -2px 8px var(--neu-shadow-light) !important;
  }
  .slide-arrow-btn svg {
    width: 16px !important;
    height: 16px !important;
  }
  .slide-arrow-prev { left: 0.35rem !important; }
  .slide-arrow-next { right: 0.35rem !important; }
}

/* =======================================================
   5. LIKED DESIGNS DRAWER (OFF-CANVAS & LOCALSTORAGE)
======================================================= */
.liked-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99990 !important;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.liked-drawer-backdrop.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.liked-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  height: 100dvh;
  background: var(--bg-surface);
  box-shadow: -10px 0 30px rgba(0,0,0,0.25);
  z-index: 99999 !important;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.liked-drawer.show {
  transform: translateX(0) !important;
}

.liked-drawer-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(184, 196, 212, 0.4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.liked-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.liked-card-item {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 0.85rem;
  display: grid;
  grid-template-columns: 75px 1fr auto;
  gap: 1rem;
  align-items: center;
}

.liked-card-thumb-frame {
  width: 75px;
  height: 150px;
  aspect-ratio: 1 / 2.5;
  background: #dbe4f0;
  border-radius: 8px;
  box-shadow: var(--neu-pressed-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.liked-card-thumb-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

/* =======================================================
   6. OPTIMIZED FULL CATEGORY-WISE GALLERY (300+ ITEMS)
======================================================= */
.doors-catalog-grid-optimized {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.75rem;
  contain: content;
}

@media (max-width: 500px) {
  .doors-catalog-grid-optimized {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
}

.door-card-full-height {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--neu-flat);
  border: 1px solid rgba(255, 255, 255, 0.8);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
  position: relative;
}

.door-card-full-height:hover {
  transform: translateY(-6px);
  box-shadow: var(--neu-flat-lg);
}

.door-card-1-2-5-container {
  width: 100%;
  aspect-ratio: 1 / 2.05; /* Sleek vertical 1:2.5 architectural door proportion */
  max-height: 480px;
  background: linear-gradient(145deg, #eaf0f8, #d8e3ef);
  border-radius: var(--radius-md);
  box-shadow: var(--neu-pressed-sm);
  padding: 3px;
  position: relative;
  overflow: hidden;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.door-card-1-2-5-container picture {
  width: 100%;
  height: 100%;
  display: block;
}

.door-card-1-2-5-container img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Edge-to-edge door display - zero top and bottom dead gaps */
  object-position: center;
  border-radius: calc(var(--radius-md) - 4px);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.1));
  transition: transform 0.35s ease;
  pointer-events: none;
  display: block;
}

.door-card-1-2-5-container:hover img {
  transform: scale(1.03);
}

/* =======================================================
   CATEGORY SLIDER & SMOOTH SCROLLING TABS (CATALOG.PHP)
======================================================= */
.category-slider-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 2.25rem;
  width: 100%;
}

.category-slider-arrow {
  width: 42px;
  height: 42px;
  min-width: 42px;
  border-radius: 50%;
  background: var(--bg-surface);
  box-shadow: var(--neu-flat-sm);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: all 0.25s ease;
  z-index: 5;
  outline: none;
  flex-shrink: 0;
  user-select: none;
}

.category-slider-arrow:hover {
  box-shadow: var(--neu-pressed-sm);
  color: var(--primary-gold);
  transform: scale(1.06);
}

.category-slider-arrow:active {
  box-shadow: var(--neu-pressed);
  transform: scale(0.94);
}

.category-slider-arrow.is-disabled {
  opacity: 0.22;
  pointer-events: none;
  cursor: default;
  box-shadow: none;
}

.category-slider-track.neu-tabs {
  flex: 1;
  min-width: 0; /* Critical so flex item respects container width & triggers scroll */
  display: flex;
  gap: 0.65rem;
  padding: 0.45rem;
  background: var(--bg-surface);
  border-radius: var(--radius-full);
  box-shadow: var(--neu-pressed-sm);
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.category-slider-track.neu-tabs::-webkit-scrollbar {
  display: none;
}

.category-slider-track.is-dragging {
  cursor: grabbing !important;
  scroll-behavior: auto !important; /* Immediate 1:1 motion without smooth lag */
}

.category-slider-track .neu-tab-item {
  flex-shrink: 0;
  padding: 0.6rem 1.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  white-space: nowrap;
  text-decoration: none;
  transition: all var(--transition-fast);
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  user-select: none;
}

.category-slider-track .neu-tab-item:hover {
  color: var(--text-primary);
}

.category-slider-track .neu-tab-item.active {
  background: var(--bg-surface);
  color: var(--primary-gold);
  box-shadow: var(--neu-flat-xs);
  font-weight: 700;
}

@media (max-width: 640px) {
  .category-slider-arrow {
    width: 34px;
    height: 34px;
    min-width: 34px;
  }
  .category-slider-arrow svg {
    width: 15px;
    height: 15px;
  }
  .category-slider-wrapper {
    gap: 0.4rem;
    margin-bottom: 1.75rem;
  }
  .category-slider-track .neu-tab-item {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
  }
}
