.catering-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
}

.catering-popup.active {
  display: block;
}

.popup-overlay {
  background: rgba(0, 0, 0, 0.7);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.popup-content {
  background: #d4c266;
  width: 90%;
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  z-index: 10000;
  overflow-y: auto;
  max-height: 90%;
}


.product-name a {
    text-decoration: none !important;
    color: #5d0808 !important;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  background: transparent;
  font-size: 28px;
  border: none;
  cursor: pointer;
}

.popup-tabs button {
  background: #5d0808;
  color: #fff;
  padding: 10px 15px;
  border: none;
  margin: 0 5px;
  cursor: pointer;
  font-family: jost, Arial, sans-serif;
  font-weight: 500;
}
.popup-tabs button.active {
  background: green;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.product-grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  flex: 1 1 200px;
}

/* Parent tabs */
.popup-tabs {
  text-align: center;
  margin-bottom: 80px;
}
.popup-tabs button {
  background: #5d0808;
  color: #fff;
  padding: 12px 25px;
  border: none;
  margin: 5px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 3px;
}
.popup-tabs button.active {
  background: green;
}

/* Daily child tabs */
.day-tabs {
  text-align: center;
  margin: 15px 0;
}
.day-tabs button {
  background: #5d0808;
  color: #fff;
  padding: 8px 20px;
  border: none;
  margin: 3px;
  cursor: pointer;
  font-weight: 500;
  border-radius: 3px;
}
.day-tabs button.active {
  background: green;
}

.page-id-729 .product-grid {
     display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 20px;
}

.page-id-729 .product-card{
    width:100% !important;
}

/* Product cards */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: flex-start;
  margin-top: 20px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
  width: calc(33.333% - 20px);
  text-align: center;
}
.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}
.product-card h4 {
  font-size: 1rem;
  margin: 10px 0;
  color: #5d0808;
  text-transform: uppercase;
  font-family: jost, Arial, sans-serif;
}
.product-card .price {
  font-weight: bold;
  color: #000;
  font-family: jost, Arial, sans-serif;
}
.product-card label {
  display: block;
  margin: 10px 0;
  font-family: jost, Arial, sans-serif;
}
.product-card input,
.product-card select {
  width: 60px;
  text-align: center;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.product-card button {
  background: #5d0808;
  color: #fff;
  padding: 8px 18px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}
.product-card button:hover {
  background: #4a0606;
}

.popup-tabs button,
.day-tabs button {
  background: #5d0808;
  color: #fff;
  padding: 12px 20px;
  border: none;
  margin: 4px;
  cursor: pointer;
  font-weight: 600;
  border-radius: 4px;
}
.popup-tabs button.active,
.day-tabs button.active {
  background: #2f7a2f;
}

/* product layout (as requested) */
.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.product-card {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  width: calc(33.333% - 20px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  text-align: center;
}
.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
}
.product-card h4 {
  margin: 10px 0 6px;
  text-transform: uppercase;
  color: #5d0808;
  font-size: 0.98rem;
}
.product-card .price {
  font-weight: 700;
  margin-bottom: 8px;
}

/* make selector and button on separate rows (Order by Tray) */
.product-card label {
  display: block;
  margin-bottom: 8px;
}
.product-card select {
  display: block;
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}
.product-card .add-to-cart {
    font-family: 'Jost';
    display: block;
    width: 100%;
    padding: 10px 0;
    font-weight: 600;
}
/* Disabled button style */
.product-card .add-to-cart[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* quantity input smaller */
.product-card .qty-input {
  width: 70px;
  padding: 6px;
}
/* Enhanced Mini Cart Styles */
#mini-cart {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 99999;
  font-family: 'Jost', Arial, sans-serif;
}

.mini-cart-toggle {
  background: linear-gradient(135deg, #5d0808, #7a0a0a);
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(93, 8, 8, 0.3);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 70px;
  justify-content: center;
  height: 55px;
}

.mini-cart-toggle:hover {
  background: linear-gradient(135deg, #7a0a0a, #5d0808);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(93, 8, 8, 0.4);
}

.mini-count {
  background: #ff4444;
  color: white;
  border-radius: 50%;
  padding: 2px 6px;
  font-size: 12px;
  font-weight: bold;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -5px;
  right: -5px;
  animation: bounce 0.5s ease;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

.mini-cart-inner {
  position: absolute;
  right: 0;
  bottom: 70px;
  width: 380px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: none;
  border: 1px solid #e0e0e0;
}

.mini-cart-inner::before {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
}

.mini-cart-header {
  background: linear-gradient(135deg, #5d0808, #7a0a0a);
  color: white;
  padding: 15px 20px;
  font-weight: 600;
  text-align: center;
  position: relative;
}

.mini-cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 320px;
  overflow-y: auto;
}

.mini-cart-items::-webkit-scrollbar {
  width: 4px;
}

.mini-cart-items::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.mini-cart-items::-webkit-scrollbar-thumb {
  background: #5d0808;
  border-radius: 2px;
}

.mini-cart-items li {
  display: flex;
  gap: 12px;
  padding: 15px 20px;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.mini-cart-items li:hover {
  background-color: #f9f9f9;
}

.mini-cart-items li:last-child {
  border-bottom: none;
}

.mini-cart-items img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  flex-shrink: 0;
  border: 2px solid #f0f0f0;
}

.mini-cart-item-meta {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.mini-cart-item-meta strong {
  display: block;
  color: #333;
  margin-bottom: 4px;
  font-weight: 600;
  font-size: 15px;
}

.mini-cart-item-meta span {
  display: block;
  color: #666;
  font-size: 13px;
  margin-bottom: 2px;
}

.mini-cart-item-meta .item-price {
  color: #5d0808;
  font-weight: 600;
  font-size: 14px;
}

.remove-cart-item {
  background: #ff4444;
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.remove-cart-item:hover {
  background: #e63939;
  transform: scale(1.1);
}

.mini-cart-footer {
  padding: 20px;
  background: #f8f9fa;
  border-top: 1px solid #e0e0e0;
}

.mini-subtotal {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 15px;
  padding: 10px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
}

.checkout-btn {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, #2f7a2f, #247a24);
  color: white;
  padding: 12px 0;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(47, 122, 47, 0.2);
}

.checkout-btn:hover {
  background: linear-gradient(135deg, #247a24, #1e6b1e);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(47, 122, 47, 0.3);
  color: white;
  text-decoration: none;
}

.mini-cart-empty {
  padding: 40px 20px;
  text-align: center;
  color: #666;
  font-style: italic;
}

.mini-cart-empty::before {
  content: '🛒';
  display: block;
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 480px) {
  .mini-cart-inner {
    width: 320px;
    right: -10px;
  }
  
  #mini-cart {
    right: 15px;
    bottom: 15px;
  }
  
  .mini-cart-items li {
    padding: 12px 15px;
  }
  
  .mini-cart-items img {
    width: 50px;
    height: 50px;
  }
}

/* Animation when cart opens */
.mini-cart-inner.show {
  display: block;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* catering form styling  */


#catering-orders {
  padding: 40px;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  font-family: Arial, sans-serif;
}

/* Close button */
#catering-orders::before {
  content: "";
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 24px;
  color: #720909;
  cursor: pointer;
  font-weight: bold;
}

/* Tab navigation */
.tab-navigation {
  display: flex;
  margin-bottom: 30px;
  gap: 0;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: white;
  transition: background-color 0.3s ease;
}

.tab-btn:first-child {
  background-color: #8b2635;
}

.tab-btn:nth-child(2) {
  background-color: #8b2635;
}

.tab-btn:nth-child(3) {
  background-color: #8b2635;
}

.tab-btn.active,
.tab-btn:last-child {
  background-color: #2d5a3d;
}

.tab-btn:hover {
  opacity: 0.9;
}

/* Form styling */
.catering-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px 30px;
  align-items: start;
}

.catering-form label {
  display: flex;
  flex-direction: column;
  font-size: 16px;
  font-weight: 500;
  color: #720909;
  margin-bottom: 8px;
}

.catering-form input,
.catering-form select {
  background: transparent;
  border: none;
  border-bottom: 2px solid #720909;
  padding: 8px 0;
  font-size: 14px;
  color: #720909;
  margin-top: 8px;
  outline: none;
  transition: border-color 0.3s ease;
}

.catering-form input:focus,
.catering-form select:focus {
  border-bottom-color: #720909;
}

.catering-form input::placeholder,
.catering-form select option {
  color: #720909;
  opacity: 0.8;
}

/* Special styling for specific fields */
.catering-form label:nth-child(1) input::placeholder {
  content: "Enter your Name";
}

.catering-form label:nth-child(2) input::placeholder {
  content: "Enter your email";
}

/* Textarea for message */
.catering-form textarea {
  background: transparent;
  border: 2px solid #720909;
  border-radius: 4px;
  padding: 12px;
  font-size: 14px;
  color: #720909;
  margin-top: 8px;
  outline: none;
  resize: vertical;
  min-height: 80px;
  font-family: Arial, sans-serif;
}

.catering-form textarea:focus {
  border-color: #720909;
}

.catering-form textarea::placeholder {
  color: #720909;
  opacity: 0.8;
}

/* Message field spans full width */
.catering-form label:last-of-type {
  grid-column: 1 / -1;
}

/* Submit button */
.catering-form button {
  grid-column: 1 / -1;
  background-color: transparent;
  border: 2px solid #720909;
  color: #720909;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px auto 0;
  display: block;
  width: fit-content;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: jost, Arial, sans-serif;
}

.catering-form button:hover {
  background-color: #720909;
  color: #fff;
}

/* Responsive design */
@media (max-width: 768px) {
  #catering-orders {
    padding: 20px;
  }
  
  .page-id-729 .product-grid {
     display: grid !important;
    grid-template-columns: repeat(1, 1fr) !important;
}
  
  .catering-form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .tab-navigation {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    flex: 1;
    min-width: 120px;
  }
}

/* Additional styling for better visual match */
.catering-form input[type="date"],
.catering-form input[type="time"],
.catering-form input[type="number"] {
  color: #8b4513;
}

.catering-form select {
  background-color: transparent;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 4 5'><path fill='%238b4513' d='M2 0L0 2h4zm0 5L0 3h4z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding-right: 25px;
}



