/**
 * GalvinMX Custom CSS - Refined
 */

/* Imports */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;700&family=Roboto:wght@300;400;500;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css');

/* Force FontAwesome Family */
.fa,
.fas,
.far,
.fab {
  font-family: "FontAwesome" !important;
}

:root {
  --primary-color: #BFFF00;
  /* GreenlandMX / Antigravity Neon Green */
  --secondary-color: #111111;
  /* Carbon Black */
  --accent-color: #FF2200;
  /* Racing Red for prices */
  --background-light: #F8F8F8;
  /* Clean background */
  --dark-grey: #333333;
  --light-grey: #e5e5e5;
  --border-color: #dddddd;
  --white: #ffffff;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body: 'Inter', sans-serif;
  --spacing-section: 60px;
}

body {
  font-family: var(--font-body);
  color: var(--dark-grey);
  background-color: var(--background-light);
}

/* Sharp Edges Global */
*,
*::before,
*::after {
  border-radius: 0 !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.elementor-icon i {
  color: #bfff00 !important;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */

/* Backgrounds */
#header,
.header-top,
.header-nav,
.desktop-header-style-w-1,
.desktop-header-custom {
  background-color: #000 !important;
  color: #fff !important;
}

#header {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* 1. Top Bar Link List */
.custom-top-bar {
  background-color: #000;
  font-size: 12px;
  padding: 5px 0;
  border-bottom: 1px solid #111;
}

.custom-top-bar ul li a {
  color: #ccc !important;
  text-transform: capitalize;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.custom-top-bar ul li a:hover {
  color: #fff !important;
  text-decoration: none;
}

/* 2. Main Header Layout */
.desktop-header-custom {
  padding: 25px 0;
  /* More spacing like GreenlandMX */
}

/* 3. Search Bar */
.custom-search-wrapper {
  width: 100%;
  margin: 0 auto;
}

.custom-search-wrapper .form-control {
  background: #fff !important;
  color: #111 !important;
  border: none !important;
  height: 50px !important;
  border-radius: 0 !important;
  font-size: 16px;
  padding-left: 20px;
  font-style: normal;
}

.custom-search-wrapper .search-btn {
  background-color: var(--primary-color) !important;
  color: #000 !important;
  border: none !important;
  border-radius: 0 !important;
  width: 60px;
  height: 50px !important;
  position: absolute;
  right: 0;
  top: 0;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

#desktop_logo {
  width: 180px;
}

.custom-search-wrapper .search-btn:hover {
  background-color: #fff !important;
  color: #000 !important;
}

.custom-search-wrapper .search-btn i {
  color: #fff !important;
  display: block !important;
}

/* 4. Icons (Garage, Account, Cart) */
.custom-header-icon-box {
  text-align: center;
  color: #fff;
  min-width: 90px;
  text-decoration: none;
  display: inline-block;
  vertical-align: top;
  transition: opacity 0.2s ease;
}

.custom-icon-wrapper {
  height: 40px;
  /* Standardized height */
  display: flex;
  align-items: flex-end;
  /* Align icons to the 'floor' */
  justify-content: center;
  margin-bottom: 8px;
}

.custom-icon-wrapper svg {
  height: 30px;
  /* Increased base height */
  width: auto;
  max-width: 45px;
  display: block;
}

/* Fine-tune motorcycle icon (very wide) to balance visual weight */
.custom-icon-wrapper svg[viewBox*="790"] {
  height: 25px;
  /* Increased height for motorcycle */
}

.custom-header-icon-box span {
  color: #fff !important;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: block;
  line-height: 1.2;
}

.custom-header-icon-box:hover {
  color: #fff;
  opacity: 0.8;
  text-decoration: none;
}

/* Cart Icon Specifics */
#_desktop_cart_custom {
  display: inline-block;
}

#_desktop_cart_custom .blockcart {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

#_desktop_cart_custom a.custom-cart-btn {
  display: block;
  text-align: center;
  color: #fff;
  text-decoration: none;
  position: relative;
  min-width: 90px;
}

#_desktop_cart_custom .cart-products-count-btn {
  transition: transform 0.2s ease;
}

#_desktop_cart_custom a.custom-cart-btn:hover .cart-products-count-btn {
  transform: scale(1.1);
}

/* 5. Main Menu */
.header-menu-container {
  background-color: #000;
  border-top: 1px solid #1a1a1a;
}

.iqitmegamenu-wrapper {
  background: #000 !important;
}

.iqitmegamenu-wrapper .cbp-hrmenu>ul {
  text-align: center;
  /* Center menu items */
}

.iqitmegamenu-wrapper .cbp-hrmenu>ul>li>a {
  color: #fff !important;
  text-transform: uppercase;
  font-weight: 400;
  font-size: 18px;
  padding: 15px 25px;
  font-family: var(--font-heading);
  letter-spacing: 1px;
}

.iqitmegamenu-wrapper .cbp-hrmenu>ul>li>a:hover,
.iqitmegamenu-wrapper .cbp-hrmenu>ul>li.cbp-hropen>a {
  color: var(--primary-color) !important;
  background: transparent !important;
}

/* 6. Footer Styles (Preserved) */
#footer,
.footer-container,
footer {
  background-color: #000 !important;
  color: #fff !important;
  padding-top: 40px;
}

#footer h4,
.footer-container h4,
.block-footer-title {
  color: #fff !important;
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 18px;
  border-bottom: 2px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
  margin-bottom: 20px;
}

#footer a {
  color: #bbbbbb !important;
  font-size: 14px;
}

#footer a:hover {
  color: var(--primary-color) !important;
}

/* Hide home icon in menu if possible via CSS (heuristic) */
.iqitmegamenu-wrapper .cbp-hrmenu>ul>li:first-child>a .fa-home {
  display: none;
}

/* If text is only the icon, we might hide the whole link, but let's assume it has text */

/* Mobile Hidden */
@media (max-width: 991px) {

  .custom-top-bar,
  .desktop-header-custom {
    display: none;
  }
}

#index #wrapper {
  padding-top: 0px !important;
}

.cbp-horizontal>ul>li>a,
.cbp-horizontal>ul>li>a:not([href]):not([tabindex]),
.cbp-horizontal>ul>li>.cbp-main-link {
  border-left: none !important;
  max-width: fit-content !important;
}

/* Global Spacing between sections */
.block-section,
section.product-accessories {
  margin-bottom: var(--spacing-section) !important;
}

/* Brands Carousel (Grayscale to Color) */
.brands-carousel-antigravity .brand-item img,
.iqitbrands-block .brand-item img {
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.brands-carousel-antigravity .brand-item:hover img,
.iqitbrands-block .brand-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
}

#wrapper {
  background-color: #fff;
}

/* Hero Slider CTA (GreenlandMX Style) */
.iqit-slider-cta,
.slider-btn-antigravity {
  background-color: var(--primary-color) !important;
  color: #000 !important;
  border: none !important;
  padding: 15px 40px !important;
  font-family: var(--font-heading) !important;
  font-size: 20px !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  font-weight: 400 !important;
  display: inline-block !important;
}

.iqit-slider-cta:hover {
  background-color: #000 !important;
  color: var(--primary-color) !important;
}

/* Category Grid GreenlandMX Style */
.category-grid-container .category-block {
  position: relative;
  overflow: hidden;
  margin-bottom: 30px;
  background: #000;
  /* Dark background for the overlay effect */
}

.category-grid-container .category-block img {
  width: 100%;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease;
  opacity: 0.8;
  /* Darken by default */
}

.category-grid-container .category-block:hover img {
  transform: scale(1.1);
  opacity: 0.6;
}

.category-grid-container .category-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Center perfectly */
  width: 90%;
  color: #fff;
  padding: 10px;
  text-align: center;
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 32px;
  /* Large racing titles */
  letter-spacing: 2px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}

.cbp-horizontal .cbp-tab-title {
  font-size: 20px;
  font-weight: bold;
}

/* Product Cards (Antigravity Style) */
.product-miniature-antigravity {
  background: #fff;
  border: 1px solid var(--border-color);
  margin-bottom: 25px;
  position: relative;
  transition: box-shadow 0.3s ease;
}

.product-miniature-antigravity:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.product-miniature-antigravity .thumbnail-container {
  position: relative;
  overflow: hidden;
}

.product-miniature-antigravity .thumbnail {
  display: block;
  position: relative;
  border: none !important;
}

.product-miniature-antigravity img.main-image {
  transition: opacity 0.4s ease;
  width: 100%;
}

.product-miniature-antigravity img.secondary-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.product-miniature-antigravity:hover img.secondary-image {
  opacity: 1;
}

/* Hover Actions (Ver opciones) */
.product-miniature-antigravity .product-hover-actions {
  position: absolute;
  bottom: -50px;
  /* Hidden by default */
  left: 0;
  width: 100%;
  transition: bottom 0.3s ease;
  padding: 10px;
  z-index: 5;
}

.product-miniature-antigravity:hover .product-hover-actions {
  bottom: 0;
}

.product-miniature-antigravity .btn-quickview {
  width: 100%;
  background-color: var(--secondary-color);
  color: #fff;
  border: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  padding: 10px;
}

/* Flags */
.product-flags-custom {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 10;
}

.product-flags-custom span {
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 900;
}

.flag-new {
  background: #000;
  color: #fff;
}

.flag-discount {
  background: var(--primary-color);
  color: #000;
}

.flag-opportunity {
  background: var(--accent-color);
  color: #fff;
}

/* Description & Price */
.product-miniature-antigravity .product-description {
  padding: 15px;
}

.product-brand-logo {
  font-size: 11px;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.product-miniature-antigravity .product-title {
  font-size: 14px;
  margin: 5px 0 10px;
  height: 40px;
  /* Forces 2 lines roughly */
  overflow: hidden;
}

.product-miniature-antigravity .product-title a {
  color: #111;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
}

.product-miniature-antigravity .product-price-and-shipping {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}

.product-miniature-antigravity .regular-price {
  text-decoration: line-through;
  color: #999;
  font-size: 13px;
}

.product-miniature-antigravity .price {
  font-size: 20px;
  font-weight: 900;
  color: var(--accent-color);
}

/* Sidebar Accordion Style */
#search_filters .facet {
  border-bottom: 1px solid var(--border-color);
  padding: 15px 0;
}

#search_filters .facet .title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 14px;
  margin-bottom: 0;
}

#search_filters .facet .title .collapse-icons {
  font-size: 12px;
}

#search_filters .facet .facet-title {
  display: none;
  /* Hide default title if redundant */
}

#search_filters .facet .collapse {
  display: block !important;
  /* Force visible for now, or use JS for real accordion */
}

#search_filters .facet .facet-label {
  padding: 5px 0;
}

#search_filters .facet .facet-label a {
  color: #555;
  font-size: 13px;
  text-decoration: none;
}

#search_filters .facet .facet-label a:hover {
  color: var(--primary-color);
}

#search_filters .facet .facet-label .custom-checkbox {
  margin-right: 10px;
}

/* Product Variants Grid (Size/Color Selector) */
.product-variants-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 0;
  list-style: none;
}

.product-variants-grid .input-container {
  width: auto;
  min-width: 50px;
  height: 50px;
  padding: 0 10px;
  border: 2px solid #ddd;
  /* Thicker borders for racing feel */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  background: #fff;
}

.product-variants-grid .input-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
  margin: 0;
}

.product-variants-grid .radio-label {
  font-weight: 700;
  font-size: 16px;
  font-family: var(--font-body);
}

.product-variants-grid .input-container:hover {
  border-color: #000;
}

.product-variants-grid .input-container:has(input:checked) {
  background-color: #000;
  color: #fff;
  border-color: #000;
}

/* Crossed-out out of stock */
.attribute-not-in-stock-grid {
  opacity: 0.5;
  background-color: #f9f9f9 !important;
  cursor: not-allowed;
  overflow: hidden;
}

.attribute-not-in-stock-grid::after {
  content: "";
  position: absolute;
  width: 140%;
  height: 2px;
  background: #ccc;
  transform: rotate(45deg);
  top: 50%;
  left: -20%;
}

/* Giant Add to Cart & Trust Badges */
.giant-cta {
  background-color: var(--primary-color) !important;
  color: #000 !important;
  height: 65px;
  font-family: var(--font-heading);
  font-size: 26px !important;
  letter-spacing: 2px;
  border: none !important;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.giant-cta:hover {
  background-color: #000 !important;
  color: var(--primary-color) !important;
  transform: translateY(-2px);
}

.trust-badges-antigravity .badge-item {
  padding: 0 10px;
  border-right: 1px solid #eee;
}

.trust-badges-antigravity .badge-item:last-child {
  border-right: none;
}

.trust-badges-antigravity i {
  font-size: 22px;
  color: #111;
}

.trust-badges-antigravity span {
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 700;
  color: #666;
  display: block;
}

/* Quantity input refinement */
.product-quantity-antigravity .qty input {
  height: 50px;
  width: 80px;
  border: 2px solid #ddd;
  text-align: center;
  font-weight: 700;
  font-size: 18px;
}

/* Product Layout 60/40 & Vertical Thumbs */
/* Catalog Split Layout (30/70) - Asi esta bien*/
@media (min-width: 992px) {
  #category #left-column {
    width: 30%;
    flex: 0 0 30%;
    max-width: 30%;
  }

  #category #content-wrapper {
    width: 70%;
    flex: 0 0 70%;
    max-width: 70%;
  }

  /* Force 3 products per row in the 65% content for better visibility */
  #category #content-wrapper .js-product-miniature-wrapper {
    width: 33.333%;
    flex: 0 0 33.333%;
    max-width: 33.333%;
  }
}

/* --- IQITMEGAMENU: GREENLANDMX PREMIUM STYLE --- */

/* 1. Submenu Full Width & Background */
#iqit-megamenu-horizontal .cbp-hrsub {
    width: 100vw !important;
    position: absolute !important;
    left: 50% !important;
    margin-left: -50vw !important;
    background: #f4f4f4 !important;
    border: none !important;
    border-top: 1px solid #ddd !important;
    border-radius: 0 0 20px 20px !important;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15) !important;
    padding: 40px 0 !important;
    z-index: 9999 !important;
}

/* Evitar scroll horizontal por el 100vw */
body {
    overflow-x: hidden !important;
}

/* 2. Inner Container Alignment */
#iqit-megamenu-horizontal .cbp-hrsub-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 15px;
}

/* 3. Column & Link Styling */
#iqit-megamenu-horizontal .cbp-hrsub .cbp-hrsub-inner > div {
    flex: 0 0 25%; /* 4 columnas por fila */
    max-width: 25%;
    padding: 10px 20px;
}

#iqit-megamenu-horizontal .cbp-hrsub a {
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
    padding: 5px 0 !important;
}

#iqit-megamenu-horizontal .cbp-hrsub a:hover {
    color: #77b52c !important; /* Verde corporativo al pasar el ratón */
}

/* Icons styling if present */
#iqit-megamenu-horizontal .cbp-hrsub i {
    margin-right: 10px;
    font-size: 18px;
    color: #666;
}

/* Adjusting the main menu bar to allow full-width positioning */
#header .header-nav, #header .header-top {
    position: static !important;
}

/* Sticky Menu Logic */
.header-menu-container {
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Ensure the rest of the header is NOT fixed */
#header {
  position: relative !important;
}

/* Renaming "CAJA DE TEXTO" via CSS as a fallback if JSON files are persistent */
div[data-internal_name="internaltextinput"] .filter-name .title,
#filter_3 .filter-name .title {
  font-size: 0 !important;
}

div[data-internal_name="internaltextinput"] .filter-name .title::after,
#filter_3 .filter-name .title::after {
  content: "BUSCAR";
  font-size: 14px;
}

/* Icon Toggling logic */
.filter-block.collapsed .icon-opened {
  display: none !important;
}

.filter-block.collapsed .icon-closed {
  display: block !important;
}

.filter-block:not(.collapsed) .icon-opened {
  display: block !important;
}

.filter-block:not(.collapsed) .icon-closed {
  display: none !important;
}

/* Vertical Thumbnails Adjustments */
.product-cover-thumbnails .images-container {
  display: flex;
  flex-direction: row-reverse;
  /* Put thumbs on left if main is right, or handle via Warehouse settings */
}

/* Tabs Styling */
.product-tabs {
  border-top: 1px solid var(--border-color);
  padding-top: 30px;
  margin-top: 50px;
}

.product-tabs .nav-tabs {
  border-bottom: none !important;
  justify-content: center;
  margin-bottom: 30px;
}

.product-tabs .nav-link {
  border: none !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  font-size: 16px;
  padding: 10px 30px !important;
  color: #999;
}

.product-tabs .nav-link.active {
  color: #000 !important;
  border-bottom: 3px solid var(--primary-color) !important;
}

.product-tabs .tab-content {
  padding: 20px 0;
  font-size: 15px;
  line-height: 1.8;
}

.align-items-center {
  align-items: end !important;
}

/* Fix for the white gap between header and content */
body#index {
  padding-top: 0 !important;
}

#index #wrapper {
  margin-top: -25px !important;
  /* Closing the persistent small gap */
  padding-top: 0 !important;
}

#index #content-wrapper {
  padding-top: 0 !important;
}

#index .elementor-section:first-of-type {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Hide placeholder Elementor accordions that might be taking space */
#index .elementor-widget-accordion {
  display: none !important;
}

#header {
  margin-bottom: 0 !important;
}

/* IQITMEGAMENU CUSTOM STYLES */
.cbp-hrsub-tabs-names {
  background: #1a1a1a !important;
}

.cbp-hrsub-tabs-names li {
  border-bottom: 1px solid #333 !important;
}

.cbp-hrsub-tabs-names li a {
  color: #fff !important;
  font-weight: 600;
  font-size: 13px;
  padding: 12px 20px !important;
  text-transform: uppercase;
}

.cbp-hrsub-tabs-names li.active a,
.cbp-hrsub-tabs-names li a:hover {
  background: #77b52c !important;
  color: #fff !important;
}

.cbp-hrsub-tabs-names li .cbp-inner-border-hider {
  display: none !important;
}

.cbp-hrmenu .cbp-tab-content {
  border-left: none !important;
}

.cbp-hrmenu .cbp-column-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #77b52c !important;
  border-bottom: 2px solid #77b52c !important;
  padding-bottom: 10px !important;
  margin-bottom: 20px !important;
}

.cbp-hrmenu .cbp-links li a {
  padding-left: 15px !important;
  color: #333 !important;
  font-size: 13px !important;
}

.cbp-hrmenu .cbp-links li a:before {
  content: '\f105' !important;
  font-family: 'FontAwesome' !important;
  color: #77b52c !important;
  font-weight: 900 !important;
}

.cbp-hrmenu .cbp-links li a:hover {
  color: #77b52c !important;
}