/*
Theme Name: Piercing Tool Supply
Theme URI: https://piercingtoolsupply.com
Author: Piercing Tool Supply
Author URI: https://piercingtoolsupply.com
Description: Professional B2B WordPress theme for piercing tools manufacturer with auto-versioning system
Version: 3.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: piercing-tool-supply
Domain Path: /languages
Tags: b2b, professional, responsive, customizer
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

:root {
    --primary: #0052cc;
    --primary-hover: #003d99;
    --primary-dark: #003d99;
    --primary-light: #e6f0ff;
    --dark: #1a1a1a;
    --gray: #f5f5f5;
    --text: #333;
    --border: #ddd;
    --header-bg-image: none;
    --header-bg-color: #ffffff;
    --header-text-color: #333333;
    --footer-bg-image: none;
    --footer-bg-color: #2d2d2d;
    --footer-text-color: #ffffff;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Safety net: nothing on the page should ever force horizontal scroll */
html, body { max-width: 100%; overflow-x: hidden; }

/* BIGGER FONT / REFERENCE SITE STYLE */
body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 1rem;
    color: var(--text);
    background: white;
    line-height: 1.7;
    letter-spacing: 0.01em;
}

h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: 3.2rem; margin-bottom: 1.2rem; line-height: 1.15; }
h2 { font-size: 2.6rem; font-weight: 700; margin-bottom: 1.2rem; line-height: 1.2; }
h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 1rem; line-height: 1.2; }
h4 { font-size: 1.4rem; font-weight: 600; margin-bottom: 0.8rem; }

p { font-size: 1.05rem; margin-bottom: 1.2rem; }
a { color: var(--primary); text-decoration: none; transition: 0.2s; }
a:hover { color: var(--primary-hover); }

/* SITE CONTAINER - centered, with consistent breathing room on both sides */
.container { max-width: 1320px; width: 100%; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }

/* BUTTONS - BIGGER */
.btn { display: inline-block; padding: 14px 32px; background: var(--primary); color: white; border: none; border-radius: 6px; cursor: pointer; font-size: 16px; font-weight: 600; text-decoration: none; transition: 0.25s all; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgba(0,82,204,0.15); }
.btn:hover { background: var(--primary-hover); box-shadow: 0 4px 14px rgba(0,82,204,0.25); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn-outline:hover { background: var(--gray); border-color: var(--primary); }

/* HEADER TOP BAR - BACKGROUND IMAGE / COLOR OPTION */
.header-top-bar {
    background: var(--header-bg-color) var(--header-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0;
    border-bottom: 1.5px solid rgba(0,0,0,0.06);
    position: relative;
    min-height: 90px;
    display: flex;
    align-items: center;
}
.header-top-bar::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(214,230,255,0.97) 0%, rgba(230,240,255,0.95) 100%);
    z-index: 0;
    pointer-events: none;
}

.header-top-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; position: relative; z-index: 1; padding: 10px 5px 10px 5px;
}

/* LOGO - BIGGER */
.site-logo { font-family: 'Poppins', sans-serif; font-size: 2rem; font-weight: 900; color: var(--primary); text-decoration: none; white-space: nowrap; flex-shrink: 0; display: inline-block; letter-spacing: -0.03em; }
.site-logo:hover { color: var(--primary-dark); }
.site-logo img { height: auto; max-height: 70px; width: auto; max-width: 280px; display: block; object-fit: contain; }

/* INFO ITEMS */
.header-info-items { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; flex-shrink: 0; padding-right: 5px; margin-left: auto; }
.header-info-items .info-item { display: flex; align-items: flex-start; gap: 14px; flex-shrink: 0; min-width: 0; }
.header-info-items .info-item i {
    font-size: 24px; color: var(--primary);
    width: 46px; height: 46px; background: var(--primary-light); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,82,204,0.08);
}
.header-info-items .info-content { display: flex; flex-direction: column; gap: 5px; }
.header-info-items .info-label {
    font-size: 10px; color: #777; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap;
}
.header-info-items .info-value { font-size: 14px; color: var(--text); font-weight: 600; line-height: 1.35; }
.header-info-items .info-value a { color: var(--text); text-decoration: none; transition: 0.2s; display: block; font-weight: 500; }
.header-info-items .info-value a:hover { color: var(--primary); }

/* MAIN HEADER - DARK NAV - OPTIONAL IMAGE BG */
.site-header {
    background: linear-gradient(135deg, #00306b 0%, #0052cc 100%);
    padding: 0; border-bottom: none; position: relative;
}
.site-header::after {
    content: ''; position: absolute; top: -50%; left: -30%; width: 160%; height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.03) 0%, transparent 70%);
    pointer-events: none;
}
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 16px 0; position: relative; z-index: 1; }

/* NAV MENU */
.main-nav { flex: 1; margin-right: auto; }
.nav-menu { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.nav-menu li { margin: 0; padding: 0; position: relative; }
.nav-menu a { color: rgba(255,255,255,0.92); font-size: 15px; font-weight: 600; text-decoration: none; transition: 0.25s; display: inline-block; padding: 5px 0; letter-spacing: 0.02em; }
.nav-menu a:hover { color: #fff; }

/* "Products" gets a small caret to hint that hovering/tapping opens the category panel */
.nav-menu li.has-category-panel > a::after {
    content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; margin-left: 6px; font-size: 12px; opacity: 0.7; }

/* === SIDE PANEL (hamburger on mobile, hover/tap target for "Products") === */
.side-menu-btn { background: transparent; border: none; cursor: pointer; display: inline-flex; flex-direction: column; gap: 6px; padding: 6px 8px; margin-right: 10px; align-items: center; justify-content: center; transition: 0.25s; }
.side-menu-btn span { display: block; width: 26px; height: 3px; background: #fff; border-radius: 2px; transition: 0.25s; }
.side-menu-btn:hover span { background: var(--primary); }
.side-menu-btn:hover { transform: scale(1.05); }

.side-menu-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease; z-index: 9997; }
.side-menu-overlay.open { opacity: 1; visibility: visible; }

.side-menu-panel { position: fixed; top: 0; left: -340px; width: 320px; max-width: 85vw; height: 100vh; background: linear-gradient(160deg, #0f172a 0%, #1a1a2e 100%); color: #fff; z-index: 9998; transition: left 0.35s ease; box-shadow: 8px 0 30px rgba(0,0,0,0.35); overflow-y: auto; }
.side-menu-panel.open { left: 0; }
.side-menu-inner { padding: 30px 25px; position: relative; }
.side-menu-title { font-size: 1.2rem; font-weight: 700; color: #fff; margin-bottom: 24px; letter-spacing: -0.01em; border-bottom: 1px solid rgba(255,255,255,0.15); padding-bottom: 16px; }
.side-menu-empty { color: rgba(255,255,255,0.6); font-size: 14px; }

/* Primary links (Home / Contact Us / FAQs / Products) — only shown inside the panel on mobile */
.side-menu-primary { display: none; }
.side-primary-list { list-style: none; margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.side-primary-list li { margin: 0; padding: 0; }
.side-primary-list a { display: block; padding: 12px 0; color: #fff; text-decoration: none; font-size: 15.5px; font-weight: 600; transition: 0.2s; }
.side-primary-list a:hover { color: var(--primary); padding-left: 6px; }

/* Category list */
.side-menu-list { list-style: none; padding: 0; margin: 0; }
.side-menu-list > li { margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.side-menu-list a { display: block; padding: 14px 0; color: rgba(255,255,255,0.9); text-decoration: none; font-size: 15px; font-weight: 500; transition: 0.2s; letter-spacing: 0.01em; }
.side-menu-list > li > a:hover, .side-menu-list a:hover { color: #fff; padding-left: 8px; background: rgba(255,255,255,0.05); border-radius: 6px; }

/* Nested subcategories under a parent category */
.side-cat-group.has-children > .side-cat-parent { font-weight: 700; position: relative; padding-right: 26px; }
.side-cat-group.has-children > .side-cat-parent::after {
    content: '\f107'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 12px; opacity: 0.7;
    position: absolute; right: 4px; top: 50%; transform: translateY(-50%); transition: transform 0.2s ease; }
.side-cat-group.has-children.expanded > .side-cat-parent::after { transform: translateY(-50%) rotate(180deg); }
.side-cat-children { list-style: none; margin: 0 0 6px; padding: 0 0 0 16px; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.side-cat-group.expanded > .side-cat-children { max-height: 1000px; }
.side-cat-children li { border-bottom: none !important; }
.side-cat-children a { padding: 10px 0; font-size: 14px; color: rgba(255,255,255,0.75); }

.side-close { position: absolute; top: 18px; right: 20px; background: transparent; border: none; color: rgba(255,255,255,0.7); font-size: 28px; cursor: pointer; line-height: 1; transition: 0.2s; padding: 4px 6px; }
.side-close:hover { color: #fff; }

/* Lock page scroll when the panel is open */
.side-open { overflow: hidden; }

/* On desktop, the panel's sublists are always "expanded" (no accordion — just show everything) */
@media (min-width: 993px) {
    .side-cat-children { max-height: none; overflow: visible; }
    .side-cat-group.has-children > .side-cat-parent::after { display: none; }
}

/* === PRODUCTS MENU: "DROPDOWN" VARIANT (Customizer: Products Menu Style) ===
   Wide multi-column mega panel. Pure CSS hover — no JS involved, so it can't fight
   with the sidebar-panel JS or flicker. The panel spans the full header width. */
/* FIX: lift the whole header above the hero slider so the Products dropdown is not painted underneath the slide (slides use z-index 1/2/10) */
.site-header { position: relative; z-index: 1000; }
.hero-slider { isolation: isolate; z-index: 0; }

.products-dropdown-panel { display: none; }
@media (min-width: 993px) {
    body.products-menu-dropdown .nav-menu li.has-category-panel { position: static; }
    /* Extend the hover area down to the panel without moving the link: padding adds height, equal negative margin cancels it */
    body.products-menu-dropdown .nav-menu li.has-category-panel { padding-top: 20px; padding-bottom: 20px; margin-top: -20px; margin-bottom: -20px; }
    body.products-menu-dropdown .nav-menu li.has-category-panel:hover .products-dropdown-panel,
    body.products-menu-dropdown .nav-menu li.has-category-panel:focus-within .products-dropdown-panel {
        display: block;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff;
        border-radius: 0 0 12px 12px; box-shadow: 0 16px 40px rgba(0,82,204,0.18);
        padding: 18px 26px 6px; z-index: 1000; border-top: 3px solid var(--primary);
    }
    /* invisible bridge so the panel doesn't close while the mouse crosses the small gap */
    body.products-menu-dropdown .products-dropdown-panel::before {
        content: ''; position: absolute; left: 0; right: 0; top: -14px; height: 14px;
    }
    /* Columns: each category group stays together inside one column */
    body.products-menu-dropdown .products-dropdown-panel .side-menu-categories {
        column-count: 4; column-gap: 34px; margin: 0; padding: 0; list-style: none;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-list > li,
    body.products-menu-dropdown .products-dropdown-panel .side-cat-group {
        break-inside: avoid; page-break-inside: avoid; border-bottom: none; margin: 0 0 14px; padding: 0;
    }
    /* Category heading */
    body.products-menu-dropdown .products-dropdown-panel .side-cat-parent,
    body.products-menu-dropdown .products-dropdown-panel .side-cat-group.has-children > .side-cat-parent {
        display: block; color: var(--primary); font-size: 12.5px; font-weight: 700; line-height: 1.35;
        text-transform: uppercase; letter-spacing: 0.4px;
        padding: 0 0 5px; margin-bottom: 3px; border-bottom: 1px solid #e3e8f0; background: none; border-radius: 0;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-cat-parent:hover { background: none; padding-left: 0; color: var(--primary-hover); }
    /* Subcategory links */
    body.products-menu-dropdown .products-dropdown-panel .side-cat-children { padding: 0; margin: 0; }
    body.products-menu-dropdown .products-dropdown-panel .side-cat-children a {
        display: block; color: #555; font-size: 13px; font-weight: 500; line-height: 1.3;
        padding: 3px 0; background: none; border-radius: 0; letter-spacing: 0;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-cat-children a:hover { color: var(--primary); background: none; padding-left: 4px; }
    body.products-menu-dropdown .products-dropdown-panel .side-cat-link {
        display: block; color: #555; font-size: 13.5px; font-weight: 500; line-height: 1.3;
        padding: 5px 0; background: none; border-radius: 0; letter-spacing: 0;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-cat-link:hover { color: var(--primary); background: none; padding-left: 4px; }
    body.products-menu-dropdown .products-dropdown-panel .side-cat-group:has(> .side-cat-link) { margin-bottom: 0; }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-empty { color: #888; padding: 4px 0 12px; font-size: 13.5px; }
}
/* Flat list (no nested items): keep it as one clean column */
@media (min-width: 993px) {
    body.products-menu-dropdown .products-dropdown-panel .side-menu-categories.side-menu-flat { column-count: 1; }
}
/* Narrower desktops: 3 columns */
@media (min-width: 993px) and (max-width: 1150px) {
    body.products-menu-dropdown .products-dropdown-panel .side-menu-categories { column-count: 3; column-gap: 26px; }
}


/* === PRODUCTS DROPDOWN: COMPACT CARD (used when the menu is a flat list of products) ===
   Floats under the "Products" link as a two-column card with a pointer notch,
   instead of stretching across the whole header. Nested/mega menus keep the wide layout above. */
.products-dropdown-footer { display: none; }
@media (min-width: 993px) {
    /* Caret flips while the menu is open */
    body.products-menu-dropdown .nav-menu li.has-category-panel > a::after { display: inline-block; transition: transform 0.25s ease; }
    body.products-menu-dropdown .nav-menu li.has-category-panel:hover > a::after,
    body.products-menu-dropdown .nav-menu li.has-category-panel:focus-within > a::after { transform: rotate(180deg); opacity: 1; }

    /* Anchor the card to the Products link */
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat) { position: relative; }
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat):hover .products-dropdown-panel,
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat):focus-within .products-dropdown-panel {
        left: -24px; right: auto; top: calc(100% + 4px);
        width: 560px; max-width: 92vw; padding: 10px 10px 0;
        background: #fff; border-top: 0; border-radius: 16px;
        border: 1px solid rgba(15, 23, 42, 0.07);
        box-shadow: 0 2px 4px rgba(15, 23, 42, 0.04), 0 12px 24px rgba(15, 23, 42, 0.10), 0 32px 64px rgba(0, 82, 204, 0.16);
        transform-origin: 60px 0;
    }
    /* Pointer notch aimed at "Products" */
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat) .products-dropdown-panel::after {
        content: ''; position: absolute; top: -7px; left: 58px; width: 12px; height: 12px;
        background: #fff; border-left: 1px solid rgba(15, 23, 42, 0.07); border-top: 1px solid rgba(15, 23, 42, 0.07);
        transform: rotate(45deg); border-radius: 3px 0 0 0;
    }

    /* Two-column grid of links */
    body.products-menu-dropdown .products-dropdown-panel .side-menu-categories.side-menu-flat {
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; column-count: auto;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat > li { margin: 0; }

    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link {
        position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
        padding: 11px 14px; border-radius: 10px;
        color: #1e293b; font-size: 14px; font-weight: 500; line-height: 1.3;
        transition: background-color 0.18s ease, color 0.18s ease;
    }
    /* accent bar that grows in on hover */
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link::before {
        content: ''; position: absolute; left: 0; top: 50%; width: 3px; height: 0; border-radius: 3px;
        background: var(--primary); transform: translateY(-50%); transition: height 0.18s ease;
    }
    /* chevron that slides in */
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link::after {
        content: '\f054'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 10px;
        opacity: 0; transform: translateX(-6px); transition: opacity 0.18s ease, transform 0.18s ease;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link:hover,
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link:focus-visible {
        background: var(--primary-light); color: var(--primary); padding: 11px 14px; outline: none;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link:hover::before,
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link:focus-visible::before { height: 55%; }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link:hover::after,
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat .side-cat-link:focus-visible::after { opacity: 1; transform: translateX(0); }

    /* Footer strip: dark navy to match the slide-in panel */
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat) .products-dropdown-footer {
        display: flex; align-items: center; justify-content: space-between;
        margin: 10px -10px 0; padding: 14px 24px;
        background: linear-gradient(135deg, #0f172a 0%, #1a1a2e 100%);
        border-radius: 0 0 15px 15px;
        color: #fff; font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none;
    }
    body.products-menu-dropdown .products-dropdown-footer i {
        display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
        background: var(--primary); font-size: 11px; transition: transform 0.2s ease;
    }
    body.products-menu-dropdown .products-dropdown-footer:hover { color: #fff; }
    body.products-menu-dropdown .products-dropdown-footer:hover i,
    body.products-menu-dropdown .products-dropdown-footer:focus-visible i { transform: translateX(4px); }
    body.products-menu-dropdown .products-dropdown-footer:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
}

/* Opening motion: the card eases in and the links follow one after another (skipped for reduced-motion users) */
@media (min-width: 993px) and (prefers-reduced-motion: no-preference) {
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat):hover .products-dropdown-panel,
    body.products-menu-dropdown .nav-menu li.has-category-panel:has(.side-menu-flat):focus-within .products-dropdown-panel {
        animation: ptx-dd-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1) both;
    }
    body.products-menu-dropdown .products-dropdown-panel .side-menu-flat > li { animation: ptx-dd-item 0.3s ease both; animation-delay: calc(var(--i, 0) * 28ms + 60ms); }
    .products-dropdown-panel .side-menu-flat > li:nth-child(1) { --i: 0; } .products-dropdown-panel .side-menu-flat > li:nth-child(2) { --i: 1; }
    .products-dropdown-panel .side-menu-flat > li:nth-child(3) { --i: 2; } .products-dropdown-panel .side-menu-flat > li:nth-child(4) { --i: 3; }
    .products-dropdown-panel .side-menu-flat > li:nth-child(5) { --i: 4; } .products-dropdown-panel .side-menu-flat > li:nth-child(6) { --i: 5; }
    .products-dropdown-panel .side-menu-flat > li:nth-child(7) { --i: 6; } .products-dropdown-panel .side-menu-flat > li:nth-child(8) { --i: 7; }
    .products-dropdown-panel .side-menu-flat > li:nth-child(n+9) { --i: 8; }
    @keyframes ptx-dd-in { from { opacity: 0; transform: translateY(-8px) scale(0.98); } to { opacity: 1; transform: none; } }
    @keyframes ptx-dd-item { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
}


/* HEADER ACTIONS - SEARCH / CART */
.header-actions { display: flex; align-items: center; gap: 22px; flex-shrink: 0; }
.search-icon { color: #fff; font-size: 20px; cursor: pointer; transition: 0.25s; display: flex; align-items: center; justify-content: center; opacity: 0.85; }
.search-icon:hover { color: var(--primary); opacity: 1; transform: scale(1.1); }
.cart-icon { position: relative; color: #fff; font-size: 20px; cursor: pointer; transition: 0.25s; display: flex; align-items: center; justify-content: center; opacity: 0.85; }
.cart-icon:hover { color: var(--primary); opacity: 1; transform: scale(1.05); }
.cart-count { position: absolute; top: -8px; right: -8px; background: var(--primary); color: white; font-size: 10px; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; box-shadow: 0 2px 6px rgba(0,82,204,0.4); }

/* REQUEST BUTTON */
.btn-request { background: var(--primary); color: white; padding: 14px 32px; border-radius: 6px; font-size: 15px; font-weight: 700; border: none; cursor: pointer; transition: 0.25s; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: 0.02em; box-shadow: 0 4px 14px rgba(0,82,204,0.3); }
.btn-request:hover { background: var(--primary-hover); box-shadow: 0 6px 20px rgba(0,82,204,0.35); transform: translateY(-2px); }

/* HERO SLIDER - BIGGER */
.hero-slider { width: 100%; max-width: 100vw; height: 520px; position: relative; overflow: hidden; }

.slider-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}
.slide:not(.active) { pointer-events: none; }
.slide-link { position: absolute; inset: 0; z-index: 2; display: block; }

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    width: 100%;
    max-width: 760px;
    padding: 0 24px;
    box-sizing: border-box;
}

.slide-content h1 { font-size: 3.6rem; font-family: 'Poppins', sans-serif; text-shadow: 0 4px 30px rgba(0,0,0,0.4); letter-spacing: -0.04em; word-break: break-word; overflow-wrap: break-word; }
.slide-content p { font-size: 1.3rem; text-shadow: 0 2px 12px rgba(0,0,0,0.3); word-break: break-word; overflow-wrap: break-word; }

.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 24px;
    z-index: 10;
    transition: 0.3s;
}

.prev:hover,
.next:hover {
    background: rgba(0,0,0,0.8);
}

.prev { left: 20px; }
.next { right: 20px; }

/* SECTIONS - LESS MARGIN, BIGGER SPACING */
.section { padding: 80px 0; }
.section-eyebrow { display: inline-block; background: var(--primary-light); color: var(--primary); font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 18px; border-radius: 20px; margin-bottom: 18px; }
.section-heading { text-align: center; margin-bottom: 55px; }
.section-heading .section-title { margin-bottom: 14px; }
.section-title { text-align: center; margin-bottom: 55px; font-size: 2.8rem; letter-spacing: -0.03em; }
.section-title .accent { background: linear-gradient(135deg, var(--primary) 0%, #00b4d8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-subtitle { text-align: center; margin-bottom: 0; font-size: 1.15rem; color: #555; max-width: 650px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* =============================================
   FEATURED PRODUCT CARDS — BPT reference style
   Blue image background, black code badge top-right,
   black name-bar + title + item code below image,
   full red overlay with centered ADD TO BASKET on hover.
   Sharp corners throughout — no border-radius.
   ============================================= */
.product-slider { position: relative; margin-top: 50px; }
.product-slider-viewport { overflow: hidden; }
.product-slider-track { display: flex; gap: 24px; transition: transform 0.6s cubic-bezier(0.65,0,0.35,1); }
.product-slide { flex: 0 0 calc(25% - 18px); min-width: 0; }
.product-card-link { position: absolute; inset: 0; z-index: 6; }
.product-hover-overlay .atb-btn { position: relative; z-index: 9; }

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 1px 8px rgba(0,0,0,0.10);
    transition: box-shadow 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}
.product-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.18);
    color: inherit;
    text-decoration: none;
}

/* ---- IMAGE AREA (blue background, holds badge + overlay) ---- */
.product-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;      /* every product image is shown as a 1:1 square */
    background: linear-gradient(160deg, #cfe1ff 0%, #eaf2ff 50%, #bcd7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.product-image img {
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
    display: block;
}
.product-image-placeholder i {
    font-size: 62px;
    color: #0052cc;
    opacity: 0.35;
    position: relative;
    z-index: 1;
}

/* Code badge — top-right corner, black */
.product-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #111111;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    z-index: 5;
}

/* Red overlay — covers the whole image, fades in on hover */
.product-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 82, 204, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 8;
    pointer-events: none;
}
.product-card:hover .product-hover-overlay {
    transform: translateY(0);
}

.product-hover-overlay .atb-btn {
    pointer-events: auto;
    background: #111111;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 14px 30px;
    border: none;
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1;
    transition: background 0.2s ease;
}
.product-hover-overlay .atb-btn:hover {
    background: #333333;
    color: #ffffff;
}

/* ---- CONTENT BELOW IMAGE ---- */
.product-content {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.product-name-bar {
    background: #111111;
    color: #ffffff;
    padding: 10px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.35;
}

.product-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: #111111;
    line-height: 1.4;
    padding: 14px 16px 4px;
}

.product-sku {
    font-size: 12px;
    color: #777777;
    padding: 0 16px 16px;
    font-weight: 500;
    margin: 0;
}

.product-actions { display: none; }
.product-empty-note { text-align: center; color: #999; font-size: 13px; margin-top: 24px; }

.slider-arrow { position: absolute; top: 40%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: white; box-shadow: 0 6px 18px rgba(0,0,0,0.12); display: flex; align-items: center; justify-content: center; color: var(--primary); cursor: pointer; z-index: 2; border: none; transition: 0.25s; font-size: 16px; }
.slider-arrow:hover { background: var(--primary); color: white; box-shadow: 0 8px 22px rgba(0,82,204,0.3); }
.slider-arrow.prev { left: -23px; }
.slider-arrow.next { right: -23px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 32px; }
.slider-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); cursor: pointer; transition: 0.25s; border: none; padding: 0; }
.slider-dot.active { background: var(--primary); width: 26px; border-radius: 4px; }

@media (max-width: 1200px) {
    .product-slide { flex: 0 0 calc(33.333% - 16px); }
}
@media (max-width: 900px) {
    .product-slide { flex: 0 0 calc(50% - 12px); }
}
@media (max-width: 580px) {
    .product-slide { flex: 0 0 calc(100% - 0px); }
    .slider-arrow.prev { left: 5px; }
    .slider-arrow.next { right: 5px; }
}

/* WHY CHOOSE US - MODERN CARDS */
.features-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin-top: 35px; }
.feature-card { position: relative; background: white; padding: 50px 34px; min-height: 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 20px; text-align: center; border: 1px solid var(--border); box-shadow: 0 2px 10px rgba(0,0,0,0.03); transition: 0.35s ease; overflow: hidden; }
.feature-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(0,82,204,0.05), rgba(0,180,216,0.05)); opacity: 0; transition: 0.35s ease; }
.feature-card:hover { box-shadow: 0 20px 45px rgba(0,82,204,0.14); transform: translateY(-6px); border-color: rgba(0,82,204,0.2); }
.feature-card:hover::after { opacity: 1; }
.feature-card:hover .card-icon { transform: scale(1.08) rotate(-4deg); }
.feature-card h3 { color: var(--primary); margin-bottom: 14px; font-size: 1.35rem; letter-spacing: -0.01em; position: relative; }
.feature-card p { font-size: 15.5px; color: #555; line-height: 1.7; position: relative; }
.card-icon { width: 78px; height: 78px; background: linear-gradient(135deg, var(--primary-light) 0%, #e6f0ff 100%); border-radius: 20px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 26px; font-size: 32px; margin-left: auto; margin-right: auto; box-shadow: 0 4px 12px rgba(0,82,204,0.1); transition: 0.35s ease; position: relative; }
/* CONTACT PAGE */
.contact-section { padding: 100px 0; background: linear-gradient(135deg, #f0f6ff 0%, #e8f0fe 100%); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.contact-info h1 { font-size: 3rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; letter-spacing: -0.03em; }
.contact-info > p { font-size: 1.15rem; color: #555; line-height: 1.7; margin-bottom: 40px; max-width: 480px; }
.contact-block { margin-bottom: 30px; }
.contact-block h3 { font-size: 1.15rem; color: var(--dark); margin-bottom: 12px; }
.contact-block p, .contact-block a { font-size: 1.05rem; color: #555; }
.contact-block a { display: block; color: var(--primary); text-decoration: none; font-weight: 500; margin-bottom: 4px; }
.contact-form-card { background: white; padding: 50px; border-radius: 18px; box-shadow: 0 15px 50px rgba(0,0,0,0.08); }
.contact-form-card h2 { font-size: 1.6rem; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.contact-form-card > p { font-size: 0.98rem; color: #777; margin-bottom: 30px; }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; gap: 45px; }
    .contact-form-card { padding: 35px 28px; }
}
@media (max-width: 480px) {
    .contact-section { padding: 60px 0; }
    .contact-info h1 { font-size: 2.2rem; }
    .feature-card { min-height: 260px; padding: 38px 24px; }
}

/* CTA */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%); color: white; padding: 70px 0; text-align: center; margin: 50px 0; border-radius: 16px; position: relative; overflow: hidden; box-shadow: 0 20px 40px rgba(0,82,204,0.2); }
.cta-section::before { content: ''; position: absolute; top: -50%; left: -30%; width: 160%; height: 200%; background: radial-gradient(circle at 50% 30%, rgba(255,255,255,0.08) 0%, transparent 60%); pointer-events: none; }
.cta-section h2 { color: white; font-size: 2.8rem; position: relative; z-index: 1; letter-spacing: -0.03em; }
.cta-section p { color: rgba(255,255,255,0.92); margin-bottom: 30px; position: relative; z-index: 1; font-size: 1.15rem; }
.cta-section .btn { background: white; color: var(--primary); box-shadow: 0 6px 20px rgba(0,0,0,0.15); }
.cta-section .btn:hover { background: #f8f8f8; color: var(--primary-dark); box-shadow: 0 8px 25px rgba(0,0,0,0.25); }

/* FOOTER - BACKGROUND IMAGE / COLOR OPTION */
.site-footer {
    background: var(--footer-bg-color) var(--footer-bg-image);
    background-size: cover; background-position: center; background-repeat: no-repeat;
    background-blend-mode: overlay;
    color: var(--footer-text-color); padding: 70px 0 20px; margin-top: 70px; border-top: 1px solid rgba(255,255,255,0.06);
    position: relative;
}
.site-footer::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.35) 100%);
    pointer-events: none; z-index: 0;
}
.site-footer .container { position: relative; z-index: 1; }

.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 35px; }
.footer-section h4 { color: white; margin-bottom: 24px; font-size: 1.15rem; font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase; font-size: 13px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 12px; }
.footer-section a { color: rgba(255,255,255,0.75); text-decoration: none; font-size: 15px; transition: 0.2s; display: inline-block; }
.footer-section a:hover { color: white; transform: translateX(3px); }
.footer-section p { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 14px; line-height: 1.6; }
.footer-contact { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; font-size: 14.5px; }
.footer-contact i { color: var(--primary); width: 18px; font-size: 18px; }
.social-links { display: flex; gap: 14px; margin-top: 20px; }
.social-links a { display: inline-block; width: 42px; height: 42px; background: var(--primary); color: white; border-radius: 50%; text-align: center; line-height: 42px; text-decoration: none; transition: 0.3s; font-size: 18px; box-shadow: 0 4px 12px rgba(0,82,204,0.25); }
.social-links a:hover { background: var(--primary-hover); transform: translateY(-3px) scale(1.08); box-shadow: 0 6px 18px rgba(0,82,204,0.35); }
.footer-bottom { margin-top: 50px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,0.1); text-align: center; color: rgba(255,255,255,0.45); font-size: 13px; line-height: 1.6; }

/* RESPONSIVE */
@media (max-width: 992px) {
    .header-top-row { flex-direction: column; gap: 20px; align-items: flex-start; }
    .header-info-items { gap: 25px; }
    .container { max-width: 100%; padding: 0 25px; }
    /* Tablet range: scale the hero text down before it can force any horizontal overflow */
    .hero-slider { height: 440px !important; }
    .slide-content h1 { font-size: 2.8rem !important; }
    .slide-content p { font-size: 1.15rem !important; }
}
@media (max-width: 576px) {
    .container { padding: 0 16px; }
}
@media (max-width: 768px) {
    body { font-size: 15px; }
    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.8rem; }
    .header-top-row { flex-direction: column; gap: 15px; align-items: flex-start; }
    .header-info-items { flex-direction: column; gap: 20px; align-items: flex-start; width: 100%; }
    .header-main { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; }
    /* The top text nav moves into the slide-out side panel on mobile — the hamburger opens it instead */
    .main-nav { display: none; }
    .side-menu-primary { display: block; }
    .header-actions { gap: 14px; }
    .hero-slider { height: 380px !important; }
    .slide-content h1 { font-size: 2.2rem !important; }
    .slide-content p { font-size: 1.05rem !important; }
    .section { padding: 60px 0; }
    .cta-section { margin: 30px 0; }
    .products-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
}
@media (max-width: 480px) {
    .site-logo { font-size: 1.5rem; }
    .site-logo img { max-width: 200px; }
    .btn-request { padding: 12px 24px; font-size: 14px; }
    .header-info-items { gap: 15px; }
    .header-actions { gap: 12px; }
    .hero-slider { height: 320px !important; }
    .slide-content h1 { font-size: 1.9rem !important; }
    .slide-content p { font-size: 1rem !important; }
    h1 { font-size: 1.9rem; }
    .section-title { font-size: 2rem; }
    .cta-section h2 { font-size: 2rem; }
}

/* === WOOCOMMERCE ADDITIONAL STYLES === */
.woocommerce-notices-wrapper { margin-bottom: 20px; }
.woocommerce-LoopProduct-link { text-decoration: none; color: inherit; }

/* Single product page: image + details */
.single-product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
@media (max-width: 768px) {
    .single-product-layout { grid-template-columns: 1fr !important; gap: 30px !important; }
}

/* === HOMEPAGE SECTIONS: mobile layout fixes ===
   These sections are built with inline styles in front-page.php for their
   typography/colors, but their multi-column grids use these classes instead
   so they can actually be overridden on mobile (an inline style always beats
   a stylesheet rule unless it's on the same element, so the grid columns
   specifically had to move out of the inline style to be responsive at all). */
.about-main-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.about-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.about-bottom-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.catalog-cols { display: grid; grid-template-columns: 1fr 1.3fr 0.9fr; gap: 40px; }
.tech-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }

@media (max-width: 992px) {
    .catalog-cols { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 768px) {
    .about-main-row { grid-template-columns: 1fr; gap: 30px; }
    .about-bottom-cols { grid-template-columns: 1fr; gap: 25px; }
    .tech-cols { grid-template-columns: 1fr; gap: 20px; }
    .about-heading { font-size: 2.1rem !important; }
    .about-text h2 { font-size: 1.6rem !important; }
}
@media (max-width: 600px) {
    .about-stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 420px) {
    .about-stats-row { grid-template-columns: 1fr; gap: 12px; }
}

/* FAQ page: tighten up padding and heading size so it doesn't feel cramped on small phones */
@media (max-width: 480px) {
    .faq-question { padding: 18px 18px !important; font-size: 0.95rem !important; }
    .faq-answer { padding: 0 18px 20px 44px !important; }
    .faq-cta { padding: 36px 20px !important; }
}
@media (max-width: 600px) {
    .faq-title { font-size: 2rem !important; }
}





/* HOMEPAGE FAQ */
.hfaq-section { background: var(--gray); }
.hfaq-wrap { max-width: 980px; }
.hfaq-title { text-align: left; font-size: 2.6rem; letter-spacing: -0.03em; margin: 0 0 28px; color: var(--primary); }
.hfaq-item { border-bottom: 1px solid #bbb; }
.hfaq-item.open { border-bottom-color: var(--primary); }
.hfaq-q { width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; background: none; border: 0; padding: 16px 0; cursor: pointer; font: inherit; font-size: 1.05rem; text-transform: uppercase; color: #444; }
.hfaq-q:hover { color: var(--primary); }
.hfaq-icon { position: relative; flex: 0 0 18px; height: 18px; margin-top: 4px; }
.hfaq-icon::before, .hfaq-icon::after { content: ''; position: absolute; left: 0; top: 8px; width: 18px; height: 2px; background: var(--dark); transition: transform 0.3s ease; }
.hfaq-icon::after { transform: rotate(90deg); }
.hfaq-item.open .hfaq-icon::after { transform: rotate(0); }
.hfaq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; padding-left: 34px; }
.hfaq-item.open .hfaq-a { max-height: 400px; }
.hfaq-a p { margin: 0 0 18px; color: #555; line-height: 1.7; font-size: 15px; }
@media (max-width: 600px) { .hfaq-title { font-size: 1.9rem; } .hfaq-q { font-size: 0.95rem; } }

/* =====================================================
   MOBILE FIXES (menu button, full banner, compact header)
   ===================================================== */
/* Hamburger: hidden on desktop, visible on mobile, uses dark bars (old bars were white on a white header) */
.side-menu-btn { display: none; }
.side-menu-btn span { background: var(--header-text-color, #1a1a1a); }

@media (max-width: 768px) {
    .side-menu-btn { display: inline-flex; margin-right: 0; padding: 10px; border: 1px solid rgba(0,0,0,0.12); border-radius: 8px; background: #fff; }
    .side-menu-btn span { width: 24px; background: #1a1a1a; }

    /* Full banner on mobile: keep the image's shape and show all of it, no cropping */
    .hero-slider { height: auto !important; aspect-ratio: 1920 / 600; background: #0b1a3a; }
    .slider-container { height: 100%; }
    .slide { background-size: contain !important; background-repeat: no-repeat; background-position: center; }
    .hero-slider .prev, .hero-slider .next { width: 32px; height: 32px; font-size: 14px; padding: 0; }

    /* Compact top bar: logo centred, contact details in a tidy wrap */
    .header-top-row { align-items: center !important; text-align: center; gap: 12px !important; }
    .site-logo { margin: 0 auto !important; }
    .site-logo img { max-width: 170px; height: auto; }
    .header-info-items { flex-direction: row !important; flex-wrap: wrap; justify-content: center; gap: 10px 18px !important; margin: 0 !important; width: 100%; }
    .header-info-items .info-item { gap: 8px; align-items: center; text-align: left; }
    .header-info-items .info-label { display: none; }
    .header-info-items .info-value, .header-info-items .info-value a { font-size: 12.5px; }
    .header-info-items .info-item i { width: 30px; height: 30px; font-size: 13px; }

    /* Nav row: burger left, actions right */
    .header-main { padding: 10px 0; }
    .header-actions { margin-left: auto; width: auto !important; gap: 12px; }
    .btn-request { padding: 10px 16px; font-size: 13px; flex: 0 0 auto; }

    /* General mobile polish */
    .section { padding: 44px 0; }
    .section-title { font-size: 1.7rem; margin-bottom: 30px; }
    .section-subtitle { font-size: 1rem; }
    .container { padding: 0 16px; }
    img { max-width: 100%; height: auto; }
    .slider-arrow { display: none; }
}

/* ============================================================
   HOMEPAGE REDESIGN — appended styles
   ============================================================ */

/* Shared homepage utilities */
.hp-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.hp-eyebrow--light { background: rgba(255,255,255,0.15); color: #fff; }

.hp-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 28px; border-radius: 8px; font-size: 0.95rem;
    font-weight: 700; text-decoration: none; transition: 0.25s; cursor: pointer;
    font-family: 'Poppins', sans-serif; border: 2px solid transparent;
}
.hp-btn--white  { background: #fff; color: var(--primary); }
.hp-btn--white:hover { background: #f0f4ff; color: var(--primary); transform: translateY(-2px); }
.hp-btn--outline { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.hp-btn--outline:hover { background: rgba(255,255,255,0.1); color: #fff; }
.hp-btn--sm { padding: 9px 20px; font-size: 0.85rem; }

.hp-section-head { margin-bottom: 48px; }
.hp-section-head--center { text-align: center; }
.hp-section-head h2 { font-size: 2.2rem; margin-top: 6px; }
.hp-section-head__left { flex: 1; }
.hp-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hp-section-head--center { display: block; }

/* ── HERO ───────────────────────────────────────────────── */
.hp-hero {
    position: relative;
    min-height: 92vh;
    display: flex; align-items: center;
    background: #0a1628;
    overflow: hidden;
}
.hp-hero__bg {
    position: absolute; inset: 0;
    background: linear-gradient(135deg,#0a1628 0%,#0052cc 100%);
    background-size: cover; background-position: center;
}
.hp-hero__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(105deg, rgba(10,22,40,0.92) 40%, rgba(0,82,204,0.3) 100%);
}
.hp-hero__inner {
    position: relative; z-index: 2;
    display: flex; align-items: center; justify-content: space-between;
    gap: 40px; padding-top: 60px; padding-bottom: 60px;
}
.hp-hero__text { max-width: 620px; }
.hp-hero__tag {
    display: inline-block;
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
    text-transform: uppercase; color: rgba(255,255,255,0.6);
    border: 1px solid rgba(255,255,255,0.2); padding: 4px 14px;
    border-radius: 50px; margin-bottom: 24px;
}
.hp-hero__title {
    font-size: 4rem; font-weight: 900; color: #fff;
    line-height: 1.08; margin-bottom: 22px; letter-spacing: -0.04em;
}
.hp-hero__title em { color: #66aaff; font-style: normal; }
.hp-hero__sub { font-size: 1.1rem; color: rgba(255,255,255,0.75); line-height: 1.7; margin-bottom: 36px; }
.hp-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hp-hero__trust { display: flex; gap: 24px; flex-wrap: wrap; }
.hp-hero__trust span { font-size: 0.82rem; color: rgba(255,255,255,0.6); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.hp-hero__trust i { color: #66aaff; }

.hp-hero__badge-col { flex-shrink: 0; }
.hp-hero__badge { display: flex; align-items: center; justify-content: center; }
.hp-badge__ring {
    width: 200px; height: 200px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; backdrop-filter: blur(6px);
}
.hp-badge__num { font-size: 3.6rem; font-weight: 900; color: #fff; line-height: 1; }
.hp-badge__num sup { font-size: 1.8rem; vertical-align: super; }
.hp-badge__lbl { font-size: 0.82rem; color: rgba(255,255,255,0.65); font-weight: 600; line-height: 1.4; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.08em; }

/* ── PRODUCTS ───────────────────────────────────────────── */
.hp-products { padding: 90px 0; background: #f8f9fb; }

/* ── ABOUT ──────────────────────────────────────────────── */
.hp-about {
    padding: 100px 0;
    background: #0a1628;
    color: #fff;
}
.hp-about__grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 70px; align-items: center;
}
.hp-about__img { width: 100%; height: 500px; object-fit: cover; border-radius: 16px; display: block; }
.hp-about__img-ph {
    width: 100%; height: 500px;
    background: rgba(255,255,255,0.05);
    border: 2px dashed rgba(255,255,255,0.15);
    border-radius: 16px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; color: rgba(255,255,255,0.35);
}
.hp-about__img-ph i { font-size: 3rem; }
.hp-about__img-col { position: relative; }
.hp-about__exp-badge {
    position: absolute; bottom: -20px; right: -20px;
    background: var(--primary); color: #fff;
    border-radius: 14px; padding: 22px 28px;
    text-align: center; box-shadow: 0 12px 40px rgba(0,82,204,0.4);
}
.hp-about__exp-badge strong { display: block; font-size: 2.4rem; font-weight: 900; line-height: 1; }
.hp-about__exp-badge span { font-size: 0.78rem; opacity: 0.85; font-weight: 600; line-height: 1.3; }
.hp-about__heading { font-size: 2.4rem; color: #fff; margin: 10px 0 20px; }
.hp-about__content p { color: rgba(255,255,255,0.72); font-size: 0.98rem; line-height: 1.8; margin-bottom: 16px; }
.hp-about__stats { display: flex; gap: 32px; margin: 32px 0 36px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.1); border-bottom: 1px solid rgba(255,255,255,0.1); }
.hp-stat strong { display: block; font-size: 2rem; font-weight: 900; color: #fff; }
.hp-stat span { font-size: 0.78rem; color: rgba(255,255,255,0.55); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }

/* ── PROCESS ─────────────────────────────────────────────── */
.hp-process { padding: 90px 0; background: #fff; }
.hp-process__steps { display: flex; align-items: flex-start; gap: 30px; }
.hp-process__step { flex: 1; position: relative; }
.hp-process__step-img {
    height: 220px; border-radius: 14px; overflow: hidden;
    background: var(--primary-light) center/cover no-repeat;
    display: flex; align-items: center; justify-content: center;
    position: relative; margin-bottom: 22px;
}
.hp-process__step-img i { font-size: 3.5rem; color: var(--primary); opacity: 0.4; position: relative; z-index: 2; }
.hp-process__step-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.3); border-radius: 14px; }
.hp-process__num {
    position: absolute; top: 14px; left: 14px; z-index: 3;
    background: var(--primary); color: #fff;
    font-size: 1.1rem; font-weight: 800;
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
}
.hp-process__step-body { padding: 0 28px 0 0; }
.hp-process__step-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.hp-process__step-body p { font-size: 0.9rem; color: #666; line-height: 1.7; }
.hp-process__connector { display: none; }

/* ── WHY CHOOSE US ───────────────────────────────────────── */
.hp-why { padding: 90px 0; background: #f8f9fb; }
.hp-why__grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 20px; }
.hp-why__card {
    background: #fff; border-radius: 14px; padding: 32px 24px;
    text-align: center; transition: 0.25s;
    border-bottom: 3px solid transparent;
    box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}
.hp-why__card:hover { transform: translateY(-5px); border-bottom-color: var(--primary); box-shadow: 0 12px 32px rgba(0,0,0,0.1); }
.hp-why__icon {
    width: 60px; height: 60px; border-radius: 14px;
    background: var(--primary-light); color: var(--primary);
    font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.hp-why__card h3 { font-size: 1rem; margin-bottom: 10px; }
.hp-why__card p { font-size: 0.85rem; color: #666; line-height: 1.65; }

/* ── CATALOGUE CTA ───────────────────────────────────────── */
.hp-catalog-cta { background: linear-gradient(105deg,#0052cc 0%,#0a1628 100%); padding: 80px 0; }
.hp-catalog-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.hp-catalog-cta__text h2 { font-size: 2.2rem; color: #fff; margin: 10px 0 12px; }
.hp-catalog-cta__text p { color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 480px; }
.hp-catalog-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── TECHNOLOGY ──────────────────────────────────────────── */
.hp-tech { padding: 90px 0; background: #fff; }
.hp-tech__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; }
.hp-tech__card {
    background: #f8f9fb; border-radius: 16px; padding: 38px 30px;
    border-top: 4px solid var(--primary); transition: 0.25s;
}
.hp-tech__card:hover { background: #fff; box-shadow: 0 8px 30px rgba(0,82,204,0.1); transform: translateY(-4px); }
.hp-tech__icon { font-size: 2rem; color: var(--primary); margin-bottom: 16px; }
.hp-tech__card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.hp-tech__card p { font-size: 0.9rem; color: #666; line-height: 1.7; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hp-why__grid { grid-template-columns: repeat(3,1fr); }
    .hp-tech__grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 900px) {
    .hp-hero__title { font-size: 2.8rem; }
    .hp-hero__badge-col { display: none; }
    .hp-about__grid { grid-template-columns: 1fr; }
    .hp-about__exp-badge { right: 20px; }
    .hp-about__img, .hp-about__img-ph { height: 320px; }
    .hp-process__steps { flex-direction: column; gap: 40px; }
    .hp-process__connector { display: none; }
    .hp-catalog-cta__inner { flex-direction: column; text-align: center; }
    .hp-catalog-cta__actions { justify-content: center; }
}
@media (max-width: 640px) {
    .hp-hero { min-height: 100vh; }
    .hp-hero__title { font-size: 2.2rem; }
    .hp-why__grid { grid-template-columns: 1fr 1fr; }
    .hp-tech__grid { grid-template-columns: 1fr; }
    .hp-about__stats { flex-wrap: wrap; gap: 20px; }
}


/* ============================================================
   HERO: always show the whole banner on every screen size
   (height follows the image shape instead of a fixed pixel height)
   ============================================================ */
.hero-slider { height: auto !important; aspect-ratio: var(--hero-ratio, 1920 / 600); background: #0b1a3a; }
.slider-container { height: 100%; }

/* ============================================================
   LARGE SCREENS (24" - 32"+ monitors): scale the whole site up
   so it doesn't look tiny and lost in the middle of the screen
   ============================================================ */
@media (min-width: 1700px) {
    html { font-size: 112.5%; }               /* 18px base */
    .container { max-width: 1560px; }
}
@media (min-width: 2200px) {
    html { font-size: 125%; }                 /* 20px base */
    .container { max-width: 1800px; }
}
@media (min-width: 3000px) {
    html { font-size: 150%; }                 /* 24px base (4K at 100% scaling) */
    .container { max-width: 2200px; }
}

/* Homepage product cards: keep the dark name bar, hide the second (black text) title */
.product-content .product-title { display: none !important; }

/* Product images: always 1:1 square (homepage slider) */
.product-image { height: auto !important; aspect-ratio: 1 / 1 !important; }
.product-image img { width: 100% !important; height: 100% !important; object-fit: cover; }


/* =====================================================================
   MOBILE LAYOUT  (phones, up to 768px)
   Compact header, 2-column shop grid, sticky product action bar,
   floating WhatsApp button.
   ===================================================================== */
.mobile-top-actions, .ptx-m-burger, .ptx-mbar, .ptx-m-filter, .ptx-wa { display: none; }

/* Shop: category filter replaces the hidden sidebar (tablet + phone) */
@media (max-width: 900px) {
    .ptx-m-filter { display: block; margin-bottom: 14px; background: #fff; border: 1px solid #e5e8ef; border-radius: 10px; }
    .ptx-m-filter summary { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; font-size: 14px; font-weight: 600; color: #1a1a1a; cursor: pointer; list-style: none; }
    .ptx-m-filter summary::-webkit-details-marker { display: none; }
    .ptx-m-filter[open] summary > i:last-child { transform: rotate(180deg); }
    .ptx-m-filter ul { list-style: none; margin: 0; padding: 0 14px 6px; }
    .ptx-m-filter li a { display: flex; justify-content: space-between; padding: 11px 0; border-top: 1px solid #f0f0f0; text-decoration: none; color: #1a1a1a; font-size: 14px; }
    .ptx-m-filter li a span:last-child { color: #999; font-size: 12px; }
}

@media (max-width: 768px) {

    /* ---- Header: slim announcement bar + one compact row, sticky ---- */
    /* Only the logo row stays pinned; the thin announcement bar scrolls away (top: -24px = its height) */
    .ptx-top-wrap { position: sticky; top: 0; z-index: 1001; }
    .ptx-top-wrap.has-ticker { top: -24px; }
    .ptx-top-wrap .ptx-ticker-bar { height: 24px; box-sizing: border-box; padding: 4px 0 !important; font-size: 11px !important; line-height: 16px; }
    .header-top-bar { padding: 0 !important; }
    .header-top-bar .header-top-row { flex-direction: row !important; align-items: center !important; justify-content: space-between !important; gap: 8px !important; padding: 4px 0 !important; min-height: 0 !important; text-align: left !important; }
    .header-top-bar .header-info-items { display: none !important; }
    .header-top-bar .site-logo { margin: 0 !important; }
    .header-top-bar .site-logo { line-height: 0; }

    .mobile-top-actions { display: flex; align-items: center; gap: 0; margin-left: auto; color: #1a1a1a; }
    .mobile-top-actions a, .mobile-top-actions .ptx-m-burger {
        position: relative; display: flex; align-items: center; justify-content: center;
        width: 42px; height: 44px; padding: 0; margin: 0; border: 0; background: none;
        color: inherit !important; font-size: 18px; cursor: pointer; text-decoration: none;
    }
    .mobile-top-actions .ptx-m-burger { display: flex; }
    .ptx-m-cartcount { position: absolute; top: 5px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #e24b4a; color: #fff; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center; }

    /* The dark menu bar is replaced by the compact header + slide-out menu */
    .site-header { display: none !important; }

    /* Slide-out menu: big tap targets + quote button */
    .side-primary-list a { display: block; padding: 14px 4px; font-size: 16px; }

    /* ---- Homepage ---- */
    .hero-slider.has-m { aspect-ratio: var(--hero-m-ratio, 4 / 5) !important; }
    .slide.has-m { background-image: var(--m-bg) !important; background-size: cover !important; }
    .hero-slider .prev, .hero-slider .next { width: 34px; height: 34px; font-size: 14px; }
    .section { padding: 40px 0; }
    .product-slider-track { gap: 12px; }
    .product-slide { flex: 0 0 calc(50% - 6px); }
    .slider-arrow { display: none; }

    /* ---- Shop: 2-column grid ---- */
    .site-content { padding: 20px 0 !important; }
    .ptx-sortbar { padding: 10px 12px !important; margin-bottom: 12px !important; border-radius: 10px !important; }
    .ptx-sortbar > span { font-size: 12px !important; }
    .ptx-sortbar .woocommerce-ordering select { min-width: 0; padding: 6px 28px 6px 10px; font-size: 12px; }
    .ptx-products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
    .ptx-pcard { border-radius: 10px !important; }
    .ptx-pcard-body { padding: 10px !important; }
    .ptx-pcard-title { font-size: 13px !important; margin-bottom: 3px !important; }
    .ptx-pcard-sku { font-size: 11px !important; margin-bottom: 8px !important; }
    .ptx-pcard-price { font-size: 13px !important; margin-bottom: 8px !important; }
    .ptx-pcard-btn { font-size: 12px !important; padding: 8px 6px !important; }

    /* ---- Product page: sticky action bar + gallery dots ---- */
    body.single-product { padding-bottom: 76px; }
    .ptx-mbar {
        display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
        padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
        background: #fff; border-top: 1px solid #e5e8ef;
    }
    .ptx-mbar a, .ptx-mbar button {
        flex: 1; display: flex; align-items: center; justify-content: center; height: 46px;
        border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer;
    }
    .ptx-mbar .m-primary { background: #0052cc; color: #fff; border: 0; }
    .ptx-mbar .m-ghost { background: #fff; color: #0052cc; border: 1.5px solid #0052cc; }
    .ptx-m-dots { display: flex; justify-content: center; gap: 6px; padding: 10px 0 2px; }
    .ptx-m-dots i { width: 6px; height: 6px; border-radius: 50%; background: #ccc; }
    .ptx-m-dots i.on { width: 16px; border-radius: 3px; background: #0052cc; }
    .ptx-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }

    /* ---- Floating WhatsApp ---- */
    .ptx-wa {
        display: flex; align-items: center; justify-content: center; position: fixed; right: 14px; bottom: 16px; z-index: 999;
        width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; font-size: 28px;
        text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    }
    body.single-product .ptx-wa { bottom: 84px; }
}

/* Optional: WhatsApp on desktop too (Customizer > WhatsApp Button) */
@media (min-width: 769px) {
    .ptx-wa--all { display: flex; align-items: center; justify-content: center; position: fixed; right: 22px; bottom: 22px; z-index: 999;
        width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; font-size: 30px; text-decoration: none; box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
}


/* =====================================================================
   MOBILE REFINEMENTS: smaller text, tighter spacing, banner fix
   ===================================================================== */
/* "View All" sat white-on-light in the Featured Products heading */
.hp-products .hp-btn--outline { color: var(--primary); border-color: var(--primary); }
.hp-products .hp-btn--outline:hover { background: var(--primary); color: #fff; }

@media (max-width: 768px) {
    body { font-size: 14px; }
    h1 { font-size: 1.6rem; margin-bottom: 0.8rem; }
    h2 { font-size: 1.35rem; margin-bottom: 0.8rem; }
    h3 { font-size: 1.05rem; }

    /* Homepage section headings and spacing */
    .section-title { font-size: 1.5rem; margin-bottom: 22px; }
    .hp-section-head { margin-bottom: 20px; gap: 10px; }
    .hp-section-head h2 { font-size: 1.4rem; margin-top: 2px; }
    .hp-eyebrow { font-size: 0.62rem; padding: 3px 10px; margin-bottom: 6px; letter-spacing: 0.1em; }
    .hp-btn { padding: 10px 18px; font-size: 0.85rem; }
    .hp-btn--sm { padding: 7px 14px; font-size: 0.78rem; }
    .hp-products, .hp-about, .hp-process, .hp-why, .hp-tech { padding: 36px 0; }
    .hp-catalog-cta { padding: 36px 0; }
    .contact-section { padding: 40px 0; }
    .hp-about__heading { font-size: 1.5rem; margin: 6px 0 14px; }
    .hp-catalog-cta__text h2 { font-size: 1.4rem; }
    .hp-stat strong { font-size: 1.4rem; }
    .hp-about__img { height: 260px; }
    .hfaq-title { font-size: 1.5rem; margin-bottom: 18px; }
    .cta-section h2 { font-size: 1.5rem; }
    .contact-info h1 { font-size: 1.6rem; }
    .about-heading { font-size: 1.5rem !important; }
    .about-text h2 { font-size: 1.25rem !important; }

    /* Featured product cards: smaller text */
    .product-name-bar { font-size: 12px; padding: 8px 6px; }
    .product-badge { font-size: 10px; padding: 3px 8px; }

    /* Banner: show the full image, small arrows, nothing cut off */
    .hero-slider { margin: 0; }
    .hero-slider .slider-container { height: 100%; }
    .hero-slider .prev, .hero-slider .next { width: 28px; height: 28px; font-size: 11px; padding: 0; line-height: 28px; }
    .hero-slider .prev { left: 6px; }
    .hero-slider .next { right: 6px; }
}


/* =====================================================================
   HEADER LAYOUT (desktop): Factory Hours + Email on the left,
   logo in the center, Phone on the right
   ===================================================================== */
@media (min-width: 993px) {
    .header-top-bar .header-top-row { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; }
    .header-top-bar .header-info-left { justify-self: start; justify-content: flex-start; }
    .header-top-bar .header-info-right { justify-self: end; justify-content: flex-end; }
    .header-top-bar .header-top-row > .site-logo { justify-self: center; }
}
/* Tablet: logo first and centered, info rows centered underneath */
@media (min-width: 769px) and (max-width: 992px) {
    .header-top-bar .header-top-row { align-items: center !important; }
    .header-top-bar .header-top-row > .site-logo { order: -1; margin-left: auto !important; margin-right: auto !important; }
    .header-top-bar .header-info-items { justify-content: center; margin-left: 0 !important; margin-right: 0 !important; }
}

/* MOBILE: remove the thin light gap/line between the header and the hero banner */
@media (max-width: 768px) {
    .header-top-bar { border-bottom: 0 !important; margin-bottom: 0 !important; }
    .ptx-top-wrap { margin-bottom: -1px !important; }
    .hero-slider { margin-top: 0 !important; }
}
