/**
 * CornFoodBar.com - Main Stylesheet
 * Brand Colors:
 * - Corn Yellow: #F4C430
 * - Fresh Green: #2E7D32
 * - Dark Green:  #1B5E20
 * - Light Cream: #FFF8E7
 * - Soft Yellow: #FEF3C7
 * - Charcoal:    #1A2421
 */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap');

:root {
  --cfb-yellow: #F4C430;
  --cfb-yellow-hover: #E0B020;
  --cfb-yellow-light: #FFF8E7;
  --cfb-yellow-soft: #FEF3C7;
  
  --cfb-green: #2E7D32;
  --cfb-green-hover: #256628;
  --cfb-green-dark: #1B5E20;
  --cfb-green-light: #E8F5E9;

  --cfb-charcoal: #1A2421;
  --cfb-muted: #5C6A64;
  --cfb-border: #E8ECE9;
  --cfb-card-bg: #FFFFFF;
  --cfb-body-bg: #FCFCF9;

  --cfb-font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --cfb-font-accent: 'Playfair Display', Georgia, serif;

  --cfb-shadow-sm: 0 2px 8px rgba(27, 94, 32, 0.06);
  --cfb-shadow-md: 0 8px 24px rgba(27, 94, 32, 0.09);
  --cfb-shadow-lg: 0 16px 36px rgba(27, 94, 32, 0.12);
  --cfb-radius: 16px;
  --cfb-radius-sm: 10px;
}

body {
  font-family: var(--cfb-font-main);
  background-color: var(--cfb-body-bg);
  color: var(--cfb-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  padding-bottom: 70px; /* Space for mobile bottom bar */
}

@media (min-width: 992px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4, .brand-font {
  font-weight: 700;
  color: var(--cfb-green-dark);
}

.serif-title {
  font-family: var(--cfb-font-accent);
  font-weight: 700;
}

a {
  text-decoration: none;
  color: var(--cfb-green);
  transition: all 0.25s ease;
}

a:hover {
  color: var(--cfb-green-hover);
}

/* -------------------------------------------------------------
   Custom Buttons & Badges
------------------------------------------------------------- */
.btn-cfb-primary {
  background-color: var(--cfb-yellow);
  color: #1A2421;
  font-weight: 700;
  border: 2px solid var(--cfb-yellow);
  border-radius: 50px;
  padding: 10px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(244, 196, 48, 0.35);
}

.btn-cfb-primary:hover {
  background-color: var(--cfb-yellow-hover);
  border-color: var(--cfb-yellow-hover);
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(244, 196, 48, 0.45);
}

.btn-cfb-green {
  background-color: var(--cfb-green);
  color: #FFFFFF;
  font-weight: 700;
  border: 2px solid var(--cfb-green);
  border-radius: 50px;
  padding: 10px 24px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(46, 125, 50, 0.3);
}

.btn-cfb-green:hover {
  background-color: var(--cfb-green-dark);
  border-color: var(--cfb-green-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 94, 32, 0.4);
}

.btn-cfb-outline {
  background: transparent;
  color: var(--cfb-green-dark);
  border: 2px solid var(--cfb-green);
  border-radius: 50px;
  font-weight: 600;
  padding: 10px 24px;
  transition: all 0.25s ease;
}

.btn-cfb-outline:hover {
  background-color: var(--cfb-green);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* Badge Icons styled like uploaded creatives */
.badge-benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid var(--cfb-green);
  color: var(--cfb-green-dark);
  border-radius: 50px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  box-shadow: var(--cfb-shadow-sm);
}

.badge-benefit i {
  color: var(--cfb-green);
  font-size: 1.1rem;
}

.benefit-circle-card {
  text-align: center;
  padding: 20px 16px;
  border-radius: var(--cfb-radius);
  background: #FFFFFF;
  border: 1px solid var(--cfb-border);
  transition: all 0.3s ease;
}

.benefit-circle-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--cfb-shadow-md);
  border-color: var(--cfb-yellow);
}

.benefit-icon-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2.5px solid var(--cfb-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  color: var(--cfb-green);
  font-size: 1.8rem;
  background-color: var(--cfb-green-light);
  transition: all 0.3s ease;
}

.benefit-circle-card:hover .benefit-icon-ring {
  background-color: var(--cfb-yellow);
  border-color: var(--cfb-yellow-hover);
  color: var(--cfb-charcoal);
  transform: rotate(5deg) scale(1.05);
}

/* -------------------------------------------------------------
   Top Bar & Navbar
------------------------------------------------------------- */
.top-notice-bar {
  background: var(--cfb-green-dark);
  color: var(--cfb-yellow);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cfb-navbar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--cfb-border);
  box-shadow: var(--cfb-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1030;
  padding: 10px 0;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.nav-link {
  font-weight: 600;
  color: var(--cfb-charcoal);
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--cfb-green);
  background-color: var(--cfb-yellow-light);
}

.nav-badge-count {
  position: absolute;
  top: -4px;
  right: -6px;
  background-color: var(--cfb-green);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  width: 19px;
  height: 19px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* -------------------------------------------------------------
   Hero Slider / Carousel
------------------------------------------------------------- */
.hero-slider-section {
  background: linear-gradient(135deg, var(--cfb-yellow-light) 0%, #FFFFFF 100%);
  position: relative;
  overflow: hidden;
  padding: 40px 0 60px 0;
}

.hero-slide-card {
  border-radius: var(--cfb-radius);
  background: #FFFFFF;
  border: 1px solid var(--cfb-border);
  box-shadow: var(--cfb-shadow-md);
  padding: 30px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--cfb-shadow-lg);
}

.hero-image-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-image-wrap:hover img {
  transform: scale(1.03);
}

.hero-floating-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  padding: 12px 20px;
  border-radius: 50px;
  border-left: 5px solid var(--cfb-green);
  box-shadow: var(--cfb-shadow-md);
}

/* -------------------------------------------------------------
   Category Pills Bar
------------------------------------------------------------- */
.category-scroll-nav {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 12px 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--cfb-yellow) transparent;
}

.category-scroll-nav::-webkit-scrollbar {
  height: 6px;
}

.category-scroll-nav::-webkit-scrollbar-thumb {
  background-color: var(--cfb-yellow);
  border-radius: 10px;
}

.cat-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.92rem;
  background: #FFFFFF;
  border: 1.5px solid var(--cfb-border);
  color: var(--cfb-charcoal);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cat-pill-btn:hover, .cat-pill-btn.active {
  background-color: var(--cfb-green);
  border-color: var(--cfb-green);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(46, 125, 50, 0.25);
}

/* -------------------------------------------------------------
   Product Cards
------------------------------------------------------------- */
.product-card {
  background: var(--cfb-card-bg);
  border-radius: var(--cfb-radius);
  border: 1px solid var(--cfb-border);
  box-shadow: var(--cfb-shadow-sm);
  transition: all 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--cfb-shadow-lg);
  border-color: rgba(244, 196, 48, 0.6);
}

.product-card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background-color: var(--cfb-yellow-light);
}

.product-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.product-card:hover .product-card-img-wrap img {
  transform: scale(1.06);
}

.badge-dietary {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  text-transform: uppercase;
}

.badge-dietary-veg {
  background-color: var(--cfb-green-light);
  color: var(--cfb-green-dark);
  border: 1px solid var(--cfb-green);
}

.badge-dietary-gf {
  background-color: #FEF3C7;
  color: #B45309;
  border: 1px solid #F59E0B;
}

.badge-dietary-bestseller {
  background-color: #FEE2E2;
  color: #B91C1C;
  border: 1px solid #EF4444;
}

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

.product-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--cfb-green-dark);
}

.product-card-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--cfb-green);
}

.product-card-calories {
  font-size: 0.85rem;
  color: var(--cfb-muted);
  font-weight: 600;
}

/* -------------------------------------------------------------
   Why Corn? Section
------------------------------------------------------------- */
.section-why-corn {
  background: var(--cfb-yellow-light);
  border-top: 1px solid rgba(244, 196, 48, 0.2);
  border-bottom: 1px solid rgba(244, 196, 48, 0.2);
  padding: 80px 0;
}

/* Nutrition Infographic Box */
.nutrition-card {
  background: #FFFFFF;
  border-radius: var(--cfb-radius);
  border: 1px solid var(--cfb-border);
  padding: 24px;
  box-shadow: var(--cfb-shadow-sm);
  transition: all 0.3s ease;
}

.nutrition-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cfb-shadow-md);
  border-color: var(--cfb-green);
}

.nutrition-progress-bar {
  height: 8px;
  border-radius: 10px;
  background-color: var(--cfb-yellow-light);
}

.nutrition-progress-fill {
  background: linear-gradient(90deg, var(--cfb-yellow) 0%, var(--cfb-green) 100%);
  height: 100%;
  border-radius: 10px;
}

/* -------------------------------------------------------------
   Order Tracking Timeline
------------------------------------------------------------- */
.track-step-item {
  position: relative;
  text-align: center;
  flex: 1;
}

.track-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 24px;
  left: 50%;
  width: 100%;
  height: 4px;
  background-color: var(--cfb-border);
  z-index: 1;
}

.track-step-item.completed:not(:last-child)::after {
  background-color: var(--cfb-green);
}

.track-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 3px solid var(--cfb-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  position: relative;
  z-index: 2;
  font-size: 1.25rem;
  color: var(--cfb-muted);
}

.track-step-item.completed .track-step-icon {
  border-color: var(--cfb-green);
  background-color: var(--cfb-green);
  color: #FFFFFF;
}

.track-step-item.active .track-step-icon {
  border-color: var(--cfb-yellow);
  background-color: var(--cfb-yellow);
  color: var(--cfb-charcoal);
  animation: pulse 2s infinite;
}

/* -------------------------------------------------------------
   Floating Buttons & Sticky Mobile Bar
------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  z-index: 1020;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #1EBE5D;
  color: #FFF;
  transform: scale(1.1) rotate(5deg);
}

@media (min-width: 992px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
  }
}

.mobile-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  border-top: 1px solid var(--cfb-border);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
  z-index: 1040;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.mobile-bar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cfb-muted);
}

.mobile-bar-link.active, .mobile-bar-link:hover {
  color: var(--cfb-green);
}

.mobile-bar-link i {
  font-size: 1.25rem;
  margin-bottom: 2px;
}

/* -------------------------------------------------------------
   Cart Drawer / Offcanvas
------------------------------------------------------------- */
.offcanvas-cart {
  width: 400px !important;
}

.cart-item-row {
  border-bottom: 1px solid var(--cfb-border);
  padding: 14px 0;
}

.cart-item-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background-color: var(--cfb-yellow-light);
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--cfb-border);
  border-radius: 50px;
  overflow: hidden;
  background: #FFFFFF;
}

.qty-stepper button {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-weight: 700;
  color: var(--cfb-green);
  cursor: pointer;
}

.qty-stepper input {
  width: 32px;
  text-align: center;
  border: none;
  font-weight: 600;
  font-size: 0.9rem;
}

/* -------------------------------------------------------------
   Footer
------------------------------------------------------------- */
.cfb-footer {
  background-color: var(--cfb-green-dark);
  color: #E8F5E9;
  padding: 70px 0 30px 0;
}

.cfb-footer h5 {
  color: var(--cfb-yellow);
  font-weight: 700;
  margin-bottom: 20px;
}

.cfb-footer a {
  color: #E8F5E9;
  transition: color 0.2s ease;
}

.cfb-footer a:hover {
  color: var(--cfb-yellow);
  padding-left: 4px;
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cfb-yellow);
  margin-right: 8px;
  transition: all 0.25s ease;
}

.footer-social-icon:hover {
  background: var(--cfb-yellow);
  color: var(--cfb-charcoal);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 50px;
  padding-top: 25px;
  font-size: 0.88rem;
  color: #C8E6C9;
}
