/* global.css - Global styles and layout with Flat Off-White & Black theme */

body {
  background-color: #f3f3f3;
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

:root {
  --primary-color: #000000;
  --primary-hover: #333333;
  --secondary-color: #555555;
  --accent-color: #000000;
  --bg-dark: #f3f3f3;
  --bg-darker: #e5e5e5;
  --bg-light: #f3f3f3;
  --bg-white: #f3f3f3;
  --text-dark: #000000;
  --text-light: #000000;
  --text-muted: #555555;
  --border-color: #dddddd;
  
  --font-heading: Arial, Helvetica, sans-serif;
  --font-body: Arial, Helvetica, sans-serif;
  --transition-smooth: all 0.25s ease-in-out;
  --shadow-sm: none;
  --shadow-md: none;
  --shadow-lg: none;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: bold;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

/* ============================================================
   Shared Page Hero — Events / Services / Careers
   Same layout as home hero:
     Row: [title 60% LEFT overlaps 20% into image] [image 50% RIGHT 1:1]
     Below: centered description (optional)
   ============================================================ */
.page-hero-section {
  background-color: #f3f3f3;
  width: 100%;
}

.page-hero-content {
  width: 100%;
  padding-bottom: 6vw; /* Doubled padding below the hero top row/description */
}

.page-hero-top-row {
  position: relative;
  width: 100%;
  height: 50vw;
  margin-top: 0; /* Removed margin-top so it meets the header directly */
}

/* Image: right 50%, fills full height, 1:1 */
.page-hero-visual {
  position: absolute;
  right: 0;
  top: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.page-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Title: 60% wide, overlaps 10vw (20% of 50vw) into image, z-index above */
.page-hero-text {
  position: absolute;
  left: 0;
  top: 0;
  width: 60%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding: 0 0 0 5vw;
  text-align: right;
}

.page-hero-title {
  font-size: 10vw !important;
  font-weight: 900;
  color: #2d2d2d;
  line-height: 0.95;
  letter-spacing: -0.15vw;
  margin: 0;
}

@media (min-width: 769px) {
  .page-hero-top-row {
    height: 30vw; /* 30% of screen width height for 1:1 image */
  }
  .page-hero-visual {
    left: 50%;
    right: auto;
    width: 30vw; /* 30% of screen width */
    height: 100%;
  }
  .page-hero-text {
    width: 56vw; /* 50% left zone + 6vw (20% of 30vw image width) overlap */
    padding: 0;
  }
  .page-hero-title {
    font-size: 5vw !important; /* 5% of screen width */
  }
}

/* Optional description below the image row */
.page-hero-description {
  width: 100%;
  box-sizing: border-box;
  padding: 3vw 8vw;
  font-size: 1.1vw;
  color: #2d2d2d;
  line-height: 1.7;
  text-align: center;
}

@media (max-width: 768px) {
  .page-hero-description {
    font-size: 3.5vw;
    padding: 5vw;
  }
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  background-color: #f3f3f3;
  color: #000000;
  z-index: 1000;
}

.nav-container {
  max-width: 100%;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand img {
  height: 40px;
  width: auto;
  object-fit: contain;
  filter: brightness(0); /* Black logo */
}

.brand-text h1 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: #000000;
}

.brand-text p {
  font-size: 0.6rem;
  color: #555555;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: -1px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* OMS shop auth — shared session with /medcase/* */
.oms-auth-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-height: 2.25rem;
}

.oms-auth-slot--mobile {
  display: none;
}

.oms-auth-signin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.25rem;
  padding: 0 1rem;
  border-radius: 9999px;
  background-color: #000000;
  color: #ffffff !important;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}

.oms-auth-signin:hover {
  background-color: #333333;
}

.oms-auth-profile {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 10rem;
  padding: 0.25rem 0.5rem 0.25rem 0.25rem;
  border-radius: 9999px;
  border: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.oms-auth-profile:hover {
  background-color: #e8e8e8;
  border-color: #dddddd;
}

.oms-auth-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.12);
  color: #000000;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.oms-auth-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #000000;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.oms-auth-slot--loading .oms-auth-signin,
.oms-auth-slot--loading .oms-auth-profile {
  visibility: hidden;
}

.oms-auth-slot--loading::after {
  content: '';
  position: absolute;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #dddddd;
  border-top-color: #000000;
  border-radius: 50%;
  animation: oms-auth-spin 0.7s linear infinite;
}

.oms-auth-slot--loading {
  position: relative;
  min-width: 2.25rem;
}

@keyframes oms-auth-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 969px) {
  .menu-toggle {
    display: none;
  }

  .nav-right {
    display: flex;
    margin-left: auto;
  }

  .oms-auth-name {
    display: none;
  }

  @media (min-width: 900px) {
    .oms-auth-name {
      display: inline;
    }
  }
}

/* Desktop Links */
.desktop-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.desktop-links a {
  font-family: var(--font-heading);
  font-weight: bold;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.desktop-links a:hover,
.desktop-links li.active a {
  border-bottom-color: #000000;
}

/* Nav Dropdown Menu Styles */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 0.5rem 0;
  min-width: 140px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 9999;
}

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

.dropdown-menu li {
  list-style: none;
  width: 100%;
}

.dropdown-menu a {
  display: block !important;
  padding: 0.6rem 1.2rem !important;
  color: #333333 !important;
  text-decoration: none !important;
  font-size: 0.85rem !important;
  font-weight: bold !important;
  border-bottom: none !important;
  text-align: center !important;
  white-space: nowrap;
}

.dropdown-menu a:hover {
  background-color: #f5f5f5 !important;
  color: #000000 !important;
}

/* Mobile Sidebar Dropdown Styles */
.mobile-dropdown-menu {
  display: none;
  list-style: none;
  padding-left: 1.5rem;
  margin-top: 0.5rem;
}

.mobile-dropdown.open .mobile-dropdown-menu {
  display: block !important;
}

.mobile-dropdown-menu a {
  font-size: 0.95rem !important;
  color: #555555 !important;
  padding: 0.4rem 0 !important;
}

.cart-btn {
  background: none;
  border: none;
  color: #000000;
  cursor: pointer;
  position: relative;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.6rem;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  line-height: 0;
}

/* Mobile Sidebar (Menu Drawer) */
.mobile-sidebar {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: #ffffff !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.15);
  z-index: 1100;
  transition: right 0.3s ease;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  box-sizing: border-box !important;
}

.mobile-sidebar.open {
  right: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.sidebar-close {
  background: none;
  border: none;
  color: #000000;
  font-size: 1.5rem;
  cursor: pointer;
}

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

.mobile-links a {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: bold;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid #e0e0e0;
}

.mobile-links a:hover,
.mobile-links li.active a {
  padding-left: 0.5rem;
  border-bottom-color: #000000;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1050;
  display: none;
}

.sidebar-overlay.show {
  display: block;
}

/* Page Layout Main */
main {
  flex: 1;
}

/* Footer Styles */
footer {
  background-color: #f3f3f3;
  color: #000000;
  padding: 4rem 1.5rem 2rem;
  border-top: 1px solid #e0e0e0;
}

.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-section h3 {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #e0e0e0;
}

.footer-section p {
  color: #333333;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.footer-section a {
  color: #000000;
  text-decoration: underline;
}

.footer-section a:hover {
  text-decoration: none;
}

.contact-info p {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.contact-info svg {
  margin-top: 4px;
  flex-shrink: 0;
  color: #000000;
  width: 14px;
  height: 14px;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #000000;
  color: #ffffff;
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.social-icon:hover {
  opacity: 0.8;
  transform: translateY(-2px);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.partner-logo-box {
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
}

.partner-logo-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.8rem;
  color: #555555;
}

.footer-policy-link {
  font-weight: bold;
  text-decoration: underline;
}

.footer-policy-link:hover {
  text-decoration: none;
}

/* Modals Overlay Form Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease-out;
}

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

.modal-container {
  background-color: #ffffff;
  border-radius: 8px;
  width: 100%;
  max-width: 550px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.25s ease-out;
}

.modal-overlay.open .modal-container {
  transform: translateY(0);
}

.modal-header {
  padding: 1.25rem 1.5rem;
  background-color: #ffffff;
  color: #000000;
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  font-size: 1.15rem;
  font-weight: bold;
}

.modal-close-btn {
  background: none;
  border: 1px solid #000000;
  color: #000000;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-weight: bold;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.modal-close-btn:hover {
  background-color: #000000;
  color: #ffffff;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(85vh - 80px);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: #000000;
}

.form-control {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 0.85rem;
  border: 1px solid #cccccc;
  border-radius: 4px;
  background-color: #ffffff;
  color: #000000;
  outline: none;
}

.form-control:focus {
  border-color: #000000;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #000000;
  color: #ffffff;
  border: none;
  border-radius: 20px; /* Pill style button */
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  margin-top: 1rem;
}

.form-submit-btn:hover {
  opacity: 0.9;
}

/* Form Alerts */
.form-alert {
  padding: 0.85rem;
  border-radius: 4px;
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  display: none;
}

.form-alert.success {
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
  display: block;
}

.form-alert.error {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
  display: block;
}

/* Media Queries */
@media (max-width: 968px) {
  .desktop-links {
    display: none;
  }

  .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0.875rem 1.25rem;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1;
    grid-row: 1;
    z-index: 2;
  }

  .brand {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: center;
    z-index: 1;
  }

  .nav-right {
    display: none;
  }

  .oms-auth-slot {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    z-index: 2;
    min-width: 2.5rem;
  }

  .oms-auth-signin {
    height: 2rem;
    padding: 0 0.65rem;
    font-size: 0.7rem;
  }

  .oms-auth-name {
    display: none !important;
  }

  .oms-auth-profile {
    padding: 0.125rem;
  }
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-content {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ─── Contact + Visit Us Section (shared footer) ─────────── */
.contact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}

.contact-col-left {
  background-color: #000000;
  color: #ffffff;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.contact-col-left h2,
.contact-col-right h2 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.underline-white {
  width: 40px;
  height: 3px;
  background-color: #ffffff;
  margin-bottom: 2rem;
}

.contact-col-left p {
  font-size: 0.9rem;
  color: #a0a0a0;
  line-height: 1.8;
  margin-bottom: 0.5rem;
}

.contact-col-left a {
  color: #ffffff;
  text-decoration: underline;
}

.contact-col-left a:hover {
  color: #a0a0a0;
}

.contact-col-right {
  background-color: #969696;
  color: #ffffff;
  padding: 5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.social-links-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.social-links-row a {
  color: #000000;
  transition: transform 0.3s ease;
}

.social-links-row a:hover {
  transform: scale(1.15);
}

.incubated-supported-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  width: 100%;
  max-width: 500px;
}

.sub-col {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sub-col h3 {
  font-size: 0.95rem;
  font-weight: normal;
  text-decoration: underline;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

/* Box height is auto (sized to its own logo) so the vertical space between
   wrapped rows is controlled purely by `gap` below, not by an oversized
   fixed box height. This keeps every logo at its natural/original size
   while avoiding the large empty whitespace that a fixed tall box created. */
.sub-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

/* Supported by column: Startup India stacks directly below Startup Odisha,
   both centered. */
.sub-logos-stacked {
  flex-direction: column;
  gap: 0.6rem;
}

.sub-logo-box {
  background: transparent;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sub-logo-box img {
  max-height: 100px;
  width: auto;
  object-fit: contain;
}

/* Startup India banner logo has a very wide aspect ratio (roughly 3.5:1); if
   scaled to match the other logos' height it would render far too wide, so
   it alone is capped by width instead. Every other logo keeps its natural
   size. */
.logo-startupindia {
  max-height: none !important;
  width: 180px !important;
  height: auto !important;
}

/* ─── Shared Footer bar ─────────────────────────────────── */
.custom-home-footer {
  background-color: #f3f3f3;
  border-top: 1px solid #e0e0e0;
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.custom-home-footer .footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.custom-home-footer .footer-policy-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1a2b5c;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.custom-home-footer .footer-policy-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .contact-section {
    grid-template-columns: 1fr;
  }
  .contact-col-left,
  .contact-col-right {
    padding: 2rem 1.5rem !important;
  }
  .incubated-supported-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem !important;
    max-width: 100% !important;
  }
  .sub-logos {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 1rem !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .sub-logo-box {
    height: 70px !important;
    max-width: 240px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
  }
  .sub-logo-box img {
    max-height: 100% !important;
    max-width: 100% !important;
    object-fit: contain !important;
  }
  .sub-logos-stacked {
    flex-direction: column !important;
    gap: 0.5rem !important;
  }
  .sub-logo-box .logo-startupindia {
    width: 180px !important;
    max-width: 180px !important;
    height: auto !important;
  }
}

/* Global Hero Image Appearance Animation */
@keyframes heroImageanimation {
  0% {
    transform: perspective(1000px) rotateX(-90deg) translateY(120px);
    opacity: 0;
  }
  100% {
    transform: perspective(1000px) rotateX(0deg) translateY(0);
    opacity: 1;
  }
}

.heroImageanimation {
  opacity: 0;
  transform: perspective(1000px) rotateX(-90deg) translateY(120px);
  transform-origin: bottom center !important;
  backface-visibility: hidden !important;
  transition: none !important;
}

.heroImageanimation.start-hero-anim {
  animation: heroImageanimation 1.5s cubic-bezier(0.16, 1, 0.3, 1) both !important;
}

/* Global Section Segregator */
.section-segregator {
  position: relative;
  height: 40px;
  width: 100%;
  background: transparent;
  pointer-events: none;
  z-index: 5;
  margin-top: -20px;
  margin-bottom: -20px;
  display: block;
  overflow: hidden;
}

.section-segregator::before {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 10%;
  width: 80%;
  height: 20px;
  background: transparent;
  border-radius: 100%;
  box-shadow: 0 -10px 25px rgba(0, 0, 0, 0.55);
}

/* Mobile Sticky Quick Action Bar */
.mobile-quick-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #ffffff;
  display: none; /* hidden on desktop */
  justify-content: center;
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05), 0 -15px 40px rgba(130, 140, 230, 0.06);
  z-index: 9999;
  padding: 0.5rem 0;
  height: 70px;
  box-sizing: border-box;
}

.quick-action-link {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  gap: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.quick-action-link:active {
  transform: scale(0.95);
  opacity: 0.7;
}

.quick-action-link svg {
  width: 24px;
  height: 24px;
  color: #000000;
  display: block;
}

.quick-action-divider {
  width: 1px;
  height: 35px;
  background-color: rgba(0, 0, 0, 0.08);
}

@media (max-width: 768px) {
  .mobile-quick-actions {
    display: flex !important;
  }
  /* Prevent content overlap with sticky bottom bar */
  body {
    padding-bottom: 75px !important;
  }
}

/* Global AI Chat Modal / Drawer */
.ai-chat-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 75vh;
  background-color: #ffffff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.15);
  z-index: 100001;
  transition: bottom 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: Arial, sans-serif;
}

.ai-chat-modal.open {
  bottom: 0;
}

.ai-chat-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.ai-chat-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.ai-chat-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f9f9f9;
}

.ai-chat-header-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-chat-header-title svg {
  color: #000000;
}

.ai-chat-close-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #555555;
  line-height: 1;
  padding: 0.25rem;
}

.ai-chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background-color: #ffffff;
}

.chat-msg {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 15px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-msg.bot {
  background-color: #f3f3f3;
  color: #000000;
  align-self: flex-start;
  border-bottom-left-radius: 3px;
}

.chat-msg.user {
  background-color: #000000;
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 3px;
}

.chat-msg.typing {
  color: #888888;
  font-style: italic;
  padding: 0.5rem 1rem;
  background-color: #f3f3f3;
  border-bottom-left-radius: 3px;
  align-self: flex-start;
  display: flex;
  align-items: center;
  gap: 4px;
}

.chat-msg.typing span {
  width: 6px;
  height: 6px;
  background-color: #888888;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1.3s infinite ease-in-out;
}

.chat-msg.typing span:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-msg.typing span:nth-child(3) {
  animation-delay: 0.4s;
}

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

.ai-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background-color: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.chat-chip {
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 20px;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.chat-chip:hover {
  background-color: #000000;
  color: #ffffff;
}

.ai-chat-input-area {
  padding: 0.75rem 1.25rem 1.5rem 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f9f9f9;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.ai-chat-input {
  flex: 1;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 25px;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  outline: none;
  background-color: #ffffff;
}

.ai-chat-input:focus {
  border-color: #000000;
}

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

.ai-chat-send-btn:hover {
  background-color: #333333;
}

.ai-chat-send-btn svg {
  width: 18px;
  height: 18px;
}

/* Global Root Viewport Scaling for Mobile Views */
@media (max-width: 768px) {
  html {
    font-size: 2.8vw !important; /* Forces all rem-based layouts and fonts to scale dynamically with the screen width on all pages */
  }

  /* Prevent Header and Mobile Sidebar from bugging by forcing fixed pixel values */
  .nav-container {
    padding: 14px 20px !important;
  }
  .brand img {
    height: 36px !important;
  }
  .brand-text h1 {
    font-size: 18px !important;
  }
  .brand-text p {
    font-size: 9px !important;
  }
  .nav-right {
    gap: 20px !important;
  }
  .cart-btn {
    font-size: 20px !important;
  }
  .menu-toggle {
    display: flex !important;
    font-size: 24px !important;
  }
  .mobile-sidebar {
    width: 280px !important;
    padding: 24px 20px !important;
  }
  .mobile-sidebar-links a {
    font-size: 16px !important;
    padding: 12px 0 !important;
  }
}

