/*
Theme Name: CB TechniQuip
Author:      Citrusbug
Author URI:  https://citrusbug.com
Description: Custom WordPress theme for CB TechniQuip with WooCommerce support.
Version:     1.0.0
Requires at least: 6.9
Tested up to: 6.4
Requires PHP: 8.1
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cb-techniquip
Tags: custom, woo-commerce, responsive, blog, e-commerce
*/

:root {
  /* --primary-color: rgba(32, 159, 237, 1); */
  --primary-color: #3fa5f0;
  --secondary-color: #6c7a83;
}

* {
  /* font-family: "Nimbus Sans L", sans-serif; */
  font-family: "Inter", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  /* font-family: "Bebas Neue", sans-serif; */
  font-family: "Inter", sans-serif;
}

/* Header Styles */
header .nav-link-custom:hover {
  color: var(--primary-color) !important;
}

header .nav-link-custom.active {
  color: var(--primary-color) !important;
}

header button.btn-link:hover,
header a.text-dark:hover {
  color: var(--primary-color) !important;
}

header .nav-link-custom .text-dark {
  color: rgba(79, 77, 85, 1) !important;
}

a:hover {
  color: var(--primary-color);
}

p {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0;
  vertical-align: middle;
  color: #000;
}

/* Login Button with Angled Right Edge */
header .header-actions {
  gap: 14px;
}

header .login-button {
  background-color: var(--primary-color);
  font-size: 14px;
  color: white;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 400;
  position: relative;
  display: inline-block;
  text-decoration: none;
  clip-path: polygon(
    13px 0,
    80% 0%,
    100% 0,
    100% calc(100% - 13px),
    calc(100% - 13px) 100%,
    20% 100%,
    0 100%,
    0 13px
  );
}

header .login-button:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Mobile Menu Toggle */
#mobile-menu.collapse:not(.show) {
  display: none;
}

#mobile-menu.collapse.show {
  display: block;
  position: absolute;
  background: #fff;
  width: 100%;
  left: 0;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}

/* Dropdown Menu Styles */
header .dropdown-menu {
  border: none;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  margin-top: 0;
  padding: 0rem 0;
  min-width: 200px;
  border-radius: 0.375rem;
}

header .dropdown-item {
  padding: 0.5rem 1.5rem;
  transition:
    background-color 0.2s,
    color 0.2s;
}

header .dropdown-item:hover {
  background-color: #f3f4f6;
  color: var(--primary-color);
}

header .dropdown-toggle::after {
  display: none;
}

header .dropdown-toggle[aria-expanded="true"] {
  color: var(--primary-color) !important;
}

/* Mobile Dropdown Styles */
#mobile-menu .collapse {
  transition: height 0.35s ease;
}

#mobile-menu .btn-link,
#mobile-menu nav > div > div a {
  text-decoration: none;
  color: rgba(79, 77, 85, 1);
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
  vertical-align: middle;
}

#mobile-menu .btn-link:hover {
  background-color: #f9fafb;
}

#mobile-menu a:hover {
  color: var(--primary-color) !important;
}

.logo-link img {
  height: 33px;
  width: auto;
}

header.bg-white .header-row {
  padding: 15px 0;
  min-height: 80px;
  height: auto;
}

header.bg-white.border-bottom {
  border-color: #e5e7eb;
  z-index: 1050;
}

#mobile-menu-toggle {
  transition: color 0.2s;
}

.transition-color {
  transition: color 0.2s;
}

.cart-count {
  font-size: 0.65rem;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translate(-30%, -20%);
}

.dropdown-indicator {
  height: 2px;
  background-color: rgba(32, 159, 237, 1);
}

header nav > .nav-link-custom {
  color: rgba(79, 77, 85, 1);
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
  vertical-align: middle;
  padding: 8px 10px;
}

header nav .dropdown {
  position: relative;
}

header nav .mega-dropdown {
  position: static;
}

header nav .dropdown .nav-link-custom,
header nav .dropdown ul a.dropdown-item {
  font-weight: 300;
  font-size: 14px;
  line-height: 100%;
  letter-spacing: 0px;
  vertical-align: middle;
  color: rgba(79, 77, 85, 1);
}

header nav > .nav-link-custom.active {
  font-weight: 400;
}

header .nav-link-custom.active .text-dark {
  color: var(--primary-color) !important;
}

header .dropdown-menu.show {
  display: block;
}

.mega-menu {
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -18px;
  height: 18px;
}

.mega-dropdown > .dropdown-menu {
  margin-top: 0;
}

.mega-menu-panel {
  background-color: #000;
  color: #f5f5f5;
  border-radius: 0;
  padding: 30px;
  box-shadow: 10px 10px 30px 0px rgba(0, 0, 0, 0.06);
  min-height: 240px;
}

.mega-column {
  min-width: 160px;
}

.mega-heading {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 18px;
}

.mega-heading-link {
  text-decoration: none;
  color: #39a7ff;
}

.mega-links .mega-link {
  color: #fff;
  text-decoration: none;
  display: block;
  font-size: 14px;
  padding: 0;
  transition: color 0.2s ease;
  font-weight: 300;
  line-height: 1.2;
}

.mega-links li {
  margin-bottom: 12px;
}

.mega-links .mega-link:hover {
  color: var(--primary-color);
}

.mega-menu-panel ul {
  margin: 0;
  padding: 0;
}

.text-justify {
  text-align: justify;
}

.contact-info-box p {
  padding: 10px 0;
}

.text-dark {
  color: rgba(79, 77, 85, 1) !important;
}

.mobile-menu-list .mobile-mega-trigger {
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  color: rgba(79, 77, 85, 1);
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu-list .mobile-mega-trigger svg {
  transition: transform 0.2s ease;
}

.mobile-menu-list .mobile-mega-trigger:focus-visible {
  outline: 2px solid var(--primary-color);
  border-radius: 6px;
}

.mobile-mega-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease;
  z-index: 1045;
}

.mobile-mega-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-mega-drawers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1050;
}

.mobile-mega-drawers.active {
  pointer-events: auto;
}

.mobile-mega-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #030303;
  transform: translateX(-101%);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  color: #fff;
  /* box-shadow: 6px 0 30px rgba(0, 0, 0, 0.45); */
}

.mobile-mega-drawer.active {
  transform: translateX(0);
}

.mobile-mega-panel {
  padding: 24px 15px 20px 25px;
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 18px;
}

.mobile-mega-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.mobile-mega-back {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0;
}

.mobile-mega-current {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-mega-body {
  overflow-y: auto;
  padding-right: 6px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-mega-body::-webkit-scrollbar {
  width: 4px;
}

.mobile-mega-body::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.35);
  border-radius: 999px;
}

.mobile-mega-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-mega-section-title {
  font-size: 15px;
  letter-spacing: 0.08em;
  color: var(--primary-color);
  text-transform: capitalize;
  margin: 0;
  font-weight: 700;
}

.mobile-mega-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-mega-link {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.3;
}

.mobile-mega-link:hover {
  color: var(--primary-color);
}

.mobile-mega-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-mega-pill {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 6px 18px;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
  line-height: 1;
}

.mobile-mega-pill:hover {
  background: #fff;
  color: #000;
}

body.mobile-mega-open {
  overflow: hidden;
}

.mobile-mega-overlay,
.mobile-mega-drawers {
  display: none;
}

/* Single Blog post custome design CSS: RP */
.single-blog-container {
  max-width: 900px;
  margin: auto;
  padding: 40px 20px;
}

.blog-banner img {
  width: 100%;
  border-radius: 10px;
  margin: 30px 0;
}

.images-grid {
  display: flex;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  margin: 30px 0;
}

.image-item img {
  width: 100%;
  border-radius: 8px;
}

/* Over Single Blog post custome design CSS: RP */

.btn.theme-btn:first-child:active {
  color: #fff;
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
}

a {
  color: var(--primary-color);
}

a:hover {
  color: var(--secondary-color);
}

@media (max-width: 1199.98px) {
  .mobile-mega-overlay,
  .mobile-mega-drawers {
    display: block;
  }
}

.mega-menu-panel .row.flex-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 32px;
  justify-content: flex-start;
  max-width: 940px;
  margin: 0 auto;
}

.mega-menu-panel .row.flex-row .lg-1-5.mega-column {
  width: auto;
  min-width: auto;
}

.mega-menu-panel ul.mega-links-many {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
}

/* Responsive CSS */
@media (max-width: 1399px) {
  .container {
    max-width: 96%;
  }
}

@media (max-width: 767px) {
  .container {
    max-width: 100%;
  }

  header .header-actions {
    gap: 10px;
  }

  header .login-button {
    margin-left: 8px;
    margin-top: 8px;
    padding: 8px 24px !important;
  }
}

@media (max-width: 576px) {
  header .header-row {
    min-height: 60px;
  }

  header .login-button {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  header .fs-3 {
    font-size: 1.5rem !important;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  header .header-row {
    min-height: 65px;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  header .header-row {
    min-height: 70px;
  }
}

/* Ensure dropdowns work on hover for desktop */
@media (min-width: 992px) {
  header .dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    margin-top: 0;
  }

  header .dropdown-menu:hover {
    display: block;
    opacity: 1;
    visibility: visible;
  }

  header .dropdown-menu {
    margin-top: 0;
    display: none;
  }

  header .dropdown:hover .dropdown-toggle {
    color: var(--primary-color) !important;
  }

  header nav .mega-dropdown .dropdown-menu {
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
    top: 100%;
  }
}

/* Search Mega Menu Styles */
header {
  position: relative;
}

.search-mega-menu {
  background-color: #fff;
  border-top: 1px solid #e5e7eb;
  padding: 1.2rem 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 1040;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  display: none;
}

.search-mega-menu.collapse:not(.show) {
  display: none;
}

.search-mega-menu.show,
.search-mega-menu.collapse.show {
  display: block;
}

.search-mega-form {
  width: 100%;
}

.search-mega-wrapper {
  display: flex;
  align-items: center;
  background-color: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 2rem;
  padding: 0.6rem 1rem;
  max-width: 100%;
  transition: all 0.3s ease;
}

.search-mega-wrapper:focus-within {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(32, 159, 237, 0.15);
}

.search-icon-left {
  color: rgba(79, 77, 85, 1);
  margin-right: 0.75rem;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search-mega-input {
  flex: 1;
  background: transparent;
  border: none;
  color: rgba(79, 77, 85, 1);
  font-size: 14px;
  padding: 0;
  outline: none;
  min-width: 0;
}

.search-mega-input::placeholder {
  color: #9ca3af;
}

.search-divider {
  width: 1px;
  height: 24px;
  background-color: #d1d5db;
  margin: 0 1rem;
  flex-shrink: 0;
}

.search-category-dropdown {
  position: relative;
  flex-shrink: 0;
}

.search-category-btn {
  background: transparent;
  border: none;
  color: rgba(79, 77, 85, 1);
  display: flex;
  align-items: center;
  padding: 0;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.search-category-btn:hover {
  color: var(--primary-color);
}

.search-category-btn svg {
  transition: transform 0.2s;
  color: rgba(79, 77, 85, 1);
}

.search-category-btn[aria-expanded="true"] {
  color: var(--primary-color);
}

.search-category-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
  color: var(--primary-color);
}

.search-category-menu {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
  min-width: 150px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.search-category-menu .dropdown-item {
  color: rgba(79, 77, 85, 1);
  padding: 0.3rem 1rem;
  font-size: 14px;
  transition:
    background-color 0.2s,
    color 0.2s;
}

.search-category-menu .dropdown-item:hover {
  background-color: #f3f4f6;
  color: var(--primary-color);
}

/* Responsive Search Mega Menu */
@media (max-width: 991px) {
  .mobile-mega-body {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767.98px) {
  .search-mega-menu {
    padding: 0.8rem 0;
  }

  .search-mega-wrapper {
    padding: 0.625rem 0.875rem;
    border-radius: 1.5rem;
  }

  .search-icon-left {
    margin-right: 0.5rem;
  }

  .search-icon-left svg {
    width: 18px;
    height: 18px;
  }

  .search-mega-input {
    font-size: 0.9375rem;
  }

  .search-divider {
    height: 20px;
    margin: 0 0.75rem;
  }

  .search-category-btn {
    font-size: 0.9375rem;
  }

  .search-category-btn svg {
    width: 14px;
    height: 14px;
  }

  .mobile-mega-body {
    margin-top: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575.98px) {
  .search-mega-wrapper {
    padding: 0.5rem 0.75rem;
  }

  .search-mega-input {
    font-size: 0.875rem;
  }

  .search-category-text {
    display: none;
  }

  .search-category-btn svg {
    margin-left: 0;
  }

  .mobile-mega-body {
    margin-top: 15px;
    display: flex;
  }
}
