/* ========================================
   Moulya's Kitchen - Global Styles
   Bootstrap 5 Custom Theme
   ======================================== */

/* Google Fonts: loaded via <link> in HTML head for non-blocking load */

/* Font Awesome: load via <link> in each HTML head (not @import) so brand webfonts reliably apply */

/* Source protection */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

input, textarea, select, [contenteditable="true"],
.mk-allow-select, [data-mk-selectable] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
}

img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* CSS Custom Properties - Matching React Tailwind Theme */
:root {
  --primary: #D97706;
  --primary-rgb: 217, 119, 6;
  --secondary: #4A6B2F;
  --secondary-rgb: 74, 107, 47;
  --background: #FDF8F0;
  --foreground: #1A1A1A;
  --muted: #F0EBE3;
  --muted-foreground: #666666;
  --card: #FFFFFF;
  --border: #E5DDD3;
  --accent: #D97706;
  --destructive: #DC2626;
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Custom Scrollbar — Webkit (Chrome, Edge, Safari, Opera) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: rgba(var(--primary-rgb), 0.4);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(var(--primary-rgb), 0.6);
}

/* Custom Scrollbar — Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 119, 6, 0.4) #F0EBE3;
}

/* Print protection */
@media print {
  body { display: none !important; }
}

/* ========================================
   Navbar Styles
   ======================================== */
.navbar-mk {
  background-color: rgba(253, 248, 240, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 221, 211, 0.5);
  padding: 0.75rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-mk .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  color: var(--foreground);
  font-size: 1.25rem;
}

.navbar-mk .navbar-brand small {
  display: block;
  font-size: 0.625rem;
  font-style: italic;
  color: var(--muted-foreground);
  margin-top: -0.25rem;
}

.navbar-mk .navbar-brand .mk-navbar-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  display: block;
}

.mk-footer-logo-link {
  width: 5.5rem;
  height: 5.5rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.mk-footer-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.navbar-mk .nav-link {
  color: rgba(26, 26, 26, 0.7);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.navbar-mk .nav-link:hover,
.navbar-mk .nav-link.active {
  color: var(--primary);
  background-color: rgba(var(--primary-rgb), 0.1);
}

.cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-badge 0.3s ease-in-out;
}

.favorite-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  background-color: #e11d48;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.favorite-btn,
.favorite-btn.btn,
.favorite-btn.btn-sm {
  border: none !important;
  background: transparent !important;
  color: #9f1239;
  padding: 0.25rem;
  min-height: 2.5rem;
  min-width: 2.5rem;
  box-shadow: none !important;
  line-height: 1;
}

.favorite-btn i {
  font-size: 1.5rem;
  line-height: 1;
}

.favorite-btn:hover,
.favorite-btn:focus,
.favorite-btn.btn:hover,
.favorite-btn.btn:focus {
  border: none !important;
  background: transparent !important;
  color: #be123c;
  box-shadow: none !important;
}

.favorite-btn.active,
.favorite-btn.btn.active {
  background: transparent !important;
  border: none !important;
  color: #be123c;
}

.favorite-btn:focus-visible {
  outline: 2px solid rgba(var(--primary-rgb), 0.45);
  outline-offset: 2px;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ========================================
   Footer Styles
   ======================================== */
.footer-mk {
  background-color: #1A1A1A;
  color: white;
  padding: 3rem 0 1.5rem;
}

.footer-mk h6 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  color: white;
}

.footer-mk a:not(.footer-social-link):not(.mk-dev-credit),
.footer-mk .footer-link {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  margin-bottom: 0.5rem;
}

.footer-mk a:not(.footer-social-link):not(.mk-dev-credit):hover,
.footer-mk .footer-link:hover {
  color: var(--primary);
}

.footer-bottom {
  background-color: #0F0F0F;
  padding: 1rem 0;
  margin-top: 2rem;
}

.mk-dev-credit {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: #d97706 !important;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.mk-dev-credit:hover,
.mk-dev-credit:focus-visible {
  color: #f59e0b !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  opacity: 1;
}

.mk-site-version-badge {
  display: inline-block;
  margin-left: 0.25rem;
  padding: 0.12rem 0.55rem;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: none;
  vertical-align: middle;
  line-height: 1.4;
  border-radius: 999px;
  background: rgba(217, 119, 6, 0.18);
  color: #fcd34d;
  border: 1px solid rgba(217, 119, 6, 0.45);
  white-space: nowrap;
}

.footer-mk .text-muted .mk-site-version-badge {
  color: var(--primary, #D97706);
  background: rgba(217, 119, 6, 0.1);
  border-color: rgba(217, 119, 6, 0.35);
}

.mk-footer-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  word-break: break-all;
  transition: color 0.2s ease;
}

.mk-footer-email:hover,
.mk-footer-email:focus-visible {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mk-footer-email .bi-envelope {
  flex-shrink: 0;
}

/* Footer social — single horizontal row of brand icons */
.footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
}

.footer-social-link {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background-color: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 1.125rem;
  line-height: 1;
  text-decoration: none !important;
  margin-bottom: 0 !important;
  transition:
    transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1),
    background-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    box-shadow 0.28s ease;
}

.footer-social-link:hover {
  color: #fff !important;
  transform: scale(1.1);
}

.footer-social-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.footer-mk .footer-social-link:hover,
.bg-dark .footer-social-link:hover {
  color: #fff !important;
}

.footer-social-link.footer-social-fb:hover {
  background-color: #1877f2;
  box-shadow: 0 6px 18px rgba(24, 119, 242, 0.45);
}

.footer-social-link.footer-social-ig:hover {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  box-shadow: 0 6px 18px rgba(225, 48, 108, 0.4);
}

.footer-social-link.footer-social-yt:hover {
  background-color: #ff0000;
  box-shadow: 0 6px 18px rgba(255, 0, 0, 0.45);
}

.footer-social-link.footer-social-wa:hover {
  background-color: #25d366;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.45);
}

/* Ensure FA brand glyphs render (avoid inheritance/font conflicts) */
.footer-social-link i.fa-brands {
  font-family: "Font Awesome 6 Brands", "Font Awesome 5 Brands" !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-variant: normal !important;
  line-height: 1 !important;
  display: inline-block !important;
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   Button Styles
   ======================================== */
.btn-primary-mk {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  transition: all 0.2s;
}

.btn-primary-mk:hover {
  background-color: #B96205;
  border-color: #B96205;
  color: white;
  transform: scale(1.05);
}

.btn-secondary-mk {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  font-weight: 600;
  padding: 0.625rem 1.5rem;
  border-radius: 2rem;
  transition: all 0.2s;
}

.btn-secondary-mk:hover {
  background-color: #3D5826;
  border-color: #3D5826;
  color: white;
  transform: scale(1.05);
}

/* ========================================
   Card Styles
   ======================================== */
.card-mk {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  overflow: hidden;
}

.card-mk:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-4px);
}

.card-mk .card-img-top {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  max-height: 220px;
}

.card-mk .position-relative {
  overflow: hidden;
  background-color: var(--muted);
}

/* ========================================
   Badge Styles
   ======================================== */
.badge-veg {
  background-color: #10B981;
  color: white;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
}

.badge-offer {
  background-color: var(--primary);
  color: white;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
}

.price-stack,
.price-offer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.5rem;
}

.price-current {
  color: var(--foreground);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
}

.price-original {
  color: var(--muted-foreground);
  font-size: 0.85rem;
  text-decoration: line-through;
  line-height: 1.1;
}

.badge-special,
.special-ribbon {
  position: absolute;
  top: 18px;
  left: -58px;
  width: 220px;
  text-align: center;
  background: rgba(var(--primary-rgb), 0.95);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.5px;
  font-size: 0.72rem;
  text-transform: uppercase;
  transform: rotate(-35deg);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 2;
  line-height: 1.25;
  padding: 0.15rem 0;
}

.offer-label-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  max-width: calc(100% - 4.5rem);
  background: rgba(var(--primary-rgb), 0.95);
  color: #fff;
  font-weight: 700;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border-radius: 9999px;
  padding: 0.25rem 0.55rem;
  line-height: 1.2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  z-index: 2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.discount-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--primary-rgb), 0.12);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 9999px;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
}

.card-mk.card-sold-out .card-img-top {
  filter: grayscale(100%);
}

.sold-out-ribbon {
  position: absolute;
  top: 18px;
  left: -58px;
  width: 220px;
  text-align: center;
  background: rgba(220, 38, 38, 0.95);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
  font-size: 0.8rem;
  text-transform: uppercase;
  transform: rotate(-35deg);
  border-top: 2px solid #fff;
  border-bottom: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  pointer-events: none;
  z-index: 3;
}

/* ========================================
   Form Styles
   ======================================== */
.form-control-mk {
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  transition: all 0.2s;
}

.form-control-mk:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.mk-password-toggle {
  z-index: 3;
  cursor: pointer;
  line-height: 1;
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

/* OTP Input Boxes */
.mk-otp-box {
  width: 3rem;
  height: 3.5rem;
  border: 2px solid var(--border);
  border-radius: 0.625rem;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--foreground);
  background: var(--background);
  transition: border-color 0.2s, box-shadow 0.2s;
  caret-color: var(--primary);
}

.mk-otp-box:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
  outline: none;
}

.mk-otp-box.is-filled {
  border-color: var(--primary);
  background: rgba(var(--primary-rgb), 0.04);
}

.mk-otp-box.is-invalid {
  border-color: var(--bs-danger, #dc3545);
  animation: mk-otp-shake 0.4s ease-in-out;
}

.mk-otp-box.is-valid {
  border-color: var(--bs-success, #198754);
  background: rgba(25, 135, 84, 0.04);
}

@keyframes mk-otp-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-4px); }
  40% { transform: translateX(4px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(3px); }
}

@media (max-width: 400px) {
  .mk-otp-box {
    width: 2.5rem;
    height: 3rem;
    font-size: 1.25rem;
  }
}

/* Phone OTP Section Animations */
#phoneOtpSection .mk-otp-success-check {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: rgba(25, 135, 84, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  animation: mk-otp-pop 0.4s ease;
}

@keyframes mk-otp-pop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

/* ========================================
   Section Headers
   ======================================== */
.section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.emoji,
.section-header .emoji {
  display: none;
}

.section-header h2 {
  font-size: 2rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.section-header p {
  color: var(--muted-foreground);
  font-size: 1rem;
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  padding: 4rem 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.3), transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-primary-mk {
  color: var(--primary) !important;
}

.text-secondary-mk {
  color: var(--secondary) !important;
}

.bg-primary-mk {
  background-color: var(--primary) !important;
}

.bg-secondary-mk {
  background-color: var(--secondary) !important;
}

.bg-muted-mk {
  background-color: var(--muted);
}

.rounded-xl {
  border-radius: 0.75rem;
}

.shadow-sm-mk {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* ========================================
   Site announcement bar (admin-managed)
   ======================================== */
.mk-site-announcement-host {
  width: 100%;
  min-height: 2.75rem;
  contain: layout style;
}

.mk-site-announcement {
  width: 100%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mk-site-announcement__inner {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 0.7rem clamp(1rem, 3vw, 3rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.mk-site-announcement__icon {
  flex: 0 0 auto;
  font-size: 1rem;
}

.mk-site-announcement__text {
  flex: 1 1 auto;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.mk-site-announcement__link {
  flex: 0 0 auto;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15rem;
  white-space: nowrap;
}

.mk-site-announcement__close {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

.mk-site-announcement__close:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.06);
}

.mk-site-announcement-host--promo .mk-site-announcement {
  background: #fff7ed;
  color: #9a3412;
}

.mk-site-announcement-host--promo .mk-site-announcement__link {
  color: #c2410c;
}

.mk-site-announcement-host--info .mk-site-announcement {
  background: #f3f7ef;
  color: #2f4a1d;
}

.mk-site-announcement-host--info .mk-site-announcement__link {
  color: #3d5229;
}

.mk-site-announcement-host--warning .mk-site-announcement {
  background: #fffbeb;
  color: #92400e;
}

.mk-site-announcement-host--warning .mk-site-announcement__link {
  color: #b45309;
}

@media (max-width: 767.98px) {
  .mk-site-announcement__inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .mk-site-announcement__link,
  .mk-site-announcement__close {
    margin-left: auto;
  }
}

/* ── Hero Banner Slider ── */

/* Default slide — hardcoded hero with background image */
.mk-hero-slide--default {
  position: relative;
  min-height: 420px;
  background: url('../images/herosection_bg2.png') center / cover no-repeat;
}

/* Admin-created banner slides */
.mk-hero-slide {
  position: relative;
  display: block;
  width: 100%;
  min-height: 420px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.mk-hero-slide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mk-hero-slide picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.mk-hero-slide picture .mk-hero-slide__img {
  position: absolute;
}

/* Full-design promo slides (no text caption) — show artwork at natural ratio */
.mk-hero-slide--graphic {
  min-height: 0;
  background: #f8f4ec;
}

.mk-hero-slide--graphic picture {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
}

.mk-hero-slide--graphic .mk-hero-slide__img,
.mk-hero-slide--graphic picture .mk-hero-slide__img {
  position: static;
  inset: auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.mk-hero-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, transparent 100%);
  pointer-events: none;
}

.mk-hero-slide__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 4rem 2.5rem;
  z-index: 2;
  max-width: 650px;
}

.mk-hero-slide__title {
  color: #fff;
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 0.5rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.mk-hero-slide__desc {
  color: rgba(255,255,255,.88);
  font-size: 1.05rem;
  font-weight: 500;
  margin: 0 0 1rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.mk-hero-slide__btn {
  font-weight: 600;
}

#heroBannerCarousel .carousel-indicators {
  margin-bottom: 1rem;
}

#heroBannerCarousel .carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.6);
  background: transparent;
  opacity: 1;
  transition: background .2s, border-color .2s;
}

#heroBannerCarousel .carousel-indicators .active {
  background: #fff;
  border-color: #fff;
}

@media (max-width: 767.98px) {
  .mk-hero-slide--default,
  .mk-hero-slide {
    min-height: 0;
  }

  .mk-hero-slide__caption {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .mk-hero-slide__title {
    font-size: 1.35rem;
  }

  .mk-hero-slide__desc {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }

  .mk-hero-slide__btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }
}

/* Scrolling announcement bar */
.mk-ann-bar {
  background: #111827;
  color: #fff;
  width: 100%;
  overflow: hidden;
}

.mk-ann-bar__inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.mk-ann-bar__track {
  flex: 1 1 auto;
  overflow: hidden;
  mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 3%, #000 97%, transparent 100%);
}

.mk-ann-bar__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  padding: 0.5rem 0;
}

.mk-ann-bar__scroll--animated {
  animation: mk-ann-scroll 30s linear infinite;
}

.mk-ann-bar__scroll--static {
  width: 100%;
  justify-content: center;
}

.mk-ann-bar__scroll--animated:hover {
  animation-play-state: paused;
}

@keyframes mk-ann-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.mk-ann-marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0 1rem;
}

.mk-ann-marquee-item i {
  font-size: 0.75rem;
  flex-shrink: 0;
}

.mk-ann-marquee-item--promo { color: #fbbf24; }
.mk-ann-marquee-item--promo i { color: #f59e0b; }

.mk-ann-marquee-item--info { color: #93c5fd; }
.mk-ann-marquee-item--info i { color: #60a5fa; }

.mk-ann-marquee-item--warning { color: #fca5a5; }
.mk-ann-marquee-item--warning i { color: #f87171; }

a.mk-ann-marquee-item {
  text-decoration: none;
  cursor: pointer;
}

a.mk-ann-marquee-item:hover {
  color: #fff;
}

.mk-ann-marquee-link {
  color: inherit;
  text-decoration: none;
  opacity: 0.8;
  font-weight: 600;
  margin-left: 0.25rem;
}

a.mk-ann-marquee-item:hover .mk-ann-marquee-link {
  opacity: 1;
}

.mk-ann-marquee-sep {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  padding: 0 0.5rem;
}

.mk-ann-bar__viewall {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.5rem 0.85rem;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.15s;
  white-space: nowrap;
}

.mk-ann-bar__viewall:hover {
  color: #fff;
}

/* Announcements listing page cards */
.mk-ann-card {
  border-radius: 0.625rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.15s;
}

.mk-ann-card:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
}

.mk-ann-card__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.mk-ann-card__badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
}

.mk-ann-card__message {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.mk-ann-card__link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.mk-ann-card__link:hover {
  text-decoration: underline;
}

/* ========================================
   Category Filter Buttons
   ======================================== */
.category-btn {
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  background-color: var(--muted);
  color: var(--muted-foreground);
  transition: all 0.2s;
  cursor: pointer;
}

.category-btn:hover {
  background-color: rgba(var(--primary-rgb), 0.1);
  color: var(--primary);
}

.category-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ========================================
   Loading Spinner
   ======================================== */
.spinner-mk {
  width: 2rem;
  height: 2rem;
  border: 3px solid rgba(var(--primary-rgb), 0.2);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ========================================
   Accessibility
   ======================================== */
.skip-to-main {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 1100;
  padding: 0.5rem 1rem;
  background: var(--primary);
  color: #fff;
  border-radius: 0.375rem;
  text-decoration: none;
}

.skip-to-main:focus {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .promo-card {
    transition: none;
  }

  .promo-card:hover {
    transform: none;
  }

  .spinner-mk {
    animation: none;
  }
}

/* ========================================
   Promo Cards (Home)
   ======================================== */
.promo-card {
  min-height: 170px;
  border-radius: 22px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  isolation: isolate;
}

.promo-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.carousel-banner-img {
  width: 100%;
  height: 260px;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}

#homeBannerCarousel .carousel-inner {
  max-height: 260px;
}

.promo-card-catering {
  background: linear-gradient(90deg, #bef264, #4ade80);
  color: #1f2937;
}

.promo-card-combo {
  background: linear-gradient(90deg, #1e3a8a, #1d4ed8);
  color: #fff;
}

.promo-card-new {
  background: linear-gradient(90deg, #ec4899, #ef4444);
  color: #fff;
}

.promo-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.promo-image-wrap {
  width: 130px;
  height: 130px;
  min-width: 130px;
  max-width: 130px;
  flex-shrink: 0;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.2);
}

.promo-image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 0.75rem;
}

@media (max-width: 991.98px) {
  .promo-card {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-image-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 160px;
  }
}

@media (max-width: 575.98px) {
  .promo-card {
    flex-direction: column;
    align-items: stretch;
  }

  .promo-image-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 140px;
  }
}
