/* ===================================================================
   AFDASS PERFUMES — Luxury Off-Canvas Mobile Navigation Drawer
   Guaranteed bulletproof responsive slide drawer & frosted backdrop
   =================================================================== */

/* Backdrop Overlay */
.drawer-backdrop {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: rgba(19, 8, 4, 0.88) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99998 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.drawer-backdrop.active {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Off-Canvas Luxury Floating Drawer */
.mobile-drawer {
  position: fixed !important;
  top: 14px !important;
  right: 14px !important;
  bottom: auto !important;
  left: auto !important;
  width: calc(100vw - 28px) !important;
  max-width: 335px !important;
  height: auto !important;
  max-height: calc(100dvh - 28px) !important;
  background: linear-gradient(168deg, rgba(34, 18, 10, 0.97) 0%, rgba(18, 9, 4, 0.98) 55%, rgba(10, 5, 2, 0.99) 100%) !important;
  backdrop-filter: blur(24px) saturate(170%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(170%) !important;
  border: 1px solid rgba(222, 166, 95, 0.42) !important;
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(222, 166, 95, 0.12), inset 0 1px 1px rgba(255, 235, 195, 0.25) !important;
  z-index: 99999 !important;
  padding: 1.35rem 1.3rem 1.45rem 1.3rem !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  transform: translateX(115%) scale(0.96) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.38s !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  margin: 0 !important;
}

.mobile-drawer.active {
  transform: translateX(0) scale(1) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Drawer Header */
.drawer-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 0.95rem !important;
  border-bottom: 1px solid rgba(222, 166, 95, 0.2) !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.drawer-logo {
  height: 38px !important;
  width: auto !important;
  max-width: 120px !important;
  object-fit: contain !important;
  display: block !important;
  filter: drop-shadow(0 2px 8px rgba(222, 166, 95, 0.35)) !important;
}

/* Close Button Reset & Fancy Luxury Styling */
.drawer-close {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  min-height: 36px !important;
  border-radius: 50% !important;
  background: rgba(222, 166, 95, 0.08) !important;
  border: 1px solid rgba(222, 166, 95, 0.35) !important;
  color: #dea65f !important;
  font-size: 1.45rem !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  outline: none !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.drawer-close:hover,
.drawer-close:active {
  background: rgba(222, 166, 95, 0.25) !important;
  color: #ffffff !important;
  border-color: #f7dfbe !important;
  transform: rotate(90deg) scale(1.08) !important;
  box-shadow: 0 0 15px rgba(222, 166, 95, 0.4) !important;
}

/* Fancy Nav Link List */
.mobile-nav-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  flex: 1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-bottom: 1rem !important;
}

.mobile-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.8rem 1rem !important;
  color: #f0ebe4 !important;
  text-decoration: none !important;
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif !important;
  font-size: 1.05rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.04em !important;
  border: 1px solid rgba(222, 166, 95, 0.14) !important;
  background: rgba(255, 255, 255, 0.02) !important;
  border-radius: 12px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-sizing: border-box !important;
  position: relative !important;
  overflow: hidden !important;
}

/* Luxury circular trailing arrow */
.mobile-link::after {
  content: '→' !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  color: rgba(222, 166, 95, 0.6) !important;
  background: rgba(222, 166, 95, 0.08) !important;
  border: 1px solid rgba(222, 166, 95, 0.2) !important;
  width: 26px !important;
  height: 26px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.mobile-link:hover {
  color: #ffffff !important;
  background: rgba(222, 166, 95, 0.1) !important;
  border-color: rgba(222, 166, 95, 0.4) !important;
  transform: translateX(-2px) !important;
}

.mobile-link:hover::after {
  color: #1a0e07 !important;
  background: linear-gradient(135deg, #fcead2 0%, #dea65f 100%) !important;
  border-color: #dea65f !important;
  transform: scale(1.1) !important;
}

/* Active Link State */
.mobile-link.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, rgba(222, 166, 95, 0.2) 0%, rgba(184, 125, 59, 0.1) 100%) !important;
  border-color: rgba(222, 166, 95, 0.55) !important;
  box-shadow: 0 4px 18px rgba(222, 166, 95, 0.15), inset 0 1px 0 rgba(255, 235, 195, 0.25) !important;
}

.mobile-link.active::before {
  content: '' !important;
  width: 4px !important;
  height: 18px !important;
  background: linear-gradient(180deg, #ffe0b3 0%, #dea65f 100%) !important;
  border-radius: 2px !important;
  position: absolute !important;
  left: 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  box-shadow: 0 0 10px rgba(222, 166, 95, 0.8) !important;
}

.mobile-link.active::after {
  color: #1a0e07 !important;
  background: linear-gradient(135deg, #ffe0b3 0%, #dea65f 100%) !important;
  border-color: #ffe0b3 !important;
  box-shadow: 0 0 10px rgba(222, 166, 95, 0.5) !important;
}

/* Drawer CTA Footer */
.drawer-cta {
  margin-top: auto !important;
  padding-top: 0.95rem !important;
  border-top: 1px solid rgba(222, 166, 95, 0.2) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.65rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.drawer-wa-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.65rem !important;
  background: linear-gradient(135deg, #182e22 0%, #0d1e15 100%) !important;
  border: 1px solid rgba(37, 211, 102, 0.45) !important;
  color: #f7dfbe !important;
  text-decoration: none !important;
  padding: 0.82rem 1.15rem !important;
  border-radius: 14px !important;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(37, 211, 102, 0.15) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.drawer-wa-btn:hover,
.drawer-wa-btn:active {
  background: linear-gradient(135deg, #203f2e 0%, #12281c 100%) !important;
  border-color: #25d366 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.25) !important;
  transform: translateY(-1px) !important;
}

/* Explicit WhatsApp SVG Sizing */
.drawer-wa-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  max-width: 18px !important;
  min-height: 18px !important;
  max-height: 18px !important;
  fill: #25d366 !important;
  flex-shrink: 0 !important;
  display: block !important;
  filter: drop-shadow(0 0 4px rgba(37, 211, 102, 0.6)) !important;
}

.drawer-tagline {
  text-align: center !important;
  font-family: 'Cinzel', 'Cormorant Garamond', Georgia, serif !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  color: rgba(222, 166, 95, 0.7) !important;
  margin: 0 !important;
}

/* Mobile Toggle Hamburger Icon */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 6px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  transition: all 0.25s ease;
}

@media (max-width: 1024px) {
  .mobile-toggle {
    display: flex !important;
  }
}

/* ===================================================================
   FOOTER ACCORDION & MOBILE CENTERING
   =================================================================== */

/* Desktop defaults: Accordion icon hidden, lists always visible */
.footer-accordion-icon {
  display: none;
}

@media (max-width: 768px) {
  /* 1. Center the Brand Logo */
  .brand-col {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 100% !important;
    text-align: center !important;
    padding-bottom: 1.5rem !important;
    margin-bottom: 0.5rem !important;
    border-bottom: 1px solid rgba(222, 166, 95, 0.16) !important;
  }

  .footer-logo-link {
    display: inline-flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto !important;
  }

  .footer-logo-img {
    height: 110px !important;
    max-width: 150px !important;
    margin: 0 auto !important;
  }

  /* 2. Footer Main Grid: Stacked single column with clean borders */
  .footer-main-grid {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding-bottom: 1.8rem !important;
    border-bottom: 1px solid rgba(222, 166, 95, 0.16) !important;
  }

  /* Remove desktop padding/border from Follow Us column */
  .follow-col {
    padding-left: 0 !important;
    border-left: none !important;
  }

  /* 3. Accordion Column Dividers & Toggles */
  .footer-accordion-col {
    border-bottom: 1px solid rgba(222, 166, 95, 0.12);
  }

  .footer-accordion-col:last-child {
    border-bottom: none;
  }

  .footer-accordion-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    padding: 1.1rem 0.2rem !important;
    margin: 0 !important;
    cursor: pointer !important;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    font-size: 1.02rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    transition: color 0.25s ease;
  }

  .footer-accordion-col.active .footer-accordion-toggle {
    color: #dea65f !important;
  }

  /* Chevron Dropdown Arrow */
  .footer-accordion-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    color: #dea65f !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .footer-accordion-icon svg {
    width: 16px !important;
    height: 16px !important;
    stroke: currentColor !important;
  }

  .footer-accordion-col.active .footer-accordion-icon {
    transform: rotate(180deg) !important;
  }

  /* Collapsible Content Area (Links List & Social Row) */
  .footer-accordion-col .footer-links-list,
  .footer-accordion-col .footer-accordion-content {
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, padding 0.3s ease !important;
  }

  .footer-accordion-col.active .footer-links-list,
  .footer-accordion-col.active .footer-accordion-content {
    max-height: 320px !important;
    opacity: 1 !important;
    padding-bottom: 1.15rem !important;
  }

  .footer-links-list li {
    padding: 0.32rem 0;
  }

  .footer-link {
    font-size: 0.94rem !important;
    color: #b5ada1 !important;
    padding: 0.2rem 0;
    display: inline-block;
  }

  .footer-link:hover {
    color: #dea65f !important;
  }

  .footer-social-row {
    margin-top: 0.2rem !important;
    padding-top: 0.2rem !important;
    gap: 1.25rem !important;
  }

  /* Footer Bottom Bar Centering */
  .footer-bottom-bar {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0.6rem !important;
    padding-top: 1.8rem !important;
  }
}

