/* ===========================
   CSS VARIABLES
   =========================== */
:root {
  /* Primary Colors - Dark Blue Gradient */
  --primary: #1a455e;
  --primary-dark: #102c38;
  --primary-light: #407395;

  /* Accent Colors - Golden Yellow */
  --accent: #F9AA41;
  --accent-light: #ffd074;
  --accent-dark: #feb904;

  /* Status Colors */
  --success: #22c55e;
  --danger: #f87171;
  --warning: #f59e0b;

  /* Background Colors */
  --bg: #e8f2fc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-light: #f0f3fa;

  /* Design System */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --radius-full: 50px;

  /* Shadows */
  --shadow: 0 8px 32px 0 rgba(40,81,106,0.10);
  --shadow-sm: 0 1px 6px rgba(40,81,106,0.19);
  --shadow-deep: 0 18px 50px 0 rgba(40,81,106,0.18);
  --shadow-accent: 0 5px 20px rgba(249,170,65,0.35);

  /* Typography */
  --font-main: 'Inter', Arial, sans-serif;
  --font-logo: 'Poppins', sans-serif;

  /* Transitions */
  --transition-fast: 0.13s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;
}

/* ===========================
   BASE STYLES
   =========================== */
* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  margin: 0;
  font-family: var(--font-main);
  color: #253b4b;
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

/* ===========================
   HEADER SECTION
   =========================== */
header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  border-bottom: 1.5px solid rgba(255,255,255,0.15);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 2vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* Logo */
.logo {
  font-family: var(--font-logo);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform var(--transition-fast);
  flex-shrink: 0;
  margin-right: 0;
}

.logo:hover {
  transform: scale(1.07) rotate(-1deg);
}

.logo-stores {
  color: #fff;
}

.logo-offers {
  color: var(--accent);
  margin-left: 2px;
}

/* Header Controls Container */
.header-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

/* Location Selector */
.location-select {
  background: #fff;
  border: none;
  font-weight: 700;
  color: var(--primary);
  padding: 0 20px;
  font-size: 1.1rem;
  min-width: 160px;
  height: 44px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  outline: none;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.location-select:hover,
.location-select:focus {
  background: #f8fafb;
  border: 2.5px solid var(--accent);
  box-shadow: var(--shadow-accent);
  color: var(--accent);
}

.location-select i {
  color: var(--primary);
  margin-right: 8px;
  font-size: 1.15em;
}

/* Search Container */
.search-container {
  flex: 1;
  /*max-width: 500px;*/
  background: #fff;
  border: none;
  border-radius: var(--radius-full);
  min-width: 240px;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: visible;
  transition: all var(--transition-fast);
  position: relative;
}

.search-container input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--primary);
  padding: 0 15px;
  height: 44px;
}

.search-container input::placeholder {
  color: #a7b8c7;
  font-weight: 500;
  opacity: 0.88;
}

.search-container button {
  border: none;
  background: var(--accent);
  color: var(--primary);
  border-radius: 0 var(--radius-full) var(--radius-full) 0;
  padding: 0 25px;
  height: 44px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.search-container input,
.search-container button {
  outline: none;
  box-shadow: none;
}

.search-container input:focus,
.search-container button:focus {
  outline: none;
  box-shadow: none;
}


/* Header CTA Button */
.header-btn {
  background: #fff;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.08rem;
  padding: 0 18px;
  border: none;
  height: 44px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
}

.header-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

.header-btn i {
  font-size: 1.17em;
}

.header-btn:hover i {
  animation: bell-shake 0.4s;
}

@keyframes bell-shake {
  0% { transform: rotate(0); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(12deg); }
  75% { transform: rotate(-7deg); }
  100% { transform: rotate(0); }
}

/* Profile Menu */
.profile-menu {
  display: flex;
  align-items: center;
  height: 44px;
  position: relative;
  flex-shrink: 0;
}

#profileIcon {
  width: 44px;
  height: 44px;
  background: #fff;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

#profileIcon:hover {
  background: var(--accent);
  color: var(--primary);
  border: 2px solid var(--accent);
}

/* Profile Dropdown */
.profile-dropdown {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  top: 110%;
  min-width: 210px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-deep);
  padding: 10px 0;
  z-index: 999;
  border: 1.5px solid #ececec;
  animation: dropdownFadeIn 0.3s ease;
}

.profile-dropdown a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 27px;
  color: #203146;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.profile-dropdown a i {
  font-size: 1.14rem;
  color: var(--primary);
  min-width: 22px;
  text-align: center;
}

.profile-dropdown a:hover {
  background: var(--accent);
  color: var(--primary);
  border-radius: 10px;
}

.dropdown-divider {
  height: 1px;
  background: var(--border-light);
  margin: 7px 0;
  width: 80%;
  align-self: center;
}

@keyframes dropdownFadeIn {
  0% { opacity: 0; transform: translateY(-18px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   NAVIGATION TABS
   =========================== */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px auto 12px auto;
  justify-content: center;
  padding: 0 15px;
  max-width: 1400px;
}

.tab {
  font-family: var(--font-main);
  font-size: 1.05rem;
  font-weight: 500;
  color: #ffffff;
  background: #1a455e;
  border: none;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 10px 20px;
  cursor: pointer;
  border-bottom: 4px solid transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  transition: all var(--transition-fast);
  outline: none;
  flex: 1 0 auto;
  text-align: center;
  justify-content: center;
}

.tab.active,
.tab:hover {
  background: var(--accent);
  color: var(--primary);
  font-weight: 700;
}

.tab:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ===========================
   HERO SECTION
   =========================== */
.smart-hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 10px 0 16px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 26px;
  margin-top: 10px;
  border-radius: 0 0 28px 28px;
  box-shadow: var(--shadow-deep);
}

.hero-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
  padding: 0 15px;
}

.hero-heading {
  font-size: 2rem;
  margin-bottom: 8px;
  line-height: 1.22;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-heading span {
  color: var(--accent);
  position: relative;
}

.hero-subheading {
  font-size: 1.5rem;
  max-width: 900px;
  margin: 0 auto 20px auto;
  color: #ffffff;
  line-height: 1.5;
  font-weight: 300;
  text-align: center;
}

.hero-subheading .big-promise {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-subheading .description {
  font-size: 1.2rem;
  color: #e8f4f8;
  font-weight: 400;
  line-height: 1.6;
}

.hero-subheading .key-benefit {
  color: var(--accent);
  font-weight: 600;
}

.hero-cta {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 13px 28px;
  font-size: 1.09rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-accent);
  transition: all var(--transition-normal);
  margin-bottom: 14px;
  text-decoration: none;
}

.hero-cta:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(249, 170, 65, 0.5);
}

.benefits-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.15);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  font-weight: 500;
  min-width: 160px;
  justify-content: center;
  color: #fff;
  transition: background var(--transition-fast);
}

.benefit-card i {
  color: var(--accent);
  font-size: 1.15rem;
}

/* Floating Icons Animation */
.floating-icon {
  position: absolute;
  font-size: 2rem;
  opacity: 0.09;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating-icon:nth-child(1) {
  top: 20%;
  left: 8%;
  color: var(--accent);
  animation-delay: 0s;
}

.floating-icon:nth-child(2) {
  top: 40%;
  right: 10%;
  color: var(--success);
  animation-delay: 1s;
}

.floating-icon:nth-child(3) {
  bottom: 20%;
  left: 15%;
  color: #3b82f6;
  animation-delay: 2s;
}

/* ===========================
   CAROUSEL SECTION
   =========================== */
.carousel {
  position: relative;
  max-width: 1200px;
  margin: 20px auto;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow-deep);
  height: 310px;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
}

.carousel-item {
  min-width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #e8f2fc;
}

.carousel-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background-color: #e8f2fc;
  border-radius: 6px;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 30px;
}

.carousel-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.carousel-subtitle {
  font-size: 1.2rem;
  margin-bottom: 20px;
  max-width: 600px;
  opacity: 0.9;
}

.carousel-cta {
  background: var(--accent);
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 50px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(249, 170, 65, 0.4);
  transition: all 0.2s ease;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  color: #c1c7ca;
  font-size: 22px;
  outline: none;
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

.carousel-nav:hover {
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.carousel-nav:focus {
  outline: none;
  box-shadow: none;
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.92);
  transition: transform 0.15s ease;
}

/* ===========================
   BANNERS SECTION
   =========================== */

.small-banners {
  max-width: 1200px;
  margin: 30px auto 20px;
  padding: 0 20px;
}

.banners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.small-banner {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  cursor: pointer;
  background: var(--card);
  height: auto;
  display: flex;
  flex-direction: column;
}

.small-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
}

.banner-image-container {
  height: 150px;
  overflow: hidden;
  position: relative;
}

.banner-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.small-banner:hover img {
  transform: scale(1.05);
}

.banner-content {
  padding: 10px;
  text-align: center;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--primary);
}

.banner-subtitle {
  font-size: 0.95rem;
  color: #666;
  font-weight: 500;
}

.banner-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--accent);
  color: var(--primary);
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 15px rgba(249, 170, 65, 0.3);
  z-index: 2;
}

/* ===========================
   NEW SECTION SEPARATOR
   =========================== */
.section-separator {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.separator-line {
  flex-grow: 1;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
}

.separator-icon {
  margin: 0 15px;
  color: var(--accent);
  font-size: 1.5rem;
}

/* ===========================
   CATEGORIES SECTION
   =========================== */
.categories-section {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 30px;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category-banner {
  background: linear-gradient(135deg, #28516A 0%, #1a3a4d 100%);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.category-banner:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-deep);
}

.category-content {
  text-align: center;
  padding: 20px;
  color: white;
  z-index: 2;
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--accent);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.category-subtitle {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* ===========================
   TABS SECTION
   =========================== */
.tabs-section {
  max-width: 1200px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.tabs-label {
  text-align: center;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  background: #d3dfea;
  padding: 15px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.tabs-label span {
  color: var(--accent-dark);
  position: relative;
}

.tabs-label span::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ===========================
   PRODUCT CARDS SECTION
   =========================== */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
  padding: 18px 4vw 36px 4vw;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card */
.card {
  background: var(--card);
  border: 1px solid rgba(40,81,106,.08);
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(16,42,67,.10);
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(16,42,67,.16);
  border-color: rgba(249,170,65,.28);
}

/* Media */
.media {
  height: 290px;
  background: #ffffff;
  border-bottom: 1px solid rgba(40,81,106,.38);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
  opacity: 0;
  transition: opacity .35s ease;
  background-color: #ffffff;
}

.media img.loaded {
  opacity: 1;
}

/* Discount Badge - Over Image */
.discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: .85rem;
  color: #fff;
  background: linear-gradient(135deg, #ff6b6b, #ff3b3b);
  box-shadow: var(--shadow-deep);
  z-index: 2;
}

.discount-badge i {
  font-size: .9rem;
  color: inherit;
}

/* Body */
.body {
  padding: 14px 14px 18px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
}

/* Brand Row (replaces the chip) */
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 12px;
  padding: 0;
  background: transparent;
  border: none;
}

.brand-logo {
  width: 70px;
  height: 40px;
  object-fit: contain;
  image-rendering: auto;
  border-radius: 0;
  box-shadow: none;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 0 rgba(16,42,67,.04));
}

.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
  letter-spacing: .1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.name + .brand-row {
  border-top: 1px dashed rgba(40,81,106,.10);
  padding-top: 8px;
  margin-top: 8px;
}

/* Title - Reserve exactly 2 lines for consistency */
.name {
  margin: 10px 0 6px;
  font-weight: 800;
  color: var(--primary-dark);
  font-size: 1.1rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

/* Details (location chip) - Reserve space for consistency */
.details {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0 10px;
  min-height: 36px;
  align-items: center;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e7f0f7;
  border-radius: 999px;
  background: #f8fbff;
  color: #4b6679;
  font-size: 1.0rem;
  font-weight: 1000;
  white-space: nowrap;
}

.chip .truncate {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chip--loc i {
  color: var(--primary);
}

/* Price row with days badge */
.price-days {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed rgba(40,81,106,.08);
  padding-top: 10px;
  margin-top: auto;
  font-variant-numeric: tabular-nums;
  gap: 14px;
}

.price-days .left {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
}

.ccy {
  font-size: .78rem;
  opacity: .75;
  color: #5f7485;
  margin-right: 4px;
}

.now {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #0ea85e;
  font-weight: 900;
}

.now .amt {
  font-size: 1.68rem;
  letter-spacing: .15px;
  line-height: 1;
  font-weight: 900;
}

.was {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 800;
}

.was .amt {
  font-size: 1.4rem;
  color: #d04a3e;
  text-decoration: line-through;
  opacity: .95;
  font-weight: 800;
}

/* Validity */
.days-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff6e0, #ffe7b7);
  border: 1px solid rgba(249,170,65,.35);
  color: #6b3f00;
  font-size: .88rem;
  font-weight: 900;
  white-space: normal;
  margin-left: auto;
}

.days-badge i {
  font-size: .84rem;
}

/* View Offer Button */
.view-offer-btn {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border: none;
  padding: 11px 16px;
  width: 100%;
  margin-top: 10px;
  border-radius: var(--radius-full);
  text-align: center;
  cursor: pointer;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: var(--shadow-sm);
  letter-spacing: .2px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.view-offer-btn:hover {
  background: var(--accent);
  color: var(--primary);
}

.view-offer-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* ===========================
   SEARCH SUGGESTIONS
   =========================== */
.suggestions-container {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--card);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-deep);
  z-index: 1000;
  display: none;
  max-height: 300px;
  overflow-y: auto;
  border: 1.5px solid var(--accent);
  border-top: none;
  margin-top: -1px;
}

.suggestion-item {
  padding: 12px 18px;
  font-size: 1.1rem;
  color: var(--primary);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
}

.suggestion-item:hover {
  background: linear-gradient(135deg, rgba(249, 170, 65, 0.08) 0%, rgba(249, 170, 65, 0.04) 100%);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-highlight {
  color: var(--accent);
  font-weight: 700;
}

.suggestion-category {
  margin-left: auto;
  font-size: 0.9rem;
  background: rgba(40, 81, 106, 0.08);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--primary);
}

/* ===========================
   MODAL COMPONENTS
   =========================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  background: rgba(40,81,106, 0.14);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2.5px);
  animation: modalBgFadeIn 0.3s;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-deep);
  padding: 38px 36px 30px 36px;
  min-width: 350px;
  max-width: 95vw;
  max-height: 95vh;
  position: relative;
  border: 1.5px solid #e7ecf6;
  animation: modalFadeIn 0.28s cubic-bezier(0.48,1.7,0.84,0.94);
  margin: auto;
}

.modal-content.image-content {
  display: flex;
  flex-direction: column;
}

@keyframes modalBgFadeIn {
  0% { background: rgba(40,81,106,0); }
  100% { background: rgba(40,81,106,0.14); }
}

@keyframes modalFadeIn {
  0% { opacity: 0; transform: translateY(38px) scale(0.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Modal Headers */
.auth-header,
.location-modal-header,
.shoppinglist-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10px;
}

.auth-header i,
.location-modal-header i,
.shoppinglist-header i {
  font-size: 2.1rem;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  padding: 9px 14px;
  margin-bottom: 9px;
  box-shadow: var(--shadow-accent);
}

.auth-header h2,
.location-modal-header h2,
.shoppinglist-header h2 {
  margin: 0;
  font-family: var(--font-logo);
  color: var(--primary);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.4px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  gap: 13px;
  margin-top: 20px;
  justify-content: flex-end;
}

.modal-actions button {
  min-width: 96px;
  font-size: 1.08rem;
  border-radius: var(--radius-sm);
  padding: 8px 18px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  background: var(--primary);
  color: #fff;
  transition: all var(--transition-fast);
  letter-spacing: 0.5px;
}

.modal-actions .secondary {
  background: #f5f7fa;
  color: var(--primary);
  border: 1px solid var(--border);
}

.modal-actions button:hover:not(.secondary) {
  background: var(--accent);
  color: var(--primary);
}

.modal-actions .secondary:hover {
  background: #e4eaf2;
}

/* ===========================
   FORM COMPONENTS
   =========================== */
.location-form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.location-form-row label {
  width: 110px;
  font-weight: 700;
  color: var(--primary);
  font-size: 1.09rem;
  margin-right: 14px;
  text-align: left;
}

.location-form-row select {
  flex: 1;
  padding: 13px 18px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  font-size: 1.10rem;
  background: #f7fafd;
  color: var(--primary);
  transition: all var(--transition-fast);
}

.location-form-row select:focus {
  border: 1.5px solid var(--accent);
  background: #fff;
}

/* Shopping List Modal Components */
.shoppinglist-desc {
  color: #415468;
  font-size: 1.07rem;
  margin-top: 7px;
  margin-bottom: 7px;
  line-height: 1.5;
}

.shoppinglist-add {
  display: flex;
  gap: 0;
  margin-bottom: 13px;
  border-radius: var(--radius);
  background: #f8fafb;
  border: 1.5px solid #e3eaf5;
  overflow: hidden;
}

.shoppinglist-add input {
  flex: 1;
  border: none;
  padding: 11px 15px;
  font-size: 1.08rem;
  background: transparent;
  color: var(--primary);
  outline: none;
}

.shoppinglist-add input::placeholder {
  color: #b0b7c3;
}

.shoppinglist-add .add-btn {
  background: var(--accent);
  color: var(--primary);
  border: none;
  font-size: 1.2rem;
  padding: 0 19px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.shoppinglist-add .add-btn:hover {
  background: var(--accent-light);
}

.shoppinglist-settings {
  display: flex;
  gap: 18px;
  margin-bottom: 16px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.shoppinglist-settings label {
  font-size: 1.01rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
  display: block;
}

.shoppinglist-settings select,
.shoppinglist-settings input[type="text"] {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1.2px solid var(--border);
  font-size: 1rem;
  background: #f8fafb;
  width: 100%;
  margin-top: 2px;
  transition: border var(--transition-fast);
}

.shoppinglist-settings select:focus,
.shoppinglist-settings input[type="text"]:focus {
  border: 1.2px solid var(--accent);
  outline: none;
}

/* ===========================
   IMAGE VIEWER MODAL
   =========================== */
.image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  background: #f8fafb;
  border-radius: 15px;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid #e9eef5;
  overflow: auto;
  max-height: 75vh;
  padding: 15px;
}

#leafletImageViewer {
  max-width: 100%;
  max-height: 70vh;
  transition: transform var(--transition-normal);
  transform-origin: center center;
  box-shadow: 0 4px 20px rgba(40, 81, 106, 0.15);
  border-radius: 10px;
}

.image-controls {
  display: flex;
  gap: 13px;
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 4;
}

.image-controls button {
  background: #f8fafb;
  border: 1.5px solid #e4e8f2;
  color: var(--primary);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.22rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.image-controls button:hover {
  background: var(--accent);
  color: var(--primary);
  border: 1.5px solid var(--accent);
}

/* ===========================
   EMPTY STATE
   =========================== */
.empty-state {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(249, 170, 65, 0.1);
  max-width: 600px;
  margin: 30px auto;
}

.empty-icon {
  font-size: 4rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
}

.empty-state h3 {
  color: var(--primary);
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.empty-state p {
  color: #5c7c9c;
  font-size: 1.1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

.suggestions-list {
  text-align: left;
  max-width: 300px;
  margin: 0 auto 30px auto;
  padding-left: 20px;
}

.suggestions-list li {
  color: var(--primary);
  margin-bottom: 10px;
  font-size: 1.05rem;
  position: relative;
}

.suggestions-list li:before {
  content: "•";
  color: var(--accent);
  font-weight: bold;
  position: absolute;
  left: -15px;
}

/* ===========================
   FOOTER
   =========================== */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: 10px 15px;
  border-top: 1.5px solid rgba(249, 170, 65, 0.15);
  margin-top: 20px;
  border-top: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1.15rem;
  transition: all var(--transition-slow);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.footer-link:hover {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.footer-link i {
  color: var(--accent);
  transition: transform var(--transition-slow);
}

.footer-link:hover i {
  transform: scale(1.15);
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0;
  max-width: 500px;
}

/* ===========================
   UTILITY CLASSES
   =========================== */
.desktop-only {
  display: inline;
}

.mobile-only {
  display: none;
}

/* Hidden legacy classes */
.info-top,
.details.store-details,
.chip--store {
  display: none !important;
}

/* ===========================
   ACCESSIBILITY & FOCUS STYLES
   =========================== */
button:focus,
input:focus,
select:focus,
.tab:focus,
.suggestion-item:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --shadow: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.3);
    --shadow-deep: 0 4px 16px rgba(0,0,0,0.4);
  }
}

/* ===========================
   RESPONSIVE DESIGN - MOBILE & TABLET
   =========================== */

/* Large Desktop */
@media (min-width: 1200px) {
  .products {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 26px;
  }
}

/* Desktop */
@media (max-width: 1199px) and (min-width: 992px) {
  .products {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
  }
}

/* Large Tablets */
@media (max-width: 1024px) {
  .header-inner {
    padding: 12px 3vw;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 15px 3vw 30px 3vw;
  }

  .hero-heading {
    font-size: 1.8rem;
  }

  .hero-subheading .big-promise {
    font-size: 1.8rem;
  }

  .carousel {
    height: 320px;
    margin: 15px 20px;
  }

  .carousel-title {
    font-size: 1.9rem;
  }

  .carousel-subtitle {
    font-size: 1.1rem;
  }

  .banners-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  html {
    font-size: 13px;
  }

  .header-inner {
    flex-direction: column;
    gap: 10px;
    padding: 10px 4vw;
  }

  .header-controls {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .search-container {
    order: 1;
    width: 100%;
    max-width: 100%;
  }

  .location-select {
    order: 2;
    width: 100%;
    justify-content: center;
  }

  .header-btn {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .profile-menu {
    position: absolute;
    top: 15px;
    right: 15px;
  }

  .hero-heading {
    font-size: 1.6rem;
  }

  .hero-subheading .big-promise {
    font-size: 1.6rem;
  }

  .hero-subheading .description {
    font-size: 1.1rem;
  }

  .benefits-row {
    gap: 8px;
  }

  .benefit-card {
    padding: 6px 12px;
    font-size: 0.95rem;
    min-width: 140px;
  }

  .tabs {
    gap: 6px;
    margin: 15px auto 10px auto;
  }

  .tab {
    padding: 8px 14px;
    font-size: 0.98rem;
  }

  .carousel {
    height: 260px;
    margin: 10px 15px;
  }

  .carousel-title {
    font-size: 1.6rem;
  }

  .carousel-subtitle {
    font-size: 1rem;
  }

  .carousel-caption {
    padding: 20px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    padding: 12px 3vw 25px 3vw;
  }

  .media {
    height: 200px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .chip .truncate {
    max-width: 160px;
  }

  .modal-content {
    min-width: 90vw;
    padding: 25px 20px 20px;
  }

  .image-controls {
    top: 15px;
    right: 15px;
  }

  .discount-badge {
    top: 10px;
    right: 10px;
    font-size: 0.85rem;
    padding: 5px 9px;
  }

  .banners-grid,
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .small-banner,
  .category-banner {
    height: 140px;
  }
}

/* Small Tablets and Large Mobile (600px and below) */
@media (max-width: 600px) {
  .smart-hero {
    padding: 20px 15px;
    border-radius: 0 0 20px 20px;
  }

  .hero-heading {
    font-size: 1.5rem;
  }

  .hero-subheading .big-promise {
    font-size: 1.5rem;
  }

  .hero-subheading .description {
    font-size: 1.05rem;
  }

  .benefits-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .benefit-card {
    width: 100%;
    max-width: 280px;
  }

  .carousel {
    height: 220px;
    margin: 10px;
  }

  .carousel-title {
    font-size: 1.4rem;
  }

  .carousel-subtitle {
    font-size: 0.95rem;
  }

  .carousel-caption {
    padding: 15px;
  }

  .products {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 12px 4vw 22px 4vw;
  }

  .card {
    border-radius: 16px;
  }

  .media {
    height: 190px;
    padding: 10px;
  }

  .body {
    padding: 14px 14px 18px;
  }

  .brand-row {
    margin: 5px 0 10px;
  }

  .brand-logo {
    width: 30px;
    height: 30px;
  }

  .brand-name {
    font-size: 0.98rem;
  }

  .name {
    font-size: 1.08rem;
    margin: 8px 0 6px;
  }

  .details {
    margin: 8px 0;
  }

  .chip {
    font-size: 0.98rem;
    padding: 6px 10px;
  }

  .chip .truncate {
    max-width: 150px;
  }

  .price-days {
    padding-top: 12px;
  }

  .now .amt {
    font-size: 1.45rem;
  }

  .was .amt {
    font-size: 1.18rem;
  }

  .days-badge {
    font-size: 0.9rem;
    padding: 6px 10px;
  }

  .view-offer-btn {
    padding: 12px 16px;
    font-size: 1.1rem;
  }

  .discount-badge {
    top: 12px;
    right: 12px;
    font-size: 0.88rem;
    padding: 6px 10px;
  }

  .banners-grid,
  .category-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .small-banner,
  .category-banner {
    height: 160px;
  }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
  html {
    font-size: 13px;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }

  .logo {
    font-size: 1.7rem;
  }

  .location-select,
  .header-btn,
  .search-container {
    height: 42px;
    font-size: 1.05rem;
  }

  .search-container input {
    height: 42px;
    padding: 0 14px;
  }

  .search-container button {
    height: 42px;
    padding: 0 18px;
  }

  .profile-menu {
    top: 12px;
    right: 12px;
  }

  #profileIcon {
    width: 42px;
    height: 42px;
    font-size: 1.4rem;
  }

  .modal-content {
    padding: 22px 18px;
  }

  .tab {
    padding: 7px 14px;
    font-size: 0.95rem;
  }

  .hero-heading {
    font-size: 1.4rem;
  }

  .hero-subheading .big-promise {
    font-size: 1.4rem;
  }

  .hero-subheading .description {
    font-size: 1rem;
  }

  .hero-cta {
    padding: 12px 24px;
    font-size: 1.05rem;
  }

  .carousel {
    height: 200px;
    margin: 8px;
    border-radius: var(--radius-sm);
  }

  .carousel-title {
    font-size: 1.2rem;
  }

  .carousel-subtitle {
    font-size: 0.9rem;
    margin-bottom: 15px;
  }

  .carousel-caption {
    padding: 12px;
  }

  .carousel-nav {
    width: 40px;
    height: 40px;
  }

  .carousel-prev {
    left: 10px;
  }

  .carousel-next {
    right: 10px;
  }

  .products {
    gap: 16px;
    padding: 10px 4vw 20px 4vw;
  }

  .media {
    height: 180px;
  }

  .body {
    padding: 12px 12px 16px;
  }

  .brand-logo {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 0.96rem;
  }

  .name {
    font-size: 1.06rem;
  }

  .chip .truncate {
    max-width: 130px;
  }

  .now .amt {
    font-size: 1.4rem;
  }

  .was .amt {
    font-size: 1.15rem;
  }

  .small-banner,
  .category-banner {
    height: 140px;
  }

  .section-title {
    font-size: 1.6rem;
  }
}

/* Very Small Mobile Devices (360px and below) */
@media (max-width: 360px) {
  .header-inner {
    padding: 10px 3vw;
  }

  .location-select,
  .header-btn,
  .search-container {
    height: 40px;
  }

  .search-container input {
    padding: 0 12px;
  }

  .hero-heading {
    font-size: 1.3rem;
  }

  .hero-subheading .big-promise {
    font-size: 1.3rem;
  }

  .hero-subheading .description {
    font-size: 0.95rem;
  }

  .carousel {
    height: 180px;
    margin: 5px;
  }

  .carousel-title {
    font-size: 1.1rem;
  }

  .carousel-subtitle {
    font-size: 0.85rem;
  }

  .products {
    padding: 8px 3vw 18px 3vw;
  }

  .media {
    height: 170px;
  }

  .body {
    padding: 10px 10px 14px;
  }

  .chip .truncate {
    max-width: 110px;
  }

  .price-days {
    flex-wrap: wrap;
  }

  .price-days .left {
    flex: 1 1 100%;
  }

  .price-days .days-badge {
    margin-left: 0;
    margin-top: 6px;
  }

  .small-banner,
  .category-banner {
    height: 120px;
  }

  .section-title {
    font-size: 1.4rem;
  }
}

/* ===========================
   PRINT STYLES
   =========================== */
@media print {
  header,
  .tabs,
  .modal,
  .floating-icon,
  .image-controls,
  footer,
  .carousel-nav,
  .carousel-dots {
    display: none !important;
  }

  body {
    padding-top: 0;
  }

  .card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }

  .smart-hero {
    background: #f5f5f5 !important;
    color: #333 !important;
  }

  .hero-subheading .big-promise,
  .hero-subheading .description {
    color: #333 !important;
  }
}

/* ===========================
   RESPONSIVE UPDATES FOR NEW BANNER DESIGN
   =========================== */

/* Large Tablets */
@media (max-width: 1024px) {
  .banners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .banner-image-container {
    height: 160px;
  }

  .banner-content {
    padding: 18px;
  }

  .banner-title {
    font-size: 1.15rem;
  }

  .banner-subtitle {
    font-size: 0.9rem;
  }

  .section-separator {
    margin: 35px auto;
  }

  .separator-icon {
    font-size: 1.4rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .small-banners {
    margin: 30px auto 25px;
    padding: 0 15px;
  }

  .banners-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .banner-image-container {
    height: 140px;
  }

  .banner-content {
    padding: 15px;
  }

  .banner-title {
    font-size: 1.1rem;
  }

  .banner-subtitle {
    font-size: 0.85rem;
  }

  .banner-badge {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .section-separator {
    margin: 30px auto;
    padding: 0 15px;
  }

  .separator-icon {
    margin: 0 12px;
    font-size: 1.3rem;
  }
}

/* Small Tablets and Large Mobile */
@media (max-width: 600px) {
  .small-banners {
    margin: 25px auto 20px;
  }

  .banners-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .small-banner {
    height: auto;
  }

  .banner-image-container {
    height: 180px;
  }

  .banner-content {
    padding: 16px;
  }

  .banner-title {
    font-size: 1.15rem;
    margin-bottom: 6px;
  }

  .banner-subtitle {
    font-size: 0.9rem;
  }

  .section-separator {
    margin: 25px auto;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  .small-banners {
    padding: 0 10px;
  }

  .banners-grid {
    gap: 12px;
  }

  .banner-image-container {
    height: 160px;
  }

  .banner-content {
    padding: 14px;
  }

  .banner-title {
    font-size: 1.1rem;
    margin-bottom: 5px;
  }

  .banner-subtitle {
    font-size: 0.85rem;
  }

  .banner-badge {
    top: 10px;
    right: 10px;
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  .section-separator {
    margin: 20px auto;
    padding: 0 10px;
  }

  .separator-icon {
    margin: 0 10px;
    font-size: 1.2rem;
  }
}

/* Very Small Mobile Devices */
@media (max-width: 360px) {
  .banner-image-container {
    height: 140px;
  }

  .banner-content {
    padding: 12px;
  }

  .banner-title {
    font-size: 1.05rem;
  }

  .banner-subtitle {
    font-size: 0.8rem;
  }

  .section-separator {
    margin: 18px auto;
  }

  .separator-icon {
    font-size: 1.1rem;
  }
}


/* ===========================
   RESPONSIVE FOOTER
   =========================== */
footer {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
  padding: 20px 15px;
  border-top: 1.5px solid rgba(249, 170, 65, 0.15);
  margin-top: 20px;
  border-top: none;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-main {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-slow);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  min-height: 44px; /* Touch target size */
  text-align: center;
}

.footer-link:hover,
.footer-link:focus {
  color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  outline: none;
}

.footer-link i {
  color: var(--accent);
  transition: transform var(--transition-slow);
  font-size: 1.1em;
}

.footer-link:hover i,
.footer-link:focus i {
  transform: scale(1.15);
}

.copyright {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* ===========================
   RESPONSIVE BREAKPOINTS
   =========================== */

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
  footer {
    padding: 18px 12px;
  }

  .footer-main {
    gap: 15px;
  }

  .footer-link {
    font-size: 0.95rem;
    padding: 7px 14px;
  }

  .copyright {
    font-size: 0.95rem;
  }
}

/* Standard tablets */
@media screen and (max-width: 768px) {
  footer {
    padding: 16px 10px;
  }

  .footer-main {
    gap: 12px;
    justify-content: center;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 8px 12px;
    gap: 6px;
  }

  .footer-link i {
    font-size: 1em;
  }

  .copyright {
    font-size: 0.9rem;
    max-width: 400px;
  }
}

/* Large phones and small tablets */
@media screen and (max-width: 640px) {
  footer {
    padding: 15px 8px;
  }

  .footer-main {
    flex-direction: column;
    gap: 10px;
  }

  .footer-link {
    font-size: 0.9rem;
    padding: 10px 16px;
    width: auto;
    min-width: 120px;
    justify-content: center;
  }

  .copyright {
    font-size: 0.85rem;
    max-width: 350px;
    padding: 0 10px;
  }
}

/* Standard phones */
@media screen and (max-width: 480px) {
  footer {
    padding: 12px 6px;
  }

  .footer-main {
    gap: 8px;
  }

  .footer-link {
    font-size: 0.85rem;
    padding: 8px 14px;
    min-width: 110px;
  }

  .footer-link i {
    font-size: 0.9em;
  }

  .copyright {
    font-size: 0.8rem;
    max-width: 300px;
    line-height: 1.4;
  }
}

/* Small phones */
@media screen and (max-width: 360px) {
  footer {
    padding: 10px 5px;
  }

  .footer-main {
    gap: 6px;
  }

  .footer-link {
    font-size: 0.8rem;
    padding: 6px 12px;
    min-width: 100px;
    gap: 4px;
  }

  .footer-link i {
    font-size: 0.85em;
  }

  .copyright {
    font-size: 0.75rem;
    max-width: 280px;
    padding: 0 8px;
  }
}

/* High DPI displays */
@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
  .footer-link {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape orientation on mobile */
@media screen and (max-width: 768px) and (orientation: landscape) {
  .footer-main {
    flex-direction: row;
    gap: 10px;
  }

  .footer-link {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .footer-link,
  .footer-link i {
    transition: none;
  }

  .footer-link:hover,
  .footer-link:focus {
    transform: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .footer-link {
    background: rgba(255, 255, 255, 0.08);
  }

  .footer-link:hover,
  .footer-link:focus {
    background: rgba(255, 255, 255, 0.12);
  }
}

/* Enhanced Buy On Button with Final Polish */
.buy-on-style {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #2d4a62, #1a3a4d);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18),
              0 2px 3px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 10px;
  width: 100%;
  border: 1px solid #2a4359;
  position: relative;
  overflow: hidden;
  margin-top: 14px;
  cursor: pointer;
  letter-spacing: 0.3px;
}

.buy-on-style:hover {
  background: linear-gradient(to bottom, #355b78, #23455c);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22),
              0 2px 4px rgba(255, 255, 255, 0.1) inset;
  transform: translateY(-2px);
  border-color: #3a6585;
}

.buy-on-style:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15),
              0 1px 2px rgba(255, 255, 255, 0.1) inset;
}

.buy-label {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.store-logo-wrapper {
  background: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  padding-left: 12px;
  margin-left: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.store-logo-wrapper img {
  height: 20px;
  max-width: 120px;
  object-fit: contain;
  filter: none;
  transition: transform 0.2s ease;
}

/* Add a subtle arrow to indicate external link */
.buy-on-style::after {
  content: "↗";
  font-size: 0.85rem;
  margin-left: 6px;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.buy-on-style:hover::after {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Add a subtle accent color highlight on hover */
.buy-on-style:hover .store-logo-wrapper {
  background: rgba(249, 170, 65, 0.15);
  border-left-color: rgba(249, 170, 65, 0.4);
  box-shadow: 0 1px 4px rgba(249, 170, 65, 0.25);
}

.buy-on-style:hover .store-logo-wrapper img {
  transform: scale(1.05);
}

/* Add a subtle shine effect on hover */
.buy-on-style::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.75s ease;
}

.buy-on-style:hover::before {
  left: 150%;
}

/* Focus state for accessibility */
.buy-on-style:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .buy-on-style {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .buy-label {
    font-size: 0.87rem;
  }

  .store-logo-wrapper {
    padding: 5px 10px;
    padding-left: 10px;
  }

  .store-logo-wrapper img {
    height: 18px;
    max-width: 100px;
  }
}

@media (max-width: 480px) {
  .buy-on-style {
    padding: 9px 12px;
    border-radius: 8px;
  }

  .store-logo-wrapper {
    padding: 4px 8px;
    padding-left: 8px;
    margin-left: 6px;
    border-radius: 6px;
  }

  .buy-on-style::after {
    display: none;
  }
}

