/* ============================================
   MedCart Kenya - Main Stylesheet
   ============================================ */

@import url('variables.css');

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--color-body);
  background-color: var(--color-bg);
  min-height: 100vh;
}

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

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

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

input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-heading);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); font-weight: var(--font-weight-semibold); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-body);
}

small {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
}

/* ---- Layout ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}

.section {
  padding: 48px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
}

.section-header h2 {
  margin-bottom: 0;
  font-size: var(--font-size-2xl);
}

.section-header a {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: #007A3D;
  white-space: nowrap;
}

/* ---- Grid Utilities ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}

.btn-primary {
  background-color: #008C45;
  color: var(--color-white);
  border-color: #008C45;
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  box-shadow: 0 4px 14px rgba(0, 166, 81, 0.25);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-accent {
  background-color: #C73E00;
  color: var(--color-white);
  border-color: #C73E00;
}

.btn-accent:hover {
  background-color: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--font-size-base);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-out-of-stock {
  background: #E2E8F0;
  color: #94A3B8;
  border: none;
  cursor: not-allowed;
  font-weight: 600;
}

/* ---- Form Inputs ---- */
.form-group {
  margin-bottom: var(--space-4);
}

.form-label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-heading);
  margin-bottom: var(--space-2);
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  color: var(--color-heading);
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.form-input::placeholder {
  color: var(--color-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--font-size-sm);
}

.form-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: var(--font-weight-semibold);
  border-radius: 20px;
  line-height: 1;
  white-space: nowrap;
}

.badge-sale {
  background-color: #E55A2B;
  color: var(--color-white);
}

.badge-rx {
  background-color: var(--color-rx);
  color: var(--color-white);
}

.badge-in-stock {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.badge-out-of-stock {
  background-color: #F1F5F9;
  color: var(--color-muted);
}

/* ---- Flash Messages ---- */
.flash-message {
  padding: var(--space-3) var(--space-4);
  border-radius: 8px;
  margin-bottom: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.flash-success {
  background-color: var(--color-success-light);
  color: var(--color-success);
  border: 1px solid rgba(0, 166, 81, 0.2);
}

.flash-error {
  background-color: var(--color-error-light);
  color: var(--color-error);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.flash-warning {
  background-color: var(--color-warning-light);
  color: #92400E;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

/* ==================================
   TOP BAR
   ================================== */
.top-bar {
  background-color: #006432;
  color: var(--color-white);
  font-size: 12px;
  padding: 6px 0;
}

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

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.top-bar-right {
  display: none;
}

.top-bar-right a {
  color: white;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s;
}

.top-bar-right a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.top-bar-sep {
  opacity: 0.4;
  margin: 0 2px;
}

@media (min-width: 768px) {
  .top-bar-right {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

/* ==================================
   HEADER & NAVIGATION
   ================================== */
.site-header {
  background-color: var(--color-secondary);
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-cross {
  display: flex;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-med {
  color: #FFFFFF;
}

.logo-cart {
  color: #4ADE80;
}

.logo-sub {
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
  font-weight: 400;
}

.logo:hover .logo-med { color: #E8F5E9; }
.logo:hover .logo-cart { color: #86EFAC; }

.logo-mobile .logo-name {
  font-size: 22px;
}

.logo-mobile .logo-med {
  color: var(--color-secondary);
}

.logo-mobile .logo-cart {
  color: var(--color-primary);
}

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

.header-search-form {
  display: flex;
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,0.15);
  background: white;
  transition: border-color 0.2s;
}

.header-search-form:focus-within {
  border-color: var(--color-primary);
}

.header-search-form input {
  flex: 1;
  padding: 10px 16px;
  border: none;
  outline: none;
  font-size: 14px;
  min-width: 0;
  background: transparent;
  color: var(--color-heading);
}

.header-search-form input::placeholder {
  color: #94A3B8;
}

.header-search-form button {
  padding: 10px 24px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background-color 0.2s;
  white-space: nowrap;
}

.header-search-form button:hover {
  background-color: var(--color-primary-dark);
}

@media (min-width: 768px) {
  .header-search { display: block; }
}

/* ---- Header Actions ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-contact {
  display: none;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  margin-right: 8px;
}

.header-contact-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-contact-text small {
  font-size: 10px;
  color: rgba(255,255,255,0.6);
}

.header-contact-text strong {
  font-size: 13px;
  color: white;
  font-weight: 600;
}

@media (min-width: 1024px) {
  .header-contact { display: flex; }
}

.header-icon-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 10px;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding: 4px 8px;
}

.header-icon-link:hover {
  color: white;
}

.header-icon-link svg {
  stroke: currentColor;
}

.header-cart-link {
  position: relative;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -2px;
  background-color: #C73E00;
  color: var(--color-white);
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 2px solid var(--color-secondary);
}

/* ---- Hamburger (mobile) ---- */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.2s;
}

@media (min-width: 768px) {
  .hamburger { display: none; }
}

/* ---- Main Navigation ---- */
.main-nav {
  background-color: white;
  border-bottom: 1px solid var(--color-border);
  display: none;
}

@media (min-width: 768px) {
  .main-nav { display: block; }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 12px 18px;
  color: var(--color-heading);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background-color 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link svg {
  flex-shrink: 0;
  opacity: 0.5;
}

.nav-link:hover svg {
  opacity: 1;
  stroke: var(--color-primary);
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(0, 166, 81, 0.04);
}

.nav-link-highlight {
  color: #C73E00;
  font-weight: 600;
}

.nav-link-highlight:hover {
  color: var(--color-accent-dark);
}

.nav-caret {
  font-size: 10px;
  opacity: 0.5;
}

.nav-dropdown-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 400;
}

/* ---- Search Autocomplete ---- */
.search-autocomplete {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: var(--z-dropdown);
  margin-top: 4px;
  display: none;
  max-height: 400px;
  overflow-y: auto;
}

.search-autocomplete.active {
  display: block;
}

.autocomplete-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-decoration: none;
  color: var(--color-heading);
}

.autocomplete-item:hover {
  background-color: var(--color-primary-light);
  color: var(--color-heading);
}

.autocomplete-item img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

.autocomplete-item-info {
  flex: 1;
  min-width: 0;
}

.autocomplete-item-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.autocomplete-item-price {
  font-size: var(--font-size-xs);
  color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
}

/* ---- Header Actions ---- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-action-link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-body);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: color 0.2s ease;
  position: relative;
}

.header-action-link:hover {
  color: var(--color-primary);
}

.cart-label {
  font-size: 14px;
  font-weight: 500;
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background-color: #C73E00;
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ---- Mobile Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--color-heading);
  border-radius: 2px;
  transition: all 0.2s ease;
}

.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);
}

/* ---- Main Navigation ---- */
.main-nav {
  background-color: #FFFFFF;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  height: 44px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: 12px 20px;
  color: var(--color-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background-color 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-primary);
  background-color: rgba(0, 166, 81, 0.05);
}

.nav-link.active {
  color: var(--color-primary);
}

/* ---- Category Dropdown ---- */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 260px;
  z-index: var(--z-dropdown);
  display: none;
  padding: 8px 0;
}

.nav-item:hover .nav-dropdown {
  display: block;
}

.nav-dropdown-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 16px;
  color: var(--color-heading);
  font-size: 14px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.nav-dropdown-item:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.nav-dropdown-item .cat-icon {
  font-size: var(--font-size-lg);
  width: 24px;
  text-align: center;
}

/* ---- Mobile Navigation Overlay ---- */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: var(--z-overlay);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 300px;
  max-width: 85vw;
  background-color: white;
  z-index: var(--z-modal);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--color-body);
  cursor: pointer;
  background: none;
  border: none;
}

.mobile-nav-list {
  padding: var(--space-4);
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  color: var(--color-heading);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid var(--color-border-light);
  text-decoration: none;
}

.mobile-nav-link:hover {
  color: var(--color-primary);
}

.mobile-search {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.mobile-search .search-bar {
  width: 100%;
}

/* ==================================
   HERO BANNER SLIDESHOW
   ================================== */
.hero-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  width: 100%;
}

.slide {
  min-width: 100%;
  color: white;
  overflow: hidden;
}

.slide-inner {
  display: flex;
  align-items: center;
  min-height: 280px;
  padding-top: 32px;
  padding-bottom: 32px;
  gap: 20px;
}

.slide-content {
  flex: 1;
  min-width: 0;
  z-index: 2;
}

.slide-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: white;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: 0.3px;
  border: 1px solid rgba(255,255,255,0.2);
}

.slide-content h2 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 12px;
}

.slide-content p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.6;
  margin-bottom: 24px;
  max-width: 480px;
}

.slide-btn {
  display: inline-block;
  padding: 14px 32px;
  min-height: 48px;
  min-width: 48px;
  background: white;
  color: #1B3A5C;
  font-size: 14px;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slide-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.slide-image {
  display: none;
  flex-shrink: 0;
  position: relative;
}

.slide-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* Slider Arrows */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.2);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  backdrop-filter: blur(4px);
}

.slider-arrow:hover {
  background: rgba(255,255,255,0.35);
}

.slider-prev { left: 12px; }
.slider-next { right: 12px; }

/* Slider Dots */
.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.8);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s;
}

.slider-dot.active {
  background: white;
  border-color: white;
  width: 28px;
  border-radius: 5px;
}

/* Tablet+ */
@media (min-width: 768px) {
  .slide-inner {
    min-height: 340px;
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .slide-content h2 {
    font-size: 36px;
  }

  .slide-content p {
    font-size: 15px;
  }

  .slide-image {
    display: block;
    width: 380px;
  }

  .slider-arrow {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }

  .slider-prev { left: 20px; }
  .slider-next { right: 20px; }
}

/* Desktop */
@media (min-width: 1024px) {
  .slide-inner {
    min-height: 380px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .slide-content h2 {
    font-size: 42px;
  }

  .slide-image {
    width: 480px;
  }
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 64px 0 56px;
  }

  .hero-section h1 {
    font-size: 42px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-image {
    width: 420px;
  }

  .hero-features {
    gap: 28px;
  }
}

/* ==================================
   TRUST FEATURES STRIP
   ================================== */
.trust-strip {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  padding: 32px 0;
  background: white;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.trust-icon {
  flex-shrink: 0;
  color: var(--color-primary);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trust-text strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.3;
}

.trust-text span {
  font-size: 12px;
  color: var(--color-body);
  line-height: 1.4;
}

@media (min-width: 768px) {
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px 20px;
  }
}

/* ==================================
   CATEGORY GRID (HOMEPAGE)
   ================================== */
.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: 24px 16px;
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  text-align: center;
  transition: all 0.2s ease;
  text-decoration: none;
  color: var(--color-heading);
}

.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.1);
  transform: translateY(-2px);
  color: var(--color-primary);
}

.category-card-icon {
  font-size: 36px;
  margin-bottom: 8px;
}

.category-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-heading);
}

.category-card-count {
  font-size: 11px;
  color: #64748B;
}

/* ---- Category Pills ---- */
.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  font-size: 13px;
  font-weight: var(--font-weight-medium);
  border-radius: 20px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.category-pill:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* ==================================
   PRODUCT CARD
   ================================== */
.product-card {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 166, 81, 0.12);
}

.product-card-badges {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 2;
  pointer-events: none;
}

.product-card-image {
  display: block;
  position: relative;
  background-color: #FFFFFF;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.product-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

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

.product-card-body {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card-brand {
  font-size: 11px;
  color: #007A3D;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.product-card-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-heading);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
  min-height: 42px;
  padding: 2px 0;
}

.product-card-title a {
  color: inherit;
  text-decoration: none;
}

.product-card-title a:hover {
  color: var(--color-primary);
}

.product-card-price {
  margin-bottom: 12px;
  margin-top: auto;
}

.price-current {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-secondary);
}

.price-sale { color: #C73E00 !important;
  color: #C73E00;
}

.price-original {
  font-size: 13px;
  color: #6B7280;
  text-decoration: line-through;
  margin-left: 8px;
}

.product-card-pharmacies {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-3);
}

.product-card-action {
  margin-top: auto;
}

.product-card-action .btn {
  width: 100%;
  padding: 10px 8px;
  min-height: 44px;
  border-radius: 8px;
  background: #008C45;
  color: white;
  font-size: 13px;
  font-weight: 600;
  border: none;
  transition: background 0.2s ease;
}

.product-card-action .btn:hover {
  background: var(--color-primary-dark);
}

/* ==================================
   PRODUCT GRID
   ================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ==================================
   BREADCRUMB
   ================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  font-size: var(--font-size-sm);
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  color: var(--color-muted);
}

.breadcrumb-item a {
  color: var(--color-body);
  transition: color 0.2s ease;
  text-decoration: none;
}

.breadcrumb-item a:hover {
  color: var(--color-primary);
}

.breadcrumb-separator {
  color: var(--color-muted);
  margin: 0 var(--space-1);
  font-size: var(--font-size-xs);
}

.breadcrumb-item.active {
  color: var(--color-heading);
  font-weight: var(--font-weight-medium);
}

/* ==================================
   PAGINATION
   ================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: var(--space-8) 0;
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-body);
  background-color: white;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

.pagination-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ==================================
   FILTER SIDEBAR
   ================================== */
.filter-sidebar {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  align-self: flex-start;
  max-height: calc(100vh - var(--header-height) - var(--space-8));
  overflow-y: auto;
}

.filter-section {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-4);
}

.filter-section-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.filter-section-title .toggle-icon {
  font-size: var(--font-size-xs);
  transition: transform 0.2s ease;
}

.filter-section.collapsed .filter-section-body {
  display: none;
}

.filter-section.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.filter-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.filter-list label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-body);
  cursor: pointer;
}

.filter-list label:hover {
  color: var(--color-primary);
}

.filter-list .count {
  margin-left: auto;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.filter-price-inputs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.filter-price-inputs input {
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-size: var(--font-size-sm);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  outline: none;
}

.filter-price-inputs input:focus {
  border-color: var(--color-primary);
}

.filter-price-inputs .sep {
  color: var(--color-muted);
  flex-shrink: 0;
}

.filter-actions {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

.filter-actions .btn {
  flex: 1;
}

.filter-clear {
  display: inline-block;
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-top: var(--space-2);
  text-decoration: underline;
}

.filter-clear:hover {
  color: var(--color-primary);
}

/* ==================================
   PRICE COMPARISON TABLE
   ================================== */
.price-comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.price-comparison-table th {
  background-color: var(--color-bg);
  padding: var(--space-3) var(--space-4);
  text-align: left;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-heading);
  border-bottom: 1px solid var(--color-border);
}

.price-comparison-table td {
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  border-bottom: 1px solid var(--color-border-light);
}

.price-comparison-table tr:nth-child(even) {
  background-color: var(--color-bg);
}

.price-comparison-table tr:last-child td {
  border-bottom: none;
}

.price-comparison-table .best-price {
  background-color: var(--color-success-light);
}

.price-comparison-table .best-price td {
  color: var(--color-primary-dark);
  font-weight: var(--font-weight-semibold);
}

.best-price-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  color: var(--color-success);
  background-color: var(--color-success-light);
  padding: var(--space-1) var(--space-2);
  border-radius: 4px;
}

/* ==================================
   CATEGORY PAGE LAYOUT
   ================================== */
.category-layout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.category-main {
  flex: 1;
  min-width: 0;
}

.category-main .product-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 768px) {
  .category-main .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .category-main .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-3);
}

.category-header h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: 0;
}

.category-count {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  font-weight: var(--font-weight-regular);
}

.sort-select {
  padding: 8px 16px;
  font-size: 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background-color: white;
  color: var(--color-heading);
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.sort-select:focus {
  border-color: var(--color-primary);
}

/* ==================================
   PRODUCT PAGE
   ================================== */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  padding: var(--space-8) 0;
}

.product-image-main {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.product-image-main img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-info h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-2);
}

.product-brand-link {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  display: block;
}

.product-brand-link a {
  color: var(--color-primary);
}

.product-price-block {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background-color: var(--color-bg);
  border-radius: 12px;
}

.product-price-current {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
}

.product-price-sale {
  color: #C73E00;
}

.product-price-original {
  font-size: var(--font-size-lg);
  color: var(--color-muted);
  text-decoration: line-through;
  margin-left: var(--space-3);
}

.product-price-savings {
  font-size: var(--font-size-sm);
  color: #C73E00;
  font-weight: var(--font-weight-semibold);
  margin-top: var(--space-1);
}

.product-summary {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 20px;
  padding: 14px 16px;
  background: #F8FAFB;
  border-left: 3px solid var(--color-primary);
  border-radius: 0 8px 8px 0;
}

.product-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.product-stock {
  margin-bottom: 0;
}

.product-add-to-cart {
  display: flex;
  gap: var(--space-3);
}

.product-add-to-cart .btn {
  flex: 1;
  padding: var(--space-4) var(--space-6);
  min-height: 48px;
  font-size: var(--font-size-base);
}

/* Trust badges row */
.product-trust {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
  flex-wrap: wrap;
}

.product-trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--color-body);
  font-weight: 500;
}

/* ---- Product Tabs ---- */
.product-tabs-section {
  margin-top: 48px;
  margin-bottom: 48px;
}

.product-tabs-nav {
  display: flex;
  border-bottom: 2px solid var(--color-border);
  gap: 0;
  overflow-x: auto;
}

.product-tab {
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-body);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
  margin-bottom: -2px;
}

.product-tab:hover {
  color: var(--color-primary);
}

.product-tab.active {
  color: var(--color-secondary);
  border-bottom-color: var(--color-primary);
}

.product-tab-content {
  display: none;
  padding: 32px 0;
}

.product-tab-content.active {
  display: block;
}

/* Tab: Description */
.tab-description-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 16px;
  margin-top: 32px;
}

.tab-description-body h3:first-child {
  margin-top: 0;
}

.tab-description-body h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 12px;
}

.desc-para {
  font-size: 15px;
  line-height: 1.85;
  color: var(--color-body);
  margin-bottom: 16px;
  max-width: 720px;
}

/* Key Features list */
.desc-features {
  background: var(--color-primary-light);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px 0;
  max-width: 720px;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 640px) {
  .features-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-heading);
  font-weight: 500;
  line-height: 1.4;
}

.features-list li svg {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Order note */
.desc-order-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F0F9FF;
  border: 1px solid #BAE6FD;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  max-width: 720px;
}

.desc-order-note svg {
  flex-shrink: 0;
  color: #0284C7;
  margin-top: 2px;
}

.desc-order-note p {
  font-size: 13px;
  color: #0C4A6E;
  line-height: 1.6;
  margin: 0;
}

.product-specs-table {
  width: 100%;
  max-width: 500px;
  border-collapse: collapse;
}

.product-specs-table tr {
  border-bottom: 1px solid var(--color-border);
}

.product-specs-table td {
  padding: 10px 0;
  font-size: 14px;
}

.product-specs-table td:first-child {
  color: var(--color-body);
  font-weight: 500;
  width: 140px;
}

.product-specs-table td:last-child {
  color: var(--color-heading);
}

.product-specs-table a {
  color: var(--color-primary);
  font-weight: 500;
}

/* Tab: Delivery */
.delivery-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.delivery-option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #F8FAF9;
  border-radius: 10px;
  border: 1px solid var(--color-border);
}

.delivery-option-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 8px;
}

.delivery-option strong {
  display: block;
  font-size: 14px;
  color: var(--color-heading);
  margin-bottom: 4px;
}

.delivery-option p {
  font-size: 13px;
  color: var(--color-body);
  line-height: 1.5;
  margin: 0;
}

.tab-delivery-body h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: 16px;
  margin-top: 0;
}

.returns-list {
  padding-left: 20px;
  max-width: 640px;
}

.returns-list li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-body);
  margin-bottom: 8px;
}

/* Tab: Reviews */
.reviews-empty {
  text-align: center;
  padding: 48px 20px;
  color: var(--color-body);
}

.reviews-empty h3 {
  font-size: 18px;
  color: var(--color-heading);
  margin: 16px 0 8px;
}

.reviews-empty p {
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.product-comparison-section {
  margin-top: var(--space-6);
}

.product-comparison-section h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
}

/* ---- Related Products ---- */
.related-products {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
}

.related-products h2 {
  margin-bottom: var(--space-6);
}

/* ==================================
   SEARCH RESULTS
   ================================== */
.search-results-header {
  padding: var(--space-6) 0;
}

.search-results-header h1 {
  font-size: var(--font-size-2xl);
}

.search-query {
  color: var(--color-primary);
}

.search-count {
  font-size: var(--font-size-sm);
  color: var(--color-muted);
  margin-top: var(--space-1);
}

.no-results {
  text-align: center;
  padding: 64px var(--space-4);
}

.no-results h2 {
  margin-bottom: var(--space-4);
  color: var(--color-heading);
}

.no-results p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

/* ==================================
   BRANDS PAGE
   ================================== */
.brand-letter-nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-6);
}

.brand-letter-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-body);
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.brand-letter-nav a:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.brand-group {
  margin-bottom: var(--space-8);
}

.brand-group-letter {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--color-primary-light);
  margin-bottom: var(--space-4);
}

.brand-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.brand-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  color: var(--color-heading);
  font-size: var(--font-size-sm);
  border-radius: 8px;
  transition: background-color 0.2s ease;
  text-decoration: none;
}

.brand-list-item:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.brand-list-item .product-count {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

/* ---- Brands Horizontal Scroll ---- */
.brands-strip {
  display: flex;
  gap: var(--space-4);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.brands-strip::-webkit-scrollbar {
  height: 4px;
}

.brands-strip::-webkit-scrollbar-thumb {
  background-color: var(--color-border);
  border-radius: 20px;
}

/* Old brand strip card (keep for brands-index page) */
.brand-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-6);
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  min-width: 140px;
  text-align: center;
  transition: all 0.2s ease;
  color: var(--color-heading);
  text-decoration: none;
}

.brand-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px rgba(0, 166, 81, 0.1);
}

/* New brand grid (homepage) */
.brands-section {
  background: #F8FAFB;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 640px) {
  .brands-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .brands-grid { grid-template-columns: repeat(4, 1fr); }
}

@media (min-width: 1024px) {
  .brands-grid { grid-template-columns: repeat(6, 1fr); }
}

.brand-card-new {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  text-decoration: none;
  color: var(--color-heading);
  transition: all 0.2s;
}

.brand-card-new:hover {
  border-color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0, 166, 81, 0.12);
  transform: translateY(-2px);
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-avatar span {
  font-size: 20px;
  font-weight: 800;
  color: white;
  line-height: 1;
}

.brand-info {
  min-width: 0;
  overflow: hidden;
}

.brand-card-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-card-count {
  font-size: 11px;
  color: #64748B;
}

/* ==================================
   DEALS PAGE
   ================================== */
.deals-header {
  background: linear-gradient(135deg, var(--color-accent) 0%, #E55A28 100%);
  color: var(--color-white);
  padding: var(--space-8) 0;
  text-align: center;
  margin-bottom: var(--space-6);
  border-radius: 12px;
}

.deals-header h1 {
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.deals-header p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 0;
}

/* ==================================
   CART PAGE
   ================================== */
.cart-page {
  padding: var(--space-8) 0;
}

.cart-empty {
  text-align: center;
  padding: 64px var(--space-4);
}

.cart-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--space-4);
  opacity: 0.3;
}

.cart-empty h2 {
  margin-bottom: var(--space-4);
}

.cart-empty p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.cart-table th {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-heading);
  border-bottom: 2px solid var(--color-border);
}

.cart-table td {
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-border-light);
  vertical-align: middle;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.cart-item-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  flex-shrink: 0;
}

.cart-item-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-heading);
}

.cart-item-title a {
  color: inherit;
  text-decoration: none;
}

.cart-item-title a:hover {
  color: var(--color-primary);
}

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

.qty-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
  border: none;
  cursor: pointer;
  font-size: var(--font-size-base);
  color: var(--color-heading);
  transition: background-color 0.2s ease;
}

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

.qty-value {
  width: 40px;
  text-align: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  padding: var(--space-2) 0;
}

.cart-item-price {
  font-weight: var(--font-weight-semibold);
  color: var(--color-heading);
  white-space: nowrap;
}

.cart-remove-btn {
  color: var(--color-muted);
  font-size: var(--font-size-sm);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-2);
  transition: color 0.2s ease;
}

.cart-remove-btn:hover {
  color: var(--color-error);
}

.cart-summary {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: var(--space-6);
  max-width: 400px;
  margin-left: auto;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
}

.cart-summary-row.total {
  border-top: 2px solid var(--color-border);
  padding-top: var(--space-3);
  margin-top: var(--space-3);
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  color: var(--color-heading);
}

.cart-delivery-note {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-4);
  padding: var(--space-3);
  background-color: var(--color-primary-light);
  border-radius: 8px;
}

/* ==================================
   CHECKOUT PAGE
   ================================== */
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  padding: var(--space-8) 0;
  align-items: flex-start;
}

.checkout-form {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: var(--space-6);
}

.checkout-form h2 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.checkout-section {
  margin-bottom: var(--space-6);
}

.checkout-section h3 {
  font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
}

.checkout-summary {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: var(--space-6);
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
}

.checkout-summary h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border);
}

.checkout-summary-item {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-3);
}

.checkout-summary-item .item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checkout-summary-item .item-qty {
  color: var(--color-muted);
  flex-shrink: 0;
}

.checkout-summary-item .item-price {
  font-weight: var(--font-weight-semibold);
  flex-shrink: 0;
}

.rx-warning {
  background-color: var(--color-rx-light);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 12px;
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  display: flex;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-rx);
}

.rx-warning-icon {
  font-size: var(--font-size-xl);
  flex-shrink: 0;
}

/* ---- Checkout Success ---- */
.checkout-success {
  text-align: center;
  padding: 64px var(--space-4);
  max-width: 500px;
  margin: 0 auto;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--color-success-light);
  color: var(--color-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  font-size: 2.5rem;
}

.checkout-success h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

.checkout-success p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
}

.order-summary-card {
  background-color: white;
  border: 1px solid #F0F0F0;
  border-radius: 12px;
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  text-align: left;
}

/* ==================================
   ERROR PAGES
   ================================== */
.error-page {
  text-align: center;
  padding: 64px var(--space-4);
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.error-code {
  font-size: 6rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary-light);
  line-height: 1;
  margin-bottom: var(--space-4);
}

.error-page h1 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-4);
}

.error-page p {
  color: var(--color-muted);
  margin-bottom: var(--space-6);
  max-width: 400px;
}

.error-page .search-bar {
  max-width: 400px;
  margin: 0 auto var(--space-6);
}

/* ==================================
   FOOTER
   ================================== */
.site-footer {
  background-color: var(--color-secondary);
  color: var(--color-white);
  padding: var(--space-12) 0 0;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}

.footer-col h4,
.footer-col .footer-heading {
  color: var(--color-white);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.footer-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.footer-tagline {
  font-size: 9px;
  color: rgba(255,255,255,0.75);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.footer-description {
  font-size: var(--font-size-sm);
  opacity: 0.8;
  line-height: var(--line-height-relaxed);
  color: rgba(255, 255, 255, 0.8);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: var(--font-size-sm);
  transition: color 0.2s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a svg {
  flex-shrink: 0;
  opacity: 0.6;
}

.footer-links a:hover svg {
  opacity: 1;
}

.footer-links a:hover {
  color: var(--color-white);
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: var(--space-2);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: var(--space-4) 0;
  text-align: center;
  font-size: var(--font-size-xs);
  color: rgba(255, 255, 255, 0.75);
}

/* ==================================
   RESPONSIVE DESIGN
   ================================== */

/* Small devices (phones) */
@media (max-width: 639px) {
  h1 { font-size: var(--font-size-2xl); }
  h2 { font-size: var(--font-size-xl); }

  .container { padding: 0 16px; }

  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

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

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .category-card {
    padding: 16px 8px;
  }

  .category-card-icon {
    font-size: 28px;
    margin-bottom: 4px;
  }

  .category-card-name {
    font-size: 11px;
  }

  .hero-section {
    padding: 40px 0;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .hero-subtitle {
    font-size: 14px;
  }

  .hero-stats {
    gap: var(--space-4);
  }

  .top-bar {
    display: none;
  }

  /* Header mobile */
  .search-wrapper {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .cart-label {
    display: none;
  }

  /* Mobile nav visible */
  .mobile-nav-overlay.active,
  .mobile-nav.active {
    display: block;
  }

  /* Product detail */
  .product-detail {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

  /* Category layout */
  .category-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    order: -1;
  }

  /* Cart */
  .cart-table th:nth-child(n+3),
  .cart-table td:nth-child(n+3) {
    display: none;
  }

  .cart-summary {
    max-width: 100%;
  }

  /* Checkout */
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }

  /* Brands */
  .brand-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 32px 0;
  }
}

/* Medium devices (640px - 767px) */
@media (min-width: 640px) and (max-width: 767px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hamburger {
    display: flex;
  }

  .main-nav {
    display: none;
  }

  .search-wrapper {
    display: none;
  }

  .cart-label {
    display: none;
  }

  .mobile-nav-overlay.active,
  .mobile-nav.active {
    display: block;
  }

  .top-bar {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .category-layout {
    flex-direction: column;
  }

  .filter-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }

  .brand-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .hamburger {
    display: none;
  }

  .search-wrapper {
    display: block;
  }

  .main-nav {
    display: block;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category-layout {
    flex-direction: row;
  }

  .filter-sidebar {
    width: 220px;
  }

  .brand-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-section {
    padding: 80px 0;
  }

  .hero-section h1 {
    font-size: 40px;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }

  .search-wrapper {
    min-width: 400px;
    display: block;
  }

  .main-nav {
    display: block;
  }

  .mobile-nav,
  .mobile-nav-overlay {
    display: none !important;
  }

  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .category-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .hero-section {
    padding: 80px 0;
  }

  .hero-section h1 {
    font-size: 44px;
  }

  .hero-search .search-bar input {
    padding: 16px 28px;
    font-size: 16px;
  }

  .hero-search .search-bar button {
    padding: 16px 24px;
  }

  .category-layout {
    flex-direction: row;
  }

  .filter-sidebar {
    width: 260px;
  }
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-muted { color: var(--color-muted); }
.text-primary { color: var(--color-primary); }
.text-accent { color: #C73E00; }
.text-success { color: var(--color-success); }
.text-error { color: var(--color-error); }
.font-bold { font-weight: var(--font-weight-bold); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==================================
   PRESCRIPTION / Rx STYLES
   ================================== */

/* Prescription Badge */
.rx-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #DC2626;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rx-badge-large {
  font-size: 14px;
  padding: 4px 12px;
}

/* Prescription Upload Section */
.prescription-section {
  background: #FEF3C7;
  border: 2px solid #F59E0B;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.prescription-section h3 {
  color: #92400E;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.prescription-section .rx-items-list {
  background: white;
  border-radius: 8px;
  padding: 12px;
  margin: 12px 0;
}

.prescription-section .rx-items-list li {
  padding: 4px 0;
  color: #92400E;
}

.prescription-upload {
  margin-top: 16px;
}

.prescription-upload input[type="file"] {
  display: block;
  width: 100%;
  padding: 12px;
  border: 2px dashed #D97706;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  margin-top: 8px;
}

.prescription-upload input[type="file"]:hover {
  border-color: #B45309;
  background: #FFFBEB;
}

.prescription-note {
  font-size: 13px;
  color: #92400E;
  margin-top: 8px;
  font-style: italic;
}

/* Rx Info Box on Product Detail */
.rx-info-box {
  background: #FEE2E2;
  border: 1px solid #FECACA;
  border-radius: 12px;
  padding: 16px;
  margin-top: 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.rx-info-box .rx-icon {
  font-size: 24px;
  flex-shrink: 0;
}

.rx-info-box p {
  color: #991B1B;
  font-size: 14px;
  margin: 0;
}

/* Cart Rx Warning */
.cart-rx-warning {
  background: #FEF3C7;
  border: 1px solid #FDE68A;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #92400E;
  font-size: 14px;
}

/* Payment Methods in Footer */
.footer-payments {
  text-align: center;
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 20px;
}

.footer-payments h4,
.footer-payments .footer-heading {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.payment-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.payment-icon {
  background: rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 4px;
  transition: transform 0.2s, background 0.2s;
  cursor: default;
}

.payment-icon:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.15);
}

.payment-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 11px;
  color: rgba(255,255,255,0.75);
  margin: 0;
}

.payment-secure svg {
  color: #4ADE80;
}

/* Licensing Section in Footer */
.footer-licensing {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 16px;
  margin-top: 20px;
  text-align: center;
}

.footer-licensing .license-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,166,81,0.2);
  color: #4ADE80;
  padding: 6px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 12px;
}

.footer-licensing p {
  font-size: 12px;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  margin: 4px 0;
}

.footer-bottom-links {
  margin-top: 8px;
  font-size: 13px;
}
.footer-bottom-links a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.footer-bottom-links a:hover {
  color: #fff;
}
.footer-bottom-links span {
  margin: 0 8px;
  color: rgba(255,255,255,0.6);
}

/* ============================================
   Static Pages (About, Privacy, Terms)
   ============================================ */
.page-hero {
  background: linear-gradient(135deg, #00A651 0%, #005C2E 100%);
  color: white;
  padding: 48px 0;
  text-align: center;
}
.page-hero h1 {
  font-size: 32px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
}
.page-hero p {
  font-size: 16px;
  opacity: 0.9;
}

.page-content {
  padding: 48px 0;
  max-width: 900px;
  margin: 0 auto;
}
.page-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-heading);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary-light);
}
.page-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--color-heading);
  margin-top: 24px;
  margin-bottom: 10px;
}
.page-content p, .page-content li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-body);
  margin-bottom: 12px;
}
.page-content ul, .page-content ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
.page-content ul li {
  list-style: disc;
}
.page-content ol li {
  list-style: decimal;
}
.page-content a {
  color: var(--color-primary);
}
.page-updated {
  font-size: 13px;
  color: var(--color-muted);
  margin-bottom: 32px;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 24px 0;
}
@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(4, 1fr); }
}
.value-card {
  background: var(--color-primary-light);
  border-radius: 12px;
  padding: 24px 16px;
  text-align: center;
}
.value-card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}
.value-card h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-heading);
  margin: 0 0 8px;
}
.value-card p {
  font-size: 13px;
  color: var(--color-body);
  margin: 0;
  line-height: 1.5;
}

/* Why Choose Us */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.feature-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
}
.feature-item strong {
  display: block;
  font-size: 14px;
  color: var(--color-heading);
  margin-bottom: 4px;
}
.feature-item span {
  font-size: 13px;
  color: var(--color-body);
  line-height: 1.4;
}

/* ---- Social Icons ---- */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}

.social-link:hover {
  background: var(--color-primary);
  color: white;
  transform: translateY(-2px);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

/* ---- Sitemap Page ---- */
.sitemap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 32px;
}

@media (min-width: 768px) {
  .sitemap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .sitemap-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sitemap-section h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.sitemap-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sitemap-links a {
  font-size: 14px;
  color: var(--color-body);
  text-decoration: none;
  transition: color 0.2s;
  padding: 2px 0;
}

.sitemap-links a:hover {
  color: var(--color-primary);
}

.sitemap-links .sitemap-sub {
  padding-left: 16px;
  font-size: 13px;
  color: var(--color-muted);
}

.sitemap-links .sitemap-sub:hover {
  color: var(--color-primary);
}

/* ---- Cookie Table ---- */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.cookie-table th {
  background: var(--color-primary-light);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--color-heading);
}

.cookie-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-body);
}

.cookie-table tr:last-child td {
  border-bottom: none;
}

/* ==================================
   WHATSAPP FLOATING CHAT BUTTON
   ================================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: white;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.3s;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #20BA5A;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.5), 0 4px 12px rgba(0,0,0,0.2);
}

.whatsapp-float svg {
  flex-shrink: 0;
}

.whatsapp-float-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4), 0 2px 8px rgba(0,0,0,0.15); }
  50% { box-shadow: 0 4px 24px rgba(37, 211, 102, 0.6), 0 2px 12px rgba(0,0,0,0.2); }
}

/* Mobile: icon only */
@media (max-width: 640px) {
  .whatsapp-float {
    padding: 14px;
    border-radius: 50%;
    bottom: 20px;
    right: 20px;
  }
  .whatsapp-float-label {
    display: none;
  }
}

/* ==================================
   SOCIAL PROOF TOAST NOTIFICATIONS
   ================================== */
.social-proof-container {
  position: fixed;
  bottom: 90px;
  left: 24px;
  z-index: 998;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
  pointer-events: none;
}

.social-proof-toast {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s;
  pointer-events: all;
  position: relative;
}

.social-proof-toast.sp-show {
  transform: translateX(0);
  opacity: 1;
}

.social-proof-toast.sp-hide {
  transform: translateX(-120%);
  opacity: 0;
}

.sp-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  color: white;
}

.sp-content {
  flex: 1;
  min-width: 0;
}

.sp-title {
  font-size: 13px;
  font-weight: 700;
  color: #1A1A2E;
  line-height: 1.2;
  margin-bottom: 2px;
}

.sp-text {
  font-size: 12px;
  color: #5A6B7B;
  line-height: 1.4;
}

.sp-text strong {
  color: #1A1A2E;
  font-weight: 600;
}

.sp-time {
  font-size: 10px;
  color: #94A3B8;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.sp-time::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #00A651;
  border-radius: 50%;
  display: inline-block;
}

.sp-close {
  position: absolute;
  top: 6px;
  right: 8px;
  background: none;
  border: none;
  font-size: 16px;
  color: #94A3B8;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.social-proof-toast:hover .sp-close {
  opacity: 1;
}

.sp-close:hover {
  color: #1A1A2E;
}

/* Mobile: narrower toasts */
@media (max-width: 640px) {
  .social-proof-container {
    left: 12px;
    right: 12px;
    max-width: none;
    bottom: 80px;
  }
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog Listing */
.blog-header { background: linear-gradient(135deg, #1B3A5C 0%, #0D1F33 100%); color: white; padding: 48px 0; text-align: center; }
.blog-header h1 { color: white; font-size: 32px; margin-bottom: 8px; }
.blog-header p { opacity: 0.8; font-size: 16px; }

.blog-layout { display: flex; gap: 32px; padding: 48px 0; }
.blog-main { flex: 1; min-width: 0; }
.blog-sidebar { width: 280px; flex-shrink: 0; }

@media (max-width: 767px) {
  .blog-layout { flex-direction: column; }
  .blog-sidebar { width: 100%; }
}

.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
@media (max-width: 640px) { .blog-grid { grid-template-columns: 1fr; } }

/* Blog Card */
.blog-card { background: white; border: 1px solid #F0F0F0; border-radius: 12px; overflow: hidden; transition: all 0.2s; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.blog-card-image { height: 180px; background: linear-gradient(135deg, #00A651, #1B3A5C); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-body { padding: 20px; }
.blog-card-category { display: inline-block; background: var(--color-primary-light); color: var(--color-primary); font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; text-decoration: none; }
.blog-card-title { font-size: 17px; font-weight: 700; color: var(--color-heading); line-height: 1.3; margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-title a { color: inherit; text-decoration: none; }
.blog-card-title a:hover { color: var(--color-primary); }
.blog-card-excerpt { font-size: 13px; color: var(--color-body); line-height: 1.6; margin-bottom: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--color-muted); }
.blog-card-meta svg { width: 14px; height: 14px; }

/* Blog Sidebar */
.blog-sidebar-section { background: white; border: 1px solid #F0F0F0; border-radius: 12px; padding: 20px; margin-bottom: 20px; }
.blog-sidebar-section h3 { font-size: 15px; font-weight: 700; color: var(--color-heading); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--color-primary-light); }
.blog-sidebar-categories a { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; color: var(--color-body); text-decoration: none; border-bottom: 1px solid #F5F5F5; }
.blog-sidebar-categories a:hover { color: var(--color-primary); }
.blog-sidebar-categories a span { background: #F0F0F0; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.blog-recent-post { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F5F5F5; }
.blog-recent-post:last-child { border: none; }
.blog-recent-thumb { width: 60px; height: 60px; border-radius: 8px; background: linear-gradient(135deg, #00A651, #1B3A5C); flex-shrink: 0; }
.blog-recent-info { flex: 1; }
.blog-recent-info a { font-size: 13px; font-weight: 600; color: var(--color-heading); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.blog-recent-info a:hover { color: var(--color-primary); }
.blog-recent-date { font-size: 11px; color: var(--color-muted); margin-top: 4px; }

/* Single Blog Post */
.blog-post-hero { height: 300px; background: linear-gradient(135deg, #1B3A5C, #00A651); display: flex; align-items: flex-end; }
.blog-post-hero img { width: 100%; height: 100%; object-fit: cover; }
.blog-post-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; color: var(--color-muted); }
.blog-post-meta svg { width: 14px; height: 14px; }
.blog-post-content { max-width: 720px; }
.blog-post-content p { font-size: 16px; line-height: 1.9; color: #374151; margin-bottom: 20px; }
.blog-post-content h2 { font-size: 22px; font-weight: 700; color: var(--color-heading); margin-top: 32px; margin-bottom: 12px; }
.blog-post-content h3 { font-size: 18px; font-weight: 600; margin-top: 24px; margin-bottom: 10px; }
.blog-post-content ul, .blog-post-content ol { padding-left: 24px; margin-bottom: 20px; }
.blog-post-content li { font-size: 15px; line-height: 1.8; color: #374151; margin-bottom: 6px; }

/* Share buttons */
.blog-share { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); margin: 32px 0; }
.blog-share span { font-size: 13px; font-weight: 600; color: var(--color-heading); }
.blog-share a { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; text-decoration: none; transition: transform 0.2s; }
.blog-share a:hover { transform: scale(1.1); }

/* Author box */
.blog-author-box { display: flex; gap: 16px; background: #F8FAFB; border-radius: 12px; padding: 24px; margin: 32px 0; }
.blog-author-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary); display: flex; align-items: center; justify-content: center; color: white; font-size: 24px; font-weight: 700; flex-shrink: 0; }
.blog-author-info h4 { font-size: 15px; font-weight: 700; color: var(--color-heading); margin-bottom: 4px; }
.blog-author-info p { font-size: 13px; color: var(--color-body); line-height: 1.5; margin: 0; }

/* Blog disclaimer */
.blog-disclaimer { background: #FEF3C7; border: 1px solid #FDE68A; border-radius: 10px; padding: 16px 20px; margin: 24px 0; font-size: 13px; color: #92400E; line-height: 1.6; }

/* ============================================
   ACCESSIBILITY FIXES - Contrast & Touch Targets
   ============================================ */

/* Fix #13: Search button contrast - darken green bg for white text */
.search-bar button,
.hero-search .search-bar button {
  background-color: #008C45;
}

/* Fix #20: Footer heading semantic fix - style div.footer-heading like h4 */
.footer-heading {
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-xl);
}

/* =============================================
   ACCESSIBILITY CONTRAST FIXES (WCAG 2.1 AA)
   ============================================= */

/* Top bar: dark green bg for white text - 7.5:1 ratio */
.top-bar { background-color: #006432 !important; }
.top-bar a { color: #FFFFFF !important; }

/* Buttons: darker green for 4.5:1 with white */
.btn-primary,
.product-card-action .btn-primary,
.header-search-form button,
.search-bar button { background-color: #006432 !important; }
.btn-primary:hover,
.header-search-form button:hover { background-color: #005228 !important; }

/* Sale price: dark orange for 4.5:1 on white */
.price-sale, .price-current.price-sale { color: #C73E00 !important; }

/* Sale badge: dark orange bg */
.badge-sale { background-color: #C73E00 !important; }

/* Slide button override */
.slide-btn[style*="00A651"] { background: #006432 !important; }

/* License badge: ensure contrast on footer */
.license-badge { background: rgba(0,100,50,0.3) !important; color: #7DEFA0 !important; }

/* Footer copyright */
.footer-bottom p { color: rgba(255,255,255,0.8) !important; }

/* WhatsApp float label */
.whatsapp-float { background: #116B30 !important; color: #FFFFFF !important; }
.whatsapp-float:hover { background: #0D5826 !important; }
