html,
body,
.mdl-layout,
.mdl-layout__header,
.mdl-layout__drawer,
.mdl-layout__content,
.mdl-layout-title,
h1,
h2,
h3,
h4,
h5,
h6,
.mdl-card__title-text,
.mdl-navigation__link {
  font-family: 'Nunito Sans', sans-serif !important;
}

body {
}

header {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mdl-layout__content.homepage-visible {
  display: flex;
  flex-direction: column;
}

.mdl-layout__content {
  padding: 16px 6px;
}

.page-content {
  padding: 0;
}

.mdl-card {
  width: 100%;
  margin-bottom: 16px;
}

.mdl-card__title {
  background-size: cover;
  height: 180px;
}

.mdl-card__supporting-text {
  font-size: 16px;
  font-weight: 500;
}

.price {
  font-size: 20px;
  font-weight: 700;
  margin-top: 8px;
  text-align: right;
  max-width: 90%;
}

.mdl-layout__header-row {
  justify-content: center;
  align-items: center;
  padding: 0;
}

.mdl-layout__header-row .mdl-layout-spacer {
  flex-grow: 1;
}

#header-logo {
  height: 40px;
}

.mdl-layout-title {
  text-align: center;
  margin: 0;
}

#search-input-container {
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
}

#search-input-container .mdl-textfield {
  width: 100%;
}

#search-input-container .mdl-textfield__input {
  border-bottom: none;
}

.mdl-layout__drawer {
  width: 70% !important;
  transform: translateX(
    -100%
  ) !important; /* Ensure it's fully hidden when closed */
}

.mdl-layout__drawer.is-visible {
  transform: translateX(0) !important;
}

.mdl-layout.is-small .mdl-layout__drawer.is-visible ~ .mdl-layout__obfuscator {
  left: 70% !important;
  width: 30% !important;
}

.mdl-layout__drawer .mdl-layout-title {
  font-size: 20px;
  font-weight: bold;
  padding: 16px;
}

.mdl-layout__drawer .mdl-navigation__link {
  padding: 16px;
  font-size: 16px;
}

.working-hours-list {
  padding: 0 16px;
}

.working-hour-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.working-hour-day {
  font-weight: 600;
  margin-right: 8px;
}

.working-hour-time {
  text-align: right;
}

#social-media-links {
  display: flex;
  justify-content: space-around;
  padding: 16px;
}

#social-media-links a {
}

#social-media-links i {
  font-size: 24px;
}

#categories-container {
  overflow-x: auto;
  white-space: nowrap;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  padding: 0 16px; /* Added left and right padding */
  justify-content: flex-start; /* Ensure items start from the left */
}

#categories-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari and Opera */
}

.category-button {
  margin-right: 8px;
  border-radius: 10px;
  border: 1px solid #ccc;
}

.category-button.active {
}

.slideshow-container {
  position: relative;
  margin: auto;
}

.mySlides {
  display: block;
}

.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -22px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev:hover,
.next:hover {
}

.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
}

.fade {
  -webkit-animation-name: fade;
  -webkit-animation-duration: 1.5s;
  animation-name: fade;
  animation-duration: 1.5s;
}

@-webkit-keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.mdl-layout__header {
}

.mdl-layout__header-row {
  justify-content: center;
  align-items: center;
  padding: 0;
}

#header-logo {
  height: 40px;
}

.mdl-layout-title {
  text-align: center;
  margin: 0;
}

.product-card {
  display: flex;
  flex-direction: row;
  width: 100%;
  margin-bottom: 4px;
  border-radius: 10px;
  min-height: 100px;
}

.mdl-cell.mdl-cell--12-col {
  padding: 4px 0;
  margin: 0;
}

.mdl-grid {
  margin: 0;
  width: 100%;
}

.product-card.no-image {
  flex-direction: column; /* Stack content vertically */
}

.product-card.no-image .mdl-card__supporting-text {
  width: 100%; /* Take full width */
}

.product-card .mdl-card__supporting-text {
  flex-grow: 1;
}

.product-card .mdl-card__media {
  max-width: 120px;
  max-height: 100%;
  background-size: cover;
  background-position: center;
}

.product-card .mdl-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card .mdl-card__supporting-text h4 {
  font-size: 18px;
  margin-top: 0;
}

#homepage-title-container,
#category-name-container {
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 16px;
}

#homepage-description,
#category-details-container p {
  font-size: 16px;
  text-align: center;
}

#main-image-container {
  width: 100%;
  flex-grow: 1;
  margin-top: 16px;
  margin-bottom: 16px;
}

#main-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

#homepage-media-container {
  margin-top: 16px;
  margin-bottom: 16px;
  box-shadow: none;
  flex-grow: 1; /* Allow it to grow and fill space */
}

#homepage-media-container img,
#homepage-media-container iframe,
#homepage-media-container video {
  width: 100%;
  height: 100%; /* Make it fill the container */
  margin-bottom: 8px;
  border-radius: 8px;
  object-fit: cover;
}

#category-details-container {
  margin-bottom: 16px;
  box-shadow: none;
  padding: 0;
}

#category-details-container img,
#category-details-container iframe,
#category-details-container video {
  width: 100%;
  height: auto;
  max-height: 150px;
  margin-bottom: 8px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
  object-fit: cover;
}

.mdl-dialog {
  width: auto;
  max-width: 90%;
  padding: 0;
}

.mdl-dialog__content {
  padding: 0;
}

#popup-image,
#popup-video {
  width: 100%;
  height: auto;
  display: block;
}

.mdl-dialog__actions {
  padding: 8px;
  text-align: center;
}

#scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: none;
}

#popup-dialog::backdrop {
  backdrop-filter: blur(3px); /* Optional: blur the background content */
}

.blur-content {
  filter: blur(5px);
  transition: filter 0.3s ease;
}

/* Cart Styles */

.cart-item {
  margin-bottom: 10px;
}

.cart-item-header {
  font-size: 16px;
  font-weight: 500;
  margin-bottom: 6px;
}

.cart-item-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.add-to-cart-button {
  position: absolute;
  left: 8px;
  bottom: 8px;
  min-width: auto;
  width: 45px;
  height: 45px;
}

#cart-dialog .mdl-dialog__title {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  padding-top: 12px; /* Reduced top padding */
  padding-bottom: 12px;
}

#cart-dialog .mdl-dialog__content {
  padding: 20px 24px; /* Added horizontal padding */
}

#cart-dialog .mdl-dialog__title i {
  margin-right: 10px;
}

#cart-items-container {
  flex-grow: 1;
  overflow-y: auto;
  padding: 0 16px;
}

.cart-item {
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 10px;
}

.cart-item-name {
  font-weight: bold;
  font-size: 1.1em;
  flex-grow: 1;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.cart-item-controls span {
  min-width: 20px;
  text-align: center;
}

.cart-item-price {
  font-weight: bold;
  min-width: 70px;
  text-align: right;
}

#cart-subtotal {
  text-align: right;
  margin-top: 20px;
}

#cart-subtotal .subtotal-label {
  font-size: 0.9em;
  margin-right: 10px;
}

#cart-subtotal .subtotal-amount {
  font-size: 1.5em;
  font-weight: bold;
}

#cart-button .mdl-badge[data-badge]::after {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.cart-item-quantity-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Slideshow container */
.slideshow-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}

/* Hide the images by default */

.mySlides:not(:first-child) {
  display: none;
}

/* Next & previous buttons */
.prev,
.next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
}

/* Position the "next button" to the right */
.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

/* On hover, add a black background color with a little bit see-through */
.prev:hover,
.next:hover {
}

/* Caption text */
.text {
  font-size: 15px;
  padding: 8px 12px;
  position: absolute;
  bottom: 8px;
  width: 100%;
  text-align: center;
}

/* Number text (1/3 etc) */
.numbertext {
  font-size: 12px;
  padding: 8px 12px;
  position: absolute;
  top: 0;
}

/* The dots/bullets/indicators */
.dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 2px;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}

.active,
.dot:hover {
}

/* Fading animation */
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}

@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

#cart-button {
  overflow: visible;
}

/* Cart Panel Styles */
.cart-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 400px;
  height: 100%;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.cart-panel.is-visible {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 999;
}

.cart-overlay.is-visible {
  display: block;
}

.cart-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.cart-panel-title {
  display: flex;
  align-items: center;
}

.cart-panel-title h3 {
  margin: 0;
  margin-left: 16px;
}

.cart-panel-header h3 {
  margin: 0;
  font-size: 20px;
}

.table-number-container {
  padding: 16px;
  display: flex;
  justify-content: center;
}

.cart-panel-footer {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  border-top: 1px solid #eee;
}

#cart-dialog {
  border-radius: 6px;
}

#category-description-container {
  padding: 15px 0;
  font-size: 16px;
  text-align: center;
}

.mdl-layout__drawer-button {
  opacity: 0;
  display: none;
  visibility: 0;
}
