/* =========================
   Pavalam Crackers Theme
   Brick Red / Brownish Red
   ========================= */

:root {
    --primary-color: #9E3B34;      /* Brick red */
    --primary-light: #B85A50;      /* Lighter tint of brick red */
    --primary-dark: #5C1F19;       /* Darker brownish-red */
    --accent-red: #5C1F19;         /* Darker brownish-red (secondary main colour) */
    --accent-red-light: #7A2E26;   /* Mid tone between the two main colours */
    --white: #fff;
    --off-white: #fbf3ee;
    --background-color: #fdf7f4;   /* Warm neutral background */
    --header-footer-bg: #f5e6df;   /* Soft brick-tinted white */
    --card-bg: #fff;
    --hover-bg: #f0dcd3;           /* Light brick-red hover */
    --border-color: #e3c7bc;       /* Soft brick-red border */
    --shadow-color: rgba(94, 31, 25, 0.1);
    --font-family: 'Times New Roman', Times, 'Liberation Serif', serif;
    --text-color: #3a1e18;
    --link-color: var(--primary-dark);
    --link-hover: var(--accent-red);
    --button-bg: var(--primary-color);
    --button-hover: var(--accent-red);
    --button-text: #fff;
    --input-bg: #fff;
    --input-border: var(--primary-light);
    --input-focus: var(--accent-red-light);
}

/* ====== Base Styles ====== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: var(--font-family);
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s;
}
a:hover, a:focus {
    color: var(--link-hover);
    outline: none;
}

/* ====== Updated Header Styles ====== */
.announcement-bar {
  background: linear-gradient(90deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 8px 0;
}

.announcement-scroll {
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}

.announcement-track {
  display: inline-flex;
  width: max-content;
  animation: announcement-scroll 26s linear infinite;
}

.announcement-item {
  display: inline-block;
  padding: 0 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.announcement-item a {
  color: #fff;
  text-decoration: underline;
}

@keyframes announcement-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .announcement-track {
    animation: none;
    overflow-x: auto;
  }
}

.announcement-contact {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 20px 0 16px;
  border-left: 1px solid rgba(255,255,255,0.35);
  white-space: nowrap;
}

.announcement-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.announcement-contact-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.announcement-contact-item:hover,
.announcement-contact-item:focus {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .announcement-contact {
    gap: 10px;
    padding: 0 10px 0 10px;
  }

  .announcement-contact-email {
    display: none;
  }
}

.main-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px;
}

.logo a {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex: 0 0 auto;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none !important;
}

.bar {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 5px 0;
  transition: 0.3s;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.header-social a {
  display: flex;
  color: var(--white);
  opacity: 0.9;
  transition: opacity 0.2s, transform 0.2s;
}

.header-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.header-social svg {
  width: 24px;
  height: 24px;
}

.header-social a.header-whatsapp {
  color: #25D366;
  opacity: 1;
}

.header-social a.header-instagram {
  color: #E1306C;
  opacity: 1;
}

.header-social a.header-map {
  color: #ea4335;
  opacity: 1;
}

.header-social a.header-whatsapp:hover,
.header-social a.header-instagram:hover,
.header-social a.header-map:hover {
  filter: brightness(1.15);
}

.main-nav .nav-purchase-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: 5px 16px !important;
  overflow: hidden;
  background: linear-gradient(90deg, #ffb300, #ff7a1a, #ffb300) !important;
  background-size: 200% 100%;
  animation: purchaseBlink 1.6s ease-in-out infinite,
             purchaseGradient 3s linear infinite;
  transition: transform 0.2s;
  white-space: nowrap;
}

.main-nav .nav-purchase-cta::after {
  display: none;
}

.main-nav .nav-purchase-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.7), transparent);
  transform: skewX(-20deg);
  animation: purchaseShine 2.4s ease-in-out infinite;
}

.main-nav .nav-purchase-cta:hover {
  transform: translateY(-2px) scale(1.05);
}

@keyframes purchaseBlink {
  0%, 100% {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px 2px rgba(255, 179, 0, 0.7);
  }
  50% {
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 0 rgba(255, 179, 0, 0);
  }
}

@keyframes purchaseGradient {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes purchaseShine {
  0% { left: -60%; }
  100% { left: 130%; }
}

  .main-nav.active {
    max-height: 100vh;
    overflow-y: auto;
  }
  
.main-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
  flex-wrap: nowrap;
}

.main-nav li {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 1.25rem;
    padding: 5px 0;
    position: relative;
    opacity: 0.9;
    transition: all 0.3s;
    white-space: nowrap;
}

.main-nav a:hover {
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--white);
    transition: width 0.3s;
}

.main-nav a:hover::after {
    width: 100%;
}

/* Updated Dropdown Menu */
/* ====== Dropdown Menu - Vertical ====== */
/* ====== DROPDOWN FIX ====== */
/* ====== DROPDOWN FIX ====== */
/* ====== DROPDOWN FIX - VERTICAL MENU ====== */
.dropdown {
  position: relative;
}

/* Reset the flex display for dropdown menu only */
.dropdown-menu {
  display: block !important;
    flex-direction: column !important;
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  min-width: 200px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

/* Force list items to full width */
.dropdown-menu li {
  width: 80% !important;
  display: block !important;
  float: none !important;
}

/* Remove any flex/grid on menu items */
.dropdown-menu a {
  display: block !important;
  width: 100% !important;
  padding: 10px 15px;
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  transition: all 0.2s;
  white-space: nowrap; /* Prevent text wrapping */
}

.dropdown-menu a:hover {
  background: var(--hover-bg);
  color: var(--primary-dark);
  padding-left: 20px;
}

/* Mobile styles */
@media (max-width: 992px) {
  .dropdown-menu {
    position: static;
    width: 100% !important;
    box-shadow: none;
    border: none;
    transform: none !important;
  }
  
  .dropdown-menu li {
    width: 100% !important;
  }
}

/* Search Form */
.header-search {
  flex: 1;
  max-width: 300px;
}

.search-form {
    display: flex;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s;
    background: rgba(255,255,255,0.2);
}

.search-form:hover {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.search-form input {
    flex: 1;
    padding: 8px 12px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
}

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

.search-form input:focus {
    box-shadow: inset 0 0 0 1px var(--white);
}

.search-form button {
    background: rgba(255,255,255,0.2);
    border: none;
    padding: 0 15px;
    cursor: pointer;
    color: var(--white);
    transition: background 0.3s;
}

.search-form button:hover {
    background: rgba(255,255,255,0.3);
}

/* ====== Search Page Styles ====== */
.search-page {
    padding: 2rem 20px;
    max-width: 1200px;
    margin: 2rem auto;
    flex: 1;
}

.search-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
    text-align: center;
}

.search-header h1 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.search-meta {
    margin: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-color);
    background: var(--hover-bg);
    padding: 8px 16px;
    border-radius: 20px;
}

.search-meta span {
    font-weight: bold;
    color: var(--primary-dark);
}
/* Search Results Grid Layout */
/* ====== Search Results Grid ====== */
/* ====== SEARCH RESULTS GRID ====== */
.search-results-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
  padding: 20px 0;
  width: 100%;
}

.search-result-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.search-result-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(255,111,0,0.1);
}

.search-result-img-container {
  height: 180px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.search-result-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.search-result-card:hover .search-result-img {
  transform: scale(1.03);
}

.search-result-content {
  padding: 15px;
}

.search-result-title {
  font-size: 1.1rem;
  color: var(--primary-dark);
  margin: 0 0 8px 0;
  font-weight: 600;
}

.search-result-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 10px 0;
}

.search-result-description {
  color: var(--text-color);
  font-size: 0.9rem;
  margin-bottom: 10px;
  line-height: 1.4;
}

.search-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
}

.search-result-category {
  background: var(--hover-bg);
  color: var(--primary-dark);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.search-result-link {
    background: var(--primary-color);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.search-result-link:hover {
    background: var(--primary-dark);
}

.no-results {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: var(--text-color);
    grid-column: 1 / -1;
}

.no-results p {
    margin-bottom: 1rem;
}

.no-results a {
    color: var(--primary-dark);
    font-weight: bold;
    text-decoration: underline;
}

/* ====== Products Section ====== */
.products {
    padding: 60px 20px;
    background: var(--off-white);
    text-align: center;
}

.products h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

/* ====== About Page ====== */
.about-section {
    padding: 60px 20px;
    background: var(--background-color);
    text-align: center;
}

.about-section h2 {
    color: var(--primary-dark);
    font-size: 2.2rem;
    margin-bottom: 32px;
    letter-spacing: 1px;
}

.about-card {
    max-width: 820px;
    margin: 0 auto 40px;
    background: var(--card-bg);
    border-radius: 18px;
    box-shadow: 0 4px 24px var(--shadow-color);
    padding: 48px 44px;
    text-align: left;
}

.about-intro {
    font-size: 1.12rem;
    line-height: 1.9;
    margin: 0 0 36px;
    color: var(--text-color);
}

.about-highlights {
    list-style: none;
    margin: 0 0 36px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.about-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.about-highlight-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--hover-bg);
    color: var(--primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-highlight-icon svg {
    width: 22px;
    height: 22px;
}

.about-highlights strong {
    display: block;
    color: var(--text-color);
    font-size: 1.05rem;
    margin-bottom: 4px;
}

.about-highlights p {
    margin: 0;
    color: var(--text-color);
    opacity: 0.8;
    line-height: 1.6;
}

.about-mission {
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 14px;
    padding-top: 28px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
}

.about-visit {
    font-size: 1.05rem;
    margin: 0;
    color: var(--primary-dark);
}

@media (max-width: 600px) {
    .about-card {
        padding: 32px 24px;
    }
}

/* ====== Shop By Brand ====== */
.brands {
  padding: 60px 20px;
  background: var(--background-color);
  text-align: center;
}

.brands h2,
.why-choose-us h2 {
  color: var(--primary-dark);
  font-size: 2.2rem;
  margin-bottom: 32px;
  letter-spacing: 1px;
}

.brand-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}

.brand-grid .brand-tile {
  flex: 0 0 140px;
}

.brand-tile {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 18px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.brand-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--primary-light);
}

.brand-logo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 96px;
  border-radius: 8px;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

.brand-logo-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--primary-color);
  background: var(--hover-bg);
}

.brand-name {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--text-color);
  text-align: center;
}

.brand-group {
  font-size: 0.75rem;
  color: var(--primary-color);
  margin-top: -6px;
}

/* ====== Testimonials ====== */
.testimonials {
  padding: 60px 20px;
  background: var(--off-white);
  text-align: center;
}

.testimonials h2 {
  color: var(--primary-dark);
  font-size: 2.2rem;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.testimonials-subtitle {
  max-width: 560px;
  margin: 0 auto 32px;
  color: var(--text-color);
  opacity: 0.8;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  text-align: left;
}

.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-color);
  border-color: var(--primary-light);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--hover-bg);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.testimonial-identity {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.testimonial-identity strong {
  color: var(--text-color);
  font-size: 0.98rem;
}

.testimonial-meta {
  font-size: 0.78rem;
  color: var(--text-color);
  opacity: 0.65;
}

.testimonial-stars {
  color: #f5b301;
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.testimonial-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-color);
  opacity: 0.85;
}

.testimonials-cta {
  display: inline-block;
  margin-top: 32px;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 2px;
}

.testimonials-cta:hover {
  color: var(--accent-red);
}

/* ====== Why Choose Us ====== */
.why-choose-us {
  padding: 60px 20px;
  background: var(--off-white);
  text-align: center;
}

.why-choose-us-subtitle {
  max-width: 560px;
  margin: -16px auto 32px;
  color: var(--text-color);
  opacity: 0.8;
}

.feature-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--hover-bg);
  color: var(--primary-dark);
}

.feature-card-icon svg {
  width: 26px;
  height: 26px;
}

/* ====== Quick Contact ====== */
.quick-contact {
  padding: 60px 20px;
  background: var(--background-color);
}

.quick-contact-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.quick-contact-kicker {
  display: block;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.quick-contact-info h2 {
  font-size: 2.1rem;
  color: var(--text-color);
  margin: 0 0 16px;
}

.quick-contact-info h2 .accent {
  color: var(--primary-color);
}

.quick-contact-info h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  margin-top: 16px;
}

.quick-contact-info p {
  color: var(--text-color);
  opacity: 0.85;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 480px;
}

.store-status-pill {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--off-white);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 18px 22px;
  max-width: 480px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #43a047;
  box-shadow: 0 0 0 6px rgba(67, 160, 71, 0.18);
  flex-shrink: 0;
}

.store-status-pill strong {
  display: block;
  color: var(--text-color);
  margin-bottom: 2px;
}

.store-status-pill p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-color);
  opacity: 0.75;
}

.quick-contact-card {
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 4px 20px var(--shadow-color);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.quick-contact-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--hover-bg);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  transition: transform 0.2s, box-shadow 0.2s;
}

.quick-contact-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-color);
  color: var(--text-color);
}

.quick-contact-row strong {
  font-size: 1rem;
}

.quick-contact-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.quick-contact-icon svg {
  width: 18px;
  height: 18px;
}

.quick-contact-whatsapp {
  background: #e6f4ea;
  border-color: #b9dfc3;
}

.quick-contact-whatsapp strong {
  color: #1b5e20;
}

.quick-contact-whatsapp .quick-contact-icon {
  background: #25D366;
}

.quick-contact-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  padding: 16px;
  border-radius: 12px;
  background: var(--primary-dark);
  color: #fff;
  font-weight: 700;
  transition: background 0.2s;
}

.quick-contact-cta:hover {
  background: var(--accent-red-light);
  color: #fff;
}

.quick-contact-cta svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 860px) {
  .quick-contact-inner {
    grid-template-columns: 1fr;
  }
}

.product-carousel {
    display: flex;
    overflow-x: auto;
    gap: 24px;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    max-width: 1200px;
    margin: 0 auto;
}

.product-carousel .product-card {
    scroll-snap-align: start;
    flex: 0 0 250px;
    background: var(--white);
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.product-carousel .product-card:hover {
    transform: translateY(-5px);
}

.product-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.product-price {
    color: var(--primary-dark);
    font-weight: bold;
    font-size: 1.2em;
    margin: 5px 0;
}

.product-discount {
    color: #4CAF50;
    font-size: 0.9em;
    margin-bottom: 5px;
}

/* ====== Category Product List (list-format products page) ====== */
.category-product-list {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 900px;
    text-align: left;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    overflow: hidden;
}

.product-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    flex-wrap: wrap;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

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

.product-list-item:hover {
    background: var(--hover-bg);
}

.product-list-info {
    flex: 1 1 160px;
    min-width: 120px;
}

.product-list-info h3 {
    margin: 0 0 4px;
    font-size: 1.2rem;
    color: var(--text-color);
}

.product-list-sno {
    flex: 0 0 auto;
    width: 26px;
    text-align: center;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    padding-right: 12px;
    border-right: 1px solid var(--border-color);
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-list-desc {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.75;
}

.product-list-qty {
    flex: 0 0 auto;
    width: 58px;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-color);
    opacity: 0.8;
    padding: 0 8px;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
}

.product-list-rate {
    flex: 0 0 auto;
    min-width: 65px;
    text-align: right;
    color: #000;
    font-size: 0.9rem;
    text-decoration: line-through;
    opacity: 0.8;
}

.product-list-price {
    font-weight: 700;
    color: #1565c0;
    font-size: 1.25rem;
    min-width: 95px;
    text-align: right;
}

.product-list-video {
    flex: 0 0 auto;
    width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-video-link {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7);
    color: #fff;
    transition: transform 0.2s;
    animation: videoIconPulse 1.8s ease-in-out infinite;
}

.product-video-link:hover {
    transform: scale(1.1);
}

.product-video-link::after {
    content: 'Click me!';
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(-4deg);
    background: #ee2a7b;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    line-height: 1;
    padding: 3px 6px;
    border-radius: 6px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    animation: videoBadgeBounce 1.4s ease-in-out infinite;
}

@keyframes videoIconPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(238, 42, 123, 0.55); }
    50% { box-shadow: 0 0 0 7px rgba(238, 42, 123, 0); }
}

@keyframes videoBadgeBounce {
    0%, 100% { transform: translateX(-50%) rotate(-4deg) translateY(0); }
    50% { transform: translateX(-50%) rotate(-4deg) translateY(-3px); }
}

.empty-message {
    color: var(--text-color);
    opacity: 0.7;
    padding: 16px 20px;
}

/* ---- Products toolbar (All Products: sort + category filter) ---- */
.products-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: flex-end;
    max-width: 900px;
    margin: 0 auto 24px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.toolbar-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
}

.toolbar-field label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toolbar-field select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.95rem;
    min-width: 220px;
    cursor: pointer;
}

.toolbar-field select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

.toolbar-field-search input {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.95rem;
    min-width: 220px;
}

.toolbar-field-search input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

.category-group-header {
    list-style: none;
    padding: 10px 20px;
    background: var(--hover-bg);
    color: #8b0000;
    font-weight: 800;
    font-size: 1.2rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    scroll-margin-top: 90px;
}

/* ---- Quick Order page ---- */
.quick-order-hint {
    max-width: 700px;
    margin: -20px auto 24px;
    text-align: center;
    color: #1565c0;
    font-weight: 700;
    font-size: 1.15rem;
    opacity: 1;
}

.category-chip-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto 24px;
}

.category-chip {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: var(--white);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.category-chip:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ---- Quick Order floating toolbar ---- */
.ofb-sentinel {
    height: 1px;
}

.order-floating-bar {
    position: relative;
    z-index: 500;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    max-width: 1100px;
    margin: 0 auto 20px;
    padding: 10px 16px;
    background: var(--white);
    border-radius: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.ofb-note {
    flex: 1 0 100%;
    order: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 4px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-weight: 700;
    color: #ee2a7b;
}

.ofb-note svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    color: #ee2a7b;
}

.order-floating-bar.is-fixed {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    margin: 0;
}

.ofb-spacer {
    height: 0;
}

.order-floating-bar.is-fixed + .ofb-spacer {
    height: var(--ofb-height, 76px);
}

.ofb-group {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.ofb-categories-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 18px;
    background: #a68a1f;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
}

.ofb-categories-btn:hover,
.ofb-categories-btn.active {
    background: #8c7419;
}

.ofb-categories-panel {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 240px;
    max-height: 340px;
    overflow-y: auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.18);
    padding: 8px;
    z-index: 50;
}

.ofb-cat-option {
    display: block;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--text-color);
    cursor: pointer;
}

.ofb-cat-option:hover {
    background: var(--hover-bg);
}

.ofb-cat-option.active {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
}

.ofb-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--off-white);
    color: var(--primary-dark);
    cursor: pointer;
    transition: background 0.2s;
}

.ofb-search-btn:hover,
.ofb-search-btn.active {
    background: var(--hover-bg);
}

.ofb-search-input {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 0.9rem;
    min-width: 200px;
    color: var(--text-color);
    background: var(--white);
}

.ofb-search-input:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

.ofb-divider {
    width: 1px;
    align-self: stretch;
    background: var(--border-color);
    margin: 4px 0;
}

.ofb-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex: 1;
}

.ofb-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ofb-stat-items { color: #2f5fd0; }
.ofb-stat-total { color: #1f9d63; }

.ofb-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.ofb-stat-text small {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-color);
    opacity: 0.55;
}

.ofb-stat-text strong {
    font-size: 1.4rem;
    color: var(--text-color);
}

.ofb-sort {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ofb-sort label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.ofb-sort select {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: var(--white);
    color: var(--text-color);
    font-size: 0.85rem;
    cursor: pointer;
}

.ofb-sort select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 2px var(--shadow-color);
}

.ofb-checkout-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 999px;
    padding: 10px 20px;
    margin-left: auto;
    background: #1f9d63;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(31, 157, 99, 0.35);
    transition: background 0.2s, transform 0.2s;
}

.ofb-checkout-btn:hover {
    background: #187f50;
    transform: translateY(-1px);
}

@media (max-width: 700px) {
    .order-floating-bar {
        border-radius: 18px;
        justify-content: center;
    }

    .ofb-stats {
        gap: 20px;
        width: 100%;
        order: 3;
    }

    .ofb-checkout-btn {
        width: 100%;
        justify-content: center;
        margin-left: 0;
        order: 4;
    }

    .ofb-sort {
        width: 100%;
        justify-content: center;
        order: 5;
    }

    .ofb-search-input {
        min-width: 0;
        width: 100%;
    }
}

.quick-order .product-list-item:nth-child(even) {
    background: var(--off-white);
}

.quick-order .product-list-item:nth-child(even):hover {
    background: var(--hover-bg);
}

@media (max-width: 600px) {
    .products-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .toolbar-field select,
    .toolbar-field-search input {
        min-width: 0;
        width: 100%;
    }
}

@media (max-width: 600px) {
    .product-list-item {
        justify-content: flex-start;
    }

    .cart-add-controls {
        margin-top: 14px;
    }

    .product-list-price {
        text-align: left;
    }
}

/* ====== Footer ====== */
footer {
    background: linear-gradient(90deg, var(--primary-dark) 0%, var(--accent-red) 100%);
    color: var(--white);
    text-align: center;
    padding: 32px 18px 18px;
    box-shadow: 0 -2px 10px var(--shadow-color);
    margin-top: 40px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
}

.footer-section {
    flex: 1 1 220px;
    margin-bottom: 18px;
}

.footer-section h4 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: var(--white);
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-section a:hover {
    opacity: 1;
    color: var(--accent-red-light);
}

.footer-map iframe {
    width: 100%;
    height: 180px;
    border: 0;
}

footer p {
    margin: 18px 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
}

/* ====== Modal ====== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 87, 51, 0.85);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 8px 32px var(--shadow-color);
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.modal-content img {
    max-width: 80vw;
    max-height: 60vh;
    border-radius: 12px;
    margin-bottom: 18px;
}

.modal-close {
    background: var(--accent-red);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: absolute;
    top: 24px;
    right: 24px;
    transition: background 0.2s;
}

.modal-close:hover {
    background: var(--primary-dark);
}

/* ====== Responsive Design ====== */
@media (max-width: 992px) {
  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .main-nav.active {
    max-height: 100vh;
  }

  .main-nav ul {
    flex-direction: column;
    padding: 20px;
  }

    .main-nav li {
        padding: 10px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .dropdown-menu {
        position: static;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        width: 100%;
        background: rgba(0,0,0,0.1);
    }

    .dropdown.active .dropdown-menu {
        max-height: 1000px;
    }

    .header-search {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 15px 0 0 0;
    }

    .mobile-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .mobile-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .promo-slider {
        height: 400px;
    }
    
    .promo-content h2 {
        font-size: 2rem;
    }
    
    .promo-content p {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        margin-bottom: 20px;
        width: 100%;
    }
    
    .products h2 {
        font-size: 1.8rem;
    }
    
    .product-carousel .product-card {
        min-width: 200px;
    }
    
    .search-results-container {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
}

@media (max-width: 480px) {
    .promo-slider {
        height: 300px;
    }
    
    .promo-content h2 {
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .promo-content p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .promo-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .scroll-indicator {
        bottom: 10px;
    }
    
    .scroll-indicator .dot {
        width: 10px;
        height: 10px;
    }
    
    .products h2 {
        font-size: 1.5rem;
    }
    
    .product-carousel .product-card {
        min-width: 160px;
    }
    
    .product-card img {
        height: 100px;
    }
    
    .search-header h1 {
        font-size: 1.8rem;
    }
    
    .search-meta {
        font-size: 1rem;
    }
    
    .search-results-container {
        grid-template-columns: 1fr;
    }
    
    .search-result-img-container {
        height: 160px;
    }
}

/* ====== Utility Classes ====== */
.text-orange { color: var(--primary-color); }
.text-red { color: var(--accent-red); }
.bg-orange { background: var(--primary-color); color: var(--white); }
.bg-red { background: var(--accent-red); color: var(--white); }
.rounded { border-radius: 12px; }
.shadow { box-shadow: 0 2px 8px var(--shadow-color); }
.mt-2 { margin-top: 12px; }
.mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 24px; }

/* ====== Scrollbar Styling ====== */
::-webkit-scrollbar {
    width: 10px;
    background: var(--header-footer-bg);
}
::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 8px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-red-light);
}
@media (max-width: 768px) {
  .search-results-container {
    grid-template-columns: 1fr;
  }
  
  .dropdown-menu {
    width: 100%;
  }
}
@media (max-width: 768px) {
  .search-results-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .search-result-img-container {
    height: 150px;
  }
}
/* ====== Popup Modal Styles ====== */
.popup-modal {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background: var(--primary-dark);
  color: white;
  padding: 20px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: bottom 0.5s ease;
}

.popup-modal.active {
  bottom: 0;
}

.popup-content {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
  background: var(--primary-color);
  border-radius: 8px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.popup-btn {
  background: white;
  color: var(--primary-dark);
  border: none;
  padding: 10px 20px;
  border-radius: 4px;
  font-weight: bold;
  margin-top: 15px;
  cursor: pointer;
  transition: all 0.3s;
}

.popup-btn:hover {
  background: var(--accent-red-light);
  color: white;
}

@media (max-width: 768px) {
  .popup-content {
    padding: 15px;
  }
}

/* ====== Floating Social Icons ====== */
.floating-social {
  position: fixed;
  right: 20px;
  bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 999;
}

.floating-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}

.whatsapp-icon {
  background: #25D366;
  color: white;
}

.instagram-icon {
  background: #E1306C;
  color: white;
}

.floating-social a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.floating-social svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 768px) {
  .floating-social {
    bottom: 20px;
    right: 15px;
    gap: 10px;
  }
  
  .floating-social a {
    width: 45px;
    height: 45px;
  }
  
  .floating-social svg {
    width: 24px;
    height: 24px;
  }
}
/* ====== Mobile Header Fixes ====== */
/* ====== Mobile Header Visible Navigation ====== */
@media (max-width: 1200px) {
  .header-container {
    display: flex;
    flex-direction: column;
    padding: 10px;
    align-items: center; /* Center all header content */
  }

  .logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }

  .header-social {
    display: none;
  }

  .nav-search-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the nav and search */
  }

  /* Main navigation styling */
  .main-nav {
    position: static;
    width: 100%;
    max-width: 800px; /* Limit width for better alignment */
    max-height: none;
    overflow: visible;
    display: flex;
    justify-content: center;
    background: transparent;
    margin: 10px 0;
  }

  .main-nav ul {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 15px; /* 10px vertical, 15px horizontal */
    padding: 0;
    margin: 0;
    width: 100%;
  }

  .main-nav li {
    padding: 0;
    border-bottom: none;
    width: auto;
    margin: 0;
    list-style: none; /* Remove any bullet points */
  }

  .main-nav a {
    display: inline-block;
    color: var(--primary-dark);
    font-weight: 600;
    padding: 8px 12px; /* Slightly larger padding for better touch */
    border-radius: 4px;
    background: rgba(255,255,255,0.8);
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping */
    text-decoration: none; /* Remove underline */
    transition: background 0.2s ease;
  }

  .main-nav a:hover {
    background: var(--white);
  }

  /* Dropdown adjustments */
  .dropdown > a::after {
    display: none;
  }

  .dropdown-menu {
    display: none;
  }

  /* Search bar styling */
  .header-search {
    order: 3;
    width: 100%;
    max-width: 500px; /* Limit search width */
    margin: 15px auto 0; /* Center with top margin */
  }

  .search-form {
    background: var(--white);
  }

  .search-form input {
    color: var(--text-color);
  }

  .search-form input::placeholder {
    color: var(--text-color);
    opacity: 0.7;
  }

  /* Hide mobile toggle */
  .mobile-toggle {
    display: none !important;
  }
}

/* Smaller mobile adjustments */
@media (max-width: 480px) {
  .main-nav ul {
    gap: 8px 10px; /* Smaller gaps on mobile */
  }

  .main-nav a {
    font-size: 0.9rem;
    padding: 6px 8px; /* Slightly smaller padding */
  }
  
  .header-search {
    max-width: 100%; /* Full width search on smallest screens */
    padding: 0 10px; /* Add some side padding */
  }
}
.promo-carousel {
  position: relative;
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  background: #150a2e;
  width: 100%;
  height: 42vw;
  min-height: 300px;
  max-height: 520px;
}
.promo-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: transform 0.5s cubic-bezier(.77,0,.18,1), opacity 0.5s;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.promo-slide.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 2;
  pointer-events: auto;
}
.promo-slide.slide-out-left {
  opacity: 1;
  transform: translateX(-100%);
  z-index: 1;
}
.promo-slide.slide-out-right {
  opacity: 1;
  transform: translateX(100%);
  z-index: 1;
}
.promo-slide.slide-in-right {
  opacity: 1;
  transform: translateX(100%);
  z-index: 2;
}
.promo-slide.slide-in-left {
  opacity: 1;
  transform: translateX(-100%);
  z-index: 2;
}
.promo-caption {
  padding: 24px;
  background: #fff;
  text-align: center;
}
.promo-caption h3 {
  font-size: 2.2rem;
  color: var(--primary-dark);
}
.promo-caption p {
  font-size: 1.2rem;
  color: #333;
}
.promo-prev, .promo-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--primary-dark);
  color: #fff;
  border: none;
  font-size: 2.5rem;
  padding: 12px 20px;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0.8;
  z-index: 3;
}
.promo-prev { left: 16px; }
.promo-next { right: 16px; }
.promo-prev:hover, .promo-next:hover {
  opacity: 1;
}
@media (max-width: 900px) {
  .promo-caption { padding: 12px; }
}
@media (max-width: 600px) {
  .promo-carousel { height: 62vw; min-height: 220px; max-height: 340px; }
  .promo-caption h3 { font-size: 1.2rem; }
  .promo-caption p { font-size: 1rem; }
  .promo-prev, .promo-next { font-size: 1.6rem; padding: 8px 12px; }
  .promo-prev { left: 8px; }
  .promo-next { right: 8px; }
  .promo-dots { bottom: 10px; }
  .promo-dots button { width: 8px; height: 8px; }
}
.promo-slide picture {
  display: block;
  width: 100%;
  height: 100%;
}
.promo-slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 1;
}
.promo-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 3;
}
.promo-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.45);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}
.promo-dots button.active {
  background: var(--primary-color);
  transform: scale(1.25);
}

/* =========================
   Inventory Cart System
   ========================= */

/* ---- Quantity stepper (product cards + drawer items) ---- */
.cart-add-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
  background: var(--white);
}

.qty-btn {
  width: 30px;
  height: 32px;
  border: none;
  background: var(--hover-bg);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: var(--primary-light);
  color: var(--white);
}

.qty-input {
  width: 38px;
  height: 32px;
  border: none;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-color);
  background: var(--white);
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.qty-input {
  -moz-appearance: textfield;
}

.add-to-cart-btn {
  background: #43a047;
  color: var(--button-text);
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.25s, transform 0.15s;
}

.add-to-cart-btn:hover {
  background: #2e7d32;
  transform: translateY(-1px);
}

.add-to-cart-btn.added {
  background: #1b5e20;
}

/* ---- Floating cart button ---- */
.cart-fab-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: var(--primary-color);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-fab-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  background: var(--accent-red);
}

.cart-fab-btn.cart-fab-standalone {
  position: fixed;
  right: 20px;
  bottom: 145px;
  z-index: 999;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--accent-red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--white);
}

.cart-badge[hidden] {
  display: none;
}

@media (max-width: 768px) {
  .cart-fab-btn { width: 45px; height: 45px; }
}

/* ---- Cart drawer ---- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 3000;
}

.cart-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  max-width: 92vw;
  height: 100vh;
  background: var(--white);
  box-shadow: -4px 0 24px rgba(0,0,0,0.2);
  z-index: 3001;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.cart-drawer.active {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.cart-drawer-header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cart-drawer-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: var(--white);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}

.cart-drawer-close:hover {
  background: rgba(255,255,255,0.35);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 20px;
}

/* ---- Customer details form (name/phone/address) ---- */
.cart-customer-form {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
  background: var(--off-white);
  flex-shrink: 0;
}

.cart-customer-form h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  color: var(--primary-dark);
}

.cart-customer-note {
  font-size: 0.72rem;
  color: var(--text-color);
  opacity: 0.7;
  margin: 0 0 10px;
  line-height: 1.4;
}

.cart-customer-field {
  margin-bottom: 8px;
}

.cart-customer-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 3px;
}

.cart-customer-field input,
.cart-customer-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text-color);
  background: var(--white);
}

.cart-customer-field textarea {
  resize: vertical;
}

.cart-customer-field input:focus,
.cart-customer-field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px var(--shadow-color);
}

.cart-empty {
  text-align: center;
  color: var(--text-color);
  opacity: 0.75;
  margin-top: 40px;
  line-height: 1.6;
}

.cart-drawer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  flex-wrap: wrap;
}

.cart-item-info h4 {
  margin: 0 0 4px 0;
  font-size: 0.98rem;
  color: var(--text-color);
}

.cart-item-price {
  font-size: 0.82rem;
  color: var(--primary-dark);
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-item-subtotal {
  min-width: 70px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-dark);
  font-size: 0.9rem;
}

.cart-item-remove {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.7;
  transition: opacity 0.2s, transform 0.2s;
}

.cart-item-remove:hover {
  opacity: 1;
  transform: scale(1.1);
}

.cart-drawer-footer {
  padding: 16px 20px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--off-white);
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.1rem;
  color: var(--text-color);
  margin-bottom: 8px;
}

.cart-drawer-total strong {
  color: var(--primary-dark);
  font-size: 1.3rem;
}

.cart-drawer-note {
  font-size: 0.78rem;
  color: var(--text-color);
  opacity: 0.75;
  margin: 0 0 14px;
  line-height: 1.4;
}

.cart-drawer-actions {
  display: flex;
  gap: 10px;
}

.cart-clear-btn {
  background: transparent;
  border: 1px solid var(--accent-red);
  color: var(--accent-red);
  padding: 10px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.cart-clear-btn:hover {
  background: var(--accent-red);
  color: var(--white);
}

.cart-checkout-btn {
  flex: 1;
  background: var(--accent-red);
  color: var(--white);
  border: none;
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.cart-checkout-btn:hover {
  background: var(--primary-dark);
}

.cart-checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .cart-drawer {
    top: auto;
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    border-radius: 18px 18px 0 0;
    transform: translateY(100%);
  }

  .cart-drawer.active {
    transform: translateY(0);
  }
}

/* ---- Toast ---- */
.cart-toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translate(-50%, 20px);
  background: var(--text-color);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 24px;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 5000;
}

.cart-toast.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* ---- WhatsApp handoff modal ---- */
.whatsapp-order-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 4000;
}

.whatsapp-order-overlay.active {
  opacity: 1;
  visibility: visible;
}

.whatsapp-order-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 380px;
  max-width: 90vw;
  background: var(--white);
  border-radius: 16px;
  padding: 30px 26px 26px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 4001;
}

.whatsapp-order-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.wa-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.6;
}

.wa-modal-close:hover {
  opacity: 1;
}

.wa-modal-icon {
  font-size: 2.4rem;
  margin-bottom: 8px;
}

.whatsapp-order-modal h3 {
  color: var(--primary-dark);
  margin: 0 0 12px;
}

.whatsapp-order-modal p {
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 10px;
}

.wa-modal-number {
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 16px;
  font-size: 1rem;
}

.wa-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: var(--white);
  padding: 12px 22px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.wa-modal-btn:hover {
  background: #1eb858;
  color: var(--white);
  transform: translateY(-2px);
}

.wa-modal-hint {
  font-size: 0.78rem;
  opacity: 0.7;
  margin-top: 16px !important;
}

@media (max-width: 480px) {
  .whatsapp-order-modal {
    padding: 24px 18px 20px;
  }
}

/* ---- Legal notice modal (shown on site entry) ---- */
.legal-notice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(62, 39, 35, 0.65);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 6000;
}

.legal-notice-overlay.active {
  opacity: 1;
  visibility: visible;
}

.legal-notice-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 540px;
  max-width: 92vw;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: 16px;
  padding: 34px 30px 26px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 6001;
}

.legal-notice-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.legal-notice-icon {
  font-size: 2.6rem;
  text-align: center;
  margin-bottom: 8px;
}

.legal-notice-modal h2 {
  color: var(--primary-dark);
  text-align: center;
  margin: 0 0 18px;
  font-size: 1.3rem;
}

.legal-notice-modal p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 14px;
}

.legal-notice-safety-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--hover-bg);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 10px;
  margin: 18px 0;
  text-align: center;
}

.legal-notice-close-btn {
  display: block;
  width: 100%;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 6px;
  transition: background 0.2s;
}

.legal-notice-close-btn:hover {
  background: var(--accent-red);
}

.legal-notice-x {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.6;
}

.legal-notice-x:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .legal-notice-modal {
    padding: 26px 18px 20px;
  }
}

/* ====== Feature Highlight Cards (Packaging / Support / Delivery) ====== */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .feature-cards {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: 0 2px 10px var(--shadow-color);
  padding: 28px 20px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px var(--shadow-color);
}

.feature-card h3 {
  color: var(--primary-dark);
  font-size: 1.5rem;
  margin: 0 0 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-color);
  opacity: 0.8;
  line-height: 1.5;
  margin: 0;
}

/* ====== Google Review Popup ====== */
.google-review-popup {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 230px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
  padding: 16px 18px 18px;
  text-align: center;
  z-index: 998;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.google-review-popup.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.google-review-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text-color);
  opacity: 0.5;
}

.google-review-close:hover {
  opacity: 1;
}

.google-review-popup .google-logo {
  width: 26px;
  height: 26px;
  margin-bottom: 6px;
}

.google-review-rating {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1;
}

.google-review-stars {
  color: #fbbc04;
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 6px 0 4px;
}

.google-review-popup a {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: var(--link-color);
  text-decoration: underline;
}

.google-review-popup a:hover {
  color: var(--link-hover);
}

.google-review-snippet {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
  text-align: left;
}

.google-review-snippet p {
  margin: 0 0 4px;
  font-size: 0.82rem;
  color: var(--text-color);
  line-height: 1.4;
  font-style: italic;
}

.google-review-snippet span {
  font-size: 0.78rem;
  color: var(--text-color);
  opacity: 0.65;
}

@media (max-width: 768px) {
  .google-review-popup {
    left: 14px;
    bottom: 14px;
    width: 200px;
    padding: 14px 14px 16px;
  }
}