/* CSS Reset & Variables */
:root {
  --primary-color: #0d6efd;
  --primary-dark: #0b5ed7;
  --secondary-color: #d63384;
  --secondary-hover: #c22d78;

  --text-dark: #2c3e50;
  /* Softer dark */
  --text-light: #6c757d;
  --white: #ffffff;
  --bg-light: #f3f6f9;
  /* Collaborative grey */
  --bg-overlay: rgba(13, 110, 253, 0.05);
  /* Tinted overlay */

  --font-main: "Prompt", sans-serif;

  /* Modern Soft Shadows */
  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);

  /* Rounded Corners */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --radius-xl: 50px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-center {
  text-align: center;
}

.text-primary {
  color: var(--primary-color);
}

.text-white {
  color: var(--white);
}

.text-white-dim {
  color: rgba(255, 255, 255, 0.9);
}

.space-top {
  margin-top: 1rem;
}

.section {
  padding: 1rem 0;
}

.section-header {
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg,
      var(--primary-color) 0%,
      var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(13, 110, 253, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(214, 51, 132, 0.3);
}

.btn-lg {
  padding: 18px 40px;
  font-size: 1.15rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Navbar Styling - Elegant Blue/Pink Theme (New) */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: linear-gradient(135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 245, 255, 0.98) 100%);
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 30px rgba(99, 102, 241, 0.1);
  transition: all 0.4s ease;
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.navbar.scrolled {
  background: linear-gradient(135deg, #ffffff 0%, #fdf2f8 50%, #eff6ff 100%);
  box-shadow:
    0 8px 40px rgba(99, 102, 241, 0.15),
    0 4px 20px rgba(236, 72, 153, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  height: 90px;
  /* Reduced from 110px */
  transition: all 0.4s ease;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.5px;
  position: relative;
  min-width: 220px;
}

.brand-logo img {
  height: 80px;
  /* Initial large size */
  width: auto;
  margin-right: 15px;
  display: block !important;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.navbar.scrolled .brand-logo img {
  height: 50px;
  /* Smaller size when scrolled */
}

/* Brand Badge Style - Text Only */
.brand-badge {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  align-items: center;
  /* Center items in flex column */
}

.brand-top {
  color: #0056b3;
  /* Deep Blue */
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  /* Center text */
  letter-spacing: 0.5px;
  padding: 0;
  background: none;
}

.brand-bottom {
  color: #e91e63;
  /* Pink */
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  /* Center text */
  margin-top: 0;
  padding: 0;
  background: none;
}

/* Language Switch Logic (New) */
.brand-badge .en {
  display: none;
}

.brand-badge .th {
  display: block;
}

.navbar.scrolled .brand-badge .th {
  display: none;
}

.navbar.scrolled .brand-badge .en {
  display: block;
}

.navbar.scrolled .brand-top {
  font-size: 1.2rem;
}

.navbar.scrolled .brand-bottom {
  font-size: 0.9rem;
}

/* --- LEGACY NAVBAR STYLES (Restored for pages using old structure) --- */
.brand-text-en {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: absolute;
  left: 80px;
  opacity: 1;
  font-size: 1.3rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.brand-text-th {
  background: linear-gradient(135deg, #ec4899 0%, #f472b6 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
  font-size: 1.6rem;
  position: absolute;
  left: 80px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: left center;
}

.navbar.scrolled .brand-logo .brand-text-en,
.navbar.scrolled .brand-logo .brand-text-th {
  left: 75px;
  font-size: 1.4rem;
}


@media (max-width: 768px) {
  .nav-container {
    position: relative;
    justify-content: center;
    /* Helper */
  }

  .brand-logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    justify-content: center;
  }

  .brand-badge {
    align-items: center;
    margin-left: 5px;
    /* Adjust spacing */
  }

  .brand-top,
  .brand-bottom {
    text-align: center;
  }

  .mobile-menu-toggle {
    position: absolute;
    right: 20px;
    display: block;
  }
}

.navbar.scrolled .brand-badge {
  transform: scale(0.9);
  transform-origin: left center;
}

.brand-logo:hover img {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.4));
}

/* Dropdown Styles - Premium */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.dropdown>a {
  display: flex;
  align-items: center;
  gap: 6px;
}

.dropdown>a i {
  font-size: 0.65rem;
  transition: transform 0.3s ease;
}

.dropdown:hover>a i {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  min-width: 220px;
  box-shadow:
    0 20px 60px rgba(59, 130, 246, 0.15),
    0 8px 25px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 12px 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Top Accent Border */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
  border-radius: 0 0 3px 3px;
}

/* Invisible bridge to prevent hover gap */
.dropdown-menu::after {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #4b5563;
  font-size: 0.9rem;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-weight: 500;
  border-radius: 10px;
  margin: 2px 0;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

/* Hover glow effect */
.dropdown-menu a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, #3b82f6, #ec4899);
  opacity: 0;
  transition: opacity 0.2s ease;
  border-radius: 0 3px 3px 0;
}

.dropdown-menu a:hover {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), rgba(236, 72, 153, 0.05));
  color: #3b82f6;
  padding-left: 20px;
}

.dropdown-menu a:hover::before {
  opacity: 1;
}

/* Remove underline from dropdown items */
.dropdown-menu a::after {
  display: none !important;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
  /* Aligns to right */
}

.nav-links a {
  text-decoration: none;
  color: #ec4899;
  font-weight: 500;
  /* Back to normal weight */
  font-size: 0.9rem;
  /* Decreased from 1.05rem */
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #ec4899);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #3b82f6;
}

.nav-links a.active {
  color: #3b82f6;
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

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

.mobile-menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #333;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .brand-logo img {
    height: 32px;
  }

  .brand-logo {
    font-size: 1.1rem;
  }
}

/* Add padding to body for fixed navbar */
body {
  padding-top: 70px;
}

/* (Dropdown styles consolidated above - see "Dropdown Styles - Premium") */

.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .brand-logo img {
    height: 32px;
  }

  .brand-logo {
    font-size: 1.1rem;
  }
}

/* Mobile Menu Active State */
@media (max-width: 1024px) {
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 1px solid #f0f0f0;
  }

  .nav-links.active a {
    padding: 15px;
    border-bottom: 1px solid #f9f9f9;
    width: 100%;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
    /* Disable hover on mobile */
  }

  .dropdown {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .dropdown>a {
    width: 100%;
    justify-content: space-between;
    padding: 15px;
    /* Match other links */
    border-bottom: 1px solid #f9f9f9;
  }

  /* Mobile Dropdown Menu (Hidden by default) */
  .dropdown-menu {
    position: static;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    border: none;
    background: #f8f9fa;
    /* Slightly different bg for contrast */
    width: 100%;
    border-radius: 0;
    margin-top: 0;
  }

  /* Show when active */
  .dropdown.active .dropdown-menu {
    display: block;
    animation: slideDown 0.3s ease-out forwards;
  }

  .dropdown-menu a {
    padding-left: 30px;
    /* Indent items */
    font-size: 0.85rem;
  }

  /* Rotate icon when open */
  .dropdown.active>a i {
    transform: rotate(180deg);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* Hero Section */
.hero-section {
  position: relative;
  height: 730px;
  /* 1920x730 px */
  width: 100%;
  /* max-width removed for full width */
  margin: 0 auto;
  background-position: center bottom;
  /* Lock bottom edge */
  /* Placeholder Gradient Background */
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  /* Better styling: use a background image if available, fallback to pattern */
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url("https://images.unsplash.com/photo-1542838132-92c53300491e?auto=format&fit=crop&w=1920&q=80");
  /* Supermarket shelf placeholder */
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  text-align: center;
  color: var(--white);
}

@media (max-width: 1600px) {
  .hero-section {
    height: 610px;
    /* 1600x610 px */
  }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 30px;
  margin-bottom: 20px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-title {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.text-highlight {
  color: var(--secondary-color);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0.7);
  }

  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(230, 0, 0, 0);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(230, 0, 0, 0);
  }
}

.pulse-anim {
  animation: pulse 2s infinite;
}

/* Promotions Section */
.promotions-section {
  background-color: var(--bg-light);
}

.e-leaflet-container {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: 4rem;
}

.leaflet-card {
  display: flex;
  gap: 30px;
  align-items: center;
}

.leaflet-image-placeholder {
  flex: 1;
  height: 400px;
  background-color: #eee;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #999;
  font-size: 3rem;
  border: 2px dashed #ddd;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.leaflet-image-placeholder:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.leaflet-image-placeholder p {
  font-size: 1rem;
  margin-top: 10px;
}

.leaflet-status {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--primary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-weight: 700;
  z-index: 10;
}

.leaflet-info {
  flex: 1;
}

.leaflet-info h3 {
  font-size: 2rem;
  margin-bottom: 15px;
}

/* Flash Sale */
.flash-sale-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 15px;
}

.flash-sale-header h3 {
  font-size: 1.8rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 10px;
}

.countdown-timer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.timer-box {
  background: var(--text-dark);
  color: var(--white);
  padding: 5px 10px;
  border-radius: 5px;
  min-width: 40px;
  text-align: center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* Modern Product Card */
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(0, 0, 0, 0.03);
  position: relative;
  padding: 15px;
}

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

.product-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 15px;
  overflow: hidden;
}

.product-details {
  text-align: left;
}

.product-details h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  height: 48px;
  /* 2 lines */
  overflow: hidden;
}

.price-box {
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 10px;
}

.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.9rem;
}

.new-price {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.limit-status {
  font-size: 0.8rem;
  color: var(--secondary-color);
  /* darker yellow or orange */
  color: #f39c12;
  margin-bottom: 15px;
  font-weight: 500;
}

/* Social Section (Phase 2) */
.social-section {
  background-color: var(--white);
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.social-card {
  border: 1px solid #eee;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}

.social-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.social-img-box {
  height: 200px;
  background: #f0f0f0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-placeholder-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.1);
}

.social-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff0000;
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.social-content {
  padding: 20px;
}

.social-text {
  font-size: 1rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.social-meta {
  display: flex;
  justify-content: space-between;
  color: #999;
  font-size: 0.85rem;
}

/* Membership Section */
.membership-section {
  background-color: var(--white);
}

.membership-card-bg {
  background: linear-gradient(135deg, var(--primary-color) 0%, #a00000 100%);
  border-radius: var(--radius-xl);
  padding: 60px;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-lg);
}

.membership-content {
  flex: 1;
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.benefit-list {
  margin-top: 30px;
  display: grid;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  border-radius: var(--radius-md);
  color: var(--white);
  transition: var(--transition);
}

.benefit-item:hover {
  background: rgba(255, 255, 255, 0.2);
}

.benefit-item i {
  font-size: 2rem;
  color: var(--secondary-color);
}

.membership-image-deco {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0.1;
  font-size: 20rem;
  color: var(--white);
  transform: rotate(-15deg);
}

/* Store Locator */
.store-locator-section {
  background-color: var(--bg-light);
}

.locator-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.locator-info {
  padding: 40px;
}

.sub-header {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 10px;
}

.locator-info h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--text-dark);
}

/* Modern Search Box */
.search-box {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 40px 0;
  background: var(--white);
  padding: 10px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-box input {
  flex: 1;
  padding: 15px 25px;
  border: none;
  font-family: inherit;
  font-size: 1.1rem;
  outline: none;
  background: transparent;
  color: var(--text-dark);
}

/* Modern Store List */
.store-list {
  list-style: none;
  max-height: 450px;
  overflow-y: auto;
  padding-right: 10px;
  display: grid;
  gap: 15px;
}

.store-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  border-radius: var(--radius-md);
  background: var(--white);
  border: 1px solid #f1f1f1;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  align-items: center !important;
  /* Force alignment */
}

.store-item:hover {
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-color);
}

.store-item i {
  color: var(--primary-color);
  margin-top: 5px;
}

.status {
  font-size: 0.8rem;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 5px;
}

.status.open {
  background: #d4edda;
  color: #155724;
}

.status.closing-soon {
  background: #fff3cd;
  color: #856404;
}

.locator-map {
  height: 100%;
  min-height: 400px;
  background: #e9ecef;
}

/* Main Footer */
.main-footer {
  background: linear-gradient(135deg, #f0f4ff 0%, #eff6ff 100%);
  color: var(--text-dark);
  padding: 60px 0 0;
  margin-top: auto;
  border-top: 5px solid #3b82f6;
  /* Hardcoded Blue to override local page Red */
  position: relative;
  overflow: hidden;
}

/* Decorative background for footer */
.main-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%233b82f6' fill-opacity='0.03' fill-rule='evenodd'/%3E%3C/svg%3E");
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  position: relative;
  z-index: 1;
}

.footer-col h4 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 25px;
  color: #1e3a8a;
  /* Dark Blue */
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #ec4899);
  /* Blue to Pink */
  border-radius: 2px;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.footer-links-list li {
  margin-bottom: 12px;
}

.footer-links-list a {
  text-decoration: none;
  color: #4b5563;
  transition: 0.2s;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links-list a::before {
  content: "\f054";
  /* Font Awesome Chevron Right */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.7rem;
  color: #cbd5e1;
  transition: 0.2s;
}

.footer-links-list a:hover {
  color: #2563eb;
  /* Blue hover */
  padding-left: 5px;
}

.footer-links-list a:hover::before {
  color: #ec4899;
  /* Pink chevron */
}

.contact-info p {
  font-size: 0.95rem;
  margin-bottom: 15px;
  color: #4b5563;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-info i {
  color: #3b82f6;
  /* Blue Icon */
  margin-top: 4px;
  font-size: 1.1rem;
}

/* Social & Newsletter */
.social-links {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.social-links a {
  width: 42px;
  height: 42px;
  background: white;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.social-links a:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(59, 130, 246, 0.3);
  border-color: transparent;
}

.newsletter-box {
  display: flex;
  gap: 5px;
  background: white;
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.newsletter-box input {
  flex: 1;
  border: none;
  padding: 10px 20px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  background: transparent;
}

.newsletter-box button {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.newsletter-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
}

/* App Download */
.app-download-area {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.qr-code img {
  width: 80px;
  height: 80px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 5px;
  background: white;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2c3e50;
  color: white;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 5px;
  font-size: 0.8rem;
  width: 130px;
  transition: 0.2s;
}

.store-btn:hover {
  background: #1a252f;
}

/* Footer Bottom */
.footer-bottom {
  background-color: #e9ecef;
  padding: 20px 0;
  text-align: center;
  margin-top: 20px;
}

.footer-bottom p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

/* Responsive Footer */
@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

/* News Grid & Cards (Global) */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.news-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.news-img {
  height: 200px;
  background: #eee;
  object-fit: cover;
  width: 100%;
  display: block;
}

.news-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-category {
  display: inline-block;
  background: var(--secondary-color);
  color: white;
  padding: 3px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 15px;
  align-self: flex-start;
  text-transform: uppercase;
}

.news-date {
  color: #aaa;
  font-size: 0.85rem;
  margin-bottom: 10px;
  display: block;
}

.news-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-dark);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
  text-decoration: none;
}

.news-excerpt {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

.read-more {
  margin-top: auto;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.read-more:hover {
  gap: 12px;
}

/* Responsive Grid */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

@media (max-width: 600px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

/* Floating Action Button */
.fab-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #06C755;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
  z-index: 999;
  transition: var(--transition);
  font-weight: 600;
}

.fab-chat:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.6);
}

.fab-icon {
  font-size: 1.5rem;
}

/* Responsive */
@media (max-width: 992px) {
  .promo-grid {
    grid-template-columns: 1fr;
  }

  .locator-grid {
    grid-template-columns: 1fr;
  }

  .locator-map {
    height: 300px;
  }

  .membership-card-bg {
    flex-direction: column;
    text-align: center;
    padding: 40px 20px;
  }

  .membership-image-deco {
    display: none;
  }

  .benefit-item {
    justify-content: flex-start;
    text-align: left;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .btn-primary.btn-sm {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .leaflet-card {
    flex-direction: column;
  }

  .leaflet-image-placeholder {
    width: 100%;
    height: 250px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom-links a {
    margin: 0 10px;
  }

  .fab-chat {
    bottom: 20px;
    right: 20px;
    padding: 10px 15px;
  }

  .fab-label {
    font-size: 0.9rem;
  }
}

/* Utilities */
.text-left {
  text-align: left !important;
}

.text-center {
  text-align: center !important;
}

.text-right {
  text-align: right !important;
}

/* Cookie Consent Banner - Refined */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 -4px 25px rgba(0, 0, 0, 0.08);
  padding: 16px 0;
  z-index: 10000;
  display: none;
  font-family: var(--font-main);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  animation: slideUp 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  gap: 24px;
  flex-wrap: nowrap;
}

.cookie-text {
  flex: 1;
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.cookie-text a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.cookie-text a:hover {
  text-decoration: none;
  border-bottom-color: var(--primary-color);
}

.cookie-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-cookie-settings {
  background: transparent;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-cookie-settings:hover {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.btn-cookie-accept {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(13, 110, 253, 0.2);
}

.btn-cookie-accept:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(13, 110, 253, 0.3);
}

.cookie-close {
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.25rem;
  padding: 8px;
  margin-left: 8px;
  transition: all 0.2s;
  border-radius: 50%;
}

.cookie-close:hover {
  color: #ef4444;
  background-color: #fee2e2;
  transform: rotate(90deg);
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .cookie-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 16px;
  }

  .cookie-actions {
    width: 100%;
    justify-content: flex-end;
    flex-wrap: wrap;
  }

  .btn-cookie-settings,
  .btn-cookie-accept {
    flex: 1;
    text-align: center;
    padding: 12px;
  }

  .cookie-close {
    position: absolute;
    top: 10px;
    right: 15px;
  }
}

/* Mobile Modal Styles - Re-applied with High Specificity */
#mobile-dropdown-modal.mobile-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000 !important;
  /* Ensure on top */
  display: none;
  align-items: center;
  justify-content: center;
}

#mobile-dropdown-modal.active {
  display: flex !important;
}

.mobile-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-dropdown-modal.active .mobile-modal-overlay {
  opacity: 1;
}

.mobile-modal-content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 360px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0.9);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 10001;
  display: flex;
  flex-direction: column;
}

#mobile-dropdown-modal.active .mobile-modal-content {
  transform: scale(1);
  opacity: 1;
}

.modal-header {
  padding: 20px 25px;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  /* Don't shrink */
}

.modal-header h3 {
  margin: 0;
  color: #333;
  font-size: 1.25rem;
  font-weight: 700;
}

.close-modal {
  font-size: 2rem;
  color: #aaa;
  cursor: pointer;
  line-height: 0.5;
  padding: 10px;
  margin-right: -10px;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #ec4899;
}

/* Force Vertical Layout for Links */
#mobile-dropdown-modal .modal-body {
  padding: 10px 0;
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column !important;
  /* Force column */
  background: #fff;
}

/* Target all A tags inside modal */
#mobile-dropdown-modal .modal-body a {
  display: block !important;
  /* Force block */
  width: 100% !important;
  padding: 16px 24px !important;
  color: #4b5563;
  text-decoration: none !important;
  font-size: 1rem;
  border-bottom: 1px solid #f5f5f5;
  transition: all 0.2s;
  font-weight: 500;
  background: none;
  text-align: left;
  margin: 0 !important;
  border-radius: 0 !important;
}

#mobile-dropdown-modal .modal-body a:last-child {
  border-bottom: none;
}

#mobile-dropdown-modal .modal-body a:hover,
#mobile-dropdown-modal .modal-body a:active {
  background: #f0f7ff !important;
  color: #3b82f6 !important;
  padding-left: 30px !important;
}

/* Fix for icons if they exist in copied content */
#mobile-dropdown-modal .modal-body a i {
  margin-right: 10px;
}