
html {
    scroll-behavior: smooth;
}
main {
    margin-top: 3em;
}

/* Spinner container that spans full grid width */
.grid-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  width: 100%;
  grid-column: 1 / -1; 
}

/* Simple CSS spinner circle */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(0, 0, 0, 0.1);
  border-top-color: #ff4d4d; /* Replace with your primary theme color */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.category-tabs {
    display: flex;
    gap: 2em;
    padding: 16px 24px;
    border-bottom: 1px solid var(--warm-gray-border);
    background: var(--cream);
    align-items: center;
    justify-content: space-between;
    position: fixed;
    top: 4em;
    left: 0;
    width: 100%;
    z-index: 999;
}
.category-tabs a {
    color: var(--text-dark);
    font-weight: 600;
    padding-bottom: 6px;
}
.specials-heading {
  scroll-margin-top: 20vh; /* Change 80px to your header height */
}

.menu-category {
    padding: 40px 24px 0;
}

.menu-category h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
}

.btn-add-order:disabled {
    background: var(--warm-gray-border);
    border-color: var(--warm-gray-border);
    color: #8a7a6a;
    cursor: not-allowed;
    transform: none; /* cancel the hover-lift effect for a button you can't click */
}

/* Mini inline spinner inside button */
.btn-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btnSpin 0.6s linear infinite;
  margin-right: 6px;
  vertical-align: middle;
}

@keyframes btnSpin {
  to { transform: rotate(360deg); }
}

/* Visually indicate button is locked */
.btn-add-order:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.specials-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 26px;
    text-align: center;
    position: relative;
}

/*the small gold decoration*/
.specials-heading::before,
.specials-heading::after {
    content: '';
    display: inline-block;
    width: 36px;
    height: 2px;
    background: var(--gold);
    vertical-align: middle;
    margin: 0 14px;
}

/* 1. Grid layout container: places cards side-by-side */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 15px;
  margin-bottom: 30px;
}

/* 2. Main card container (matching Picture 2 design) */
.special-card {
    background: var(--white);
    border: 1px solid var(--warm-gray-border);
    border-radius: 8px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.special-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.special-image {
    background: var(--warm-gray);
    border: 1px solid var(--warm-gray-border);
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-bottom: 12px;
}

.special-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.special-desc {
    font-size: 0.72rem;
    color: #7d6f62;
    text-align: center;
    margin-bottom: 14px;
}


.btn-add-order {
  background-color: #d93843;
  color: #ffffff;
  border: none;
  padding: 8px 18px;
  border-radius: 20px;       
  font-weight: bold;
  font-size: 0.85rem;
  cursor: pointer;
  width: fit-content;
  align-self: center;
  transition: background-color 0.2s ease;
}
.btn-add-order:hover:not(:disabled) {
  background-color: #b82a34;
}

/* Disabled button state for unavailable items */
.btn-add-order:disabled {
  background-color: #b5a8a8;
  cursor: not-allowed;
  opacity: 0.8;
}

@media (max-width: 640px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .special-card {
        padding: 10px;
    }
    .special-desc {
        font-size: 0.68rem;
    }
}