/* ============================================
   OnlinePharmacyPK — Complete Design System
   ============================================ */

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-bg: #dcfce7;
  --bg: #f9fafb;
  --white: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .06);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, .1);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, .12);
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 9999px;
  --transition: .3s cubic-bezier(.4, 0, .2, 1);
  --sale: #ef4444;
  --limited: #f59e0b;
  --font: 'Poppins', sans-serif;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none
}

img {
  max-width: 100%;
  display: block
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none
}

/* ─── Utility ─── */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px
}

.section {
  padding: 70px 0
}

.section-title {
  text-align: center;
  font-size: 1.85rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text)
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 40px
}

.section-header-flex {
  display: flex !important;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 30px;
  gap: 20px;
}

.section-header-flex .section-title,
.section-header-flex .section-subtitle {
  text-align: left;
  margin-bottom: 0;
}

.section-search {
  position: relative;
  width: 100%;
  max-width: 320px;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  transition: var(--transition);
}

.section-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
}

.section-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 4px 8px;
  font-size: .9rem;
}

.section-search i {
  color: var(--text-light);
  font-size: .9rem;
}

@media (max-width: 768px) {
  .section-header-flex {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .section-header-flex .section-title,
  .section-header-flex .section-subtitle {
    text-align: center;
  }
  .section-search {
    max-width: 100%;
  }
}

/* ============================================ NAVBAR ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow)
}

.navbar .container {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  position: relative;
  transition: var(--transition);
  max-width: 100% !important;
  padding: 0 10px !important; /* Move logo further left */
}

@media (max-width: 900px) {
  .navbar .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary)
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 8px
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px
}

.nav-menu>li {
  position: relative
}

.nav-menu>li>a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  white-space: nowrap
}

.nav-menu>li>a:hover,
.nav-menu>li>a.active {
  color: var(--primary);
  background: var(--primary-bg)
}

/* ─── Dropdown ─── */
.dropdown {
  position: relative
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: var(--transition);
  z-index: 100;
  padding-top: 12px;
}

/* Bridge the hover gap */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 14px;
}

.dropdown:hover>.dropdown-menu,
.dropdown.open>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  position: relative
}

.dropdown-menu li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  font-size: .86rem;
  color: var(--text);
  transition: var(--transition);
}

.dropdown-menu li a:hover {
  background: var(--primary-bg);
  color: var(--primary)
}

.dropdown-menu li a i {
  font-size: .6rem;
  opacity: .4
}

/* Sub-dropdown */
.sub-dropdown-menu {
  position: absolute;
  top: -8px;
  left: 100%;
  min-width: 200px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  transition: var(--transition);
  z-index: 101;
}

.dropdown-menu li::after {
  content: '';
  position: absolute;
  top: 0;
  left: 100%;
  width: 10px;
  height: 100%;
}

.dropdown-menu li:hover>.sub-dropdown-menu,
.dropdown-menu li.open>.sub-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Nav icons */
.nav-icons {
  display: flex;
  align-items: center;
  gap: 6px
}

/* Nav Search Bar */
.nav-search {
  position: relative;
  flex: 1;
  max-width: 400px;
  margin: 0 20px;
  display: flex;
  align-items: center;
  background: var(--bg);
  border-radius: var(--radius-full);
  padding: 4px 16px;
  border: 1px solid var(--border);
  transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

.nav-search:focus-within,
.nav-search.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-bg);
  background: var(--white);
}

@media (max-width: 900px) {
  .nav-search {
    flex: none;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    border-radius: 50%;
    justify-content: center;
    overflow: hidden;
  }

  .nav-search.active {
    position: absolute;
    right: 60px;
    width: calc(100% - 120px);
    background: var(--white);
    border: 1px solid var(--primary);
    border-radius: var(--radius-full);
    padding: 0 16px;
    z-index: 10;
  }

  .nav-search input {
    display: none;
    width: 0;
  }

  .nav-search.active input {
    display: block;
    width: 100%;
    opacity: 1;
  }
  
  .nav-icons {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .nav-logo span {
    display: none;
  }
}

.nav-search input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 4px 8px;
  font-size: .88rem;
  font-family: inherit;
  color: var(--text);
}

.nav-search button {
  background: transparent;
  color: var(--text-muted);
  font-size: .95rem;
  padding: 4px;
  transition: var(--transition);
}

.nav-search button:hover {
  color: var(--primary);
}

@media (max-width: 900px) {
  /* Removed old order shifts to use natural DOM order with search before hamburger */
}

.nav-icon-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 1.15rem;
  color: var(--text);
  transition: var(--transition);
}

.nav-icon-btn:hover {
  background: var(--primary-bg);
  color: var(--primary)
}

.nav-icon-btn .badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: none; /* Strictly hidden by default */
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  background: none;
  padding: 4px
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition)
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px)
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px)
}

/* ============================================ HERO ============================================ */
/* ============================================ HERO ============================================ */
.hero {
  position: relative;
  height: calc(100vh - 80px); /* Fill screen height minus nav */
  max-height: 1030px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #f0fdf4;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/hero.png');
  background-size: 100% 100%; /* Fill entire area */
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 1;
}

.hero-overlay {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  width: 100%;
  max-width: 700px; /* Default back to larger size for PC screens */
  margin: 0; 
  margin-right: auto; 
  margin-left: 13%; /* Shift right to align with the text of the logo instead of the far-left edge */
  padding-top: 11vh; /* Moved higher up, closer to the logo icon */
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Left align like the image */
  gap: 10px;
}

.hero-text {
  color: #ffffff;
  animation: fadeUp 1s ease-out forwards;
  text-align: left;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  line-height: 1.2;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.hero-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff; /* Make exact white to match reference */
  text-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.hero-text p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.95;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-cta-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px; /* Snug padding */
  background: #ffffff;
  border: none;
  border-radius: 50px;
  color: #1f2937;
  font-size: 0.95rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.hero-cta-btn i {
  font-size: 1.1rem;
  color: var(--primary); /* Reverted to green */
  width: 20px;
  text-align: center;
}

.hero-cta-btn:hover {
  background: #f9fafb;
  transform: translateX(8px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.hero-cta-btn:hover i {
  transform: scale(1.1);
}

/* ═════════ FLOATING BADGES ═════════ */
.floating-badge {
  position: absolute;
  background: white;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 6px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 3;
  animation: floatUpDown 4s ease-in-out infinite;
}

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

.badge-icon {
  background: var(--primary); /* Reverted to green */
  color: white;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.8rem;
}

.badge-premium {
  top: 30%;
  right: 5%;
  animation-delay: 0s;
}

.badge-express {
  top: 50%;
  right: 40%; /* Shifted left to avoid overlapping the hospital building */
  animation-delay: 1s;
}

.badge-mini {
  bottom: 20%;
  right: 15%;
  animation-delay: 2.5s;
}

@media(max-width: 1440px) {
  .hero-content {
    max-width: 550px; /* Restrict width on laptop to avoid overlapping graphics */
  }
  .badge-express {
    right: 45%; /* Shift further left away from graphics onto empty space */
  }
}

@media(max-width: 900px) {
  .floating-badge { display: none; } /* Hide badges on very small mobile if desired, or scale them down */
}

/* Page Banner (sub-pages) */
.page-banner {
  background: linear-gradient(135deg, #064e3b 0%, #047857 100%);
  padding: 50px 0;
  text-align: center;
  color: #fff
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px
}

.page-banner p {
  font-size: 1rem;
  opacity: .8;
  max-width: 500px;
  margin: 0 auto
}

/* Banner Search Large (products.html) */
.banner-search-large {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 8px;
  border-radius: var(--radius-full);
  display: flex;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.banner-search-large input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 15px 30px;
  font-size: 1.1rem;
  color: var(--text);
}

.banner-search-large button {
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  padding: 0 40px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.banner-search-large button:hover {
  background: #15803d;
  transform: scale(0.98);
}

/* Price Filter Card */
.price-filter-card {
  max-width: 500px;
  margin: -40px auto 40px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 15px 25px;
  box-shadow: var(--shadow-md);
  position: relative;
  z-index: 5;
}

.price-filter-flex {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.price-filter-flex .filter-label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}

.price-filter-flex .price-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.price-filter-flex .currency {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
}

.price-filter-flex input {
  width: 55px;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.apply-filter-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: var(--transition);
}

.apply-filter-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .price-filter-flex {
    flex-direction: column;
    gap: 10px;
  }
  .banner-search-large {
    border-radius: var(--radius);
  }
}

/* ============================================ SLIDER SYSTEM ============================================ */
.slider-container {
  position: relative;
  width: 100%;
}

.slider-container.horizontal {
  display: flex;
  align-items: center;
  gap: 15px;
}

.slider-container.horizontal .categories-scroll,
.slider-container.horizontal .products-grid {
  flex: 1;
  overflow-x: hidden;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  scroll-behavior: smooth;
  gap: 20px;
}

.slider-container.horizontal .products-grid .product-card {
  flex: 0 0 280px;
  /* Fixed width for slider items */
  min-width: 280px;
}

.slider-container.horizontal .products-grid .product-card {
  flex: 0 0 calc(25% - 15px);
  min-width: 250px;
}

.slider-container.vertical {
  display: flex;
  height: 480px;
  /* Fixed height for vertical slider */
  overflow: hidden;
  position: relative;
  gap: 20px;
}

.slider-container.vertical .products-grid {
  display: flex;
  flex-direction: column;
  transition: transform 0.5s ease;
  width: 100%;
  gap: 20px;
}

.slider-container.vertical .product-card {
  display: flex;
  align-items: center;
  height: 140px;
  /* Smaller cards for vertical */
}

.slider-container.vertical .product-card .product-img {
  width: 140px;
  height: 100%;
}

.slider-container.vertical .product-card .product-info {
  flex: 1;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-sm);
  opacity: 1;
  visibility: visible;
}

.slider-btn:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 10px 20px rgba(22, 163, 74, 0.2);
}

.slider-btn.prev {
  left: -20px;
  display: flex;
}

.slider-btn.next {
  right: -20px;
  display: flex;
}

/* Handle display:none transition manually if needed, or rely on JS */
[style*="display: none"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.slider-controls-vertical {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

/* See More Button */
.see-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  border: 1.5px solid var(--primary);
}

.see-more-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateX(5px);
}

/* ============================================ CATEGORIES ============================================ */
.categories-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  max-width: 1000px;
  margin: 0 auto;
}

/* Oval Category Pills */
.category-pill {
  flex: 0 0 auto;
  padding: 12px 30px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.category-pill:hover {
  background: var(--white);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(22, 163, 74, 0.1);
}

.category-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.3);
}

/* Filter Pills inside sections */
.category-filter-pills {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0 25px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.category-filter-pills::-webkit-scrollbar {
  display: none;
}

.filter-pill {
  flex: 0 0 auto;
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.filter-pill:hover, .filter-pill.active {
  background: var(--primary-bg);
  border-color: var(--primary);
  color: var(--primary);
}

/* See More Alt Button */
.see-more-btn-alt {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 36px;
  background: var(--primary-bg);
  color: var(--primary);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: var(--transition);
  border: 1px solid var(--primary);
  cursor: pointer;
}

.see-more-btn-alt:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(22, 163, 74, 0.2);
}

/* Shine Effect */
.category-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: 0.6s;
  pointer-events: none;
}

.category-card:hover::after {
  opacity: 1;
  top: -20%;
  left: -20%;
}

.category-card h4 {
  padding: 14px 10px;
  font-size: .86rem;
  font-weight: 600;
  color: var(--text)
}

/* ============================================ PRODUCT CARDS ============================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative
}

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

.product-wishlist {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: 50%;
  box-shadow: var(--shadow);
  color: var(--text-light);
  font-size: 1rem;
  transition: var(--transition);
}

.product-wishlist:hover,
.product-wishlist.active {
  color: var(--sale)
}

.product-img {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: var(--bg)
}

.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition)
}

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

.product-hover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: var(--transition);
}

.product-card:hover .product-hover {
  opacity: 1
}

.product-hover-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 160px;
  padding: 10px 20px;
  background: var(--white);
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: none;
}

.product-hover-btn i {
  font-size: 1rem;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-hover-btn span {
  display: inline-block;
  max-width: 120px;
  overflow: hidden;
  white-space: nowrap;
  transition: max-width 0.35s ease, opacity 0.3s ease;
}

.product-hover-btn:hover {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.05);
}

.product-hover-btn:hover span {
  max-width: 0;
  opacity: 0;
}

.product-hover-btn:hover i {
  transform: scale(1.35);
}

.product-info {
  padding: 18px
}

.product-info h4 {
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text)
}

.product-info .product-category {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 8px
}

.product-price {
  display: flex;
  align-items: center;
  gap: 8px
}

.product-price .current {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary)
}

.product-price .original {
  font-size: .85rem;
  color: var(--text-light);
  text-decoration: line-through
}

.product-price .discount-badge {
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 8px;
  background: rgba(239, 68, 68, .1);
  color: var(--sale);
  border-radius: var(--radius-full)
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 5;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px
}

.product-badge.sale {
  background: var(--sale);
  color: #fff
}

.product-badge.limited {
  background: var(--limited);
  color: #fff
}

/* ============================================ PROFILES (Doctor / Pharmacist) ============================================ */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px
}

.profile-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  padding: 30px 20px
}

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

.profile-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
  box-shadow: 0 4px 14px rgba(22, 163, 74, .2);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.profile-card h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px
}

.profile-card .specialty {
  font-size: .82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2px
}

.profile-card .qualification {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 6px
}

.profile-card .experience {
  font-size: .8rem;
  color: var(--text-muted);
  margin-bottom: 12px
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: .78rem;
  font-weight: 600;
  margin-bottom: 16px
}

.availability-tag.online {
  background: #dcfce7;
  color: #16a34a
}

.availability-tag.offline {
  background: #fee2e2;
  color: #ef4444
}

.availability-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 1.5s infinite
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .4
  }
}

.book-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: .85rem;
  font-weight: 600;
  transition: var(--transition);
}

.book-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, .3)
}

/* Filter bar */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 36px
}

.filter-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .84rem;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--white);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg)
}

/* ============================================ DEALS ============================================ */
.deals-section {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%)
}

/* ============================================ BRANDS MARQUEE ============================================ */
.brands-marquee-container {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 20px 0;
}

.brands-scroll {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.brands-marquee-container:hover .brands-scroll {
  animation-play-state: paused;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}

.brand-logo {
  flex: 0 0 auto;
  width: 180px;
  height: 100px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition);
}

.brand-logo:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  transform: translateY(-5px);
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: var(--transition);
}

.brand-logo:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ============================================ FLOATING CALL ============================================ */
.floating-call {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 1.4rem;
  box-shadow: 0 4px 20px rgba(22, 163, 74, .4);
  transition: var(--transition);
  animation: float-pulse 2s ease-in-out infinite;
}

.floating-call:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(22, 163, 74, .55)
}

@keyframes float-pulse {

  0%,
  100% {
    transform: translateY(0)
  }

  50% {
    transform: translateY(-6px)
  }
}

/* ============================================ CART SIDEBAR ============================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition)
}

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

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  max-width: 90vw;
  height: 100vh;
  background: var(--white);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transition: .4s cubic-bezier(.4, 0, .2, 1);
  box-shadow: -4px 0 30px rgba(0, 0, 0, .15);
}

.cart-sidebar.active {
  right: 0
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border)
}

.cart-header h3 {
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px
}

.cart-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.cart-close:hover {
  background: #fee2e2;
  color: var(--sale)
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px
}

.cart-empty {
  text-align: center;
  padding: 60px 0;
  color: var(--text-muted)
}

.cart-empty i {
  font-size: 3rem;
  margin-bottom: 16px;
  display: block;
  color: var(--text-light)
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border)
}

.cart-item-img {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg);
  flex-shrink: 0
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.cart-item-details {
  flex: 1
}

.cart-item-details h4 {
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 4px
}

.cart-item-details .cart-item-price {
  font-size: .85rem;
  color: var(--primary);
  font-weight: 600
}

.cart-qty {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden
}

.cart-qty button {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  font-size: .85rem;
  color: var(--text);
  transition: var(--transition)
}

.cart-qty button:hover {
  background: var(--primary-bg);
  color: var(--primary)
}

.cart-qty span {
  width: 32px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600
}

.cart-item-remove {
  background: none;
  color: var(--text-light);
  font-size: .95rem;
  transition: var(--transition);
  padding: 4px
}

.cart-item-remove:hover {
  color: var(--sale)
}

.cart-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border)
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 16px
}

.cart-total .amount {
  color: var(--primary);
  font-size: 1.2rem
}

.checkout-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
}

.checkout-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(22, 163, 74, .3)
}

/* ============================================ MODALS ============================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  padding: 20px;
}

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

.modal {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-width: 540px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.92) translateY(20px);
  transition: .35s cubic-bezier(.4, 0, .2, 1);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0)
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border)
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700
}

.modal-close {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.modal-close:hover {
  background: #fee2e2;
  color: var(--sale)
}

.modal-body {
  padding: 24px
}

/* Quick View */
.qv-image {
  height: 240px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 20px
}

.qv-image img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.qv-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 6px
}

.qv-category {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 12px
}

.qv-desc {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px
}

.qv-price {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px
}

.qv-price .current {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary)
}

.qv-price .original {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through
}

.qv-add-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.qv-add-btn:hover {
  background: var(--primary-dark)
}

/* Booking */
.booking-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px
}

.booking-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--primary)
}

.booking-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.booking-info h4 {
  font-size: 1rem;
  font-weight: 700
}

.booking-info p {
  font-size: .82rem;
  color: var(--text-muted)
}

.time-slots-label {
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 12px
}

.time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px
}

.time-slot {
  padding: 8px 18px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  color: var(--text);
  background: var(--white);
  transition: var(--transition);
  cursor: pointer;
}

.time-slot:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg)
}

.time-slot.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff
}

.confirm-booking-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition)
}

.confirm-booking-btn:hover {
  background: var(--primary-dark)
}

/* Upload Prescription */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  padding: 40px 20px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg);
  margin-bottom: 20px;
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--primary);
  background: var(--primary-bg)
}

.upload-zone i {
  font-size: 2.5rem;
  color: var(--text-light);
  margin-bottom: 12px;
  display: block
}

.upload-zone p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-bottom: 6px
}

.upload-zone span {
  font-size: .78rem;
  color: var(--text-light)
}

.upload-zone input[type="file"] {
  display: none
}

.upload-preview {
  margin-bottom: 20px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: none
}

.upload-preview img {
  width: 100%;
  max-height: 300px;
  object-fit: contain;
  background: var(--bg)
}

.upload-preview .file-name {
  padding: 10px;
  font-size: .85rem;
  color: var(--text-muted);
  background: var(--bg);
  text-align: center
}

.upload-submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.upload-submit-btn:hover {
  background: var(--primary-dark)
}

/* ============================================ FOOTER ============================================ */
.footer {
  background: #064e3b;
  color: rgba(255, 255, 255, .8);
  padding: 60px 0 0
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  padding-bottom: 40px
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  position: relative
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 30px;
  height: 2.5px;
  background: var(--primary-light);
  border-radius: 2px
}

.footer-col ul li a {
  display: block;
  padding: 5px 0;
  font-size: .88rem;
  color: rgba(255, 255, 255, .65);
  transition: var(--transition)
}

.footer-col ul li a:hover {
  color: #fff;
  padding-left: 6px
}

.footer-col p {
  font-size: .88rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, .65)
}

.footer-col .social-icons {
  display: flex;
  gap: 10px;
  margin-top: 14px
}

.footer-col .social-icons a {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .1);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  color: rgba(255, 255, 255, .7);
  transition: var(--transition);
}

.footer-col .social-icons a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-3px)
}

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: .82rem;
  color: rgba(255, 255, 255, .45)
}

/* ============================================ TOAST ============================================ */
.toast-container {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 10px
}

.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--white);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  font-size: .88rem;
  font-weight: 500;
  animation: toast-in .4s ease;
  min-width: 250px;
}

.toast.removing {
  animation: toast-out .3s ease forwards
}

.toast i {
  color: var(--primary);
  font-size: 1.1rem
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(60px)
  }

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

@keyframes toast-out {
  from {
    opacity: 1;
    transform: translateX(0)
  }

  to {
    opacity: 0;
    transform: translateX(60px)
  }
}

/* ============================================ RESPONSIVE ============================================ */
@media(max-width:900px) {
  .nav-menu {
    position: fixed;
    top: 68px;
    left: -100%;
    width: 280px;
    height: calc(100vh - 68px);
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 0;
    box-shadow: var(--shadow-lg);
    transition: .4s cubic-bezier(.4, 0, .2, 1);
    overflow-y: auto;
    z-index: 999;
  }

  .nav-menu.active {
    left: 0
  }

  .nav-menu>li>a {
    padding: 12px 14px;
    border-radius: var(--radius-sm)
  }

  .hamburger {
    display: flex
  }

  .dropdown::after {
    display: none
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--bg);
    border-radius: var(--radius-sm);
    margin: 4px 0 4px 12px;
    padding: 4px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .3s ease;
  }

  .dropdown.open>.dropdown-menu {
    max-height: 600px
  }

  .sub-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    background: var(--white);
    border-radius: var(--radius-sm);
    margin: 4px 0 4px 12px;
    padding: 4px 0;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height .3s ease;
  }

  .dropdown-menu li.open>.sub-dropdown-menu {
    max-height: 300px
  }

  .hero-content h1 {
    font-size: 1.8rem
  }

  .hero-ctas {
    flex-direction: column;
    align-items: center
  }

  .hero-cta-btn {
    width: 100%;
    max-width: 300px;
    justify-content: center
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px
  }

  .profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px
  }

  .footer-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px
  }
}

@media(max-width:600px) {
  .section {
    padding: 48px 0
  }

  .section-title {
    font-size: 1.45rem
  }

  .hero {
    min-height: 420px
  }

  .hero-content h1 {
    font-size: 1.5rem
  }

  .hero-content p {
    font-size: .92rem
  }

  .category-card {
    flex: 0 0 110px
  }

  .slider-btn {
    width: 30px;
    height: 30px;
    font-size: .7rem;
  }

  .slider-container.horizontal .products-grid .product-card {
    flex: 0 0 150px;
    min-width: 150px;
  }

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

  .product-img {
    height: 120px
  }

  .product-info {
    padding: 8px
  }

  .product-info h4 {
    font-size: .75rem;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .product-info .product-category {
    font-size: .7rem;
    margin-bottom: 4px;
  }

  .product-price .current {
    font-size: .9rem;
  }

  .product-price .original {
    font-size: .7rem;
  }

  .product-price .discount-badge {
    font-size: .6rem;
    padding: 1px 5px;
  }

  .profiles-grid {
    grid-template-columns: 1fr
  }

  .floating-call {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 1.2rem
  }

  .cart-sidebar {
    width: 85%;
    max-width: 320px;
    right: -100%;
  }

  .cart-sidebar.active {
    right: 0;
  }

  .banner-search-large {
    flex-direction: column;
    border-radius: 12px;
    padding: 10px;
  }

  .banner-search-large input {
    width: 100%;
    padding: 12px;
    border-radius: var(--radius-full);
    background: #f9fafb;
    margin-bottom: 8px;
  }

  .banner-search-large button {
    width: 100%;
    justify-content: center;
  }

  .price-filter-card {
    margin: 10px 15px;
  }

  .page-banner h1 {
    font-size: 1.6rem
  }
}

/* ============================================ FILTER BAR ============================================ */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
  padding: 10px;
}

.filter-btn {
  padding: 8px 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.filter-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}

.filter-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(22, 163, 74, .25);
}

/* Price Range Filter */
.price-range-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  background: var(--white);
  padding: 16px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: var(--shadow);
}

.price-range-filter span {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.price-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.price-input-group label {
  font-size: .75rem;
  font-weight: 700;
  color: var(--text-light);
  text-transform: uppercase;
}

.price-input-group input {
  width: 80px;
  border: none;
  background: transparent;
  outline: none;
  font-size: .9rem;
  font-weight: 600;
  color: var(--text);
}

.filter-btn-apply {
  padding: 8px 24px;
  background: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn-apply:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(22, 163, 74, .2);
}

@media (max-width: 600px) {
  .price-range-filter {
    flex-direction: column;
    width: 100%;
    gap: 15px;
  }
  .price-input-group {
    width: 100%;
    justify-content: space-between;
  }
  .price-input-group input {
    text-align: right;
  }
  .filter-btn-apply {
    width: 100%;
  }
}

/* ═════════ DETAIL PAGE BUTTON HOVER ═════════ */
.hero-cta-btn span {
  display: inline-block;
}

.hero-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.hero-cta-btn:hover i {
  transform: scale(1.15);
}

/* ═════════ RESPONSIVE: 325px – 1080px ═════════ */
@media (max-width: 1080px) {
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
  }
}

@media (max-width: 900px) {
  .navbar .container {
    flex-wrap: wrap;
    padding: 8px 12px !important;
    gap: 0;
    justify-content: space-between;
    align-items: center !important; /* Ensure vertical centering for Row 1 */
  }
  .nav-logo {
    order: 1;
    flex: initial;
    margin-right: auto;
    display: flex;
    align-items: center; /* Center image vertically */
    height: 42px; /* Match icon buttons height */
  }
  .nav-icons {
    order: 2;
    display: flex;
    flex-wrap: wrap; /* Allow search to wrap within icons container */
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 1;
    height: 42px; /* Match logo height on Row 1 */
  }
  .nav-icon-btn {
    order: 1;
  }
  .hamburger {
    order: 2;
    margin-left: 8px;
  }
  .nav-search {
    order: 3;
    width: 100%;
    margin: 12px 0 0 0 !important;
    max-width: 100% !important;
    height: 44px !important;
    display: flex !important;
    background: var(--bg) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-full) !important;
    padding: 0 16px !important;
    justify-content: flex-start !important;
    position: static !important;
  }
  .nav-search input {
    display: block !important;
    width: 100% !important;
    font-size: 0.9rem !important;
  }
  .nav-search button {
    display: block !important;
  }
}

/* Fix Horizontal Scroll from WhatsApp Float */
@media (max-width: 480px) {
  .floating-call {
    right: 25px !important; /* Moved further to avoid scrollbar */
    bottom: 25px !important;
  }
}

/* Sticky Header Behavior */
.navbar {
  transition: transform 0.4s ease-in-out !important; /* Smooth transition */
}
.navbar.header-hide {
  transform: translateY(-100%);
}

@media (max-width: 768px) {
  /* Hero Redesign: Green Background + Center Content */
  .hero {
    height: auto !important;
    min-height: 500px;
    padding: 80px 0 60px !important;
    background: #16a34a !important; /* Solid Green as requested */
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-bg {
    display: none !important;
  }
  .hero-content {
    margin: 0 !important;
    text-align: center !important;
    align-items: center !important;
    max-width: 100% !important;
    padding: 0 20px !important;
  }
  .hero-text {
    text-align: center !important;
  }
  .hero-text h1 {
    font-size: 2.2rem !important;
    margin-bottom: 15px !important;
  }
  .hero-text h2 {
    font-size: 1.1rem !important;
    margin-bottom: 25px !important;
  }
  .hero-text p {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 30px !important;
  }
  
  /* Buttons: Full Width + Stacked */
  .hero-ctas, .hero-cta-row {
    width: 100% !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
  .hero-cta-btn {
    width: 100% !important;
    justify-content: center !important;
    padding: 15px 20px !important;
    font-size: 1rem !important;
    border-radius: 12px !important;
  }
  
  /* Hide Floating Badges on Mobile */
  .badge-express, .badge-premium, .badge-mini {
    display: none !important;
  }

  /* Product Grid adjustments */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)) !important;
    gap: 12px !important;
  }
  .product-img {
    height: 160px;
  }
  .product-info {
    padding: 10px;
  }
  .product-info h4 {
    font-size: 0.82rem;
  }
  .product-hover-btn {
    min-width: 120px;
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.9rem !important;
  }
  .hero-text h2 {
    font-size: 0.95rem !important;
  }
  .hero {
    padding-top: 60px !important;
  }
  .section {
    padding: 40px 0;
  }
}

@media (max-width: 325px) {
  /* Extreme shrink for smallest screens */
  .hero-text h1 {
    font-size: 1.6rem !important;
  }
  .hero-text h2 {
    font-size: 0.85rem !important;
  }
  .hero-text p {
    font-size: 0.85rem !important;
  }
  .hero-cta-btn {
    padding: 12px 15px !important;
    font-size: 0.9rem !important;
  }
  .container {
    padding: 0 10px !important;
  }
}

/* ═════════ QUICK VIEW & PRODUCT DETAILS ═════════ */
.product-hover {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

#quickview-modal .modal-body,
#order-modal .modal-body {
  padding: 20px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}
.order-form input {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  width: 100%;
}
.order-form button {
  padding: 14px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
  margin-top: 10px;
}
.order-form button:hover {
  background: var(--primary-dark);
}

@media (max-width: 768px) {
  .product-details-layout {
    grid-template-columns: 1fr !important;
    padding: 20px !important;
  }
  .pd-info h1 {
    font-size: 2rem !important;
  }
}