/*
Theme Name: Railingo
Theme URI: https://railingo.com
Author: Accelaronix
Author URI: http://accelaronix.com/
Description: Railingo - Luxury Parametric Metal Facades, Architectural Railings, Gates, Doors & Automation Astra Child Theme.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: railingo
Template: astra
*/

/* Disable Astra container overflow that breaks GSAP ScrollTrigger Pinning */
html, body {
  overflow-x: hidden !important;
  height: auto !important;
}
#page, .site, #content, .site-content, .ast-container, .ast-single-post {
  overflow: visible !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  filter: none !important;
}
.hero-gate-panel {
  background-color: #0d0d0d !important;
  z-index: 15 !important;
}
/* WordPress Admin Bar Header Offset */
.admin-bar #navbar {
  top: 32px !important;
}
@media screen and (max-width: 782px) {
  .admin-bar #navbar {
    top: 46px !important;
  }
}

/* CSS Variables for Light / Dark Themes */
:root {
  --bg-darker: #020202;
  --bg-dark: #050505;
  --bg-gray: #121212;
  --bg-light-gray: #242424;
  --text-primary: #ffffff;
  --text-muted: #9ca3af;
  --border-color: rgba(255, 255, 255, 0.04);
  --border-btn: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(255, 255, 255, 0.03);
}

body.light-mode {
  --bg-darker: #f9f9f9;
  --bg-dark: #ffffff;
  --bg-gray: #f3f4f6;
  --bg-light-gray: #e5e7eb;
  --text-primary: #111827;
  --text-muted: #4b5563;
  --border-color: rgba(0, 0, 0, 0.06);
  --border-btn: rgba(0, 0, 0, 0.12);
  --card-bg: rgba(0, 0, 0, 0.02);
  
  background-color: var(--bg-darker);
  color: var(--text-muted);
}

/* Light Mode Overrides */
body.light-mode .text-white:not(#hero-gsap):not(#hero-gsap *):not(.absolute *):not(.menu-preview-card *):not(.slider-knob *):not(.slider-btn *):not(#product-grid):not(#product-grid *):not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#railings-hero):not(#railings-hero *):not(#gates-hero):not(#gates-hero *):not(#garage-hero):not(#garage-hero *):not(#pergolas-hero):not(#pergolas-hero *):not(#automation-hero):not(#automation-hero *):not(#product-hero):not(#product-hero *):not(#menu-drawer):not(#menu-drawer *) {
  color: #111827 !important;
}
body.light-mode .text-gray-300:not(#hero-gsap):not(#hero-gsap *):not(.absolute *):not(.menu-preview-card *):not(.slider-knob *):not(.slider-btn *):not(#product-grid):not(#product-grid *):not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#railings-hero):not(#railings-hero *):not(#gates-hero):not(#gates-hero *):not(#garage-hero):not(#garage-hero *):not(#pergolas-hero):not(#pergolas-hero *):not(#automation-hero):not(#automation-hero *):not(#product-hero):not(#product-hero *):not(#menu-drawer):not(#menu-drawer *) {
  color: #374151 !important;
}
body.light-mode .text-gray-400:not(#hero-gsap):not(#hero-gsap *):not(.absolute *):not(.menu-preview-card *):not(.slider-knob *):not(.slider-btn *):not(#product-grid):not(#product-grid *):not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#railings-hero):not(#railings-hero *):not(#gates-hero):not(#gates-hero *):not(#garage-hero):not(#garage-hero *):not(#pergolas-hero):not(#pergolas-hero *):not(#automation-hero):not(#automation-hero *):not(#product-hero):not(#product-hero *):not(#menu-drawer):not(#menu-drawer *) {
  color: #4b5563 !important;
}
body.light-mode .text-gray-500:not(#hero-gsap):not(#hero-gsap *):not(.absolute *):not(.menu-preview-card *):not(.slider-knob *):not(.slider-btn *):not(.menu-tab-link *):not(#product-grid):not(#product-grid *):not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#menu-drawer):not(#menu-drawer *) {
  color: #6b7280 !important;
}
body.light-mode .bg-\[\#020202\],
body.light-mode .bg-black:not(#product-grid):not(#product-grid *):not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#product-hero):not(#product-hero *):not(#menu-drawer):not(#menu-drawer *),
body.light-mode .bg-\[\#0a0a0a\] {
  background-color: #f9f9f9 !important;
}
body.light-mode .bg-\[\#050505\],
body.light-mode .bg-brandDark:not(#facades-hero):not(#facades-hero *):not(#hero-gsap):not(#hero-gsap *):not(#doors-hero):not(#doors-hero *):not(#product-hero):not(#product-hero *):not(#brochures):not(#brochures *) {
  background-color: #ffffff !important;
}
body.light-mode .bg-\[\#121212\]:not(#text-reviews):not(#text-reviews *):not(#menu-drawer):not(#menu-drawer *),
body.light-mode .bg-brandGray:not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#menu-drawer):not(#menu-drawer *) {
  background-color: #f3f4f6 !important;
}
body.light-mode .border-white\/\[0\.04\]:not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#menu-drawer):not(#menu-drawer *),
body.light-mode .border-white\/5:not(#brochures):not(#brochures *):not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#menu-drawer):not(#menu-drawer *),
body.light-mode .border-white\/10:not(footer *):not(#text-reviews):not(#text-reviews *):not(#video-showcase):not(#video-showcase *):not(#facades-hero):not(#facades-hero *):not(#doors-hero):not(#doors-hero *):not(#menu-drawer):not(#menu-drawer *) {
  border-color: rgba(0, 0, 0, 0.08) !important;
}

body.light-mode #hero-gsap { --bg-dark: #050505; --bg-gray: #121212; }
body.light-mode #brochures { --bg-dark: #050505; --bg-gray: #121212; }
body.light-mode #hero-gsap.bg-\[\#050505\] { background-color: #050505 !important; }

body.light-mode .text-\[\#cda274\],
body.light-mode #category-tabs .active-category-tab {
  color: #b58253 !important;
}
body.light-mode #category-tabs button {
  border-color: rgba(0, 0, 0, 0.08) !important;
}
body.light-mode #category-tabs button.active-category-tab {
  background: rgba(181, 130, 83, 0.08) !important;
  border-color: #b58253 !important;
  color: #b58253 !important;
}

body.light-mode .slider-btn:not(#video-showcase):not(#video-showcase *) {
  background-color: rgba(240, 240, 240, 0.8) !important;
  border-color: rgba(0, 0, 0, 0.1) !important;
}
body.light-mode .slider-btn:not(#video-showcase):not(#video-showcase *) .slider-text-right {
  color: #111827 !important;
}
body.light-mode .slider-btn:not(#video-showcase):not(#video-showcase *):hover .slider-text-left {
  color: #000000 !important;
}
body.light-mode .slider-btn:not(#video-showcase):not(#video-showcase *) .slider-knob {
  border-color: rgba(0, 0, 0, 0.25) !important;
}
body.light-mode .slider-btn:not(#video-showcase):not(#video-showcase *) .slider-knob-bar {
  background-color: #111827 !important;
}

body.light-mode .glass-card {
  background: rgba(0, 0, 0, 0.02) !important;
  border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .text-gray-500 {
  color: #4b5563 !important;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #242424;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a3a3a;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Glassmorphism Classes */
.glass-header {
  background: rgba(5, 5, 5, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

#theme-toggle, #theme-toggle-icon {
  color: #ffffff !important;
}
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.glass-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

/* Neon Text Glow */
.neon-text {
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.1),
               0 0 10px rgba(255, 255, 255, 0.15),
               0 0 20px rgba(255, 255, 255, 0.25);
}
.neon-text-green {
  text-shadow: 0 0 5px rgba(34, 197, 94, 0.2),
               0 0 10px rgba(34, 197, 94, 0.4),
               0 0 20px rgba(34, 197, 94, 0.6);
}

/* 3D Book Animation */
.book-container {
  perspective: 1000px;
}
.book {
  transform: rotateY(-20deg) rotateX(10deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 10px 10px 30px rgba(0,0,0,0.5);
}
.book-container:hover .book {
  transform: rotateY(-5deg) rotateX(5deg) scale(1.03);
  box-shadow: 15px 15px 40px rgba(0,0,0,0.6);
}
.book-spine {
  transform: rotateY(-90deg) translateZ(12px);
  background: #111111;
}

/* Architectural background grid lines for menu */
.menu-grid-bg {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.01) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.01) 1px, transparent 1px);
  background-size: 80px 80px;
}

/* Interactive Mouse Radial Glow for menu drawer */
#menu-drawer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 350px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.025), transparent);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

/* Staggered Nav Links Entrance */
#menu-drawer .menu-tab-link {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}
#menu-drawer.menu-active .menu-tab-link {
  opacity: 1;
  transform: translateY(0);
}
#menu-drawer.menu-active .menu-tab-link:nth-child(1) { transition-delay: 80ms; }
#menu-drawer.menu-active .menu-tab-link:nth-child(2) { transition-delay: 140ms; }
#menu-drawer.menu-active .menu-tab-link:nth-child(3) { transition-delay: 200ms; }
#menu-drawer.menu-active .menu-tab-link:nth-child(4) { transition-delay: 260ms; }

#menu-drawer #menu-display-title,
#menu-drawer #menu-display-desc,
#menu-drawer #menu-cards-container > *,
#menu-drawer .flex.flex-wrap {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
#menu-drawer.menu-active #menu-display-title { opacity: 1; transform: translateY(0); transition-delay: 150ms; }
#menu-drawer.menu-active #menu-display-desc { opacity: 1; transform: translateY(0); transition-delay: 200ms; }
#menu-drawer.menu-active #menu-cards-container > * { opacity: 1; transform: translateY(0); }
#menu-drawer.menu-active #menu-cards-container > *:nth-child(1) { transition-delay: 250ms; }
#menu-drawer.menu-active #menu-cards-container > *:nth-child(2) { transition-delay: 320ms; }
#menu-drawer.menu-active #menu-cards-container > *:nth-child(3) { transition-delay: 390ms; }
#menu-drawer.menu-active .flex.flex-wrap { opacity: 1; transform: translateY(0); transition-delay: 450ms; }

/* Gate Opening Hover Effect for Buttons */
.gate-btn {
  position: relative;
  display: inline-block;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: transparent;
  transition: border-color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  vertical-align: middle;
  text-align: center;
}
.gate-btn::before,
.gate-btn::after {
  content: "";
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  background: #ffffff;
  transition: transform 0.95s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}
.gate-btn::before { left: 0; transform: translateX(0); }
.gate-btn::after { right: 0; transform: translateX(0); }
.gate-btn:hover::before { transform: translateX(-102%); }
.gate-btn:hover::after { transform: translateX(102%); }
.gate-btn:hover { border-color: rgba(255, 255, 255, 0.4); }
.gate-btn-text {
  position: relative;
  z-index: 10;
  color: #050505;
  transition: color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}
.gate-btn:hover .gate-btn-text { color: #ffffff; }

/* Slider Button (Toggle Style) */
.slider-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 54px;
  width: 220px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background-color: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(12px);
  padding: 6px;
  overflow: hidden;
  cursor: pointer;
  user-select: none;
  transition: border-color 1.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  vertical-align: middle;
}
.slider-btn:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background-color: rgba(5, 5, 5, 0.85);
}
.slider-knob {
  position: absolute;
  left: 6px;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  background-color: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.slider-knob-bar {
  width: 4px;
  height: 16px;
  border-radius: 9999px;
  background-color: #ffffff;
  transition: background-color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.slider-text-left,
.slider-text-right {
  position: absolute;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #ffffff;
  transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1), color 1.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  white-space: nowrap;
  pointer-events: none;
}
.slider-text-left {
  left: 24px;
  opacity: 0;
  transform: translateX(12px);
}
.slider-text-right {
  right: 24px;
  opacity: 1;
  transform: translateX(0);
}
.slider-btn:hover .slider-knob {
  transform: translateX(168px);
  background-color: #ffffff;
}
.slider-btn:hover .slider-knob-bar {
  background-color: #000000;
}
.slider-btn:hover .slider-text-left {
  opacity: 1;
  transform: translateX(0);
}
.slider-btn:hover .slider-text-right {
  opacity: 0;
  transform: translateX(-12px);
}

.slider-btn-wide { width: 260px; }
.slider-btn-wide .slider-text-left { left: 28px; }
.slider-btn-wide .slider-text-right { right: 28px; }
.slider-btn-wide:hover .slider-knob {
  transform: translateX(208px);
  background-color: #ffffff;
}
.slider-btn-wide:hover .slider-knob-bar { background-color: #000000; }

.slider-btn-gold { border-color: rgba(205, 162, 116, 0.35); }
.slider-btn-gold:hover { border-color: rgba(205, 162, 116, 0.8); }
.slider-btn-gold .slider-knob { border-color: rgba(205, 162, 116, 0.9); }
.slider-btn-gold .slider-knob-bar { background-color: #cda274; }
.slider-btn-gold:hover .slider-knob {
  background-color: #cda274;
  border-color: #cda274;
}
.slider-btn-gold:hover .slider-knob-bar { background-color: #000000; }
.slider-btn-gold .slider-text-left,
.slider-btn-gold .slider-text-right { color: #cda274; }
.slider-btn-gold:hover .slider-text-left { color: #ffffff; }

/* Sliding Gate Menu Button */
.door-icon-container {
  position: relative;
  width: 24px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
}
.door-panel {
  position: absolute;
  top: 0;
  width: 11px;
  height: 100%;
  border: 1.5px solid #ffffff;
  background: rgba(255, 255, 255, 0.08);
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.5s ease;
  box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.05);
  z-index: 1;
}
.door-left { left: 0; border-right-width: 0.5px; }
.door-right { right: 0; border-left-width: 0.5px; }
.door-left::after {
  content: "";
  position: absolute;
  right: 1.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  transition: background-color 0.5s ease;
}
.door-right::after {
  content: "";
  position: absolute;
  left: 1.5px;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5px;
  height: 2.5px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 2px rgba(255, 255, 255, 0.8);
  transition: background-color 0.5s ease;
}
.door-close-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 0;
}
.door-close-line {
  position: absolute;
  width: 14px;
  height: 1.5px;
  background: #ffffff;
  opacity: 0;
  transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}
.door-close-line-1 { transform: rotate(45deg) scale(0.6); }
.door-close-line-2 { transform: rotate(-45deg) scale(0.6); }

#menu-btn:hover:not(.menu-active) .door-left {
  transform: translateX(-3px);
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}
#menu-btn:hover:not(.menu-active) .door-right {
  transform: translateX(3px);
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}
#menu-btn.menu-active .door-left {
  transform: translateX(-16px);
  opacity: 0;
}
#menu-btn.menu-active .door-right {
  transform: translateX(16px);
  opacity: 0;
}
#menu-btn.menu-active .door-close-line-1 {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}
#menu-btn.menu-active .door-close-line-2 {
  transform: rotate(-45deg) scale(1);
  opacity: 1;
}

/* Custom Transitions */
.fade-slide {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-slide.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cinematic Hero Styles */
#hero-gsap {
  opacity: 0;
  will-change: opacity;
}
.hero-video-container {
  will-change: transform, filter;
}
.hero-heading,
.hero-subheading {
  will-change: transform, opacity;
}
.hero-gate-panel {
  will-change: transform;
  background-color: #121212;
}

/* Shutter Metal Texture */
.shutter-metal-bg {
  background: repeating-linear-gradient(
    to right,
    #1c1c1c,
    #1c1c1c 16px,
    #121212 17px,
    #0a0a0a 18px
  );
  border-top: 1.5px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 20px 45px rgba(0, 0, 0, 0.95);
  will-change: transform;
}

/* WhatsApp Pulse Animation */
@keyframes whatsappPulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  70% { box-shadow: 0 0 0 15px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* Permanently Hide Astra Scroll to Top Button */
#ast-scroll-top,
.ast-scroll-to-top-wrap,
#ast-scroll-top-icon,
.ast-scroll-top-icon,
#scroll-to-top,
.scroll-to-top {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* ==========================================================================
   Astra Button Overrides & Luxury Mega Menu Design System
   ========================================================================== */

/* 1. Kill Astra Global Blue on All Navbar & Menu Drawer Buttons */
#navbar button,
#navbar button:hover,
#navbar button:focus,
#navbar button:active,
#menu-btn,
#menu-btn:hover,
#menu-btn:focus,
#menu-btn:active,
#theme-toggle,
#theme-toggle:hover,
#theme-toggle:focus,
#theme-toggle:active,
#menu-drawer button,
#menu-drawer button:hover,
#menu-drawer button:focus,
#menu-drawer button:active,
.menu-tab-link,
.menu-tab-link:hover,
.menu-tab-link:focus,
.menu-tab-link:active {
  background: transparent !important;
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  color: inherit !important;
  -webkit-tap-highlight-color: transparent;
}

/* 2. Navbar Menu Toggle Button */
#menu-btn {
  background: transparent !important;
}
#menu-btn:hover span {
  color: #ffffff !important;
}
#menu-btn:hover .door-icon-container {
  border-color: rgba(205, 162, 116, 0.4) !important;
}

/* 3. Mega Menu Tab Links */
.menu-tab-link {
  position: relative;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 0.5rem !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.menu-tab-link:hover {
  background: rgba(205, 162, 116, 0.08) !important;
  border-bottom-color: rgba(205, 162, 116, 0.25) !important;
}
.menu-tab-link.active-tab {
  background: rgba(205, 162, 116, 0.14) !important;
  border-bottom-color: #cda274 !important;
}
.menu-tab-link:hover .tab-title,
.menu-tab-link.active-tab .tab-title {
  color: #ffffff !important;
}
.menu-tab-link:hover .tab-arrow,
.menu-tab-link.active-tab .tab-arrow {
  color: #cda274 !important;
  transform: translateX(4px) !important;
}

/* 4. Light Mode Mega Menu Styles */
body.light-mode #menu-drawer {
  background-color: rgba(246, 246, 246, 0.98) !important;
}
body.light-mode #menu-drawer h2,
body.light-mode #menu-drawer h2 span,
body.light-mode #menu-drawer h4 {
  color: #111827 !important;
}
body.light-mode #menu-drawer p {
  color: #4b5563 !important;
}
body.light-mode .menu-tab-link {
  border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .menu-tab-link:hover {
  background: rgba(205, 162, 116, 0.12) !important;
}
body.light-mode .menu-tab-link.active-tab {
  background: rgba(205, 162, 116, 0.2) !important;
  border-bottom-color: #cda274 !important;
}
body.light-mode .menu-tab-link .tab-title {
  color: #4b5563 !important;
}
body.light-mode .menu-tab-link:hover .tab-title,
body.light-mode .menu-tab-link.active-tab .tab-title {
  color: #111827 !important;
}

/* 5. Responsive height optimization for 1366x768 / 1440x900 screens */
@media screen and (max-height: 850px) {
  #menu-drawer {
    padding-top: 5rem !important;
    padding-bottom: 2rem !important;
  }
  .menu-preview-card {
    max-height: 260px !important;
  }
  .menu-tab-link {
    padding-top: 0.35rem !important;
    padding-bottom: 0.35rem !important;
  }
}

/* ==========================================================================
   Luxury Unified Footer Newsletter Form
   ========================================================================== */
.footer-newsletter-form {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 420px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 9999px !important;
  padding: 4px 5px 4px 16px !important;
  margin-top: 8px !important;
  transition: all 0.3s ease !important;
  backdrop-filter: blur(12px) !important;
  box-sizing: border-box !important;
}

.footer-newsletter-form:focus-within {
  border-color: #cda274 !important;
  background: rgba(255, 255, 255, 0.07) !important;
  box-shadow: 0 0 25px rgba(205, 162, 116, 0.18) !important;
}

.footer-newsletter-input,
input.footer-newsletter-input,
input[type="email"].footer-newsletter-input {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 300 !important;
  padding: 8px 10px 8px 0 !important;
  margin: 0 !important;
  height: 38px !important;
  width: 100% !important;
  flex: 1 1 auto !important;
}

.footer-newsletter-input:focus,
input.footer-newsletter-input:focus {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
  color: #ffffff !important;
}

.footer-newsletter-input::placeholder {
  color: #6b7280 !important;
  font-size: 0.8125rem !important;
}

.footer-newsletter-btn,
button.footer-newsletter-btn {
  background: #cda274 !important;
  background-color: #cda274 !important;
  color: #0d0d0d !important;
  border: none !important;
  border-radius: 9999px !important;
  padding: 8px 20px !important;
  height: 36px !important;
  font-size: 0.725rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 2px 10px rgba(205, 162, 116, 0.25) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}

.footer-newsletter-btn:hover {
  background: #dfb582 !important;
  background-color: #dfb582 !important;
  color: #000000 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 16px rgba(205, 162, 116, 0.45) !important;
}

body.light-mode .footer-newsletter-form {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
}
body.light-mode .footer-newsletter-input {
  color: #111827 !important;
}

/* ==========================================================================
   WooCommerce Single Product Clean Full-Width Canvas Overrides
   ========================================================================== */
.single-product #primary,
.single-product #main,
.single-product .site-content,
.single-product .ast-container,
.single-product .ast-woocommerce-container,
.single-product .entry-content,
.single-product .ast-article-single,
.single-product .site-main {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  background: #050505 !important;
  border: none !important;
  box-shadow: none !important;
}

#logo-img {
  max-height: 44px !important;
  width: auto !important;
  object-fit: contain !important;
}

.single-product .entry-header,
.single-product .ast-single-post-order,
.single-product .ast-breadcrumbs-wrapper,
.single-product .sidebar-main,
.single-product #secondary,
.single-product .ast-archive-description,
.single-product .woocommerce-products-header {
  display: none !important;
}