/*
Theme Name: Ahmed Jihad Pharmacy
Theme URI: https://ahmedjihad.com
Author: Ahmed Jihad
Author URI: https://ahmedjihad.com
Description: ثيم صيدلية أحمد جهاد - متجر صيدلاني متكامل
Version: 1.0.0
Text Domain: ahmed-jihad
Tags: rtl-language, arabic, pharmacy, woocommerce
*/

/* ===== CSS Variables ===== */
:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --primary-light: #1976D2;
  --primary-lighter: #E3F2FD;
  --primary-gradient: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
  --secondary: #0288D1;
  --accent: #00BCD4;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-300: #cbd5e1;
  --gray-500: #64748b;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --shadow-sm: 0 1px 3px rgba(21, 101, 192, 0.08);
  --shadow-md: 0 4px 20px rgba(21, 101, 192, 0.12);
  --shadow-lg: 0 10px 40px rgba(21, 101, 192, 0.18);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
  direction: rtl;
  text-align: right;
  background: var(--gray-50);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

/* ===== Top Bar ===== */
.top-bar {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 8px 0;
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.9); }
.top-bar a:hover { color: var(--white); }

/* ===== Header ===== */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-main {
  padding: 15px 0;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo img { height: 60px; width: auto; }
.site-logo .logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}
.site-logo .logo-sub {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Search Bar */
.header-search {
  flex: 1;
  max-width: 600px;
  margin: 0 20px;
}
.search-box {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border: 2px solid var(--gray-200);
  border-radius: 50px;
  overflow: hidden;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(21, 101, 192, 0.1);
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-size: 15px;
  font-family: inherit;
  direction: rtl;
  outline: none;
}
.search-box button {
  background: var(--primary-gradient);
  border: none;
  color: var(--white);
  padding: 12px 22px;
  cursor: pointer;
  font-size: 16px;
  transition: var(--transition);
}
.search-box button:hover { background: var(--primary-dark); }

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-right: auto;
}
.header-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--gray-700);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.header-action-btn:hover { background: var(--primary-lighter); color: var(--primary); }
.header-action-btn .icon { font-size: 22px; }
.header-action-btn .badge {
  position: absolute;
  top: 4px;
  left: 4px;
  background: var(--primary);
  color: var(--white);
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-login:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }

/* ===== Main Navigation ===== */
.main-nav {
  background: var(--primary-dark);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
}
.main-nav ul li a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,0.9);
  padding: 14px 18px;
  font-size: 14px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li.current-menu-item > a {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}
.main-nav ul li .icon { font-size: 16px; }

/* Mega Menu */
.has-mega-menu { position: relative; }
.mega-menu {
  position: absolute;
  top: 100%;
  right: 0;
  width: 800px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 25px;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  z-index: 999;
}
.has-mega-menu:hover .mega-menu { display: grid; }
.mega-menu-col h4 {
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-lighter);
}
.mega-menu-col ul li a {
  color: var(--text-main);
  font-size: 12px;
  padding: 4px 0;
  display: block;
}
.mega-menu-col ul li a:hover { color: var(--primary); padding-right: 5px; }

/* ===== Container ===== */
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Hero Slider ===== */
.hero-section {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 600px;
  height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-text .badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  backdrop-filter: blur(10px);
}
.hero-text h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}
.hero-text p {
  font-size: 17px;
  opacity: 0.9;
  margin-bottom: 30px;
}
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-white {
  background: var(--white);
  color: var(--primary);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 15px;
  transition: var(--transition);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-outline {
  border: 2px solid rgba(255,255,255,0.7);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  transition: var(--transition);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.hero-image { text-align: center; }
.hero-image img { max-height: 350px; filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); }

/* ===== Stats Bar ===== */
.stats-bar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 20px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  text-align: center;
}
.stat-item {
  padding: 15px;
  border-left: 1px solid var(--gray-200);
}
.stat-item:last-child { border-left: none; }
.stat-number {
  font-size: 28px;
  font-weight: 900;
  color: var(--primary);
  display: block;
}
.stat-label { font-size: 13px; color: var(--text-muted); font-weight: 500; }

/* ===== Section Title ===== */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.section-title p { color: var(--text-muted); font-size: 16px; }
.section-title .line {
  width: 60px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
  margin: 12px auto 0;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
.section-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-header h2::before {
  content: '';
  width: 4px;
  height: 24px;
  background: var(--primary-gradient);
  border-radius: 2px;
  display: inline-block;
}
.view-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}
.view-all:hover { text-decoration: underline; }

/* ===== Category Cards ===== */
.categories-section { padding: 50px 0; }
.cats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 15px;
}
.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 15px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}
.cat-icon {
  font-size: 40px;
  display: block;
  margin-bottom: 10px;
}
.cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--gray-700);
}

/* ===== Product Cards ===== */
.products-section { padding: 20px 0 50px; }
.products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--gray-200);
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary-gradient);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 1;
}
.product-badge.sale { background: linear-gradient(135deg, #f44336, #e91e63); }
.product-wishlist {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--white);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  font-size: 16px;
  transition: var(--transition);
  z-index: 1;
}
.product-wishlist:hover { color: var(--primary); transform: scale(1.1); }
.product-img {
  padding: 20px;
  text-align: center;
  background: var(--gray-50);
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-img img { max-height: 130px; object-fit: contain; }
.product-info { padding: 15px; }
.product-brand {
  font-size: 11px;
  color: var(--primary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 5px 0 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.product-rating { display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.stars { color: #f59e0b; font-size: 12px; }
.rating-count { font-size: 11px; color: var(--text-muted); }
.product-price { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.price-current {
  font-size: 18px;
  font-weight: 900;
  color: var(--primary);
}
.price-old {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
}
.price-currency { font-size: 13px; font-weight: 600; }
.btn-add-cart {
  width: 100%;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-add-cart:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-add-cart.prescription {
  background: linear-gradient(135deg, #757575, #424242);
}

/* ===== Offers Banner ===== */
.offers-section { padding: 30px 0; }
.offers-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offer-banner {
  border-radius: var(--radius-lg);
  padding: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  position: relative;
  color: var(--white);
}
.offer-banner-1 { background: var(--primary-gradient); }
.offer-banner-2 { background: linear-gradient(135deg, #00796B, #00BCD4); }
.offer-text h3 { font-size: 24px; font-weight: 900; margin-bottom: 8px; }
.offer-text p { opacity: 0.9; margin-bottom: 16px; }
.btn-offer {
  background: var(--white);
  color: var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 800;
  font-size: 14px;
  display: inline-block;
  transition: var(--transition);
}
.offer-banner-2 .btn-offer { color: #00796B; }
.btn-offer:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.offer-img { font-size: 80px; opacity: 0.3; position: absolute; left: 20px; bottom: -10px; }

/* ===== Services Section ===== */
.services-section {
  background: var(--primary-lighter);
  padding: 50px 0;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 20px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 70px;
  height: 70px;
  background: var(--primary-lighter);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 30px;
  color: var(--primary);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--primary-gradient);
  color: var(--white);
}
.service-card h3 { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.service-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== Brands ===== */
.brands-section { padding: 40px 0; background: var(--white); }
.brands-grid {
  display: flex;
  gap: 20px;
  align-items: center;
  overflow-x: auto;
  padding: 10px 0;
}
.brand-item {
  flex-shrink: 0;
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  min-width: 120px;
  transition: var(--transition);
  border: 2px solid transparent;
}
.brand-item:hover { border-color: var(--primary); background: var(--primary-lighter); }
.brand-item img { max-height: 50px; filter: grayscale(100%); opacity: 0.7; transition: var(--transition); }
.brand-item:hover img { filter: grayscale(0); opacity: 1; }

/* ===== Prescription Section ===== */
.prescription-section {
  background: var(--primary-gradient);
  padding: 50px 0;
  color: var(--white);
  text-align: center;
}
.prescription-section h2 { font-size: 32px; font-weight: 900; margin-bottom: 12px; }
.prescription-section p { font-size: 17px; opacity: 0.9; margin-bottom: 30px; }
.prescription-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin: 40px 0;
}
.presc-step {
  text-align: center;
  position: relative;
}
.presc-step::after {
  content: '←';
  position: absolute;
  left: -20px;
  top: 30px;
  font-size: 24px;
  opacity: 0.5;
}
.presc-step:last-child::after { display: none; }
.step-num {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 24px;
  font-weight: 900;
  backdrop-filter: blur(10px);
}
.presc-step h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.presc-step p { font-size: 13px; opacity: 0.8; }

/* ===== Blog ===== */
.blog-section { padding: 50px 0; }
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-img { height: 200px; overflow: hidden; }
.blog-img img { width: 100%; height: 100%; object-fit: cover; transition: var(--transition); }
.blog-card:hover .blog-img img { transform: scale(1.05); }
.blog-content { padding: 20px; }
.blog-cat {
  display: inline-block;
  background: var(--primary-lighter);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 10px;
}
.blog-content h3 { font-size: 16px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.blog-content p { font-size: 13px; color: var(--text-muted); }
.blog-meta { display: flex; gap: 15px; margin-top: 15px; font-size: 12px; color: var(--text-muted); }

/* ===== Footer ===== */
.site-footer { background: var(--gray-900); color: var(--white); }
.footer-top { padding: 50px 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-about .logo-text { color: var(--white); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.footer-about p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.8; margin-bottom: 20px; }
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 16px;
  transition: var(--transition);
}
.social-link:hover { background: var(--primary); color: var(--white); }
.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--white); padding-right: 5px; }
.footer-contact-item { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-contact-item .icon { color: var(--primary-light); font-size: 18px; }
.footer-contact-item span { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-bottom {
  background: rgba(0,0,0,0.3);
  padding: 18px 0;
  text-align: center;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 13px; }
.footer-bottom span { color: var(--primary-light); font-weight: 700; }

/* ===== Mini Cart Sidebar ===== */
.cart-sidebar {
  position: fixed;
  left: -400px;
  top: 0;
  width: 380px;
  height: 100vh;
  background: var(--white);
  box-shadow: -5px 0 30px rgba(0,0,0,0.2);
  z-index: 9999;
  transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.cart-sidebar.open { left: 0; }
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  display: none;
}
.cart-overlay.show { display: block; }
.cart-header {
  background: var(--primary-gradient);
  color: var(--white);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.cart-header h3 { font-size: 18px; font-weight: 800; }
.cart-close { background: none; border: none; color: var(--white); font-size: 22px; cursor: pointer; }
.cart-body { flex: 1; overflow-y: auto; padding: 20px; }
.cart-footer { padding: 20px; border-top: 1px solid var(--gray-200); }
.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: 15px;
}
.btn-checkout {
  width: 100%;
  background: var(--primary-gradient);
  color: var(--white);
  border: none;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: var(--transition);
}
.btn-checkout:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ===== Sticky CTA ===== */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 12px 20px;
  display: none;
  justify-content: space-around;
  z-index: 998;
}
@media (max-width: 768px) { .sticky-cta { display: flex; } }

/* ===== Responsive ===== */
@media (max-width: 1200px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .main-nav { display: none; }
  .hero-text h1 { font-size: 28px; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .offers-grid { grid-template-columns: 1fr; }
  .prescription-steps { grid-template-columns: repeat(2, 1fr); }
}

/* ===== WooCommerce Custom Styles ===== */
.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count { font-family: 'Cairo', sans-serif; }
.woocommerce a.button, .woocommerce button.button {
  background: var(--primary-gradient);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
}
.woocommerce a.button:hover, .woocommerce button.button:hover {
  background: var(--primary-dark);
  color: var(--white);
}
.woocommerce .star-rating span::before { color: #f59e0b; }
.woocommerce .price { color: var(--primary); font-weight: 900; }
.woocommerce nav.woocommerce-pagination ul li a:focus,
.woocommerce nav.woocommerce-pagination ul li a:hover,
.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--primary);
  color: var(--white);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
.fade-in { animation: fadeInUp 0.6s ease forwards; }
.pulse { animation: pulse 2s infinite; }

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }
