/* ==========================================================================
   AKBAR MALIGAI STORE (அக்பர் மளிகை ஸ்டோர்) - Premium Stylesheet
   Designed with Tamil Heritage Aesthetics & Modern Luxe E-Commerce Feel
   ========================================================================== */

:root {
  --primary: #0a3d24;
  --primary-light: #145a36;
  --primary-dark: #052415;
  --primary-glass: rgba(10, 61, 36, 0.92);

  --gold: #d4af37;
  --gold-dark: #b69124;
  --gold-light: #fff8e1;
  --gold-glow: rgba(212, 175, 55, 0.35);

  --accent-red: #b91c1c;
  --accent-red-light: #fef2f2;
  --accent-green: #15803d;
  --accent-green-light: #ecfdf5;

  --bg-main: #fbf9f4;
  --bg-card: #ffffff;
  --bg-muted: #f4f0e6;
  --border-color: #e8e2d4;

  --text-dark: #1b1f23;
  --text-secondary: #4b5563;
  --text-muted: #788292;
  --text-on-dark: #ffffff;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 61, 36, 0.08);
  --shadow-lg: 0 16px 40px rgba(10, 61, 36, 0.14);
  --shadow-gold: 0 6px 20px rgba(212, 175, 55, 0.28);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-en: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ta: 'Mukta Malar', 'Noto Sans Tamil', sans-serif;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Basics */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-en);
  background-color: var(--bg-main);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Tamil Typography styling */
.ta-text,
[data-lang="ta"] .dynamic-name,
body.lang-ta {
  font-family: var(--font-ta), var(--font-en);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   TOP NOTIFICATION BAR (Bilingual & Blessing)
   ========================================================================== */
.top-bar {
  background: linear-gradient(90deg, #052415 0%, #0a3d24 50%, #052415 100%);
  color: #fef9c3;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-blessing {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.badge-786 {
  background: var(--gold);
  color: #052415;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.75rem;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.top-phone {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
  transition: var(--transition);
}

.top-phone:hover {
  color: var(--gold);
}

/* Language Switcher */
.lang-toggle-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.5);
  color: #fff;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-toggle-btn:hover {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold);
}

/* ==========================================================================
   MAIN HEADER & NAVIGATION
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0;
  gap: 1.5rem;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
}

.brand-seal {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle, #fef3c7 30%, #d4af37 100%);
  border: 2px solid #b69124;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #052415;
  box-shadow: 0 3px 12px rgba(212, 175, 55, 0.45);
  flex-shrink: 0;
  letter-spacing: 0.5px;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-name-ta {
  font-family: var(--font-ta);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.brand-name-en {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--gold-dark);
  font-weight: 600;
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.search-input-wrap {
  position: relative;
  width: 100%;
}

.search-input {
  width: 100%;
  padding: 0.65rem 2.3rem 0.65rem 2.6rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  background: var(--bg-main);
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition);
}

.search-input:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(10, 61, 36, 0.12);
}

.search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-clear-btn {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: #e2e8f0;
  border: none;
  color: #64748b;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
  line-height: 1;
  z-index: 2;
}

.search-clear-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

/* Instant Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  box-shadow: 0 16px 38px rgba(10, 61, 36, 0.18);
  z-index: 1000;
  overflow: hidden;
  max-height: 440px;
  display: flex;
  flex-direction: column;
  animation: searchDropFadeIn 0.18s ease-out;
}

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

.search-dropdown-list {
  overflow-y: auto;
  max-height: 380px;
  -webkit-overflow-scrolling: touch;
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid #f2ece1;
  cursor: pointer;
  transition: background 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.search-dropdown-item:last-child {
  border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item:active {
  background: #fbf9f2;
}

.search-drop-img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid #e8e2d4;
  flex-shrink: 0;
  background: #fff;
}

.search-drop-info {
  flex: 1;
  min-width: 0;
}

.search-drop-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-subtitle {
  font-size: 0.74rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-drop-price {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.12rem;
}

.search-drop-price small {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
}

.search-drop-add-btn {
  background: var(--gold-light);
  color: var(--primary-dark);
  border: 1px solid var(--gold);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.75rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  flex-shrink: 0;
  transition: var(--transition);
}

.search-drop-add-btn:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.search-dropdown-footer {
  padding: 0.65rem 0.9rem;
  background: #f8f6f0;
  border-top: 1px solid #e8e2d4;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s;
}

.search-dropdown-footer:hover {
  background: #f0ebe0;
  text-decoration: underline;
}

.search-no-results {
  padding: 1.5rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.88rem;
}

.search-highlight-text {
  background: #fef08a;
  color: #854d0e;
  font-weight: 800;
  border-radius: 2px;
  padding: 0 1px;
}

/* Card highlight pulse when clicked from search dropdown */
@keyframes productHighlightPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.4);
    transform: scale(1.02);
    border-color: var(--gold);
  }
  100% {
    box-shadow: var(--shadow-sm);
    transform: scale(1);
  }
}

.product-card.search-highlight-active {
  animation: productHighlightPulse 1.4s ease-in-out;
  border-color: var(--gold) !important;
}


/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.whatsapp-direct-btn {
  background: #25d366;
  color: #fff;
  border: none;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
  cursor: pointer;
}

.whatsapp-direct-btn:hover {
  background: #1eb857;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.45);
}

.cart-toggle-btn {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--gold);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
}

.cart-toggle-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cart-count-badge {
  background: var(--gold);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 0.76rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  min-width: 22px;
  text-align: center;
}

/* ==========================================================================
   HERO STORE BANNER SECTION
   ========================================================================== */
.hero-section {
  padding: 1.5rem 0 2rem;
  background: linear-gradient(180deg, #f4f0e6 0%, #fbf9f4 100%);
  position: relative;
  overflow: hidden;
}

.hero-banner-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
  background: #000;
  max-height: 480px;
}

.hero-banner-img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.hero-banner-card:hover .hero-banner-img {
  transform: scale(1.015);
}

/* Hero Badge & Info Strip */
.hero-highlights-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.highlight-box {
  background: #ffffff;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: var(--transition);
}

.highlight-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold);
}

.highlight-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.highlight-content h4 {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}

.highlight-content p {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   MONTHLY PROVISION KITS (மளிகை தொகுப்புகள்)
   ========================================================================== */
.section {
  padding: 3rem 0;
}

.section-alt {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.2rem;
}

.section-badge {
  display: inline-block;
  background: var(--gold-light);
  color: var(--primary-dark);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(212, 175, 55, 0.6);
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.25;
  margin-bottom: 0.5rem;
}

.section-desc {
  font-size: 0.98rem;
  color: var(--text-secondary);
}

/* Kits Grid */
.kits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.kit-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.kit-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold);
}

.kit-card.popular {
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.kit-image-wrapper {
  height: 190px;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: #f1ede3;
}

.kit-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.kit-card:hover .kit-image-wrapper img {
  transform: scale(1.05);
}

.kit-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.kit-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.kit-pricing {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.kit-price {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.kit-orig-price {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-decoration: line-through;
}

.kit-savings {
  background: var(--accent-green-light);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.kit-items-list {
  list-style: none;
  margin-bottom: 1.5rem;
  flex: 1;
}

.kit-items-list li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-bottom: 1px dashed #f0ece1;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.kit-items-list li::before {
  content: "✔";
  color: var(--primary-light);
  font-weight: 700;
  font-size: 0.8rem;
}

.kit-btn {
  background: var(--primary);
  color: #ffffff;
  border: 1px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: var(--transition);
  width: 100%;
}

.kit-btn:hover {
  background: var(--gold);
  color: var(--primary-dark);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   CATEGORY TABS & PRODUCT CATALOG
   ========================================================================== */
.catalog-controls {
  margin-bottom: 2rem;
  position: relative;
}

.category-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  padding: 0.6rem 0.5rem 0.95rem;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) #f4f0e6;
}

/* Custom styled modern scrollbar */
.category-tabs::-webkit-scrollbar {
  height: 6px;
}
.category-tabs::-webkit-scrollbar-track {
  background: #f4f0e6;
  border-radius: 99px;
}
.category-tabs::-webkit-scrollbar-thumb {
  background: #d4af37;
  border-radius: 99px;
}
.category-tabs::-webkit-scrollbar-thumb:hover {
  background: #b89628;
}

.category-tab-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  min-width: max-content;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.category-tab-btn span:first-child {
  font-size: 1.15rem;
}

.category-tab-btn span:last-child {
  display: inline-block;
  white-space: nowrap;
}

.category-tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fbfbf9;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 61, 36, 0.12);
}

.category-tab-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(10, 61, 36, 0.28);
  transform: translateY(-1px);
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

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

.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.product-img-wrap {
  height: 220px;
  width: 100%;
  position: relative;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  overflow: hidden;
}

.product-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.35s ease;
}

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

.product-content {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.35;
  margin-bottom: 0.35rem;
  min-height: 44px;
}

.product-subtitle {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

/* Unit selector pills */
.product-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.variant-pill {
  background: var(--bg-main);
  border: 1px solid var(--border-color);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.variant-pill:hover {
  border-color: var(--primary-light);
}

.variant-pill.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Price & Add to cart row */
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid #f2ede2;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--primary);
}

.product-unit-label {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.add-cart-btn {
  background: var(--gold-light);
  color: var(--primary-dark);
  border: 1px solid var(--gold);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--transition);
}

.add-cart-btn:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Added feedback state */
.add-cart-btn.added {
  background: var(--accent-green);
  color: #ffffff;
  border-color: var(--accent-green);
}

/* ==========================================================================
   QUICK LIST / CHIT UPLOAD SECTION (மளிகை சீட்டு)
   ========================================================================== */
.chit-box {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 2px dashed var(--gold);
  padding: 2rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.chit-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.chit-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.chit-instructions {
  list-style: none;
  margin-bottom: 1.25rem;
}

.chit-instructions li {
  padding: 0.35rem 0;
  font-size: 0.88rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chit-textarea {
  width: 100%;
  height: 140px;
  padding: 0.9rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
  resize: vertical;
  background: var(--bg-main);
  transition: var(--transition);
}

.chit-textarea:focus {
  border-color: var(--primary);
  background: #ffffff;
}

.chit-submit-btn {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.85rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.chit-submit-btn:hover {
  background: #1eb857;
  transform: translateY(-2px);
}

/* ==========================================================================
   STORE INFO & CONTACT SECTION
   ========================================================================== */
.store-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.store-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.store-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gold-light);
  color: var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.store-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.store-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.phone-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  margin-top: 0.6rem;
  font-size: 1rem;
  transition: var(--transition);
}

.phone-link-btn:hover {
  color: var(--gold-dark);
}

/* ==========================================================================
   CART DRAWER & CHECKOUT MODAL
   ========================================================================== */
.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: #ffffff;
  z-index: 1000;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.cart-header {
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--gold);
}

.cart-header h3 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.drawer-close-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.5rem;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

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

/* Free Delivery Meter */
.delivery-meter {
  background: var(--gold-light);
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4);
}

.meter-text {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.35rem;
  display: flex;
  justify-content: space-between;
}

.meter-progress-track {
  height: 6px;
  background: #e6dfcf;
  border-radius: 3px;
  overflow: hidden;
}

.meter-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold) 0%, var(--accent-green) 100%);
  width: 0%;
  transition: width 0.3s ease;
}

/* Cart Items Body */
.cart-items-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.empty-cart-view {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-cart-icon {
  font-size: 3.5rem;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.cart-item-card {
  display: flex;
  gap: 0.9rem;
  padding: 0.85rem;
  background: var(--bg-main);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  position: relative;
}

.cart-item-img {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
}

.cart-item-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.cart-item-unit {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.cart-item-price {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--primary);
  margin-top: 0.35rem;
}

.cart-qty-ctrls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.qty-btn {
  width: 26px;
  height: 26px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

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

.qty-num {
  font-size: 0.85rem;
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-remove-btn {
  background: transparent;
  border: none;
  color: var(--accent-red);
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: auto;
  align-self: flex-start;
  padding: 0.2rem;
}

/* Cart Footer & Checkout */
.cart-footer {
  padding: 1.25rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}

.cart-summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.cart-summary-total {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary-dark);
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border-color);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.checkout-btn {
  background: #25d366;
  color: #ffffff;
  border: none;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 800;
  font-size: 1rem;
  width: 100%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
  transition: var(--transition);
}

.checkout-btn:hover {
  background: #1eb857;
  transform: translateY(-2px);
}

.print-bill-btn {
  background: var(--bg-muted);
  color: var(--primary);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.85rem;
  width: 100%;
  cursor: pointer;
  margin-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.print-bill-btn:hover {
  background: #e8e2d4;
}

/* ==========================================================================
   CHECKOUT DETAILS MODAL
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  border: 2px solid var(--gold);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.modal-head h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.35rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #052415;
  color: #d1d5db;
  padding: 3.5rem 0 1.5rem;
  border-top: 3px solid var(--gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-col h4 {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
}

.footer-col p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.65rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  color: #9ca3af;
}

/* Floating Quick WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
  z-index: 900;
  text-decoration: none;
  transition: transform 0.3s ease;
}

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

/* Toast notifications */
.toast-msg {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #052415;
  color: #ffffff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--gold);
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 1200;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-msg.show {
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   PRINT INVOICE STYLES (Traditional Tamil Grocery Bill)
   ========================================================================== */
@media print {
  body * {
    visibility: hidden;
  }

  #printInvoiceSection,
  #printInvoiceSection * {
    visibility: visible;
  }

  #printInvoiceSection {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    margin: 0;
    padding: 20px;
    background: #fff;
    color: #000;
  }
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .header-row {
    flex-wrap: wrap;
  }

  .header-search {
    order: 3;
    max-width: 100%;
    width: 100%;
    margin-top: 0.5rem;
  }

  .container {
    padding: 0 0.75rem;
  }

  /* Category tabs in mobile: smooth swipeable bar without squishing */
  .category-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    padding: 0.5rem 0.25rem 0.75rem;
    scrollbar-width: none;
    gap: 0.5rem;
  }

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

  .category-tab-btn {
    flex-shrink: 0;
    scroll-snap-align: start;
    font-size: 0.82rem;
    padding: 0.45rem 0.95rem;
  }

  /* 2 items in a row in mobile view - Amazon/BigBasket Style 2-Column Grid */
  .products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
  }

  .product-card {
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .product-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.62rem;
    font-weight: 700;
    padding: 0.18rem 0.45rem;
    border-radius: var(--radius-full);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
    pointer-events: none;
    line-height: 1.2;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-img-wrap {
    height: 145px;
    width: 100%;
    position: relative;
    background: #ffffff;
    border-bottom: 1px solid #f2ede2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    overflow: hidden;
    box-sizing: border-box;
  }

  .product-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.3s ease;
  }

  .product-content {
    padding: 0.65rem 0.55rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
  }

  .product-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-dark);
    line-height: 1.3;
    min-height: 2.6em;
    margin-bottom: 0.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .product-subtitle {
    font-size: 0.7rem;
    color: var(--text-muted);
    line-height: 1.25;
    margin-bottom: 0.45rem;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
  }

  .product-variants {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
    min-width: 0;
  }

  .variant-pill {
    font-size: 0.66rem;
    font-weight: 600;
    padding: 0.2rem 0.42rem;
    border-radius: var(--radius-sm);
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
  }

  .product-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-top: auto;
    padding-top: 0.45rem;
    border-top: 1px solid #f2ede2;
    min-width: 0;
  }

  .product-footer > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.2rem;
  }

  .product-price {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.1;
  }

  .product-unit-label {
    font-size: 0.68rem;
    color: var(--text-muted);
  }

  .add-cart-btn {
    width: 100%;
    min-height: 32px;
    justify-content: center;
    padding: 0.42rem 0.45rem;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .category-tabs {
    gap: 0.45rem;
    padding-bottom: 0.4rem;
  }

  .category-tab-btn {
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  .chit-box {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }

  .cart-drawer {
    max-width: 100%;
    right: -100%;
  }

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

@media (max-width: 480px) {
  .container {
    padding: 0 0.5rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-card {
    border-radius: 10px;
    min-width: 0;
  }

  .product-badge {
    top: 5px;
    left: 5px;
    font-size: 0.58rem;
    padding: 0.14rem 0.38rem;
  }

  .product-img-wrap {
    height: 125px;
    padding: 0.35rem;
  }

  .product-content {
    padding: 0.5rem 0.42rem;
  }

  .product-title {
    font-size: 0.8rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .product-subtitle {
    font-size: 0.66rem;
    margin-bottom: 0.35rem;
  }

  .product-variants {
    gap: 0.2rem;
    margin-bottom: 0.4rem;
  }

  .variant-pill {
    font-size: 0.62rem;
    padding: 0.16rem 0.35rem;
  }

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

  .product-unit-label {
    font-size: 0.64rem;
  }

  .add-cart-btn {
    padding: 0.36rem 0.4rem;
    font-size: 0.74rem;
    min-height: 30px;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0 0.375rem;
  }

  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .product-card {
    border-radius: 8px;
    min-width: 0;
  }

  .product-img-wrap {
    height: 112px;
    padding: 0.25rem;
  }

  .product-content {
    padding: 0.45rem 0.35rem;
  }

  .product-title {
    font-size: 0.76rem;
    line-height: 1.25;
    min-height: 2.5em;
  }

  .product-subtitle {
    font-size: 0.62rem;
    margin-bottom: 0.3rem;
  }

  .product-variants {
    gap: 0.18rem;
    margin-bottom: 0.35rem;
  }

  .variant-pill {
    font-size: 0.58rem;
    padding: 0.12rem 0.3rem;
  }

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

  .product-unit-label {
    font-size: 0.6rem;
  }

  .add-cart-btn {
    padding: 0.32rem 0.3rem;
    font-size: 0.7rem;
    min-height: 28px;
    gap: 0.2rem;
  }
}

/* ==========================================================================
   MODERN ANIMATIONS & MICRO-INTERACTIONS (Latest Design Upgrade)
   ========================================================================== */

/* --- Core Keyframes --- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(24px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.88); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-7px); }
}

@keyframes pulseGold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45); }
  50%       { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
}

@keyframes shimmerGold {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes rotateEntrance {
  from { opacity: 0; transform: rotate(-12deg) scale(0.75); }
  to   { opacity: 1; transform: rotate(0deg) scale(1); }
}

@keyframes slideDrawer {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

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

@keyframes badgePop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

@keyframes spinOnce {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes typewriter {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; filter: brightness(1); }
  50%       { opacity: 1; filter: brightness(1.15); }
}

/* --- Top Bar: Animated gradient background --- */
.top-bar {
  background: linear-gradient(270deg, #052415, #0a3d24, #1a5c3a, #0a3d24, #052415);
  background-size: 400% 400%;
  animation: gradientFlow 8s ease infinite;
}

.badge-786 {
  animation: pulseGold 2.8s ease-in-out infinite;
}

/* --- Main Header: Enhanced glassmorphism + scroll reveal --- */
.main-header {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(212, 175, 55, 0.18);
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.main-header.scrolled {
  box-shadow: 0 4px 24px rgba(10, 61, 36, 0.12);
}

/* --- Brand Seal: Float animation --- */
.brand-seal {
  animation: floatY 4s ease-in-out infinite, rotateEntrance 0.7s cubic-bezier(0.16,1,0.3,1) both;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.brand-seal:hover {
  transform: scale(1.12) rotate(5deg);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
}

/* --- Brand titles entrance --- */
.brand-titles {
  animation: fadeInLeft 0.55s cubic-bezier(0.16,1,0.3,1) 0.1s both;
}

/* --- WhatsApp Button: Shimmer hover --- */
.whatsapp-direct-btn {
  background: linear-gradient(90deg, #25d366 0%, #128c7e 50%, #25d366 100%);
  background-size: 200% auto;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.whatsapp-direct-btn:hover {
  background-position: right center;
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* --- Cart Button: Badge pop animation on item add --- */
.cart-count-badge {
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cart-count-badge.pop {
  animation: badgePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Hero Section: Entrance animation --- */
.hero-section {
  animation: fadeInUp 0.65s cubic-bezier(0.16,1,0.3,1) 0.05s both;
}

.hero-banner-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  overflow: hidden;
  border-radius: var(--radius-lg);
}
.hero-banner-card:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 60px rgba(10,61,36,0.2);
}
.hero-banner-img {
  transition: transform 0.6s ease;
}
.hero-banner-card:hover .hero-banner-img {
  transform: scale(1.03);
}

/* --- Highlight Boxes: Staggered entrance --- */
.highlight-box {
  animation: fadeInUp 0.55s cubic-bezier(0.16,1,0.3,1) both;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.highlight-box:nth-child(1) { animation-delay: 0.08s; }
.highlight-box:nth-child(2) { animation-delay: 0.16s; }
.highlight-box:nth-child(3) { animation-delay: 0.24s; }
.highlight-box:nth-child(4) { animation-delay: 0.32s; }

.highlight-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.highlight-icon-wrap {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.highlight-box:hover .highlight-icon-wrap {
  transform: scale(1.18) rotate(-5deg);
}

/* --- Section Badges: Glowing shimmer --- */
.section-badge {
  background: linear-gradient(90deg, var(--gold-light), rgba(212,175,55,0.15), var(--gold-light));
  background-size: 200% auto;
  animation: shimmerGold 3s linear infinite;
}

/* --- Kit Cards: Enhanced hover --- */
.kit-card {
  animation: scaleIn 0.45s cubic-bezier(0.16,1,0.3,1) both;
  transition: transform 0.32s cubic-bezier(0.16,1,0.3,1), box-shadow 0.32s ease;
  overflow: hidden;
}
.kit-card:nth-child(odd)  { animation-delay: 0.06s; }
.kit-card:nth-child(even) { animation-delay: 0.14s; }

.kit-card:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 20px 50px rgba(10, 61, 36, 0.18);
}
.kit-card:hover .kit-image-wrapper img {
  transform: scale(1.07);
}
.kit-image-wrapper img {
  transition: transform 0.5s ease;
}

/* --- Product Cards: Rich hover effects --- */
.product-card {
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1), box-shadow 0.28s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
  border-radius: inherit;
}
.product-card:hover {
  transform: translateY(-6px) scale(1.018);
  box-shadow: 0 16px 44px rgba(10, 61, 36, 0.15);
  border-color: var(--gold);
}
.product-card:hover::before {
  opacity: 1;
}

.product-img-wrap {
  overflow: hidden;
}
.product-img-wrap img {
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.product-card:hover .product-img-wrap img {
  transform: scale(1.1);
}

/* --- Add to Cart Button: Ripple + color shift --- */
.add-cart-btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease, box-shadow 0.2s ease;
}
.add-cart-btn:hover {
  transform: scale(1.06);
  box-shadow: 0 4px 16px rgba(10, 61, 36, 0.25);
}
.add-cart-btn:active {
  transform: scale(0.96);
}

/* Ripple effect on click */
.add-cart-btn::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.45s ease, height 0.45s ease, opacity 0.45s ease;
  opacity: 0;
}
.add-cart-btn:active::after {
  width: 200%;
  height: 200%;
  opacity: 1;
  transition: 0s;
}

/* --- Variant Pills: Hover pop --- */
.variant-pill {
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s ease;
}
.variant-pill:hover {
  transform: translateY(-2px) scale(1.06);
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.variant-pill.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  animation: scaleIn 0.2s cubic-bezier(0.34,1.56,0.64,1);
}

/* --- Category Tabs: Animated underline --- */
.category-tab-btn {
  position: relative;
  flex-shrink: 0;
  min-width: max-content;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.category-tab-btn::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2.5px;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.3s cubic-bezier(0.16,1,0.3,1);
}
.category-tab-btn.active::after,
.category-tab-btn:hover::after {
  width: 70%;
}
.category-tab-btn:hover {
  transform: translateY(-2px);
}

/* --- Cart Drawer: Smooth slide --- */
.cart-drawer {
  transition: right 0.42s cubic-bezier(0.16,1,0.3,1);
}

/* --- Cart Item: Entrance animation --- */
.cart-item {
  animation: fadeInRight 0.3s cubic-bezier(0.16,1,0.3,1) both;
  transition: background 0.2s ease;
}
.cart-item:hover {
  background: rgba(10, 61, 36, 0.03);
  border-radius: var(--radius-sm);
}

/* --- Checkout Button: Shimmer --- */
.checkout-btn {
  background: linear-gradient(90deg, #25d366 0%, #128c7e 50%, #25d366 100%);
  background-size: 200% auto;
  transition: background-position 0.5s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.checkout-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.4);
}
.checkout-btn:active {
  transform: scale(0.97);
}

/* --- Store Cards: Slide in on scroll --- */
.store-card {
  animation: fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.store-card:nth-child(1) { animation-delay: 0.05s; }
.store-card:nth-child(2) { animation-delay: 0.12s; }
.store-card:nth-child(3) { animation-delay: 0.19s; }

.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* --- Section heads: Fade in --- */
.section-head {
  animation: fadeInUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
}

/* --- Floating WhatsApp: Enhanced pulse --- */
.floating-whatsapp {
  transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.3s ease;
  animation: floatY 3s ease-in-out infinite;
}
.floating-whatsapp:hover {
  transform: scale(1.15) translateY(-3px);
  box-shadow: 0 12px 32px rgba(37,211,102,0.55);
}

/* --- Footer: Smooth link hovers --- */
.footer-links a {
  transition: color 0.2s ease, padding-left 0.2s ease;
  display: inline-block;
}
.footer-links a:hover {
  color: var(--gold);
  padding-left: 6px;
}

/* --- Toast: Spring entrance --- */
.toast-msg {
  transition: all 0.45s cubic-bezier(0.16,1,0.3,1);
}
.toast-msg.show {
  animation: scaleIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

/* --- Chit Box: Focused glow --- */
.chit-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10,61,36,0.1);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* --- Delivery meter fill: Smooth --- */
.meter-progress-fill {
  transition: width 0.6s cubic-bezier(0.16,1,0.3,1);
}

/* --- Search dropdown: Fade in --- */
.search-dropdown {
  animation: fadeInUp 0.22s ease both;
}

/* --- Modal overlay: Fade + scale --- */
.modal-overlay {
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.open .modal-card {
  animation: scaleIn 0.38s cubic-bezier(0.16,1,0.3,1) both;
}

/* Scroll-triggered animation utility */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s cubic-bezier(0.16,1,0.3,1), transform 0.55s cubic-bezier(0.16,1,0.3,1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header scroll shadow injection (JS-friendly) --- */
.main-header.has-shadow {
  box-shadow: 0 2px 20px rgba(10, 61, 36, 0.1);
}