:root {
  --primary-dark: rgb(10, 80, 112); /* fallback */
  --primary-dark-rgb: 10, 80, 112;
  --primary-color: rgb(34, 110, 145);

  --color-text-muted: #64748b;
  --shadow-sm: 0 4px 12px rgba(var(--primary-dark-rgb), 0.4);
  --shadow-md: 0 6px 16px rgba(var(--primary-dark-rgb), 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE */
  user-select: none; /* Modern browsers */

  -webkit-touch-callout: none; /* iOS long-press menu */

  font-family: "Poppins", sans-serif;
  font-weight: 400;
  color: #fff;
  max-width: 100%;
  box-shadow: 0px 0px 3px #444;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100svh;
}
.navbar {
  width: 100%;
  height: 120px;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(rgba(26, 26, 46, 0.6), rgba(26, 26, 26, 0.9)),
    var(--banner-url);

  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.navbar-content {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  width: 100%;
  justify-content: space-between;
}
.navbar-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 1);
  overflow: hidden;
}
.navbar-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.navbar-text {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  flex-grow: 1;
}
.floating-cart-btn {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: white;
  padding: 14px 24px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: normal;
  font-family: "Poppins", sans-serif;
  box-shadow: var(--shadow-sm);
  z-index: 999;
  transition: all 0.3s ease;
}
.floating-cart-btn:hover {
  background-color: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateX(-50%) translateY(-3px);
}
.floating-cart-btn.visible {
  display: flex;
}
.floating-cart-btn.hidden-overlap {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(20px);
}
/* Sticky Navigation Bar */
.sticky-navbar {
  position: sticky;
  top: 0;
  width: 100%;
  height: 60px;
  background-color: white;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 900;
  transition: all 0.3s ease;
  animation: slideDown 0.3s ease-in-out;
}
.sticky-navbar.visible {
  display: flex;
}
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.sticky-navbar-name {
  font-family: "Playfair Display", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: black;
  margin: 0;
}
.scroll-to-top-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #eee;
  color: black;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.scroll-to-top-btn:hover {
  background-color: #f9f9f9;
  transform: translateY(-2px);
}
/* Tablet & Desktop - Media Queries */
/* Order Details Modal */
.order-details-modal {
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1002;
  min-width: 350px;
}
.variant-modal {
  position: fixed;
  display: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1005;
  width: 90%;
  max-width: 320px;
  text-align: center;
}
.variant-modal h3 {
  margin-bottom: 15px;
  color: var(--primary-color);
  font-size: 1.1rem;
}
.variant-options {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 60vh;
  overflow-y: auto;
}
.variant-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}
.variant-row:last-child {
  border-bottom: none;
}
.variant-info {
  text-align: left;
  display: flex;
  flex-direction: column;
}
.variant-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}
.variant-price {
  font-size: 0.85rem;
  color: #666;
}
.order-details-modal h3 {
  color: black;
  margin-bottom: 20px;
  text-align: center;
  font-size: 1.1rem;
}
.order-details-modal input,
.order-details-modal select {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  font-size: 0.9rem;
  box-sizing: border-box;
  background-color: #fff;
  font-family: "Poppins", sans-serif;
}
.order-details-modal textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #d2d2d2;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  resize: vertical;
  min-height: 80px;
  box-sizing: border-box;
}
.order-modal-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s ease;
}
.order-modal-btn:hover {
  background-color: var(--primary-dark);
}
.order-modal-cancel {
  width: 100%;
  padding: 10px;
  background-color: #e0e0e0;
  color: black;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  margin-top: 10px;
}
.order-modal-cancel:hover {
  background-color: #d0d0d0;
}

.order-modal-cancel-continue {
  background-color: var(--primary-color);
  color: white;
}

.order-modal-cancel-continue:hover {
  background-color: var(--primary-dark);
}

.modal-overlay {
  position: fixed;
  display: none;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
/* Utility */
.navbar-info {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
  line-height: 28px;
}
.navbar-tagline {
  font-size: 0.9rem;
  margin: 0;
  line-height: 18px;
  color: #fff;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 1);
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}
.c-padding {
  padding: 0px 16px;
}
main {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.container {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  gap: 20px;
  flex: 1;
}
.category-section {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.category-title {
  font-size: 1.1rem;
  color: black;
  font-weight: bold;
  border-bottom: 3px solid var(--primary-color);
  padding-bottom: 10px;
  margin-top: 5px;
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s ease;
}
.category-title:hover {
  opacity: 0.8;
}
.category-toggle {
  font-size: 1rem;
  transition: transform 0.3s ease;
  width: 28px;
  height: 28px;
}
.category-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
  /* max-height: 2000px; */
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    opacity 0.3s ease;
  opacity: 1;
}
.category-items.collapsed {
  max-height: 0;
  opacity: 0;
  gap: 0;
}
.category-toggle.collapsed {
  transform: rotate(-90deg);
}
.food-item {
  display: flex;
  flex-direction: row;
  gap: 12px;
  width: 100%;
  height: auto;
  /* min-height: 100px; */
  border-bottom: 1px solid #d2d2d2;
  padding: 10px 0;
}
.food-img {
  width: 55px;
  height: 55px;
  min-width: 55px;
  min-height: 55px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f5f5f5;
}
.food-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.food-desc {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.food-desc-head {
  font-size: 0.95rem;
  color: black;
  font-weight: 600;
  margin: 0;
}
.food-desc-materials {
  color: #8b8b8b;
  margin: 2px 0;
  font-size: 0.7rem;
  line-height: 1.4;
}
.food-desc-price {
  color: black20px;
  color: black;
  font-size: 0.95rem;
}
.cart-desc {
  font-weight: normal;
  text-align: center;
  margin-bottom: 10px;
}
.cart-details {
  margin: 0 0 15px 0;
  color: black;
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
  gap: 12px;
  border-bottom: 2px dashed #d2d2d2;
}
.cart-header {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 15px 0 0 0;
  /* border-bottom: 2px solid #f0f0f0; */
  padding-bottom: 10px;
}
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}
.cart-item:last-child {
  border-bottom: none;
}
.cart-item-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cart-item-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #2d2d2d;
}
.cart-item-remove {
  font-size: 0.8rem;
  color: #999;
  cursor: pointer;
  transition: color 0.2s;
  width: fit-content;
}
.cart-item-remove:hover {
  color: #ff4d4d;
  text-decoration: underline;
}
.cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.cart-qty-box {
  display: flex;
  align-items: center;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.cart-qty-btn {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  border: none;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.cart-qty-btn:hover {
  background: #eee;
}
.cart-qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: #333;
}
.cart-item-price {
  font-weight: 600;
  font-size: 0.95rem;
  color: #333;
}
.total-price {
  display: flex;
  justify-content: space-between;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 15px 0;
  padding-top: 15px;
  /* border-top: 2px dashed #d2d2d2; */
  color: #000;
}
.btn-order {
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  width: 100%;
  margin-top: 15px;
  padding: 14px;
  background-color: var(--primary-color);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-order:hover {
  background-color: var(--primary-dark);
}
.order-qty {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.8rem;
}
.item-controls-wrapper {
  display: flex;
  flex-direction: column;
  align-items: end;
  justify-content: center;
  min-width: 90px;
}
.variant-caption {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.add-btn {
  background-color: var(--primary-color);
  border: none;
  outline: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  font-weight: bold;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.add-btn:hover {
  background-color: var(--primary-dark);
}
.options-btn {
  background-color: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-size: 0.8rem;
  width: auto;
  padding: 0 10px;
}
.qty-control-inline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0;
  flex-shrink: 0;
  height: fit-content;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}
.qty-btn-inline {
  width: 32px;
  height: 32px;
  border: none;
  background: #f9f9f9;
  color: var(--primary-color);
  font-size: 1.1rem;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qty-btn-inline:hover {
  background-color: #eee;
  color: var(--primary-color);
}
.qty-display-inline {
  font-size: 0.9rem;
  color: #333;
  font-weight: bold;
  min-width: 24px;
  text-align: center;
}
/* Search Bar */
.search-wrapper {
  margin-bottom: 20px;
  flex-direction: column;
}


.search-wrapper input {
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.search-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}
input {
  width: 100%;
  height: 45px;
  padding: 12px 15px;
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #757575;
  outline: none;
  border: 1px solid #d2d2d2;
  border-radius: 4px;
  box-sizing: border-box;
}
input:focus {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-sm);
  outline: none;
}
.order-details-modal textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: var(--shadow-sm);
}

.order-confirm-text {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

/* Welcome Message */
.thank-you-conatiner {
  width: 100%;
  min-height: 100px;
  background: #ecfdf5;
  border-radius: 4px;
  color: var(--primary-color);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  padding: 20px;
}
/* Utility */
.hidden {
  display: none;
}

/* Tablet & Desktop - Media Queries */
@media (min-width: 640px) {
  body {
    max-width: 650px;
    margin: 15px auto;
    border-radius: 16px;
  }
  .navbar {
    height: 140px;
    border-radius: 16px 16px 0 0;
  }
  .navbar-content {
    gap: 15px;
    padding: 0 30px;
  }
  .navbar-logo {
    width: 60px;
    height: 60px;
  }
  .navbar-info {
    font-size: 1.4rem;
    line-height: 28px;
  }
  .navbar-tagline {
    font-size: 0.95rem;
    line-height: 17px;
  }
  main {
    padding: 30px;
  }
  .c-padding {
    padding: 0px 30px;
  }
  .container {
    gap: 25px;
  }
  .category-section {
    gap: 18px;
  }
  .category-title {
    font-size: 1.15rem;
    padding-bottom: 11px;
  }
  .category-toggle {
    font-size: 1.1rem;
  }
  .category-items {
    gap: 18px;
  }
  .food-item {
    gap: 16px;
    min-height: 55px;
    padding: 12px 0;
  }
  .food-img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
  }
  .food-desc-head {
    font-size: 1rem;
    margin-bottom: 5px;
  }
  .food-desc-materials {
    font-size: 0.85rem;
    margin: 5px 0;
  }
  .food-desc-price {
    font-size: 1rem;
    margin-top: 5px;
  }
}

@media (min-width: 900px) {
  body {
    max-width: 800px;
    margin: 20px auto;
    border-radius: 16px;
  }
  .navbar {
    height: 160px;
    border-radius: 16px 16px 0 0;
  }
  .navbar-content {
    gap: 18px;
    padding: 0 40px;
  }
  .navbar-logo {
    width: 70px;
    height: 70px;
  }
  .navbar-info {
    font-size: 1.6rem;
    line-height: 32px;
  }
  .navbar-tagline {
    font-size: 1rem;
    line-height: 18px;
  }
  main {
    padding: 40px;
  }
  .c-padding {
    padding: 0px 40px;
  }
  .container {
    gap: 28px;
    max-width: 900px;
  }
  .category-section {
    gap: 20px;
  }
  .category-title {
    font-size: 1.35rem;
    padding-bottom: 12px;
    margin-top: 10px;
  }
  .category-toggle {
    font-size: 1.2rem;
  }
  .category-items {
    gap: 20px;
  }
  .food-item {
    gap: 20px;
    min-height: 130px;
    padding: 15px 0;
  }
  .food-img {
    width: 80px;
    height: 80px;
    min-width: 80px;
    min-height: 80px;
  }
  .food-desc-head {
    font-size: 1.2rem;
    margin-bottom: 6px;
  }
  .food-desc-materials {
    font-size: 0.9rem;
    margin: 6px 0;
  }
  .food-desc-price {
    font-size: 1.15rem;
    margin-top: 6px;
  }
}

/* Utility */
.hidden {
  display: none;
}

@media (max-width: 530px) {
  main {
    padding: 20px;
  }
  .food-item {
    gap: 10px;
  }
  .food-img {
    font-size: 60px;
  }
}

.checkout-container {
  margin-top: 3rem;
  padding-top: 1rem;
  margin-bottom: 3rem;
  border-top: 2px dashed #d2d2d2;
}

.checkout-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.date-picker {
  display: flex;
  gap: 12px;
  padding: 8px 16px 24px 16px;
  /* background: #f6f8fb; */

  border-bottom: 2px dashed #d2d2d2;
}

.date-card {
  flex: 1;
  background: #ffffff;
  border-radius: 14px;
  padding: 6px 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.date-card .day-label {
  font-size: 12px;
  color: #7a7a7a;
}

.date-card .date-number {
  font-size: 22px;
  font-weight: 600;
  margin: 0px 0;
  display: block;
  color: #7a7a7a;
}

.date-card .month-label {
  font-size: 11px;
  color: #9a9a9a;
}

/* Today (slightly dull) */
.date-card[data-offset="0"],
.date-card[data-offset="3"] {
  opacity: 0.5;
  transform: scale(0.8);
}

/* Selected (Tomorrow default) */
.date-card.selected {
  /* background: var(--primary-color); */
  border: 1px solid var(--primary-color);
  /* color: #ffffff; */
  transform: scale(1.2);
  /* padding: 14px 8px; */
  /* box-shadow: 0 8px 20px rgba(45, 140, 255, 0.35); */
  opacity: 1;
}

.date-card.selected .day-label,
.date-card.selected .date-number,
.date-card.selected .month-label {
  color: var(--primary-color);
}

/* Tap animation */
.date-card:active {
  transform: scale(0.96);
}

.footer {
  display: flex;
  gap: 36px;
  justify-content: center;
  margin: 2rem 0;
  margin-top: 1rem;
}

.share-icon,
.qr-icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: none;
  border-radius: 10px;
  background-color: white;
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
  z-index: 99;
  color: var(--color-text-muted);
  transition: all var(--transition-smooth);
}

.share-icon:hover,
.qr-icon:hover {
  background-color: var(--primary-color);
  color: white;
  fill: white;
}

.share-icon:hover svg,
.qr-icon:hover svg {
  fill: white;
}

.share-icon svg,
.qr-icon svg {
  transition: all var(--transition-smooth);
  fill: var(--primary-color);
}

.branding-watermark {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  justify-content: center;
}

.branding-watermark strong {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.branding-watermark a {
  color: var(--primary-color);
  text-decoration: none;
}

/* MODAL OVERLAY */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* MODAL BOX */
.modal-content {
  background: #fff;
  padding: 48px 20px 20px 20px;
  border-radius: 8px;
  width: 340px;
  text-align: center;
  position: relative;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 20px;
  cursor: pointer;
  color: #000;
}

#previewBox {
  width: 300px;
  height: 324px;
  margin: 10px auto;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

#previewBox canvas {
  width: 100%;
  height: 100%;
}

#downloadBtn {
  padding: 12px 20px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  color: #fff;
  margin-top: 10px;
  background: var(--primary-color);
}

#downloadBtn:hover {
  background: var(--primary-dark);
  color: #fff;
}
