/* Animation for header user on login */
.header-user-animate {
  animation: headerUserGlowBounce 0.9s cubic-bezier(.2, .9, .2, 1);
}

@keyframes headerUserGlowBounce {
  0% {
    box-shadow: 0 0 0 0 #ffe082, 0 0 0 0 #ffb300;
    transform: scale(1);
  }

  20% {
    box-shadow: 0 0 12px 4px #ffe082, 0 0 24px 8px #ffb300;
    transform: scale(1.08);
  }

  40% {
    box-shadow: 0 0 8px 2px #ffe082, 0 0 16px 4px #ffb300;
    transform: scale(0.97);
  }

  60% {
    box-shadow: 0 0 16px 6px #ffe082, 0 0 32px 12px #ffb300;
    transform: scale(1.04);
  }

  80% {
    box-shadow: 0 0 6px 2px #ffe082, 0 0 12px 4px #ffb300;
    transform: scale(1.01);
  }

  100% {
    box-shadow: 0 0 0 0 #ffe082, 0 0 0 0 #ffb300;
    transform: scale(1);
  }
}

/* Header avatar next to username */
.header-user-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffe082;
  color: #b71c1c;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex-shrink: 0;
}

.header-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Stylish username in header after login */
#headerUserName {
  display: inline-block;
  background: linear-gradient(90deg, #ffe082 0%, #ffb300 100%);
  color: #b71c1c;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 4px 14px 4px 12px;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(255, 179, 0, 0.08);
  letter-spacing: 0.5px;
  margin-right: 12px;
  transition: background 0.3s, color 0.3s;
}

#headerUserName:hover,
#headerUserName:focus {
  background: linear-gradient(90deg, #ffd54f 0%, #ffb300 100%);
  color: #fff;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ---------------------------
   Header & Logo area
   --------------------------- */
header {
  background-color: #b71c1c;
  color: white;
  padding: 20px 10px;
  text-align: center;
  position: sticky;
  top: 0;
  z-index: 1001;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* If you use a dedicated wrapper for the logo, use .logo-wrapper.
   If not present, add wrapper in HTML as instructed earlier. */
.logo-wrapper {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  margin-bottom: 8px;
  /* allow keyboard focus to trigger effect if you add tabindex="0" */
  outline: none;
  z-index: 5;
  overflow: visible;
}

/* logo image (kept separate from header img selector to avoid conflicts) */
.logo-wrapper img {
  position: relative;
  z-index: 6;
  /* always above visual effects */
  height: 120px;
  width: auto;
  border-radius: 12px;
  display: block;
  margin: 0 auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  box-shadow: none;
}

/* ---------------------------
   Glow: default (OFF) -> hover/focus (ON)
   --------------------------- */

/* Soft Oval Spotlight (hidden by default) */
/* Logo spot is always visible and animating */
.logo-spot {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 140px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
      rgba(255, 235, 175, 0.55) 0%,
      rgba(255, 205, 90, 0.18) 36%,
      rgba(255, 170, 30, 0.06) 60%,
      rgba(255, 170, 30, 0) 100%);
  filter: blur(14px);
  opacity: 0.95;
  animation: spot-breathe 6s ease-in-out infinite;
  transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
}

/* Small variant used in side nav (also off by default) */
.logo-spot.small {
  width: 140px;
  height: 76px;
  filter: blur(10px);
  opacity: 0;
  transition: opacity 0.28s ease;
  will-change: opacity;
}

/* Shimmer highlight (always animating) */
.logo-shimmer {
  position: absolute;
  z-index: 7;
  top: 50%;
  left: -40%;
  transform: translateY(-50%) rotate(-10deg);
  width: 30%;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.22) 45%,
      rgba(255, 255, 255, 0.05) 60%,
      rgba(255, 255, 255, 0) 100%);
  filter: blur(10px);
  opacity: 0.95;
  mix-blend-mode: screen;
  animation: shimmer-sweep 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Sparkles (hidden by default) */
.logo-spark {
  position: absolute;
  z-index: 4;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 240, 200, 0.9) 30%, rgba(255, 200, 80, 0.55) 70%, rgba(255, 200, 80, 0) 100%);
  filter: blur(2px);
  opacity: 0;
  pointer-events: none;
}

/* Spark positions */
.logo-spark--1 {
  top: 18%;
  left: 12%;
}

.logo-spark--2 {
  top: 28%;
  left: 78%;
}

/* ---------------------------
   Hover / Focus states (activate glow) — desktop & keyboard accessible
   --------------------------- */

/* .logo-spot is now always visible and animating, so hover/focus rules removed */

/* Activate small spot in sidenav when its wrapper is hovered/focused */
.sidenav .logo-wrapper:hover .logo-spot.small,
.sidenav .logo-wrapper:focus .logo-spot.small {
  opacity: 0.85;
  animation: spot-breathe 5.2s ease-in-out infinite;
}

/* Shimmer: play a single sweep on hover/focus */
/* .logo-wrapper:hover .logo-shimmer,
.logo-wrapper:focus .logo-shimmer,
.logo-wrapper:focus-within .logo-shimmer {
  opacity: 0.95;
  animation: shimmer-sweep 1.2s ease-in-out 1;
} */

/* Sparks: always animating, subtle */
.logo-spark {
  opacity: 0.7;
  animation: spark-anim 5.6s linear infinite;
}

/* If you want repeated faint sparks while hovered (uncomment next block) */
/*
.logo-wrapper:hover .logo-spark--1 { animation: spark-anim 5.6s linear infinite; }
.logo-wrapper:hover .logo-spark--2 { animation: spark-anim 6.8s linear infinite; }
*/

/* ---------------------------
   Animations (definitions)
   --------------------------- */

@keyframes spot-breathe {
  0% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.8;
    filter: blur(14px);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 1;
    filter: blur(18px);
  }

  100% {
    transform: translate(-50%, -50%) scale(0.95);
    opacity: 0.8;
    filter: blur(0);
  }
}

/* Hide promotional banner on desktop, show only on mobile */
@media (min-width: 769px) {
  .promo-banner-container {
    display: none !important;
  }
}

@keyframes shimmer-sweep {
  0% {
    left: -50%;
    opacity: 0;
    transform: translateY(-50%) rotate(-15deg) scaleX(0.9);
  }

  50% {
    opacity: 0.8;
    transform: translateY(-50%) rotate(-15deg) scaleX(1.1);
  }

  100% {
    left: 150%;
    opacity: 0;
    transform: translateY(-50%) rotate(-15deg) scaleX(0.9);
  }
}

/* Short sparkle burst for single-run hover */
@keyframes spark-anim-short {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
    filter: blur(3px);
  }

  15% {
    opacity: 1;
    transform: translateY(-6px) scale(1);
    filter: blur(1.5px);
  }

  45% {
    opacity: 0.6;
    transform: translateY(-10px) scale(0.9);
  }

  80% {
    opacity: 0.15;
    transform: translateY(-16px) scale(0.6);
  }

  100% {
    transform: translateY(-22px) scale(0.5);
    opacity: 0;
  }
}

/* Original longer spark animation (kept for optional use) */
@keyframes spark-anim {
  0% {
    transform: translateY(0) scale(0.6);
    opacity: 0;
    filter: blur(3px);
  }

  10% {
    opacity: 0.9;
    transform: translateY(-6px) scale(1);
    filter: blur(1.5px);
  }

  30% {
    opacity: 0.6;
    transform: translateY(-10px) scale(0.9);
  }

  60% {
    opacity: 0.15;
    transform: translateY(-16px) scale(0.6);
  }

  100% {
    transform: translateY(-22px) scale(0.5);
    opacity: 0;
  }
}

/* ---------------------------
   Respect reduced motion preferences
   --------------------------- */
/* @media (prefers-reduced-motion: reduce) {
  .logo-spot,
  .logo-shimmer,
  .logo-spark {
    animation: none !important;
    transition: none !important;
    opacity: 0 !important;
  }
} */

/* ---------------------------
   Mobile tweaks — keep it tiny and performant
   --------------------------- */
@media (max-width: 600px) {

  /* scale logo smaller */
  .logo-wrapper img {
    height: 90px;
  }

  /* disable shimmer on small devices */
  /* logo-shimmer enabled on mobile */

  /* make spot extremely subtle (barely visible) when user taps — optional */
  .logo-wrapper:active .logo-spot,
  .logo-wrapper:focus .logo-spot {
    opacity: 0.25;
    animation: none;
  }

  /* ensure small variant remains subtle */
  .logo-spot.small {
    opacity: 0;
  }
}

/* ---------------------------
   Rest of your existing styles (unchanged)
   Paste below your original CSS content (kept intact)
   --------------------------- */

/* Header typography, nav, buttons and layout */
h1 {
  margin: 0;
  font-weight: 700;
  letter-spacing: 1.2px;
  font-size: clamp(1.1rem, 5vw, 2.2rem);
  /* Responsive font size */
  white-space: nowrap;
  /* Ek hi line me rakhe */
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 15px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

nav a {
  text-decoration: none;
  color: white;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 30px;
  transition: background-color 0.3s ease;
}

/* Make header Login / Sign Up prominent and accessible */
#openAuthLogin,
#openAuthSignup {
  background: #fff;
  color: #b71c1c !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#openAuthLogin:hover,
#openAuthSignup:hover,
#openAuthLogin:focus,
#openAuthSignup:focus {
  background: #ffeede;
  color: #7f1212 !important;
  transform: translateY(-1px);
}

/* Ensure header nav items collapse gracefully on small screens */
@media (max-width: 700px) {
  nav ul {
    justify-content: flex-start;
    gap: 8px;
    padding-left: 12px;
  }

  #openAuthLogin,
  #openAuthSignup {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
}

/* Header auth actions (top-right) */
#headerAuthActions {
  position: absolute;
  right: 120px;
  top: 18px;
  display: flex;
  gap: 8px;
  align-items: center;
  z-index: 1200;
}

#headerAuthActions .btn {
  min-width: 90px;
}

#headerAuthActions .btn {
  background: #fff;
  color: #b71c1c;
  border-radius: 8px;
  padding: 8px 10px;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

#headerAuthActions .btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 700px) {

  /* hide header auth action on very small screens to avoid overlap with burger */
  #headerAuthActions {
    display: none;
  }
}

/* Side nav auth avatar and layout */
.sidenav .sidenav-auth-area {
  padding: 8px 12px;
}

.side-auth-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.side-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  color: #b71c1c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  flex: 0 0 42px;
}

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

.sidenav .btn.text-start {
  padding-left: 12px;
}

/* Auth loading spinner */
.auth-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  border-top-color: currentColor;
  animation: auth-spin .8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}

.auth-spinner.spinner-white {
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.btn.loading {
  pointer-events: none;
  opacity: 0.85;
}

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

nav a:hover,
nav a:focus {
  background-color: #7f1212;
  outline: none;
}

.order-button {
  background-color: #ffb300;
  color: #fff;
  padding: 10px 22px;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: inline-block;
}

.order-button:hover,
.order-button:focus {
  background: #ff9800;
  color: #fff;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(255, 152, 0, 0.18);
  text-decoration: none;
}


main {
  /* Bias main content to the right: reduce top gap so sections sit nearer the header */
  max-width: 1800px;
  margin: 0 auto 40px auto;
  /* smaller top margin reduces gap beneath header */
  padding: 0 20px 40px;
}

/* Keep main centered and fluid on smaller screens for readability */
@media (max-width: 900px) {
  main {
    max-width: 100%;
    margin: 12px auto;
    padding: 0 14px 40px;
  }
}

h2 {
  color: #b71c1c;
  font-size: 1.8rem;
  margin-bottom: 15px;
  border-bottom: 3px solid #b71c1c;
  padding-bottom: 6px;
}

section {
  margin-bottom: 40px;
  background: #fff8f8;
  padding: 10px 25px 20px 25px;
  border-radius: 12px;
  scroll-margin-top: 160px;
  box-sizing: border-box;
}

/* Make sections full-bleed on wide screens but keep inner content centered */
@media (min-width: 900px) {
  section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    /* optional: remove rounded corners when full-bleed */
    border-radius: 0;
  }

  /* Constrain inner content but align it to the right with a small right gutter */
  section>* {
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px 25px;
    box-sizing: border-box;
  }
}

ul {
  padding-left: 20px;
}

ul li {
  margin-bottom: 10px;
  font-weight: 600;
  color: #551010;
}

a.contact-link {
  color: #b71c1c;
  font-weight: 700;
  text-decoration: underline;
}

footer {
  text-align: center;
  padding: 20px 10px;
  background-color: #f8d7da;
  color: #333;
  font-size: 14px;
}

.delivery-banner {
  /* Sleek, slim marquee bar */
  background: linear-gradient(90deg, #fffaf0 0%, #fff3e0 100%);
  color: #222;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  box-shadow: 0 6px 20px rgba(11, 17, 23, 0.04);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

.delivery-slide {
  display: none;
  transition: opacity 0.5s;
  font-weight: bold;
  font-size: 1.1em;
}

.delivery-slide.active {
  display: block;
  opacity: 1;
}

/* Marquee styles */
.delivery-marquee {
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center
}

.delivery-marquee .marquee-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  will-change: transform;
  animation: mbmw-marquee 20s linear infinite;
}

.delivery-marquee .marquee-group {
  display: flex;
  gap: 28px;
  align-items: center;
}

.delivery-marquee span {
  display: inline-block;
  font-weight: 600;
  padding: 6px 0;
  white-space: nowrap;
  color: #222;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
}

.delivery-marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* optional close button (visually subtle) */
.delivery-banner .marquee-close {
  position: absolute;
  right: 8px;
  top: 6px;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.04);
  color: rgba(0, 0, 0, 0.6);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  transition: background 140ms, transform 120ms;
}

.delivery-banner .marquee-close:hover {
  background: rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

@keyframes mbmw-marquee {
  from {
    transform: translateX(0%);
  }

  to {
    transform: translateX(-50%);
  }
}

/* Make marquee readable on small screens */
@media (max-width: 700px) {
  .delivery-marquee .marquee-track {
    animation-duration: 14s;
  }

  .delivery-marquee span {
    font-size: 0.95rem;
  }
}

/* Allow disabling pause-on-hover by adding .no-pause */
.delivery-marquee.no-pause:hover .marquee-track {
  animation-play-state: running !important;
}

/* Slideshow removed — styles cleaned up (no slideshow HTML present) */

/* Side navigation styles */
.sidenav {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 2001;
  /* header se zyada */
  top: 0;
  left: 0;
  background-color: #fff8f8;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 110px;
  /* header ki height ke barabar */
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.08);
}

.sidenav a {
  padding: 12px 32px;
  text-decoration: none;
  font-size: 1.2em;
  color: #b71c1c;
  display: block;
  transition: 0.2s;
  border-bottom: 1px solid #ffe082;
}

.sidenav a.order-button {
  background: #ffb300;
  color: #fff;
  margin: 12px 24px;
  border-radius: 4px;
  text-align: center;
  border-bottom: none;
}

.sidenav a:hover,
.sidenav a.order-button:hover {
  background: #ffecb3;
  color: #b71c1c;
}

/* ---------------------------
   Profile modal styles
   --------------------------- */
.profile-modal-card {
  position: relative;
  width: 95vw;
  max-width: 640px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}

.profile-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #f44336;
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 2px;
}

.profile-modal-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center
}

.profile-modal-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.profile-modal-avatar-empty {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #b71c1c;
  font-weight: 700;
  font-size: 1.2rem
}

.profile-modal-title h2 {
  font-size: 1.2rem;
  color: #222;
  margin: 0
}

.profile-modal-title div {
  opacity: 0.85
}

.profile-modal-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px
}

.profile-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px
}

.profile-form-row label {
  font-weight: 700;
  color: #444
}

.profile-form-row input[type="text"],
.profile-form-row input[type="email"],
.profile-form-row input[type="tel"],
.profile-form-row input[type="file"] {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e6e6e6;
  width: 100%;
  box-sizing: border-box
}

.profile-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 6px
}

.profile-status {
  color: #666;
  margin-top: 6px
}

@media (max-width:600px) {
  .profile-modal-card {
    padding: 12px;
    border-radius: 8px;
    max-height: 85vh
  }

  .profile-modal-avatar {
    width: 80px;
    height: 80px
  }

  .profile-modal-title h2 {
    font-size: 1rem
  }
}

/* Cropper overlay styles */
.mbmw-cropper-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  z-index: 11000
}

.mbmw-cropper-card {
  background: #fff;
  padding: 12px;
  border-radius: 10px;
  max-width: 92vw;
  width: 720px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 10px
}

.mbmw-cropper-stage {
  width: 100%;
  height: 420px;
  background: #222;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center
}

.mbmw-cropper-stage img {
  user-select: none;
  -webkit-user-drag: none;
  position: absolute;
  will-change: transform
}

.mbmw-cropper-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: space-between
}

.mbmw-cropper-controls .left {
  display: flex;
  gap: 8px;
  align-items: center
}

.mbmw-cropper-controls .actions {
  display: flex;
  gap: 8px
}

.mbmw-cropper-zoom {
  width: 200px
}

.mbmw-cropper-note {
  font-size: 0.9rem;
  color: #666
}

@media (max-width:600px) {
  .mbmw-cropper-stage {
    height: 320px
  }

  .mbmw-cropper-card {
    width: 95vw
  }
}

/* small edit icon on header avatar */
#userAvatar {
  position: relative;
}

.avatar-edit-small {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #b71c1c;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* edit icon inside modal avatar */
.profile-avatar-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #b71c1c;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

/* spinner overlay inside avatar preview */
.avatar-spinner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
}

.avatar-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(0, 0, 0, 0.08);
  border-top-color: #b71c1c;
  animation: mbmw-spin 0.8s linear infinite
}

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


/* Remove or comment out the closebtn styles if you want to clean up */
/*
.sidenav .closebtn {
  position: absolute;
  top: 12px;
  right: 24px;
  font-size: 2em;
  color: #b71c1c;
  background: none;
  border: none;
  cursor: pointer;
}
*/

/* Burger menu icon styling - always visible */
.burger {
  font-size: 2.2em;
  cursor: pointer;
  position: absolute;
  top: 24px;
  right: 32px;
  z-index: 2000;
  /* Z-index high rakhein */
  color: #fff;
  /* White color for dark header */
  background: #b71c1c;
  /* Thoda background bhi de sakte hain */
  border-radius: 6px;
  padding: 4px 10px;
  border: 2px solid #fff;
  display: block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Ensure burger placed inside the search wrapper sits above the input */
#mbmw_search_wrap .burger {
  z-index: 99999 !important;
}

/* Header floating controls: make search and burger touch and burger flush to right edge */
#headerFloatingControls {
  right: 0 !important;
  padding-right: 6px;
  max-width: 420px;
}

#headerFloatingControls #sidebarToggleBtn {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin: 0;
}

@media (max-width:520px) {

  /* On narrow screens hide the header search (keeps only burger), but keep burger flush */
  #headerFloatingControls {
    max-width: 64px;
    padding-left: 6px;
    padding-right: 6px;
  }

  #headerFloatingControls #sidebarToggleBtn {
    width: 48px;
    height: 48px;
  }
}

/* Style Bootstrap icons removed - now using footer-tab styles */

/* Hide nav menu if you want only burger menu on all screens */
nav ul {
  display: none;
}

.main-action-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  background: #fff8f8;
  padding: 14px 0 10px 0;
  border-bottom: 2px solid #ffe082;
  z-index: 1001;
  position: relative;
}

.main-action-btn {
  background: none;
  color: #b71c1c;
  font-weight: 700;
  border: 2px solid #b71c1c;
  border-radius: 30px;
  padding: 8px 18px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  font-size: 1em;
  margin: 2px 0;
  display: inline-block;
}

.main-action-btn:hover,
.main-action-btn:focus {
  background: #b71c1c;
  color: #fff;
  outline: none;
}

.main-action-btn.order-button {
  background: #ffb300;
  color: #fff;
  border: 2px solid #ffb300;
}

/* New tab styles replacing main-action-bar buttons */
.main-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  padding: 10px 8px;
  background: #fff8f8;
  border-bottom: 2px solid #ffe082;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.main-tabs .tab {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 2px solid transparent;
  color: #6b0f0f;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.main-tabs .tab:hover,
.main-tabs .tab:focus {
  background: #fff;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 6px 18px rgba(183, 28, 28, 0.06);
}

.main-tabs .tab.active {
  background: #b71c1c;
  color: #fff;
  box-shadow: 0 8px 26px rgba(183, 28, 28, 0.12);
  transform: none;
}

.main-tabs .tab.action {
  background: linear-gradient(90deg, #ffb300, #ff9800);
  color: #fff;
  border-radius: 18px;
}

@media (max-width:700px) {

  /* keep mobile sticky bar; hide tabs on small screens to avoid clutter */
  .main-tabs {
    display: none !important;
  }
}

.main-action-btn.order-button:hover,
.main-action-btn.order-button:focus {
  background: #ff9800;
  border-color: #ff9800;
  color: #fff;
}

@media (max-width: 600px) {
  .delivery-banner {
    font-size: 1em;
    padding: 10px 4px;
    min-height: 38px;
  }

  .delivery-slide {
    font-size: 1em;
    padding: 0 2px;
  }
}

/* Mobile Footer Tabs (replaces sticky bar) */
@media (max-width: 700px) {

  nav ul,
  .main-action-bar {
    display: none !important;
  }

  /* Hide old sticky bar if it exists */
  .mobile-sticky-bar {
    display: none !important;
  }

  /* New footer tabs for mobile */
  .mobile-footer-tabs {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100vw;
    background: #111;
    border-top: 1px solid #2b2b2b;
    box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.13);
    z-index: 4000;
    padding: 0;
    height: 58px;
    /* Reduced from 70px for sleeker look */
    gap: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow-x: hidden;
  }



  /* Show mobile footer tabs only on mobile screens (768px and below) */
  @media (max-width: 768px) {
    body {
      padding-bottom: 63px;
      /* Adjusted from 75px */
    }
  }

  .footer-tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    /* Reduced from 2px */
    background: transparent;
    border: none;
    color: #fff;
    padding: 4px 3px;
    /* Reduced from 6px 4px */
    cursor: pointer;
    font-weight: 700;
    font-size: 0.75rem;
    /* Slightly reduced */
    transition: all 0.2s ease;
    text-decoration: none;
    outline: none;
    height: 100%;
    min-height: 58px;
    /* Reduced from 70px */
  }

  .footer-tab i {
    font-size: 1.25rem;
    /* Reduced from 1.4rem for sleeker look */
    line-height: 1;
    display: block;
  }

  .footer-tab span {
    display: block;
    font-size: 0.65rem;
    /* Reduced from 0.70rem */
    text-align: center;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
  }

  .footer-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    transform: scale(1.05);
  }

  .footer-tab:focus {
    outline: 2px solid #fff;
    outline-offset: -2px;
  }

  .footer-tab[aria-selected="true"] {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-bottom: 4px solid #9e9e9e;
    font-weight: 800;
  }

  .footer-tab[aria-selected="true"]:hover {
    background: rgba(255, 255, 255, 0.16);
  }

  /* Footer tab sections styling */
  .footer-tab-section {
    position: fixed;
    bottom: 70px;
    left: 0;
    right: 0;
    width: 100vw;
    top: 0;
    height: auto;
    background: #fff;
    z-index: 3999;
    overflow-y: auto;
    animation: footerTabSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .footer-tab-section.active {
    display: block !important;
  }

  .footer-tab-content {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .footer-tab-header {
    padding: 16px;
    border-bottom: 2px solid #ffe082;
    background: #fff8f8;
    flex-shrink: 0;
  }

  .footer-tab-header h3 {
    margin: 0;
    color: #b71c1c;
    font-size: 1.4rem;
    font-weight: 700;
  }

  .footer-tab-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
  }

  .footer-tab-body p {
    text-align: center;
    color: #999;
    padding: 20px 0;
  }

  /* Form styling for footer tabs */
  .profile-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .profile-form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .profile-form-row label {
    font-weight: 700;
    color: #444;
    font-size: 0.95rem;
  }

  .profile-form-row input {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
  }

  .profile-form-row input:focus {
    border-color: #b71c1c;
    box-shadow: 0 0 8px rgba(183, 28, 28, 0.1);
  }

  .profile-form-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    padding-top: 12px;
    margin-top: 12px;
    border-top: 1px solid #e0e0e0;
  }

  .profile-form-actions .btn {
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }

  .profile-status {
    color: #666;
    margin-top: 12px;
    padding: 10px;
    border-radius: 6px;
    background: #f5f5f5;
  }

  /* Order history in footer tab */
  #footerOrderHistoryContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .order-history-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  /* Cart in footer tab */
  #footerCartContainer {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .cart-item-footer {
    background: #fff;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: fadeIn 0.3s ease forwards;
    opacity: 0;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
      opacity: 0;
    }

    to {
      transform: translateY(0);
      opacity: 1;
    }
  }
}

/* Thoda aur compact for very small screens */
@media (max-width: 400px) {

  .main-action-btn,
  .main-action-btn.order-button,
  .order-button {
    font-size: 0.93em;
    padding: 6px 0;
  }

  .burger {
    font-size: 1.3em;
    padding: 1px 5px;
    top: 10px;
    right: 7px;
  }
}

.sidenav-logo {
  text-align: center;
  margin-bottom: 18px;
  margin-top: -80px;
  /* header ki padding adjust karne ke liye */
}

.sidenav-logo img {
  height: 70px;
  width: auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(183, 28, 28, 0.08);
  background: #fff;
  margin: 0 auto;
  display: block;
}

/* WhatsApp Floating Button */

/* Responsive form and sections */
.franchise-enquiry form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 400px;
  margin: 0 auto;
}

.franchise-enquiry input,
.franchise-enquiry textarea,
.franchise-enquiry button {
  font-size: 1rem;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.franchise-enquiry textarea {
  min-height: 80px;
  resize: vertical;
}

.franchise-enquiry button {
  background: #25d366;
  color: #fff;
  border: none;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.franchise-enquiry button:hover {
  background: #1ebe5d;
}

@media (max-width: 600px) {

  main,
  section {
    padding: 12px 6px !important;
  }

  h1,
  h2 {
    font-size: 1.2rem !important;
  }

  .franchise-enquiry form {
    max-width: 100%;
  }
}

/* Auth / Login area styling */
#authBox,
#userBox {
  max-width: 440px;
  margin: 18px auto;
  background: #fff;
  border: 1px solid #ffe082;
  padding: 16px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(183, 28, 28, 0.06);
  /* Use CSS Grid so inputs span full width but buttons can sit side-by-side on wider screens */
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

#authBox h2 {
  grid-column: 1 / -1;
  margin: 0;
  color: #b71c1c;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
}

#authBox input {
  grid-column: 1 / -1;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e9e2e2;
  font-size: 1rem;
  outline: none;
  transition: box-shadow 0.12s ease, border-color 0.12s ease;
}

#authBox input:focus {
  border-color: #b71c1c;
  box-shadow: 0 6px 20px rgba(183, 28, 28, 0.08);
}

/* Buttons: first = Sign Up (outline), last = Login (primary) */
#authBox button {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#authBox button:first-of-type {
  background: transparent;
  color: #b71c1c;
  border: 2px solid #b71c1c;
}

#authBox button:last-of-type {
  background: #b71c1c;
  color: #fff;
  border: none;
}

#authBox button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

#authBox button:first-of-type:hover {
  background: rgba(183, 28, 28, 0.05);
}

#userBox {
  grid-template-columns: 1fr auto;
  align-items: center;
}

#userBox #userEmail {
  grid-column: 1 / 2;
  margin: 0;
  color: #551010;
  font-weight: 700;
}

#userBox button {
  grid-column: 2 / 3;
  background: #ffb300;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
}

@media (min-width: 480px) {

  /* Put buttons side-by-side on larger screens */
  #authBox {
    grid-template-columns: 1fr 1fr;
  }

  #authBox h2 {
    grid-column: 1 / -1;
  }

  #authBox input {
    grid-column: 1 / -1;
  }

  #authBox button {
    grid-column: auto;
  }
}

/* Product grid and cards for Our Products section */
.product-category {
  margin: 18px 0;
}

.product-category h3 {
  margin: 8px 0 12px 0;
  color: #b71c1c;
}

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

.product-category .cat-header {
  cursor: pointer;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #fff, #fff8f8);
  border: 1px solid #fff0e6;
  box-shadow: 0 6px 14px rgba(183, 28, 28, 0.04);
}

.product-category .cat-header:hover,
.product-category .cat-header:focus {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(183, 28, 28, 0.08);
  outline: none;
}

.product-category .cat-header::after {
  content: '▾';
  margin-left: 8px;
  transition: transform 240ms cubic-bezier(.2, .9, .2, 1);
  color: #b71c1c;
  font-size: 0.95em;
  transform-origin: 50% 45%;
}

.product-category.collapsed .cat-header::after {
  transform: rotate(-90deg);
}

/* animated grid: default visible; JS controls inline max-height for smooth transitions */
.product-category .product-grid {
  overflow: hidden;
  transition: max-height 360ms cubic-bezier(.2, .9, .2, 1), opacity 220ms ease;
  opacity: 1;
}

.product-category.collapsed .product-grid {
  opacity: 0;
}

.product-card {
  background: #fff;
  border: 1px solid #f0e6e6;
  border-radius: 8px;
  padding: 10px;
  display: block;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.product-photo {
  width: 100%;
  height: 150px;
  overflow: hidden;
  border-radius: 6px;
  background: #f5f5f5;
  margin-bottom: 8px;
}

.product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

.product-body {
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.product-name {
  margin: 0 0 4px 0;
  font-size: 1.0rem;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  line-height: 1.2;
}

.product-desc {
  color: #555;
  margin: 0 0 4px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.85rem;
  line-height: 1.3;
}

.product-code {
  color: #888;
  font-size: 0.8rem;
  margin: 0;
  line-height: 1.2;
}

.product-price {
  color: #b71c1c;
  font-weight: 800;
  margin: 4px 0;
  font-size: 1.1rem;
  line-height: 1.2;
}

.product-qty {
  color: #666;
  font-size: 0.85rem;
  margin: 0;
  line-height: 1.2;
}

.product-variants-compact {
  margin: 6px 0 !important;
  padding: 4px !important;
  font-size: 0.8rem !important;
}

.variant-badge {
  margin: 1px !important;
  padding: 3px 6px !important;
  font-size: 0.75rem !important;
}

.product-card .buy-btn,
.add-cart-confirm,
#checkoutWhatsapp {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.product-card .buy-btn {
  background: #ffb300;
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 6px;
  padding: 6px 12px;
  margin-top: 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.product-card .buy-btn::after,
.add-cart-confirm::after,
#checkoutWhatsapp::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: btnShine 5s infinite;
  z-index: -1;
}

.product-card .buy-btn:hover {
  background: #ff9800;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
}

@keyframes btnShine {
  0% {
    left: -100%;
  }

  20% {
    left: 100%;
  }

  100% {
    left: 100%;
  }
}

@media (max-width: 900px) {
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }

  .product-photo {
    height: 190px;

  }

  @media (max-width: 700px) {
    .product-grid {
      grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
      gap: 12px;
    }

    .product-photo {
      height: 160px;
    }

    .product-card {
      padding: 9px;
    }

    .product-name {
      font-size: 0.95rem;
    }

    .product-price {
      font-size: 1.0rem;
    }

    .product-card .buy-btn {
      padding: 5px 10px;
      font-size: 0.85rem;
    }

    /* ---------------------------
     Mobile: make product grid edge-to-edge and always two columns
     This keeps other product-grid usage unchanged and only targets
     the product list inside #our-products on small screens.
     The margin trick (50% - 50vw) makes the grid full-bleed while
     still living inside the padded section container.
     --------------------------- */
    @media (max-width: 700px) {

      /* remove section padding specifically for our products container so it feels edge-to-edge */
      #our-products {
        padding: 6px 0 12px;
      }

      /* Make the grid responsive on mobile */
      #our-products .product-category .product-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
        gap: 8px !important;
        /* full-bleed: ensure the grid is centered and covers the entire viewport width
         Use transform centering which is more robust than margin hacks in nested containers */
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        max-width: 100vw;
        box-sizing: border-box;
        /* keep a small safe-area friendly padding so cards don't touch notches directly */
        padding-left: env(safe-area-inset-left, 8px);
        padding-right: env(safe-area-inset-right, 8px);
      }

      /* tighter card styles for a compact mobile feel */
      #our-products .product-card {
        padding: 8px;
        border-radius: 8px;
      }

      #our-products .product-photo {
        height: 140px;
      }

      #our-products .product-body {
        padding: 6px 4px 4px;
      }

      /* reduce buy button size slightly on mobile */
      #our-products .product-card .buy-btn {
        padding: 6px 8px;
        font-size: 0.85rem;
      }

      /* ensure cards don't introduce extra margins that break edge-to-edge layout */
      #our-products .product-card {
        margin: 0;
      }

      /* keep the card border visible without adding external whitespace */
      #our-products .product-card {
        border-radius: 8px;
        overflow: hidden;
      }
    }
  }

}


  /* Order history styles */
  #order-history .order-history-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .order-history-item {
    background: #fff;
    border: 1px solid #ffece6;
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.04);
  }

  .order-history-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
  }

  .order-history-actions {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }

  .order-history-details table td {
    border-bottom: 1px dashed #f0e0e0;
  }

  /* Minor tweaks to ensure modal body scrolls nicely and content looks professional */
  .modal-body .order-history-list {
    margin-top: 6px;
  }

  .list-group-item h6 {
    font-weight: 700;
    color: #222;
  }

  .list-group-item .badge {
    font-size: 0.9em;
  }

  @media (max-width:700px) {
    .modal-dialog.modal-lg {
      max-width: 94vw;
    }
  }

  /* Fade-in-up animation for list items */
  .fade-in-up {
    animation: mbmw-fade-up 420ms cubic-bezier(.2, .9, .2, 1) both;
  }

  @keyframes mbmw-fade-up {
    from {
      opacity: 0;
      transform: translateY(8px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* Loading state for order history */
  .order-history-loading .spinner-border {
    width: 44px;
    height: 44px;
  }

  /* Improve modal body padding on small screens */
  @media (max-width:480px) {
    .modal-body {
      padding: 0.8rem 0.9rem;
    }

    .list-group-item {
      padding: 10px;
    }

    .list-group-item .btn {
      font-size: 12px;
      padding: 4px 8px;
    }
  }

  /* ========================================
       Product Detail Modal (Bootstrap Styled)
       ======================================== */
  .product-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
  }

  .product-detail-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
  }

  .product-detail-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 95%;
    max-width: 900px;
    max-height: 90vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .product-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
    background: #f8f8f8;
  }

  .product-detail-title {
    margin: 0;
    font-size: 1.5rem;
    color: #222;
    flex: 1;
  }

  .product-detail-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
  }

  .product-detail-close:hover {
    background: #ff4444;
    color: #fff;
  }

  .product-detail-body {
    display: flex;
    gap: 20px;
    padding: 20px;
    overflow-y: auto;
    flex: 1;
  }

  .product-detail-images {
    flex: 0 0 auto;
    width: 300px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .product-detail-main {
    width: 100%;
    height: 300px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .product-detail-thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .product-detail-thumb {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s;
  }

  .product-detail-thumb:hover {
    border-color: #b71c1c;
  }

  .product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .product-detail-desc {
    color: #666;
    line-height: 1.6;
    margin: 0;
    font-size: 0.95rem;
  }

  .product-detail-price,
  .product-detail-variants {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f8f8;
    border-radius: 8px;
  }

  .product-detail-price .label,
  .product-detail-variants .label {
    font-weight: 700;
    color: #333;
  }

  .product-detail-price .value {
    color: #b71c1c;
    font-weight: 700;
    font-size: 1.2rem;
  }

  .product-detail-variants .value {
    color: #555;
    font-size: 0.95rem;
  }

  .product-detail-actions {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #eee;
  }

  .product-detail-actions .btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 6px;
    border: none;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
  }

  .product-detail-actions .btn-success {
    background: #28a745;
    color: #fff;
  }

  .product-detail-actions .btn-success:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
  }

  .product-detail-actions .btn-secondary {
    background: #6c757d;
    color: #fff;
  }

  .product-detail-actions .btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
  }

  @media (max-width: 768px) {
    .product-detail-body {
      flex-direction: column;
      gap: 16px;
    }

    .product-detail-images {
      width: 100%;
    }

    .product-detail-content {
      width: 98%;
      max-height: 95vh;
    }

    .product-detail-header {
      padding: 16px;
    }
  }

  /* ========================================
       Fullscreen Image Viewer
       ======================================== */
  .fullscreen-image-modal {
    position: fixed;
    inset: 0;
    z-index: 11000;
    display: none;
    background: #000;
  }

  .fullscreen-image-backdrop {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 11001;
    cursor: pointer;
  }

  .fullscreen-image-content {
    position: fixed;
    inset: 0;
    z-index: 11002;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .fullscreen-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    max-height: 85vh;
  }

  .fullscreen-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    z-index: 11010;
  }

  .fullscreen-close-btn:hover {
    background: #fff;
    transform: scale(1.1);
  }

  .fullscreen-prev-btn,
  .fullscreen-next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 6px;
    width: 50px;
    height: 50px;
    font-size: 28px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: all 0.2s;
    z-index: 11010;
  }

  .fullscreen-prev-btn:hover,
  .fullscreen-next-btn:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
  }

  .fullscreen-prev-btn {
    left: 20px;
  }

  .fullscreen-next-btn {
    right: 20px;
  }

  .fullscreen-counter {
    position: absolute;
    bottom: 100px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 700;
    z-index: 11010;
  }

  .fullscreen-thumbnails {
    position: absolute;
    bottom: 20px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 0;
    border-radius: 8px;
    z-index: 11010;
  }

  .fs_thumb {
    width: 50px;
    height: 50px;
    border: 2px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    object-fit: cover;
  }

  .fs_thumb:hover {
    transform: scale(1.1);
  }

  .fs_thumb.active {
    border-color: #ffb300;
    box-shadow: 0 0 8px rgba(255, 179, 0, 0.6);
  }

  @media (max-width: 600px) {

    .fullscreen-prev-btn,
    .fullscreen-next-btn {
      width: 44px;
      height: 44px;
      font-size: 24px;
    }

    .fullscreen-prev-btn {
      left: 10px;
    }

    .fullscreen-next-btn {
      right: 10px;
    }

    .fullscreen-counter {
      bottom: 80px;
      font-size: 0.9rem;
    }

    .fullscreen-image-container {
      max-height: 80vh;
    }

    .fs_thumb {
      width: 44px;
      height: 44px;
    }
  }

  @media (max-width: 420px) {

    #authBox,
    #userBox {
      padding: 12px;
      margin: 12px 10px;
    }

    #userBox {
      grid-template-columns: 1fr;
      gap: 8px;
    }

    #userBox button {
      grid-column: 1 / -1;
    }
  }

  /* Ensure Bootstrap offcanvas overlays sticky search/category elements */
  .offcanvas {
    z-index: 1800 !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }

  .offcanvas-backdrop {
    z-index: 1750 !important;
    transition: opacity 0.5s ease !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
  }

  /* Ensure Bootstrap modals (order history, login, signup) overlay category tabs and footer tabs */
  .modal {
    z-index: 5000 !important;
  }

  .modal-backdrop {
    z-index: 4950 !important;
  }

  /* Safety: If body is not marked modal-open, backdrops shouldn't block interaction. This prevents
   stale backdrops from trapping scroll if they remain in DOM after a modal is closed. */
  /* Disable pointer events on backdrops by default and enable only when a modal is truly open */
  .modal-backdrop {
    pointer-events: none !important;
  }

  body.modal-open>.modal-backdrop {
    pointer-events: auto !important;
  }

  body:not(.modal-open)>.modal-backdrop {
    display: none !important;
    pointer-events: none !important;
  }

  /* Last-resort: ensure root and body can scroll when no modal is open. This overrides inline overflow: hidden in misconfigured states. */
  html:not(.modal-open),
  body:not(.modal-open) {
    overflow: auto !important;
    height: auto !important;
    touch-action: auto !important;
  }

  /* Cart modal mobile size adjustment */
  @media (max-width: 600px) {
    .cart-modal {
      top: 5vh !important;
      bottom: 5vh !important;
      position: fixed !important;
      left: 0;
      right: 0;
      z-index: 2000;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .cart-content {
      max-height: 90vh !important;
      overflow-y: auto;
      border-radius: 16px;
    }
  }

  /* Floating Cart Button - Premium Redesign (Material Red) */
  .cart-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 24px;
    font-size: 1.1rem;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(183, 28, 28, 0.4);
    cursor: pointer;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-origin: center;
  }

  .cart-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 28px rgba(183, 28, 28, 0.5);
  }

  .cart-float:active {
    transform: translateY(0) scale(0.95);
  }

  .cart-float-icon {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  /* Steam Animation */
  .cart-steam {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 0;
    pointer-events: none;
  }

  .cart-steam span {
    display: block;
    width: 5px;
    height: 14px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: steamRise 2s infinite;
    filter: blur(3px);
    opacity: 0;
  }

  .cart-steam span:nth-child(1) {
    animation-delay: 0s;
    height: 16px;
  }

  .cart-steam span:nth-child(2) {
    animation-delay: 0.6s;
    height: 20px;
  }

  .cart-steam span:nth-child(3) {
    animation-delay: 1.2s;
    height: 14px;
  }

  @keyframes steamRise {
    0% {
      transform: translateY(0) scaleX(1);
      opacity: 0;
    }

    20% {
      opacity: 1;
    }

    50% {
      transform: translateY(-12px) scaleX(1.3);
    }

    100% {
      transform: translateY(-28px) scaleX(2);
      opacity: 0;
    }
  }

  .cart-float-info {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
  }

  .cart-float-count {
    font-size: 0.85rem;
    opacity: 0.9;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .cart-float-price {
    font-size: 1.15rem;
    font-weight: 800;
  }

  /* Pulse animation for updates */
  @keyframes cartPulse {
    0% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.7);
    }

    50% {
      transform: scale(1.15);
      box-shadow: 0 0 0 15px rgba(211, 47, 47, 0);
    }

    100% {
      transform: scale(1);
      box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
  }

  .cart-wobble {
    animation: cartPulse 0.6s ease-out;
  }

  @media (max-width: 768px) {
    .cart-float {
      bottom: 80px;
      /* Above footer nav */
      right: 20px;
      padding: 10px 20px;
    }

    .cart-float-price {
      font-size: 1rem;
    }
  }

  /* Back to Top Button */
  .back-to-top-btn {
    position: fixed;
    bottom: 100px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #222222;
    color: #fff;
    border: 2px solid #ffb300;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    transition: all 300ms cubic-bezier(0.23, 1, 0.320, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 0;
    line-height: 1;
  }

  .back-to-top-btn:hover {
    background: #333333;
    border-color: #ffc107;
    transform: translateY(0) scale(1);
    box-shadow: 0 6px 20px rgba(255, 179, 0, 0.25);
  }

  .back-to-top-btn.show {
    display: flex;
    opacity: 0.7;
    transform: translateY(0) scale(1);
  }

  .back-to-top-btn:hover.show {
    opacity: 1;
  }

  @media (max-width: 700px) {
    .back-to-top-btn {
      bottom: 75px;
      width: 44px;
      height: 44px;
      left: 16px;
      font-size: 18px;
    }
  }

  @media (max-width: 480px) {
    .back-to-top-btn {
      bottom: 70px;
      width: 40px;
      height: 40px;
      left: 12px;
      font-size: 16px;
    }
  }

  /* CRITICAL: Hide mobile footer tabs ONLY on desktop (screen width >= 769px) */
  @media screen and (min-width: 769px) {

    html .mobile-footer-tabs,
    body .mobile-footer-tabs,
    div.mobile-footer-tabs {
      display: none !important;
      visibility: hidden !important;
      height: 0 !important;
      overflow: hidden !important;
      pointer-events: none !important;
      position: fixed !important;
      bottom: -9999px !important;
    }
  }

  /* ---------------------------
   PWA Install Prompt
   --------------------------- */
  #pwaInstallPrompt {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    padding: 16px;
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideUp 0.5s ease-out;
    border: 1px solid #eee;
  }

  #pwaInstallPrompt.hidden {
    display: none !important;
  }

  .pwa-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
  }

  .pwa-content {
    flex: 1;
  }

  .pwa-title {
    font-weight: 700;
    font-size: 1rem;
    margin: 0 0 4px 0;
    color: #333;
  }

  .pwa-desc {
    font-size: 0.85rem;
    color: #666;
    margin: 0;
    line-height: 1.3;
  }

  .pwa-actions {
    display: flex;
    gap: 8px;
    margin-top: 0;
  }

  .pwa-btn {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s;
  }

  .pwa-btn-install {
    background: #b71c1c;
    color: #fff;
  }

  .pwa-btn-install:hover {
    background: #8e1616;
  }

  .pwa-btn-dismiss {
    background: transparent;
    color: #666;
    padding: 8px;
  }

  .pwa-btn-dismiss:hover {
    color: #333;
    background: #f5f5f5;
  }

  @keyframes slideUp {
    from {
      transform: translate(-50%, 100%);
      opacity: 0;
    }

    to {
      transform: translate(-50%, 0);
      opacity: 1;
    }
  }

  @keyframes footerTabSlideUp {
    0% {
      transform: translateY(100%);
      opacity: 0;
    }

    100% {
      transform: translateY(0);
      opacity: 1;
    }
  }

  /* ---------------------------
   Smart Fixed Header
   --------------------------- */
  .smart-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1500;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 8px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .smart-header.visible {
    transform: translateY(0);
  }

  .smart-header-content {
    display: flex;
    align-items: center;
    max-width: 1200px;
    width: 100%;
    justify-content: center;
    /* Center content as requested */
  }

  .smart-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
  }

  .smart-logo-img {
    height: 40px;
    width: auto;
    border-radius: 50%;
  }

  .smart-brand-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b71c1c;
    white-space: nowrap;
  }

  @media (max-width: 600px) {
    .smart-brand-name {
      font-size: 1rem;
    }

    .smart-logo-img {
      height: 32px;
    }
  }

  /* ---------------------------
   Modern Profile Modal Styles
   --------------------------- */
  .profile-modal-card {
    background: #fff;
    width: 90%;
    max-width: 480px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    animation: modalSlideUp 0.3s ease-out;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
  }

  @keyframes modalSlideUp {
    from {
      opacity: 0;
      transform: translateY(20px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .profile-modal-header {
    background: linear-gradient(135deg, #fff8f0 0%, #fff 100%);
    padding: 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
  }

  .profile-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
  }

  .profile-modal-close:hover {
    background: #b71c1c;
    color: #fff;
    transform: rotate(90deg);
  }

  .profile-modal-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
  }

  .profile-modal-avatar-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
    color: #fff;
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(255, 179, 0, 0.3);
  }

  .profile-modal-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }

  .profile-avatar-edit {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .profile-avatar-edit:hover {
    transform: scale(1.15) rotate(15deg);
    background: #fff !important;
    color: #b71c1c !important;
  }

  .profile-modal-title h2 {
    font-size: 1.5rem;
    color: #222;
    margin: 0 0 4px 0;
    border: none;
    padding: 0;
    font-weight: 800;
    letter-spacing: -0.5px;
  }

  .profile-modal-form {
    padding: 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .profile-input-group {
    position: relative;
  }

  .profile-input-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    margin-left: 4px;
  }

  .profile-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
  }

  .profile-input-icon {
    position: absolute;
    left: 14px;
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
    transition: color 0.2s;
  }

  .profile-input {
    width: 100%;
    padding: 12px 12px 12px 42px;
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.95rem;
    color: #333;
    transition: all 0.2s;
    background: #fcfcfc;
    box-sizing: border-box;
  }

  .profile-input:focus {
    border-color: #ffb300;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 179, 0, 0.1);
  }

  .profile-input:focus+.profile-input-icon,
  .profile-input:focus~.profile-input-icon {
    color: #ffb300;
  }

  .profile-input:disabled {
    background: #f0f0f0;
    color: #888;
    border-color: #eee;
    cursor: not-allowed;
  }

  .profile-form-actions {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
  }

  .btn-save-profile {
    background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.25);
    transition: all 0.2s;
  }

  .btn-save-profile:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(183, 28, 28, 0.35);
    color: white;
  }

  .btn-close-profile {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
  }

  .btn-close-profile:hover {
    background: #e0e0e0;
    color: #333;
  }

  .profile-status {
    text-align: center;
    padding: 0 24px 16px;
    color: #666;
  }

  /* Mobile adjustments */
  @media (max-width: 480px) {
    .profile-modal-card {
      width: 100%;
      height: 100%;
      max-height: 100%;
      border-radius: 0;
    }

    .profile-modal-header {
      padding: 20px;
    }

    .profile-modal-form {
      padding: 20px;
    }
  }

  /* Promotional Banner Modal */
  .promo-banner-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    backdrop-filter: blur(4px);
  }

  .promo-banner-content {
    position: relative;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    text-align: center;
    animation: promoPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }

  .promo-banner-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  }

  .promo-banner-close {
    position: absolute;
    top: -16px;
    right: -16px;
    background: #fff;
    color: #333;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
  }

  .promo-banner-close:hover {
    transform: scale(1.1);
    background: #f0f0f0;
  }

  @keyframes promoPop {
    from {
      transform: scale(0.8);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  @media (max-width: 768px) {
    .promo-banner-close {
      top: -12px;
      right: -12px;
      width: 32px;
      height: 32px;
      font-size: 20px;
    }
  }

/* Product Slideshow Styles */
.product-photo {
  position: relative;
  overflow: hidden;
  background: #f5f5f5;
}

/* E-commerce Style Slideshow Images */
.slideshow-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.05);
  /* Start slightly zoomed */
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1),
    transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slideshow-image.active {
  opacity: 1;
  transform: scale(1);
  /* Zoom to normal on active */
  z-index: 2;
}

/* Professional Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
  pointer-events: none;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  backdrop-filter: blur(4px);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.4);
  width: 24px;
  /* Expand to pill shape */
  border-radius: 4px;
}

/* Magic Cloud Animation for Box Builder */
@keyframes magicPoof {
  0% {
    transform: translate(-50%, -50%) scale(0.5);
    opacity: 0;
    filter: hue-rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
    filter: hue-rotate(90deg);
  }
}

.magic-cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 150%;
  height: 150%;
  transform: translate(-50%, -50%);
  /* Start state matching keyframes if needed, but keyframes override */
  background: radial-gradient(circle, rgba(255, 0, 255, 0.8) 0%, rgba(0, 255, 255, 0.8) 50%, rgba(255, 255, 0, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10;
  animation: magicPoof 0.8s ease-out forwards;
  mix-blend-mode: screen;
}

/* Watermark Protection */
.watermark-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  /* Above all items */
  pointer-events: none;
  /* Allow interaction with slots underneath */
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Etext { fill: %23000; font-family: sans-serif; font-weight: 800; font-size: 20px; opacity: 0.5; } %3C/style%3E%3Ctext x='50%25' y='50%25' transform='rotate(-45 150 150)' text-anchor='middle' dominant-baseline='middle'%3EYashtu%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  mix-blend-mode: multiply;
  /* Blends into the texture making simple removal hard */
}

/* Dark mode fallback or high contrast - simple overlay */
@media (prefers-color-scheme: dark) {
  .watermark-overlay {
    background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3Etext { fill: %23fff; font-family: sans-serif; font-weight: 800; font-size: 20px; opacity: 0.5; } %3C/style%3E%3Ctext x='50%25' y='50%25' transform='rotate(-45 150 150)' text-anchor='middle' dominant-baseline='middle'%3EYashtu%3C/text%3E%3C/svg%3E");
    mix-blend-mode: soft-light;
  }
}

/* Yashtu Theme Overrides */
:root {
  --yashtu-black: #111111;
  --yashtu-grey: #2b2b2b;
  --yashtu-grey-2: #4a4a4a;
  --yashtu-accent: #cfcfcf;
}

header {
  background-color: var(--yashtu-black) !important;
}

.header-brand-title,
.header-icon-btn {
  color: #ffffff !important;
}

.order-button,
.product-card .buy-btn {
  background-color: var(--yashtu-grey) !important;
}

.order-button:hover,
.order-button:focus,
.product-card .buy-btn:hover {
  background-color: var(--yashtu-grey-2) !important;
}

/* --- Custom Box Builder Styles (Migrated) --- */
/* Animations */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bb-step {
  display: none;
}

.bb-step.active {
  display: block;
  animation: fadeSlideUp 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Box Selection Cards */
.box-type-card {
  background: #ffffff;
  border: none;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  position: relative;
  cursor: pointer;
}

.box-type-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.box-type-card img {
  transition: transform 0.5s ease;
}

.box-type-card:hover img {
  transform: scale(1.05);
}

.box-card-body {
  padding: 1.25rem;
  text-align: center;
}

/* Box Card Slideshow Styles */
.box-card-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
}

.box-card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  pointer-events: none;
}

.box-card-image.active {
  opacity: 1;
  pointer-events: auto;
}

/* Indicators/Dots */
.box-card-indicators {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
}

.box-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.box-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.box-indicator.active {
  background: #fff;
  width: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

/* Canvas Area */
.bb-canvas-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border: 4px solid #fff;
}

.bb-field-slot {
  position: absolute;
  border: 2px dashed rgba(183, 28, 28, 0.2);
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  backdrop-filter: blur(2px);
}

.bb-field-slot:hover {
  background: rgba(255, 179, 0, 0.15);
  border-color: #ffb300;
  transform: scale(1.02);
  z-index: 10;
}

.bb-field-slot.filled {
  border: none;
  background: transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bb-field-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #b71c1c;
  text-transform: uppercase;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.bb-shape-round {
  border-radius: 50% !important;
}

.bb-item-img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  transition: transform 0.3s ease;
}

/* Watermark */
.watermark-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40%;
  opacity: 0.25;
  pointer-events: none;
  z-index: 5;
  user-select: none;
}

/* Thumbnails */
.lid-thumb {
  transition: all 0.2s;
  border: 2px solid transparent;
}

.lid-thumb:hover {
  transform: translateY(-2px);
  border-color: #ffb300;
}

/* Sidebar Card */
.selection-card {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.selection-list-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 12px 0;
  transition: background 0.2s;
}

.selection-list-item:hover {
  background: rgba(0, 0, 0, 0.01);
}

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

/* Item Modal Cards */
.item-card {
  border: none;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.2s;
  overflow: hidden;
  border: 1px solid transparent;
}

.item-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  border-color: #ffb300;
}

.item-card img {
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

/* Sticky Footer (custom for box builder, might need adjustment for tab view) */
.bb-price-bar {
  position: fixed;
  bottom: 50px;
  /* Adjusted for footer tabs height */
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  padding: 16px 24px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.08);
  z-index: 990;
  /* Below footer tabs */
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  animation: slideUp 0.3s ease-out;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-custom-primary {
  background: linear-gradient(135deg, #ffb300 0%, #ff8f00 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(255, 143, 0, 0.3);
  transition: all 0.3s ease;
}

.btn-custom-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 143, 0, 0.4);
  color: #fff;
}

.btn-custom-primary:disabled {
  background: #ccc;
  box-shadow: none;
  cursor: not-allowed;
}

.magic-cloud {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 20;
  opacity: 0;
  animation: magicBurst 1s ease-out forwards;
}

/* Create sparkle particles using pseudo-elements */
.magic-cloud::before,
.magic-cloud::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0%, #ffd700 100%);
  box-shadow:
    0 0 10px #ffd700,
    0 0 20px #ffd700,
    0 0 30px #ff00de;
}

@keyframes magicBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }

  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(2);
  }
}

/* Sparkle particles animation */
@keyframes sparkleOut {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%) scale(3);
    opacity: 0;
  }
}

/* --- Sparkle Animation for Box Tab Icon --- */
@keyframes sparklePulse {
  0% {
    text-shadow: 0 0 2px #ff00de, 0 0 8px #ff00de;
    transform: scale(1);
    filter: hue-rotate(0deg);
  }

  50% {
    text-shadow: 0 0 5px #00ffff, 0 0 12px #00ffff;
    transform: scale(1.1);
    filter: hue-rotate(180deg);
  }

  100% {
    text-shadow: 0 0 2px #ff00de, 0 0 8px #ff00de;
    transform: scale(1);
    filter: hue-rotate(360deg);
  }
}

.icon-sparkle {
  animation: sparklePulse 2s infinite ease-in-out;
  color: #fff !important;
  /* Ensure base color is bright */
  display: inline-block;
}

/* --- Premium Magic Sparkle Animation (Detailed) --- */
.magic-sparkle-container {
  position: relative;
  display: inline-block;
}

/* Pseudo-elements for sparkles */
.magic-sparkle-container::before,
.magic-sparkle-container::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
  background-size: 20px 20px;
  /* control spacing of sparkles */
  opacity: 0;
}

/* Default State: Slow, subtle loop */
.magic-sparkle-container::before {
  background-image:
    radial-gradient(2px 2px at 20% 30%, #ffd700 50%, transparent 60%),
    radial-gradient(2px 2px at 80% 20%, #ff00de 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 80%, #00ffff 50%, transparent 60%);
  animation: gentleTwinkle 4s ease-in-out infinite;
}

.magic-sparkle-container::after {
  background-image:
    radial-gradient(2px 2px at 90% 80%, #ffd700 50%, transparent 60%),
    radial-gradient(1.5px 1.5px at 10% 20%, #ff00de 50%, transparent 60%);
  animation: gentleTwinkle 5s ease-in-out infinite reverse;
}

/* Active State: Brighter, Faster, Burst */
.footer-tab[aria-selected="true"] .magic-sparkle-container::before {
  animation: activeSparkle 2s ease-in-out infinite;
  opacity: 1;
}

.footer-tab[aria-selected="true"] .magic-sparkle-container::after {
  animation: activeSparkle 2.5s ease-in-out infinite reverse;
  opacity: 0.8;
}

/* Keyframes */
@keyframes gentleTwinkle {

  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
    opacity: 0.3;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.05) rotate(10deg);
    opacity: 0.6;
  }
}

@keyframes activeSparkle {
  0% {
    transform: translate(-50%, -50%) scale(0.9) rotate(0deg);
    opacity: 0.5;
    filter: brightness(1);
  }

  50% {
    transform: translate(-50%, -50%) scale(1.2) rotate(15deg);
    opacity: 1;
    filter: brightness(1.5);
  }

  100% {
    transform: translate(-50%, -50%) scale(0.9) rotate(30deg);
    opacity: 0.5;
    filter: brightness(1);
  }
}

/* 3D Box Neon Animation */

/* Container for the SVG icon */
.box-icon-anim {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 2px auto;
  /* mimic typical icon spacing */
  overflow: visible;
}

/* Base wireframe (dim color) */
.box-base {
  fill: none;
  stroke: rgba(140, 140, 160, 0.4);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Inner details (static, very dim) */
.box-inner {
  fill: none;
  stroke: rgba(140, 140, 160, 0.2);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* The running neon line */
.box-highlight {
  fill: none;
  stroke: #00e5ff;
  /* Initial color (Cyan) */
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* Dash array setup for the "snake" effect */
  /* The total path length of the outer hexagon is approx 60-70 units depending on drawing.
     Let's estimate ~64. We want a segment of length ~15-20. */
  stroke-dasharray: 18 200;
  stroke-dashoffset: 0;

  /* Filter for glow */
  filter: drop-shadow(0 0 2px currentColor);

  /* Animations */
  animation:
    box-dash 1.8s linear infinite,
    box-hue-shift 4s linear infinite;
}

/* Animation Keyframes */

/* 1. Dash Offset: Runs the dash along the path */
@keyframes box-dash {
  to {
    stroke-dashoffset: -160;
    /* Adjust based on path length for smooth loop */
  }
}

/* 2. Hue Rotate: Cycles through neon colors */
/* Cyan -> Blue -> Purple -> Magenta -> Gold -> Cyan */
@keyframes box-hue-shift {
  0% {
    stroke: #00e5ff;
  }

  /* Cyan */
  25% {
    stroke: #2979ff;
  }

  /* Blue */
  50% {
    stroke: #d500f9;
  }

  /* Purple/Magenta */
  75% {
    stroke: #ffd600;
  }

  /* Gold */
  100% {
    stroke: #00e5ff;
  }

  /* Cyan */
}

/* --- Box Icon Animation (Start) --- */
.box-icon-anim {
  width: 24px;
  height: 24px;
  display: block;
  margin: 0 auto 2px auto;
  overflow: visible;
}

.footer-tab[data-tab="box"] span {
  margin-top: 2px;
}

/* Base + Inner wires = Full neon glow */
.box-base,
.box-inner {
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;

  /* Lower brightness but still glowing */
  animation: box-full-glow 3s linear infinite;
  filter: drop-shadow(0 0 3px currentColor);
}

/* Animation for full-wire glow */
@keyframes box-full-glow {
  0% {
    stroke: #00e5ff;
  }

  33% {
    stroke: #ff00de;
  }

  66% {
    stroke: #ffd700;
  }

  100% {
    stroke: #00e5ff;
  }
}

/* Running streak (brighter moving line) */
.box-highlight {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;

  stroke-dasharray: 20 100;
  stroke-dashoffset: 0;

  animation:
    box-streak-move 1.8s linear infinite,
    box-full-glow 3s linear infinite;
  filter: drop-shadow(0 0 6px currentColor);
}

/* Moving streak */
@keyframes box-streak-move {
  0% {
    stroke-dashoffset: 90;
  }

  100% {
    stroke-dashoffset: -90;
  }
}

/* --- Box Icon Animation (End) --- */

/* ---------------------------
   Box Tab Tooltip (Mobile Only)
   --------------------------- */
.box-tab-tooltip {
  position: fixed;
  z-index: 5000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  max-width: 280px;
}

.box-tab-tooltip.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.box-tooltip-content {
  position: relative;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.15),
    0 1px 4px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(183, 28, 28, 0.1);
}

/* Arrow pointing down to the Box tab */
.box-tooltip-content::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #ffffff;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
}

.box-tooltip-text {
  font-size: 0.875rem;
  line-height: 1.5;
  color: #333;
  padding-right: 24px;
}

.box-tooltip-text strong {
  color: #b71c1c;
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

.box-tooltip-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
  color: #666;
  width: 28px;
  height: 28px;
}

.box-tooltip-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #b71c1c;
  transform: scale(1.1);
}

.box-tooltip-close:active {
  transform: scale(0.95);
}

.box-tooltip-close svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

/* Hide tooltip on desktop */
@media (min-width: 769px) {
  .box-tab-tooltip {
    display: none !important;
  }
}

/* ---------------------------
   Desktop Overrides (Robust)
   --------------------------- */
@media (min-width: 769px) {

  /* Force hide all mobile-specific elements on desktop */
  .mobile-footer-tabs,
  .footer-tab-section,
  .footer-tab-section.active,
  #pwaInstallPrompt,
  .promo-banner-modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -1 !important;
  }

  body {
    padding-bottom: 0 !important;
  }
}

/* Profile Hub Mobile Styles */
.profile-menu-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px 0;
}

.profile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  text-decoration: none;
  color: #333;
  font-weight: 600;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.profile-menu-btn:active {
  transform: scale(0.98);
  background: #fafafa;
}

.profile-menu-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.1rem;
}

.profile-menu-arrow {
  color: #ccc;
}

.profile-logout-btn {
  margin-top: 20px;
  width: 100%;
  padding: 14px;
  background: #fff3f3;
  color: #d32f2f;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}


/* Pure Veg Icon in Header */
.veg-icon-container {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 1000;
  background: white;
  padding: 4px;
  border-radius: 4px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.veg-icon-box {
  width: 18px;
  height: 18px;
  border: 2px solid #2e7d32;
  /* Green border */
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.veg-icon-circle {
  width: 10px;
  height: 10px;
  background-color: #2e7d32;
  /* Green circle */
  border-radius: 50%;
}

/* Position adjustment for mobile to avoid overlapping hamburger/auth buttons */
@media (max-width: 768px) {
  .veg-icon-container {
    right: 55px;
    /* Move left of the hamburger/sidebar toggle */
    top: 14px;
    padding: 3px;
  }

  .veg-icon-box {
    width: 16px;
    height: 16px;
  }

  .veg-icon-circle {
    width: 8px;
    height: 8px;
  }
}


/* Unified App Header Styles */
header {
  background-color: #b71c1c;
  color: white;
  padding: 0;
  position: fixed;
  top: 0;
  z-index: 1020;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition: all 0.3s ease;
}

/* Ensure header logo appears without any square background or extra chrome */
.header-logo-link,
.header-logo-link .logo-wrapper {
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.header-logo-link:focus {
  outline: none;
}

.header-logo-link img,
.header-logo-link .logo-wrapper img {
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  display: block;
  width: auto;
  height: 36px;
  object-fit: contain;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  gap: 6px;
}

.header-icon-btn {
  background: transparent;
  border: none;
  color: white;
  font-size: 1.8rem;
  padding: 4px;
  line-height: 1;
  cursor: pointer;
}

.header-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex: 1;
  justify-content: flex-start;
  /* Align left next to hamburger */
  overflow: hidden;
}

.small-logo {
  flex-shrink: 0;
}

.small-logo img {
  height: 44px;
  width: auto;
  border-radius: 0;
  display: block;
  box-shadow: none;
  transition: transform 0.2s ease;
}

.small-logo img:hover {
  transform: scale(1.03);
}

.header-title-col {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.header-brand-title {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.header-brand-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  line-height: 1;
}

@media (min-width: 768px) {
  .header-brand-title {
    font-size: 1.6rem;
    line-height: 1.15;
  }

  .header-brand-subtitle {
    font-size: 0.9rem;
  }

  .small-logo img {
    height: 54px;
  }
}

@media (min-width: 1024px) {
  .header-brand-title {
    font-size: 1.9rem;
  }

  .header-brand-subtitle {
    font-size: 0.98rem;
  }

  .small-logo img {
    height: 60px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Veg Icon Small */
.veg-icon-static {
  background: white;
  padding: 2px;
  border-radius: 4px;
}

.veg-icon-box-sm {
  width: 16px;
  height: 16px;
  border: 2px solid #2e7d32;
  display: flex;
  align-items: center;
  justify-content: center;
}

.veg-icon-circle-sm {
  width: 8px;
  height: 8px;
  background: #2e7d32;
  border-radius: 50%;
}

/* Search Bar Row */
.header-search-row {
  padding: 0 8px 4px;
}

.search-bar-container {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  display: flex;
  align-items: center;
  padding: 7px 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  flex: 1;
  max-width: 460px;
  backdrop-filter: blur(2px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.search-bar-container:focus-within {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.search-icon {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  margin-right: 8px;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.search-input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.9rem;
  color: #fff;
  background: transparent;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}


/* Mobile Adjustments */
@media (max-width: 768px) {
  .header-top-row {
    padding: 8px 10px;
    gap: 8px;
  }

  .small-logo img {
    height: 40px;
  }

  /* Force header image smaller on mobile */
  header .header-logo-link img {
    height: 36px;
  }

  .header-center-section {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .header-brand-container {
    display: none;
  }

  .search-bar-container {
    max-width: none;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.18);
  }

  .search-input {
    font-size: 0.85rem;
  }

  .search-icon {
    font-size: 0.9rem;
    margin-right: 6px;
  }

  .header-icon-btn {
    font-size: 1.6rem;
    padding: 2px;
  }

  /* Sleek category row (mobile first: dropdown) */
  .header-category-row {
    padding: 6px 8px;
  }

  .category-tabs-wrap {
    padding: 4px 6px;
  }

  .cat-select {
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 10px;
  }
}

/* ===== CATEGORY ROW: Sleek styling (override inline script styles) ===== */
.header-category-row {
  background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
  padding: 4px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.category-tabs-wrap {
  width: 100%;
  padding: 4px 8px;
}

.category-tabs-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

/* Dropdown selector slimmer */
.cat-select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: #333;
  transition: all 0.12s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.cat-select:focus {
  outline: none;
  border-color: rgba(183, 28, 28, 0.5);
  box-shadow: 0 2px 6px rgba(183, 28, 28, 0.08);
}

/* Desktop tabs - visible on large screens */
@media (min-width: 768px) {
  .category-tabs {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 6px 0;
    overflow-x: auto;
    scrollbar-width: none;
    /* firefox */
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tabs .cat-tab {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: background 0.12s ease, transform 0.12s ease;
  }

  .category-tabs .cat-tab:hover {
    transform: translateY(-1px);
  }

  .category-tabs .cat-tab.active {
    background: #fff;
    color: #b71c1c;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }

  /* Keep dropdown hidden on desktop when tabs visible */
  .cat-select {
    display: none;
  }

  .category-tabs-wrap {
    padding: 2px 10px;
  }
}

/* Tweak height and spacing for small screens */
@media (max-width: 480px) {
  .header-category-row {
    padding: 6px 8px;
  }

  .category-tabs-wrap {
    padding: 2px 8px;
  }

  .cat-select {
    padding: 10px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  header {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
  }

  /* Desktop override for header logo size (set above) */
}

@media (min-width: 768px) {
  header .header-logo-link img {
    height: 44px !important;
  }
}

.header-top-row {
  padding: 6px 8px;
  gap: 6px;
}

.small-logo img {
  height: 36px;
}

.search-bar-container {
  padding: 5px 10px;
  border-radius: 20px;
}

.search-input {
  font-size: 0.8rem;
}

.search-input::placeholder {
  font-size: 0.75rem;
}

.search-icon {
  font-size: 0.85rem;
  margin-right: 5px;
}

.header-icon-btn {
  font-size: 1.5rem;
  padding: 1px;
}


/* Category Selector Styles */
.sleek-category-select {
  border: none;
  background: transparent;
  font-size: 0.9rem;
  color: #555;
  font-weight: 600;
  outline: none;
  padding: 0 4px;
  cursor: pointer;
  max-width: 100px;
}

.sleek-category-select:focus {
  color: #b71c1c;
}

.search-divider {
  width: 1px;
  height: 24px;
  background: #eee;
  margin: 0 8px;
}

@media (max-width: 480px) {
  .sleek-category-select {
    font-size: 0.8rem;
    max-width: 70px;
  }

  .search-divider {
    margin: 0 6px;
  }
}