/* ==========================================================================
   HOTEL MANNAN — LUXURY FINE-DINING ORDER PAGE STYLES
   Exact Card Specs: Media (284px x 284px) | Body (284px x 127px)
   ========================================================================== */

/* Main Page Container & Spacing */
.order-page-main {
  max-width: 1400px;
  margin: 40px auto 120px;
  padding: 0 32px;
}

/* Page Hero Section */
.order-hero {
  text-align: center;
  margin-bottom: 50px;
  padding: 20px 0 10px;
}

/* Section Title Wrappers & Dividers */
.section-title-wrap {
  text-align: center;
  margin-bottom: 35px;
}

.eyebrow-divider {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  color: var(--lavender-accent, #C5A3FF);
}

.eyebrow-divider::before,
.eyebrow-divider::after {
  content: "";
  display: block;
  width: 70px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(197, 163, 255, 0.4));
}

.eyebrow-divider::after {
  background: linear-gradient(90deg, rgba(197, 163, 255, 0.4), transparent);
}

.eyebrow-divider h1 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(2.2rem, 4vw, 3.2rem) !important;
  color: var(--lavender-bright, #E8D5FF) !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  margin: 0;
}

.eyebrow-divider h2, 
.eyebrow-divider h3 {
  font-family: 'Fraunces', serif !important;
  font-size: clamp(1.8rem, 3vw, 2.4rem) !important;
  color: var(--lavender-bright, #E8D5FF) !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  margin: 0;
}

.eyebrow-divider span {
  font-size: 0.85rem;
  color: var(--lavender-accent, #C5A3FF);
  opacity: 0.9;
}

.subtitle {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.82rem !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
  color: var(--lavender-secondary, #D8C4F8) !important;
  margin-top: 14px;
  font-weight: 600;
}

.subtitle-sm {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender-muted, #B39DDB);
  margin-top: 8px;
}

/* ===== 23 CATEGORY BADGES: STRICT 3-ROW LAYOUT (7 - 9 - 7) ===== */
.order-categories-section {
  margin-bottom: 70px;
  padding-bottom: 50px;
  border-bottom: 1px dashed rgba(197, 163, 255, 0.2);
  width: 100%;
}

.categories-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 1420px;
  margin: 0 auto;
}

/* Each row is its own flex container, so the 7/9/7 grouping is
   guaranteed by markup — not by width-based wrapping guesswork. */
.category-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 32px 18px;
  width: 100%;
}

.category-row-1 .category-circle-item,
.category-row-3 .category-circle-item {
  flex: 0 0 130px;
}

.category-row-2 .category-circle-item {
  flex: 0 0 110px;
}

.category-circle-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: transparent !important;
  border: none !important;
  cursor: pointer;
  box-sizing: border-box;
  transition: transform 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
  box-shadow: none !important;
}

.category-circle-item:hover {
  transform: translateY(-8px) scale(1.05);
}

/* बाहेरची लॅव्हेंडर रिंग */
.circle-badge-wrapper {
  position: relative;
  width: 95px;
  height: 95px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  padding: 3px;
  background: radial-gradient(circle, rgba(197, 163, 255, 0.18) 0%, rgba(5, 5, 7, 0.95) 100%);
  border: 2px solid #C5A3FF;
  box-shadow: 0 0 18px rgba(197, 163, 255, 0.3), 0 8px 24px rgba(0, 0, 0, 0.9);
  transition: all 0.35s ease;
  box-sizing: border-box;
}

/* आतील गोल्डन रिंग */
.circle-badge-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: #000000;
  position: relative;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

/* SVG आयकॉन साईझ (fallback icon) */
.circle-badge-inner svg {
  width: 42px !important;
  height: 42px !important;
  display: block;
  margin: auto;
  transition: transform 0.35s ease;
}

/* Custom uploaded icon images */
.circle-badge-inner img.category-icon-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  margin: auto;
  transition: transform 0.35s ease;
}

/* Hover & Active Glow States */
.category-circle-item:hover .circle-badge-wrapper,
.category-circle-item.active .circle-badge-wrapper {
  border-color: #E8D5FF;
  box-shadow: 0 0 26px rgba(197, 163, 255, 0.7), 0 12px 30px rgba(0, 0, 0, 0.95);
}

.category-circle-item:hover .circle-badge-inner,
.category-circle-item.active .circle-badge-inner {
  border: none;
  box-shadow: none;
}

.category-circle-item:hover .circle-badge-inner svg,
.category-circle-item.active .circle-badge-inner svg,
.category-circle-item:hover .circle-badge-inner img.category-icon-img,
.category-circle-item.active .circle-badge-inner img.category-icon-img {
  transform: scale(1.15);
}

.category-label {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  color: var(--lavender-secondary, #D8C4F8) !important;
  text-align: center;
  line-height: 1.25;
  transition: color 0.3s ease;
}

.category-circle-item:hover .category-label,
.category-circle-item.active .category-label {
  color: #E8D5FF !important;
  font-weight: 700 !important;
  text-shadow: 0 0 8px rgba(197, 163, 255, 0.5);
}

/* ===== 2. UNIFORM DISHES GRID & CARDS ===== */
.all-dishes-section {
  padding-top: 10px;
}

.order-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(197, 163, 255, 0.2);
  padding-bottom: 16px;
}

.order-controls h3 {
  font-family: 'Fraunces', serif !important;
  font-size: 1.8rem !important;
  color: var(--lavender-bright, #E8D5FF) !important;
  font-weight: 600 !important;
}

.btn-clear-filter {
  background: rgba(197, 163, 255, 0.08) !important;
  border: 1px solid rgba(197, 163, 255, 0.4) !important;
  color: var(--lavender-primary, #F0E6FF) !important;
  padding: 8px 22px;
  border-radius: 30px;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-clear-filter:hover {
  background: #B388FF !important;
  color: #000000 !important;
  border-color: #B388FF !important;
  font-weight: 700 !important;
}

.menu-sections-container {
  display: flex;
  flex-direction: column;
  gap: 70px;
}

.menu-section-block {
  scroll-margin-top: 100px;
  animation: mannanFadeUp 0.5s cubic-bezier(0.16, 0.8, 0.24, 1) forwards;
}

.menu-section-header {
  margin-bottom: 32px;
  text-align: center;
}

/* Grid for 284px items */
.menu-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(284px, 1fr));
  gap: 32px 24px;
  justify-items: center;
}

/* EXACT ITEM SIZING: 284px Width Structure */
.menu-item {
  width: 284px !important;
  max-width: 100%;
  background: #08080a !important;
  border: 1px solid rgba(197, 163, 255, 0.22) !important;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8) !important;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  transition: transform 0.4s cubic-bezier(0.16, 0.8, 0.24, 1),
              border-color 0.4s ease,
              box-shadow 0.4s ease;
}

.menu-item:hover {
  transform: translateY(-6px);
  border-color: rgba(197, 163, 255, 0.6) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95) !important;
}

/* EXACT ITEM MEDIA: 284px x 284px Square Frame */
.menu-item-media {
  position: relative;
  width: 284px !important;
  height: 284px !important;
  background: #0d0a0f;
  overflow: hidden;
  flex-shrink: 0;
}

.menu-item-media img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 0.8, 0.24, 1);
}

.menu-item:hover .menu-item-media img {
  transform: scale(1.08);
}

/* EXACT ITEM BODY: 284px x 127px Dimension Frame */
.menu-item-body {
  width: 284px !important;
  height: 127px !important;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.menu-item-name {
  font-family: 'Fraunces', serif !important;
  font-size: 1.08rem !important;
  color: var(--lavender-bright, #E8D5FF) !important;
  margin-bottom: 4px;
  font-weight: 600 !important;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.menu-item-desc {
  font-family: 'Work Sans', sans-serif !important;
  font-size: 0.8rem !important;
  color: var(--lavender-secondary, #D8C4F8) !important;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.menu-item-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.menu-item-veg {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 0.72rem;
  color: #4CAF50;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.veg-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.6);
}

.menu-item-price {
  font-family: 'IBM Plex Mono', monospace !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--lavender-accent, #C5A3FF) !important;
}

/* Header MANNAN Title Hide Overrides */
.site-header .brand-title,
header .brand-title {
  display: none !important;
}

/* ==========================================================================
   MOBILE / TABLET — SIDE SECTION DROPDOWN
   Applies ONLY at ≤1024px. Above 1024px (laptop/desktop) nothing in this
   block runs — that view stays exactly as it already is.
   ========================================================================== */
.mobile-sections-nav { display: none; }

@media (max-width: 1024px) {

  /* Hide the desktop circular category badges row on mobile/tablet */
  .order-categories-section { display: none; }

  /* Desktop's "Close Section" pill is replaced by "All Items" in the
     side dropdown, so hide it here to avoid duplicate controls */
  .btn-clear-filter { display: none !important; }

  .mobile-sections-nav { display: block; }

  .mobile-sections-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 498;
  }

  .mobile-sections-nav.open .mobile-sections-overlay { display: block; }

  /* Fixed tab on the right edge of the screen */
  .mobile-sections-toggle {
    position: fixed;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: #0d0a10;
    border: 1px solid rgba(197, 163, 255, 0.45);
    border-right: none;
    border-radius: 10px 0 0 10px;
    padding: 16px 10px;
    color: var(--lavender-bright, #E8D5FF);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    cursor: pointer;
    box-shadow: -6px 6px 20px rgba(0, 0, 0, 0.7);
  }

  .mobile-sections-toggle svg { writing-mode: horizontal-tb; }

  /* Slide-in panel listing every section */
  .mobile-sections-panel {
    position: fixed;
    top: 0;
    right: -280px;
    width: 260px;
    max-width: 78vw;
    height: 100%;
    background: #08080a;
    border-left: 1px solid rgba(197, 163, 255, 0.3);
    padding: 80px 18px 30px;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.16, 0.8, 0.24, 1);
    z-index: 499;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.85);
  }

  .mobile-sections-nav.open .mobile-sections-panel { right: 0; }

  .mobile-section-option {
    display: block;
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(197, 163, 255, 0.15);
    color: var(--lavender-secondary, #D8C4F8);
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 12px 6px;
    cursor: pointer;
    transition: color 0.25s ease, padding-left 0.25s ease;
  }

  .mobile-section-option:hover,
  .mobile-section-option.active {
    color: #E8D5FF;
    padding-left: 12px;
    font-weight: 700;
  }

  /* ------------------------------------------------------------------
     MOBILE / TABLET — TIDY ALIGNMENT PASS
     Everything below only runs at ≤1024px (tablet + phone). Desktop/
     laptop (>1024px) is completely untouched by this stylesheet change.
     ------------------------------------------------------------------ */

  .order-page-main {
    padding: 0 18px;
    margin: 28px auto 90px;
  }

  .order-hero {
    margin-bottom: 30px;
    padding: 8px 0 4px;
  }

  .eyebrow-divider {
    gap: 12px;
  }

  .eyebrow-divider::before,
  .eyebrow-divider::after {
    width: 32px;
  }

  .eyebrow-divider h1 {
    font-size: clamp(1.6rem, 7vw, 2.2rem) !important;
  }

  .eyebrow-divider h3 {
    font-size: clamp(1.3rem, 6vw, 1.7rem) !important;
  }

  .subtitle {
    font-size: 0.66rem !important;
    letter-spacing: 0.12em !important;
    padding: 0 10px;
  }

  .subtitle-sm {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    padding: 0 14px;
  }

  /* Give the heading room so it never runs under the fixed
     "Sections" tab pinned to the right edge of the screen */
  .order-controls {
    padding-right: 48px;
    margin-bottom: 26px;
  }

  .order-controls h3 {
    font-size: 1.2rem !important;
  }

  .menu-sections-container {
    gap: 44px;
  }

  .menu-section-header {
    margin-bottom: 20px;
  }

  /* Cards: swap the fixed 284px box for a fluid, evenly-spaced grid
     so nothing overflows sideways or sits off-center on narrower
     screens. Two tidy columns on tablets. */
  .menu-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 16px;
    justify-items: stretch;
  }

  .menu-item {
    width: 100% !important;
    max-width: none;
  }

  .menu-item-media {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1;
  }

  .menu-item-body {
    width: 100% !important;
    height: auto !important;
    min-height: 132px;
  }

  .menu-item-name {
    font-size: 0.98rem !important;
    white-space: normal;
  }
}

/* Phones — single tidy column, tighter spacing */
@media (max-width: 640px) {
  .order-page-main {
    padding: 0 14px;
  }

  .menu-cards-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .menu-item {
    max-width: 380px;
    margin: 0 auto;
  }

  .order-controls {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-right: 0;
  }

  .order-controls h3 {
    font-size: 1.1rem !important;
  }
}

/* Footer Logo Adjustments */
.footer-card-logo {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto 20px auto !important;
  width: 100% !important;
}

.footer-logo-img {
  width: 280px !important;
  max-width: 85% !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
  filter: none !important;
  box-shadow: none !important;
}