/*
Theme Name: Ebar Bio - إيبار بايو
Theme URI: https://ebarbio.com/
Author: Elgendy Marketing
Author URI: https://elgendy-marketing.com/
Description: قالب المتجر الطبي النباتي الرسمي لإيبار بايو Ebar Bio (Botanical & Clinical Cosmeceuticals)، مبني بدقة على واجهات وتصاميم Google Stitch، متوافق 100% مع ووكومرس وإليمنتور، يدعم الشراء السريع بنقرة واحدة (الدفع عند الاستلام)، وتحديد الموقع بخرائط جوجل، ومقياس جودة العنوان المصري، وحساب الشحن التلقائي للمحافظات والمراكز، والاستشارة الصيدلانية المباشرة عبر الواتساب.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ebar-bio
Tags: e-commerce, clinical-botanical, custom-colors, custom-menu, featured-images, full-width-template, rtl-language-support, translation-ready, woocommerce, elementor
*/

/* ==========================================================================
   Ebar Bio Design Tokens & Color Variables (Botanical Cosmeceutical RTL)
   ========================================================================== */
:root {
  --color-primary: #006c50;
  --color-on-primary: #ffffff;
  --color-primary-container: #57b894;
  --color-on-primary-container: #004532;
  --color-primary-fixed: #94f5ce;
  --color-primary-fixed-dim: #78d9b3;

  --color-mint-light: #E8F7F1;
  --color-mint-glow: #7ED9B5;
  --color-sage-wash: #EDF6F3;

  --color-secondary: #864784;
  --color-on-secondary: #ffffff;
  --color-secondary-container: #fdb0f5;
  --color-on-secondary-container: #7b3d79;
  --color-plum-soft: #F5ECF4;
  --color-plum-deep: #5E2750;

  --color-tertiary: #36675b;
  --color-on-tertiary: #ffffff;
  --color-tertiary-container: #7fb1a3;

  --color-clinical-amber: #E67E22;
  --color-supplement-ruby: #C0392B;

  --color-background: #f8f9ff;
  --color-on-background: #121c2a;

  --color-surface: #f8f9ff;
  --color-on-surface: #121c2a;
  --color-on-surface-variant: #3e4943;
  --color-surface-dim: #d0dbed;
  --color-surface-bright: #f8f9ff;
  --color-surface-alabaster: #FAF9F6;
  --color-surface-card: #FFFFFF;

  --color-surface-container-lowest: #ffffff;
  --color-surface-container-low: #eff4ff;
  --color-surface-container: #e6eeff;
  --color-surface-container-high: #dee9fc;
  --color-surface-container-highest: #d9e3f6;

  --color-border-subtle: #E5EBE8;
  --color-outline: #6e7a73;
  --color-outline-variant: #bdc9c2;
  --color-text-muted: #6B7280;

  --color-error: #ba1a1a;
  --color-on-error: #ffffff;
  --color-error-container: #ffdad6;
  --color-on-error-container: #93000a;
}

/* Base Body & Viewport Reset */
html {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Cairo', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-surface-alabaster);
  color: var(--color-on-surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  position: relative;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

/* Strict Logo Constraints */
.site-logo-img,
.custom-logo,
header a img,
header .site-logo-img,
header img[src*="ebar_bio_logo"],
header img[src*="logo"],
a.site-logo-link img {
  max-height: 48px !important;
  height: 48px !important;
  width: auto !important;
  max-width: 180px !important;
  object-fit: contain !important;
  display: inline-block !important;
}

@media (max-width: 768px) {
  .site-logo-img,
  .custom-logo,
  header a img,
  header .site-logo-img,
  header img[src*="ebar_bio_logo"],
  header img[src*="logo"],
  a.site-logo-link img {
    max-height: 36px !important;
    height: 36px !important;
    max-width: 130px !important;
  }
}

footer .footer-logo-img,
footer img[src*="ebar_bio_logo"],
footer img[src*="logo"] {
  max-height: 44px !important;
  height: 44px !important;
  width: auto !important;
  max-width: 160px !important;
  object-fit: contain !important;
  display: inline-block !important;
}

/* Material Symbols Integration */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.material-symbols-fill {
  font-variation-settings: 'FILL' 1 !important;
}

/* Clinical Frosted Glass Backdrop */
.clinical-glass {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Botanical Product Halo Aura */
.product-halo {
  background: radial-gradient(circle, rgba(126, 217, 181, 0.22) 0%, rgba(245, 236, 244, 0.15) 50%, transparent 75%);
}

/* Custom Smooth Scrollbar */
.custom-scroll::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.custom-scroll::-webkit-scrollbar-track {
  background: var(--color-surface-alabaster);
}
.custom-scroll::-webkit-scrollbar-thumb {
  background: var(--color-outline-variant);
  border-radius: 9999px;
}
.custom-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-container);
}

/* Responsive Desktop Navigation & Hero Switcher (Strictly Enforced) */
@media screen and (max-width: 1023px) {
  .noor-header-menu-container,
  nav.noor-header-menu-container,
  header nav.noor-header-menu-container,
  header .noor-header-nav,
  ul.noor-header-nav {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute !important;
    left: -9999px !important;
  }
  #mobile-menu-panel.hidden {
    display: none !important;
  }
  .mobile-hero-wrapper {
    display: block !important;
    visibility: visible !important;
  }
  .desktop-hero-wrapper {
    display: none !important;
    visibility: hidden !important;
  }
}

@media screen and (min-width: 1024px) {
  .noor-header-menu-container,
  nav.noor-header-menu-container,
  header nav.noor-header-menu-container {
    display: flex !important;
  }
  #mobile-menu-panel,
  #mobile-menu-btn {
    display: none !important;
  }
  .mobile-hero-wrapper {
    display: none !important;
    visibility: hidden !important;
  }
  .desktop-hero-wrapper {
    display: grid !important;
    visibility: visible !important;
  }
}

/* Product Card Price Formatting */
.product-card-price {
  font-family: 'Plus Jakarta Sans', 'Cairo', sans-serif !important;
  font-size: 0.8125rem !important;
  font-weight: 800 !important;
  color: #006c50 !important;
}
@media (min-width: 640px) {
  .product-card-price {
    font-size: 0.9375rem !important;
  }
}
.product-card-price del {
  font-size: 0.6875rem !important;
  color: #94a3b8 !important;
}

/* ==========================================================================
   TOP ANNOUNCEMENT RIBBON MARQUEE TICKER (Smooth 60fps Infinite Scroll)
   ========================================================================== */
.top-announcement-ticker {
  background-color: #006c50 !important;
  color: #ffffff !important;
  overflow: hidden !important;
  width: 100% !important;
  max-width: 100vw !important;
  direction: ltr !important;
  user-select: none !important;
  -webkit-user-select: none !important;
}

.top-announcement-ticker .ticker-track {
  display: flex !important;
  width: max-content !important;
  animation: announcement-ticker-scroll 28s linear infinite !important;
  will-change: transform !important;
}

.top-announcement-ticker:hover .ticker-track,
.top-announcement-ticker:active .ticker-track {
  animation-play-state: paused !important;
}

.top-announcement-ticker .ticker-content {
  display: flex !important;
  align-items: center !important;
  direction: rtl !important;
  flex-shrink: 0 !important;
}

@keyframes announcement-ticker-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (max-width: 640px) {
  .top-announcement-ticker .ticker-track {
    animation-duration: 22s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .top-announcement-ticker .ticker-track {
    animation-duration: 50s !important;
  }
}
