/* Menu Page Styles for Namaste Hanoi */

/* Hero Section - Image Only */
.menu-stacking-container {
  width: 100%;
  position: relative;
  overflow: visible;
}

.menu-hero {
  height: 100vh;
  width: 100%;
  position: relative;
  overflow: visible;
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Two Images Section - Side by Side */
.two-images-section {
  height: 100vh;
  width: 100%;
  display: flex;
  position: relative;
  overflow: visible;
}

.image-half {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.image-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


/* Menu Section */
.menu-section {
  position: relative;
  background-color: #f6e7cf;
  padding: 2rem 0;
  overflow: hidden;
}

.side-pattern-left,
.side-pattern-right {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 180px;
  background-image: url('../src/images/side.svg');
  background-repeat: repeat-y;
  background-size: 100% auto;
  opacity: 0.35;
  z-index: 1;
  pointer-events: none;
}


.menu-container {
  position: relative;
  z-index: 2;
  width: 90%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.menu-description {
  text-align: center;
  margin-bottom: 1.5rem;
  flex: 0 0 auto;
}

.cursive-title {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  color: #8b4513;
  margin: 0;
  font-weight: 500;
}

.section-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 4rem;
  font-weight: 800;
  color: #1f1a17;
  text-transform: uppercase;
  margin: 0 0 0.5rem 0;
  letter-spacing: 0.05em;
}

.menu-description p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #1f1a17;
  margin: 0 auto;
}

.menu-content-box-wrapper {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  overflow: hidden;
}

.menu-content-box {
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  width: 100%;
  height: 100vh;
  gap: 1rem;
}

/* Left Panel - Categories */
.categories-panel,
.items-panel {
  background: #4D2900;
  padding: 1rem;
  color: #fff;
  overflow: auto;
  /* scroll inside left panel - Hide scrollbars but keep functionality */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.categories-panel::-webkit-scrollbar,
.items-panel::-webkit-scrollbar {
  display: none;
}

.panel-title,
.category-title {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  margin: 0;
  color: #FFFFFF;
  letter-spacing: 0.05em;
  text-align: center;
}

.category-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.category-title-wrapper,
.panel-title-wrapper {
  border: 2px solid #FFFFFF !important;
  border-radius: 12px;
  padding: 1rem;
}

.category-list {
  display: flex;
  flex-direction: column;
}

.category-item {
  padding: 0.75rem 1rem;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.category-item:last-child {
  border-bottom: none;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(4px);
}

.category-item.active {
  background: linear-gradient(to right, #FFDB90, #4D2900);
  color: #FFFFFF;
  font-weight: 700;
  border-bottom: none;
  border-radius: 0;
}

.menu-items-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 1rem 0;
}

.menu-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 0;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.menu-item:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
  border-color: #FFDB90;
}

.item-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-details {
  width: 100%;
  padding: 1rem;
}

.item-name-price {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.item-name {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1f1a17;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.3;
  flex: 1;
}

.item-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8b4513;
  margin: 0;
}

.item-description {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
  margin: 0;
  text-align: left;
}

/* Base Accordion Styles - Hidden by default on large screens */
.menu-accordion {
  display: none;
}

/* Loyalty section styles inherited from main style.css */

/* Responsive Design with Predefined Media Queries */

/* Large screens: >1440px - Default Desktop Layout */
@media (min-width: 1441px) {
  .menu-content-box-wrapper {
    display: flex !important;
  }

  .menu-accordion {
    display: none !important;
  }
}

/* Large screens: 1241px - 1440px */
@media (min-width: 1241px) and (max-width: 1440px) {

  /* Ensure two-column layout is visible */
  .menu-content-box-wrapper {
    display: flex !important;
  }

  .menu-accordion {
    display: none !important;
  }

  .menu-hero {
    height: 95vh;
  }

  .two-images-section {
    height: 95vh;
  }

  .menu-section {
    padding: 1.5rem 0;
  }

  .menu-container {
    width: 85%;
  }

  .cursive-title {
    font-size: 1.8rem;
  }

  .section-title {
    font-size: 3.5rem;
  }

  .menu-description p {
    font-size: 1rem;
  }

  .menu-content-box {
    height: 90vh;
  }

  .category-title {
    font-size: 1.8rem;
  }

  .panel-title {
    font-size: 3.5rem;
  }

  .category-item {
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    border-radius: 0;
    border-bottom: 1px solid rgba(255, 219, 144, 0.3);
    background: transparent;
  }

  .category-item:last-child {
    border-bottom: none;
  }

  .category-item.active {
    background: linear-gradient(to right, #FFDB90, #4D2900);
    color: #FFFFFF;
    font-weight: 700;
    border-bottom: none;
    border-radius: 0;
  }

  .item-image {
    height: 180px;
  }

  .item-name {
    font-size: 0.95rem;
  }

  .item-price {
    font-size: 1.2rem;
  }

  .item-description {
    font-size: 0.8rem;
  }
}

/* Tablet screens: 769px - 1024px - Two Column Layout */
@media (min-width: 769px) and (max-width: 1024px) {

  /* Ensure two-column layout is visible */
  .menu-content-box-wrapper {
    display: flex !important;
  }

  .menu-accordion {
    display: none !important;
  }

  .menu-hero {
    height: 60vh;
  }

  .two-images-section {
    height: 50vh;
  }

  .menu-section {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f6e7cf 0%, #f9ead8 100%);
  }

  .menu-container {
    width: 95%;
  }

  .cursive-title {
    font-size: 1.5rem;
  }

  .section-title {
    font-size: 2.8rem;
  }

  .menu-description p {
    font-size: 0.9rem;
    max-width: 90%;
  }

  .menu-content-box {
    grid-template-columns: 1fr 1.2fr;
    height: 80vh;
    gap: 0.8rem;
  }

  /* Enhanced Categories Panel for Tablet */
  .categories-panel {
    padding: 1rem;
    background: linear-gradient(135deg, #5a3a1a 0%, #4D2900 100%);
  }

  .category-title-wrapper {
    border: none;
    backdrop-filter: blur(10px);
    padding: 0.7rem;
    border-radius: 8px;
    margin-bottom: 0.7rem;
  }

  .category-title {
    font-size: 1.2rem;
    color: #FFDB90;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  }

  .category-list {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .category-item {
    padding: 0.6rem 0.8rem;
    font-size: 0.75rem;
    text-align: left;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 219, 144, 0.3);
    border-radius: 0;
    transition: all 0.3s ease;
    font-weight: 500;
  }

  .category-item:last-child {
    border-bottom: none;
  }

  .category-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(2px);
  }

  .category-item.active {
    background: linear-gradient(to right, #FFDB90, #4D2900);
    color: #4D2900;
    font-weight: 700;
    border-bottom: none;
    border-radius: 0;
    transform: scale(1.02);
  }

  /* Enhanced Items Panel for Tablet */
  .items-panel {
    padding: 1rem;
    background: #fff;
  }

  .panel-title-wrapper {
    border: none;
    background: linear-gradient(135deg, #f6e7cf 0%, #FFDB90 100%);
    padding: 0.8rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    text-align: center;
  }

  .panel-title {
    font-size: 1.8rem;
    color: #4D2900;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.5);
  }

  .menu-items-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }

  .menu-item {
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
  }

  .menu-item:hover {
    border-color: #FFDB90;
    box-shadow: 0 4px 15px rgba(255, 219, 144, 0.3);
    transform: translateY(-2px);
  }

  .item-image {
    height: 140px;
    position: relative;
    overflow: hidden;
  }

  .item-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.1) 100%);
  }

  .item-image img {
    transition: transform 0.3s ease;
  }

  .menu-item:hover .item-image img {
    transform: scale(1.05);
  }

  .item-details {
    padding: 0.8rem;
    background: #fff;
  }

  .item-name {
    font-size: 0.85rem;
    color: #4D2900;
  }

  .item-price {
    font-size: 1rem;
    color: #B66202;
    font-weight: 800;
  }

  .item-description {
    font-size: 0.7rem;
    color: #666;
  }
}

/* Small screens: 481px - 768px - Accordion Style */
@media (min-width: 481px) and (max-width: 768px) {
  .menu-hero {
    height: 50vh;
  }

  .two-images-section {
    height: 40vh;
  }

  .menu-section {
    padding: 1.5rem 0;
    background: linear-gradient(135deg, #f6e7cf 0%, #f9ead8 100%);
  }

  .menu-container {
    width: 100%;
    padding: 0 1rem;
  }

  .menu-description {
    margin-bottom: 1.5rem;
  }

  .cursive-title {
    font-size: 1.4rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .menu-description p {
    font-size: 0.9rem;
    max-width: 100%;
  }

  /* Hide default layout for accordion style */
  .menu-content-box-wrapper {
    display: none !important;
  }

  /* Show accordion for this breakpoint */
  .menu-accordion {
    display: block !important;
    margin-top: 1.5rem;
  }

  .accordion-item {
    background: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
  }

  .accordion-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  }

  .accordion-header {
    padding: 1rem;
    background: linear-gradient(135deg, #4D2900 0%, #5a3a1a 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
  }

  .accordion-header:active {
    background: linear-gradient(135deg, #5a3a1a 0%, #6b4626 100%);
  }

  .accordion-header-title {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #FFDB90;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    flex: 1;
  }

  .accordion-icon {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 219, 144, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
  }

  .accordion-icon::before {
    content: '+';
    font-size: 1.5rem;
    color: #FFDB90;
    font-weight: 700;
    transition: transform 0.3s ease;
  }

  .accordion-item.active .accordion-icon {
    background: #FFDB90;
  }

  .accordion-item.active .accordion-icon::before {
    content: '−';
    color: #4D2900;
  }

  .accordion-item.active .accordion-header {
    background: linear-gradient(135deg, #5a3a1a 0%, #4D2900 100%);
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: linear-gradient(to bottom, #fafafa 0%, #fff 10%);
  }

  .accordion-item.active .accordion-content {
    max-height: 5000px;
  }

  .accordion-body {
    padding: 1rem;
  }

  .accordion-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .accordion-menu-item {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 8px;
  }

  .accordion-menu-item:active {
    border-color: #FFDB90;
    box-shadow: 0 4px 12px rgba(255, 219, 144, 0.3);
    transform: scale(0.98);
  }

  /* First row: Image and Details */
  .accordion-item-first-row {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  .accordion-item-image {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 8px;
  }

  .accordion-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .accordion-menu-item:active .accordion-item-image img {
    transform: scale(1.1);
  }

  .accordion-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .accordion-item-name-price {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
  }

  .accordion-item-name {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #4D2900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
  }

  .accordion-item-price {
    font-size: 1rem;
    font-weight: 800;
    color: #B66202;
    margin: 0;
  }

  .accordion-item-description {
    font-size: 0.7rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
  }
}

/* Extra small screens: ≤480px - Mobile Accordion Style */
@media (max-width: 480px) {
  .menu-hero {
    height: 40vh;
    min-height: 300px;
    overflow: visible;
  }

  .two-images-section {
    height: auto;
    min-height: auto;
    flex-direction: column;
  }

  .image-half {
    width: 100%;
    height: 30vh;
    min-height: 200px;
  }

  .menu-section {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f6e7cf 0%, #f9ead8 100%);
  }

  .menu-container {
    width: 100%;
    padding: 0 0.8rem;
  }

  .menu-description {
    margin-bottom: 1rem;
    text-align: center;
  }

  .cursive-title {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .menu-description p {
    font-size: 0.8rem;
    line-height: 1.5;
    max-width: 95%;
    margin: 0 auto;
  }

  /* Hide default layout for accordion style */
  .menu-content-box-wrapper {
    display: none !important;
  }

  /* Show accordion for this breakpoint */
  .menu-accordion {
    display: block !important;
    margin-top: 1rem;
  }

  .accordion-item {
    background: #fff;
    border-radius: 14px;
    margin-bottom: 0.8rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
  }

  .accordion-header {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #4D2900 0%, #5a3a1a 100%);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
  }

  .accordion-header:active {
    background: linear-gradient(135deg, #5a3a1a 0%, #6b4626 100%);
  }

  .accordion-header-title {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFDB90;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    flex: 1;
  }

  .accordion-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 219, 144, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
  }

  .accordion-icon::before {
    content: '+';
    font-size: 1.3rem;
    color: #FFDB90;
    font-weight: 700;
  }

  .accordion-item.active .accordion-icon {
    background: #FFDB90;
  }

  .accordion-item.active .accordion-icon::before {
    content: '−';
    color: #4D2900;
  }

  .accordion-item.active .accordion-header {
    background: linear-gradient(135deg, #5a3a1a 0%, #4D2900 100%);
  }

  .accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
    background: linear-gradient(to bottom, #fafafa 0%, #fff 5%);
  }

  .accordion-item.active .accordion-content {
    max-height: 5000px;
  }

  .accordion-body {
    padding: 0.8rem;
  }

  .accordion-items-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .accordion-menu-item {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: grid;
    grid-template-rows: auto auto;
    gap: 0.7rem;
    padding: 0.8rem;
  }

  .accordion-menu-item:active {
    border-color: #FFDB90;
    box-shadow: 0 4px 12px rgba(255, 219, 144, 0.4);
    transform: scale(0.98);
  }

  /* First row: Image and Details */
  .accordion-item-first-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
  }

  .accordion-item-image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 6px;
  }

  .accordion-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .accordion-menu-item:active .accordion-item-image img {
    transform: scale(1.1);
  }

  .accordion-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .accordion-item-name-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  .accordion-item-name {
    font-family: 'Alumni Sans', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #4D2900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin: 0;
  }

  .accordion-item-price {
    font-size: 0.9rem;
    font-weight: 800;
    color: #B66202;
    margin: 0;
  }

  .accordion-item-description {
    font-size: 0.65rem;
    color: #666;
    line-height: 1.4;
    margin: 0;
  }
}

/* Specific fix for short viewports (e.g., 1440x640) */
@media (max-height: 720px) {
  .menu-description .section-title {
    font-size: 2.2rem !important;
    margin-bottom: 0.3rem !important;
  }

  .menu-description .cursive-title {
    font-size: 1.6rem !important;
    margin-bottom: -5px !important;
  }

  .menu-description p {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }

  .menu-content-box {
    height: 75vh !important;
  }

  .categories-panel {
    padding: 0.5rem !important;
  }

  .category-btn {
    padding: 0.4rem 0.8rem !important;
    font-size: 0.8rem !important;
    margin-bottom: 0.3rem !important;
  }

  .menu-item {
    padding: 0.5rem !important;
    gap: 10px !important;
  }

  .item-name {
    font-size: 1rem !important;
  }

  .item-price {
    font-size: 0.9rem !important;
  }
}

/* Loyalty section responsive styles now handled by main style.css */