/* ===================================================================
   MANANA CRACKERS - FESTIVE THEME WITH CATEGORY MARQUEE & FIXED ORDER FOOTER
   Store: Manana Crackers, 124, Pernaickerpatti, Sivakasi
   Phone: +91 99522 28292
   =================================================================== */

:root {
  --mc-blue-900: #021438;
  --mc-blue-800: #0a2d6e;
  --mc-blue-700: #0a58ca;
  --mc-blue-600: #0d6efd;
  --mc-blue-500: #38bdf8;
  --mc-blue-100: #e0f2fe;
  --mc-blue-50:  #f0f7ff;
  
  --mc-gold-500: #f59e0b;
  --mc-gold-400: #fbbf24;
  --mc-gold-100: #fef3c7;
  
  --mc-green-800: #064e3b;
  --mc-green-700: #0e4d3c;
  --mc-green-600: #16a34a;
  --mc-green-soft: #15803d;
  
  --mc-magenta-cart: #e11d48;
  --mc-berry-header: #9e1248;
  --mc-red-600:   #dc2626;
  
  --mc-text-dark: #0f172a;
  --mc-text-muted: #64748b;
  --mc-border: #bfdbfe;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, 'Noto Sans Tamil', 'Lohit Tamil', sans-serif;
  color: var(--mc-text-dark);
  background-color: #f8faff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Ensure padding on mobile for sticky bottom dock / fixed bar */
@media (max-width: 991px) {
  body {
    padding-bottom: 74px;
  }
}

/* Announcement Ticker */
.announcement-bar {
  background: linear-gradient(90deg, #021438, #0a58ca, #021438);
  color: #ffffff;
  padding: 8px 0;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 1px solid rgba(56, 189, 248, 0.3);
}

.ticker-wrap {
  overflow: hidden;
  white-space: nowrap;
}

.ticker-move {
  display: inline-block;
  animation: tickerScroll 40s linear infinite;
}

.ticker-item {
  display: inline-block;
  padding: 0 30px;
}

@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* ===================================================================
   LOGO WITH SPARKLING EFFECT & RESPONSIVENESS
   =================================================================== */

.logo-wrapper-sparkle {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

.logo-wrapper-sparkle:hover {
  transform: scale(1.04);
}

.logo-sparkle-img {
  max-height: 60px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(10, 88, 202, 0.25));
  animation: logoTwinklePulse 4s infinite ease-in-out;
}

@keyframes logoTwinklePulse {
  0%, 100% { filter: drop-shadow(0 2px 6px rgba(10, 88, 202, 0.25)); }
  50% { filter: drop-shadow(0 0 14px rgba(251, 191, 36, 0.65)) drop-shadow(0 0 4px rgba(225, 29, 72, 0.5)); }
}

/* ===================================================================
   CATEGORY MARQUEE FILTER (SLOW SMOOTH TICKER WITH PAUSE ON HOVER)
   =================================================================== */

.category-marquee-container {
  overflow: hidden;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.category-marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  width: 100%;
}

.category-marquee-track {
  display: inline-flex;
  gap: 10px;
  animation: categoryMarquee 50s linear infinite;
}

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

@keyframes categoryMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.cat-pill:hover {
  background-color: var(--mc-blue-100);
  border-color: var(--mc-blue-600);
  color: var(--mc-blue-700);
  transform: translateY(-1px);
}

.cat-pill.active {
  background-color: var(--mc-blue-700);
  border-color: var(--mc-blue-700);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(10, 88, 202, 0.3);
}

/* Navigation - Standard Non-Fixed */
.navbar-custom {
  background: #ffffff;
  border-bottom: 2px solid var(--mc-blue-100);
  box-shadow: 0 4px 20px rgba(10, 88, 202, 0.08);
  transition: all 0.3s ease;
}

.nav-link {
  font-weight: 600;
  font-size: 14.5px;
  color: #1e293b !important;
  padding: 8px 14px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--mc-blue-700) !important;
  background-color: var(--mc-blue-50);
}

/* Primary Buttons */
.btn-mc-primary {
  background: linear-gradient(135deg, var(--mc-blue-700), var(--mc-blue-600));
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  box-shadow: 0 4px 14px rgba(13, 110, 253, 0.25);
  transition: all 0.25s ease;
}

.btn-mc-primary:hover {
  background: linear-gradient(135deg, #084298, var(--mc-blue-700));
  transform: translateY(-2px);
}

.btn-mc-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  transition: all 0.25s ease;
}

.btn-mc-gold:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-2px);
}

/* Red Reset Cart Button */
.btn-reset-cart {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #ffffff !important;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13.5px;
  box-shadow: 0 3px 10px rgba(220, 38, 38, 0.3);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-reset-cart:hover {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(220, 38, 38, 0.4);
}

/* Hero Section */
.hero-festive {
  position: relative;
  background: linear-gradient(135deg, var(--mc-blue-900) 0%, #0a3d91 50%, var(--mc-blue-700) 100%);
  color: #ffffff;
  padding: 50px 0 45px 0;
  overflow: hidden;
}

#fireworksCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

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

/* Countdown Timer */
.countdown-box {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}

.countdown-number {
  font-size: 24px;
  font-weight: 800;
  color: var(--mc-gold-400);
  line-height: 1.1;
}

.countdown-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #e2e8f0;
}

/* Category Cards */
.category-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-4px);
  border-color: var(--mc-blue-600);
  box-shadow: 0 8px 20px rgba(10, 88, 202, 0.1);
  color: inherit;
}

.category-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.category-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--mc-blue-900);
  margin-bottom: 2px;
}

.category-tamil {
  font-size: 11px;
  color: var(--mc-blue-700);
  margin-bottom: 5px;
}

.category-badge {
  font-size: 11px;
  font-weight: 600;
  background: var(--mc-blue-100);
  color: var(--mc-blue-700);
  padding: 2px 8px;
  border-radius: 20px;
}

/* ===================================================================
   OUR BRANDS SHOWCASE SECTION (MATCHING SCREENSHOT image_6881b6.png)
   =================================================================== */

.brand-section-tag {
  color: #ea580c;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.brand-section-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.brand-title-divider {
  width: 44px;
  height: 3px;
  background-color: #ea580c;
  margin: 0 auto 16px auto;
  border-radius: 2px;
}

.brand-section-desc {
  font-size: 14px;
  color: #64748b;
  max-width: 620px;
  line-height: 1.5;
}

.brand-showcase-card {
  background: #ffffff;
  border: 1px solid #f1f5f9;
  border-radius: 18px;
  padding: 22px 14px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.brand-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(10, 88, 202, 0.1);
  border-color: #cbd5e1;
}

.brand-logo-circle {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  padding: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.brand-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-card-title {
  font-weight: 800;
  font-size: 13px;
  color: #0f172a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.brand-card-tamil {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

/* ===================================================================
   FLOATING ACTION BUTTONS (CALL, WHATSAPP, CART)
   =================================================================== */

.floating-actions-dock {
  position: fixed;
  bottom: 24px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1050;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-call-btn {
  background: linear-gradient(135deg, #0284c7, #0a58ca);
  color: #ffffff !important;
}

.floating-wa-btn {
  background: #25d366;
  color: #ffffff !important;
  font-size: 26px;
}

.floating-cart-btn-pill {
  background: linear-gradient(135deg, #0a58ca, #0d6efd);
  color: #ffffff !important;
  width: auto !important;
  height: 52px;
  border-radius: 30px !important;
  padding: 0 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-weight: 700;
  font-size: 14px;
}

.floating-cart-count {
  font-size: 12px;
  padding: 3px 7px;
}

.floating-btn-tooltip {
  position: absolute;
  right: 64px;
  background: #021438;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.floating-btn:hover .floating-btn-tooltip {
  opacity: 1;
}

/* Adjust floating buttons on mobile when products fixed bar is present */
@media (max-width: 991px) {
  .floating-actions-dock {
    bottom: 85px;
    right: 14px;
    gap: 10px;
  }
  .floating-btn {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .floating-cart-btn-pill {
    height: 46px;
    padding: 0 14px !important;
    font-size: 13px;
  }
}

/* Product Cards */
.product-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--mc-blue-500);
  box-shadow: 0 8px 24px rgba(10, 88, 202, 0.12);
}

.product-discount-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  z-index: 2;
}

.product-img-box {
  background: #f8fafc;
  padding: 12px;
  text-align: center;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.product-img-box img {
  max-height: 115px;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
}

.product-img-box:hover img {
  transform: scale(1.08);
}

.product-body {
  padding: 12px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-code {
  font-size: 11px;
  font-weight: 700;
  color: var(--mc-blue-600);
}

.product-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--mc-text-dark);
  margin: 3px 0 6px 0;
  line-height: 1.3;
}

.product-pricing {
  margin-top: auto;
  border-top: 1px dashed #e2e8f0;
  padding-top: 8px;
}

.price-mrp {
  font-size: 12px;
  color: var(--mc-red-600);
  text-decoration: line-through;
}

.price-factory {
  font-size: 18px;
  font-weight: 800;
  color: var(--mc-blue-700);
}

/* Stepper Box in Product Cards */
.stepper-box {
  width: 100%;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  border-radius: 6px;
  line-height: 1;
}

.stepper-qty {
  font-size: 15px;
  min-width: 30px;
  text-align: center;
}

/* ===================================================================
   FIXED BOTTOM FOOTER BAR (MATCHING SCREENSHOT image_680571.png)
   =================================================================== */

.fixed-bottom-order-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #ffffff;
  box-shadow: 0 -4px 22px rgba(0, 0, 0, 0.14);
  border-top: 1px solid #e2e8f0;
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  z-index: 1040;
}

.fixed-bar-inner {
  padding: 10px 14px;
}

.fixed-bar-label {
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.fixed-bar-amount {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
}

.fixed-bar-divider {
  width: 1.5px;
  height: 28px;
  background-color: #cbd5e1;
}

.fixed-bar-cart-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mc-magenta-cart);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  border: none;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 15px rgba(225, 29, 72, 0.45);
  transition: transform 0.2s ease;
}

.fixed-bar-cart-circle:hover {
  transform: scale(1.08);
}

.fixed-bar-cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #fbbf24;
  color: #021438;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* ===================================================================
   PROCEED TO ORDER DRAWER (Slide-out Right Drawer)
   =================================================================== */

.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

.checkout-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: #ffffff;
  z-index: 2001;
  box-shadow: -10px 0 35px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.checkout-drawer.open {
  right: 0;
}

.drawer-header {
  background-color: var(--mc-green-800);
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.drawer-sub {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  opacity: 0.85;
}

.drawer-title {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}

.drawer-body {
  padding: 18px;
  overflow-y: auto;
  flex-grow: 1;
}

.drawer-item-card {
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.drawer-item-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  cursor: pointer;
}

.drawer-item-title {
  font-weight: 700;
  font-size: 13.5px;
  color: #0f172a;
}

.drawer-item-total {
  font-weight: 800;
  font-size: 14.5px;
  color: #0f172a;
}

.drawer-item-sub {
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.btn-drawer-trash {
  background: transparent;
  border: none;
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.drawer-stepper {
  display: flex;
  align-items: center;
  background: var(--mc-green-800);
  border-radius: 6px;
  overflow: hidden;
}

.drawer-step-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  width: 28px;
  height: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-step-btn:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-step-val {
  color: #ffffff;
  font-weight: 700;
  font-size: 13.5px;
  min-width: 24px;
  text-align: center;
}

.drawer-calc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.drawer-min-order-card {
  background-color: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
}

.drawer-customer-section {
  border-top: 2px solid #f1f5f9;
  padding-top: 16px;
}

.drawer-section-title {
  color: var(--mc-green-800);
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 14px;
}

.drawer-input {
  border-radius: 8px;
  border: 1.5px solid #cbd5e1;
  padding: 9px 12px;
  font-size: 13.5px;
}

.drawer-input:focus {
  border-color: var(--mc-green-600);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.btn-drawer-place-order {
  background: linear-gradient(135deg, #15803d, #16a34a);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  padding: 12px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 14px rgba(21, 128, 61, 0.3);
  transition: all 0.2s ease;
}

.btn-drawer-place-order:hover {
  background: linear-gradient(135deg, #0e5b29, #15803d);
  color: #ffffff;
}

/* Footer */
.footer-main {
  background: linear-gradient(180deg, #021438 0%, #010b1e 100%);
  color: #94a3b8;
  padding: 50px 0 20px 0;
  border-top: 4px solid var(--mc-blue-600);
}

.footer-title {
  color: #ffffff;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 18px;
}

.footer-link {
  color: #94a3b8;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  font-size: 13.5px;
}

.footer-link:hover {
  color: var(--mc-blue-500);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  margin-top: 35px;
  font-size: 12.5px;
}
