

/* Filter search row */
#filter-form .filter-search-row{
	margin-top:-10px;
	margin-bottom:0;
}



/*

Cleaned CSS for Underscores Theme
Astra-specific code removed
Consolidated and optimized
*/
/* ========== CHECKOUT OVERRIDE ========== */
.woocommerce.woocommerce-checkout form #order_review,
.woocommerce.woocommerce-checkout form #order_review_heading,
.woocommerce-page.woocommerce-checkout form #order_review,
.woocommerce-page.woocommerce-checkout form #order_review_heading {
width: 100% !important;
float: none !important;
margin-right: 0 !important;
clear: none !important;
}

/* ========== GLOBAL STYLES ========== */

/* Full page width */
body, #page {
max-width: 100% !important;
width: 100% !important;
margin: 0 !important;
padding: 0 !important;
}

/* Content starts right after header - no gap */
#content, #primary, #main {
margin-top: 0 !important;
padding-top: 0 !important;
}

/* Global link styles */
body a {
font-weight: 600;
font-size: 18px;
letter-spacing: 1.9px;
text-shadow: rgba(0, 0, 0, 0.3) 0px 1px 1px;
text-decoration: underline;
font-style: normal;
}

/* Header transparency */
header *, #masthead *, .site-header * {
background-color: transparent;
}

/* Ticker element */
body my-pmd-ticker {
z-index: 999999999999999;
position: relative;
}

/* ========== HEADER STYLES ========== */

/* Consistent header height */
#header, #masthead {
height: 80px !important;
min-height: 80px !important;
max-height: 80px !important;
margin: 0 !important;
}

/* Header styling */
#header {
border: 1px solid rgba(203, 213, 225, 0.15);
border-left: 4px solid #10b981;
}

/* Logo - Global sizing for all devices */
.custom-logo-link img,
.site-logo-img img {
max-height: 50px !important;
width: auto !important;
height: auto !important;
margin: 0 !important;
padding: 0 !important;
}

/* Main navigation menu text */
#site-navigation a,
.main-navigation a,
nav a {
font-size: 12px !important;
}

/* Brand menu in sidebar - smaller text */
#brand-menu h3 {
font-size: 11px !important;
}

#brand-menu ul a {
font-size: 11px !important;
}

/* Header search wrapper */
#header .search-wrapper {
margin-bottom: 80px !important;
margin-right: -100px !important;
}

/* Header labels */
#header label {
margin-top: -50px;
}

/* Mobile header */
#mobile-header {
margin-left: -10px !important;
z-index: 1 !important;
}

/* ========== SEARCH & FORMS ========== */

.products-search-form form input[type=text] {
margin-bottom: 0px;
}

#supplier-stock-table tr input[type=number] {
padding: 0;
}

#filter-form .filter-search-row input[type=text] {
margin-bottom: 0px;
transform: translateX(0) translateY(0);
}

#filter-header {
padding-bottom: 0px !important;
}

/* ========== CART STYLES ========== */

/* Hide specific cart price records */
.xoo-wsc-container .xoo-wsc-product .variation dt:nth-of-type(7),
.xoo-wsc-container .xoo-wsc-product .variation dt:nth-of-type(7) + dd,
.xoo-wsc-container .xoo-wsc-product .variation dt:nth-of-type(8),
.xoo-wsc-container .xoo-wsc-product .variation dt:nth-of-type(8) + dd {
display: none !important;
}

/* Cart quantity input */
input[type="number"].xoo-wsc-qty {
border-color: #000000;
background-color: #ffffff;
color: #000000;
height: 26px;
line-height: 26px;
font-size: 1em;
margin-bottom: 0;
}

/* Cart item styles */
.cart_item .product-name .variation {
padding-left: 10px;
}

.cart_item .product-name strong {
font-size: 1.5em;
font-weight: 600 !important;
}

/* ========== BRAND MENU ========== */

#brand-menu {
padding-bottom: 5px;
padding-left: 5px;
}

#brand-menu h3 {
margin-bottom: -10px !important;
font-weight: 600 !important;
margin-top: -10px;
font-size: 12px !important;
}

#brand-menu ul {
margin-left: 0px;
padding-right: 0px;
margin-right: 0px;
padding-left: 0px !important;
}

#brand-menu ul a {
padding-bottom: 0px;
font-size: 12px;
line-height: 100%;
padding-left: 20px;
padding-right: 0px;
padding-top: 3px !important;
margin-left: -10px;
}

#brand-menu ul li {
padding-top: 3px;
padding-bottom: 3px;
font-size: 0.8em !important;
padding-left: 10px;
margin-right: 0px;
margin-left: 0px;
}

#brand-menu ul .active {
min-height: 16px;
padding-top: 5px;
padding-bottom: 5px;
}

#compact-brands-list .section-divider {
display: none;
}

.brands-section .brands-header h3 {
display: none;
}

/* ========== FILTERS ========== */

#category_filter_select,
#display_filter_select {
padding-top: 0px;
padding-bottom: 0px;
padding-right: 0px !important;
font-size: 14px !important;
font-weight: 500;
line-height: 16px !important;
white-space: nowrap !important;
}

#display_filter_select {
display: none;
}

.filters-form .filter-item label {
display: none;
}

.filters-form a img {
display: none !important;
}

.compact-filters-form .compact-filter-item select {
white-space: nowrap;
padding: 0 2px;
}

/* ========== PRODUCT STYLES ========== */

/* Product listings */
.products-list a h2 {
padding-left: 0px;
text-align: left;
white-space: break-spaces;
line-height: 1.3em;
font-size: 11px !important;
text-transform: uppercase;
font-weight: 600 !important;
}

.products-list .product-item a {
white-space: normal;
}

.products-list .product-item .product-price-range {
font-size: 13px;
line-height: 1.0em;
}

.products-list .product-item {
white-space: normal;
}

/* Product page titles */
.single-product .product_title,
.woocommerce .product .product_title {
font-size: 24px !important;
font-weight: 700 !important;
line-height: 1.2 !important;
}

/* Product spreadsheet */
#products-spreadsheet tr .cell-list-price,
#products-spreadsheet tr .cell-partner-price {
font-size: 1.2em;
font-weight: 600;
}

.featured-label {
z-index: 999 !important;
}

.b2b-tagline-badge {
margin-top: -20px !important;
}

/* ========== LAYOUT ========== */

/* Filter wrapper - consistent across all pages */
.filter-wrapper {
	z-index:9999!important;
margin: 0 !important;
padding: 0 !important;
}

/* Remove ALL page-specific filter positioning */
body.page-id-1367 .filter-wrapper,
body.page-id-1363 .filter-wrapper {
margin: 0 !important;
padding: 0 !important;
top: 0 !important;
}

#left-column {
padding-bottom: 50px !important;
}

#right-content {
padding-bottom: 50px !important;
}

#main article {
padding: 0 !important;
}

#responsive-left-menu {
margin: 0 0 0 -10px;
position: relative;
}

/* ========== PAGE-SPECIFIC STYLES ========== */

/* Single page (ID: 1367) */
body.page-id-1367 div input[type=number] {
padding-left: 10px;
padding-right: 10px;
}

body.page-id-1367 #responsive-left-menu {
padding-bottom: 150px !important;
margin-bottom: 200px !important;
}

body.page-id-1367 #right-content {
padding: 0 5px !important;
}

body.page-id-1367 #right-content .single-product {
padding: 0 0 200px 0 !important;
margin-bottom: 200px !important;
}

body.page-id-1367 .xoo-wsc-markup .xoo-wsc-modal .xoo-wsc-container {
margin-bottom: 80px;
}

/* ========== PAGE-SPECIFIC STYLES ========== */

/* Mainpage (ID: 1363) /
body.page-id-1363 #main article {
position: relative;
top: 0; / ✅ Changed from -40px */
}

body.page-id-1363 #responsive-left-menu {
margin-left: -10px !important;
}

body.page-id-1363 #right-content {
padding-bottom: 450px !important;
}

body.page-id-1363 .xoo-wsc-markup .xoo-wsc-modal .xoo-wsc-container {
margin-bottom: 60px;
}

body.page-id-1363 my-pmd-ticker {
top: 0; /* ✅ Changed from 15px */
}

/* Checkout page (ID: 1133) */
body.page-id-1133 .cart_item .variation .variation:nth-child(13),
body.page-id-1133 .cart_item .variation .variation:nth-child(14),
body.page-id-1133 .cart_item .variation .variation:nth-child(15),
body.page-id-1133 .cart_item .variation .variation:nth-child(16) {
display: none;
}

.woocommerce.woocommerce-checkout form #customer_details.col2-set,
.woocommerce-page.woocommerce-checkout form #customer_details.col2-set {
width: 100% !important;
}

body.page-id-1133 #customer_details .woocommerce-additional-fields h3 {
display: none;
margin: 0 !important;
}

body.page-id-1133 #order_comments_field label {
font-size: 18px;
margin: 0;
}

body.page-id-1133 .xoo-wsc-markup .xoo-wsc-modal .xoo-wsc-container {
bottom: 80px;
}

/* Register page (ID: 1075) */
body.page-id-1075 #referrer_type {
padding: 5px;
}

body.page-id-1075 #customRegistrationFormV3 .form-field,
body.page-id-1075 #registration-form-container {
margin-bottom: 0px;
}

/* Spv page (ID: 2643) */
body.page-id-2643 #page {
padding: 0 20px;
}

/* My account page (ID: 9) */
body.page-id-9 .b2b-tagline-badge {
display: none !important;
}

body.page-id-9 .xoo-wsc-markup .xoo-wsc-modal .xoo-wsc-container {
bottom: 80px;
}

/* Fixed_price_manager page (ID: 1882) */
body.page-id-1882 .wp-list-table tr a {
z-index: 99999999;
padding-left: 15px !important;
}

body.page-id-1882 .wrap code .wp-list-table tbody tr td a {
padding: 10px 15px 20px 15px !important;
}

/* Login page (ID: 1071) */
body.page-id-1071 .login-card .login-header h2,
body.page-id-1071 .login-card .login-header p {
display: none;
}

/* ========== DSPV3 PRODUCT DISPLAY STYLES ========== */

.dspv3-container {
width: 768px !important;
height: 768px !important;
margin: 0 auto;
padding: 24px;
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
border-radius: 20px;
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
overflow: hidden;
position: relative;
box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.8);
border: 1px solid #e2e8f0;
}

.dspv3-product-layout {
height: 100%;
display: grid;
gap: 16px;
}

.dspv3-product-layout.has-content {
grid-template-rows: auto 1fr;
}

.dspv3-product-layout.no-content {
grid-template-rows: auto 1fr;
}

.dspv3-header {
position: relative;
padding: 16px;
margin: -8px -8px 8px -8px;
background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.06), transparent);
border-radius: 12px;
border-bottom: 1px solid rgba(99, 102, 241, 0.1);
border: 1px solid rgba(203, 213, 225, 0.3);
}

.dspv3-featured-label {
position: absolute;
top: -8px;
right: -8px;
padding: 4px 12px;
border-radius: 16px;
color: white;
font-size: 12px;
font-weight: 600;
z-index: 10;
box-shadow: 0 4px 12px rgba(0,0,0,0.2);
text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.dspv3-featured-label.dual {
background: linear-gradient(135deg, #ef4444 0%, #f97316 50%, #eab308 100%);
}

.dspv3-featured-label.speed {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dspv3-featured-label.special {
background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.dspv3-product-title {
font-size: 28px !important;
margin: 0 100px 6px 0 !important;
padding: 0 !important;
line-height: 1.15 !important;
font-weight: 700;
background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
word-wrap: break-word;
letter-spacing: -0.025em;
}

.dspv3-product-meta {
display: flex;
align-items: center;
gap: 10px;
margin: 6px 0;
font-size: 16px;
color: #64748b;
font-weight: 500;
}

.dspv3-product-meta .category {
background: linear-gradient(135deg, #8b5cf6 0%, #a855f7 100%);
color: white;
padding: 3px 10px;
border-radius: 10px;
font-size: 12px;
font-weight: 600;
box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

.dspv3-product-meta .brand {
background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
color: white;
padding: 3px 10px;
border-radius: 10px;
font-size: 12px;
font-weight: 600;
box-shadow: 0 2px 8px rgba(6, 182, 212, 0.2);
}

.dspv3-sku {
margin: 6px 0 0 0 !important;
padding: 4px 10px !important;
font-size: 12px !important;
color: #64748b !important;
font-weight: 500 !important;
background: rgba(100, 116, 139, 0.08);
border-radius: 8px;
border-left: 3px solid #8b5cf6;
font-family: "JetBrains Mono", "Fira Code", monospace;
border: 1px solid rgba(139, 92, 246, 0.1);
}

.dspv3-main-content {
display: grid;
grid-template-columns: 320px 1fr;
gap: 20px;
height: 100%;
min-height: 0;
}

.dspv3-product-layout.no-content .dspv3-main-content {
grid-template-columns: 1fr;
place-items: center;
}

.dspv3-image-section {
display: flex;
flex-direction: column;
height: 100%;
gap: 8px;
min-height: 0;
}

.dspv3-main-image {
width: 320px;
flex: 1;
min-height: 250px;
max-height: 400px;
position: relative;
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
border-radius: 16px;
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
overflow: hidden;
border: 1px solid rgba(203, 213, 225, 0.3);
}

.dspv3-main-image::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
height: 3px;
background: linear-gradient(90deg, #8b5cf6, #06b6d4, #10b981);
z-index: 2;
}

.dspv3-thumbnails {
display: flex;
gap: 6px;
justify-content: center;
margin-bottom: 4px;
}

.dspv3-thumbnail {
width: 40px;
height: 40px;
object-fit: cover;
border-radius: 8px;
cursor: pointer;
border: 2px solid transparent;
transition: all 0.3s ease;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.dspv3-thumbnail:hover {
border-color: #8b5cf6;
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.dspv3-tech-specs {
flex: 0 0 auto;
min-height: 120px;
max-height: 200px;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 8px;
padding: 12px;
background: linear-gradient(135deg, rgba(139, 92, 246, 0.04) 0%, rgba(6, 182, 212, 0.04) 100%);
border-radius: 12px;
border: 1px solid rgba(139, 92, 246, 0.08);
overflow: hidden;
}

.dspv3-spec-item {
display: flex;
flex-direction: column;
gap: 2px;
padding: 8px;
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
border-radius: 8px;
box-shadow: 0 2px 8px rgba(0,0,0,0.06);
border: 1px solid rgba(203, 213, 225, 0.2);
}

.spec-label {
font-size: 11px;
color: #64748b;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
line-height: 1.2;
}

.spec-value {
font-size: 14px;
background: linear-gradient(135deg, #1e293b 0%, #475569 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 600;
line-height: 1.2;
}

.dspv3-content-section {
display: flex;
flex-direction: column;
height: 100%;
min-height: 0;
overflow: hidden;
background: rgba(248, 250, 252, 0.4);
border-radius: 12px;
padding: 0px;
border: 1px solid rgba(203, 213, 225, 0.2);
}

.dspv3-detailed-content {
flex: 1;
min-height: 0;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;
padding-right: 6px;
}

.dspv3-detailed-content::-webkit-scrollbar {
width: 4px;
}

.dspv3-detailed-content::-webkit-scrollbar-track {
background: rgba(203, 213, 225, 0.1);
border-radius: 2px;
}

.dspv3-detailed-content::-webkit-scrollbar-thumb {
background: linear-gradient(135deg, #8b5cf6 0%, #06b6d4 100%);
border-radius: 2px;
}

.dspv3-content-block {
margin-bottom: 10px;
padding: 12px;
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
border-radius: 12px;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
border: 1px solid rgba(203, 213, 225, 0.15);
border-left: 4px solid #10b981;
}

.content-title {
font-size: 16px !important;
margin: 0 0 6px 0 !important;
padding: 0 0 4px 0 !important;
background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 600;
border-bottom: 1px solid rgba(5, 150, 105, 0.15);
line-height: 1.3;
letter-spacing: -0.01em;
}

.content-text {
font-size: 13px;
line-height: 1.5;
color: #475569;
}

.content-text p {
margin: 0 0 6px 0;
}

.content-text strong {
background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
font-weight: 600;
}

.dspv3-additional-content,
.dspv3-supplier-notes {
margin-top: 8px;
}

.additional-section,
.supplier-section {
padding: 12px;
background: linear-gradient(135deg, rgba(251, 191, 36, 0.04) 0%, rgba(249, 115, 22, 0.04) 100%);
border-radius: 12px;
border-left: 4px solid #f59e0b;
font-size: 13px;
line-height: 1.5;
color: #475569;
box-shadow: 0 2px 8px rgba(0,0,0,0.04);
border: 1px solid rgba(245, 158, 11, 0.1);
}

.dspv3-qrcode {
position: absolute;
top: 80px;
right: 24px;
z-index: 1000;
background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
padding: 8px;
border-radius: 12px;
box-shadow: 0 8px 25px -5px rgba(0,0,0,0.12);
border: 1px solid rgba(203, 213, 225, 0.3);
}

.dspv3-product-layout.no-content .dspv3-qrcode {
top: 24px;
right: 24px;
}

.download-loader {
display: none;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 9999;
background: linear-gradient(145deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
padding: 40px;
border-radius: 20px;
text-align: center;
box-shadow: 0 25px 50px -12px rgba(0,0,0,0.2);
backdrop-filter: blur(10px);
border: 1px solid rgba(203, 213, 225, 0.3);
}

.download-loader .spinner {
border: 4px solid rgba(139, 92, 246, 0.1);
border-top: 4px solid #8b5cf6;
border-radius: 50%;
width: 50px;
height: 50px;
animation: spin 1s linear infinite;
margin: 0 auto 20px;
}

.download-loader p {
color: #475569;
font-weight: 500;
margin: 0;
font-size: 16px;
}

@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}

/* ========== RESPONSIVE STYLES ========== */

@media (max-width: 640px) {
/* No page-specific filter positioning */
}

@media (max-width: 600px) {
/* No page-specific filter positioning */
}

@media (max-width: 992px) {
#compact-brands-list .compact-brand-item .brand-count {
display: none;
}
}

@media (min-width: 421px) {
#display_filter_select {
font-size: 9px !important;
}


#brand-menu ul li {
    margin-left: -5px !important;
}
}

@media (min-width: 770px) {
#brand-menu ul li {
margin-left: -15px !important;
}
}

@media (min-width: 922px) {
#brand-menu h3 {
font-size: 18px !important;
}
}

@media (min-width: 1201px) {
#brand-menu ul li {
padding-left: 30px !important;
}
}
/* Remove underlines from product title links */
.products-list a,
.products-list a h2,
.product-item a,
#brand-menu a,
.main-navigation a,
#site-navigation a {
    text-decoration: none !important;
}

/* ===== FORCE NORMAL BUTTON TO SHOW ON ALL PAGES ===== */
.filter-normal-search-btn {
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    width: auto !important;
    height: 38px !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
}