/* =========================================
   Wendy's Butter and Bliss — Main Stylesheet
   ========================================= */

:root {
  --pink:        #C62828;
  --pink-dark:   #8B0000;
  --pink-light:  #FFEBEE;
  --pink-mid:    #FFCDD2;
  --cream:       #FFF8F0;
  --brown:       #4E342E;
  --text:        #333333;
  --text-light:  #777777;
  --border:      #E0E0E0;
  --white:       #FFFFFF;
  --green:       #2E7D32;
  --green-light: #E8F5E9;
  --red:         #C62828;
  --red-light:   #FFEBEE;
  --shadow:      0 2px 12px rgba(0,0,0,0.08);
  --radius:      10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVBAR ─────────────────────────────── */
.navbar {
  background: var(--pink);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.nav-links a {
  color: var(--white);
  text-decoration: none;
  margin-left: 1.75rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.nav-links a:hover { opacity: 1; text-decoration: underline; }

.btn-nav {
  background: var(--white);
  color: var(--pink) !important;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  opacity: 1 !important;
}

.btn-nav:hover { background: var(--pink-light); text-decoration: none !important; }

/* ── CONTAINER ──────────────────────────── */
.container {
  max-width: 920px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  flex: 1;
}

/* ── BUTTONS ────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--pink);
  color: var(--white);
  padding: 0.7rem 1.6rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover { background: var(--pink-dark); }

.btn-large { padding: 0.9rem 2.2rem; font-size: 1.1rem; margin-top: 1.5rem; }

.btn-outline {
  background: transparent;
  border: 2px solid var(--pink);
  color: var(--pink);
}

.btn-outline:hover { background: var(--pink-light); }

/* ── ALERTS ─────────────────────────────── */
.alert {
  padding: 0.8rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
}

.alert-success { background: var(--green-light); color: var(--green); border: 1px solid #A5D6A7; }
.alert-error   { background: var(--red-light);   color: var(--red);   border: 1px solid #FFCDD2; }

/* ── PAGE HEADER ────────────────────────── */
.page-header {
  text-align: center;
  padding: 2rem 0 1.5rem;
  border-bottom: 2px solid var(--pink-mid);
  margin-bottom: 2rem;
}

.page-header h1 {
  color: var(--pink);
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: var(--text-light);
  font-family: Arial, sans-serif;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ── MENU PAGE ──────────────────────────── */
.category-section { margin-bottom: 2.5rem; }

.category-title {
  color: var(--brown);
  font-size: 1.5rem;
  border-bottom: 2px solid var(--pink-light);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.2s;
}

.product-card:hover { transform: translateY(-3px); }

.product-image {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.product-image-placeholder {
  width: 100%;
  height: 140px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.product-info { padding: 0.85rem 1rem; }

.product-info h3 {
  font-size: 1rem;
  color: var(--brown);
  margin-bottom: 0.25rem;
}

.product-desc {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
  line-height: 1.4;
}

.product-price {
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: bold;
  color: var(--pink);
}

.empty-note {
  font-family: Arial, sans-serif;
  color: var(--text-light);
  font-style: italic;
  padding: 1rem 0;
}

/* ── ORDER FORM ─────────────────────────── */
.order-form { max-width: 700px; }

.form-section {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.5rem;
}

.form-section h2 {
  color: var(--pink);
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.form-category {
  color: var(--brown);
  font-size: 1rem;
  margin: 1.1rem 0 0.5rem;
  font-family: Arial, sans-serif;
}

.item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}

.item-row:last-child { border-bottom: none; }

.item-info { flex: 1; }

.item-name {
  font-family: Arial, sans-serif;
  font-size: 0.97rem;
  display: block;
}

.item-price {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: var(--pink);
  font-weight: bold;
}

.item-desc {
  font-family: Arial, sans-serif;
  font-size: 0.8rem;
  color: var(--text-light);
  display: block;
}

.item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
}

.qty-input {
  width: 70px;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 0.95rem;
  text-align: center;
}

.qty-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px var(--pink-light);
}

.form-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.form-field label {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: bold;
  color: var(--brown);
  margin-bottom: 0.3rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: Arial, sans-serif;
  font-size: 0.97rem;
  color: var(--text);
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px var(--pink-light);
}

.field-error {
  font-family: Arial, sans-serif;
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 0.2rem;
}

/* ── ORDER CONFIRM ──────────────────────── */
.confirm-box {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.confirm-icon { font-size: 4rem; margin-bottom: 0.5rem; }

.confirm-box h1 {
  color: var(--pink);
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.order-number-display {
  background: var(--pink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  margin: 1.5rem auto;
  display: inline-block;
  min-width: 260px;
}

.order-number-display .label {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.3rem;
}

.order-number-display .number {
  display: block;
  font-size: 2.4rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  font-family: 'Courier New', monospace;
}

.order-number-display .hint {
  display: block;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  opacity: 0.75;
  margin-top: 0.3rem;
}

.confirm-details {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1rem 1.5rem;
  margin: 1rem 0;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child { border-bottom: none; }

.confirm-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* ── ORDER TABLE (shared) ───────────────── */
.order-table {
  width: 100%;
  border-collapse: collapse;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.order-table tr { border-bottom: 1px solid var(--border); }
.order-table td { padding: 0.5rem 0.25rem; }
.order-table .qty { text-align: center; color: var(--text-light); }
.order-table .price { text-align: right; }
.order-table .total-row { border-top: 2px solid var(--pink-mid); }
.order-table .total-row td { padding-top: 0.75rem; }

.instructions-box {
  background: var(--pink-light);
  border-radius: 6px;
  padding: 0.75rem 1rem;
  margin-top: 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  text-align: left;
}

/* ── ORDER TRACKING ─────────────────────── */
.tracking-form { margin-bottom: 2rem; }

.tracking-input-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.tracking-input {
  padding: 0.65rem 1rem;
  border: 2px solid var(--border);
  border-radius: 6px;
  font-size: 1.1rem;
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
  width: 220px;
  transition: border-color 0.2s;
}

.tracking-input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 2px var(--pink-light);
}

.tracking-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
}

.tracking-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.tracking-header h2 { color: var(--pink); font-size: 1.4rem; }
.tracking-header p  { font-family: Arial, sans-serif; font-size: 0.9rem; color: var(--text-light); margin-top: 0.25rem; }

/* ── STATUS STEPPER ─────────────────────── */
.status-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 1.5rem 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.step-dot {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 3px solid var(--border);
  transition: all 0.3s;
}

.step.done .step-dot  { border-color: var(--pink-mid); background: var(--pink-light); }
.step.active .step-dot { border-color: var(--pink); background: var(--pink); box-shadow: 0 0 0 4px var(--pink-light); }

.step-label {
  font-family: Arial, sans-serif;
  font-size: 0.72rem;
  color: var(--text-light);
  text-align: center;
  white-space: nowrap;
}

.step.active .step-label { color: var(--pink); font-weight: bold; }

.step-line {
  flex: 1;
  height: 3px;
  background: var(--border);
  margin: 0 4px;
  margin-bottom: 22px;
  transition: background 0.3s;
  flex-shrink: 0;
  min-width: 20px;
}

.step-line.done { background: var(--pink-mid); }

/* ── FOOTER ─────────────────────────────── */
.footer {
  background: var(--brown);
  color: var(--pink-light);
  text-align: center;
  padding: 1rem;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  margin-top: auto;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 600px) {
  .navbar { flex-direction: column; gap: 0.75rem; padding: 1rem; }
  .nav-links a { margin-left: 1rem; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .status-stepper { gap: 4px; }
  .step-label { font-size: 0.65rem; }
}

/* ── MENU HERO ──────────────────────────── */
.menu-hero {
  background: linear-gradient(135deg, #8B0000 0%, #C62828 60%, #E53935 100%);
  border-radius: 14px;
  padding: 3rem 2.5rem;
  margin-bottom: 0;
  color: white;
  text-align: center;
}
.menu-hero-text h1 {
  font-size: 2.4rem;
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
  color: white;
}
.menu-hero-text p {
  font-size: 1rem;
  opacity: 0.88;
  margin-bottom: 1.5rem;
  font-family: Arial, sans-serif;
}
.menu-hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.menu-hero-btns .btn {
  background: white;
  color: #C62828;
  font-weight: bold;
  padding: 0.75rem 1.75rem;
  border-radius: 30px;
  font-size: 0.97rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: transform 0.15s, box-shadow 0.15s;
}
.menu-hero-btns .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
  opacity: 1;
}
.menu-btn-custom {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.6) !important;
}
.menu-btn-custom:hover {
  background: rgba(255,255,255,0.25) !important;
}

/* ── CATEGORY NAV ───────────────────────── */
.menu-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  background: var(--cream);
  z-index: 20;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.menu-nav::-webkit-scrollbar { display: none; }
.menu-nav-link {
  display: inline-block;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-family: Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: bold;
  color: #555;
  text-decoration: none;
  background: white;
  border: 1px solid var(--border);
  white-space: nowrap;
  transition: all 0.15s;
  flex-shrink: 0;
}
.menu-nav-link:hover { background: var(--red-light); color: var(--red); border-color: var(--red); }
.menu-nav-link.active { background: var(--red); color: white; border-color: var(--red); }

/* ── MENU SECTIONS ──────────────────────── */
.menu-body { display: flex; flex-direction: column; gap: 2.5rem; }

.menu-section-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 3px solid var(--red);
}
.menu-section-header h2 {
  font-size: 1.4rem;
  color: var(--brown);
  font-family: Georgia, serif;
  margin: 0;
}
.menu-section-count {
  font-size: 0.75rem;
  color: #999;
  font-family: Arial, sans-serif;
  background: #f0f0f0;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
}

/* ── MENU CARDS ─────────────────────────── */
.menu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.menu-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.10);
  border-color: #FFCDD2;
}
.menu-card-body { padding: 1rem 1.1rem; }
.menu-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.menu-card-name {
  font-size: 0.97rem;
  font-family: Georgia, serif;
  color: var(--brown);
  font-weight: bold;
  line-height: 1.3;
  flex: 1;
}
.menu-card-price { flex-shrink: 0; }
.price-amount {
  font-size: 1.05rem;
  font-weight: bold;
  color: var(--red);
  font-family: Arial, sans-serif;
}
.price-quote {
  font-size: 0.75rem;
  color: #6A1B9A;
  font-weight: bold;
  font-family: Arial, sans-serif;
  background: #F3E5F5;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  white-space: nowrap;
}
.menu-card-desc {
  font-size: 0.82rem;
  color: #777;
  font-family: Arial, sans-serif;
  line-height: 1.45;
  margin: 0;
}
.menu-empty {
  color: #aaa;
  font-style: italic;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ── FOOTER CTA BAR ─────────────────────── */
.menu-cta-bar {
  margin-top: 3rem;
  background: linear-gradient(135deg, #8B0000, #C62828);
  border-radius: 14px;
  padding: 2rem 2.5rem;
  color: white;
}
.menu-cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.menu-cta-inner h3 {
  font-size: 1.3rem;
  font-family: Georgia, serif;
  margin-bottom: 0.25rem;
  color: white;
}
.menu-cta-inner p {
  font-size: 0.9rem;
  opacity: 0.85;
  font-family: Arial, sans-serif;
}
.menu-cta-btns {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}
.menu-cta-btns .btn {
  background: white;
  color: #C62828;
  font-weight: bold;
  border-radius: 30px;
  padding: 0.65rem 1.4rem;
  white-space: nowrap;
}
.menu-cta-btns .menu-btn-custom {
  background: rgba(255,255,255,0.15) !important;
  color: white !important;
  border: 2px solid rgba(255,255,255,0.5) !important;
}

/* ── FOOTER DISCLAIMER ──────────────────────── */
.footer-disclaimer {
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.9);
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  text-align: center;
  padding: 0.6rem 1.5rem;
  margin-bottom: 0.75rem;
  border-radius: 6px;
  line-height: 1.5;
}

/* ── FOOTER LINKS ───────────────────────── */
.footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.footer-link {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-family: Arial, sans-serif;
  font-size: 0.78rem;
  transition: color 0.2s;
}
.footer-link:hover {
  color: rgba(255,255,255,0.9);
}
.footer-divider {
  color: rgba(255,255,255,0.3);
  font-size: 0.78rem;
}

/* ── RESPONSIVE ─────────────────────────── */
@media (max-width: 600px) {
  .menu-hero { padding: 2rem 1.25rem; }
  .menu-hero-text h1 { font-size: 1.7rem; }
  .menu-cards { grid-template-columns: 1fr; }
  .menu-cta-inner { flex-direction: column; text-align: center; }
  .menu-cta-btns { justify-content: center; }
}

/* ── PRODUCT PHOTOS ─────────────────────── */
.menu-item-image {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
  border: 1px solid var(--border);
}

.menu-item-image-placeholder {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  flex-shrink: 0;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  border: 1px solid var(--border);
}

/* Staff menu table photo thumbnail */
.product-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.product-thumb-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background: var(--pink-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  border: 1px solid var(--border);
}

/* ── REGISTER AFTER ORDER PROMPT ────────── */
.register-prompt {
  background: white;
  border: 2px solid #A5D6A7;
  border-radius: 12px;
  padding: 1.75rem;
  margin-top: 1.75rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(46,125,50,0.1);
}
.register-prompt-icon {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}
.register-prompt h3 {
  color: #2E7D32;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.register-prompt p {
  font-family: Arial, sans-serif;
  font-size: 0.88rem;
  color: #666;
  margin-bottom: 1.25rem;
  line-height: 1.5;
}
.register-prompt-form {
  max-width: 360px;
  margin: 0 auto;
  text-align: left;
}
