#badagini-loader {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.badagini-spinner {
  border: 0.25rem solid rgba(0, 0, 0, 0.4); /* Thinner light background border */
  border-top: 0.25rem solid black; /* Thinner and darker border for animation */
  border-radius: 50%;
  width: 3rem;  /* Converted from 60px */
  height: 3rem; /* Converted from 60px */
  animation: spin 1s ease-in-out infinite; 
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

html, body {
  font-family: "Montserrat", sans-serif;
  margin: 0;
  padding: 0;
  scroll-behavior: smooth; /* Enables smooth scrolling */
}

.hidden {
  display: none;
}

/* Products Index Page */

.left-box,
.center-box,
.right-box {
  /* Force each box to appear side by side */
  display: inline-flex;
  align-items: center;
  /* Optional: add margin to space them out */
  margin: -4px 8px;
  
}

/************ Right box specifically ************/
.right-box {
  justify-content: center;       /* horizontally center the content */
  border: 2px solid white;
  border-radius: 10px;
  padding: 13px;                 /* spacing inside the box */
  height: 12px;                  /* fixed height */
  width: 12px;      
  margin-right: 10px;          /* fixed width to create a square */
}

.category-heading {
  text-align: left;
  font-size: 24px;
  font-weight: bold;
  display: inline-block;
  padding-top: 4px; /* Adjust padding as needed */
  padding-left: 20px;
  padding-right: 20px;
  margin-bottom: 32px;
  white-space: nowrap;
  width: 100%;
  color: #121212;

}

.menu-item {
  display: flex;
  background: white;
  margin-bottom: 20px;
  overflow: hidden; /* Clip the children to the border radius */
  position: relative; /* Needed for absolute positioning of the image */
  min-height: 120px;
  max-height: 120px;
  box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.2);
  border-radius: 24px;
  font-size: 14px;
  margin-left: 12px;
  margin-right: 12px;
}

.menu-image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 36%;
  overflow: hidden;
}

.menu-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.menu-item:hover .menu-image img {
  transform: scale(1.1);
}

/* 
   Convert .item-info into a grid:
   - 1st row: enough space for up to 2 lines of .name (no cropping).
   - 2nd row: auto height for .price (1 line).
   - 3rd row: enough space for exactly 2 lines of #description.
*/
.item-info {
  padding: 8px;
  margin-left: 38%;   /* Start the text area ~40% from the left */
  display: grid;
  grid-template-rows: 3em 1.8em 2.5em; /* tweak these values as needed */
  row-gap: 1px;       /* spacing between rows (optional) */
  flex-grow: 1;
}

.menu-item.no-image .item-info {
  margin: 16px;
  margin-top: 4px;
}

/* 
   .name can be 1 or 2 lines without cropping.
   The grid row is 3.2em tall, which is enough for 2 lines at line-height ~1.5 (48px+).
*/
.name {
  grid-row: 1;                /* top row */
  font-weight: 600;
  margin: 0;                  /* remove default <p> margin */
  font-size: 16px;
  line-height: 1.2;           /* a comfortable line height */
  display: -webkit-box;
  -webkit-line-clamp: 2;      /* allow up to 2 lines, then truncate */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
  color: #000000;
}

/* Price goes in the second (auto) row. Just a single line is typical. */
.price {
  grid-row: 2;
  font-weight: 500;
  margin: 0;  /* or adjust as needed */
  color: #000000;
  font-size: 14px;
}

/*
   Description is forced to exactly 2 lines by:
   - grid-template-rows: 2.8em, and
   - -webkit-line-clamp: 2.
*/
#description {
  grid-row: 3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #999999;
  line-height: 1.1;   /* about 19.5px per line => ~39px total (2.8em is ~44.8px) */
  margin: 0;
  margin-bottom: 2px;
  font-weight: 500;
  font-size: 14px;
}

.bg-light-gray {
  background-color: #f2f2f2; /* A light gray color, slightly darker than white */
}

* {box-sizing:border-box}

/* app/assets/stylesheets/application.css */

.fixed-header {
  display: flex;
  align-items: center;
  justify-content: center; /* default center alignment */
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
  height: 64px;
}

/* For logo-only headers, align content to the left */
.fixed-header.logo-only {
  justify-content: flex-start;
}

/* Modifier for headers that need space between items */
.fixed-header.space-between {
  justify-content: space-between;
}

.fixed-header form.back-button,
.fixed-header form.back-button button {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: none;
  border: none;
}

/* Default back button styling for headers that use absolute positioning */
.back-button {
  position: absolute;
  left: 12px;
  background: none;
  border: none;
  cursor: pointer;
}

/* When used inside a space-between header, override absolute positioning */
.back-button.static {
  position: static;
  transform: none;
  margin-left: 12px;
}

/* Common flex container for back button content */
.back-button-content {
  display: flex;
  align-items: center;
}

/* Icon sizes for the back button variant */
.back-icon {
  width: 32px;
  height: 32px;
}

/* Shared logo style when used with a back button */
.back-logo {
  width: auto;
  height: 28px;
}

/* Account icon on the right in the back+account header */
.account-icon {
  width: 32px;
  height: 32px;
  margin-right: 16px;
}

.vertical-lines {
  position: absolute;
  right: 20px;              /* Adjust as needed */
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;  
}

.vertical-line {
  width: 20px;             /* Thickness of each line */
}


#indicators-carousel {
  border-top: 2px solid rgba(0, 0, 0, 0.1);
}

.fixed-bottom {
  display: flex; /* No need for flex if you want the button to fill the width */
  position: fixed;
  bottom: 0;
  width: 100%;
  z-index: 10;
  height: 96px;
  padding: 4px 16px; /* Simplified padding for even spacing */
  align-items: center;
  background-color: #ffffff;
}

.scrollable-content {
  overflow-y: auto;
  padding-bottom: 120px;
}

.img-show-page {
  width: 100%;
  height: 280px; /* Width:Height = 4:3, so height is 3/4 of the width */
  object-fit: cover;   /* Optional, if it's an <img> or video and you want to control how the content fills the container */
}

.product-details {
  /* align-items: left;
  text-align: center;
  justify-content: center; */
  padding: 8px; /* Adds some space around the content */
}


.product-name {
  margin: 12px;
  font-size: 20px;
  font-weight: bold;
  line-height: normal; /* Adjust this as needed for your specific font */
  color: #000000;
}


.product-price {
  font-size: 18px; /* Adjust size as needed */
  margin: 14px 12px; /* Adds space above and below */
  /* Additional styling as needed */
  color: #585858;
  font-weight: 600;
}

.product-description {
  margin: 24px 8px 0px 12px;
  font-size: 16px; /* Adjust size as needed */
  /* Adds space above and below */
  /* Additional styling as needed */
  color: #585858;
  font-weight: 500;
  line-height: 1.3;
}

.custom-textarea {
  width: 90%; /* Adjust this value as needed */
  height: 110px;
  margin-left: auto;
  margin-right: auto;
  resize: none;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 28px;
  font-size: 16px;
  font-weight: 500;

}

.custom-textarea::placeholder {
 color: #B2B2B2;
 padding-top: 4px;
 font-weight: 500;
}


.custom-decrement-btn, .custom-increment-btn, .custom-add-to-cart-button {
  background-color: black !important;
  color: white !important;
  width: 32px; /* Square dimensions */
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 10px; /* Rounded edges */
  touch-action: manipulation;
}

.custom-decrement-btn svg, .custom-increment-btn svg {
  fill: white !important;
  stroke: white !important;
}

.custom-quantity-input {
  display: flex;
  width: 48px; /* Make the input square */
  height: 36px;
  text-align: center;
  border: 1px solid rgba(0, 0, 0, 0);
  border-radius: 5px;
  font-weight: bold;
}

.custom-add-to-cart-button {
  justify-content: center;
  border: none;
  border-radius: 5px; /* Rounded edges */
  width: 56%; /* Adjust the width as needed */
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.flex.items-center.justify-start.space-x-2 {
  display: flex;
  align-items: center;
  justify-content: flex-start; /* Align items to the start (left) */
  gap: 4px; /* Adjust gap between elements */
}

.data-display-container {
  display: inline-flex;
  align-items: center; 
  margin-bottom: 16px; /* Space above your existing elements */
  margin-left: 20px;
  margin-right: 8px;
  margin-top: 16px;
  font-size: 16px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 14px;
  padding-left: 4px;
  padding-right: 4px;
  padding-top: 1px;
  padding-bottom: 1px;
  background-color: white;

}

/* Cart Show Page */
.cart-card {
  /* Style for the card */
  margin-top: 0; /* Padding inside the card */
  margin: 20px;
  margin-bottom: 0;
  font-size: 14px;

}

.cart-column {
  /* Style for each column */
  flex: 1;
  padding: 4px;
  /* Add more styling as needed */
}

.cart-column-quantity {
  display: inline-flex; /* Allows the box to adjust to the size of its content */
  justify-content: center; /* Center the content horizontally */
  align-items: center; /* Center the content vertically */
  background-color: #e4e4e4;
  border-radius: 5px;
  padding: 16px; /* Minimal padding around the number */
  height: 16px; /* Height relative to font size */
  width: 16px;
  font-size: 14px;
}

.cart-column-options {
  color: #7F7F7F;
  font-size: 14px;
  margin-top: -16px;
  margin-bottom: 8px;
  font-weight: 500;
}

.cart-column-name {
  margin-left: 8px;
  margin-right: auto;
}

.cart-row-section {
  display: flex;
  align-items: center; /* Vertically align the images and details */
  margin-bottom: 20px;
  margin-top: 12px;
}

.cart-image {
  width: 64px; /* Adjust as needed */
  height: 64px; /* Same as the width to make it a perfect square */
  object-fit: cover; /* Ensures the image covers the entire area without distortion */
  margin-bottom: 8px;
}

.cart-column-details {
  display: flex;
  flex-direction: column; /* Stack name and price vertically */
  justify-content: center; /* Center details vertically */
  flex-grow: 1;

}

.cart-show-column-name {
  font-weight: 600;
  color: #000000;
  font-size: 16px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-show-column-price {
  color: #7F7F7F;
  margin-top: 2px;
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-column-quantity-controls {
  display: flex;
  align-items: center; /* Aligns the quantity controls horizontally */
  justify-content: flex-end;
  margin-left: 4px;
  margin-bottom: 8px;
}

.quantity-svg {
  width: 12px; /* Adjust based on your preference */
  height: 12px; /* Adjust to match the width for consistency */
}


.cart-decrement-btn, .cart-increment-btn, .cart-delete-btn {
  background-color: black !important;
  color: white !important;
  width: 28px; /* Square dimensions */
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  border-radius: 10px; /* Rounded edges */
  touch-action: manipulation;
}

.cart-decrement-btn, .cart-delete-btn {
  margin-left: 4px;
}

.cart-decrement-btn svg, .cart-increment-btn svg, .cart-delete-btn svg {
  fill: white !important;
  stroke: white !important;
}

.cart-quantity-input {
  height: 28px; /* Adjusted to match button height for uniformity */
  width: 28px; /* Width to maintain square shape */
  text-align: center;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-weight: bold;
  font-size: 16px; /* To match .cart-column-quantity font size */
  line-height: 45px; /* Adjust line height to vertically center text in input */
  margin-inline: 6px; /* Adjust margin as needed */
  padding: 0; /* Minimal padding to allow text to be centered */
  color: #404040;
}

.custom-placeholder::placeholder {
  font-weight: 500; 
  color: #B2B2B2;
}


.empty-cart {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;

}

.subtotal, .vat, .total, .promo, .discount {
  display: flex;
  justify-content: space-between; /* This will space out the spans */
  margin: 32px;
  margin-bottom: 0px;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 500;

}

.total {
  margin-bottom: 40px;
  font-weight: bold;
  color: #404040;
}

.vat {
  color: #7F7F7F;
}

.promo {
  color: green;
}

.discount {
  color: green;
  font-weight: bold;
}

.subtotal {
  margin-top: 48px;
  color: #7F7F7F;
}

.buy-now-button {
  width: 100%; /* Make the button fill the available width */
  background-color: black;
  padding: 14px 0; /* Adjust vertical padding, horizontal padding removed */
  border: none;
  border-radius: 20px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  color: #FFFFFF;
}

.final-message {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #787878;
}

.btn-fixed-width {
  width: 100px; /* Set your desired width */
  height: 50px;
  border-color: #a4a4a4;
  border: 2px solid rgba(0, 0, 0, 0.1);
}

.btn-active {
  border-color: black;
  border-width: 2px;
}

.chart-section { 
  margin: 16px;
  padding: 8px;
  margin-left: 32px;
}

.chart-border {
  border: 2px solid black;
  border-radius: 1rem;
}

.chart {
  margin: 16px;
}

.swal2-confirm,
.swal2-cancel {
  background-color: black !important;  /* Confirm button default blue */
  color: #fff !important;                /* White text */
  border: none !important;
}

.swal2-cancel {
  background-color: #d33 !important;     /* Cancel button default red */
}

.swal2-confirm:hover,
.swal2-cancel:hover {
  opacity: 0.8;
}

.coin {
  display: inline-block;
  border-radius: 50%;
  background: #fff41f55;
  margin-left: 4px; 
  vertical-align: middle;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
}
.blink {
  animation: blink 1s infinite;
}
