/* =====================================================
   1️⃣ WOOCOMMERCE PAGINATION (CENTER + HORIZONTAL)
===================================================== */
.woocommerce nav.woocommerce-pagination {
  text-align: center;
  width: 100%;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 auto;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers > li {
  flex: 0 0 auto;
}

.woocommerce nav.woocommerce-pagination ul.page-numbers a,
.woocommerce nav.woocommerce-pagination ul.page-numbers span {
  display: inline-block;
  min-width: 36px;
  line-height: 36px;
  text-align: center;
  padding: 0 10px;
}

/* =====================================================
   2️⃣ HIDE WORDPRESS.COM ADS (SAFE)
===================================================== */
.wordads-ad-wrapper--top:has(.wordads-ad-content:empty) {
  display: none;
}

.wordads-ad-wrapper--sidebar_sticky_right {
  display: none;
}

/* ===============================================
   MG Currency Switcher – Top Right Position
=============================================== */

/* Base Position (All Devices) */
#mg-woocs-float {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  z-index: 9999 !important;

  border: 1px solid #000 !important;
  border-left: none !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35) !important;
}

/* Remove plugin fake strips */
#mg-woocs-float::before,
#mg-woocs-float::after {
  display: none !important;
}

/* Slightly tighter spacing for mobile */
@media (max-width: 768px) {
  #mg-woocs-float {
    top: 12px !important;
    right: 12px !important;
  }
}

/* ==========================================
   EVOLEVEX WOO MOBILE FILTER BUTTON
========================================== */

.woo-filter-toggle {
  display: none;
}

@media (max-width: 768px) {

  body.woocommerce .woo-filter-toggle {
    display: block;
    width: 100%;
    padding: 14px 18px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
    text-align: center;
    border: 1px solid #111;
    cursor: pointer;
    transition: all 0.25s ease;
  }

  body.woocommerce .woo-filter-toggle:hover {
    background: #00b3ff;
    color: #000;
    border-color: #00b3ff;
  }

  body.woocommerce .woo-filter-toggle:active {
    transform: scale(0.98);
  }
}


/* ==========================================
   EVOLEVEX WOO MOBILE SLIDE SIDEBAR
========================================== */

@media (max-width: 768px) {

  #secondary {
    position: fixed !important;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100%;
    background: #000 !important;
    z-index: 9999;
    padding: 25px 20px;
    overflow-y: auto;
    transition: left 0.35s ease;
    box-shadow: 8px 0 40px rgba(0,0,0,0.6);
    color: #fff;
  }

  #secondary.active {
    left: 0;
  }

  /* Widget cards */
  #secondary .widget {
    background: #0a0a0a;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  /* Widget titles */
  #secondary .widget-title {
    color: #00b3ff;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.6px;
    margin-bottom: 12px;
  }

  /* Links */
  #secondary a {
    color: #ffffff;
    transition: 0.2s ease;
  }

  #secondary a:hover {
    color: #00b3ff;
  }

  /* Overlay */
  body.filter-open::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    z-index: 9998;
  }

  body.filter-open {
    overflow: hidden;
  }

  /* Scrollbar */
  #secondary::-webkit-scrollbar {
    width: 6px;
  }

  #secondary::-webkit-scrollbar-thumb {
    background: rgba(0,179,255,0.4);
    border-radius: 10px;
  }
}



/* =====================================================
   6️⃣ ENSURE ELEMENTOR LANDING PAGES NOT AFFECTED
===================================================== */
body:not(.woocommerce) .woo-filter-toggle {
  display: none;
}

/* =====================================================
   7️⃣ MOBILE PAGINATION FIX
===================================================== */
@media (max-width: 768px) {

  .woocommerce nav.woocommerce-pagination ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    padding: 0;
    margin: 0 auto;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers li {
    flex: 0 0 auto;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers a,
  .woocommerce nav.woocommerce-pagination ul.page-numbers span {
    min-width: 36px;
    line-height: 36px;
    padding: 0 10px;
    text-align: center;
  }
}

/* =====================================================
   8️⃣ DESKTOP PAGINATION FIX (ASTRA)
===================================================== */
@media (min-width: 769px) {

  .woocommerce nav.woocommerce-pagination ul.page-numbers,
  .ast-pagination ul.page-numbers {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 0 !important;
    margin: 0 auto !important;
  }

  .woocommerce nav.woocommerce-pagination ul.page-numbers li,
  .ast-pagination ul.page-numbers li {
    display: inline-flex !important;
    width: auto !important;
    float: none !important;
    margin: 0 !important;
  }

  .woocommerce nav.woocommerce-pagination a,
  .woocommerce nav.woocommerce-pagination span,
  .ast-pagination a,
  .ast-pagination span {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 12px !important;
  }
}

/* =====================================================
   9️⃣ CLEAN WPFORMS PHONE FIELD (NO INTL-TEL)
===================================================== */
.wpforms-container input[type="tel"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  background: #ffffff;
  color: #000000;
  border-radius: 4px;
}
/* Hard stop horizontal overflow */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100%;
}

/* Prevent any element from expanding beyond screen */
* {
  box-sizing: border-box;
}
/* =======================================================
   EVO FEED SYSTEM – PREMIUM CARD DESIGN
   Applies to: /activity & /community
======================================================= */

body.buddypress,
body.post-type-archive-forum,
body.bbpress {
  background: #0A0A0A;
}

/* ========================================
   CENTER WRAPPER (WHITE FEED BOX)
======================================== */

body.buddypress #buddypress,
body.bbpress #bbpress-forums {
  max-width: 720px;
  margin: 60px auto;
  background: #ffffff;
  border-radius: 14px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.25);
}

/* Remove unwanted extras */
body.buddypress .activity-type-tabs,
body.buddypress .dir-search,
body.buddypress #activity-filter-select,
body.buddypress #activity-search-form,
#bbpress-forums .bbp-search-form,
.bbp-breadcrumb {
  display: none !important;
}

/* ========================================
   POST FORM (WHAT'S NEW)
======================================== */

body.buddypress #whats-new-form {
  background: #F8F9FB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px;
  margin-bottom: 25px;
}

body.buddypress #whats-new {
  background: #ffffff;
  border: 1px solid #DADDE1;
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  color: #111;
}

/* Submit button */
body.buddypress #whats-new-submit input {
  background: #0096FF;
  border: none;
  color: #fff;
  border-radius: 6px;
  padding: 8px 18px;
  font-weight: 600;
}

/* ========================================
   ACTIVITY CARDS
======================================== */

body.buddypress .activity-list .activity-item {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 18px;
  transition: 0.2s ease;
}

body.buddypress .activity-list .activity-item:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

/* Header alignment */
body.buddypress .activity-header {
  font-size: 14px;
  margin-bottom: 8px;
}

body.buddypress .activity-header a {
  font-weight: 600;
  color: #111 !important;
}

body.buddypress .activity-content {
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

/* Action row */
body.buddypress .activity-meta {
  border-top: 1px solid #F0F2F5;
  margin-top: 12px;
  padding-top: 10px;
}

/* ========================================
   FORUM TOPIC CARDS (COMMUNITY)
======================================== */

#bbpress-forums li.bbp-topic {
  background: #ffffff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 15px;
  transition: 0.2s ease;
}

#bbpress-forums li.bbp-topic:hover {
  box-shadow: 0 4px 18px rgba(0,0,0,0.05);
}

#bbpress-forums .bbp-topic-title a {
  font-size: 16px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

#bbpress-forums .bbp-topic-meta {
  font-size: 13px;
  color: #666;
  margin-top: 6px;
}


/* ========================================
   MOBILE OPTIMIZATION (IMPORTANT)
======================================== */

@media (max-width: 768px) {

  body.buddypress #buddypress,
  body.bbpress #bbpress-forums {
    margin: 0;
    border-radius: 0;
    padding: 16px;
  }

  body.buddypress #whats-new-form {
    padding: 14px;
  }

  body.buddypress .activity-list .activity-item,
  #bbpress-forums li.bbp-topic {
    padding: 14px;
    border-radius: 10px;
  }

  body.buddypress .activity-header,
  body.buddypress .activity-content {
    text-align: left !important;
  }

  body.buddypress .activity-content {
    font-size: 14px;
  }

  #bbpress-forums .bbp-topic-title a {
    font-size: 15px;
  }
}

/* =========================================
   REMOVE ASTRA RELATED POSTS (GLOBAL)
========================================= */

.ast-related-posts-container,
.ast-single-related-posts-container,
.ast-related-posts-title,
.related-posts,
.post-navigation,
.nav-links {
  display: none !important;
}
/* =========================================
   FORCE WHITE TEXT IN ELEMENTSKIT MOBILE MENU
========================================= */

/* Make panel black */
.elementskit-menu-offcanvas-panel,
.ekit_nav_menu,
.elementskit-menu-container {
    background: #000000 !important;
}

/* Force all nav links white */
.elementskit-navbar-nav li a,
.ekit-menu-nav-link,
.elementskit-navbar-nav > li > a,
.elementskit-menu-offcanvas-panel .elementskit-navbar-nav li a {
    color: #ffffff !important;
}

/* Hover color */
.elementskit-navbar-nav li a:hover,
.ekit-menu-nav-link:hover {
    color: #00BFFF !important;
}

/* Submenu arrow */
.elementskit-navbar-nav .elementskit-submenu-indicator {
    color: #ffffff !important;
}
/* =========================================
   FINAL FIX – HAMBURGER WHITE BG + BLACK BARS
========================================= */

/* White button background */
.elementskit-menu-toggler,
.elementskit-navbar-toggler,
button.elementskit-menu-toggler {
    background: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
}

/* Black hamburger bars */
.elementskit-menu-toggler .ekit-menu-icon,
.elementskit-menu-toggler .ekit-menu-icon span,
.elementskit-menu-toggler span,
.elementskit-menu-toggler span:before,
.elementskit-menu-toggler span:after,
.elementskit-navbar-toggler span,
.elementskit-navbar-toggler span:before,
.elementskit-navbar-toggler span:after {
    background-color: #000000 !important;
}

/* ================================
   EvoLeveX Elite Account Slide Panel
================================ */

/* Main Slide Panel */
#account-slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: #000 !important;
    box-shadow: -10px 0 40px rgba(0,0,0,0.6);
    z-index: 99999;
}

/* Inner Content */
#account-slide-panel .account-menu-content {
    background: #000 !important;
    padding: 20px 0;
}

/* Close Button */
.account-close {
    color: #ffffff;
    font-size: 22px;
    padding: 15px 20px;
    cursor: pointer;
    transition: 0.25s ease;
}

.account-close:hover {
    color: #00b3ff;
}

/* Menu List */
.account-vertical-menu {
    list-style: none;
    margin: 20px 0;
    padding: 0;
}

/* Menu Items */
.account-vertical-menu li {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

/* Menu Links */
.account-vertical-menu li a {
    display: block;
    padding: 16px 24px;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.25s ease;
}

/* Hover Effect – EvoLeveX Electric */
.account-vertical-menu li a:hover {
    background: #0a0a0a;
    color: #00b3ff !important;
    padding-left: 28px;
}

/* Active Item */
.account-vertical-menu li.current-menu-item a {
    color: #00b3ff !important;
    border-left: 3px solid #00b3ff;
    background: rgba(0,179,255,0.08);
}

/* Overlay Darker */
.account-overlay {
    background: rgba(0,0,0,0.65) !important;
}
/* ===================================
   EvoLeveX WooCommerce Dark System
=================================== */

/* === Full Page Background === */
body.woocommerce,
body.woocommerce-page {
    background: #000 !important;
    color: #ffffff;
}

/* Remove random white theme wrappers */
.woocommerce-page .site-content,
.woocommerce-page .content-area,
.woocommerce-page .ast-container {
    background: transparent !important;
}

/* === Main Content Card (White Box) === */
.woocommerce div.product,
.woocommerce .woocommerce-cart-form,
.woocommerce .cart_totals,
.woocommerce-checkout .woocommerce,
.woocommerce-account .woocommerce,
.woocommerce-order {
    background: #ffffff;
    color: #000000;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

/* === Product Grid Cards === */
.woocommerce ul.products li.product {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    transition: 0.3s ease;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* === Product Titles === */
.woocommerce ul.products li.product h2 {
    color: #000;
}

/* === Buttons (Electric Blue Elite) === */
.woocommerce button.button,
.woocommerce a.button,
.woocommerce input.button {
    background: #000 !important;
    color: #fff !important;
    border-radius: 6px;
    padding: 12px 20px;
    transition: 0.25s ease;
    border: 1px solid #000;
}

.woocommerce button.button:hover,
.woocommerce a.button:hover,
.woocommerce input.button:hover {
    background: #00b3ff !important;
    border-color: #00b3ff;
    color: #000 !important;
}

/* === Price Styling === */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
    color: #00b3ff;
    font-weight: 600;
}

/* === Cart & Checkout Tables === */
.woocommerce table.shop_table {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
}

.woocommerce table.shop_table th {
    background: #f5f5f5;
    color: #000;
}

/* === Form Inputs === */
.woocommerce input,
.woocommerce select,
.woocommerce textarea {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px;
}

.woocommerce input:focus,
.woocommerce textarea:focus {
    border-color: #00b3ff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,179,255,0.2);
}

/* === Notices === */
.woocommerce-message {
    border-left: 4px solid #00b3ff;
}
