:root {
  --primary: #5c1f1f;
  --secondary: #e86a3e;
  --tertiary: #ff7f50;
  --background: #f7f3e9;
  --text: #5c1f1f;
  --white: #ffffff;
  --success: #4CAF50;
  --gray: #666666;
}

@import url("Fonts/WEB/css/technor.css");

body,
html {
  margin: 0;
  padding: 0;
  font-family: Technor-Regular;
  background-color: var(--background);
  color: var(--text);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px;
  position: relative;
}

.logo {
  padding-top: 60px;
  font-size: 42px;
  font-family: Technor-Black;
  margin-bottom: 20px;
}

.logo span {
  color: var(--secondary);
}

.main-image {
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 500px;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  transform: scale(1.05);
}

.slide.active {
  opacity: 1;
  transform: scale(1);
}

.slide img {
  height: 80%;
  object-fit: contain;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 24px;
  border-radius: 50%;
  z-index: 10;
  border: 1px solid var(--primary);
  background-color: rgba(255, 255, 255, 0.5);
}

.arrow img {
  width: 30px;
  height: 30px;
}

.arrow.left {
  left: 20px;
}

.arrow.right {
  right: 20px;
}

.title {
  font-size: 48px;
  font-family: Technor-Black;
  text-align: center;
  margin: 1px 0;
}

.subtitle {
  text-align: center;
  font-size: 24px;
  margin-bottom: 30px;
}

.subtitle span {
  color: var(--secondary);
}

.cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: var(--tertiary);
  color: var(--white);
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button-2 {
  display: inline-block;
  padding: 15px 30px;
  color: var(--tertiary);
  border: 1px solid var(--tertiary);
  text-decoration: none;
  border-radius: 15px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary);
}

.stats {
  text-align: center;
  margin-top: 20px;
}

.menu-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--primary);
  color: var(--white);
  padding: 15px 20px;
  border-radius: 15px;
  cursor: pointer;
  z-index: 1001;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: bottom 0.3s ease;
}

.menu-button.shift-up {
  bottom: 80px;
}

.menu-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(247, 243, 233, 0.95);
  overflow-y: auto;
  z-index: 99;
}

.menu-content {
  max-width: 1200px;
  margin: 0px auto;
  padding: 20px;
}

.category-grid {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-bottom: 30px;
  align-items: center;
  justify-content: center;
}

.category-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  justify-content: start;
  overflow: hidden;
  cursor: pointer;
  width: 300px;
}

.category-image {
  width: 80px;
  height: 80px;
}

.category-title {
  padding: 15px;
  font-size: 42px;
  font-weight: bold;
  color: var(--primary);
}

.menu-item {
  background-color: var(--white);
  padding: 20px;
  gap: 20px;
  border-radius: 15px;
  border: var(--primary) 1px solid;
  overflow: hidden;
  margin-bottom: 20px;
  display: flex;
}

.menu-item:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.menu-item-image-container {
  width: 180px;
  height: 180px;
  position: relative;
  align-self: center;
}

.menu-item-image {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border-radius: 25px;
}

.skeleton-loader {
  position: absolute;
  border-radius: 25px;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray);
  font-size: 14px;
}

@keyframes loading {
  0% {
      background-position: 200% 0;
  }
  100% {
      background-position: -200% 0;
  }
}

.menu-item-details {
  padding: 20px;
  flex-grow: 1;
}

.menu-item-title {
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--primary);
}

.menu-item-description {
  color: var(--gray);
  margin-bottom: 10px;
}

.menu-item-price {
  font-weight: bold;
  font-size: 18px;
  color: var(--tertiary);
  margin-bottom: 10px;
}

.order-button {
  background-color: var(--tertiary);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.order-button:hover {
  background-color: var(--secondary);
}

.back-button {
  display: none;
  margin-bottom: 20px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: var(--secondary);
}

.cart-counter {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 120px;
  background-color: var(--tertiary);
  border-radius: 15px;
  padding: 5px;
}

.cart-counter button {
  width: 30px;
  height: 30px;
  border: none;
  background-color: var(--white);
  color: var(--tertiary);
  font-size: 20px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

.cart-counter button:hover {
  background-color: #f0f0f0;
}

.cart-counter span {
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
}

.cart-notification {
  position: fixed;
  bottom: -100px;
  left: 0;
  right: 0;
  background-color: var(--tertiary);
  color: var(--white);
  padding: 15px;
  text-align: left;
  z-index: 1002;
  transition: bottom 0.3s ease-in-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-notification.show {
  bottom: 0;
}

.cart-notification .clear-button {
  background-color: var(--white);
  color: var(--tertiary);
  border: none;
  padding: 5px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.cart-notification .clear-button:hover {
  background-color: #f0f0f0;
}

.cart-notification .discount-message {
  margin: 5px 0 0;
  font-size: 0.9em;
}

.cart-arrow-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  align-self: center;
  justify-content: start;
  width: auto;
  padding: 10px;
  border: 1px solid var(--white);
  border-radius: 15px;
  gap: 5px;
  height: 20px;
  overflow: hidden;
}

.cart-arrow {
  width: 20px;
  height: 20px;
  color: var(--tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  cursor: pointer;
  font-size: 12px;
  border-radius: 50%;
  z-index: 10;
}

.delivery-options-panel {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--background);
  border-radius: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  z-index: 1003;
  width: 80%;
  max-width: 300px;
}

.delivery-options-panel h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--primary);
}

.delivery-option,
.location-option {
  display: block;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  background-color: var(--tertiary);
  color: var(--white);
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.delivery-option:hover,
.location-option:hover {
  background-color: var(--secondary);
}

.delivery-options-panel .close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--primary);
}

.location-options {
  display: none;
  margin-top: 20px;
}

.location-options h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--primary);
}

.success-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success);
  color: var(--white);
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
  .logo {
      font-size: 30px;
      padding-top: 0px;
  }

  .main-image {
      height: 300px;
  }

  .title {
      font-size: 36px;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .title .line {
      display: block;
  }

  .subtitle {
      font-size: 20px;
  }

  .cta-button,
  .cta-button-2 {
    padding: 10px 25px;
  }

  .menu-item {
      flex-direction: column;
      padding: 20px;
  }

  .menu-item-image-container {
      width: 90%;
      height: auto;
      aspect-ratio: 1 / 1;
      align-self: center;
  }

  .menu-item-image {
    border-radius: 15px;
  }

  .cart-counter {
      width: 100px;
  }

  .cart-counter button {
      width: 25px;
      height: 25px;
      font-size: 16px;
  }

  .cart-counter span {
      font-size: 16px;
  }
}

.order-button.paused {
  background-color: #888;
  cursor: not-allowed;
}

.message-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
  display: none;
  text-align: center;
  max-width: 90%;
}

.floating-back-button {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background-color: #e86a3e;
  color: white;
  border: none;
  border-radius: 15px; /* Changed from 50% to 8px for a rectangular shape */
  padding: 15px 20px; /* Added padding for better appearance */
  font-size: 16px;
  cursor: pointer;
  display: none;
  z-index: 1000;
  transition: bottom 0.3s ease; /* Added transition for smooth movement */
}

.floating-back-button.shift-up {
  bottom: 80px; /* Adjust this value to match the height of your cart notification */
}
