/*
Theme Name: Hydroblast
Theme URI:
Author:
Description: A WooCommerce shop theme for Hydroblast.
Version: 0.1.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hydroblast
Tags: woocommerce, e-commerce, shop
*/

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&family=Source+Sans+3:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Tailwind Play CDN handles utility styles. This file contains only:
   1. Base resets
   2. WordPress nav menu overrides (generated HTML — Tailwind utilities cannot be applied)
   3. WooCommerce product grid overrides (generated HTML — Tailwind utilities cannot be applied)
*/

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===========================
   NAV MENU — COMMENTED OUT (replaced by mega-nav)
   WordPress generates this HTML — classes added via CSS only
=========================== */

/* .site-description {
    display: none;
} */

/* .main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 2rem;
} */

/* .main-navigation ul li a {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    letter-spacing: 0.02em;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
} */

/* .main-navigation ul li a:hover,
.main-navigation ul li.current-menu-item > a {
    color: #005497;
    border-bottom-color: #005497;
} */

/* ===========================
   WOOCOMMERCE OVERRIDES
   WC generates this HTML — Tailwind utilities cannot be applied directly
=========================== */

/* Ensure WooCommerce shortcode wrapper takes full width */
.woocommerce,
.woocommerce-page {
    width: 100% !important;
}

/* WC sets height:auto on all images — restore explicit heights for footer cert logos */
.woocommerce-page #colophon .bg-brand-blue img,
.woocommerce #colophon .bg-brand-blue img {
    height: 4rem !important;
    width: auto !important;
}

.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
    gap: 1.5rem !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
    width: 100% !important;
}

.woocommerce ul.products.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.woocommerce ul.products li.product {
    background-color: #ffffff;
    border: 1px solid #dee1e3;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0 !important;
    width: auto !important;
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 1rem;
    box-sizing: border-box;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #111111 !important;
    padding: 0.75rem 1rem 0 !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.woocommerce ul.products li.product .price {
    padding: 0.25rem 1rem 0.75rem !important;
    color: #005497 !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 700 !important;
}

.woocommerce ul.products li.product .button {
    display: block !important;
    margin: 0 1rem 1rem !important;
    width: calc(100% - 2rem) !important;
    background-color: #005497 !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.125rem !important;
    border-radius: 4px !important;
    padding: 0.625rem 1rem !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: background-color 0.2s ease !important;
    border: none !important;
    cursor: pointer !important;
}

.woocommerce ul.products li.product .button:hover {
    background-color: #0074db !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    /* .main-navigation ul {
        gap: 1rem;
    } */
}

@media (max-width: 480px) {
    .woocommerce ul.products,
    .woocommerce ul.products.columns-3,
    .woocommerce ul.products.columns-4 {
        grid-template-columns: 1fr !important;
    }
}

/* ===========================
   WOOCOMMERCE PRODUCT CATEGORIES
   WC generates this HTML — overrides only
=========================== */

.woocommerce ul.product_categories {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1.5rem !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.woocommerce ul.product_categories li.product-category {
    margin: 0 !important;
    width: auto !important;
}

.woocommerce ul.product_categories li.product-category a {
    display: block;
    text-decoration: none;
    background: #ffffff;
    border: 1px solid #dee1e3;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    padding-bottom: 0.75rem;
}

.woocommerce ul.product_categories li.product-category a:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #0074db;
}

.woocommerce ul.product_categories li.product-category img {
    width: 100% !important;
    height: 200px !important;
    object-fit: contain !important;
    background-color: #f8f9fa !important;
    padding: 1rem !important;
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 !important;
}

.woocommerce ul.product_categories li.product-category h2,
.woocommerce ul.product_categories li.product-category .woocommerce-loop-category__title {
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 700 !important;
    color: #005497 !important;
    padding: 0.75rem 1rem 0.25rem !important;
    margin: 0 !important;
    line-height: 1.1 !important;
}

.woocommerce ul.product_categories li.product-category h2 .count,
.woocommerce ul.product_categories li.product-category .count {
    font-size: 0.75rem !important;
    font-weight: 400 !important;
    color: #7f8b93 !important;
}

@media (max-width: 640px) {
    .woocommerce ul.product_categories {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ===========================
   WOOCOMMERCE CART
=========================== */
/* Thumbnail image inside the flex card */
.woocommerce .woocommerce-cart-form .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
/* Quantity column — wrapper and input */
/* The .quantity div is WC-generated so Tailwind classes can't be used directly */
.woocommerce-cart-form .product-quantity .quantity {
    float: none !important;
    display: block;
    width: 100% !important;
    margin: 0 !important;
}
.woocommerce-cart-form .quantity input.qty,
.woocommerce-cart-form .quantity input.text.qty {
    float: none !important;
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 0.5rem 0.25rem;
    border-radius: 0.625rem;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #0f172a;
    font-size: 0.9375rem;
    font-weight: 600;
    text-align: center;
}
/* Variation data — compact inline display */
.woocommerce .woocommerce-cart-form .hb-variation-data dl {
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}
.woocommerce .woocommerce-cart-form .hb-variation-data dt,
.woocommerce .woocommerce-cart-form .hb-variation-data dd {
    display: inline;
    margin: 0;
    padding: 0;
    font-size: 0.8125rem;
    color: #6b7280;
}
.woocommerce .woocommerce-cart-form .hb-variation-data dd p {
    display: inline;
    margin: 0;
}

/* ===========================
   QUOTE FORM INPUT
   Used in woocommerce/cart/cart.php quote form
=========================== */

.hb-quote-form label {
    display: block;
    color: rgba(255,255,255,0.6);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.hb-quote-form label .required-mark {
    color: #f87171;
}

.hb-quote-input {
    display: block;
    width: 100%;
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    border-radius: 14px !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 0.9375rem !important;
    padding: 12px 18px !important;
    outline: none !important;
    box-sizing: border-box;
    transition: border-color 0.2s ease, background 0.2s ease;
    box-shadow: none !important;
}

.hb-quote-input::placeholder {
    color: rgba(255,255,255,0.35) !important;
    opacity: 1;
}

.hb-quote-input:focus {
    border-color: #2b7fff !important;
    background: rgba(255,255,255,0.12) !important;
    box-shadow: 0 0 0 3px rgba(43,127,255,0.2) !important;
}

/* === MEGA NAV === */

/* ── Top bar ── */
.mega-nav {
    position: relative;
    display: flex;
    align-items: center;
}

.mega-nav__bar {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0;
}

.mega-nav__item {
    position: static;
}

.mega-nav__trigger {
    appearance: none;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #1f2937;
    letter-spacing: 0.01em;
    padding: 0 1.25rem;
    height: 70px;
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    transition: color 0.18s ease, border-bottom-color 0.18s ease;
}

.mega-nav__trigger::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    margin-top: 2px;
    transition: transform 0.2s ease;
}

.mega-nav__trigger:hover,
.mega-nav__trigger[aria-expanded="true"] {
    color: #005497;
    border-bottom-color: #005497;
}

.mega-nav__trigger[aria-expanded="true"]::after {
    transform: rotate(180deg);
}

/* ── Full-width panel ── */
.mega-nav__panel {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    box-shadow: 0 16px 48px rgba(0, 84, 151, 0.13);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    pointer-events: none;
}

.mega-nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.mega-nav__panel-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 2rem 2.5rem 1.75rem;
}

/* ── Panel header ── */
.mega-nav__panel-header {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.mega-nav__panel-title {
    font-family: 'Inter', sans-serif;
    font-size: 1.125rem;
    font-weight: 700;
    color: #005497;
    margin: 0;
}

.mega-nav__panel-intro {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

/* ── Category tile grid ── */
.mega-nav__tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mega-nav__tile {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e9eef4;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.mega-nav__tile:hover {
    box-shadow: 0 6px 24px rgba(0, 84, 151, 0.14);
    transform: translateY(-3px);
    border-color: #005497;
}

.mega-nav__tile-img-wrap {
    width: 100%;
    height: 110px;
    overflow: hidden;
    background: #f0f4f8;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
}

.mega-nav__tile-img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    display: block;
}

.mega-nav__tile-body {
    padding: 0.625rem 0.75rem 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.mega-nav__tile-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    line-height: 1.1;
}

.mega-nav__tile-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.1;
}

/* ── Panel footer ── */
.mega-nav__panel-footer {
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

/* Hide the desktop panel's "Contact us →" inside the mobile drawer */
.mega-nav__drawer .mega-nav__panel-footer {
    display: none;
}

.mega-nav__view-all {
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #005497;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    transition: color 0.15s ease;
}

.mega-nav__view-all:hover {
    color: #2b7fff;
}

.mega-nav__view-all::after {
    content: '→';
}

/* ── Rentals: two-column layout ── */
.mega-nav__rentals-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.mega-nav__featured {
    background: linear-gradient(135deg, #005497 0%, #0e2e5e 100%);
    border-radius: 14px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    color: #ffffff;
}

.mega-nav__featured-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 0.25rem;
}

.mega-nav__featured-heading {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.mega-nav__featured-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.1;
    margin: 0;
    flex: 1;
}

.mega-nav__featured-btn {
    display: inline-block;
    background: #2b7fff;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    text-decoration: none;
    text-align: center;
    transition: background 0.15s ease;
    align-self: flex-start;
}

.mega-nav__featured-btn:hover {
    background: #005497;
}

/* ── Company cards ── */
.mega-nav__company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.mega-nav__company-card {
    background: #0e2e5e;
    border-radius: 12px;
    padding: 1.5rem 1.375rem 1.25rem;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
    overflow: hidden;
    transition: background 0.2s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.mega-nav__company-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #2b7fff;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.mega-nav__company-card:hover {
    background: #005497;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 84, 151, 0.35);
}

.mega-nav__company-card:hover::before {
    opacity: 1;
}

.mega-nav__company-card-title {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
}

.mega-nav__company-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.1;
    flex: 1;
}

.mega-nav__company-card-arrow {
    display: inline-block;
    font-size: 1.125rem;
    color: #2b7fff;
    margin-top: 0.5rem;
    transition: transform 0.18s ease, color 0.18s ease;
    align-self: flex-start;
}

.mega-nav__company-card:hover .mega-nav__company-card-arrow {
    transform: translateX(4px);
    color: #FFEE58;
}

/* ── Hamburger (mobile) ── */
.mega-nav__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 42px;
    height: 42px;
}

.mega-nav__hamburger span {
    display: block;
    height: 2px;
    background: #005497;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.mega-nav__hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.mega-nav__hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.mega-nav__hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile drawer ── */
.mega-nav__drawer {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ffffff;
    overflow-y: auto;
    padding: 0.5rem 1rem 2rem;
    z-index: 998;
    border-top: 1px solid #e5e7eb;
}

.mega-nav__drawer.is-open {
    display: block;
}

.mega-nav__drawer details {
    border-bottom: 1px solid #f1f5f9;
}

.mega-nav__drawer summary {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #005497;
    padding: 0.875rem 0.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mega-nav__drawer summary::-webkit-details-marker { display: none; }

.mega-nav__drawer summary::after {
    content: '›';
    font-size: 1.375rem;
    transition: transform 0.2s ease;
    color: #9ca3af;
}

.mega-nav__drawer details[open] summary::after {
    transform: rotate(90deg);
}

.mega-nav__drawer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.125rem 0;
    transition: background 0.15s ease;
}

.mega-nav__drawer-item:hover {
    background: #f0f6ff;
}

.mega-nav__drawer-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #f0f4f8;
}

.mega-nav__drawer-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
}

.mega-nav__drawer-desc {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: #9ca3af;
    display: block;
}

/* ── Mobile accordion (actual classes used in mega-nav.php) ── */
.mega-nav__accordion {
    border-bottom: 1px solid #f1f5f9;
}

.mega-nav__accordion-trigger {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #005497;
    padding: 0.875rem 0.5rem;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.mega-nav__accordion-trigger::-webkit-details-marker { display: none; }

.mega-nav__accordion-trigger::after {
    content: '›';
    font-size: 1.375rem;
    transition: transform 0.2s ease;
    color: #9ca3af;
}

.mega-nav__accordion[open] .mega-nav__accordion-trigger::after {
    transform: rotate(90deg);
}

.mega-nav__accordion-list {
    list-style: none;
    margin: 0;
    padding: 0 0 0.5rem;
}

.mega-nav__accordion-list li {
    margin: 0;
    padding: 0;
}

.mega-nav__accordion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    text-decoration: none;
    border-radius: 8px;
    margin: 0.125rem 0;
    transition: background 0.15s ease;
}

.mega-nav__accordion-item:hover {
    background: #f0f6ff;
}

.mega-nav__accordion-item span {
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    font-weight: 500;
    color: #111827;
    line-height: 1.3;
}

.mega-nav__accordion-thumb {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
    flex-shrink: 0;
    background: #f0f4f8;
    padding: 3px;
}

.mega-nav__accordion-viewall {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem !important;
    font-weight: 600;
    color: #005497 !important;
    padding: 0.75rem 0.75rem 0.5rem !important;
    border-top: 1px solid #f1f5f9;
    margin-top: 0.25rem;
    text-decoration: none;
}

.mega-nav__accordion-viewall:hover {
    color: #2b7fff !important;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .mega-nav__bar { display: none; }
    .mega-nav__hamburger { display: flex; }
    .mega-nav__panel { display: none !important; }
}

@media (max-width: 768px) {
    .mega-nav__tile-grid { grid-template-columns: repeat(2, 1fr); }
    .mega-nav__rentals-layout { grid-template-columns: 1fr; }
    .mega-nav__company-grid { grid-template-columns: repeat(2, 1fr); }
}


/* === TOOLS & ACCESSORIES CAROUSEL === */

/* Desktop: grid layout (unchanged) */
.hb-tools-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

@media (min-width: 1280px) {
    .hb-tools-track {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* Mobile: horizontal scroll-snap carousel */
@media (max-width: 767px) {
    .hb-tools-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 1rem;
        padding-bottom: 1rem;
        /* hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .hb-tools-track::-webkit-scrollbar {
        display: none;
    }

    .hb-tools-card {
        scroll-snap-align: start;
        flex-shrink: 0;
        width: 72vw;
        max-width: 280px;
    }

    .hb-tools-prev,
    .hb-tools-next {
        display: flex !important;
    }
}

/* === CATEGORY ARCHIVE === */

/* ── Filter sidebar: desktop = static, mobile = slide-in drawer ── */
.hb-filter-sidebar {
    /* desktop default — static sidebar in flex row */
}

@media (max-width: 1023px) {
    /* Remove from flex flow entirely on mobile */
    .hb-filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(85vw, 320px);
        z-index: 999;
        background: #ffffff;
        overflow-y: auto;
        padding: 0;
        box-shadow: -4px 0 32px rgba(0, 0, 0, 0.18);
        /* override Tailwind width/shrink utilities when open */
        width: min(85vw, 320px) !important;
        flex-shrink: unset !important;
    }

    .hb-filter-sidebar.is-open {
        display: block;
    }

    /* Panel fills the drawer — remove border-radius on mobile */
    .hb-filter-sidebar #hb-filter-panel {
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        min-height: 100%;
        padding: 1.25rem 1.25rem 3rem !important;
    }

    /* Products take full width when sidebar is hidden */
    .flex.gap-8.items-start > .flex-1 {
        width: 100% !important;
        min-width: 0 !important;
    }
}

/* --- Pagination (paginate_links() outputs .page-numbers/.current/.dots — cannot use Tailwind inline) --- */

.hb-arch-pagination {
    margin-top: 3rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.hb-arch-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border-radius: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    color: #005497;
    background: #ffffff;
    border: 1px solid #dde3ea;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.hb-arch-pagination .page-numbers:hover {
    background: #005497;
    border-color: #005497;
    color: #ffffff;
}

.hb-arch-pagination .page-numbers.current {
    background: #005497;
    border-color: #005497;
    color: #ffffff;
}

.hb-arch-pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
    cursor: default;
    color: #9ca3af;
}

/* ── Quote drawer: item added/updated highlight pulse ── */
@keyframes hb-item-pulse {
    0%   { background-color: transparent; }
    30%  { background-color: rgba(0, 84, 151, 0.10); }
    60%  { background-color: transparent; }
    80%  { background-color: rgba(0, 84, 151, 0.07); }
    100% { background-color: transparent; }
}

.hb-drawer-item--highlight {
    animation: hb-item-pulse 1.2s ease-in-out forwards;
    border-radius: 0.5rem;
}

/* === PRODUCT TABS === */
#hb-tab-overview p {
    margin-bottom: 15px;
}

/* ============================================================
   CF7 — Quick Enquiry (dark overlay context)
   .hb-cf7-enquiry-wrap wraps the form rendered by CF7
   ============================================================ */
.hb-cf7-enquiry-wrap .wpcf7-form,
.hb-cf7-enquiry .wpcf7-form {
    margin: 0;
}

.hb-cf7-enquiry-wrap .hb-cf7-field,
.hb-cf7-enquiry .hb-cf7-field {
    margin-bottom: 1rem;
}

.hb-cf7-enquiry-wrap label,
.hb-cf7-enquiry label {
    display: block;
    color: rgba(255,255,255,0.70);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.hb-cf7-enquiry-wrap label abbr,
.hb-cf7-enquiry label abbr {
    text-decoration: none;
    color: rgba(255,255,255,0.50);
}

.hb-cf7-enquiry-wrap input[type="text"],
.hb-cf7-enquiry-wrap input[type="email"],
.hb-cf7-enquiry-wrap input[type="tel"],
.hb-cf7-enquiry-wrap textarea,
.hb-cf7-enquiry input[type="text"],
.hb-cf7-enquiry input[type="email"],
.hb-cf7-enquiry input[type="tel"],
.hb-cf7-enquiry textarea {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(255,255,255,0.40);
    border-radius: 4px;
    padding: 0.75rem 1rem;
    color: #1f2937;
    font-size: 1rem;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.hb-cf7-enquiry-wrap textarea,
.hb-cf7-enquiry textarea {
    resize: none;
    height: 8rem;
}

.hb-cf7-enquiry-wrap input:focus,
.hb-cf7-enquiry-wrap textarea:focus,
.hb-cf7-enquiry input:focus,
.hb-cf7-enquiry textarea:focus {
    border-color: #3b7dd8;
}

.hb-cf7-enquiry-wrap input[type="submit"],
.hb-cf7-enquiry input[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    background: #3b7dd8;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2.5rem;
    border: 1px solid #3b7dd8;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    box-shadow: 0 7px 28px rgba(111,42,120,0.30);
}

.hb-cf7-enquiry-wrap input[type="submit"]:hover,
.hb-cf7-enquiry input[type="submit"]:hover {
    background: #5196ff;
    border-color: #5196ff;
}

.hb-cf7-enquiry-wrap .wpcf7-not-valid-tip {
    color: #fca5a5;
    font-size: 0.8125rem;
    margin-top: 0.25rem;
}

.hb-cf7-enquiry-wrap .wpcf7-response-output {
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    border: none;
}

.hb-cf7-enquiry-wrap .wpcf7-mail-sent-ok {
    background: rgba(34,197,94,0.15);
    color: #bbf7d0;
}

.hb-cf7-enquiry-wrap .wpcf7-validation-errors,
.hb-cf7-enquiry-wrap .wpcf7-spam-blocked,
.hb-cf7-enquiry-wrap .wpcf7-mail-sent-ng {
    background: rgba(239,68,68,0.15);
    color: #fecaca;
}

/* ============================================================
   CF7 — Newsletter Signup (dark footer context)
   ============================================================ */
.hb-cf7-newsletter-wrap .wpcf7-form,
.hb-cf7-newsletter .wpcf7-form {
    margin: 0;
}

.hb-cf7-newsletter-wrap input[type="email"],
.hb-cf7-newsletter input[type="email"] {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.40);
    border-radius: 9999px;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9375rem;
    padding: 0.625rem 1.25rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.hb-cf7-newsletter-wrap input[type="email"]::placeholder,
.hb-cf7-newsletter input[type="email"]::placeholder {
    color: rgba(255,255,255,0.50);
}

.hb-cf7-newsletter-wrap input[type="email"]:focus,
.hb-cf7-newsletter input[type="email"]:focus {
    border-color: #3b7dd8;
}

.hb-cf7-newsletter-wrap input[type="submit"],
.hb-cf7-newsletter input[type="submit"] {
    display: block;
    width: 100%;
    margin-top: 0.625rem;
    background: #3b7dd8;
    color: #fff;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 0.9375rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 1.5rem;
    border: 2px solid #3b7dd8;
    border-radius: 9999px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hb-cf7-newsletter-wrap input[type="submit"]:hover,
.hb-cf7-newsletter input[type="submit"]:hover {
    background: #fff;
    color: #3b7dd8;
    border-color: #fff;
}

.hb-cf7-newsletter-wrap .wpcf7-not-valid-tip {
    color: #fca5a5;
    font-size: 0.8125rem;
    padding-left: 1.25rem;
    margin-top: 0.25rem;
}

.hb-cf7-newsletter-wrap .wpcf7-response-output {
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    border: none;
    text-align: center;
}

.hb-cf7-newsletter-wrap .wpcf7-mail-sent-ok {
    background: rgba(34,197,94,0.15);
    color: #bbf7d0;
}

.hb-cf7-newsletter-wrap .wpcf7-validation-errors,
.hb-cf7-newsletter-wrap .wpcf7-spam-blocked,
.hb-cf7-newsletter-wrap .wpcf7-mail-sent-ng {
    background: rgba(239,68,68,0.15);
    color: #fecaca;
}
