/* =================================
  GLOBAL STYLES & RESET
  =================================
*/
:root {
    --font-family: 'Inter', sans-serif;
    --primary-color: #F97316;
    --primary-dark: #EA580C;
    --primary-light: #FFF7ED;
    --header-font: 'Inter', sans-serif;
  --header-primary: #F97316;
  --header-primary-dark: #EA580C;
  --header-primary-light: #FFF7ED;
  --header-bg: #ffffff;
  --header-border: #e5e7eb;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --text-light: #6b7280;
  --text-on-primary: #ffffff;
  --header-max-width: 95%;
  --header-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05),
                   0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --dropdown-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
                     0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --header-radius: 8px;
  --header-radius-sm: 6px;
    --text-color: #333;
    --text-light: #555;
    --text-lighter: #777;
    --border-color: #ddd;
    --bg-color: #ffffff;
    --bg-light: #f4f4f4;
    --bg-grey: #f9f9f9;
    --star-color: #f39c12;
    --green-color: #28a745;
    --red-color: #dc3545;
    --header-height: 70px;
    --max-width: 1200px;
    --border-radius: 8px;
    --shadow: 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.1);
    --footer-bg: linear-gradient(180deg, #1f2937 0%, #111827 100%);
    --footer-text-primary: #ffffff;
    --footer-text-secondary: #9ca3af; /* Gray 400 */
    --footer-text-hover: #3b82f6; /* Blue 500 */
    --footer-border: #374151; /* Gray 700 */
    --footer-accent: #3b82f6; /* Blue 500 */
    --blue-color: #007bff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--bg-light);
    line-height: 1.6;
    /* overflow: hidden is managed by JS */
}

/* Hide content visually */
.hidden {
    display: none !important;
}

/* Base styles for icons */
.icon {
    width: 20px;
    height: 20px;
    stroke-width: 2;
    flex-shrink: 0;
}
.icon--chevron {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    stroke-width: 2.5;
    transition: transform 0.2s ease;
}
.icon--chevron-sm {
    width: 14px;
    height: 14px;
    margin-left: 2px;
    stroke-width: 2.5;
}

/* Utility class for links */
a {
    text-decoration: none;
    color: var(--primary-color);
}


/* Utility class for buttons */
button {
    font-family: var(--font-family);
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}





/* ==============================
  HEADER - MAIN STRUCTURE
=============================== */
.adv-header {
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--header-shadow);
}

.adv-header-container {
    width: 100%;
    max-width: var(--header-max-width);
    margin: 0 20px;
    /*padding: 0 1rem;*/
    display: flex;
    align-items: center;
}

@media only screen and (max-width:1024px){
    .adv-header-container {
    margin: none !important;
    padding: none !important;
}
.adv-header-main .adv-header-container {
    width: unset !important;
    padding-left: unset !important;
  }
.adv-header-top-bar .adv-header-container {
	width: unset !important;
}
.adv-header-secondary {
	display: none;
}
.adv-search-bar {
	overflow: visible !important;
}
}

.icon-sm {
    width: 1.25rem;
    height: 1.25rem;
}
.icon-md {
    width: 1.5rem;
    height: 1.5rem;
}


.adv-header-top-bar {
  background-color: var(--primary-color);
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

.adv-header-top-bar .adv-header-container {
	justify-content: space-between;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.top-bar-link, .social-link {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.top-bar-link:hover, .social-link:hover {
  opacity: 0.8;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .adv-header-top-bar .adv-header-container {
    flex-direction: column;
    text-align: center;
    gap: 0.5rem;
  }
}

/* ==============================
  2. MAIN HEADER
=============================== */
.adv-header-main {
    padding: 1rem 0;
}
.adv-header-main .adv-header-container {
    gap: 1.5rem;
    height: 60px; /* Fixed height for alignment */
}

/* 2a. Logo */
.adv-header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    flex-shrink: 0;
}
.logo-svg {
    width: 40px;
    height: 40px;
}
.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    display: none; /* Hidden by default */
}

/* 2b. Search Bar */
.adv-search-bar {
    display: flex;
    flex-grow: 1;
    max-width: 600px;
    height: 44px;
    border: 2px solid var(--header-primary);
    /* border-radius: var(--header-radius); */
    overflow: hidden;
}
.adv-search-input {
    flex-grow: 1;
    border: none;
    outline: none;
    padding: 0 1rem;
    font-size: 0.95rem;
    color: var(--text-primary);
}
.adv-search-btn-icon {
    display: none; /* Hidden by default */
    border: none;
    background: none;
    padding: 0 0.75rem;
    color: var(--text-light);
    cursor: pointer;
}
.adv-search-btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}
.adv-search-btn-text {
    border: none;
    background-color: var(--header-primary);
    color: var(--text-on-primary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.adv-search-btn-text svg {
    width: 1.25rem;
    height: 1.25rem;
}
.adv-search-btn-text:hover {
    background-color: var(--header-primary-dark);
}

/* 2c. Main Navigation */
.adv-header-nav {
    display: none; /* Hidden on mobile */
    align-items: center;
    gap: 1rem;
    margin-left: auto; /* Push to the right */
}
.adv-nav-item {
    position: relative;
    flex-shrink: 0;
}
.adv-nav-link {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--header-radius-sm);
    transition: color 0.2s, background-color 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}
.adv-nav-link:hover {
    color: var(--text-primary);
    background-color: #f3f4f6; /* Gray 100 */
}
.adv-nav-link .link-label {
    font-size: 0.8rem;
    color: var(--text-light);
}
.adv-nav-link .link-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--text-primary);
}
.adv-nav-link svg {
    width: 1.5rem; /* Larger icons */
    height: 1.5rem;
}
.flag-icon {
    width: 20px;
    height: 15px;
    border-radius: 2px;
    border: 1px solid var(--header-border);
}
.adv-nav-btn-primary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-on-primary);
    background-color: var(--blue-color);
    padding: 0.6rem 1rem;
    border-radius: var(--header-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s;
}
.adv-nav-btn-secondary {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    background-color: #f3f4f6; /* Gray 100 */
    padding: 0.6rem 1rem;
    border-radius: var(--header-radius-sm);
    text-decoration: none;
    transition: background-color 0.2s;
}
.adv-nav-btn-secondary:hover {
    background-color: #e5e7eb; /* Gray 200 */
}

/* 2d. Mobile Toggle */
.adv-header-mobile-toggle {
    display: none; /* Hidden on desktop */
    
    border: none;
    background: none;
    padding: 0.5rem;
    color: var(--text-primary);
    cursor: pointer;
    position: relative;
  z-index: 1100; /* Keep above flyout panel */
}
.adv-header-mobile-toggle svg {
    width: 1.75rem;
    height: 1.75rem;
}
.adv-header-mobile-toggle .icon-open {
  display: inline-block;
}

.adv-header-mobile-toggle .icon-close {
    display: none;
}
/* When menu is open, swap icons */
body.mobile-flyout-open .adv-header-mobile-toggle .icon-open {
  display: none;
}
body.mobile-flyout-open .adv-header-mobile-toggle .icon-close {
  display: inline-block;
}

/* ==============================
  3. SECONDARY NAVIGATION
=============================== */
.adv-header-secondary {
  background-color: var(--header-bg);
  border-top: 1px solid var(--header-border);
  position: relative;
}
.adv-header-secondary .adv-header-container {
  height: 48px;
  gap: 1.5rem;
  overflow-x: auto;
  white-space: nowrap;
}
/* Hide scrollbar */
.adv-header-secondary .adv-header-container::-webkit-scrollbar {
    display: none;
}
/* .adv-header-secondary .adv-header-container {
    -ms-overflow-style: none; 
    scrollbar-width: none; 
} */
.adv-nav-link-secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-med);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
  padding-bottom: 4px;
}
.adv-nav-link-secondary:hover {
  color: var(--header-primary);
  border-bottom-color: var(--header-primary);
}
.adv-nav-link-secondary svg {
    width: 1.25rem;
    height: 1.25rem;
}
.adv-header-secondary-menus {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100%;
  background: var(--bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  z-index: 999;
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.25s ease;
}

/* When active */
.adv-header-secondary:hover + .adv-header-secondary-menus,
.adv-header-secondary-menus:hover {
  display: block;
  opacity: 1;
  transform: translateY(0);
}
.adv-header.secondary-menu-open {
    border-bottom-color: transparent;
}



/* ==============================
  4. DROPDOWN & MEGA-MENUS
=============================== */

/* Wrapper for hover logic */
.dropdown-hover-wrapper {
    /* This empty wrapper solves the hover bug. */
    padding-bottom: 10px; /* Spacing to catch mouse */
    margin-bottom: -10px; /* Pull layout back up */
}

/* Base Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%; /* Positioned right below the wrapper */
    right: 0;
    width: 320px;
    background-color: var(--header-bg);
    border-radius: var(--header-radius);
    box-shadow: var(--dropdown-shadow);
    border: 1px solid var(--header-border);
    padding: 1.25rem;
    z-index: 1010;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
/* Show on hover */
.dropdown-hover-wrapper:hover > .dropdown-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
/* Dropdown Content */
.dropdown-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}
.dropdown-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.dropdown-btn-primary {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    border-radius: var(--header-radius-sm);
    background-color: var(--blue-color);
    color: var(--text-on-primary);
    cursor: pointer;
    transition: background-color 0.2s;
}
.dropdown-btn-primary:hover {
    background-color: var(--blue-color);
}
.dropdown-btn-secondary {
    width: 100%;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--header-border);
    border-radius: var(--header-radius-sm);
    background-color: var(--header-bg);
    color: var(--text-primary);
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 1rem;
}
.dropdown-btn-secondary:hover {
    background-color: #f9fafb; /* Gray 50 */
}
.dropdown-divider {
    font-size: 0.8rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    text-align: center;
    margin: 1rem 0;
}
.dropdown-divider::before,
.dropdown-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--header-border);
}
.dropdown-divider::before { margin-right: 0.5em; }
.dropdown-divider::after { margin-left: 0.5em; }
.dropdown-form-group {
    margin-bottom: 1rem;
}
.dropdown-form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}
.dropdown-form-group select,
.dropdown-form-group input {
    width: 100%;
    font-size: 0.9rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--header-border);
    border-radius: var(--header-radius-sm);
    background-color: var(--header-bg);
}

.dropdown-empty-state {
    text-align: center;
    padding: 1rem 0;
}
.dropdown-empty-state p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.dropdown-social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.dropdown-social-login button {
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
    width: 40px;
    height: 40px;
}
.dropdown-social-login svg {
    width: 40px;
    height: 40px;
}
.dropdown-links-list {
    border-top: 1px solid var(--header-border);
    margin-top: 1rem;
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.dropdown-links-list a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--header-radius-sm);
}
.dropdown-links-list a:hover {
    background-color: #f3f4f6; /* Gray 100 */
}


/* Secondary Nav Mega-Menu */
.mega-menu-secondary {
  display: none;
  background: #fff;
  padding: 2rem;
  gap: 2rem;
  align-items: flex-start;
}

.mega-menu-secondary.active {
  display: flex !important;
  opacity: 1;
  transform: translateY(0);
}

.mega-menu-secondary .adv-header-container {
	gap: 20px;
}

.adv-nav-link-secondary[data-menu]:hover ~ .adv-header-secondary-menus .mega-menu-secondary {
  display: none !important;
}

.adv-header-secondary .dropdown-hover-wrapper:hover .mega-menu-secondary[data-menu-id="desktop-categories-toggle"] {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.adv-nav-link-secondary[data-menu="desktop-categories-toggle"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-categories-toggle"],
.adv-nav-link-secondary[data-menu="desktop-featured-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-featured-menu"],
.adv-nav-link-secondary[data-menu="desktop-order-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-order-menu"],
.adv-nav-link-secondary[data-menu="desktop-buyer-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-buyer-menu"],
.adv-nav-link-secondary[data-menu="desktop-help-menu"]:hover ~ .adv-header-secondary-menus [data-menu-id="desktop-help-menu"] {
  display: flex !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}


.mega-menu-categories {
  width: 350px;
  border-right: 1px solid #eee;
  padding: 1rem;
  background: #fafafa;
  overflow-y: auto;
  max-height: 450px;
  border-radius: 8px 0 0 8px;
}

.mega-menu-category-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.6rem 0.8rem;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.2s;
}
.mega-menu-category-item svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-light);
    flex-shrink: 0;
}
.mega-menu-category-item:hover {
  background: var(--header-primary-light);
  color: var(--header-primary);
}
.mega-menu-category-item.active {
    background-color: var(--header-primary-light);
    color: var(--header-primary);
}
.mega-menu-content {
	padding: 1.5rem 2rem;
	width: 100%;
}
.mega-menu-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 1.5rem 0;
}
.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.mega-menu-grid.custom_all_categories_grid {
	display: grid !important;
	grid-template-columns: repeat(4,1fr) !important;
	gap: 1rem !important;
}

.mega-menu-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    gap: 0.5rem;
}
.mega-menu-grid-item img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: #f3f4f6; /* Gray 100 */
    border-radius: 50%;
    padding: 0.5rem;
    transition: box-shadow 0.2s;
}
.mega-menu-grid-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.4;
}
.mega-menu-grid-item:hover span {
    color: var(--header-primary);
}
.mega-menu-grid-item:hover img {
    box-shadow: 0 0 0 4px var(--header-primary-light);
}

/* Secondary Mega-Menus (Featured, Order, etc.) */
.secondary-menu-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    flex-grow: 1;
}

.secondary-menu-grid.order-protection-custom-grid {
	display: grid !important;
	grid-template-columns: repeat(4,1fr) !important;
	gap: 1rem !important;
}

.secondary-menu-grid.full-width {
    grid-template-columns: repeat(5, 1fr);
}
.secondary-menu-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: var(--header-radius);
	background-color: #f9fafb;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
	border: 1px solid #ddd;
}
.secondary-menu-item:hover {
    background-color: var(--header-primary-light);
    transform: translateY(-4px);
}
.secondary-menu-item svg {
    width: 2rem;
    height: 2rem;
    color: var(--header-primary);
}
.secondary-menu-item span {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: center;
}
.secondary-menu-links {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    border-left: 1px solid var(--header-border);
    padding-left: 2rem;
}
.secondary-menu-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem;
    border-radius: var(--header-radius-sm);
}
.secondary-menu-links a:hover {
    background-color: #f3f4f6; /* Gray 100 */
    color: var(--header-primary);
}
/* Large Card (Trade Assurance) */
.secondary-menu-card {
    width: 300px;
    flex-shrink: 0;
    background-color: var(--header-primary-light);
    border-radius: var(--header-radius);
    padding: 1.5rem;
    text-align: center;
}
.secondary-menu-card svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--header-primary);
    margin-bottom: 0.75rem;
}
.secondary-menu-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.5rem 0;
}
.secondary-menu-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 0 1rem 0;
}
.secondary-menu-card-btn {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-on-primary);
    background-color: var(--blue-color);
    padding: 0.6rem 1rem;
    border-radius: var(--header-radius-sm);
    text-decoration: none;
    display: inline-block;
}
.secondary-menu-card-btn:hover {
    background-color: var(--blue-color);
}
/* Large Grid Items (Payments, etc.) */
.secondary-menu-item-lg {
	display: flex;
	align-items: center;
	flex-direction: column;
	gap: 1rem;
	padding: 1rem;
	border-radius: var(--header-radius);
	background-color: #f9fafb;
	text-decoration: none;
	transition: background-color 0.2s, transform 0.2s;
	border: 1px solid #ddd;
}
.secondary-menu-item-lg:hover {
    background-color: #f3f4f6; /* Gray 100 */
    transform: translateY(-4px);
}
.secondary-menu-item-lg div {
    flex-grow: 1;
}
.secondary-menu-item-title {
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin: 10px 0px 20px 0px !important;
}
.secondary-menu-item-lg p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}
.secondary-menu-item-lg svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--header-primary);
    flex-shrink: 0;
    padding: 0.5rem;
    background-color: var(--header-primary-light);
    border-radius: 50%;
}

/* Col layout for Buyer Central */
.secondary-menu-col {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.secondary-menu-col-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 0.25rem 0;
}
.secondary-menu-col a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
}
.secondary-menu-col a:hover {
    color: var(--header-primary);
    text-decoration: underline;
}

/* ==============================
  5. MOBILE FLYOUT PANEL
=============================== */
.mobile-flyout-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.mobile-flyout-panel {
    position: fixed;
    top: 0;
    left: -320px; /* Start off-screen */
    width: 320px;
    height: 100%;
    background-color: var(--header-bg);
    z-index: 1030;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* Open State */
body.mobile-flyout-open {
    overflow: hidden;
}
body.mobile-flyout-open .mobile-flyout-overlay {
    opacity: 1;
    visibility: visible;
}
body.mobile-flyout-open .mobile-flyout-panel {
    transform: translateX(320px);
}

/* Panel Header (Login/Sign up) */
.mobile-flyout-header {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--header-border);
    /* height: 60px; */ /* Match main header height */
    align-items: center;
    flex-shrink: 0;
    padding-top: 1rem; /* Adjust for top bar */
    padding-bottom: 1rem;
    margin-top: 50px; /* Space for top bar */
    justify-content: space-between;
}

/* Sign In button aligned left */
  .mobile-flyout-header .signin-btn {
    flex: 1;
    font-size: 0.95rem;
    font-weight: 600;
  }


/* Re-adjusting mobile header for both bars */
.mobile-flyout-header {
    margin-top: 0;
    height: auto;
    padding: 1rem;
}

/* Close (cross) button on right side */
  .mobile-flyout-header .close-flyout-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1.4rem;
  }

  .mobile-flyout-header .close-flyout-btn svg {
    width: 25px;
    height: 25px;
    stroke-width: 2;
    color: #fff;
}

/* Panel Navigation */
.mobile-flyout-nav {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem;
}
.mobile-nav-group {
    border-bottom: 1px solid var(--header-border);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}
.mobile-nav-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: var(--header-radius-sm);
    background: none;
    border: none;
    cursor: pointer;
}
.mobile-nav-item:hover {
    background-color: #f3f4f6; /* Gray 100 */
}
.mobile-nav-item .link-label {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	text-align: left;
}
.mobile-nav-item .icon-chevron {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-light);
    transition: transform 0.2s ease;
}
.mobile-nav-item.open .icon-chevron {
    transform: rotate(180deg);
}

/* Mobile Submenus */
.mobile-nav-submenu {
    padding: 0.5rem 0.75rem 1rem 0.75rem;
    display: none; /* Hidden by default */
}
.mobile-nav-submenu .dropdown-title {
    font-size: 1rem;
    padding-left: 0.75rem;
}
.mobile-nav-submenu .dropdown-form-group {
    padding: 0 0.75rem;
}
.mobile-nav-submenu .dropdown-btn-secondary {
    margin-top: 1rem;
    margin-left: 0.75rem;
    width: calc(100% - 1.5rem);
}
.mobile-nav-sublink {
    display: block;
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--header-radius-sm);
}
.mobile-nav-sublink:hover {
    background-color: #f3f4f6; /* Gray 100 */
    color: var(--text-primary);
}


/* ==============================
  6. RESPONSIVE MEDIA QUERIES
=============================== */

/* Tablet */
@media (min-width: 768px) {
    .logo-text {
        display: block;
    }
    .adv-search-btn-icon {
        display: block;
    }
    .adv-header-secondary .adv-header-container {
        padding: 0 1rem; /* Restore padding */
    }
}

/* Desktop */
@media (min-width: 1024px) {
    .adv-header-nav {
        display: flex;
    }
    .adv-header-mobile-toggle {
        display: none;
    }
}

/* Mobile & Tablet */
@media (max-width: 1023px) {
    /* Hide desktop nav elements */
    .adv-header-nav {
        display: none;
    }
    /* Show mobile toggle */
    .adv-header-mobile-toggle {
        display: block;
    }
    /* Hide secondary menus container */
    .adv-header-secondary-menus {
        display: none !important;
    }
}
@media (max-width: 767px) {
    .adv-header-main .adv-header-container {
        gap: 1rem;
    }
    .logo-text {
        display: none;
    }
    .adv-search-bar {
        max-width: none;
        flex-grow: unset;
    }
    .adv-search-btn-text {
        display: none;
    }
    .adv-search-btn-icon {
        display: block;
        padding: 0 0.75rem;
        background-color: var(--header-primary);
        color: var(--text-on-primary);
        height: 100%;
        border-radius: 0;
    }
    .adv-header-secondary .adv-header-container {
        padding: 0 1rem; /* Add padding for scrolled items */
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .mobile-flyout-panel {
        width: 100%;
        left: -100%;
    }
    body.mobile-flyout-open .mobile-flyout-panel {
        transform: translateX(100%);
    }
    .adv-search-bar {
        display: none; /* Hide search on smallest screens */
    }
    .adv-header-logo {
        margin-right: auto;
    }
}



/* --- Fix stacking for dropdowns --- */
.adv-nav-item.dropdown-hover-wrapper {
  position: relative;
  z-index: 1050;
}
.adv-header-secondary {
	position: relative;
	z-index: 1040;
	padding: 5px 0px;
}
.adv-header-secondary-menus {
  top: 100%;
  z-index: 1060;
}

    /* --- Fix for Mobile Flyout UI --- */
    .mobile-flyout-panel {
      height: 100vh;
      box-shadow: var(--dropdown-shadow);
    }
    .mobile-nav-group {
      margin-bottom: 0.5rem;
      padding-bottom: 0.5rem;
    }
    .mobile-flyout-header {
      background-color: var(--header-primary);
      color: var(--text-on-primary);
    }
    .mobile-flyout-overlay {
      backdrop-filter: blur(4px);
    }

    /* --- Make dropdowns properly overlap other elements --- */
    .dropdown-menu {
      z-index: 2000;
    }






/* =================================
  MAIN PAGE CONTENT
  =================================
*/
.page-container {
    width: 100%;
    
    margin: 1.5rem 0px;
    padding: 0 2rem;
}

/* =================================
  BREADCRUMBS
  =================================
*/
.breadcrumbs {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.breadcrumbs a {
    color: var(--text-light);
}
.breadcrumbs a:hover {
    color: var(--primary-color);
}
.breadcrumbs .sep {
    margin: 0 0.25rem;
}

/* =================================
  PAGE TITLE
  =================================
*/
.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* =================================
  FILTER BAR
  =================================
*/

.top_cities span {
  font-size: 0.9rem;
  color: var(--text-light);
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: 0.35rem 0.85rem;
  padding-right: 0.85rem;
  padding-right: 0.85rem;
  transition: all 0.2s ease;
  margin-left: 5px;
  cursor: pointer;
}
.top_cities span:hover {
  color: var(--primary-dark);
  text-decoration: none;
  background-color: var(--primary-light);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.top_cities span.active {
  color: #fff;
  text-decoration: none;
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

@media only screen and (max-width:1024px){
  .filter-bar .top_cities {
	display: none;
}
}

.filter-bar {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.5rem;
    width: 100%;

}

/* Products/Suppliers Toggle */
.filter-toggle {
    display: flex;
    align-items: center;
    background-color: var(--bg-grey);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 4px;
}
.filter-toggle__button {
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    color: var(--text-light);
    transition: background-color 0.2s, color 0.2s;
}
.filter-toggle__button--active {
    background-color: #007bff;
    color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Filter Buttons Area */
.filter-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 0.75rem;
    align-items: center;
    /* flex-grow: 1; */ /* REMOVED: This caused bad wrapping */
}

.filter-button {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-light);
    transition: border-color 0.2s, color 0.2s;
}
.filter-button:hover {
    border-color: #aaa;
    color: var(--text-color);
}
.filter-button .icon {
    width: 16px;
    height: 16px;
}

.filter-button--static {
    cursor: default;
}

.filter-button--all {
    /* margin-left: auto; */ /* Let it wrap naturally */
    border-style: dashed;
    margin-top: 0; /* Default */
}


/* =================================
  "ALL FILTERS" SIDE PANEL (RIGHT)
  =================================
*/


.filter-sidebar__widget .top_cities {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin-top: 20px;
}
.filter-sidebar__widget .top_cities span {
  text-align: center;
  margin: 0px !important;
}

.filter-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

.filter-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Start off-screen */
    width: 100%;
    max-width: 400px;
    height: 100%;
    background-color: var(--bg-color);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

/* Open states */
body.filter-panel-open .filter-sidebar-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s linear;
}
body.filter-panel-open .filter-sidebar {
    transform: translateX(-400px);
}
body.filter-panel-open {
    overflow: hidden;
}


.filter-sidebar__header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.filter-sidebar__close {
    padding: 0.25rem;
    margin-right: 1rem;
}
.filter-sidebar__close .icon {
    width: 24px;
    height: 24px;
}
.filter-sidebar__title {
    font-size: 1.1rem;
    font-weight: 600;
}

.filter-sidebar__body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.filter-sidebar__widget {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}
.filter-sidebar__widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.filter-sidebar__widget-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-light);
}
.filter-buttons--panel {
    gap: 0.5rem;
}
.filter-buttons--panel .filter-button {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
}

.filter-sidebar__footer {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    flex-shrink: 0;
}
.filter-sidebar__button {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}
.filter-sidebar__button--reset {
    background-color: var(--bg-light);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.filter-sidebar__button--reset:hover {
    background-color: #e2e2e2;
}
.filter-sidebar__button--apply {
    background-color: var(--blue-color);
    color: white;
}
.filter-sidebar__button--apply:hover {
    background-color: var(--blue-color);
}


/* =================================
  PANEL ACCORDION (Global)
  =================================
*/
/* Used in "All Filters" */
.accordion__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.25rem 0;
    margin-bottom: 0.5rem;
}
.accordion__header .icon--chevron {
    transition: transform 0.3s ease;
}
.accordion__header.open .icon--chevron {
    transform: rotate(180deg);
}

.accordion__content {
    max-height: 0; /* JS will set this */
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.accordion__search-box {
    position: relative;
    margin-bottom: 1rem;
}
.accordion__search-box input {
    width: 100%;
    padding: 0.6rem 0.75rem;
    padding-right: 2.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.accordion__search-box .icon {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    color: var(--text-lighter);
}

.accordion__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0; /* Reset list padding */
    margin: 0; /* Reset list margin */
}
.accordion__list li {
    margin: 0; /* Reset list item margin */
}
.accordion__list li label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.accordion__list li input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* =================================
  20:80 MAIN LAYOUT
  =================================
*/
.page-layout {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

/* This is the mobile-only button */
.sidebar-filters-button {
    display: none; /* Hidden by default */
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--blue-color);
    color: white;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    transition: background-color 0.2s;
}


.page-sidebar {
    width: 22%; /* Approx 20% */
    flex-shrink: 0;
    
    /* Mobile panel styles */
    position: fixed;
    top: 0;
    left: -320px; /* Start off-screen */
    width: 100%;
    max-width: 320px;
    height: 100%;
    z-index: 1030;
    background-color: var(--bg-light);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}
/* This overlay is for the MAIN sidebar panel */
#main-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1020;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s linear;
}

.page-content {
    width: 78%; /* Approx 80% */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* =================================
  MAIN PAGE SIDEBAR (LEFT)
  =================================
*/

/* Header for the mobile panel */
.page-sidebar__header {
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
    height: var(--header-height);
    flex-shrink: 0;
}
.page-sidebar__header-title {
    font-size: 1.1rem;
    font-weight: 600;
}
.page-sidebar__close {
    padding: 0.5rem;
}
.page-sidebar__close .icon {
    width: 24px;
    height: 24px;
}

/* This wrapper holds the scrollable content */
.page-sidebar__content {
    flex-grow: 1;
    /* overflow-y: auto; */
}
.page-sidebar__content.wapx-sidebar {
  display: flex;
  flex-direction: column;
}
/* small helpers */
.wapx-hidden{display:none!important}

/* Remove All Filters */
.remove-all-filters {
  padding: .6rem;
  display:flex;
  justify-content:flex-end;
  margin-bottom: .75rem;
}
.remove-all-filters__btn {
  background: transparent;
  border: 1px solid var(--border-color);
  padding: .45rem .75rem;
  border-radius: 6px;
  font-weight:600;
  cursor:pointer;
}
.remove-all-filters__btn:hover {
  background: var(--bg-grey);
}
.sidebar-widget {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  margin-bottom: 1rem;
  overflow: hidden;
}
/* No margin for last widget on desktop */
.page-sidebar__content .sidebar-widget:last-child {
    margin-bottom: 0;
}

/* Quote Form */
.quote-form {
    padding: 1.25rem;
    background-color: var(--primary-light);
    border-color: #bdecf5;
}
.quote-form__title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}
.quote-form__title strong {
    color: var(--primary-color);
}
.quote-form__subtitle {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}
.quote-form__input-group {
    position: relative;
    margin-bottom: 0.75rem;
}
.quote-form__input-group .icon {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    color: var(--text-lighter);
}
.quote-form__input-group input {
    width: 100%;
    padding: 0.7rem 1rem;
    padding-left: 2.5rem;
    font-size: 0.9rem;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.quote-form__submit {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    background-color: var(--blue-color);
    color: white;
    border-radius: 6px;
    transition: background-color 0.2s;
}






/* Sidebar Accordion (Main Page) */
.sidebar-accordion__header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  width:100%;
  font-size:1.02rem;
  font-weight:600;
  padding: 0.9rem 1rem;
  background: transparent;
  border: none;
  cursor: pointer;
}
.sidebar-widget:last-child .sidebar-accordion__header {
    border-bottom: none;
}
.sidebar-accordion__header .icon--chevron {
    transition: transform 0.3s ease;
}
.sidebar-accordion__header.open .icon--chevron {
    transform: rotate(180deg);
}
.sidebar-accordion__header.open + .sidebar-accordion__content {
    border-top: 1px solid var(--border-color);
}
/* No border for last widget if it's closed */
.sidebar-widget:last-child .sidebar-accordion__header.open {
    border-bottom: 1px solid var(--border-color);
}
/* If last widget is closed, it shouldn't have a bottom border */
.sidebar-widget:last-child .sidebar-accordion__header:not(.open) {
    border-bottom: none;
}

/* ==========================================================
   FIX — Make Mobile Sidebar Scrollable When Filters Expand
========================================================== */

@media (max-width: 991px) {
  body.main-sidebar-open {
    overflow: hidden; /* Prevent body scroll when sidebar open */
  }

  /* Sidebar wrapper itself */
  #page-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 85%;
    max-width: 360px;
    height: 100vh;
    background: var(--bg-color);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  }

  #page-sidebar.open {
    transform: translateX(0);
  }

  /* Scrollable filter content area */
  .page-sidebar__content {
    flex: 1 1 auto;
    /* overflow-y: auto;
    overflow-x: hidden; */
    padding-bottom: 2rem; /* Prevent last item from being hidden behind edge */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
  }

  /* Ensure accordions expand correctly within scroll container */
  .sidebar-widget {
    position: relative;
    z-index: 1;
  }

  /* Optional: Dim background behind sidebar */
  #main-sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.main-sidebar-open #main-sidebar-overlay {
    opacity: 1;
    visibility: visible;
  }
}


.sidebar_accordian_hidden_content {
    padding-bottom: 20px !important;
}


.sidebar-accordion__content {
  
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, padding .28s ease;
  box-sizing: border-box;
}
.sidebar-accordion__list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0; /* Reset list padding */
    margin: 0; /* Reset list margin */
}
.sidebar-accordion__list li {
    margin: 0; /* Reset list item margin */
}
.sidebar-accordion__list li a {
    font-size: 0.9rem;
    color: var(--text-color);
}
.sidebar-accordion__list li a:hover {
    color: var(--primary-color);
}
.sidebar-accordion__price-range {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}
.sidebar-accordion__price-range input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.9rem;
}
.sidebar-accordion__price-range button {
    padding: 0.5rem 0.75rem;
    background-color: var(--bg-grey);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}
.sidebar-accordion__price-range button:hover {
    background-color: #e2e2e2;
}

.sidebar-accordion__checkbox {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.sidebar-accordion__checkbox input {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.sidebar-accordion__content.wapx-open {
	padding: 20px 20px 30px 20px !important;
}

.sidebar-accordion__list,
.sidebar-accordion__image-list {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:.6rem;
}
.sidebar-accordion__image-list li {
    margin: 0; /* Reset list item margin */
}
.sidebar-accordion__image-list li a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}
.sidebar-accordion__image-list li img{
  width:60px;
  height:60px;
  object-fit:cover;
  border-radius:6px;
  margin-right:.6rem;
}

/* Checkbox styling (simple) */
.filter-checkbox {
  width:16px;
  height:16px;
  margin-right:.5rem;
  vertical-align:middle;
}

/* ==========================================
   ACCORDION TRANSITION FIX
   Works for desktop + mobile (inside scroll area)
========================================== */

.sidebar-accordion__content,
.wapx-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  will-change: max-height;
}

/* When open */
.sidebar-accordion__content.wapx-open,
.wapx-accordion-content.wapx-open {
  overflow: visible;
}

/* Accordion header styling (for click area) */
.sidebar-accordion__header,
.wapx-accordion-toggle {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
  transition: background-color 0.2s ease;
}

.sidebar-accordion__header:hover {
  background-color: #f7f7f7;
}

/* Add a rotation for chevron when open */
.sidebar-accordion__header.wapx-open .icon--chevron,
.wapx-accordion-toggle.wapx-open .icon--chevron {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

.wapx-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  will-change: max-height;
}

.wapx-accordion-content.wapx-open {
  overflow: visible;
}

/* Inside scrollable sidebar fix */
@media (max-width: 992px) {
  #page-sidebar {
    overflow-y: auto;
    max-height: 100vh;
    -webkit-overflow-scrolling: touch;
  }
}



/* =================================
  MAIN CONTENT CARDS (RIGHT)
  =================================
*/
.card {
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    display: flex;
    transition: box-shadow 0.3s ease;
}
.card:hover {
    box-shadow: var(--shadow-lg);
}




/* ==========================================================
   WEB APEX — QUOTE FORM OTP POPUP (UNIQUE CLASS: waqf-)
========================================================== */
.waqf-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9980;
}
.waqf-popup-backdrop.active {
  opacity: 1;
  pointer-events: all;
}


.waqf-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  width: 100%;
  max-width: 400px;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  padding: 1.75rem 1.5rem;
  z-index: 9990;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif;
}

/* === Active States === */
.waqf-popup.active,
.waqf-popup-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.waqf-popup.active {
  transform: translate(-50%, -50%) scale(1);
}

/* === Header === */
.waqf-popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
.waqf-popup-logo {
  height: 30px;
}
.waqf-popup-close {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: #6b7280;
  transition: color 0.2s;
}
.waqf-popup-close:hover {
  color: #111827;
}

/* === Body === */
.waqf-popup-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  color: #111827;
}
.waqf-popup-subtitle {
  color: #4b5563;
  margin: 0.25rem 0 1rem;
}
.waqf-popup-mobile {
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 1rem;
}
.waqf-edit-number-btn {
  border: none;
  background: none;
  font-size: 0.9rem;
  color: #f97316;
  cursor: pointer;
}

/* === OTP Inputs === */
.waqf-otp-inputs {
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 1rem;
}
.waqf-otp-inputs input {
  width: 2.5rem;
  height: 2.8rem;
  text-align: center;
  font-size: 1.2rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition: border 0.2s;
}
.waqf-otp-inputs input:focus {
  border-color: #f97316;
}

/* === Footer === */
.waqf-resend-text {
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}
.waqf-resend-text a {
  color: #f97316;
  font-weight: 500;
  text-decoration: none;
}
.waqf-resend-text a:hover {
  text-decoration: underline;
}

/* === Continue Button === */
.waqf-submit-btn {
  display: block;
  width: 100%;
  background: #f97316;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}
.waqf-submit-btn:hover {
  background: #ea580c;
}
.waqf-popup-btn-close {
	font-size: 30px;
}
/* === Mobile Responsiveness === */
@media (max-width: 480px) {
  .waqf-popup {
    width: 90%;
    padding: 1.25rem;
  }
  .waqf-otp-inputs input {
    width: 2.2rem;
    height: 2.5rem;
  }
}







/* ==============================
   PRODUCT GRID
============================== */
#products-view .wapx-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
}

/* ==============================
   PRODUCT CARD
============================== */
.product-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}


/* Product Image Slider */
.product-card__image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.product-card__image-slider .slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.product-card__image-slider img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  height: 300px;
}

/* Navigation buttons (hidden by default) */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    padding: 0.4rem 0.9rem 0.5rem 0.9rem;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1.2rem;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, background 0.3s;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.7);
}

.product-card__image-slider:hover .slider-btn {
  opacity: 1;
  visibility: visible;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }



/* Image Section */
.product-card__image {
  background: #fff7ed;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
}

.product-card__image img {
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  border-radius: 6px;
}

/* Content Section */
.product-card__content {
  padding: 1rem 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

/* Title */
.product-title {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
  text-align: left;
}

/* Price */
.product-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #000;
}
.price-unit {
  font-weight: 400;
  color: #4b5563;
  font-size: 0.8rem;
  margin-left: 4px;
}


/* ============================
   PRODUCT PRICE DROPDOWN (PPD)
   Modern, clean, ecommerce style
============================ */

.product-price-dropdown {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ppd-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Dropdown wrapper */
.product-price-dropdown {
    position: relative;
}

/* Select Field */
.ppd-select {
    width: 100%;
    padding: 0.25rem 0.5rem;
    padding-right: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    background-color: #f97316;
    border: 1px solid #f97316;
    border-radius: 8px;
    color: var(--text-color);
    appearance: none;
    outline: none;
    transition: all 0.25s ease;
    color: #fff;
}

/* Hover + Focus */
.ppd-select:hover {
    border-color: var(--primary-color);
}

.ppd-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.priceing_grid {
    width: 100%;
    display: grid;
    grid-template-columns: 26% 65%;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

/* Custom dropdown arrow */
.product-price-dropdown::after {
    content: "";
    position: absolute;
    right: 15px;
    top: calc(50% + 4px);
    width: 6px;
    height: 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: translateY(-50%) rotate(45deg);
    pointer-events: none;
    transition: 0.25s ease;
    top: 12px;
    color: #fff;
}

/* Rotate arrow when focused */
.ppd-select:focus + .dummy ~ .product-price-dropdown::after,
.ppd-select:focus ~ * .product-price-dropdown::after {
    transform: translateY(-50%) rotate(225deg);
}




/* Contact Button */
.contact-btn {
  display: inline-block;
  width: 100%;
  background-color: #007bff;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  border-radius: 8px;
  padding: 0.6rem 0;
  text-decoration: none;
  transition: background 0.3s ease;
}

/* Supplier Info */
.supplier-info {
  margin-top: 0.25rem;
  font-size: 0.9rem;
  color: #374151;
}
.supplier-name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}
.supplier-location {
  font-size: 0.85rem;
  color: #6b7280;
}

/* Tags */
.supplier-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}
.supplier-tags span {
  font-size: 0.75rem;
  color: #4b5563;
  background: #f3f4f6;
  border-radius: 4px;
  padding: 2px 6px;
}

/* Rating Row */
.rating-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.rating-stars {
  color: #fbbf24;
  font-weight: 600;
}
.trust-seal {
  color: #16a34a;
  font-weight: 500;
}

/* View Mobile Button */
.view-mobile {
  margin-top: 0.5rem;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #f97316;
  text-decoration: none;
}
.view-mobile i {
  margin-right: 4px;
}
.view-mobile .response {
  color: #6b7280;
  font-weight: 400;
  margin-left: 4px;
}
.view-mobile:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  #products-view .wapx-product-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  .product-title {
    font-size: 0.95rem;
  }
}

/* ==============================
   Web Apex Popup Styles
   ============================== */

.wapx-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: all 0.3s ease;
}

.wapx-popup-box {
  background: #fff;
  border-radius: 12px;
  width: 95%;
  max-width: 400px;
  padding: 2rem 1.5rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  position: relative;
  animation: wapx-popup-in 0.25s ease;
}

@keyframes wapx-popup-in {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.wapx-popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #6b7280;
  cursor: pointer;
  transition: color 0.2s ease;
}
.wapx-popup-close:hover {
  color: #f97316;
}

/* Header */
.wapx-popup-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
.wapx-popup-logo {
  height: 35px;
}
.wapx-popup-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0.5rem 0 0.25rem;
  color: #111827;
}
.wapx-popup-subtitle {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0;
}

/* Input Field */
.wapx-input-group {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.wapx-country-code {
  background: #f9fafb;
  color: #6b7280;
  font-weight: 600;
  padding: 0.75rem;
  border-right: 1px solid #e5e7eb;
}
.wapx-input {
  flex: 1;
  padding: 0.75rem;
  border: none;
  outline: none;
  font-size: 1rem;
}

/* Terms */
.wapx-terms {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 1rem;
}
.wapx-terms input {
  margin-right: 6px;
}
.wapx-terms a {
  color: #f97316;
  text-decoration: none;
}
.wapx-terms a:hover {
  text-decoration: underline;
}

/* Buttons */
.wapx-login-btn {
  width: 100%;
  background: #f97316;
  border: none;
  color: #fff;
  border-radius: 8px;
  padding: 0.8rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.wapx-login-btn:hover {
  background: #ea580c;
}

.wapx-divider {
  display: flex;
  align-items: center;
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}
.wapx-divider::before,
.wapx-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
  margin: 0 8px;
}

/* Google Button */
.wapx-google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.8rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: #374151;
  transition: all 0.2s ease;
}
.wapx-google-btn:hover {
  background: #f9fafb;
}
.wapx-google-btn img {
  width: 20px;
  height: 20px;
}

/* Maybe Later */
.wapx-maybe-later {
  display: inline-block;
  text-align: center;
  width: 100%;
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.85rem;
  text-decoration: none;
}
.wapx-maybe-later:hover {
  text-decoration: underline;
}

/* Animation Trigger */
.wapx-popup-overlay.active {
  display: flex;
}

/* Responsive */
@media (max-width: 480px) {
  .wapx-popup-box {
    padding: 1.5rem;
  }
}




/* ==========================================================
   SUPPLIER GRID — WEB APEX
========================================================== */


.supplier-tags span svg {
    width: 16px;
    height: 16px;
    margin-right: 5px;
}
.supplier-tags span {
  display: flex;
  align-items: center;
  justify-content: center;
}
.verified {
    background: #2aa81a !important;
    color: #fff !important;
}
.not-verified {
    background: #000 !important;
    color: #fff !important;
}

/* ====== Load More Button ====== */
.wapx-load-more-wrap {
  text-align: center;
  margin-top: 2rem;
}

.wapx-load-more-btn {
  background-color: var(--primary-color, #007bff);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wapx-load-more-btn:hover {
  background-color: var(--header-primary-dark);
}

/* Optional animation for newly loaded cards */
.wapx-supplier-card.fade-in {
  animation: fadeIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.load_more_custom_btn {
    text-align: center;
    padding-top: 20px;
}

.wapx-suppliers-view .wapx-supplier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 15px;
  
}


/* Supplier Image Slider */
.wapx-supplier-image-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.wapx-supplier-image-slider .slider-track {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.wapx-supplier-image-slider img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 8px;
  object-fit: cover;
  height: 300px;
}

.wp_btn.wapx-popup-trigger {
  background: #eee;
  border: 2px solid #eee !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 11px;
}
.wp_icon {
  background-image: url(https://dev.web-apex.com/browse-nodes/images/wa.png);
  width: 15px;
  height: 15px;
  margin-right: 3px;
}

.wapx-supplier-image-slider:hover .slider-btn {
  opacity: 1;
  visibility: visible;
}

.prev-btn { left: 8px; }
.next-btn { right: 8px; }



/* Card Layout */
.wapx-supplier-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.25s ease;
  position: relative;
}
.wapx-supplier-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-3px);
}

/* Image */
.wapx-supplier-image {
  width: 100%;
  height: 180px;
  background: #f9fafb;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wapx-supplier-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Section */
.wapx-supplier-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.wapx-supplier-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.3rem;
}
.wapx-supplier-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
}
.wapx-supplier-location img {
  width: 16px;
  height: 11px;
  border-radius: 2px;
}

/* Ratings */
.wapx-supplier-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #f59e0b;
  margin-bottom: 0.6rem;
}
.wapx-supplier-rating .stars span {
  font-size: 1rem;
  color: #fbbf24;
}
.wapx-supplier-rating .rating-number {
  font-weight: 600;
  color: #111827;
}
.wapx-supplier-rating .rating-text {
  color: #6b7280;
}

/* Details */
.wapx-supplier-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: #4b5563;
  margin-bottom: 1rem;
}
.wapx-supplier-details .trust-badge {
  background: #ecfdf5;
  color: #059669;
  padding: 3px 8px;
  border-radius: 6px;
  font-weight: 500;
}

/* Buttons */
.wapx-supplier-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: auto;
}
.wapx-btn {
  display: inline-block;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.wapx-btn-primary {
  background: #007bff;
  color: #fff;
  border: 1px solid #007bff;
}
.wapx-btn-primary:hover {
  background: #007bff;
}
.wapx-btn-outline {
  background: #fff;
  border: 1px solid #d1d5db;
  color: #374151;
}
.wapx-btn-outline:hover {
  background: #f3f4f6;
}

/* Meta Info */
.wapx-supplier-meta {
  border-top: 1px solid #f3f4f6;
  padding: 0.8rem 1rem;
  background: #fafafa;
}
.wapx-supplier-enquiries {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #4b5563;
}
.wapx-supplier-enquiries .wapx-meta-icon {
  width: 16px;
  height: 16px;
  color: #9ca3af;
}

/* Responsive */
@media (max-width: 600px) {
  .wapx-supplier-card {
    flex-direction: column;
  }
  .wapx-supplier-image {
    height: 150px;
  }
}



/* =================================
  RESPONSIVE STYLES
  =================================
*/

/* Desktop-first: .page-sidebar is a panel by default */

/* Tablet & Smaller Desktops */
@media (min-width: 1025px) {
    /* This is the DESKTOP view */
    .page-sidebar {
        position: static; /* Not fixed */
        width: 20%;
        height: auto;
        max-width: none;
        background-color: transparent;
        transition: none;
        display: block; /* Ensure it's visible */
        flex-direction: row; /* Reset */
        z-index: unset !important;
    }
    .page-content {
        width: 80%;
    }
    .page-sidebar__header {
        display: none; /* Hide mobile header */
    }
    .page-sidebar__content {
        overflow-y: visible; /* No scroll needed */
    }
    .sidebar-filters-button {
        display: none; /* Hide mobile button */
    }
    /* No overlay on desktop */
    #main-sidebar-overlay {
        display: none;
    }
    /* Margin for last widget on desktop */
    .page-sidebar__content .sidebar-widget:last-child {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 1024px) {
    /* This is the TABLET & MOBILE view */

     .header-nav .header-nav__item {
    display: none;
  }
    .header-nav__button--mobile {
        display: flex; /* Show mobile menu button */
    }
    .search-bar {
        /* On tablet, hide location to simplify */
        .search-bar__location {
            display: none;
        }
    }
    .page-layout {
        flex-direction: column;
    }
    .page-sidebar {
        /* This is now a panel */
        display: flex; /* Re-enable for panel */
    }
    .page-content {
        width: 100%;
    }

    /* Show the mobile-only button */
    .sidebar-filters-button {
        display: block;
    }

    /* Show the panel header */
    .page-sidebar__header {
        display: flex;
    }
    /* Add padding to content for mobile */
    .page-sidebar__content {
         padding: 1rem;
    }
    .sidebar-widget {
        margin-bottom: 1rem;
    }
    .page-sidebar__content .sidebar-widget:last-child {
        margin-bottom: 0;
    }

    /* Tablet open states */
    body.main-sidebar-open #main-sidebar-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.3s ease, visibility 0s 0s linear;
    }
    body.main-sidebar-open .page-sidebar.open {
        transform: translateX(320px);
    }
    body.main-sidebar-open {
        overflow: hidden;
    }

    
}

/* Mobile */
@media (max-width: 767px) {
    .header__container {
        gap: 1rem;
        justify-content: space-between; /* Added to space logo and button */
    }
    .header__logo {
        flex-shrink: 0;
    }
    .header__logo img {
        height: 30px;
    }
    /* Hide desktop search bar completely */
    .search-bar {
        display: none;
    }

    .page-container {
        margin-top: 1rem;
        padding: 0 0.75rem;
    }
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .filter-bar {
        gap: 0.5rem;
    }

    /* Product/Supplier Cards on Mobile */
    .product-card {
        flex-direction: column;
    }
    .product-card__image-col {
        width: 100%;
        padding: 1.5rem;
    }
    .product-card__info-col {
        border-left: none;
        border-top: 1px solid var(--border-color);
        border-right: none;
    }
    .product-card__catalogue-col {
        width: 100%;
        border-top: 1px solid var(--border-color);
        justify-content: flex-start;
    }
    .catalogue-link {
        flex-direction: row;
    }
    
    .supplier-card {
        flex-direction: column;
    }
    .supplier-card__image-col {
        width: 100%;
        padding: 1.5rem;
    }
    .supplier-card__info-col {
        border-left: none;
        border-top: 1px solid var(--border-color);
    }
    .supplier-card__enquiry-col {
        width: 100%;
        border-left: none;
        border-top: 1px solid var(--border-color);
        align-items: center;
        justify-content: flex-start;
    }
    
    /* "All Filters" Panel (Right) */
    .filter-sidebar {
        max-width: 100%;
        right: -100%;
    }
    body.filter-panel-open .filter-sidebar {
        transform: translateX(-100%);
    }

    /* Main Sidebar Panel (Left) */
    .page-sidebar {
        max-width: 100%;
        left: -100%;
    }
    body.main-sidebar-open .page-sidebar.open {
        transform: translateX(100%);
    }
    .page-sidebar__content {
         padding: 1.5rem;
    }
}








/* =================================
  RELATED LINKS (Modern Pill/Tag UI)
  (Add this to the end of your CSS file)
  =================================
*/
.related-links-container {
    background-color: #fff;
    padding: 30px;
    margin: 30px;
    border-radius: 10px;
}

.related-links__section {
    margin-bottom: 2rem; /* Increased spacing */
}
.related-links__section:last-child {
    margin-bottom: 0;
}

.related-links__title {
    font-size: 1.2rem; /* Made title slightly larger */
    font-weight: 600;
    margin-bottom: 1rem; /* Increased spacing */
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.related-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* Increased gap for pills */
    line-height: 1.6;
}

.related-links__item {
    font-size: 0.8rem; /* Smaller font for pills */
    color: var(--text-light);
    
    /* Pill styles */
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 9999px; /* Full pill shape */
    padding: 0.35rem 0.85rem;
    
    /* Remove old styles */
    position: static; 
    padding-right: 0.85rem;

    transition: all 0.2s ease;
}

.related-links__item:hover {
    color: var(--primary-dark);
    text-decoration: none;
    background-color: var(--primary-light);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Remove the separator */
.related-links__item:not(:last-child)::after {
    content: none;
}








/* =================================
  FOOTER WRAPPER
  =================================
*/
.site-footer {
    background: #fff;
    color: #000;
    padding: 4rem 1rem 0 1rem; /* More top padding, no bottom padding */
    border-top: 4px solid var(--primary-color);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* =================================
  FOOTER LINK GRID
  =================================
*/
.footer-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2.5rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--footer-border);
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.5rem;
}

/* Underline accent for titles */
.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 25px;
    height: 2px;
    background-color: var(--primary-color);
}

.footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-links li a {
    color: #000;
    font-size: 0.875rem;
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
    position: relative;
}

.footer-links li a:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: translateX(5px);
}

/* Optional: hover underline effect */
.footer-links li a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.footer-links li a:hover::before {
    width: 100%;
}


/* =================================
  SECONDARY ROW (SOCIAL & APPS)
  =================================
*/
.footer-secondary-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--footer-border);
}

.footer-title-sm {
    font-size: 0.875rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.social-icons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.social-icon {
    color: var(--footer-text-secondary);
    background-color: #374151; /* Gray 700 */
    border-radius: 9999px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.social-icon:hover {
    color: var(--footer-text-hover);
    background-color: var(--primary-color); /* Gray 600 */
    transform: translateY(-2px);
}

.social-icon svg {
	width: 20px;
	height: 20px;
	fill: #fff;
}

.app-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.app-badge img {
    height: 40px;
    width: auto;
    border-radius: 6px;
    opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-badge:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* =================================
  PAYMENT ICONS
  =================================
*/
.footer-payments {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--footer-border);
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    color: var(--footer-text-secondary); /* SVGs will inherit this */
}

.payment-icons svg {
    height: 24px;
    width: auto;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.payment-icons svg:hover {
    opacity: 1;
    color: var(--footer-text-primary);
}


/* =================================
  BOTTOM BAR (COPYRIGHT & LEGAL)
  =================================
*/
.footer-bottom {
    display: flex;
    flex-direction: column-reverse; /* Puts copyright first on mobile */
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    padding: 2.5rem 0; /* Final padding */
    font-size: 0.8rem; /* Slightly larger text */
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    justify-content: center;
}

.footer-legal a {
    color: #000;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-copyright {
    color: #000;
}


/* =================================
  RESPONSIVE STYLES
  =================================
*/

/* Small tablets */
@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Tablets */
@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-secondary-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer-legal {
        justify-content: flex-start;
    }
}

/* Desktops */
@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}





.product_box_button_grid {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
}

.product_box_button_grid a {
    font-size: 11px;
    padding: 0.5rem 0.3rem;
}

.product_box_button_grid .contact-btn.wapx-popup-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
}


.wapxrfq-open-btn {
    background: var(--header-primary);
    color: #fff;
    border: none;
    padding: 0.5rem 0.3rem;
    font-size: 11px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.25s;
    font-weight: 600;
}
.wapxrfq-open-btn:hover {
  background: var(--header-primary);
}

.wapxrfq-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: none;
  z-index: 9998;
  backdrop-filter: blur(6px);
}

.wapxrfq-form .wapxrfq-group input {
    padding: 0.8rem;
    border: 1px solid #ccc;
    width: 100%;
    border-radius: 10px;
}

.wapxrfq-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  background: #fff;
  border-radius: 14px;
  width: 90%;
  max-width: 760px;
  padding: 2rem;
  z-index: 9999;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: all 0.3s ease;
}

.wapxrfq-modal.active {
  display: block;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wapxrfq-overlay.active {
  display: block;
}

/* Close */
.wapxrfq-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}
.wapxrfq-close-btn:hover {
  color: #007bff;
}
.wapxrfq-close-btn svg {
  width: 26px;
  height: 26px;
}

/* Text */
.wapxrfq-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.4rem;
}
.wapxrfq-subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1.5rem;
}

/* Grid */
.wapxrfq-grid {
  display: grid;
  gap: 2rem;
}
@media (min-width: 768px) {
  .wapxrfq-grid {
    grid-template-columns: 2fr 1fr;
  }
}

/* Form */
.wapxrfq-group {
  margin-bottom: 1rem;
}
.wapxrfq-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}
.wapxrfq-quantity {
  display: flex;
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
}
.wapxrfq-quantity input,
.wapxrfq-quantity select {
  border: none;
  padding: 0.75rem;
  font-size: 0.9rem;
  outline: none;
}
.wapxrfq-quantity input {
  flex: 1;
}
.wapxrfq-quantity select {
  border-left: 1px solid #ddd;
}

/* Options */
.wapxrfq-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.wapxrfq-option {
  padding: 0.45rem 1rem;
  border: 1px solid #ccc;
  border-radius: 20px;
  background: #f8f8f8;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}
.wapxrfq-option:hover,
.wapxrfq-option.active {
  background: #007bff;
  color: #fff;
  border-color: #007bff;
}

/* Buttons */
.wapxrfq-btn-primary {
  background: #007bff;
  color: #fff;
  border: none;
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: 0.25s;
}
.wapxrfq-btn-primary:hover {
  background: #0056cc;
}

/* Info */
.wapxrfq-info {
  text-align: center;
}
.wapxrfq-img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}
.wapxrfq-info-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.wapxrfq-list {
  list-style: none;
  padding: 0;
  color: #555;
}
.wapxrfq-list li {
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

/* Login Step */
.wapxrfq-mobile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 0.8rem;
}
.wapxrfq-mobile span {
  font-weight: 600;
  color: #555;
}
.wapxrfq-terms {
  margin: 1rem 0;
  font-size: 0.85rem;
  color: #666;
}
.wapxrfq-terms a {
  color: #007bff;
  text-decoration: none;
}
.wapxrfq-skip {
  display: block;
  text-align: center;
  margin-top: 1rem;
  color: #007bff;
  font-weight: 500;
  text-decoration: none;
}

/* ✅ Mobile Optimization */
@media (max-width: 600px) {
  .wapxrfq-modal {
    width: 95%;
    height: auto;
    top: 50%;
    transform: translate(-50%, -50%) scale(1);
    padding: 1.2rem;
    border-radius: 12px;
  }

  .wapxrfq-title {
    font-size: 1.2rem;
  }

  .wapxrfq-subtitle {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .wapxrfq-btn-primary {
    padding: 0.7rem;
    font-size: 0.9rem;
  }

  .wapxrfq-option {
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
  }

  .wapxrfq-img {
    width: 100px;
    margin: 0 auto 0.5rem;
  }

  .wapxrfq-grid {
    display: block;
  }
}



/*recent produts*/

.recent-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.recent-products h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    margin-top: 30px;
}

.recent-products-grid .product-title {
  text-align: center;
}
.recent-products-grid .product-card__content {
  align-items: center;
}
.recent-products-grid .supplier-location {
  text-align: center;
}
.recent-products-grid .product_box_button_grid {
  grid-template-columns: repeat(1,1fr);
}


#suppliers-view:not(.hidden) ~ .recent-products {
    display: none !important;
}
