/* ====================== */
/* === RESPONSIVE === */
/* ====================== */

/* Adjust content spacing when sidebar is active */
@media (min-width: 1024px) {
  body.sidebar-active .menu-items-container,
  body.sidebar-active footer {
    margin-left: 240px;
    transition: margin 0.3s ease;
  }
}

/* =============================== */
/* === Tablet Navigation Styles === */
/* =============================== */
@media (min-width: 768px) and (max-width: 1024px) {
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Standardized z-index */
  /* backdrop-filter: blur(2px); */
  padding: 15px 0 !important; /* slim height */
  background-color: rgba(0, 0, 0, 0.8) !important; /* Blacky semi-transparent */
  border-bottom: none !important;
  box-shadow: none !important;
}

body {
  padding-top: 60px; /* Add padding to body to account for fixed navbar */
}



.navbar .container {
  flex-wrap: wrap;
  justify-content: flex-end; /* Align items to the right */
  align-items.center;
  gap: 4px;
  padding: 1.2px 6px; /* tighter spacing on all screens */
  border: none !important;
  box-shadow: none !important;
}

  .hero {
    /* margin-top: 60px; */ /* Removed to eliminate line */
  }

  .logo {
    left: 54%; /* Move logo slightly more to the right */
    top: calc(50% + 5px); /* Move logo slightly down */
    transform: translate(-50%, -50%); /* Center horizontally and vertically */
    pointer-events: none; /* Make logo unclickable */
  }

  #hamburger-menu {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex !important; /* Ensure hamburger menu is visible */
    z-index: 1010; /* Standardized z-index */
    cursor: pointer; /* Indicate clickable */
  }

  .hamburger-menu .bar {
    width: 22px;
    height: 4px;
    margin: 3px auto;
    background-color: var(--primary-color) !important;
    transform-origin: center; /* Ensure transform origin is set */
  }


  body:not(.scrolled) #hamburger-menu {
    display: flex !important; /* Ensure hamburger menu is visible */
  }
  
  body:not(.scrolled) .language-switcher {
    display: flex !important;
  }
  
  .hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }

  .hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hero-image {
    min-height: 200px;
  }

  .language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 15px; /* Move to the left side */
    top: 15px; /* Align with hamburger button */
  }

  .language-switcher button {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 150px; /* Move menu tabs further down */
    right: 0;
    height: 100vh;
    max-width: 400px;
    background-color: transparent; /* Remove background padding */
    /* backdrop-filter: blur(2px); */
    /* box-shadow: -12px 0 24px rgba(0, 0, 0, 0.3); */
    transform: translateX(100%);
    transition: transform 0.25s ease;
    opacity: 1;
    pointer-events: all;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0;
    padding-right: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    padding-right: 20px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 40px;
    flex-wrap: wrap;
  }

  .nav-links li {
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: left;
    flex: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 8px 5px 7px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:hover {
    background-color: transparent;
  }

  .nav-links .cart-item-nav {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .nav-links li .language-switcher button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .category-tabs-wrapper {
    position: sticky;
    top: 64px;
    z-index: 1005; /* Standardized z-index */
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 12px;
    overflow-x: auto;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
  }

  .menu-backdrop.hidden {
    display: none;
    opacity: 0;
  }

  .close-nav-btn {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    right: 15px;
    line-height: 1;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
.navbar {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* Standardized z-index */
  /* backdrop-filter: blur(2px); */
  padding: 15px 0 !important; /* slim height */
  background-color: rgba(0, 0, 0, 0.8) !important; /* Blacky semi-transparent */
  border-bottom: none !important;
  box-shadow: none !important;
}

body.scrolled .navbar {
  /* background-color: transparent !important; */
  box-shadow: none !important;
}

body {
  padding-top: 60px; /* Add padding to body to account for fixed navbar */
}



.navbar .container {
  flex-wrap: wrap;
  justify-content: flex-end; /* Align items to the right */
  align-items: center;
  gap: 4px;
  padding: 1.2px 6px; /* tighter spacing on all screens */
  border: none !important;
  box-shadow: none !important;
}

  .hero {
    /* margin-top: 60px; */ /* Removed to eliminate line */
  }

  .logo {
    left: 54%; /* Move logo slightly more to the right */
    top: calc(50% + 5px); /* Move logo slightly down */
    transform: translate(-50%, -50%); /* Center horizontally and vertically */
    pointer-events: none; /* Make logo unclickable */
  }

  #hamburger-menu {
    width: 30px;
    height: 30px;
    padding: 0;
    display: flex !important; /* Ensure hamburger menu is visible */
    z-index: 1010; /* Standardized z-index */
    cursor: pointer; /* Indicate clickable */
  }

  .hamburger-menu .bar {
    width: 22px;
    height: 4px;
    margin: 3px auto;
    background-color: var(--primary-color) !important;
    transform-origin: center; /* Ensure transform origin is set */
  }


  body:not(.scrolled) #hamburger-menu {
    display: flex !important; /* Ensure hamburger menu is visible */
  }
  
  body:not(.scrolled) .language-switcher {
    display: flex !important;
  }
  
  .hamburger-menu.open .bar:nth-child(2) {
    opacity: 0;
  }

  .hamburger-menu.open .bar:nth-child(1) {
    transform: translateY(9.5px) rotate(45deg);
  }

  .hamburger-menu.open .bar:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .hero-image {
    min-height: 200px;
  }

  .language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
    position: absolute;
    left: 15px; /* Move to the left side */
    top: 15px; /* Align with hamburger button */
  }

  .language-switcher button {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
  }

  .nav-menu {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 150px; /* Move menu tabs further down */
    right: 0;
    height: 100vh;
    max-width: 400px;
    background-color: transparent; /* Remove background padding */
    /* backdrop-filter: blur(2px); */
    /* box-shadow: -12px 0 24px rgba(0, 0, 0, 0.3); */
    transform: translateX(100%);
    transition: transform 0.25s ease;
    opacity: 1;
    pointer-events: all;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 0;
    padding-right: 0;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu-inner {
    position: relative;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
    padding-right: 20px;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
    align-items: stretch;
    justify-content: flex-start;
    padding-top: 40px;
    flex-wrap: wrap;
  }

  .nav-links li {
    width: 100%;
    max-width: 100%;
    padding: 0;
    text-align: left;
    flex: none;
  }

  .nav-links a {
    display: block;
    width: 100%;
    padding: 8px 5px 7px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .nav-links a:hover {
    background-color: transparent;
  }

  .nav-links .cart-item-nav {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
  }

  .nav-links li .language-switcher button {
    padding: 0.5rem 1rem;
    font-size: 1rem;
  }

  .category-tabs-wrapper {
    position: sticky;
    top: 64px;
    z-index: 1005; /* Standardized z-index */
    background: transparent !important;
    box-shadow: none !important;
    padding: 6px 12px;
    overflow-x: auto;
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1999;
    backdrop-filter: blur(2px);
    transition: opacity 0.3s ease;
  }

  .menu-backdrop.hidden {
    display: none;
    opacity: 0;
  }

  .close-nav-btn {
    font-size: 1.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 15px;
    right: 15px;
    line-height: 1;
  }

  .hide-on-mobile {
    display: none !important;
  }

  .pizza-modal .modal-content {
    margin: 50% auto;
    width: 95%;
    max-width: none;
  }

  .hero-title[data-translate="your_cart_title"],
  .hero-subtitle[data-translate="review_your_order_subtitle"] {
    display: none;
  }
  }

/* Contact Page Responsiveness */
@media (max-width: 768px) {
  .contact-container {
    grid-template-columns: 1fr; /* Stack columns on mobile */
    padding: 0 1rem; /* Adjust padding for smaller screens */
  }

  .contact-images {
    grid-template-columns: 1fr; /* Stack images on mobile */
  }

  .contact-info h2,
  .contact-info p,
  .contact-info .phone-number,
  .contact-form-container h2 {
    text-align: center; /* Ensure text remains centered */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .contact-container {
    grid-template-columns: 1fr; /* Stack columns on tablets */
    padding: 0 1.5rem; /* Adjust padding for tablets */
  }

  .contact-images {
    grid-template-columns: 1fr 1fr; /* Keep two columns for images on tablets */
  }
}



/* Desktop Layout (1025px and up) */
@media (min-width: 1025px) {
  html {
    overflow-x: hidden; /* Remove horizontal scrollbar */
  }

  body {
    padding-top: 0; /* Remove space above hero image */
  }

  .logo {
    left: 60px; /* Move logo slightly to the right */
    top: calc(50% + 10px); /* Move logo slightly up */
    transform: translateY(-50%);
  }

  /* Removed .hamburger-menu rule */
  .nav-menu,
  #nav-menu {
    display: flex !important;
    position: static !important;
    transform: none !important; /* Explicitly remove transform */
    opacity: 1 !important;
    pointer-events: all !important;
    width: 100% !important;
    padding: 0 !important;
    box-shadow: none !important;
    justify-content: center !important;
    height: auto !important; /* Ensure height is auto */
    max-width: none !important; /* Remove max-width constraint */
    /* background: transparent !important; */ /* Ensure transparent background */
    border-left: none !important; /* Remove border */
    padding-top: 0 !important; /* Remove padding-top */
    padding-right: 0 !important; /* Remove padding-right */
    overflow: visible !important; /* Ensure content is visible */
  }

  .language-switcher {
    display: flex !important;
    margin-top: -10px;
  }

  .navbar .container {
    padding: 10px 0; /* Reduce padding for smaller navbar height */
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  #make-your-own-container .item-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  #make-your-own-container .item-image {
    height: 200px;
  }
}

@media (max-width: 768px) {
  .order-suggest {
    display: none;
  }

  body.scrolled .order-suggest {
    display: block;
  }
}

@media (max-width: 768px) {
  .checkout-section .form-group-row {
    flex-direction: column;
    gap: 0;
  }

  .checkout-section .form-group-row .form-group-half {
    min-width: 100%;
  }

  .checkout-section .form-group-row input {
    margin-bottom: 1rem;
  }

  .checkout-section .form-group-row input:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 768px) {
  .checkout-section .form-group input#pickup-date,
  .checkout-section .form-group input#delivery-date {
    color: var(--dark-text) !important; /* Ensure text is visible on mobile */
    background-color: #fff !important; /* Ensure a white background for the input field */
  }
}

@media (max-width: 768px) {
  .customer-info, .payment-section {
    padding: 1rem;
  }

  .form-group {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #after-hours-notice {
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 90%;
    max-width: 400px;
  }

  #after-hours-notice p {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  #menu-section .section-header h2 {
    font-size: 1.2em; /* Adjusted smaller font size for mobile banner */
    padding: 0 5px; /* Add some horizontal padding */
    line-height: 1.2; /* Adjust line height for better readability */
  }

  #menu-section .section-header {
    margin-top: -1rem; /* Create larger overlap with hero section */
  }

  #menu-section .section-header p {
    font-size: 0.9em; /* Adjusted smaller font size for mobile banner */
    padding: 0 5px; /* Add some horizontal padding */
    word-wrap: break-word; /* Ensure long words break */
    overflow-wrap: break-word; /* Ensure long words break */
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  #menu-section .section-header h2 {
    font-size: 1.5em; /* Adjusted slightly smaller for tablet banner */
    padding: 0 10px; /* Add some horizontal padding */
    line-height: 1.2; /* Adjust line height for better readability */
  }

  #menu-section .section-header {
    margin-top: -1rem; /* Create larger overlap with hero section */
  }

  #menu-section .section-header p {
    font-size: 1.1em; /* Adjusted slightly smaller for tablet banner */
    padding: 0 10px; /* Add some horizontal padding */
    word-wrap: break-word; /* Ensure long words break */
    overflow-wrap: break-word; /* Ensure long words break */
  }
}
