/* Anshuman Enterprises - Ultra-Reliable Mobile Navigation & Responsive Drawer CSS */

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

/* Sticky Header Wrapper */
#ae-sticky-wrap {
  position: sticky;
  top: 0;
  z-index: 10000;
  width: 100%;
}

.ae-nav-desktop-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media (max-width: 868px) {
  .ae-nav-desktop-links {
    display: none !important;
  }
  .ae-search-desktop {
    display: none !important;
  }
  .ae-topbar-contact {
    display: none !important;
  }
}

/* Mobile Hamburger Toggle Button */
#ae-mobile-toggle {
  display: none;
  background: #3D0E14 !important;
  color: #C9A84C !important;
  border: 1px solid #C9A84C !important;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.15s ease, background-color 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

#ae-mobile-toggle:active {
  transform: scale(0.95);
  background: #6B1C23 !important;
}

@media (max-width: 868px) {
  #ae-mobile-toggle {
    display: inline-flex !important;
  }
}

/* Mobile Drawer Full-screen Modal */
#ae-mobile-drawer {
  display: none;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 999999 !important;
  pointer-events: auto;
}

#ae-mobile-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.25s ease;
}

#ae-mobile-drawer.is-active #ae-mobile-backdrop {
  opacity: 1;
}

#ae-mobile-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 82%;
  max-width: 330px;
  background: #FAF7F2;
  box-shadow: -8px 0 25px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 20px;
  z-index: 2;
}

#ae-mobile-drawer.is-active #ae-mobile-panel {
  transform: translateX(0);
}

.ae-mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: #3D0E14;
  font-family: 'Montserrat', 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid rgba(107,28,35,0.08);
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}

.ae-mobile-nav-link:hover, .ae-mobile-nav-link:active {
  background: rgba(201, 168, 76, 0.18);
  color: #6B1C23;
  border-color: #C9A84C;
}

/* Fix Bento Grid on Mobile */
@media (max-width: 768px) {
  .bento-grid {
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
  }
  .bento-grid > div {
    min-height: 180px !important;
    width: 100% !important;
  }
}

/* Modals & Dialogs */
.modal-dialog, [role="dialog"], .quick-enquiry-modal {
  max-width: 92vw !important;
  margin: 20px auto !important;
}

/* ==========================================================================
   FLIPKART / AMAZON STYLE E-COMMERCE PRODUCT GRID SYSTEM
   ========================================================================== */

.category-products-grid, #grid-filtered, .products-grid, .wall-lamps-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
  gap: 20px !important;
  margin-top: 24px !important;
  margin-bottom: 40px !important;
  width: 100% !important;
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Catalog Split Sidebar & Main Area */
.catalog-split-wrapper {
  display: flex !important;
  gap: 30px !important;
  align-items: flex-start !important;
  width: 100% !important;
}

.catalog-sidebar {
  width: 260px !important;
  flex-shrink: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(107, 28, 35, 0.14) !important;
  border-radius: 16px !important;
  padding: 20px !important;
  position: sticky !important;
  top: 100px !important;
  box-shadow: 0 4px 14px rgba(61, 14, 20, 0.05) !important;
}

.catalog-main-content {
  flex-grow: 1 !important;
  width: calc(100% - 290px) !important;
  min-width: 0 !important;
}

/* Product Card Styling */
.prod-static-card, .product-card-custom, .product-card-flipkart {
  background: #ffffff !important;
  border: 1px solid rgba(107, 28, 35, 0.14) !important;
  border-radius: 16px !important;
  padding: 16px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  box-shadow: 0 4px 14px rgba(61, 14, 20, 0.05) !important;
  position: relative !important;
  overflow: hidden !important;
  height: 100% !important;
  box-sizing: border-box !important;
}

.prod-static-card:hover, .product-card-custom:hover {
  transform: translateY(-5px) !important;
  box-shadow: 0 12px 30px rgba(61, 14, 20, 0.15) !important;
  border-color: rgba(201, 168, 76, 0.6) !important;
}

/* Image Wrapper & Image Constriction */
.prod-card-img-wrap {
  position: relative !important;
  width: 100% !important;
  height: 200px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #f8fafc !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #f1f5f9 !important;
}

.prod-card-img {
  max-width: 100% !important;
  max-height: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  transition: transform 0.3s ease !important;
}

.prod-static-card:hover .prod-card-img {
  transform: scale(1.06) !important;
}

/* Badges & Tags */
.prod-card-badge {
  position: absolute !important;
  top: 10px !important;
  left: 10px !important;
  background: #3d0e14 !important;
  color: #c9a84c !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 50px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
  z-index: 2 !important;
}

.prod-card-brand-tags {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-bottom: 6px !important;
}

.prod-card-brand-tag {
  background: #f5ead5 !important;
  color: #6b1c23 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
}

/* Typography & Titles */
.prod-card-title {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #1a1a1a !important;
  margin-bottom: 6px !important;
  line-height: 1.35 !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 40px !important;
}

.prod-card-desc {
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin-bottom: 12px !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  min-height: 36px !important;
}

/* Technical Specs Pills */
.prod-card-specs {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
  background: #f8fafc !important;
  border-radius: 8px !important;
  padding: 8px 10px !important;
  border: 1px solid #e2e8f0 !important;
}

.prod-card-specs li {
  font-size: 11px !important;
  color: #475569 !important;
  margin-bottom: 3px !important;
  display: flex !important;
  justify-content: space-between !important;
}

.prod-card-specs li:last-child {
  margin-bottom: 0 !important;
}

.prod-card-specs li span:first-child {
  font-weight: 600 !important;
  color: #64748b !important;
}

.prod-card-specs li span:last-child {
  font-weight: 700 !important;
  color: #1e293b !important;
}

/* Pricing & Action Buttons */
.prod-card-footer {
  margin-top: auto !important;
}

.prod-card-price-row {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  margin-bottom: 12px !important;
  padding-top: 8px !important;
  border-top: 1px dashed #e2e8f0 !important;
}

.prod-card-price-label {
  font-size: 10px !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
}

.prod-card-price-val {
  font-size: 17px !important;
  font-weight: 800 !important;
  color: #6b1c23 !important;
  font-family: 'DM Mono', monospace !important;
}

.btn-card-rfq {
  flex: 1 !important;
  background: #6b1c23 !important;
  color: #ffffff !important;
  border: 1px solid #6b1c23 !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

.btn-card-rfq:hover {
  background: #8a2530 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(107, 28, 35, 0.25) !important;
}

.btn-card-view {
  background: rgba(201, 168, 76, 0.15) !important;
  color: #6b1c23 !important;
  border: 1px solid #c9a84c !important;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-align: center !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-card-view:hover {
  background: #c9a84c !important;
  color: #111111 !important;
}

/* Mobile & Tablet Responsiveness */
@media (max-width: 900px) {
  .category-products-grid, #grid-filtered, .products-grid, .wall-lamps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    padding: 0 10px !important;
  }

/* ==========================================================================
   DRAGGABLE SEMANTIC AI CHATBOT WIDGET STYLES
   ========================================================================== */

#chatbot-widget-container {
  position: fixed !important;
  bottom: 24px !important;
  left: 24px !important;
  z-index: 99999 !important;
  font-family: 'DM Sans', 'Montserrat', sans-serif !important;
}

#chatbot-bubble {
  width: 54px !important;
  height: 54px !important;
  border-radius: 50% !important;
  background: linear-gradient(135deg, #6b1c23, #3d0e14) !important;
  color: #c9a84c !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 8px 24px rgba(61, 14, 20, 0.4), 0 0 0 3px rgba(201, 168, 76, 0.4) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease !important;
  position: relative !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

#chatbot-bubble:hover {
  transform: scale(1.08) !important;
  box-shadow: 0 12px 32px rgba(61, 14, 20, 0.5), 0 0 0 4px rgba(201, 168, 76, 0.8) !important;
}

#chatbot-bubble span {
  font-size: 28px !important;
}

#chatbot-bubble .chat-badge {
  position: absolute !important;
  top: 2px !important;
  right: 2px !important;
  width: 12px !important;
  height: 12px !important;
  background: #10b981 !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
}

/* Chat Window Modal */
#chatbot-window {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute !important;
  bottom: 68px !important;
  left: 0 !important;
  width: 360px !important;
  max-width: calc(100vw - 32px) !important;
  height: 500px !important;
  max-height: calc(100vh - 100px) !important;
  background: #ffffff !important;
  border: 1px solid rgba(107, 28, 35, 0.18) !important;
  border-radius: 20px !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
  overflow: hidden !important;
  flex-direction: column !important;
  transform: translateY(12px) scale(0.95);
  transform-origin: bottom left;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease !important;
  z-index: 100000 !important;
}

#chatbot-window.open {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateY(0) scale(1) !important;
}

/* Chatbot Header */
.chatbot-header {
  background: linear-gradient(135deg, #3d0e14, #6b1c23) !important;
  color: #ffffff !important;
  padding: 14px 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3) !important;
}

.chatbot-brand-info {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.chatbot-avatar {
  width: 34px !important;
  height: 34px !important;
  border-radius: 50% !important;
  background: #c9a84c !important;
  color: #1a0508 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}

.chatbot-header-text h4 {
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
}

.chatbot-header-text span {
  font-size: 10px !important;
  color: #10b981 !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
}

.chatbot-close-btn {
  background: transparent !important;
  border: none !important;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 24px !important;
  cursor: pointer !important;
  line-height: 1 !important;
  padding: 0 4px !important;
}

.chatbot-close-btn:hover {
  color: #c9a84c !important;
}

/* Messages Area */
.chatbot-messages {
  flex: 1 !important;
  padding: 16px !important;
  overflow-y: auto !important;
  background: #faf7f2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

.chatbot-msg-bubble {
  max-width: 85% !important;
  padding: 12px 14px !important;
  border-radius: 14px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  word-break: break-word !important;
}

.chatbot-msg-bubble.ai {
  background: #ffffff !important;
  color: #1a1a1a !important;
  border: 1px solid rgba(107, 28, 35, 0.1) !important;
  border-bottom-left-radius: 4px !important;
  align-self: flex-start !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

.chatbot-msg-bubble.user {
  background: #6b1c23 !important;
  color: #ffffff !important;
  border-bottom-right-radius: 4px !important;
  align-self: flex-end !important;
}

/* Suggestions Panel */
.chatbot-suggestions {
  padding: 8px 12px !important;
  background: #f0ebe1 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  border-top: 1px solid rgba(107, 28, 35, 0.08) !important;
}

.chatbot-suggest-btn {
  background: #ffffff !important;
  color: #6b1c23 !important;
  border: 1px solid rgba(107, 28, 35, 0.2) !important;
  padding: 5px 10px !important;
  border-radius: 50px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.chatbot-suggest-btn:hover {
  background: #c9a84c !important;
  color: #111111 !important;
  border-color: #c9a84c !important;
}

/* Typing Indicator */
.chatbot-typing {
  display: none;
  padding: 8px 16px !important;
  background: #faf7f2 !important;
  gap: 4px !important;
  align-items: center !important;
}

.chatbot-typing span {
  width: 6px !important;
  height: 6px !important;
  background: #c9a84c !important;
  border-radius: 50% !important;
  animation: typingBounce 1.4s infinite ease-in-out both !important;
}

.chatbot-typing span:nth-child(1) { animation-delay: -0.32s !important; }
.chatbot-typing span:nth-child(2) { animation-delay: -0.16s !important; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* Input Footer */
.chatbot-input-footer {
  padding: 10px 12px !important;
  background: #ffffff !important;
  border-top: 1px solid rgba(107, 28, 35, 0.12) !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

#chatbot-text-input {
  flex: 1 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 50px !important;
  padding: 10px 16px !important;
  font-size: 12.5px !important;
  outline: none !important;
  background: #f8fafc !important;
  color: #1e293b !important;
}

#chatbot-text-input:focus {
  border-color: #c9a84c !important;
  background: #ffffff !important;
}

.chatbot-send-btn {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #6b1c23 !important;
  color: #ffffff !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background 0.2s ease !important;
}

.chatbot-send-btn:hover {
  background: #8a2530 !important;
}

.chatbot-send-btn span {
  font-size: 18px !important;
}
  .prod-static-card {
    padding: 12px !important;
  }
  .prod-card-img-wrap {
    height: 160px !important;
  }
}

@media (max-width: 480px) {
  .category-products-grid, #grid-filtered, .products-grid, .wall-lamps-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 0 6px !important;
  }
  .prod-card-title {
    font-size: 13px !important;
    min-height: 34px !important;
  }
  .prod-card-price-val {
    font-size: 14px !important;
  }
  .btn-card-rfq, .btn-card-view {
    padding: 7px 6px !important;
    font-size: 11px !important;
  }
}

/* ==========================================================================
   MASTER NON-OVERLAPPING FLOATING ACTION BUTTONS & CHATBOT LAYOUT
   ========================================================================== */

.floating-cta, .floating-btns {
  position: fixed !important;
  bottom: 24px !important;
  right: 20px !important;
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center !important;
  gap: 12px !important;
  z-index: 99990 !important;
  pointer-events: auto !important;
}

.fab-wa, .fab-review, .fab-whatsapp, .fab-call, .fab-top, .fab {
  position: relative !important;
  bottom: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

#quote-cart-badge {
  position: fixed !important;
  bottom: 24px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 99980 !important;
}

@media (max-width: 768px) {
  .floating-cta, .floating-btns {
    bottom: 76px !important;
    right: 14px !important;
    gap: 10px !important;
  }
  .fab-wa, .fab-review, .fab {
    width: 46px !important;
    height: 46px !important;
  }
  #chatbot-widget-container {
    bottom: 76px !important;
    left: 14px !important;
  }
  #chatbot-window {
    width: calc(100vw - 28px) !important;
    max-height: calc(100vh - 120px) !important;
    bottom: 68px !important;
    left: 0 !important;
  }
}

/* ==========================================================================
   MASTER RESPONSIVE FOOTER GRID STRUCTURE
   ========================================================================== */

@media (min-width: 1025px) {
  .footer-grid, footer .footer-grid, .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1.2fr 1.2fr 1.5fr !important;
    gap: 36px !important;
    max-width: 1360px !important;
    margin: 0 auto 36px !important;
    width: 100% !important;
    align-items: start !important;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .footer-grid, footer .footer-grid, .site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 32px !important;
    width: 100% !important;
  }
  .footer-brand, .footer-col:first-child {
    grid-column: span 2 !important;
  }
}

@media (max-width: 600px) {
  .footer-grid, footer .footer-grid, .site-footer .footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   PREMIUM POPUP OVERLAY MODALS (SUBCATEGORY & PRODUCT SPECIFICATIONS)
   ========================================================================== */

.premium-popup-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(15, 5, 8, 0.72) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 100050 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.3s ease, visibility 0.3s ease !important;
}

.premium-popup-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.premium-popup-overlay.active .premium-popup-content {
  transform: scale(1) translateY(0) !important;
}

.premium-popup-content {
  transform: scale(0.92) translateY(12px);
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.float-quote {
  position: fixed !important;
  bottom: 145px !important;
  right: 20px !important;
  z-index: 99985 !important;
}

