/* ═══════════════════════════════════════════════════════════
   FINAL MOBILE NAVIGATION WITH COMPANY LOGO
   Complete Version - Compact Layout + Logo Display
═══════════════════════════════════════════════════════════ */

/* Navigation Container */
nav {
  position: sticky;
  top: 0;
  background: linear-gradient(135deg, #1a3d1f 0%, #2e7d32 55%, #1b5e20 100%);
  box-shadow: 0 4px 28px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255,255,255,0.07) inset;
  border-bottom: 2px solid rgba(253, 216, 53, 0.3);
  z-index: 1000;
  padding: 0;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 36px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

/* Hamburger Icon - Clean Design */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  cursor: pointer;
  z-index: 1002;
  position: relative;
  padding: 0;
  background: transparent;
  border: none;
  transition: all 0.3s ease;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* When menu is active, hamburger becomes X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg);
  background: white;
  width: 60%;
  position: absolute;
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg);
  background: white;
  width: 60%;
  position: absolute;
}

/* Desktop Navigation Menu */
.nav-menu {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-menu a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  padding: 9px 18px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.28s ease;
  position: relative;
  overflow: hidden;
}

.nav-menu a::before {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #fdd835, #a5d6a7);
  border-radius: 2px;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-menu a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fdd835;
  transform: translateY(-2px);
}

.nav-menu a:hover::before {
  width: 70%;
}

/* Hide Mobile-Only Elements on Desktop */
.mobile-menu-close {
  display: none;
}

.mobile-footer-preview {
  display: none;
}

/* ═══════════════════════════════════════════════════════════
   MOBILE RESPONSIVE - WITH LOGO
═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  
  /* Show Hamburger on Mobile */
  .hamburger {
    display: flex;
  }
  
  /* When menu is open, keep hamburger visible as close button */
.hamburger.active {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1003;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active:hover {
  background: rgba(244, 67, 54, 0.9);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 8px 30px rgba(244, 67, 54, 0.6);
}

.hamburger.active:active {
  transform: scale(0.95) rotate(90deg);
  box-shadow: 0 2px 10px rgba(244, 67, 54, 0.4);
}
  /* HIDE the circular close button */
  .mobile-menu-close {
    display: none !important;
  }
  
  /* Mobile Menu Overlay */
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: linear-gradient(180deg, #1b5e20 0%, #143d15 100%);
    flex-direction: column;
    gap: 0;
    padding: 70px 0 0 0;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    z-index: 1001;
    align-items: stretch;
  }
  
  /* Smooth Slide-in Animation */
  .nav-menu.active {
    right: 0;
  }
  
  /* Backdrop Overlay */
  .nav-menu.active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    z-index: -1;
  }
  
  /* Main Navigation Links */
  .nav-menu > a {
    width: 100%;
    padding: 16px 30px;
    margin: 0;
    border-radius: 0;
    border-left: 5px solid transparent;
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    transition: all 0.3s ease;
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
  }
  
  .nav-menu > a::before {
    display: none;
  }
  
  .nav-menu > a::after {
    content: '→';
    position: absolute;
    right: 30px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 20px;
  }
  
  .nav-menu > a:hover,
  .nav-menu > a:active {
    background: rgba(255, 255, 255, 0.12);
    border-left-color: #4caf50;
    padding-left: 40px;
    transform: translateY(0);
  }
  
  .nav-menu > a:hover::after {
    opacity: 1;
    transform: translateX(0);
  }
  
  .nav-menu > a[href*="spices.html"],
  .nav-menu > a.active {
    background: rgba(76, 175, 80, 0.15);
    border-left-color: #4caf50;
    font-weight: 700;
  }
  
  .nav-menu > a:not(:last-of-type) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  
  /* Mobile Footer Preview Section */
  .mobile-footer-preview {
    display: block;
    margin-top: 15px;
    padding: 25px 20px 20px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 2px solid rgba(76, 175, 80, 0.3);
  }
  
  .mobile-footer-preview h3 {
    color: #4caf50;
    font-size: 12px;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    text-align: center;
  }
  
  /* Quick Links Grid */
  .footer-quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 20px;
  }
  
  .footer-quick-links a {
    padding: 10px 8px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-left: none !important;
    text-align: center !important;
    transition: all 0.25s ease !important;
  }
  
  .footer-quick-links a:hover {
    background: rgba(76, 175, 80, 0.2) !important;
    border-color: #4caf50 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    padding: 10px 8px !important;
  }
  
  /* ═══════════════════════════════════════════════════════════
     COMPANY LOGO SECTION - THE AREA YOU MARKED
  ═══════════════════════════════════════════════════════════ */
/* Compact Social Media Container */
.mobile-nav-social-compact {
  margin: 15px 0 10px 0;  /* Reduced spacing */
  padding: 15px;  /* Reduced from 20px */
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
}

/* Compact "Follow Us" Heading */
.mobile-nav-social-compact h4 {
  text-align: center;
  color: #4caf50;
  font-size: 11px;  /* Smaller text */
  margin: 0 0 12px 0;  /* Reduced bottom margin */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  opacity: 0.9;
}

/* Horizontal Icons Row - Single Line */
.social-icons-horizontal {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;  /* Space between icons */
  flex-wrap: nowrap;  /* Keep in one line */
}

/* Individual Social Icon Button - LARGER SIZE */
.social-icon-btn {
  width: 52px;  /* LARGER: was 44px */
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.15);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* SVG Icon - LARGER SIZE */
.social-icon-btn svg {
  width: 28px;  /* LARGER: was 22px */
  height: 28px;
  transition: all 0.35s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
  position: relative;
  z-index: 2;
}

/* Ripple Effect on Click */
.social-icon-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s, opacity 0.5s;
}

.social-icon-btn:active::after {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* ═══════════════════════════════════════════════════════════
   BRAND-SPECIFIC COLORS & HOVER EFFECTS
═══════════════════════════════════════════════════════════ */

/* Facebook - Blue */
.social-icon-btn.facebook {
  color: #1877F2;
}

.social-icon-btn.facebook:hover {
  background: rgba(24, 119, 242, 0.2);
  border-color: #1877F2;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 25px rgba(24, 119, 242, 0.5);
}

.social-icon-btn.facebook:hover svg {
  transform: scale(1.2);
}

/* Instagram - Pink/Purple Gradient */
.social-icon-btn.instagram {
  color: #E4405F;
}

.social-icon-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: transparent;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 25px rgba(228, 64, 95, 0.6);
}

.social-icon-btn.instagram:hover svg {
  color: white;
  transform: scale(1.2) rotate(15deg);
}

/* WhatsApp - Green */
.social-icon-btn.whatsapp {
  color: #25D366;
}

.social-icon-btn.whatsapp:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: #25D366;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

.social-icon-btn.whatsapp:hover svg {
  transform: scale(1.2);
}

/* TikTok - Multi-color */
.social-icon-btn.tiktok {
  color: #ffffff;
}

.social-icon-btn.tiktok:hover {
  background: linear-gradient(135deg, #00f2ea 0%, #ff0050 100%);
  border-color: transparent;
  transform: translateY(-6px) scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 242, 234, 0.6);
}

.social-icon-btn.tiktok:hover svg {
  color: white;
  transform: scale(1.2) rotate(-15deg);
}

/* Active/Press State */
.social-icon-btn:active {
  transform: translateY(-3px) scale(1.05);
}

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE - Extra Small Devices
═══════════════════════════════════════════════════════════ */

@media (max-width: 380px) {
  .mobile-nav-social-compact {
    padding: 12px;
    margin: 12px 0 8px 0;
  }
  
  .mobile-nav-social-compact h4 {
    font-size: 10px;
    margin-bottom: 10px;
  }
  
  .social-icons-horizontal {
    gap: 8px;  /* Tighter spacing on small screens */
  }
  
  .social-icon-btn {
    width: 48px;  /* Slightly smaller on tiny screens */
    height: 48px;
  }
  
  .social-icon-btn svg {
    width: 26px;
    height: 26px;
  }
}

/* Very Small Screens - Stack if needed */
@media (max-width: 320px) {
  .social-icons-horizontal {
    flex-wrap: wrap;  /* Allow wrapping on very small screens */
    gap: 8px;
  }
  
  .social-icon-btn {
    width: 44px;
    height: 44px;
  }
  
  .social-icon-btn svg {
    width: 24px;
    height: 24px;
  }
}

  
  /* Social Icons */
  .footer-social-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 0;
    padding-bottom: 15px;
  }
  
  .footer-social-icons a {
    width: 44px !important;
    height: 44px !important;
    padding: 10px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    border-left: none !important;
  }
  
  .footer-social-icons a:hover {
    background: rgba(76, 175, 80, 0.25) !important;
    transform: translateY(-4px) scale(1.05) !important;
    border-color: #4caf50 !important;
    box-shadow: 0 6px 16px rgba(76, 175, 80, 0.4);
    padding: 10px !important;
  }
  
  .footer-social-icons img {
    width: 22px;
    height: 22px;
    filter: brightness(1.1);
  }
  
  /* Smooth Scrollbar */
  .nav-menu::-webkit-scrollbar {
    width: 5px;
  }
  
  .nav-menu::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
  }
  
  .nav-menu::-webkit-scrollbar-thumb {
    background: rgba(76, 175, 80, 0.5);
    border-radius: 3px;
  }
  
  .nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(76, 175, 80, 0.8);
  }
}

/* Extra Small Devices */
@media (max-width: 380px) {
  .nav-container {
    padding: 0 12px;
    height: 60px;
  }
  
  .hamburger {
    width: 26px;
    height: 20px;
  }
  
  .nav-menu {
    padding: 65px 0 0 0;
  }
  
  .nav-menu > a {
    padding: 14px 20px;
    font-size: 16px;
  }
  
  .mobile-footer-preview {
    padding: 20px 15px 15px 15px;
  }
  
  .footer-quick-links {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  
  .footer-quick-links a {
    font-size: 11px !important;
    padding: 9px 6px !important;
  }
  
  .footer-social-icons a {
    width: 40px !important;
    height: 40px !important;
  }
  
  .mobile-nav-logo img {
    max-width: 110px;
  }
}

/* Tablet Landscape */
@media (min-width: 769px) and (max-width: 1024px) {
  .nav-menu a {
    padding: 8px 13px;
    font-size: 13px;
    letter-spacing: 0.5px;
  }
}

/* Prevent body scroll when menu is open */
body.menu-open {
  overflow: hidden;
}
/* ── Products Dropdown: Mobile Fix ── */
@media (max-width: 768px) {
  /* Show the dropdown wrapper as a normal block */
  .nav-dropdown {
    display: block;
    width: 100%;
  }

  /* Style the Products toggle link exactly like other nav links */
  .nav-dropdown-toggle {
    width: 100%;
    padding: 16px 30px;
    margin: 0;
    border-radius: 0;
    border-left: 5px solid transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 17px;
    font-weight: 600;
    text-align: left;
    color: white;
    text-decoration: none;
    background: transparent;
    display: flex;
    align-items: center;
    position: relative;
  }

  .nav-dropdown-toggle::after {
    content: '→';
    position: absolute;
    right: 30px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    font-size: 20px;
  }

  .nav-dropdown-toggle:hover::after {
    opacity: 1;
    transform: translateX(0);
  }

  /* HIDE the sub-links (Herbs, Food & Beverages, Spices) on mobile */
  .nav-dropdown-menu {
    display: none !important;
  }
}
/* ── Cart icon link — desktop styled as pill button ── */
@media (min-width: 769px) {
.nav-cart-link {
    padding: 8px 14px 8px 14px !important;
    border-radius: 50px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.25s ease !important;
    margin-left: 6px !important;
    overflow: visible !important;  /* allows badge to show outside */
  }

  .nav-cart-link:hover {
    background: rgba(253, 216, 53, 0.18) !important;
    border-color: #fdd835 !important;
    transform: scale(1.08) !important;
  }

  /* Remove underline animation from cart icon */
  .nav-cart-link::before {
    display: none !important;
  }

  /* Cart badge — gold pill */
  .nav-cart-badge {
    background: #fdd835 !important;
    color: #1b5e20 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    min-width: 18px !important;
    height: 18px !important;
    border-radius: 9px !important;
    padding: 0 4px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
  }

  /* Dropdown — polished panel */
  .nav-dropdown-menu {
    background: linear-gradient(160deg, #1a3d1f, #2a7030) !important;
    border-radius: 14px !important;
    border: 1px solid rgba(253, 216, 53, 0.2) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
    padding: 8px !important;
    margin-top: 8px !important;
    animation: dropIn 0.2s ease;
  }

  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-dropdown-menu a {
    border-radius: 8px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    text-transform: none !important;
    letter-spacing: 0.3px !important;
    transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease !important;
  }

  .nav-dropdown-menu a:hover {
    background: rgba(253, 216, 53, 0.15) !important;
    color: #fdd835 !important;
    padding-left: 22px !important;
  }

  /* Thin divider between items */
  .nav-dropdown-menu a + a {
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
  }
}
/* Cart wrap — give room for badge to sit on top-right */
  .nav-cart-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 2px 0 2px;
  }

  /* Badge — positioned top-right corner, never clipped */
  .nav-cart-badge {
    position: absolute !important;
    top: -10px !important;
    right: -12px !important;
    background: #fdd835 !important;
    color: #1b5e20 !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    min-width: 20px !important;
    height: 20px !important;
    border-radius: 10px !important;
    padding: 0 5px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
    border: 2px solid #2e7d32 !important;  /* green ring separates it from background */
    z-index: 10 !important;
  }
  /* ═══════════════════════════════════════════════════════
   NAV CART SVG — pulse animation when items added
═══════════════════════════════════════════════════════ */
.nav-cart-svg {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.2));
}
.nav-cart-link:hover .nav-cart-svg {
  transform: scale(1.12) rotate(-5deg);
}
.nav-cart-svg.bump {
  animation: cartBump 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}
@keyframes cartBump {
  0%  { transform: scale(1); }
  30% { transform: scale(1.25) rotate(-8deg); }
  60% { transform: scale(0.95) rotate(4deg); }
  100%{ transform: scale(1) rotate(0); }
}

/* ═══════════════════════════════════════════════════════
   FLOATING CART PREVIEW — above WhatsApp button
═══════════════════════════════════════════════════════ */
.float-cart-preview {
  position: fixed;
  bottom: 90px;             /* sits just above whatsapp btn */
  right: 16px;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 10px 12px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(46,125,50,0.45);
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 998;
  border: 1.5px solid rgba(253,216,53,0.35);
  opacity: 0;
  transform: translateY(12px) scale(0.9);
  pointer-events: none;    /* hidden by default */
  min-width: 140px;
}

/* Visible state — toggled by JS when cart has items */
.float-cart-preview.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.float-cart-preview:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 14px 36px rgba(46,125,50,0.6);
  background: linear-gradient(135deg, #2e7d32, #388e3c);
}

/* Icon + count bubble */
.float-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #fdd835;
  color: #1b5e20;
  font-size: 10px;
  font-weight: 800;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #1b5e20;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* Text info */
.float-cart-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.float-cart-label {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.float-cart-total {
  font-size: 15px;
  font-weight: 700;
  color: #fdd835;
  letter-spacing: 0.3px;
}

/* Arrow */
.float-cart-arrow {
  font-size: 22px;
  font-weight: 300;
  opacity: 0.7;
  margin-left: 2px;
  transition: transform 0.25s ease;
}

.float-cart-preview:hover .float-cart-arrow {
  transform: translateX(3px);
  opacity: 1;
}

/* Pulse ring when new item added */
.float-cart-preview.pulse::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50px;
  border: 2px solid #fdd835;
  animation: floatPulse 0.6s ease-out forwards;
}

@keyframes floatPulse {
  0%   { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}
