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: 'Montserrat', 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 16px 100px 16px; /* Increased bottom padding for better visibility with persistent cart bar */
}

.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;
  background: #fff;
}

.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;
}

.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;
}

/* Persistent Cart Bar */
.persistent-cart-bar {
  display: none; /* Initially hidden */
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(
    255,
    255,
    255,
    0.6
  ); /* %60 opaklıkla beyaz arka plan */
  color: #000; /* Siyah yazı rengi */
  padding: 12px 24px;
  z-index: 100;
  justify-content: flex-start; /* Align items to the left */
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  gap: 16px; /* Add space between button and text */
  backdrop-filter: blur(5px); /* Hafif blur efekti ekleyelim */
}

#view-cart-button {
  margin: 0;
}

.persistent-cart-bar.is-visible {
  display: flex;
}

/* Product Customization Details/Summary */
.product-customization-details {
  margin-top: 16px;
  border: 1px solid var(--separator);
  border-radius: 4px;
  padding: 4px 8px;
}

.product-customization-summary {
  cursor: pointer;
  font-weight: bold;
  padding: 8px;
  outline: none; /* Removes the default focus outline */
}

.product-customization-summary::-webkit-details-marker {
  display: none; /* Hide the default triangle marker in Chrome/Safari */
}

.ingredients-list,
.extras-list {
  padding: 8px;
}

/* Language Overlay */
#language-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: opacity 0.5s ease-in-out;
}

#language-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.language-overlay-content {
  text-align: center;
}

#overlay-logo {
  max-width: 150px;
  margin-bottom: 24px;
}

#language-selection-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
}

.lang-box {
  cursor: pointer;
  border-radius: 8px;
  padding: 16px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  transition:
    background-color 0.3s,
    color 0.3s;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2); /* Daha belirgin box-shadow */
}

.lang-box:hover {
}

.lang-flag {
  font-size: 2.5rem;
}

.lang-name {
  margin-top: 8px;
}

#cart-snackbar {
  top: 10px;
  bottom: auto;
  left: 50%;
  transform: translate(-50%, -200%);
  z-index: 10000;
  max-width: 90%;
  transition: transform 0.25s ease-in-out;
}

#cart-snackbar.mdl-snackbar--active {
  transform: translate(-50%, 0);
}

/* Shared styling for Service Type and Payment Methods Containers */
.service-type-container,
.payment-methods-container,
.customer-info-group {
  padding: 0 16px;
  margin-bottom: 20px;
}

.service-type-container > label,
.payment-methods-container > label:first-of-type,
.customer-info-group > label {
  display: block;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 16px;
  color: #333;
}

/* Card-like styling for radio buttons (Service Type & Payment) */
.service-type-container .mdl-radio,
.payment-methods-container .mdl-radio {
  display: flex !important;
  position: relative;
  padding: 12px 16px;
  margin-bottom: 10px;
  background-color: #fff;
  border: 2px solid #eee;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  align-items: center;
  justify-content: center;
  height: 48px !important;
  width: 100% !important;
  box-sizing: border-box;
}

/* Hide inner MDL radio elements visually */
.service-type-container .mdl-radio__outer-circle,
.service-type-container .mdl-radio__inner-circle,
.service-type-container .mdl-radio__ripple-container,
.payment-methods-container .mdl-radio__outer-circle,
.payment-methods-container .mdl-radio__inner-circle,
.payment-methods-container .mdl-radio__ripple-container {
  display: none !important;
}

.service-type-container .mdl-radio__label,
.payment-methods-container .mdl-radio__label {
  margin-left: 0 !important;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  text-align: center;
}

/* Selected State */
.service-type-container .mdl-radio.is-checked,
.payment-methods-container .mdl-radio.is-checked {
  border-color: #ff5722; /* Primary color */
  background-color: #fff3e0;
  box-shadow: 0 4px 8px rgba(255, 87, 34, 0.1);
}

.service-type-container .mdl-radio.is-checked .mdl-radio__label,
.payment-methods-container .mdl-radio.is-checked .mdl-radio__label {
  color: #e64a19;
}

/* Service Type Flex Layout (Side by Side) */
.service-type-options {
  display: flex;
  gap: 10px;
}

.service-type-options .mdl-radio {
  flex: 1; /* Equal width */
}

/* Input Fields Styling (Customer Name, Table No, Note) */
.customer-info-group .mdl-textfield {
  width: 100%;
  padding-top: 0;
  margin-bottom: 10px;
}

.customer-info-group .mdl-textfield__input {
  border: 2px solid #eee;
  border-radius: 8px;
  padding: 12px;
  font-family: 'Montserrat', sans-serif;
  background-color: #fafafa;
  transition: all 0.3s;
  box-sizing: border-box;
  font-size: 15px;
  color: #333; /* Explicitly set text color */
}

.customer-info-group .mdl-textfield__input:focus {
  border-color: #ff5722;
  background-color: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  color: #333; /* Maintain text color on focus */
}

.customer-info-group .mdl-textfield__label {
  top: 14px;
  left: 14px;
  color: #999;
}

.customer-info-group
  .mdl-textfield--floating-label.is-focused
  .mdl-textfield__label,
.customer-info-group
  .mdl-textfield--floating-label.is-dirty
  .mdl-textfield__label {
  color: #ff5722;
  top: -8px;
  left: 10px;
  font-size: 12px;
  padding: 0 4px;
  visibility: visible;
}

.customer-info-group .mdl-textfield__label:after {
  display: none; /* Disable default bottom line animation */
}

/* Meal Card Options Grid */
#meal-card-options {
  margin-top: 10px !important;
  margin-left: 0 !important;
  padding: 12px !important;
  background-color: #fafafa !important;
  border-radius: 12px;
  border: 1px solid #eee;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

#meal-card-options .mdl-radio {
  height: 42px !important;
  padding: 0 8px;
  margin-bottom: 0;
  border: 1px solid #ddd;
  background-color: #fff;
}

#meal-card-options .mdl-radio.is-checked {
  border-color: #ff5722;
  background-color: #fff;
}

#meal-card-options .mdl-radio__label {
  font-size: 13px;
}
