/* ============================================================
   PLAY CONCEPT — GLOBAL LAYOUT (header, footer)
   Loaded on every page.
   ============================================================ */

:root {
  --color-primary:       #3AAA35;
  --color-secondary:     #2255A4;
  --color-accent-red:    #E03030;
  --color-accent-yellow: #F5C400;
  --color-dark:          #1a1a1a;
  --color-text:          #555555;
  --color-bg-light:      #f7fdf4;
  --color-border:        #e8e8e8;
  --font-main:           'Heebo', sans-serif;
  --font-title:          'Heebo', sans-serif;
  --header-height:       80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-main);
  direction: rtl;
}


/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  position: sticky !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  z-index: 1000 !important;
  background: #1a2a1a !important;
  border-bottom: none !important;
  height: 80px !important; /* fallback */
  height: var(--header-height) !important;
  box-sizing: border-box !important;
  padding: 0 2rem !important;
  transition: box-shadow 0.3s ease;
  overflow: visible !important;
}

.site-header.sticky,
.site-header.fixed {
  overflow: visible !important;
}

.site-header::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #3AAA35 0%, #2255A4 33%, #E03030 66%, #F5C400 100%);
  z-index: 1;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.site-header .header-inner,
.site-header .header-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 80px !important; /* fallback */
  height: var(--header-height) !important;
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  gap: 2rem !important;
}

/* ============================================================
   LOGO
   ============================================================ */
.header-logo {
  flex-shrink: 0;
}

.header-logo a,
.header-logo .custom-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.custom-logo,
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header img.custom-logo,
.site-header img {
  max-height: 65px !important;
  width: auto !important;
  object-fit: contain !important;
  display: block !important;
}

.site-header .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
  max-height: 80px !important;
  margin-left: 1.5rem !important;
  text-decoration: none;
}

.site-name-link {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 900;
  color: #3AAA35;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: -0.3px;
  line-height: 1;
}

.site-name-link:hover {
  color: #2d8a29;
}

/* ============================================================
   LOGO CIRCLE
   ============================================================ */
.logo-circle-wrap {
  width: 90px;
  height: 90px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  top: 14px;
  z-index: 200;
}

.logo-circle-wrap .custom-logo-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  margin-left: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

.logo-circle-wrap img,
.logo-circle-wrap .custom-logo {
  width: 78px !important;
  height: 78px !important;
  max-height: 78px !important;
  object-fit: contain !important;
  display: block !important;
}

/* ============================================================
   NAV
   ============================================================ */
.header-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header-nav .primary-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.header-nav .primary-menu > li {
  position: relative;
}

.header-nav .primary-menu > li > a,
.site-header nav a,
.site-header .nav-menu a {
  display: block;
  padding: 6px 14px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  position: relative;
  transition: background 0.2s ease, color 0.2s ease;
}

.header-nav .primary-menu > li > a:hover,
.site-header nav a:hover,
.site-header .nav-menu a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Active page: dot indicator only on current-menu-item, not ancestor */
.header-nav .primary-menu > li.current-menu-item > a,
.site-header nav li.current-menu-item > a,
.site-header .nav-menu li.current-menu-item > a {
  background: rgba(58, 170, 53, 0.18);
  color: #fff;
  font-weight: 700;
}

.header-nav .primary-menu > li.current-menu-item > a::after,
.site-header nav li.current-menu-item > a::after,
.site-header .nav-menu li.current-menu-item > a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #3AAA35;
}

/* ============================================================
   PRODUCT CATEGORIES DROPDOWN NAV
   ============================================================ */
.has-pc-dropdown {
  position: relative;
}

.has-pc-dropdown > a {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  cursor: default;
}

.pcd-chevron {
  font-size: 10px;
  transition: transform 0.2s;
  display: inline-block;
  opacity: 0.7;
}

.has-pc-dropdown:hover .pcd-chevron {
  transform: rotate(180deg);
}

.pc-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: #1a2a1a;
  min-width: 290px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 9000;
}

.has-pc-dropdown:hover .pc-nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.pc-dropdown-item {
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  color: rgba(255,255,255,0.82) !important;
  text-decoration: none !important;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.15s;
  background: none !important;
  border-radius: 0 !important;
  font-size: 14px !important;
  font-weight: 400 !important;
}

.pc-dropdown-item:last-child { border-bottom: none; }

.pc-dropdown-item:hover {
  background: rgba(255,255,255,0.07) !important;
  color: #fff !important;
}

.pc-dropdown-item img {
  width: 28px;
  height: 28px;
  filter: invert(1);
  object-fit: contain;
  flex-shrink: 0;
}

.pc-dropdown-item i.ti {
  width: 28px;
  font-size: 26px;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.pcd-text { flex: 1; min-width: 0; }

.pcd-text strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  font-family: 'Heebo', sans-serif;
}

.pcd-text span {
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-family: 'Heebo', sans-serif;
}

.pcd-arrow { opacity: 0.35; flex-shrink: 0; }

.pc-dropdown-item i.ti.pcd-arrow {
  width: 14px;
  font-size: 14px;
}

.pc-nav-dropdown > .has-sub:last-child > .pc-dropdown-item {
  border-bottom: none;
  border-radius: 0 0 12px 12px;
}

.has-sub { position: relative; }
.has-sub:hover .sub-menu { display: flex; flex-direction: column; }

.sub-menu {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  transform: translateX(-100%);
  background: #243424;
  border-radius: 10px;
  min-width: 200px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.4);
  z-index: 30;
  border: 0.5px solid rgba(255,255,255,0.1);
}

.sub-menu .sub-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  direction: rtl;
  text-decoration: none;
  border-bottom: 0.5px solid rgba(255,255,255,0.07);
}

.sub-menu .sub-item:last-child { border-bottom: none; }
.sub-menu .sub-item:hover { background: rgba(255,255,255,0.07); }

.sub-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(155,89,182,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sub-icon i { color: #9B59B6; font-size: 16px; }
.sub-title {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
}

/* ---- Mobile product dropdown ---- */
.has-pc-mobile-dropdown > a { cursor: pointer; }

.pc-mobile-subdropdown {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.04);
  border-top: 1px solid #f0f0f0;
}

.pc-mobile-subdropdown.is-open { display: block; }

.pc-mobile-subdropdown li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 11px 28px !important;
  font-size: 14px !important;
  color: #555 !important;
  font-weight: 500 !important;
}

.pc-mobile-subdropdown li a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.65;
  filter: none;
}

.pc-mobile-subdropdown li a i.ti {
  width: 20px;
  font-size: 18px;
  line-height: 1;
  text-align: center;
  opacity: 0.65;
  flex-shrink: 0;
}

.pc-mobile-subdropdown li a:hover { color: #3AAA35 !important; }

.pc-mobile-subdropdown-nested {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  background: rgba(0,0,0,0.03);
}

.pc-mobile-subdropdown-nested li a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 10px 44px !important;
  font-size: 13px !important;
  color: #777 !important;
  font-weight: 500 !important;
}

.pc-mobile-subdropdown-nested li a i.ti {
  width: 18px;
  font-size: 16px;
  line-height: 1;
  text-align: center;
  opacity: 0.65;
  flex-shrink: 0;
}

.pc-mobile-subdropdown-nested li a:hover { color: #3AAA35 !important; }

/* ============================================================
   HEADER ACTIONS (CTA + hamburger)
   ============================================================ */
.header-actions,
.site-header .header-actions,
.site-header .header-cta {
  display: flex !important;
  align-items: center !important;
  margin: auto 0 !important;
  margin-right: 1.5rem !important;
  gap: 10px;
  flex-shrink: 0;
}

.header-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: linear-gradient(to left, #3AAA35 0%, #1a8fd1 100%);
  border: none;
  color: #fff;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
}

.header-cta-btn:hover {
  background: linear-gradient(to left, #2d9a29 0%, #1680bc 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58, 170, 53, 0.3);
}

/* ============================================================
   HAMBURGER
   ============================================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 9px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger:hover {
  background: rgba(58, 170, 53, 0.08);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.25s ease;
  transform-origin: center;
}

/* Open state — animated X */
.hamburger.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   MOBILE MENU DROPDOWN
   ============================================================ */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 998;
  background: transparent;
}

.mobile-menu-overlay.is-open {
  display: block;
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  max-height: 0;
  overflow: hidden;
  transform: none;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  z-index: 999;
  border-top: 3px solid #3AAA35;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.open {
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  opacity: 1;
}

.mobile-menu-close {
  align-self: flex-start;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  cursor: pointer;
  color: #444;
  margin-bottom: 4px;
  transition: background 0.2s;
}

.mobile-menu-close:hover {
  background: #f5f5f5;
}

.mobile-menu-logo {
  padding-bottom: 16px;
  border-bottom: 1px solid #f0f0f0;
}

.mobile-menu-logo .custom-logo {
  max-height: 38px;
}

.mobile-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mobile-menu-list > li > a {
  display: block;
  padding: 12px 16px;
  font-size: 15px;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.mobile-menu-list > li > a:hover,
.mobile-menu-list > li.current-menu-item > a {
  background: rgba(58, 170, 53, 0.08);
  color: #3AAA35;
  color: var(--color-primary);
}

.mobile-cta {
  display: flex;
  justify-content: center;
  padding: 13px 22px;
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: #111111 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 1.5rem 2rem !important;
}

.site-footer .footer-inner,
.site-footer .footer-container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px;
  flex-wrap: wrap;
}

/* Logo */
.footer-logo .custom-logo {
  max-height: 34px;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}

.footer-site-name {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
}

/* Center */
.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.footer-dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.footer-dot--green  { background: #3AAA35; }
.footer-dot--blue   { background: #2255A4; }
.footer-dot--red    { background: #E03030; }
.footer-dot--yellow { background: #F5C400; }

.footer-copy {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
  text-align: center;
}

/* Links */
.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ============================================================
   RESPONSIVE — ≤ 768px
   ============================================================ */
@media (max-width: 768px) {
  .header-nav {
    display: none;
  }

  /* Hide desktop CTA, show only in mobile menu */
  .header-cta-btn:not(.mobile-cta) {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-menu-overlay {
    display: block;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .hamburger-btn,
  .menu-toggle {
    color: #fff;
    border-color: rgba(255,255,255,0.3);
  }

  .site-header .header-deco-dots,
  .site-header .header-dot,
  .site-header .nav-dot,
  .site-header [class*="dot"] {
    display: none !important;
  }

  .site-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 16px !important;
    height: 64px !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: 0 !important;
    z-index: 9999 !important;
    overflow: visible !important;
  }

  body {
    padding-top: 64px !important;
  }

  .site-header .header-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    height: 64px !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .hamburger {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
  }

  .mobile-menu,
  .nav-drawer,
  .mobile-nav {
    top: 80px !important;
    z-index: 1000 !important;
    padding-top: 1rem !important;
    padding-bottom: 2rem !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
  }

  .mobile-menu ul,
  .nav-drawer ul,
  .mobile-menu .nav-links {
    padding-top: 0.5rem !important;
  }

  .mobile-menu .header-cta-btn,
  .mobile-menu .mobile-cta,
  .nav-drawer .header-cta-btn,
  .nav-drawer .mobile-cta,
  .mobile-menu .pc-nav-cta,
  .nav-drawer .pc-nav-cta,
  .mobile-menu .cta-btn,
  .nav-drawer .cta-btn {
    margin: 1rem 2rem !important;
    width: calc(100% - 4rem) !important;
    display: block !important;
    background: linear-gradient(135deg, #3AAA35, #2255A4) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    padding: 14px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    font-family: 'Heebo', sans-serif !important;
    text-align: center !important;
    cursor: pointer !important;
    box-shadow: none !important;
  }

  .mobile-menu .header-actions,
  .nav-drawer .header-actions {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* Hamburger stays clickable above everything */
  .hamburger,
  .hamburger-btn,
  .menu-toggle {
    z-index: 1001 !important;
    position: relative;
    pointer-events: auto !important;
  }

  /* Mobile menu below hamburger */
  .mobile-menu,
  .nav-dropdown {
    z-index: 1000 !important;
  }

  /* Logo sits below the mobile menu */
  .logo-circle-wrap {
    z-index: 999 !important;
  }

  /* Overlay hidden by default, shown only when menu is open */
  .mobile-menu-overlay {
    z-index: 998 !important;
    display: none;
    pointer-events: none;
  }

  .mobile-menu-overlay.active {
    display: block;
    pointer-events: auto;
  }

  /* Push first item below the overflowing logo circle */
  .mobile-menu ul li:first-child {
    padding-top: 5px;
  }
}

/* ============================================================
   HEADER SEARCH DROPDOWN
   ============================================================ */
.search-wrapper {
  position: relative;
}

.header-search-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 18px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.header-search-toggle i {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 18px;
  transform: none !important;
}

.header-search-toggle:hover,
.header-search-toggle.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.search-submit-btn i {
  color: #fff !important;
  font-size: 16px;
  transform: none !important;
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: 280px;
  background: #1a2a1a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 9999;
  direction: rtl;
}

.search-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.search-dropdown form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search-dropdown input[type="search"] {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 9px 12px;
  font-family: 'Heebo', sans-serif;
  font-size: 13px;
  color: #fff;
  outline: none;
  direction: rtl;
}

.search-dropdown input[type="search"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.search-submit-btn {
  width: 36px;
  height: 36px;
  background: #3AAA35;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
