@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700&family=Inter:wght@300;400;500;600;700&family=Poppins:wght@500;600;700&display=swap");

:root {
  --primary: #007cc2;
  --primary-dark: #005a8f;
  --primary-darker: #003d63;
  --accent: #00b4d8;
  --accent-light: #90e0ef;
  --success: #10b981;
  --text-main: #1a202c;
  --text-light: #64748b;
  --bg-light: #f4f7f9;
  --bg-soft: #eef4f8;
  --white: #ffffff;
  --border: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 124, 194, 0.06);
  --shadow: 0 4px 20px rgba(0, 124, 194, 0.08);
  --shadow-lg: 0 10px 40px rgba(0, 124, 194, 0.15);
  --shadow-xl: 0 20px 60px rgba(0, 124, 194, 0.2);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: "Inter", sans-serif;
  color: var(--text-main);
  background: var(--bg-light);
  line-height: 1.6;
  overflow-x: hidden;
  font-size: 14px;
  position: relative;
  -webkit-font-smoothing: antialiased;
  max-width: 100vw;
}

/* ============ REFINED TYPOGRAPHY ============ */
h1, h2, h3, h4, h5 {
  font-family: "Poppins", sans-serif;
  color: var(--primary-darker);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 700; }
h2 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; }

a { text-decoration: none; color: var(--primary); transition: var(--transition); }
a:hover { color: var(--accent); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }

img { max-width: 100%; height: auto; display: block; }
.product-image, .category-card, .hero-slider { position: relative; overflow: hidden; }
.product-image img, .category-card img, .hero-slider img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-weight: 600; font-size: 0.85rem;
  border-radius: var(--radius-sm); transition: var(--transition);
  cursor: pointer; border: none; text-align: center; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white); box-shadow: 0 4px 12px rgba(0, 124, 194, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 124, 194, 0.35); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 1.5px solid var(--primary-dark); }
.btn-outline:hover { background: var(--primary-dark); color: var(--white); }
.btn-whatsapp { background: #25d366; color: white; }
.btn-whatsapp:hover { background: #128c7e; color: white; transform: translateY(-2px); }

.top-bar {
  background: linear-gradient(90deg, var(--primary-darker), var(--primary-dark));
  color: var(--white); font-size: 0.74rem; padding: 7px 0;
}
.top-bar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.top-bar a { color: var(--white); margin-left: 16px; opacity: 0.9; }
.lang-switch {
  background: var(--accent); padding: 3px 11px; border-radius: var(--radius-sm);
  font-weight: 700; color: white !important; margin-left: 16px;
}

.site-header {
  background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06); position: sticky; top: 0; z-index: 1000;
}
.nav-inner { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; gap: 20px; min-height: 90px; }

.logo { display: flex; align-items: center; }
.logo img {
  height: 90px; width: auto; max-width: 300px; object-fit: contain;
  transition: var(--transition); filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
}
.logo:hover img { transform: scale(1.03); }

.desktop-nav { display: flex; align-items: center; gap: 24px; }
.desktop-nav > a, .dropdown > a {
  font-weight: 600; color: var(--primary-dark); font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.5px; position: relative;
  padding: 6px 0; cursor: pointer; display: flex; align-items: center; gap: 4px;
}
.desktop-nav > a::after, .dropdown > a::after {
  content: ""; position: absolute; width: 0; height: 2px; bottom: 0; left: 50%;
  background: var(--accent); transition: var(--transition); transform: translateX(-50%);
}
.desktop-nav > a:hover::after, .dropdown:hover > a::after, .desktop-nav > a.active::after { width: 100%; }

.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 10px); left: 0; background: var(--white);
  min-width: 230px; box-shadow: var(--shadow-lg); border-radius: var(--radius);
  padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: var(--transition); z-index: 200; border-top: 3px solid var(--accent);
}
.dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a { display: block; padding: 10px 20px; font-size: 0.85rem; color: var(--text-main); font-weight: 500; }
.dropdown-menu a:hover { background: var(--bg-soft); color: var(--primary); padding-left: 26px; }

.mobile-menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--primary-dark);
}
.mobile-nav { display: none; background: var(--white); box-shadow: var(--shadow); border-top: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block; padding: 13px 24px; color: var(--primary-dark);
  font-weight: 600; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}

.hero { background: linear-gradient(135deg, #e6f3fa 0%, var(--bg-soft) 100%); padding: 70px 0 90px; border-bottom: 1px solid var(--border); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 55px; align-items: center; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text p { font-size: 1rem; color: var(--text-light); margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-slider {
  width: 100%; height: 420px; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl); border: 6px solid var(--white); background: var(--primary-dark);
}
.hero-slider .slide { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slider .slide.active { opacity: 1; }

.stats-bar { background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker)); padding: 40px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
.stat-item h3 { font-size: 2.1rem; color: var(--white); margin-bottom: 2px; }
.stat-item p { font-size: 0.75rem; color: var(--accent-light); text-transform: uppercase; letter-spacing: 1.2px; }

.section-padding { padding: 70px 0; }
.section-title { text-align: center; font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-bottom: 12px; position: relative; padding-bottom: 16px; }
.section-title::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 50px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary)); border-radius: 2px;
}
.section-subtitle { text-align: center; color: var(--text-light); font-size: 0.92rem; max-width: 620px; margin: 0 auto 44px; }

.categories-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.category-card { height: 260px; border-radius: var(--radius-lg); box-shadow: var(--shadow); display: block; transition: var(--transition); }
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-xl); }
.category-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 61, 99, 0.95) 0%, transparent 100%);
  display: flex; align-items: flex-end; padding: 26px;
}
.category-overlay h3 { color: var(--white); font-size: 1.25rem; }

/* ========================================================= */
/* ============ ENHANCED PRODUCT CARDS ============ */
/* ========================================================= */

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

.product-card {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  border: 1px solid var(--border); display: flex; flex-direction: column;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; overflow: hidden;
}

.product-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--accent));
  background-size: 200% auto; opacity: 0; transition: opacity 0.4s ease; z-index: 3;
}

.product-card:hover::before { opacity: 1; animation: productAccentShift 3s linear infinite; }
@keyframes productAccentShift { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 124, 194, 0.15), 0 0 0 1px rgba(0, 180, 216, 0.08);
  border-color: transparent;
}

.product-image {
  height: 220px; background: linear-gradient(180deg, #fafcfe 0%, #f0f6fb 100%);
  padding: 20px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  transition: background 0.4s ease;
}
.product-card:hover .product-image { background: linear-gradient(180deg, #f0f8fe 0%, #e6f2fc 100%); }
.product-image img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  padding: 20px; transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.06); }

.product-info {
  padding: 18px 16px 20px; flex: 1; display: flex; flex-direction: column;
  text-align: center; gap: 10px; position: relative;
}
.product-info h3 { font-size: 0.92rem; margin-bottom: 0; flex: 1; transition: color 0.3s ease; }
.product-card:hover .product-info h3 { color: var(--primary); }

.product-info .btn { position: relative; overflow: hidden; z-index: 1; }
.product-info .btn::after {
  content: ""; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease; z-index: -1;
}
.product-info .btn:hover::after { left: 100%; }

/* ============ BLUE MEDICAL PRODUCT BUTTON ============ */
.product-info .btn-medical {
  position: relative; overflow: hidden; z-index: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 11px 18px; font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.3px; text-transform: uppercase; color: var(--white);
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none; border-radius: var(--radius-sm);
  box-shadow: 0 4px 12px rgba(0, 124, 194, 0.25);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-info .btn-medical::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 100%; height: 100%;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.28) 50%, transparent 80%);
  transition: left 0.6s ease; z-index: -1;
}
.product-info .btn-medical:hover {
  color: var(--white); transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 124, 194, 0.4);
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-darker) 100%);
}
.product-info .btn-medical:hover::before { left: 120%; }
.product-info .btn-medical:active { transform: translateY(0); box-shadow: 0 4px 10px rgba(0, 124, 194, 0.3); }

@media (max-width: 768px) { .product-info .btn-medical { padding: 9px 14px; font-size: 0.75rem; } }
@media (max-width: 480px) { .product-info .btn-medical { padding: 8px 12px; font-size: 0.7rem; } }

/* ============ END ENHANCED PRODUCT CARDS ============ */

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.feature-card {
  background: var(--white); padding: 30px 22px; border-radius: var(--radius);
  text-align: center; box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 58px; height: 58px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--accent-light), var(--accent));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: var(--white);
}

.cta-banner { background: linear-gradient(135deg, var(--primary), var(--primary-darker)); padding: 60px 0; text-align: center; color: white; }
.cta-banner h2 { color: white; margin-bottom: 12px; }
.cta-banner .btn { background: white; color: var(--primary-dark); margin-top: 20px; }

.partners-strip { background: var(--white); padding: 34px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.partners-strip .container { display: flex; justify-content: space-around; align-items: center; flex-wrap: wrap; gap: 26px; }
.partner-logo { font-family: "Poppins", sans-serif; font-size: 1.15rem; font-weight: 700; color: var(--primary-dark); opacity: 0.4; }

/* ============ CONTACT PAGE (NEW DESIGN) ============ */
.page-header {
  background: linear-gradient(135deg, rgba(0, 61, 99, 0.92), rgba(0, 124, 194, 0.85)), url("/images/hero-medical.jpg") center/cover;
  padding: 70px 0; text-align: center; color: var(--white); margin-bottom: 50px;
}
.page-header h1 { color: var(--white); margin-bottom: 10px; }
.page-header p { color: var(--accent-light); font-size: 0.95rem; }

.contact-page-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-heading { font-size: 1.5rem; margin-bottom: 10px; }
.contact-subtext { color: var(--text-light); font-size: 0.9rem; margin-bottom: 30px; }
.contact-cards { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.contact-card {
  background: var(--white); padding: 20px; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 15px;
}
.contact-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-card-content h4 { font-size: 0.95rem; margin-bottom: 5px; }
.contact-card-content p { font-size: 0.9rem; margin-bottom: 4px; line-height: 1.5;}
.contact-card-content p a { color: var(--text-main); font-weight: 600; }
.contact-note { font-size: 0.75rem; color: var(--text-light); }

.hours-box { background: var(--white); padding: 24px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.hours-box h4 { font-size: 1rem; margin-bottom: 15px; border-bottom: 2px solid var(--primary); padding-bottom: 8px; display: inline-block; }
.hours-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 8px 0; border-bottom: 1px dashed var(--border); }
.hours-row:last-child { border: none; }

.contact-right-section { display: flex; flex-direction: column; gap: 20px; }
.whatsapp-cta-box {
  background: var(--white); padding: 30px; border-radius: var(--radius);
  box-shadow: var(--shadow); border: 1px solid var(--border); text-align: center;
}
.wa-cta-icon {
  width: 60px; height: 60px; background: rgba(37, 211, 102, 0.1);
  color: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 15px;
}
.whatsapp-cta-box h3 { font-size: 1.2rem; margin-bottom: 10px; }
.whatsapp-cta-box p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 20px; }
.map-container { background: white; padding: 10px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.map-container iframe { width: 100%; height: 300px; border-radius: var(--radius-sm); border: none; }

/* ============ PARTNERS OF SUCCESS SLIDER ============ */
.reviews-slider-wrapper { position: relative; width: 100%; padding-bottom: 20px; }
.reviews-slider {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 10px 10px 30px 10px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.reviews-slider::-webkit-scrollbar { display: none; }
.reviews-slider .testimonial-card { flex: 0 0 85%; scroll-snap-align: center; display: flex; flex-direction: column; margin: 0; }
@media (min-width: 768px) { .reviews-slider .testimonial-card { flex: 0 0 calc(50% - 15px); } }
@media (min-width: 1024px) { .reviews-slider .testimonial-card { flex: 0 0 calc(33.333% - 20px); } }

.testimonial-card { background: var(--white); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); position: relative; }
.testimonial-stars { display: flex; gap: 3px; margin-bottom: 12px; color: #fbbf24; }
.testimonial-stars svg { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.testimonial-text { font-size: 0.88rem; color: var(--text-light); font-style: italic; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); display: flex; align-items: center; justify-content: center; color: white; font-weight: 700; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.slider-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); border: none; cursor: pointer; transition: var(--transition); }
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 10px; }

/* ============ SHOP & PRODUCT ============ */
.shop-layout { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 50px 0; }
.shop-sidebar { background: var(--white); padding: 22px; border-radius: var(--radius); box-shadow: var(--shadow); align-self: start; position: sticky; top: 110px; }

.category-list { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.category-list li a { display: block; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--bg-light); color: var(--text-main); font-weight: 600; font-size: 0.83rem; }
.category-list li a:hover, .category-list li a.active { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); transform: translateX(3px); }

.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 45px; padding: 50px 0; }
.product-gallery { background: var(--white); border-radius: var(--radius); padding: 35px; box-shadow: var(--shadow); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; min-height: 380px; position: relative; }
.product-gallery img { position: static; max-height: 400px; object-fit: contain; }
.product-meta { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.product-meta-badge { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; background: var(--bg-soft); border-radius: 30px; font-size: 0.76rem; font-weight: 600; color: var(--primary-dark); }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; margin-bottom: 50px; }
.info-card { background: var(--white); padding: 30px 26px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.service-card { background: var(--white); padding: 30px 24px; border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--border); }
.service-icon { width: 56px; height: 56px; background: linear-gradient(135deg, var(--primary), var(--accent)); border-radius: var(--radius); display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 18px; }

/* ============ WHATSAPP OVERRIDE ============ */
#wa-widget svg { width: 30px !important; height: 30px !important; stroke-width: 1.5; }

/* ============ FINAL FIXES ============ */
.footer-logo img { height: 45px; width: auto; background: white; padding: 6px 12px; border-radius: 6px; margin-bottom: 20px; display: block; }
#wa-widget button svg { width: 30px !important; height: 30px !important; stroke-width: 2; margin: 0; padding: 0; display: block; }

/* ============ HOMEPAGE UPGRADES ============ */
.floating-glass-card {
  position: absolute; bottom: 30px; left: -30px; background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px); padding: 15px 25px; border-radius: var(--radius-lg);
  display: flex; align-items: center; gap: 15px; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.5); z-index: 10;
}
.fg-icon {
  width: 45px; height: 45px; background: linear-gradient(135deg, var(--accent), var(--primary));
  color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.brands-strip { background: var(--white); padding: 30px 0; border-bottom: 1px solid var(--border); }
.brands-slider { display: flex; justify-content: center; align-items: center; gap: 40px; flex-wrap: wrap; }
.brand-logo-box img {
  height: 35px; width: auto; max-width: 120px; object-fit: contain;
  filter: grayscale(100%) opacity(0.6); transition: var(--transition);
}
.brand-logo-box img:hover { filter: grayscale(0%) opacity(1); }

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

.pro-card { transition: var(--transition); position: relative; }
.pro-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.product-meta-tags { display: flex; justify-content: center; gap: 10px; font-size: 0.75rem; color: var(--text-light); margin-bottom: 10px; }
.product-meta-tags span { display: flex; align-items: center; gap: 4px; }

.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px; }
.partner-card {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm); border: 1px solid var(--border); transition: var(--transition);
}
.partner-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--accent); }
.partner-card img { max-height: 60px; width: auto; object-fit: contain; }

/* ============ GLOBAL DYNAMIC BACKGROUND & WATERMARK ============ */
body::before {
  content: ""; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 55vh; height: 55vh; background-image: url("/images/logo.png");
  background-size: contain; background-repeat: no-repeat; background-position: center;
  opacity: 0.03; z-index: -1; pointer-events: none; animation: pulseWatermark 8s infinite alternate;
}
@keyframes pulseWatermark {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.02; }
  100% { transform: translate(-50%, -50%) scale(1.08); opacity: 0.05; }
}

.bg-animations { position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.med-shape {
  position: absolute; color: var(--accent); opacity: 0.15;
  font-family: monospace; font-size: 2.5rem; animation: floatShape 25s linear infinite;
}
@keyframes floatShape {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

/* ============ DYNAMIC HERO IMAGE (FLOATING & SOFT) ============ */
.hero { background: radial-gradient(circle at 10% 20%, #e6f3fa 0%, var(--bg-light) 90%); position: relative; overflow: hidden; border-bottom: none; }
.hero-image-wrapper { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-slider {
  border: none; border-radius: 30px; box-shadow: 0 30px 60px rgba(0, 124, 194, 0.15);
  position: relative; z-index: 2; animation: floatImage 6s ease-in-out infinite;
}
@keyframes floatImage {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}
.hero-image-wrapper::before {
  content: ""; position: absolute; width: 90%; height: 90%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.2), rgba(0, 124, 194, 0.1));
  border-radius: 50%; filter: blur(50px); z-index: 1;
}

/* ============ ANIMATED GLASSMORPHISM STATS BAR ============ */
.stats-bar { background: transparent; padding: 0; margin-top: -50px; position: relative; z-index: 10; }
.stats-grid {
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5); border-radius: var(--radius-lg);
  box-shadow: 0 20px 40px rgba(0, 124, 194, 0.1); padding: 35px 20px;
  max-width: 1000px; margin: 0 auto; transition: var(--transition);
}
.stats-grid:hover { transform: translateY(-5px); box-shadow: 0 30px 60px rgba(0, 124, 194, 0.15); }
.stat-item { position: relative; }
@media (min-width: 768px) {
  .stat-item:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 20%; height: 60%; width: 1px;
    background: linear-gradient(to bottom, transparent, var(--border), transparent);
  }
}
.stat-item h3 {
  font-size: 2.5rem; background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 5px; animation: pulseNumber 3s ease-in-out infinite alternate;
}
@keyframes pulseNumber { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
.stat-item p { font-size: 0.85rem; color: var(--text-light); font-weight: 600; letter-spacing: 0.5px; }

/* ============ DYNAMIC MEDICAL BACKGROUND ============ */
.medical-bg-wrap {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none; overflow: hidden; background-color: var(--bg-light);
}
.medical-bg-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(0, 124, 194, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 124, 194, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
  animation: gridMove 20s linear infinite;
}
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 40px 40px; } }

.floating-med-icon { position: absolute; color: var(--primary); opacity: 0.15; animation: floatMed 20s ease-in-out infinite; }
@keyframes floatMed {
  0% { transform: translateY(100vh) rotate(0deg) scale(0.8); opacity: 0; }
  20% { opacity: 0.2; }
  80% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(45deg) scale(1.2); opacity: 0; }
}

/* ============ ADVANCED HEADER ANIMATIONS ============ */
.top-bar {
  background: linear-gradient(90deg, var(--primary-darker), var(--primary-dark), var(--accent), var(--primary-dark), var(--primary-darker));
  background-size: 200% auto; animation: gradientShift 10s linear infinite;
}
@keyframes gradientShift { 0% { background-position: 0% center; } 100% { background-position: 200% center; } }

.desktop-nav > a { overflow: hidden; }
.desktop-nav > a::after {
  bottom: 0; left: 0; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}
.desktop-nav > a:hover::after, .desktop-nav > a.active::after { transform: scaleX(1); transform-origin: left; }

.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.section-header-flex .section-title { text-align: left; margin-bottom: 0; padding-bottom: 10px; display: inline-block; }
.section-header-flex .section-title::after { left: 0; transform: none; }

/* ============ AUTO-SCROLLING BRANDS MARQUEE ============ */
.brands-strip { background: var(--white); padding: 40px 0; border-bottom: 1px solid var(--border); overflow: hidden; }
.brand-marquee {
  position: relative; width: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.brand-marquee-track { display: flex; align-items: center; width: max-content; gap: 60px; animation: scrollMarquee 45s linear infinite; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 30px)); } }
.brand-marquee:hover .brand-marquee-track { animation-play-state: paused; }
.brand-logo-item { display: flex; align-items: center; justify-content: center; width: 220px; }
.brand-logo-item img { max-width: 100%; height: 85px; object-fit: contain; transition: transform 0.3s ease; }
.brand-logo-item img:hover { transform: scale(1.1); }

/* ============ PARTNERS MARQUEE ============ */
.partner-marquee {
  position: relative; width: 100%; overflow: hidden;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  touch-action: pan-y;
}
.partner-marquee-track { display: flex; align-items: center; width: max-content; gap: 60px; animation: scrollPartner 35s linear infinite; }
@keyframes scrollPartner { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 30px)); } }
.partner-marquee:hover .partner-marquee-track, .partner-marquee:active .partner-marquee-track { animation-play-state: paused; }
.partner-logo-item { display: flex; align-items: center; justify-content: center; width: 180px; }
.partner-logo-item img { max-width: 100%; height: 75px; object-fit: contain; transition: transform 0.3s ease; }
.partner-logo-item img:hover { transform: scale(1.1); }

/* ========================================================= */
/* ============ PREMIUM ANIMATED FOOTER (FIXED) ============ */
/* ========================================================= */

.site-footer { background: #001a2c; position: relative; overflow: hidden; margin-top: 80px; }
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--primary), var(--accent), transparent);
  background-size: 200% 100%; animation: footerGlow 4s linear infinite;
}
@keyframes footerGlow { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.footer-values-strip {
  width: 100%; background: rgba(0, 180, 216, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05); overflow: hidden; padding: 16px 0;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.footer-values-track { display: flex; align-items: center; width: max-content; animation: scrollValues 20s linear infinite; }
.footer-values-track:hover { animation-play-state: paused; }
.footer-values-track span {
  font-family: "Poppins", sans-serif; font-size: 0.85rem; font-weight: 600;
  color: var(--accent-light); text-transform: uppercase; letter-spacing: 2px;
  position: relative; padding: 0 32px 0 0; display: inline-flex;
  align-items: center; gap: 0; white-space: nowrap;
}
.footer-values-track span::after {
  content: "•"; position: static; display: inline-flex; align-items: center; justify-content: center;
  margin-left: 24px; width: auto; height: auto; background: none; border-radius: 0;
  box-shadow: none; color: var(--accent); font-size: 1.2rem; line-height: 1;
  transform: none; text-shadow: 0 0 8px rgba(0, 180, 216, 0.6); flex-shrink: 0;
}
@keyframes scrollValues { 0% { transform: translateX(0); } 100% { transform: translateX(calc(-50% - 30px)); } }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 50px; }
.footer-col h3 {
  color: var(--white); font-family: "Poppins", sans-serif; font-size: 1rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 25px; position: relative;
}
.footer-col h3::after { content: ""; position: absolute; bottom: -8px; left: 0; width: 30px; height: 2px; background: var(--accent); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 15px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.65); font-size: 0.9rem;
  display: inline-flex; align-items: center; gap: 10px; transition: all 0.3s ease;
}
.footer-col a:hover { color: var(--accent); transform: translateX(6px); }

.footer-logo { display: inline-block; margin-bottom: 20px; position: relative; }
.footer-logo img {
  height: 80px; width: auto; max-width: 280px; object-fit: contain;
  filter: drop-shadow(0 0 15px rgba(0, 180, 216, 0.2)) contrast(1.1) brightness(1.1);
  mix-blend-mode: screen; opacity: 0.95; transition: all 0.4s ease;
}
.footer-logo:hover img {
  opacity: 1; transform: scale(1.05);
  filter: drop-shadow(0 0 25px rgba(0, 180, 216, 0.4)) contrast(1.1) brightness(1.2);
}
.footer-desc { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; line-height: 1.8; margin-bottom: 20px; padding-right: 20px; }
.footer-address { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; color: rgba(255, 255, 255, 0.65); }
.footer-address svg { color: var(--accent); }
.wa-link { color: #25d366 !important; font-weight: 600; }
.wa-link:hover { color: #25d366 !important; text-shadow: 0 0 10px rgba(37, 211, 102, 0.5); }

.social-icons { display: flex; gap: 12px; margin-top: 25px; }
.social-icon {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center; color: white;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.social-icon:hover { transform: translateY(-6px) scale(1.1); background: var(--accent); color: white; box-shadow: 0 10px 20px rgba(0, 180, 216, 0.4); }

.footer-bottom { text-align: center; padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.05); font-size: 0.85rem; color: rgba(255, 255, 255, 0.4); }

/* ============ NEW HEADER STYLES ============ */
.top-bar-contact a {
  color: var(--white); margin-right: 20px; font-size: 0.8rem;
  display: inline-flex; align-items: center; gap: 6px; opacity: 0.9; transition: var(--transition);
}
.top-bar-contact a:hover { opacity: 1; color: var(--accent-light); }
.top-bar-social { display: flex; align-items: center; gap: 15px; }
.top-bar-social a { color: var(--white); opacity: 0.8; transition: var(--transition); display: flex; align-items: center; }
.top-bar-social a:hover { opacity: 1; color: var(--accent); transform: translateY(-2px); }

.mobile-nav a.active { background: var(--bg-soft); color: var(--primary); border-left: 4px solid var(--primary); }

/* ============ COMPACT & COLORFUL TRUST BADGES ============ */
.trust-badges-section { background: var(--white); padding: 30px 0; border-bottom: 1px solid var(--border); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.trust-card {
  display: flex; align-items: center; gap: 12px; padding: 15px 20px;
  background: var(--bg-light); border-radius: 12px; border: 1px solid transparent; transition: all 0.3s ease;
}
.trust-card:hover { background: var(--white); border-color: var(--border); box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05); transform: translateY(-3px); }
.trust-icon { width: 45px; height: 45px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all 0.3s ease; }
.trust-card:hover .trust-icon { transform: scale(1.1) rotate(-5deg); }
.trust-text h3 { font-size: 0.9rem; color: var(--primary-darker); margin: 0 0 3px 0; font-weight: 700; line-height: 1.2; }
.trust-text p { font-size: 0.75rem; color: var(--text-light); margin: 0; font-weight: 500; }

/* ============ PREMIUM WHATSAPP ICON SIZING ============ */
a[aria-label="WhatsApp"] svg, .wa-link svg, .social-icon svg, .wa-cta-icon svg, .footer-col a[href*="wa.me"] svg {
  width: 18px !important; height: 18px !important; fill: currentColor !important;
  display: inline-block; vertical-align: middle;
}
.wa-cta-icon svg { width: 36px !important; height: 36px !important; }
.social-icon svg { width: 18px !important; height: 18px !important; }
.top-bar-social a svg { width: 14px !important; height: 14px !important; }

/* ============ CINEMATIC FULL-WIDTH HERO ============ */
.hero-cinematic {
  position: relative; width: 100%; min-height: 650px; display: flex;
  align-items: center; overflow: hidden; background: var(--primary-darker);
}
.hero-bg-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-bg-slide {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; opacity: 0;
  transition: opacity 1.5s ease-in-out; transform: scale(1); animation: kenBurns 20s infinite alternate;
}
.hero-bg-slide.active { opacity: 1; }
@keyframes kenBurns { 0% { transform: scale(1); } 100% { transform: scale(1.1); } }
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  /* Reduced the opacity to let the natural colors show through */
  background: linear-gradient(90deg, rgba(0, 61, 99, 0.7) 0%, rgba(0, 61, 99, 0.4) 40%, rgba(0, 61, 99, 0.1) 100%);
  z-index: 2;
}
.hero-content-wrapper {
  position: relative; z-index: 3; display: flex;
  justify-content: space-between; align-items: center; padding: 60px 24px; width: 100%;
}
.hero-text-box { max-width: 600px; color: var(--white); }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(12px);
  color: var(--white); /* White looks cleaner than cyan */
  padding: 8px 18px; border-radius: 50px;
  font-weight: 600; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 1.5px; margin-bottom: 25px; 
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.pulse-dot {
  width: 8px; height: 8px; background: var(--accent); border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7); animation: pulseDot 2s infinite;
}

.hero-checks {
  display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 40px;
}

.hero-checks span {
  display: flex; align-items: center; gap: 8px; 
  font-size: 0.9rem; font-weight: 500; color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

.hero-checks svg { color: var(--success); }
@keyframes pulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(0, 180, 216, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 180, 216, 0); }
}
.hero-text-box h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5vw, 4rem); /* Larger, more impactful */
  font-weight: 700; /* Bold and authoritative */
  margin-bottom: 20px;
  line-height: 1.15;
  letter-spacing: -0.03em; /* Tighter letter spacing for modern look */
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Adds a soft shadow so text always readable */
}
.text-gradient { 
  background: linear-gradient(135deg, var(--accent-light), var(--accent)); 
  -webkit-background-clip: text; 
  -webkit-text-fill-color: transparent; 
  /* Added a drop shadow that works with transparent text */
  filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3)); 
}.hero-text-box p {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255, 255, 255, 0.9); /* Slightly off-white for elegance */
  margin-bottom: 40px;
  max-width: 550px;
  line-height: 1.6;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4); /* Shadow for readability */
}
.hero-checks { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 35px; }
.hero-checks span { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--white); }
.hero-checks svg { color: var(--success); }
.hero-floating-graphics {
  position: relative; width: 350px; height: 350px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
}
.floating-card {
  position: absolute; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(16px);
  padding: 16px 24px; border-radius: var(--radius-lg); display: flex;
  align-items: center; gap: 15px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.8); animation: floatCard 4s ease-in-out infinite alternate;
}
@keyframes floatCard { 0% { transform: translateY(0); } 100% { transform: translateY(-15px); } }

/* ========================================================= */
/* ============ FINAL RESPONSIVE FIXES ============ */
/* ========================================================= */

@media (max-width: 1024px) {
  .hero-grid, .shop-layout, .product-detail, .contact-page-layout, .hero-content-wrapper {
    grid-template-columns: 1fr; flex-direction: column; text-align: center;
  }
  .hero-content-wrapper { padding: 80px 24px; }
  .hero-text-box { max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-text-box p { margin: 0 auto 30px; }
  .hero-checks { justify-content: center; }
  .hero-floating-graphics { display: none; }
  .hero-overlay { background: linear-gradient(180deg, rgba(0, 61, 99, 0.7) 0%, rgba(0, 61, 99, 0.8) 100%); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .shop-sidebar { position: static; }
  .product-gallery { position: static; }
  .logo img { height: 65px; }
  .contact-page-layout { gap: 30px; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .section-header-flex { flex-direction: column; align-items: center; text-align: center; gap: 15px; }
  .section-header-flex > div { text-align: center; }
  .section-header-flex .section-title { text-align: center; }
  .section-header-flex .section-title::after { left: 50%; transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .desktop-nav { display: none !important; }
  .mobile-menu-toggle { display: block !important; }

  .top-bar .container { flex-direction: column; justify-content: center; text-align: center; gap: 5px; }
  .top-bar-contact { justify-content: center; }
  .top-bar-social { justify-content: center; }

  .logo img { height: 55px; }
  .hero-slider { height: 280px; }
  .hero-text-box h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }

  .hero-cinematic { min-height: 600px; padding-top: 100px; padding-bottom: 60px; }
  .hero-text-box h1 { font-size: 2.2rem; }

  .stats-bar { margin-top: 20px; padding: 20px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px; background: var(--white); }
  .stat-item h3 { font-size: 1.8rem; }

  .brand-marquee-track { gap: 30px; animation-duration: 30s; }
  .brand-logo-item { width: 140px; }
  .brand-logo-item img { height: 60px; }

  .partner-marquee-track { gap: 30px; animation-duration: 25s; }
  .partner-logo-item { width: 120px; }
  .partner-logo-item img { height: 60px; }

  .footer-values-track { animation-duration: 12s; }

  .categories-grid, .products-grid, .info-cards, .features-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-padding { padding: 40px 0; }
  .trust-grid { grid-template-columns: 1fr; gap: 10px; }
  .trust-badges-section { padding: 20px 0; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .product-card { border-radius: var(--radius); }
  .product-image { height: 160px; padding: 14px; }
  .product-image img { padding: 14px; }
  .product-info { padding: 14px 12px 16px; gap: 8px; }
  .product-info h3 { font-size: 0.82rem; }
  .product-info .btn { padding: 8px 14px; font-size: 0.75rem; }

  .footer-values-strip { padding: 12px 0; }
  .footer-values-track { gap: 20px; animation-duration: 14s; }
  .footer-values-track span { font-size: 0.72rem; letter-spacing: 1.2px; padding-right: 24px; }
  .footer-values-track span::after { margin-left: 18px; font-size: 1rem; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-image { height: 130px; padding: 10px; }
  .product-image img { padding: 10px; }
  .product-info { padding: 10px 8px 12px; gap: 6px; }
  .product-info h3 { font-size: 0.75rem; line-height: 1.3; }
  .product-info .btn { padding: 7px 10px; font-size: 0.68rem; }
  .product-meta-tags { font-size: 0.65rem; gap: 6px; flex-wrap: wrap; }
  .footer-values-track span { font-size: 0.65rem; letter-spacing: 1px; padding-right: 20px; }
  .footer-values-track span::after { margin-left: 14px; font-size: 0.9rem; }
}

/* ========================================================= */
/* ============ PRODUCT IMAGE SIZING (UPDATED) ============== */
/* ========================================================= */

.product-image {
  position: relative; width: 100%; height: 260px; padding: 10px;
  background: #ffffff; border-bottom: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; padding: 15px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.08); }
@media (max-width: 1024px) { .product-image { height: 240px; } }
@media (max-width: 768px) { .product-image { height: 220px; } .product-image img { padding: 10px; } }
@media (max-width: 480px) { .product-image { height: 180px; } }

.partner-logo-item img, .brand-logo-item img, .partner-card img { object-fit: contain; object-position: center; }

/* ========================================================= */
/* ============ PRODUCT IMAGE SIZING (FINAL FIX) ============ */
/* ========================================================= */

.product-image {
  position: relative; width: 100%; height: 260px; padding: 15px;
  background: #ffffff; border-bottom: 1px solid var(--border);
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.product-image img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: center; padding: 10px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.product-card:hover .product-image img { transform: scale(1.08); }
@media (max-width: 1024px) { .product-image { height: 240px; } }
@media (max-width: 768px) { .product-image { height: 220px; } }
@media (max-width: 480px) { .product-image { height: 180px; } }

/* ========================================================= */
/* ============ MASTER RTL & RESPONSIVE FIXES ============== */
/* ========================================================= */

html[lang="ar"] body, html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] .btn, html[lang="ar"] a {
  font-family: "Cairo", sans-serif;
}

.section-header-flex { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
[dir="rtl"] .section-header-flex { flex-direction: row-reverse; }
[dir="rtl"] .section-header-flex > div { text-align: right; }
[dir="rtl"] .section-header-flex .section-title { text-align: right; display: inline-block; }
[dir="rtl"] .section-header-flex .section-title::after { left: auto; right: 0; transform: none; }

[dir="rtl"] .section-title { text-align: center; }
[dir="rtl"] .section-title::after { left: 50%; right: auto; transform: translateX(-50%); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 20px; }
@media (max-width: 1024px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 20px; background: var(--white); border-radius: var(--radius-lg); }
}
.stat-item { text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.about-intro-box { max-width: 900px; margin: 0 auto 60px; text-align: center; }
[dir="rtl"] .about-intro-box { text-align: right; }
[dir="rtl"] .info-card, [dir="rtl"] .feature-card { text-align: right; }
[dir="rtl"] .feature-icon { margin-left: auto; margin-right: 0; }

.footer-col h3 {
  color: var(--white); font-family: "Poppins", sans-serif; font-size: 1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px;
  position: relative; display: inline-block;
}
[dir="rtl"] .footer-col h3 { text-align: right; }
[dir="rtl"] .footer-col h3::after { left: auto; right: 0; }

[dir="rtl"] .contact-heading, [dir="rtl"] .contact-subtext { text-align: right; }
[dir="rtl"] .contact-card { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .contact-card-content { text-align: right; width: 100%; }
[dir="rtl"] .contact-card-content h4, [dir="rtl"] .contact-card-content p { text-align: right; }
[dir="rtl"] .social-icons { justify-content: flex-start; }
[dir="rtl"] .whatsapp-cta-box h3, [dir="rtl"] .whatsapp-cta-box p { text-align: center; }

.services-intro-box { max-width: 900px; margin: 0 auto 60px; text-align: center; }
[dir="rtl"] .services-intro-box { text-align: right; }
[dir="rtl"] .service-card { text-align: right; }
[dir="rtl"] .service-icon { margin-left: auto; margin-right: 0; }

@media (max-width: 768px) {
  .container { padding: 0 20px !important; }
  .section-header-flex { flex-direction: column; align-items: flex-start; gap: 15px; }
  [dir="rtl"] .section-header-flex { align-items: flex-end; }
  [dir="rtl"] .section-header-flex > div, [dir="rtl"] .section-header-flex .section-title { text-align: right; width: 100%; }
  .section-header-flex .btn { width: fit-content; }
  [dir="rtl"] .section-header-flex .btn { align-self: flex-end; }
  .about-intro-box, .services-intro-box { padding: 0 10px; margin-bottom: 40px; }
  .about-intro-box h2, .services-intro-box h2 { font-size: 1.4rem; }
  .about-intro-box p, .services-intro-box p { font-size: 0.95rem; }
  .info-card, .feature-card, .service-card { padding: 25px 20px; }
}

[dir="rtl"] .brand-marquee-track { animation: scrollMarqueeRTL 25s linear infinite; }
@keyframes scrollMarqueeRTL { 0% { transform: translateX(0); } 100% { transform: translateX(calc(50% + 30px)); } }

[dir="rtl"] .partner-marquee-track { animation: scrollPartnerRTL 35s linear infinite; }
@keyframes scrollPartnerRTL { 0% { transform: translateX(0); } 100% { transform: translateX(calc(50% + 30px)); } }

[dir="rtl"] .footer-values-track { animation: scrollValuesRTL 20s linear infinite; }
@keyframes scrollValuesRTL { 0% { transform: translateX(0); } 100% { transform: translateX(calc(50% + 30px)); } }

[dir="rtl"] .brand-logo-item, [dir="rtl"] .partner-logo-item { display: flex; justify-content: center; align-items: center; }
[dir="rtl"] .testimonial-text { text-align: right; direction: rtl; font-style: normal; padding: 0 10px; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; justify-content: flex-end; gap: 12px; }
[dir="rtl"] .testimonial-author > div { text-align: right; }
[dir="rtl"] .testimonial-stars { justify-content: flex-end; margin-bottom: 15px; }

/* ========================================================= */
/* ============ PREMIUM INTRO CARD (About & Services) ====== */
/* ========================================================= */

.premium-intro-card {
  position: relative; max-width: 900px; margin: 0 auto 70px;
  background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 124, 194, 0.15); border-radius: var(--radius-lg);
  padding: 45px 50px; box-shadow: 0 20px 50px rgba(0, 124, 194, 0.08);
  text-align: center; overflow: hidden;
}
.premium-intro-accent {
  position: absolute; top: 0; bottom: 0; left: 0; width: 6px;
  background: linear-gradient(to bottom, var(--accent), var(--primary));
}
[dir="rtl"] .premium-intro-accent { left: auto; right: 0; }
.premium-intro-card h2 { font-size: 1.6rem; color: var(--primary-darker); margin-bottom: 20px; }
.premium-intro-card p { font-size: 1.05rem; color: var(--text-light); line-height: 1.8; margin-bottom: 15px; }
.premium-intro-card p:last-child { margin-bottom: 0; }
[dir="rtl"] .premium-intro-card { text-align: right; padding: 45px 50px 45px 40px; }
@media (max-width: 768px) {
  .premium-intro-card { padding: 30px 25px; margin-bottom: 50px; }
  [dir="rtl"] .premium-intro-card { padding: 30px 25px 30px 20px; }
  .premium-intro-card h2 { font-size: 1.35rem; }
  .premium-intro-card p { font-size: 0.95rem; }
}

/* ========================================================= */
/* ============ PREMIUM SERVICES CARDS ===================== */
/* ========================================================= */

.premium-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; margin-bottom: 60px; }
.premium-service-card {
  position: relative; background: var(--white); padding: 40px 30px;
  border-radius: var(--radius-lg); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: left; overflow: hidden; z-index: 1;
}
.premium-service-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, rgba(0, 180, 216, 0.05) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.4s ease; z-index: -1;
}
.premium-service-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0, 124, 194, 0.12); border-color: var(--accent); }
.premium-service-card:hover::before { opacity: 1; }
.psc-icon {
  width: 60px; height: 60px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; color: white;
  margin-bottom: 24px; box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1); transition: transform 0.4s ease;
}
.premium-service-card:hover .psc-icon { transform: scale(1.1) rotate(-5deg); }
.premium-service-card h3 { font-size: 1.15rem; color: var(--primary-darker); margin-bottom: 12px; font-weight: 700; }
.premium-service-card p { font-size: 0.95rem; color: var(--text-light); line-height: 1.7; margin: 0; }
[dir="rtl"] .premium-service-card { text-align: right; }
[dir="rtl"] .psc-icon { margin-left: auto; margin-right: 0; }
@media (max-width: 768px) {
  .premium-services-grid { grid-template-columns: 1fr; gap: 20px; }
  .premium-service-card { padding: 30px 20px; }
  .psc-icon { width: 50px; height: 50px; margin-bottom: 20px; }
}

/* ========================================================= */
/* ============ FIX REVIEWS SLIDER SCROLLING =============== */
/* ========================================================= */

.reviews-slider {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding: 10px 10px 30px 10px;
  -ms-overflow-style: none; scrollbar-width: none; width: 100%;
}
.reviews-slider::-webkit-scrollbar { display: none; }
.reviews-slider .testimonial-card { flex: 0 0 calc(33.333% - 16px); scroll-snap-align: start; display: flex; flex-direction: column; margin: 0; }
@media (max-width: 1023px) { .reviews-slider .testimonial-card { flex: 0 0 calc(50% - 12px); } }
@media (max-width: 767px) { .reviews-slider .testimonial-card { flex: 0 0 85%; } }
[dir="rtl"] .reviews-slider { direction: rtl; }
[dir="rtl"] .reviews-slider .testimonial-card { scroll-snap-align: start; }

/* ============ PROFESSIONAL DENSE PRODUCT GRID ============ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px; justify-content: center; align-items: stretch;
}
@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .product-card:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: 260px; margin: 0 auto; width: 100%; }
}
[dir="rtl"] .products-grid { direction: rtl; }

/* ========================================================= */
/* ============ FIX MOBILE HEADER ALIGNMENT ================ */
/* ========================================================= */

@media (max-width: 768px) {
  .section-header-flex { flex-direction: column !important; gap: 15px; width: 100%; }
  [dir="ltr"] .section-header-flex { align-items: flex-start !important; text-align: left !important; }
  [dir="ltr"] .section-header-flex > div { text-align: left !important; width: 100%; }
  [dir="ltr"] .section-header-flex .section-title { text-align: left !important; padding-bottom: 10px; }
  [dir="rtl"] .section-header-flex { align-items: flex-end !important; text-align: right !important; }
  [dir="rtl"] .section-header-flex > div { text-align: right !important; width: 100%; }
  [dir="rtl"] .section-header-flex .section-title { text-align: right !important; padding-bottom: 10px; }
  .section-header-flex .btn { width: fit-content !important; margin-top: 5px; }
}

/* ========================================================= */
/* ============ APPARENT BACKGROUND WATERMARK ============== */
/* ========================================================= */

.apparent-watermark {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90vw; max-width: 1000px; height: auto; object-fit: contain;
  opacity: 0.08; pointer-events: none; z-index: -1; filter: grayscale(100%);
}

/* ========================================================= */
/* ============ FINAL ANIMATED HEADER ====================== */
/* ========================================================= */

.site-header { 
  position: sticky; 
  background-color: #ffffff !important; /* Solid White */
  backdrop-filter: none !important; 
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important; /* Keeps the clean shadow */
}

/* Disable the animated gradient overlay */
.site-header::before {
  display: none !important;
}
@keyframes medicalWave { 0% { background-position: 0% 50%; } 100% { background-position: 100% 50%; } }
@media (max-width: 768px) {
  .site-header::before {
    background: linear-gradient(90deg,
      rgba(0, 180, 216, 0) 0%, rgba(0, 180, 216, 0.2) 25%,
      rgba(0, 124, 194, 0.35) 50%, rgba(0, 180, 216, 0.2) 75%,
      rgba(0, 180, 216, 0) 100%);
    background-size: 200% 100%; animation-duration: 8s;
  }
}

/* ========================================================= */
/* ============ CREATIVE NEWS & MEDIA CARD ================= */
/* ========================================================= */

.creative-news-card {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(135deg, var(--primary-darker) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg); overflow: hidden; position: relative;
  box-shadow: 0 20px 40px rgba(0, 61, 99, 0.2);
  transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none; color: white; min-height: 280px;
}
.creative-news-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px rgba(0, 61, 99, 0.3); }
.news-card-content { padding: 50px; flex: 1; z-index: 2; max-width: 60%; }
.news-card-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px);
  padding: 6px 16px; border-radius: 30px; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.news-card-title { font-size: clamp(1.5rem, 3vw, 2.2rem); color: white; margin-bottom: 15px; line-height: 1.2; }
.news-card-desc { font-size: 1rem; color: rgba(255, 255, 255, 0.8); margin-bottom: 30px; line-height: 1.6; max-width: 500px; }
.news-card-btn { background: white; color: var(--primary-dark); padding: 12px 28px; font-size: 0.9rem; border-radius: 30px; }
.creative-news-card:hover .news-card-btn { background: var(--accent); color: white; }
.news-card-visuals { position: relative; width: 40%; height: 100%; min-height: 280px; }
.nc-glow-1, .nc-glow-2 { position: absolute; border-radius: 50%; filter: blur(40px); }
.nc-glow-1 { width: 200px; height: 200px; background: rgba(0, 180, 216, 0.4); top: -50px; right: -50px; }
.nc-glow-2 { width: 150px; height: 150px; background: rgba(16, 185, 129, 0.3); bottom: -30px; left: 20px; }
.nc-floating-icon {
  position: absolute; width: 60px; height: 60px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); animation: floatNcIcon 4s ease-in-out infinite alternate;
}
@keyframes floatNcIcon { 0% { transform: translateY(0) rotate(0deg); } 100% { transform: translateY(-15px) rotate(5deg); } }
@media (max-width: 900px) {
  .creative-news-card { flex-direction: column; text-align: center; }
  .news-card-content { padding: 40px 30px; max-width: 100%; }
  .news-card-desc { margin: 0 auto 25px; }
  .news-card-visuals { display: none; }
}
[dir="rtl"] .news-card-content { text-align: right; }
@media (max-width: 900px) { [dir="rtl"] .news-card-content { text-align: center; } }

/* ========================================================= */
/* ============ PROFESSIONAL SIDEBAR TRADE CARD ============ */
/* ========================================================= */

.sidebar-trade-card {
  margin-top: 30px; padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius); border: 1px solid var(--border);
  box-shadow: 0 4px 15px rgba(0, 124, 194, 0.05);
  display: flex; flex-direction: column; align-items: center; text-align: center;
  transition: var(--transition);
}
.sidebar-trade-card:hover { box-shadow: 0 10px 25px rgba(0, 124, 194, 0.1); border-color: rgba(0, 124, 194, 0.3); }
.stc-icon-wrap {
  width: 50px; height: 50px; background: rgba(0, 124, 194, 0.08);
  border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 15px;
}
.stc-icon {
  width: 36px; height: 36px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 124, 194, 0.3);
}
.stc-content h4 { font-size: 1rem; font-weight: 700; color: var(--primary-darker); margin-bottom: 6px; }
.stc-content p { font-size: 0.75rem; color: var(--text-light); line-height: 1.4; margin-bottom: 15px; }
.stc-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; padding: 10px; background: transparent; color: var(--primary);
  border: 1px solid var(--primary); border-radius: var(--radius-sm);
  font-size: 0.8rem; font-weight: 700; text-decoration: none; transition: var(--transition);
}
.stc-btn:hover { background: var(--primary); color: white; }

/* ========================================================= */
/* ============ PROFESSIONAL TRADE-IN PAGE LAYOUT ========== */
/* ========================================================= */

.trade-in-layout { display: grid; grid-template-columns: 350px 1fr; gap: 40px; align-items: start; margin-bottom: 60px; }
.trade-in-info {
  background: var(--white); padding: 30px; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  position: sticky; top: 110px;
}
.trade-in-info h2 { font-size: 1.2rem; margin-bottom: 10px; }
.ti-lead { font-size: 0.9rem; color: var(--text-light); line-height: 1.6; margin-bottom: 25px; }
.ti-process-list { display: flex; flex-direction: column; gap: 20px; }
.ti-process-item { display: flex; gap: 15px; align-items: flex-start; }
.ti-number {
  width: 28px; height: 28px; background: var(--primary); color: white;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.ti-process-item h4 { font-size: 0.95rem; margin-bottom: 2px; }
.ti-process-item p { font-size: 0.8rem; color: var(--text-light); margin: 0; }

.professional-trade-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.prof-ti-card {
  background: var(--white); border-radius: var(--radius); border: 1px solid var(--border);
  overflow: hidden; transition: var(--transition); display: flex; flex-direction: column;
}
.prof-ti-card:hover { box-shadow: var(--shadow); border-color: var(--accent); transform: translateY(-3px); }
.prof-ti-img {
  position: relative; height: 160px; background: #f8fafc; display: flex;
  align-items: center; justify-content: center; padding: 15px; border-bottom: 1px solid var(--border);
}
.prof-ti-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.prof-ti-badge {
  position: absolute; top: 10px; right: 10px; background: var(--success);
  color: white; padding: 3px 10px; border-radius: 12px; font-size: 0.65rem;
  font-weight: 600; text-transform: uppercase;
}
.prof-ti-info { padding: 15px; flex: 1; display: flex; flex-direction: column; }
.prof-ti-info h4 { font-size: 0.95rem; margin-bottom: 5px; color: var(--primary-darker); }
.prof-ti-info p { font-size: 0.8rem; color: var(--text-light); line-height: 1.5; margin-bottom: 10px; flex: 1; }

@media (max-width: 1024px) { .trade-in-layout { grid-template-columns: 1fr; } .trade-in-info { position: static; } }
@media (max-width: 768px) { .professional-trade-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .professional-trade-grid { grid-template-columns: 1fr; } }

[dir="rtl"] .ti-process-item { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .prof-ti-badge { right: auto; left: 10px; }
[dir="rtl"] .prof-ti-info { text-align: right; }

/* ========================================================= */
/* ========================================================= */
/* ============ ⚡ FINAL DENSE GRID OVERRIDES ⚡ ============ */
/* ========================================================= */
/* ========================================================= */

/* 1. Grid Layout - Tight Gaps & 5 Columns on Desktop */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px; 
  justify-content: center;
  align-items: stretch;
}

@media (min-width: 1100px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  .shop-layout .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1024px) {
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}

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

@media (max-width: 480px) {
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
}

[dir="rtl"] .products-grid { direction: rtl; }

/* 2. The Card - Taller with rounded corners */
.product-card {
  border-radius: 16px;
  border: 1px solid transparent;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 124, 194, 0.12);
  border-color: transparent;
}

/* 3. The Image - Square aspect ratio */
.product-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto !important;
  padding: 15px;
  background: #ffffff;
  border-bottom: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 15px;
  transition: transform 0.4s ease;
}

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

/* 4. The Info Section - Compact and Left-aligned */
.product-info {
  padding: 12px 14px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
  gap: 6px;
}

[dir="rtl"] .product-info {
  text-align: right;
}

.product-info h3 {
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-main);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card:hover .product-info h3 {
  color: var(--primary);
}

/* Fake category subtitle */
.product-info::after {
  content: "Specialties, Medical Equipment";
  font-size: 0.7rem;
  color: var(--text-light);
  margin-bottom: 8px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Hide meta tags for a cleaner look */
.product-info .product-meta-tags {
  display: none; 
}

/* 5. The Button - Pill shaped dark blue */
.product-info .btn-medical {
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: capitalize;
  color: var(--white);
  background: #005a8f;
  border: none;
  border-radius: 30px;
  transition: all 0.3s ease;
}

.product-info .btn-medical:hover {
  background: #003d63;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 90, 143, 0.3);
}

@media (max-width: 768px) {
  .product-info { padding: 10px 10px 12px; }
  .product-info h3 { font-size: 0.78rem; }
  .product-info::after { font-size: 0.65rem; margin-bottom: 6px; }
  .product-info .btn-medical { padding: 8px 10px; font-size: 0.72rem; }
}






/* ========================================================= */
/* ============ STICKY SIDEBAR FIX ========================= */
/* ========================================================= */

/* Desktop: Sticky behavior */
@media (min-width: 1025px) {
  .shop-layout {
    /* This is the magic fix: start alignment + stretch prevention */
    align-items: start; 
  }

  .shop-sidebar.medical-sidebar {
    position: sticky !important;
    top: 100px !important; /* Adjust if your header is taller */
    max-height: calc(100vh - 110px);
    overflow-y: auto;
    
    /* Hide scrollbar for cleanliness */
    -ms-overflow-style: none;  
    scrollbar-width: none;  
  }
  
  .shop-sidebar.medical-sidebar::-webkit-scrollbar {
    display: none;
  }
}

/* Mobile & Tablet: Revert to normal flow */
@media (max-width: 1024px) {
  .shop-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .shop-sidebar.medical-sidebar {
    position: relative !important;
    top: 0 !important;
    max-height: none !important;
    width: 100%;
    margin-bottom: 20px;
  }
}



/* ========================================================= */
/* ============ SLEEK TRADE-IN CARD ======================== */
/* ========================================================= */

.sidebar-trade-card.pro-trade-card {
  padding: 16px !important;
  margin: 16px 14px 18px !important;
  background: linear-gradient(135deg, #f0f7fc 0%, #e0f2fe 100%);
  border-radius: var(--radius);
  border: 1px solid rgba(0, 124, 194, 0.15);
  box-shadow: none !important;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Remove the old animated top line */
.sidebar-trade-card.pro-trade-card::before {
  display: none !important;
}

/* Hover effect */
.sidebar-trade-card.pro-trade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 124, 194, 0.1) !important;
  border-color: var(--primary);
}

/* Top Row Layout */
.pro-trade-card .stc-header-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* The Icon Badge */
.pro-trade-card .stc-icon-wrap {
  width: 40px !important;
  height: 40px !important;
  background: var(--white) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 124, 194, 0.15);
}

/* Remove the pulsing ring */
.pro-trade-card .stc-icon-wrap::after {
  display: none !important;
}

.pro-trade-card .stc-icon {
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
  color: var(--primary) !important;
  box-shadow: none !important;
}

.pro-trade-card .stc-icon svg {
  width: 22px !important;
  height: 22px !important;
}

/* Text Section */
.pro-trade-card .stc-content {
  text-align: left;
}

[dir="rtl"] .pro-trade-card .stc-content {
  text-align: right;
}

.pro-trade-card .stc-content h4 {
  font-size: 0.9rem !important;
  font-weight: 700;
  color: var(--primary-darker);
  margin: 0 0 2px 0 !important;
  line-height: 1.2;
}

.pro-trade-card .stc-content p {
  font-size: 0.75rem !important;
  color: var(--text-light);
  margin: 0 !important;
  line-height: 1.3;
}

/* The Button */
.pro-trade-card .stc-btn {
  width: 100%;
  padding: 8px 12px !important;
  background: var(--white) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: var(--radius-sm);
  font-size: 0.75rem !important;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.pro-trade-card .stc-btn:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}

.pro-trade-card .stc-btn svg {
  width: 14px !important;
  height: 14px !important;
  margin: 0 !important;
}



/* ========================================================= */
/* ============ FINAL SLEEK TRADE-IN CARD ================== */
/* ========================================================= */

.sidebar-trade-card.pro-trade-card {
  padding: 16px !important;
  margin: 16px 14px 18px !important;
  background: linear-gradient(135deg, #f0f7fc 0%, #e0f2fe 100%) !important;
  border-radius: var(--radius) !important;
  border: 1px solid rgba(0, 124, 194, 0.15) !important;
  box-shadow: 0 4px 12px rgba(0, 124, 194, 0.05) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  overflow: hidden !important;
}

/* Hover effect */
.sidebar-trade-card.pro-trade-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 124, 194, 0.12) !important;
  border-color: var(--primary) !important;
}

/* Top Row: Icon + Text */
.pro-trade-card .stc-header-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* The Icon Badge - made smaller so text fits */
.pro-trade-card .stc-icon-wrap {
  width: 36px !important;
  height: 36px !important;
  background: var(--white) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 6px rgba(0, 124, 194, 0.15) !important;
  margin: 0 !important;
}

.pro-trade-card .stc-icon svg {
  width: 18px !important;
  height: 18px !important;
  color: var(--primary) !important;
}

/* Text Container */
.pro-trade-card .stc-content {
  flex: 1 !important;
  text-align: left !important;
}

[dir="rtl"] .pro-trade-card .stc-content {
  text-align: right !important;
}

/* Title - Force single line */
.pro-trade-card .stc-content h4 {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--primary-darker) !important;
  margin: 0 0 2px 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important; /* Prevents vertical breaking */
}

/* Subtitle */
.pro-trade-card .stc-content p {
  font-size: 0.72rem !important;
  color: var(--text-light) !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

/* The Button */
.pro-trade-card .stc-btn {
  width: 100% !important;
  padding: 8px 12px !important;
  background: var(--white) !important;
  color: var(--primary) !important;
  border: 1px solid var(--primary) !important;
  border-radius: var(--radius-sm) !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  margin-top: 4px !important;
  transition: all 0.3s ease !important;
}

.pro-trade-card .stc-btn:hover {
  background: var(--primary) !important;
  color: var(--white) !important;
}



/* ========================================================= */
/* ============ PERFECT STICKY SIDEBAR ===================== */
/* ========================================================= */

@media (min-width: 1025px) {
  .shop-layout {
    align-items: start !important; 
  }

  .shop-sidebar.medical-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    /* Increased from 100px to 130px to clear the header + top-bar */
    top: 130px !important; 
    max-height: calc(100vh - 150px) !important;
    overflow-y: auto !important;
    
    /* Hide scrollbar */
    -ms-overflow-style: none !important;  
    scrollbar-width: none !important;  
  }
  
  .shop-sidebar.medical-sidebar::-webkit-scrollbar {
    display: none !important;
  }
}


/* ========================================================= */
/* ============ FINAL MOBILE GRID FIX ====================== */
/* ========================================================= */

/* 1. Remove the fake subtitle on mobile so cards stay clean */
@media (max-width: 768px) {
  .product-info::after {
    display: none !important;
  }
  
  /* Ensure the mobile grid is exactly 2 columns */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* 2. Fix the stretching bug for the last item on mobile */
  /* Reset the old odd-item rule that was breaking the layout */
  .product-card:last-child:nth-child(odd) {
    grid-column: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }

  /* 3. BUT, if it's the ONLY item in the row (e.g., 5 items total), center it perfectly */
  .products-grid > .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1 !important; /* Span both columns */
    max-width: 50% !important; /* Make it the same width as a normal card */
    margin: 0 auto !important; /* Center it */
  }
}

/* For extra small screens */
@media (max-width: 480px) {
  .products-grid > .product-card:last-child:nth-child(odd) {
    max-width: 100% !important; /* On very small screens, let it fill the width */
  }
}


body.splash-active {
  overflow: hidden !important;
  height: 100vh;
}



/* ========================================================= */
/* ============ MOBILE HEADER & PADDING FIX ================ */
/* ========================================================= */

@media (max-width: 768px) {
  /* 1. Ensure the section has proper breathing room on the sides */
  .section-padding {
    padding: 40px 0;
  }
  
  /* 2. Fix the flex layout for "Shop by Category" and "Featured Products" */
  .section-header-flex {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0 20px !important; /* Adds padding so text doesn't touch edges */
    gap: 12px !important;
    margin-bottom: 20px !important;
  }

  /* 3. Force the Title and Subtitle to align left with proper spacing */
  [dir="ltr"] .section-header-flex > div {
    text-align: left !important;
    width: 100%;
  }

  /* 4. Style the title to be professional and padded */
  [dir="ltr"] .section-header-flex .section-title {
    text-align: left !important;
    padding-bottom: 8px !important;
    margin-bottom: 0 !important;
    font-size: 1.4rem !important; /* Slightly smaller for mobile */
  }

  /* 5. Ensure the underline sits on the left */
  [dir="ltr"] .section-header-flex .section-title::after {
    left: 0 !important;
    transform: none !important;
  }

  /* 6. Make the "View All" button sit neatly below the text */
  .section-header-flex .btn {
    width: fit-content !important;
    margin-top: 5px !important;
    padding: 8px 16px !important;
    font-size: 0.8rem !important;
  }

  /* RTL (Arabic) Support */
  [dir="rtl"] .section-header-flex {
    align-items: flex-end !important;
  }
  [dir="rtl"] .section-header-flex > div {
    text-align: right !important;
  }
  [dir="rtl"] .section-header-flex .section-title {
    text-align: right !important;
  }
  [dir="rtl"] .section-header-flex .section-title::after {
    right: 0 !important;
    left: auto !important;
  }
}



/* ========================================================= */
/* ============ SHOP SUBCATEGORY FILTER ==================== */
/* ========================================================= */

.shop-sidebar .category-list li a.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding-left: 14px !important;
  transform: translateX(3px);
  box-shadow: 0 4px 12px rgba(0, 124, 194, 0.2);
}

.shop-sidebar .category-list li a[style*="padding-left: 0"] {
  font-size: 0.8rem;
  padding-top: 6px;
  padding-bottom: 6px;
  border-left: 2px solid transparent;
  border-radius: 0;
}

.shop-sidebar .category-list li a[style*="padding-left: 0"]:hover {
  background: var(--bg-light) !important;
  color: var(--primary) !important;
  border-left-color: var(--primary);
  padding-left: 10px !important;
}

.shop-sidebar .category-list li a[style*="padding-left: 0"].active {
  background: transparent !important;
  color: var(--primary) !important;
  border-left-color: var(--primary) !important;
  font-weight: 700;
  box-shadow: none;
  padding-left: 10px !important;
}

/* Responsive tweaks for the sidebar filter */
@media (max-width: 768px) {
  .shop-sidebar .category-list li a[style*="padding-left: 0"] {
    padding: 10px 12px;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    margin-bottom: 5px;
    border-left: none;
    text-align: center;
  }
  .shop-sidebar .category-list li a[style*="padding-left: 0"].active {
    background: var(--primary) !important;
    color: var(--white) !important;
  }
}

/* Force page to load instantly without fading */
body {
  animation: none !important;
  transition: none !important;
  opacity: 1 !important;
}


/* ========================================================= */
/* ============ HOMEPAGE MARQUEE UNIFIED SPEED (GLOBAL) ===== */
/* ========================================================= */
.brand-marquee-track,
.partner-marquee-track {
  animation-duration: 30s !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
  will-change: transform;
}
@media (max-width: 1024px) {
  .brand-marquee-track,
  .partner-marquee-track { animation-duration: 22s !important; }
}
@media (max-width: 768px) {
  .brand-marquee-track,
  .partner-marquee-track { animation-duration: 18s !important; }
}
@media (max-width: 480px) {
  .brand-marquee-track,
  .partner-marquee-track { animation-duration: 15s !important; }
}

/* Hide category badges on all News, Events, and Homepage cards */
.news-category-badge,
.hnc-category {
  display: none !important;
}

/* Hide category badges, dates, and icons on all cards */
.news-category-badge,
.hnc-category,
.news-date,
.hnc-date,
.fnc-date {
  display: none !important;
}