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

header button svg {
}

.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;
  color: var(--primary-color);
  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 {
  background-color: white;
  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 {
  color: inherit;
}

#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-left: 0;
  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.selected {
  background-color: #ff4081;
  color: white;
  border: 1px solid #ff4081;
}

.mdl-layout__header {
  background-color: white;
  color: black;
}

.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; /* Hidden by default */
  background-color: black;
}

#popup-dialog::backdrop {
  background-color: rgba(0, 0, 0, 0.7); /* Dark semi-transparent overlay */
  backdrop-filter: blur(3px); /* Optional: blur the background content */
}

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