/* ════════════════════════════════════════════════════════════════
   Dr. Yousef Abdelnaser Pharmacy — main.css
   Full stylesheet for all templates
   ════════════════════════════════════════════════════════════════ */

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

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

body {
  font-family: 'Cairo', 'Segoe UI', Arial, sans-serif;
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  /* direction handled by RTL stylesheet */
}

img { max-width: 100%; height: auto; display: block; }
a  { color: inherit; text-decoration: none; transition: color var(--transition); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; font-size: 1rem; }
h1,h2,h3,h4,h5,h6 { line-height: 1.3; font-weight: 700; }

/* ── LAYOUT ───────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── SECTION BASE ─────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-gray { background: var(--gray-100); }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}

.section-sub {
  color: var(--gray-700);
  font-size: 1rem;
  line-height: 1.7;
}

/* ── BADGE ────────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  background: var(--green-lt);
  color: var(--green);
  border-radius: 50px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.badge-white {
  background: rgba(255,255,255,.2);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.4);
}

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26,107,60,.3);
}

.btn-white {
  background: var(--white);
  color: var(--green);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-lt);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
}

.btn-wa {
  background: #25d366;
  color: var(--white);
  border-color: #25d366;
}
.btn-wa:hover { background: #1ebe5d; transform: translateY(-2px); }

.btn-full { width: 100%; justify-content: center; }

/* ── TOPBAR ───────────────────────────────────────────────────── */
.topbar {
  background: var(--green);
  color: var(--white);
  font-size: 13px;
  padding: 8px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-links a {
  color: rgba(255,255,255,.9);
  text-decoration: none;
  transition: color var(--transition);
}
.topbar-links a:hover { color: var(--white); }

/* ── NAVBAR ───────────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 24px rgba(26,107,60,.15); }

.navbar .container { padding-block: 0; }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}
.logo .custom-logo { height: 50px; width: auto; object-fit: contain; }
.logo-icon { font-size: 32px; line-height: 1; }
.logo-text strong { display: block; font-size: 15px; color: var(--green); line-height: 1.2; }
.logo-text span   { display: block; font-size: 11px; color: var(--gray-700); }

/* Search bar */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: 50px;
  padding: 8px 16px;
  gap: 8px;
  max-width: 460px;
  border: 2px solid transparent;
  transition: border-color var(--transition);
}
.search-bar:focus-within {
  border-color: var(--green);
  background: var(--white);
}
.search-bar input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 14px;
  color: var(--text);
}
.search-bar button {
  background: none;
  border: none;
  color: var(--green);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  font-weight: 700;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-icon-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  font-size: 18px;
  transition: background var(--transition);
  text-decoration: none;
  color: var(--text);
}
.nav-icon-btn:hover { background: var(--green-lt); }

.cart-count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--accent);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Desktop nav menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.nav-menu a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--green); background: var(--green-lt); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 12px 0 16px;
  border-top: 1px solid var(--gray-100);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  transition: all var(--transition);
}
.mobile-menu a:hover,
.mobile-menu a.active { color: var(--green); background: var(--green-lt); }

/* ── SHIPPING BAR ─────────────────────────────────────────────── */
.shipping-bar {
  background: var(--green-lt);
  border-bottom: 1px solid rgba(26,107,60,.1);
  padding: 10px 0;
}
.shipping-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
}
.shipping-bar-text { font-size: 13px; color: var(--green); font-weight: 600; flex: 1; }
.shipping-progress {
  flex: 1;
  max-width: 220px;
  height: 6px;
  background: rgba(26,107,60,.15);
  border-radius: 10px;
  overflow: hidden;
}
.shipping-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 10px;
  transition: width .6s ease;
}

/* ── HERO SECTION ─────────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  color: var(--white);
  padding: 90px 0;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  opacity: .12;
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: var(--white);
  top: -200px; right: -100px;
}
.hero-orb-2 {
  width: 300px; height: 300px;
  background: var(--gold);
  bottom: -150px; left: 10%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .08em;
  opacity: .85;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-title em { font-style: normal; color: var(--gold); }

.hero-desc {
  font-size: 1.05rem;
  opacity: .9;
  margin-bottom: 32px;
  line-height: 1.8;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.stat { text-align: center; }
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  display: block;
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  opacity: .8;
  margin-top: 4px;
}

/* Hero visual / card stack */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  max-height: 400px;
  width: 100%;
  object-fit: cover;
}

.hero-card-stack {
  position: relative;
  width: 280px;
  height: 320px;
}

.hero-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 24px;
  color: var(--white);
  position: absolute;
}

.hero-card-main {
  width: 220px;
  left: 50%;
  transform: translateX(-50%);
  top: 40px;
}
.hero-card-float {
  width: 180px;
  right: -20px;
  top: 0;
  font-size: 14px;
  background: rgba(255,255,255,.2);
  animation: float 3s ease-in-out infinite;
}

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

.hc-pill {
  display: inline-block;
  background: rgba(26,107,60,.3);
  border-radius: 50px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}
.hc-badge {
  background: var(--accent);
  border-radius: 50px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 8px;
}
.hc-icon  { font-size: 36px; margin-bottom: 10px; display: block; }
.hc-title { font-weight: 700; margin-bottom: 4px; }
.hc-sub   { font-size: 12px; opacity: .8; margin-bottom: 8px; }
.hc-price { font-size: 18px; font-weight: 800; color: var(--gold); }

/* ── MARQUEE STRIP ────────────────────────────────────────────── */
.strip {
  background: var(--green);
  overflow: hidden;
  padding: 10px 0;
}

.strip-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.strip:hover .strip-track { animation-play-state: paused; }

.strip-item {
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  padding: 0 32px;
  white-space: nowrap;
  opacity: .92;
  display: flex;
  align-items: center;
  gap: 8px;
}
.strip-item::after {
  content: '·';
  margin-left: 32px;
  opacity: .5;
}

/* ── CATEGORIES GRID ──────────────────────────────────────────── */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  border: 2px solid transparent;
  transition: all var(--transition);
}
.cat-card:hover {
  border-color: var(--green);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.cat-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-lt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  transition: background var(--transition);
}
.cat-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
}
.cat-card:hover .cat-icon { background: var(--green); }
.cat-card:hover .cat-icon span { filter: brightness(0) invert(1); }

.cat-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.cat-count {
  font-size: 12px;
  color: var(--gray-400);
}

/* ── PRODUCTS GRID ────────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
}
.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-img {
  position: relative;
  background: var(--gray-100);
  aspect-ratio: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.product-card:hover .product-img img { transform: scale(1.06); }
.product-img a:not(.no-img) { display: block; width: 100%; height: 100%; }
.no-img { font-size: 56px; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.demo-product-icon { font-size: 72px; }

.offer-ribbon {
  position: absolute;
  top: 12px;
  left: 0;
  background: var(--accent);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 0 4px 4px 0;
  z-index: 2;
  letter-spacing: .05em;
}

.product-wishlist {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-wishlist:hover { transform: scale(1.15); }

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

.product-brand {
  font-size: 11px;
  color: var(--gray-400);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-name:hover { color: var(--green); }

.stars {
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 1px;
}

.product-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--gray-100);
}

.product-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--green);
}
.product-price-old {
  font-size: 12px;
  color: var(--gray-400);
  text-decoration: line-through;
  display: block;
}

.add-btn {
  background: var(--green);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.add-btn:hover {
  background: var(--green-mid);
  transform: scale(1.04);
}

.out-of-stock {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

/* Filter tabs */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  justify-content: center;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--gray-100);
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-tab:hover { border-color: var(--green); color: var(--green); }
.filter-tab.active {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}

/* ── OFFERS GRID ──────────────────────────────────────────────── */
.offers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.offer-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--offer-color, var(--green));
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.offer-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.offer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.offer-icon { font-size: 36px; }
.offer-discount {
  background: var(--offer-color, var(--green));
  color: var(--white);
  font-weight: 800;
  font-size: 20px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
}

.offer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.offer-sub { font-size: 14px; color: var(--gray-700); }
.offer-saving { font-size: 13px; color: var(--green); font-weight: 600; }

.countdown {
  display: flex;
  gap: 8px;
  padding: 12px 0;
}
.countdown-unit { text-align: center; }
.countdown-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  background: var(--gray-100);
  border-radius: 8px;
  padding: 8px 12px;
  min-width: 48px;
  line-height: 1;
}
.countdown-label {
  font-size: 10px;
  color: var(--gray-400);
  font-weight: 600;
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── RX SECTION ───────────────────────────────────────────────── */
.rx-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  color: var(--white);
}
.rx-section .section-title { color: var(--white); }

.rx-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.rx-steps {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rx-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  opacity: .95;
}

.rx-visual { display: flex; justify-content: flex-end; }

.rx-card {
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 320px;
  text-align: center;
}
.rx-card-icon { font-size: 56px; display: block; margin-bottom: 16px; }
.rx-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.rx-card p  { font-size: 14px; opacity: .85; line-height: 1.7; margin-bottom: 20px; }

.rx-badges {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.rx-badges span {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 600;
}

/* ── FEATURES GRID ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
  border-bottom: 3px solid transparent;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--green);
  transform: translateY(-4px);
}
.feature-icon {
  font-size: 44px;
  display: block;
  margin-bottom: 16px;
}
.feature-card h3 {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
}

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.testimonial-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}
.testimonial-stars { color: var(--gold); font-size: 14px; }
.testimonial-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.8;
  font-style: italic;
}

/* ── CONTACT SECTION ──────────────────────────────────────────── */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-list li {
  font-size: 15px;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border-radius: var(--radius);
  border: none;
  box-shadow: var(--shadow-sm);
}
.map-placeholder {
  height: 360px;
  background: var(--gray-100);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--gray-400);
}
.map-placeholder-inner { text-align: center; }
.map-placeholder-inner span { font-size: 56px; display: block; margin-bottom: 12px; }
.map-placeholder-inner p { font-size: 14px; color: var(--gray-400); }

/* ── CAT PILLS ────────────────────────────────────────────────── */
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.cat-pill {
  background: var(--green-lt);
  color: var(--green);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
}
.cat-pill:hover { background: var(--green); color: var(--white); }

/* ── NEWSLETTER ───────────────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  padding: 52px 0;
}
.newsletter-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.newsletter-title {
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 6px;
}
.newsletter-inner p { color: rgba(255,255,255,.85); font-size: 14px; }
.newsletter-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 14px;
  outline: none;
  min-width: 260px;
  color: var(--text);
}

/* ── FOOTER ───────────────────────────────────────────────────── */
#site-footer {
  background: var(--gray-700);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-logo .logo-text strong { color: var(--white); }
.footer-logo .logo-text span   { color: rgba(255,255,255,.6); }

.footer-about {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
  text-decoration: none;
}
.footer-social a:hover { background: var(--green); }

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-links li a,
.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  transition: color var(--transition);
  display: block;
  padding: 2px 0;
}
.footer-links li a:hover,
.footer-links a:hover { color: var(--white); }

.footer-contact-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-contact-list li {
  font-size: 13px;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.footer-contact-list a { color: inherit; text-decoration: none; }
.footer-contact-list a:hover { color: var(--white); }

.btn-wa-footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-wa-footer:hover { background: #1ebe5d; }

.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 16px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,.6); }
.footer-payment-icons { font-size: 20px; display: flex; gap: 8px; }

/* ── SCROLL TO TOP ────────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  border: none;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  transform: translateY(16px);
  transition: all .3s ease;
  z-index: 800;
}
.scroll-top.show { opacity: 1; transform: translateY(0); }
.scroll-top:hover { background: var(--green-mid); transform: translateY(-3px); }

/* ── WHATSAPP FLOAT ───────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  z-index: 800;
  transition: all var(--transition);
  animation: wa-pulse 2.5s ease-in-out infinite;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,.6);
}
@keyframes wa-pulse {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.4); }
  50%      { box-shadow: 0 4px 32px rgba(37,211,102,.7); }
}

/* ── TOAST ────────────────────────────────────────────────────── */
.toast-notification {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: var(--white);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: all .3s ease;
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
}
.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ── MODAL ────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  transform: translateY(20px) scale(.97);
  transition: all .3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.modal-close:hover { background: var(--gray-400); color: var(--white); }

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}
.modal-sub {
  font-size: 13px;
  color: var(--gray-400);
  margin-bottom: 20px;
}

.modal-input, .modal-textarea {
  width: 100%;
  padding: 11px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 12px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.modal-input:focus, .modal-textarea:focus { border-color: var(--green); }
.modal-textarea { resize: vertical; }

.rx-upload-area {
  border: 2px dashed var(--gray-400);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.rx-upload-area:hover { border-color: var(--green); background: var(--green-lt); }
.rx-upload-icon { font-size: 36px; margin-bottom: 8px; display: block; }
.rx-upload-area p   { font-size: 14px; color: var(--gray-700); margin-bottom: 6px; }
#rxFileName { font-size: 12px; color: var(--gray-400); }

/* ── TEMPLATE: FULL WIDTH ─────────────────────────────────────── */
.template-full-width {
  min-height: 60vh;
}

/* ── PAGE: 404 ────────────────────────────────────────────────── */
.page-404 { padding: 80px 0; }
.error-404-wrapper {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}
.error-404-visual { text-align: center; }
.error-404-icon { font-size: 80px; display: block; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
.error-404-number {
  font-size: 6rem;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
  opacity: .15;
  margin-top: -20px;
}
.error-404-title { font-size: 1.8rem; color: var(--text); margin-bottom: 12px; }
.error-404-sub   { font-size: 15px; color: var(--gray-700); margin-bottom: 28px; line-height: 1.8; }
.error-404-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.error-404-search input {
  flex: 1;
  padding: 12px 18px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
  color: var(--text);
}
.error-404-search input:focus { border-color: var(--green); }
.error-404-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── SIDEBAR & ARCHIVE ────────────────────────────────────────── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── SINGLE POST ──────────────────────────────────────────────── */
.entry-content {
  line-height: 1.9;
  font-size: 16px;
  color: var(--text);
}
.entry-content h2 { font-size: 1.4rem; margin: 32px 0 12px; color: var(--green); }
.entry-content h3 { font-size: 1.2rem; margin: 24px 0 10px; }
.entry-content p  { margin-bottom: 18px; }
.entry-content ul,
.entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 6px; }
.entry-content img { border-radius: var(--radius-sm); margin: 20px 0; }
.entry-content blockquote {
  border-left: 4px solid var(--green);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--green-lt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--gray-700);
  font-style: italic;
}
.entry-content a { color: var(--green); text-decoration: underline; }
.entry-content code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .9em;
}

/* ── COMMENTS ─────────────────────────────────────────────────── */
.comments-area { margin-top: 48px; }
.comments-title {
  font-size: 1.4rem;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--green-lt);
  color: var(--text);
}
.comments-title span { color: var(--green); }
.comment-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.comment-item { }
.comment-body {
  display: flex;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.avatar { border-radius: 50%; width: 48px; height: 48px; flex-shrink: 0; }
.comment-content-wrap { flex: 1; }
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.comment-author-name { font-weight: 700; font-size: 15px; color: var(--text); }
.comment-author-name a { color: inherit; text-decoration: none; }
.comment-time { font-size: 12px; color: var(--gray-400); }
.comment-awaiting-moderation { font-size: 13px; color: var(--gold); margin-bottom: 8px; }
.comment-content p { font-size: 14px; color: var(--gray-700); line-height: 1.8; }
.comment-reply-link {
  display: inline-block;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
  margin-top: 8px;
  text-decoration: none;
}
.comment-form { margin-top: 40px; }
.comment-form h3, .comment-form .comment-reply-title {
  font-size: 1.3rem;
  margin-bottom: 20px;
  color: var(--text);
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
  outline: none;
  transition: border-color var(--transition);
  background: var(--white);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--green); }
.comment-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.comment-form .comment-form-cookies-consent {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.comment-form .comment-form-cookies-consent input { width: auto; margin: 0; }
.comment-form .comment-form-cookies-consent label { margin: 0; font-weight: 400; }
.comment-notes { font-size: 13px; color: var(--gray-400); margin-bottom: 20px; }
.comments-password { color: var(--gray-700); padding: 20px; background: var(--green-lt); border-radius: var(--radius-sm); }
.no-comments { color: var(--gray-700); font-style: italic; padding: 16px; }

/* ── SEARCH RESULTS ───────────────────────────────────────────── */
.search-hero {
  background: linear-gradient(135deg, var(--green) 0%, var(--teal) 100%);
  padding: 48px 0 32px;
}
.search-title {
  color: var(--white);
  font-size: 1.7rem;
  margin-bottom: 20px;
}
.search-title span { text-decoration: underline; text-underline-offset: 4px; }
.search-page-form {
  display: flex;
  gap: 10px;
  max-width: 600px;
}
.search-page-form input[type="search"] {
  flex: 1;
  padding: 13px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  background: rgba(255,255,255,.95);
  color: var(--text);
}
.search-tabs {
  display: flex;
  gap: 4px;
  margin-top: 16px;
}
.search-tab {
  padding: 7px 18px;
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-radius: 50px;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}
.search-tab.active, .search-tab:hover {
  background: var(--white);
  color: var(--green);
}
.search-wrapper {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding-top: 36px;
  padding-bottom: 60px;
}
.search-results-count { color: var(--gray-400); font-size: 14px; margin-bottom: 20px; }
.search-results-list  { display: flex; flex-direction: column; gap: 20px; }
.search-result-item {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.search-result-item:hover { box-shadow: var(--shadow-md); }
.search-result-img-link {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-100);
}
.search-result-img-link img { width: 100%; height: 100%; object-fit: cover; }
.search-no-img { font-size: 40px; }
.search-result-body   { flex: 1; }
.search-result-meta   { font-size: 12px; color: var(--gray-400); margin-bottom: 6px; display: flex; flex-wrap: wrap; gap: 4px; }
.search-result-cat a  { color: var(--teal); text-decoration: none; }
.search-result-title  { font-size: 1.05rem; margin-bottom: 8px; }
.search-result-title a { color: var(--text); text-decoration: none; }
.search-result-title a:hover { color: var(--green); }
.search-result-excerpt { font-size: 13px; color: var(--gray-700); line-height: 1.6; margin-bottom: 12px; }
.search-result-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.search-result-price   { font-weight: 700; color: var(--green); font-size: 15px; }

/* Archive view toggle */
.archive-view-toggle { display: flex; gap: 4px; }
.view-btn {
  background: none;
  border: 1.5px solid var(--gray-400);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.view-btn.active { background: var(--green); border-color: var(--green); color: var(--white); }

/* ── GOOGLE FONTS PRELOAD ─────────────────────────────────────── */
/* @import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&display=swap'); */

/* ── ANIMATIONS ───────────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content { animation: fadeInUp .7s ease both; }

/* ── DARK MODE ────────────────────────────────────────────────── */
body.dark-mode .navbar,
body.dark-mode .modal-box,
body.dark-mode .product-card,
body.dark-mode .cat-card,
body.dark-mode .testimonial-card,
body.dark-mode .feature-card,
body.dark-mode .offer-card,
body.dark-mode .post-card,
body.dark-mode .search-result-item,
body.dark-mode .comment-body,
body.dark-mode .rx-upload-area {
  background: var(--gray-100);
}
body.dark-mode .search-bar,
body.dark-mode .modal-input,
body.dark-mode .modal-textarea,
body.dark-mode .comment-form input,
body.dark-mode .comment-form textarea {
  background: var(--gray-100);
  border-color: rgba(255,255,255,.1);
  color: var(--text);
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .products-grid    { grid-template-columns: repeat(3, 1fr); }
  .categories-grid  { grid-template-columns: repeat(4, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
  .hero .container    { grid-template-columns: 1fr; }
  .hero-visual        { display: none; }
  .rx-inner           { grid-template-columns: 1fr; }
  .rx-visual          { display: none; }
  .contact-inner      { grid-template-columns: 1fr; }
  .features-grid      { grid-template-columns: repeat(2, 1fr); }
  .offers-grid        { grid-template-columns: repeat(2, 1fr); }
  .search-wrapper     { grid-template-columns: 1fr; }
  .archive-wrapper    { grid-template-columns: 1fr; }
  .nav-menu           { display: none; }
  .hamburger          { display: flex; }
  .search-bar         { display: none; }
  .error-404-wrapper  { grid-template-columns: 1fr; text-align: center; }
  .error-404-visual   { display: none; }
}

@media (max-width: 680px) {
  .section             { padding: 56px 0; }
  .products-grid       { grid-template-columns: repeat(2, 1fr); }
  .categories-grid     { grid-template-columns: repeat(2, 1fr); }
  .features-grid       { grid-template-columns: 1fr; }
  .offers-grid         { grid-template-columns: 1fr; }
  .testimonials-grid   { grid-template-columns: 1fr; }
  .hero                { padding: 60px 0; }
  .hero-actions        { flex-direction: column; }
  .footer-grid         { grid-template-columns: 1fr; }
  .newsletter-inner    { flex-direction: column; }
  .posts-grid          { grid-template-columns: 1fr; }
  .topbar              { display: none; }
  .search-result-item  { flex-direction: column; }
  .search-result-img-link { width: 100%; height: 160px; }
  .error-404-search    { flex-direction: column; }
}

@media (max-width: 480px) {
  .container { padding-inline: 16px; }
  .products-grid { grid-template-columns: 1fr; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-box { padding: 24px 20px; }
}

/* ── PRINT ────────────────────────────────────────────────────── */
@media print {
  .navbar, .topbar, .whatsapp-float, .scroll-top, .toast-notification, footer { display: none !important; }
  .hero { color: #000; background: none; }
}
