:root {
  --primary-color: #000000;
  --secondary-color: #ffffff;
  --text-color-primary: #333;
  --text-color-secondary: #777;
  --button-color: #000000;
  --button-text-color: #ffffff;
}
html{
  background-color: #333;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background: var(--primary-color);
}
.mobile-sidebar a {
  text-decoration: none;
  color: #333;
}

.header-regular {
  display: flex;
  align-items: center;
  padding: 10px 20px;
}

.header-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
}
.logo-wrapper img {
  max-height: 120px;
}

.main-menu {
  display: flex;
  gap: 20px;
  flex-wrap: wrap; /* ✅ Allows wrapping if too many items */
  justify-content: flex-end;
}

.main-menu a {
  text-decoration: none;
  color: #fff;
  /* Adjust for dark/light background */
  font-weight: 500;
}

.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  color: #fff;
}

/* Mobile view */
@media (max-width: 768px) {
  .main-menu {
      display: none !important;
  }
  .hamburger {
      display: block; /* Show the toggle button */
  }
}

#userGreeting {
  color: var(--text-color-primary);
  font-size: 0.9rem;
  display: flex;
  gap: 8px;
  align-items: center;
}

.title {
  color: var(--text-color-primary);
  text-align: center;
  margin: 24px 0 8px;
  font-size: 1.2rem;
}

.main-title {
  color: var(--text-color-primary);
  text-align: center;
  font-size: 2rem;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-color-primary);
  text-align: center;
  margin-bottom: 24px;
}

.categories {
  display: flex; /* This makes the section behave like a row */
  gap: 12px;
  padding: 0 16px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.category-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .1);
  transition: transform .2s;
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start
}

.categories::-webkit-scrollbar {
  height: 6px;
}

.categories::-webkit-scrollbar-thumb {
  background: rgba(192, 189, 189, 0.2);
  border-radius: 3px;
}

.category-card:hover {
  transform: translateY(-4px);
}

.category-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  background: #070707;
}

.category-card span {
  color: var(--text-color-secondary);
  display: block;
  padding: 8px;
  font-weight: 500;
}
.section-header {
  text-align: center;
  margin-bottom: 16px;
}

.categories-wrapper {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.products {
  padding: 0 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 100px;
}

.product-card {
  position: relative;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgb(0 0 0 / 30%)
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  padding: 10px;
}

.product-info {
  padding: 8px;
  text-wrap: balance;
  text-align: center;
}

.product-info h4 {
  color: var(--text-color-secondary, #555);
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.product-info p {
  color: var(--text-color-secondary, #555);
  font-size: 0.9rem;
}

.price-tag {
  color: var(--text-color-secondary, #555);
  font-weight: bold;
  margin-top: 4px;
}

.price-tax {
  font-size: 14px !important;
  color: var(--text-color-secondary, #555);
  margin-top: 4px;
}

.qty-buttons {
  padding: 10px;
  right: 4px;
  bottom: 4px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.qty-buttons button {
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(45, 106, 79, 0.85);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 960px;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}

.footer .summary {
  color: var(--text-color-secondary);
  text-align: center;
  font-size: 1.6rem;
}

.footer button {
  background: var(--button-color);
  color: var(--button-text-color);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.footer button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.footer button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.modal-footer button {
  background: var(--primary-color);
  color: var(--secondary-color);
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-footer button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.modal-footer button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.login-page {
  background-color: var(--secondary-color);
  min-width: 100%
}

.stock-badge {
  position: absolute;
  top: 0px;
  left: 0px;
  background-color: #dc3545;
  color: white;
  padding: 5px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
}

.guest-wrapper {
  background-color: var(--primary-color);
  color: var(--text-color-primary);
  width: 100%;
  margin: auto;
  padding: 24px 16px;
}

.guest-wrapper h2,
.guest-wrapper h3 {
  color: var(--text-color-primary);
  text-align: center;
  margin-bottom: 16px;
}

.guest-wrapper .info,
.guest-wrapper .item {
  color: var(--text-color-primary);
}

.item {
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #ddd;
}

.order-summary-text {
  color: var(--text-color-primary);
}

.order-items-preview {
  font-size: 0.85rem;
  margin-top: 4px;
  color: var(--text-color-primary);
}

.product-search {
  text-align: center;
}

/* Default (desktop) layout */
.header-with-logo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  flex-wrap: wrap;
}

.menu-half {
  display: flex;
  gap: 12px;
  flex: 1;
  justify-content: center;
}

.menu-left {
  justify-content: flex-start;
}

.menu-right {
  justify-content: flex-end;
}

.logo-wrapper {
  flex-shrink: 0;
  text-align: center;
}

.logo-wrapper img {
  height: 80px;
}

/* Hamburger only visible on mobile */
.hamburger {
  display: none;
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

/* Mobile sidebar */
.mobile-sidebar {
  position: fixed;
  top: 0;
  left: -260px;
  width: 250px;
  height: 100%;
  background-color: #fff;
  box-shadow: 2px 0 6px rgba(0, 0, 0, 0.3);
  transition: left 0.3s ease;
  z-index: 9999;
}

.sidebar-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-dropdown .dropdown-content {
  display: none;
  flex-direction: column;
  padding-left: 10px;
}
.sidebar-dropdown.open .dropdown-content {
  display: flex;
}
#closeSidebar {
  background: none;
  border: none;
  font-size: 24px;
  align-self: flex-end;
  cursor: pointer;
}

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


@media (max-width: 600px) {
  .footer {
    flex-direction: unset;
    gap: 8px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }

  .footer .summary {
    color: var(--text-color-secondary);
    text-align: center;
    font-size: 1.2rem;
  }

  .footer button {
    font-size: 0.8rem;
  }

  .order-summary-text {
    font-size: 1rem;
  }
}

/* Responsive behavior */
@media (max-width: 768px) {

  .menu-left,
  .menu-right {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .logo-wrapper {
    margin: 0 auto;
  }
}

.banners {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.banner img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 8px;
}

#bannerCarousel {
  overflow: hidden;
}

#bannerCarousel .carousel-item {
  height: 600px;
}

#bannerCarousel .carousel-item img {
  object-fit: fill;
  height: 100%;
  width: 100% !important;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  #bannerCarousel .carousel-item {
    height: 250px;
    /* Smaller height for mobile */
  }
}

.section-background{
  background: url('/storage/images/background-image.png') no-repeat center center; 
  background-size: cover;
}
.header-search input {
  max-width: 100%;
  width: 180px;
}
@media (max-width: 768px) {
  .header-search input {
    width: 100%;
  }
}

.dropdown-submenu {
  position: relative;
}

.dropdown-submenu .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
}
@media (min-width: 992px) { /* Desktop only */
  .dropdown-menu {
    display: none; /* Hide by default */
  }

  .dropdown:hover > .dropdown-menu,
  .dropdown-submenu:hover > .dropdown-menu {
    display: block; /* Show on hover */
  }

  .dropdown-submenu {
    position: relative;
  }

  .dropdown-submenu .dropdown-menu {
    top: 0;
    left: 100%; /* Open to the right */
    margin-top: 0;
    margin-left: 0;
  }
}
.dropdown-menu {
  transition: opacity 0.2s ease;
  opacity: 0;
  visibility: hidden;
}

.dropdown:hover > .dropdown-menu,
.dropdown-submenu:hover > .dropdown-menu {
  opacity: 1;
  visibility: visible;
}