/* ============================================
   @font-face - MuseoSans Font Loading
   ============================================ */
@font-face {
    font-family: 'MuseoSans';
    src: url('../fonts/MuseoSans-500.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MuseoSans';
    src: url('../fonts/MuseoSans-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MuseoSans';
    src: url('../fonts/MuseoSans-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MuseoSans';
    src: url('../fonts/MuseoSans-900.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* Alpine.js x-cloak - hide until JS loads */
[x-cloak] { display: none !important; }

/**
 * ESP Homepage Styles
 *
 * Mobile-first responsive design
 * Patterns adapted from competitor (Hyva/Tailwind)
 *
 * UPDATED: Full PaulB Wholesale Tailwind pattern alignment
 * - Breakpoints: 640px, 768px, 1024px, 1280px, 1640px
 * - Container max-width: 1640px at largest breakpoint
 * - Navigation max-width: 1152px (max-w-6xl)
 * - Container colors: bg-container, border-container-darker, bg-pageEnds
 * - Topbar: font-weight 900 (font-black), tracking-tight, responsive margins
 * - Logobar: responsive flex/order pattern, gap-2/gap-8 responsive
 * - Search: rounded-l-lg/rounded-r-lg, text-lg/lg:text-xl
 * - Mobile nav: z-20, responsive order, PaulB link styling
 * - Icons: 32x32 account, 40x32 cart, labels hidden md:block
 * - Print utilities: print:hidden, print:flex
 * - Responsive order utilities: order-1/2/3, sm:/md:/lg: variants
 */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
    /* Colors - ESP brand gold */
    --esp-primary: #E6AC2C;           /* ESP brand gold */
    --esp-primary-dark: #C9941F;      /* Darker gold for hover */
    --esp-primary-light: #FEF7E6;     /* Light gold for backgrounds */
    --esp-primary-ring: rgba(230, 172, 44, 0.5); /* Focus ring */
    --esp-secondary: #1f2937;         /* Dark gray accent */
    --esp-secondary-dark: #111827;

    /* Text colors - aligned with competitor (pure black base) */
    --esp-text: #000000;              /* Pure black - matches competitor */
    --esp-text-light: #6b7280;        /* gray-500 */
    --esp-text-lighter: #9ca3af;      /* gray-400 */
    --esp-text-muted: #374151;        /* gray-700 */
    --esp-text-inverse: #ffffff;

    /* Background colors - PaulB container pattern */
    --esp-bg: #ffffff;
    --esp-bg-alt: #f9fafb;            /* gray-50 */
    --esp-bg-gray-100: #f3f4f6;       /* gray-100 */
    --esp-bg-container: #fafafa;      /* PaulB bg-container rgb(250,250,250) */
    --esp-bg-container-lighter: #ffffff; /* PaulB bg-container-lighter */
    --esp-bg-container-darker: #efefef;  /* PaulB bg-container-darker rgb(239,239,239) */
    --esp-bg-darker: #efefef;         /* container-darker (alias) */
    --esp-bg-dark: #363636;           /* pageEnds rgb(54,54,54) */

    /* Gray scale (full Tailwind scale) */
    --esp-gray-50: #f9fafb;
    --esp-gray-100: #f3f4f6;
    --esp-gray-200: #e5e7eb;
    --esp-gray-300: #d1d5db;
    --esp-gray-400: #9ca3af;
    --esp-gray-500: #6b7280;
    --esp-gray-600: #4b5563;
    --esp-gray-700: #374151;
    --esp-gray-800: #1f2937;
    --esp-gray-900: #111827;

    /* Semantic colors */
    --esp-success: #00a151;           /* Matches competitor green */
    --esp-success-dark: #026227;
    --esp-error: #c90707;
    --esp-warning: #eab308;
    --esp-info: #3b82f6;

    /* Border colors - PaulB container pattern */
    --esp-border: #e5e7eb;            /* gray-200 */
    --esp-border-dark: #d1d5db;       /* gray-300 */
    --esp-border-input: #d1d5db;      /* gray-300 for inputs */
    --esp-border-container: #e7e7e7;  /* PaulB border-container rgb(231,231,231) */
    --esp-border-container-darker: #b6b6b6; /* PaulB border-container-darker rgb(182,182,182) */
    --esp-border-container-lighter: #f5f5f5; /* PaulB border-container-lighter rgb(245,245,245) */

    /* Typography - PaulB MuseoSans pattern */
    --esp-font-sans: 'MuseoSans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --esp-font-heading: var(--esp-font-sans);

    /* ================================================
       Typography Scale (1.25 Modular Scale - Major Third)
       Base: 1rem (16px)
       Scale: 0.64, 0.8, 1, 1.25, 1.563, 1.953, 2.441, 3.052
       ================================================ */

    /* Font Size Scale */
    --esp-text-xs: 0.75rem;      /* 12px - captions, badges */
    --esp-text-sm: 0.875rem;     /* 14px - small text, labels */
    --esp-text-base: 1rem;       /* 16px - body text */
    --esp-text-lg: 1.125rem;     /* 18px - large body, UI text */
    --esp-text-xl: 1.25rem;      /* 20px - H6, small headings */
    --esp-text-2xl: 1.5rem;      /* 24px - H5 */
    --esp-text-3xl: 1.875rem;    /* 30px - H4 */
    --esp-text-4xl: 2.25rem;     /* 36px - H3 */
    --esp-text-5xl: 3rem;        /* 48px - H2 */
    --esp-text-6xl: 3.75rem;     /* 60px - H1 hero */

    /* Font Weights */
    --esp-font-normal: 400;      /* Body text, paragraphs */
    --esp-font-medium: 500;      /* UI elements, buttons, labels */
    --esp-font-semibold: 600;    /* H5-H6, emphasis */
    --esp-font-bold: 700;        /* H1-H4, strong headings */
    --esp-font-black: 900;       /* Topbar, heavy emphasis */

    /* Line Heights */
    --esp-leading-none: 1;       /* Tight display text */
    --esp-leading-tight: 1.25;   /* Headings */
    --esp-leading-snug: 1.375;   /* Subheadings */
    --esp-leading-normal: 1.5;   /* Body text (default) */
    --esp-leading-relaxed: 1.625; /* Prose, descriptions */
    --esp-leading-loose: 2;      /* Very spacious text */

    /* Letter Spacing */
    --esp-tracking-tighter: -0.05em;  /* Very tight (large headings) */
    --esp-tracking-tight: -0.025em;   /* Tight (headings, topbar) */
    --esp-tracking-normal: 0;         /* Normal (body text) */
    --esp-tracking-wide: 0.025em;     /* Wide (section titles) */
    --esp-tracking-wider: 0.05em;     /* Wider (uppercase labels) */
    --esp-tracking-widest: 0.1em;     /* Widest (all-caps headings) */

    /* Spacing scale (Tailwind) */
    --esp-space-0: 0;
    --esp-space-1: 0.25rem;   /* 4px */
    --esp-space-2: 0.5rem;    /* 8px */
    --esp-space-3: 0.75rem;   /* 12px */
    --esp-space-4: 1rem;      /* 16px */
    --esp-space-5: 1.25rem;   /* 20px */
    --esp-space-6: 1.5rem;    /* 24px */
    --esp-space-8: 2rem;      /* 32px */
    --esp-space-10: 2.5rem;   /* 40px */
    --esp-space-12: 3rem;     /* 48px */
    --esp-space-16: 4rem;     /* 64px */
    --esp-space-24: 6rem;     /* 96px */
    --esp-space-32: 8rem;     /* 128px */

    /* Container */
    --esp-container-padding: 1.5rem;

    /* Shadows (Tailwind shadow scale) */
    --esp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --esp-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --esp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --esp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --esp-shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    /* Border radius */
    --esp-rounded-none: 0;
    --esp-rounded-sm: 0.125rem;
    --esp-rounded: 0.25rem;
    --esp-rounded-md: 0.375rem;
    --esp-rounded-lg: 0.5rem;
    --esp-rounded-xl: 0.75rem;
    --esp-rounded-full: 9999px;

    /* Transitions - aligned with competitor */
    --esp-transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --esp-transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --esp-transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global / Body Styles
   ============================================ */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-y: scroll;
}

/* ============================================
   Page Layout
   ============================================ */
/* All ESP template body classes share base typography */
.esp-homepage-body,
.esp-shop-body,
.esp-category-body,
.esp-product-body,
.esp-checkout-body,
.esp-wholesale-application-body,
.esp-quick-order-body,
.esp-about-body,
.esp-about-mission-body,
.esp-about-history-body,
.esp-about-team-body,
.esp-my-account-body,
.esp-privacy-policy-body,
.esp-terms-of-use-body,
.esp-contact-body,
.esp-brands-body,
.esp-specials-body,
.esp-rentals-body {
    margin: 0;
    padding: 0;
    font-family: var(--esp-font-sans);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--esp-text);
    background: var(--esp-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.esp-page {
    min-height: 100vh;
}

/* ============================================
   Header - Top Bar (Account CTA)
   ============================================ */
.esp-header {
    width: 100% !important;
}

.esp-topbar {
    background-color: var(--esp-bg-dark) !important; /* rgb(54, 54, 54) / #363636 - PaulB: bg-pageEnds */
    color: var(--esp-text-inverse) !important;
    display: block !important;
}

.esp-topbar__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--esp-space-2);
    padding: 0 var(--esp-space-4); /* Reduced padding for edge clearance */
    max-width: 100%; /* Full width to prevent clipping */
    margin: 0 auto;
    /* Ensure content doesn't overflow on smaller desktop screens */
    overflow: visible;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .esp-topbar__inner {
        justify-content: flex-end;
    }
}

/* Phone link in topbar */
.esp-topbar__phone {
    display: block;
    color: var(--esp-text-inverse);
    text-decoration: none;
    font-weight: 900;
    font-size: 1rem; /* 16px mobile */
    padding: var(--esp-space-2); /* 8px */
    letter-spacing: -0.025em; /* tracking-tight */
    text-align: center;
    transition: text-decoration var(--esp-transition);
}

.esp-topbar__phone:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .esp-topbar__phone {
        text-align: right;
    }
}

@media (min-width: 1024px) {
    .esp-topbar__phone {
        font-size: 1.5rem; /* 24px desktop */
    }
}

.esp-topbar__link {
    color: var(--esp-text-inverse);
    text-decoration: none;
    font-weight: 900; /* PaulB: font-black */
    font-size: 1rem; /* PaulB: text-base (16px) */
    padding: var(--esp-space-2);
    margin-top: 0.25rem; /* PaulB: mt-1 on mobile */
    letter-spacing: -0.025em; /* PaulB: tracking-tight */
    transition: text-decoration var(--esp-transition);
}

.esp-topbar__link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .esp-topbar__link {
        margin-top: 0; /* PaulB: md:mt-0 */
    }
}

@media (min-width: 1024px) {
    .esp-topbar__link {
        font-size: 1.5rem; /* PaulB: lg:text-2xl (24px) */
    }
}

.esp-topbar__divider {
    color: var(--esp-text-inverse);
    opacity: 0.6;
    margin-top: 0.25rem; /* Align with links */
}

@media (min-width: 768px) {
    .esp-topbar__divider {
        margin-top: 0;
    }
}

/* Print styles for topbar */
@media print {
    .esp-topbar {
        display: flex; /* PaulB: print:flex */
    }
}

/* ============================================
   Header - Logo Bar (PaulB pattern: flexible height)
   ============================================ */
.esp-logobar {
    background-color: var(--esp-bg-container-lighter) !important; /* PaulB: bg-container-lighter (white) */
    border-bottom: 1px solid var(--esp-border-container-darker) !important; /* PaulB: border-container-darker #b6b6b6 */
    overflow-x: clip; /* Prevent horizontal overflow while allowing autocomplete dropdown to extend below */
    overflow-y: visible;
}

.esp-logobar__inner {
    display: flex; /* Flex on all sizes for hamburger/logo/actions row */
    flex-wrap: nowrap; /* Never wrap - always single row */
    align-items: center;
    justify-content: space-between;
    max-width: 1640px;
    width: 100%;
    margin: 0 auto;
    padding: 8px 16px; /* Ensure space for icons on right */
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .esp-logobar__inner {
        padding: 12px 24px; /* py-3 px-6 */
    }
}

@media (min-width: 768px) {
    .esp-logobar__inner {
        padding: 12px 24px 12px 24px; /* Equal padding both sides */
    }
}

@media (min-width: 1024px) {
    .esp-logobar__inner {
        padding: 12px 36px; /* More padding at desktop */
    }
}

/* Logo container - responsive ordering */
.esp-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2; /* Center position on mobile row */
    flex: 1 1 auto; /* Grow to fill space, shrink if needed */
    min-width: 110px; /* Minimum width to maintain logo aspect ratio */
    padding: 0;
}

@media (min-width: 640px) {
    .esp-logo {
        order: 2; /* PaulB: sm:order-2 */
        flex: none;
    }
}

@media (min-width: 768px) {
    .esp-logo {
        width: 25%; /* PaulB: md:w-1/4 */
    }
}

@media (min-width: 1024px) {
    .esp-logo {
        order: 1; /* PaulB: lg:order-1 */
        width: auto;
    }
}

.esp-logo img {
    height: 24px; /* Fixed height on mobile */
    width: auto; /* Width scales with aspect ratio */
    object-fit: contain; /* Preserve aspect ratio */
}

@media (min-width: 640px) {
    .esp-logo img {
        height: 50px !important;
        max-height: 50px !important;
        max-width: 140px; /* PaulB: sm:max-w-140px */
    }
}

@media (min-width: 768px) {
    .esp-logo img {
        height: 70px !important;
        max-height: 70px !important;
    }
}

@media (min-width: 1024px) {
    .esp-logo img {
        max-width: none; /* PaulB: lg:max-w-none */
    }
}

.esp-logobar__actions {
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0 !important; /* No gap - icons tight together on mobile */
    order: 3 !important; /* Rightmost on mobile row - !important to survive CSS optimization */
    flex-shrink: 0; /* Don't shrink */
    margin-right: 6px !important; /* Match hamburger's 24px distance from left edge */
}

@media (min-width: 768px) {
    .esp-logobar__actions {
        gap: var(--esp-space-4) !important; /* md:gap-4 (16px) - tighter for two icons */
        margin-right: 0 !important; /* Reset on larger screens */
    }
}

@media (min-width: 1024px) {
    .esp-logobar__actions {
        gap: var(--esp-space-6) !important; /* lg:gap-6 (24px) */
    }
}

/* Print: hide actions */
@media print {
    .esp-logobar__actions {
        display: none; /* PaulB: print:hidden */
    }
}

.esp-account-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--esp-text);
    text-decoration: none;
    transition: color var(--esp-transition);
}

@media (min-width: 768px) {
    .esp-account-link {
        width: 4rem; /* PaulB: md:w-16 (64px) */
    }
}

.esp-account-link:hover {
    color: var(--esp-gray-500); /* PaulB: hover:text-gray-500 */
}

.esp-account-link svg {
    width: 32px; /* PaulB: width="32" height="32" */
    height: 32px;
    display: block;
}

@media (min-width: 768px) {
    .esp-account-link svg {
        width: 32px; /* PaulB: md:h-8 md:w-8 */
        height: 32px;
    }
}

.esp-account-link span {
    display: none; /* Hidden on mobile */
    font-size: 0.75rem; /* PaulB: text-xs */
    text-align: center;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .esp-account-link span {
        display: block; /* PaulB: hidden md:block */
    }
}

/* Cart link - similar pattern to account link */
.esp-cart-link {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--esp-text);
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
    transition: color var(--esp-transition);
}

.esp-cart-link:hover {
    color: var(--esp-text); /* PaulB: hover:text-black */
}

.esp-cart-link:hover svg {
    color: var(--esp-gray-500); /* PaulB: group-hover:text-gray-500 */
}

.esp-cart-link svg {
    width: 40px; /* PaulB: width="40" */
    height: 32px; /* PaulB: height="32" */
    display: block;
}

/* Cart Icon Wrapper - positions badge relative to icon */
.esp-cart-icon-wrapper {
    position: relative;
    display: inline-block;
    /* Compensate for badge overflow on mobile - aligns with account icon */
    margin-top: 0.625rem;
}

@media (min-width: 768px) {
    .esp-cart-icon-wrapper {
        margin-top: 0; /* Reset on desktop where labels provide alignment */
    }
}

/* Cart Count Badge - PaulB pattern: circle in top-right corner, ESP gold */
.esp-cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.125rem;
    height: 1.125rem;
    padding: 0 0.25rem;
    font-size: 0.625rem;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    background-color: var(--esp-primary); /* ESP Gold #E6AC2C */
    border-radius: 50%; /* Perfect circle */
    position: absolute;
    top: -0.375rem;
    right: -0.5rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

/* Cart Label - hidden on mobile, shown on desktop */
.esp-cart-label {
    display: none;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--esp-text);
}

@media (min-width: 768px) {
    .esp-cart-label {
        display: block;
    }
}

/* ============================================
   Header - Search Bar (PaulB pattern)
   ============================================ */
.esp-search {
    display: none; /* Hidden on mobile by default */
    flex: 1;
    flex-grow: 1; /* PaulB: grow */
    max-width: 50%; /* PaulB: lg:max-w-1/2 */
    margin: 0 24px;
    margin-bottom: 1rem; /* PaulB: mb-4 on mobile */
    order: 2; /* PaulB: order-2 */
}

@media (min-width: 640px) {
    .esp-search {
        display: block;
        margin-bottom: 0; /* PaulB: sm:mb-0 */
    }
}

/* Print: hide search */
@media print {
    .esp-search {
        display: none; /* PaulB: print:hidden */
    }
}

.esp-search__form {
    display: flex;
    align-items: center; /* Center children vertically */
    position: relative;
    /* Reference design: cream outer ring with grey inner area */
    background-color: #ffffff; /* White outer ring */
    border-radius: 9999px; /* Full pill shape for container */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18); /* Sharper, tighter shadow */
    padding: 5px; /* Padding creates visible cream outer ring with more whitespace */
    border: none !important;
    outline: none !important;
    min-height: 52px; /* Ensure minimum height for taller appearance */
}

.esp-search__input-wrap {
    display: flex;
    flex: 1;
    align-items: center;
    position: relative;
    background-color: #f9f9f9 !important; /* Light grey inner pill */
    border-radius: 9999px 0 0 9999px !important; /* Pill shape on left side */
    border: 2px solid #d1d5db !important; /* Grey border - thicker */
    border-right: none !important; /* No border on right - continues to icons */
    box-shadow: none !important;
    outline: none !important;
    order: 1;
}

.esp-search__input {
    flex: 1;
    width: 100%;
    padding: 1rem 1.5rem; /* Increased padding for taller appearance */
    border: none !important;
    border-radius: 9999px 0 0 9999px; /* Rounded left only */
    font-size: 1.125rem;
    line-height: 1.5;
    background-color: #f9f9f9 !important; /* Light grey to match inner pill */
    color: var(--esp-gray-800);
    transition: none;
    -webkit-appearance: none;
    appearance: none;
    outline: none !important;
    box-shadow: none !important;
}

@media (min-width: 1024px) {
    .esp-search__input {
        font-size: 1.25rem; /* PaulB: lg:text-xl */
    }
}

.esp-search__input:focus {
    outline: none;
    border-color: transparent; /* PaulB: focus:border-transparent */
}

.esp-search__input::placeholder {
    color: var(--esp-text-lighter);
}

/* When autocomplete is shown, remove bottom border-radius */
.esp-search__input.has-autocomplete {
    border-radius: 9999px 0 0 0; /* Keep rounded-l-full on top, flat on bottom */
}

.esp-search__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.75rem; /* Horizontal padding only */
    background: linear-gradient(to bottom, #EDBA2E 0%, #D49A1A 100%) !important;
    color: #ffffff;
    border: none;
    border-radius: 0 9999px 9999px 0; /* Flat left, rounded right */
    cursor: pointer;
    transition: background var(--esp-transition);
    order: 4;
    align-self: stretch;
    margin: 0 3px 0 0; /* Right margin to align curve with outer pill */
}

.esp-search__btn:hover {
    background: linear-gradient(to bottom, #D9A520 0%, #B8850F 100%) !important; /* Darker gradient on hover */
}

/* When autocomplete is shown, remove bottom-right border-radius */
.esp-search__btn.has-autocomplete {
    border-radius: 0 9999px 0 0;
}

.esp-search__btn svg {
    width: 28px;
    height: 28px;
    stroke: #ffffff !important; /* Force white magnifying glass */
    fill: none !important;
}

/* Barcode, Chat, and Quick Order icons - inside grey input pill */
.esp-search__barcode,
.esp-search__chat,
.esp-search__quickorder {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
    width: 40px !important;
    height: 100% !important;
    padding: 0 8px !important;
    background: transparent !important; /* Inherits grey from parent input-wrap */
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    cursor: pointer;
    color: #1f2937 !important;
    transition: color var(--esp-transition);
}

.esp-search__barcode:hover,
.esp-search__chat:hover,
.esp-search__quickorder:hover {
    color: var(--esp-primary);
}

.esp-search__barcode svg,
.esp-search__chat svg,
.esp-search__quickorder svg {
    width: 24px;
    height: 24px;
}

/* ============================================
   AWS AJAX Search Plugin Overrides
   PaulB pill shape with ESP gold accent
   ============================================ */
.esp-search--aws .aws-search-form,
.esp-search--aws form {
    display: flex !important;
    align-items: stretch !important;
}

.esp-search--aws .aws-search-field,
.esp-search--aws input[type="search"],
.esp-search--aws input[type="text"] {
    flex: 1 !important;
    padding: 0.5rem 1rem !important;
    border: 1px solid var(--esp-border-dark) !important;
    border-right: none !important;
    border-radius: 9999px 0 0 9999px !important; /* Pill shape left */
    font-size: 1.125rem !important;
    line-height: 1.5 !important;
    background-color: var(--esp-bg) !important;
    color: var(--esp-gray-800) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

@media (min-width: 1024px) {
    .esp-search--aws .aws-search-field,
    .esp-search--aws input[type="search"],
    .esp-search--aws input[type="text"] {
        font-size: 1.25rem !important;
    }
}

.esp-search--aws .aws-search-field:focus,
.esp-search--aws input[type="search"]:focus,
.esp-search--aws input[type="text"]:focus {
    outline: none !important;
    border-color: var(--esp-primary) !important;
}

.esp-search--aws .aws-search-btn,
.esp-search--aws button[type="submit"],
.esp-search--aws .aws-search-form .aws-form-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    background-color: var(--esp-primary) !important; /* ESP Gold */
    color: var(--esp-text-inverse) !important;
    border: none !important;
    border-radius: 0 9999px 9999px 0 !important; /* Pill shape right */
    cursor: pointer !important;
    transition: background-color var(--esp-transition) !important;
}

.esp-search--aws .aws-search-btn:hover,
.esp-search--aws button[type="submit"]:hover,
.esp-search--aws .aws-search-form .aws-form-btn:hover {
    background-color: var(--esp-primary-dark) !important;
}

.esp-search--aws .aws-search-btn svg,
.esp-search--aws button[type="submit"] svg {
    width: 25px !important;
    height: 25px !important;
    fill: currentColor !important;
}

/* Search Autocomplete Dropdown */
.esp-search__autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--esp-bg);
    border: 1px solid var(--esp-border);
    border-radius: 0.5rem;
    box-shadow: var(--esp-shadow-lg);
    z-index: 100;
    max-height: 400px;
    overflow: hidden;
    overflow-y: auto;
}

.esp-search__section {
    padding: 8px 0;
    border-bottom: 1px solid var(--esp-border);
}

.esp-search__section:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.esp-search__section:last-child {
    border-bottom: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

.esp-search__section:first-child:last-child {
    border-radius: 0.5rem;
}

/* Round corners on first product item when it's the first visible element */
.esp-search__section:first-child .esp-search__product-item:first-child {
    border-radius: 0.5rem 0.5rem 0 0;
}

.esp-search__section-title {
    display: block;
    padding: 4px 16px 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--esp-text-light);
    letter-spacing: 0.05em;
}

/* Round corners on section title when it's in the first section */
.esp-search__section:first-child .esp-search__section-title {
    border-radius: 0.5rem 0.5rem 0 0;
}

.esp-search__term-item,
.esp-search__category-item {
    display: block;
    padding: 8px 16px;
    color: var(--esp-text);
    text-decoration: none;
    transition: background-color var(--esp-transition);
}

.esp-search__term-item:hover,
.esp-search__category-item:hover,
.esp-search__term-item.is-selected,
.esp-search__category-item.is-selected {
    background-color: var(--esp-bg-alt);
}

.esp-search__term-count {
    font-size: 0.875rem;
    color: var(--esp-text-lighter);
    margin-left: 4px;
}

.esp-search__product-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 16px;
    text-decoration: none;
    transition: background-color var(--esp-transition);
}

.esp-search__product-item:hover,
.esp-search__product-item.is-selected {
    background-color: var(--esp-bg-alt);
}

.esp-search__product-image {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.esp-search__product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.esp-search__product-info {
    flex: 1;
    min-width: 0;
}

.esp-search__product-title {
    font-size: 0.9375rem;
    color: var(--esp-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esp-search__product-sku {
    font-size: 0.75rem;
    color: var(--esp-text-lighter);
}

.esp-search__product-price {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--esp-primary);
}

.esp-search__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px;
    color: var(--esp-text-light);
}

.esp-search__loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--esp-border);
    border-top-color: var(--esp-primary);
    border-radius: 50%;
    animation: esp-spin 0.8s linear infinite;
}

@keyframes esp-spin {
    to { transform: rotate(360deg); }
}

.esp-search__no-results {
    padding: 20px;
    text-align: center;
    color: var(--esp-text-light);
}

.esp-search__no-results-hint {
    font-size: 0.875rem;
    color: var(--esp-text-lighter);
    margin-top: 4px;
}

/* ============================================
   Header - Navigation (Competitor pattern)
   ============================================ */
.esp-nav {
    background-color: var(--esp-bg) !important;
    border-bottom: 1px solid var(--esp-border) !important;
}

.esp-nav__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%; /* Full width to prevent truncation */
    margin: 0 auto;
    padding: 0 var(--esp-space-2); /* Minimal horizontal padding */
    overflow: visible;
}

.esp-nav__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    gap: 0;
}

@media (min-width: 768px) {
    .esp-nav__menu {
        justify-content: space-between;
    }
}

.esp-nav__menu li {
    border-bottom: 2px solid transparent;
    transition: border-color var(--esp-transition-slow); /* 500ms like competitor */
}

.esp-nav__menu li:hover {
    border-bottom-color: var(--esp-primary);
}

/* Use > child combinator to match esp-category-demo plugin specificity */
.esp-nav__menu > li > a {
    display: block;
    padding: var(--esp-space-3); /* p-3 = 12px all sides */
    color: var(--esp-gray-700) !important; /* text-gray-700 */
    text-decoration: none !important;
    font-family: var(--esp-font-sans) !important; /* Lock down font against WooCommerce overrides */
    font-weight: 500 !important;
    font-size: 0.875rem !important;
    white-space: nowrap;
    transition: color var(--esp-transition);
}

@media (min-width: 768px) {
    .esp-nav__menu > li > a {
        font-size: 1.125rem !important; /* text-lg */
    }
}

@media (min-width: 1024px) {
    .esp-nav__menu > li > a {
        font-size: 1rem !important; /* Reduced for 1024-1400px to prevent truncation */
        padding: var(--esp-space-2); /* Tighter padding */
    }
}

@media (min-width: 1400px) {
    .esp-nav__menu > li > a {
        font-size: 1.25rem !important; /* text-xl - full size at larger viewports */
        padding: var(--esp-space-3); /* Standard padding */
    }
}

.esp-nav__menu li a:hover {
    color: var(--esp-primary) !important;
}

/* Shop Categories Button - matches nav link styling */

/* Make the button's parent li a flex container to center the button vertically */
.esp-nav__item {
    display: flex;
    align-items: center;
}

.esp-nav__products-btn {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: var(--esp-space-3); /* p-3 = 12px all sides */
    color: var(--esp-gray-700) !important;
    background: transparent !important;
    border: none !important;
    font-family: var(--esp-font-sans) !important; /* Lock down font against WooCommerce overrides */
    font-weight: 500 !important;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: color var(--esp-transition);
}

.esp-nav__products-btn:hover {
    color: var(--esp-primary) !important;
}

.esp-nav__products-btn .esp-nav__caret {
    width: 16px;
    height: 16px;
    transition: transform var(--esp-transition);
}

@media (min-width: 768px) {
    .esp-nav__products-btn {
        font-size: 1.125rem; /* text-lg - match nav links */
    }
}

@media (min-width: 1024px) {
    .esp-nav__products-btn {
        font-size: 1rem; /* Reduced for 1024-1400px to match nav links */
        padding: var(--esp-space-2);
    }
}

@media (min-width: 1400px) {
    .esp-nav__products-btn {
        font-size: 1.25rem; /* text-xl - match nav links */
        padding: var(--esp-space-3);
    }
}

/* ============================================
   Mobile Navigation (PaulB pattern)
   Hamburger icon visible below lg (1024px)
   ============================================ */
.esp-mobile-nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 44px !important; /* Slightly smaller on mobile */
    height: 44px !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
    color: var(--esp-text) !important;
    transition: color var(--esp-transition) !important;
    z-index: 20 !important; /* PaulB: z-20 */
    order: 1 !important; /* Leftmost on mobile row */
    flex-shrink: 0 !important; /* Don't shrink */
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

@media (min-width: 640px) {
    .esp-mobile-nav-toggle {
        order: 1; /* PaulB: sm:order-1 */
    }
}

.esp-mobile-nav-toggle:hover {
    color: var(--esp-primary);
}

.esp-mobile-nav-toggle svg {
    width: 24px; /* Icon size */
    height: 24px;
    stroke-width: 2; /* PaulB: stroke-width="2" */
}

/* Hide hamburger on desktop */
@media (min-width: 1024px) {
    .esp-mobile-nav-toggle {
        display: none; /* PaulB: lg:hidden */
    }
}

/* Hide desktop nav on mobile */
@media (max-width: 1023px) {
    .esp-nav__menu {
        display: none;
    }
}

/* Mobile Navigation Drawer */
.esp-mobile-drawer {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    pointer-events: none;
}

.esp-mobile-drawer[x-cloak] {
    display: none !important;
}

.esp-mobile-drawer.is-open,
.esp-mobile-drawer[data-open="true"] {
    pointer-events: auto;
}

/* Backdrop */
.esp-mobile-drawer__backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 500ms ease; /* PaulB: 500ms */
}

.esp-mobile-drawer.is-open .esp-mobile-drawer__backdrop,
.esp-mobile-drawer[data-open="true"] .esp-mobile-drawer__backdrop {
    opacity: 1;
}

/* Drawer Panel - Slides from RIGHT like PaulB (full screen) */
.esp-mobile-drawer__panel {
    position: absolute;
    top: 0;
    left: 0; /* Full width - anchor to left */
    right: 0; /* Full width - anchor to right */
    bottom: 0;
    width: 100% !important; /* PaulB: full screen width */
    max-width: 100vw !important; /* Ensure viewport width */
    background-color: var(--esp-bg-container-lighter); /* PaulB: bg-container-lighter */
    box-shadow: none; /* No shadow when full-screen */
    transform: translateX(100%); /* PaulB: slides from right */
    transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1); /* PaulB: 500ms */
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll during panel transitions */
    display: flex;
    flex-direction: column;
    padding: 4px; /* PaulB: p-1 */
    border-top: 1px solid var(--esp-border-container); /* PaulB: border-t border-container */
}

/* Nav container needs relative positioning for submenu panel */
.esp-mobile-drawer__nav {
    position: relative;
    flex: 1;
    overflow-y: auto;
}

.esp-mobile-drawer.is-open .esp-mobile-drawer__panel,
.esp-mobile-drawer[data-open="true"] .esp-mobile-drawer__panel {
    transform: translateX(0);
}

/* Drawer Header - PaulB pattern: white bg, close button only */
.esp-mobile-drawer__header {
    display: flex;
    align-items: center;
    justify-content: flex-end; /* PaulB: close button on right only */
    padding: 16px;
    border-bottom: none; /* PaulB: no border on header */
    background-color: var(--esp-bg); /* PaulB: white background */
}

/* Hide logo in drawer header - PaulB doesn't show logo */
.esp-mobile-drawer__logo {
    display: none;
}

.esp-mobile-drawer__logo img {
    height: 40px;
    width: auto;
}

.esp-mobile-drawer__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--esp-text); /* PaulB: dark text color */
    transition: color var(--esp-transition);
}

.esp-mobile-drawer__close:hover {
    color: var(--esp-gray-500); /* PaulB: gray on hover */
}

.esp-mobile-drawer__close svg {
    width: 24px;
    height: 24px;
}

/* Drawer Navigation */
.esp-mobile-drawer__nav {
    padding: 0; /* PaulB: link items have their own padding */
}

.esp-mobile-drawer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column; /* PaulB: flex flex-col */
}

.esp-mobile-drawer__menu > li {
    /* No li borders - handled by links */
}

.esp-mobile-drawer__menu > li > a,
.esp-mobile-drawer__menu > li > div > a,
.esp-mobile-drawer__menu-item-wrapper > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem; /* PaulB: px-8 py-4 (32px horizontal, 16px vertical) */
    color: var(--esp-text) !important; /* Force black text - PaulB pattern */
    text-decoration: none !important; /* No underline */
    font-size: 1.125rem; /* PaulB: text-lg */
    font-weight: 400;
    transition: color var(--esp-transition);
    border-bottom: 1px solid var(--esp-border-container); /* PaulB: border-container (#e7e7e7) */
    background-color: var(--esp-bg-container-lighter); /* PaulB: bg-container-lighter */
}

.esp-mobile-drawer__menu > li:last-child > a {
    border-bottom: 1px solid var(--esp-border-container); /* PaulB: border-container */
}

.esp-mobile-drawer__menu > li > a:hover {
    color: var(--esp-primary-dark); /* ESP gold hover instead of PaulB green */
}

/* Mobile drawer expand button - PaulB bordered button pattern */
.esp-mobile-drawer__expand-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; /* PaulB: w-11 */
    height: 44px; /* PaulB: h-11 */
    margin-right: 2rem; /* PaulB: mr-8 */
    padding: 0;
    background-color: var(--esp-bg-container-lighter); /* PaulB: bg-container-lighter */
    border: 1px solid var(--esp-border-container); /* PaulB: border-container */
    border-radius: 0;
    cursor: pointer;
    transition: background-color var(--esp-transition), border-color var(--esp-transition);
}

.esp-mobile-drawer__expand-btn:hover {
    background-color: var(--esp-bg-container); /* Slightly darker on hover */
    border-color: var(--esp-border-container-darker);
}

.esp-mobile-drawer__expand-btn svg {
    width: 16px;
    height: 16px;
    color: var(--esp-gray-600);
    transition: color var(--esp-transition);
}

.esp-mobile-drawer__expand-btn:hover svg {
    color: var(--esp-primary-dark); /* ESP gold on hover */
}

/* Menu item with expand button needs relative positioning */
.esp-mobile-drawer__menu-item-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Link inside wrapper - takes full width but leaves room for button */
.esp-mobile-drawer__menu-item-wrapper > a {
    flex: 1;
    padding-right: 4rem; /* Space for the expand button */
}

/* Legacy chevron - hide if using new expand button pattern */
.esp-mobile-drawer__chevron {
    width: 16px !important;
    height: 16px !important;
    display: inline-block !important;
    margin-left: auto; /* Push to right */
    flex-shrink: 0;
    color: var(--esp-gray-400); /* Subtle gray color */
}

/* Phone link in menu - PaulB pattern */
.esp-mobile-drawer__phone-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important; /* Override space-between from parent li > a */
    gap: 0.75rem !important;
}

.esp-mobile-drawer__phone-link svg {
    width: 20px !important;
    height: 20px !important;
    flex-shrink: 0;
}

/* Slide-in submenu panel - full overlay */
.esp-mobile-drawer__submenu-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--esp-bg);
    z-index: 10;
}

/* Submenu panel links - PaulB pattern: gray text, not black or gold */
.esp-mobile-drawer__submenu-panel .esp-mobile-drawer__menu > li > a {
    color: var(--esp-gray-700) !important; /* Gray text like PaulB */
}

.esp-mobile-drawer__submenu-panel .esp-mobile-drawer__menu > li > a:hover {
    color: var(--esp-primary-dark) !important; /* Gold hover */
}

/* Back button header - PaulB pattern */
.esp-mobile-drawer__back-header {
    background-color: var(--esp-bg-container-darker, #f3f4f6); /* Gray background */
}

.esp-mobile-drawer__back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--esp-border-container-darker);
    color: var(--esp-gray-700);
    font-size: 1.125rem;
    font-weight: 400;
    cursor: pointer;
    text-align: left;
    transition: color var(--esp-transition);
}

.esp-mobile-drawer__back-btn:hover {
    color: var(--esp-primary-dark); /* ESP gold hover */
}

.esp-mobile-drawer__back-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Alpine transition utilities for panels */
.esp-mobile-drawer .transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

.esp-mobile-drawer .ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.esp-mobile-drawer .duration-200 {
    transition-duration: 200ms;
}

.esp-mobile-drawer .opacity-0 {
    opacity: 0;
}

.esp-mobile-drawer .opacity-100 {
    opacity: 1;
}

.esp-mobile-drawer .translate-x-0 {
    transform: translateX(0);
}

.esp-mobile-drawer .-translate-x-4 {
    transform: translateX(-1rem);
}

.esp-mobile-drawer .translate-x-4 {
    transform: translateX(1rem);
}

/* Mobile Drawer Footer - PaulB pattern: simple phone link as menu item */
.esp-mobile-drawer__footer {
    padding: 0; /* PaulB: no extra padding, phone is a menu item */
    border-top: none;
    background-color: transparent;
}

.esp-mobile-drawer__cta {
    display: flex;
    flex-direction: column;
    gap: 0; /* PaulB: no gap between items */
}

/* PaulB pattern: phone link styled as menu item */
.esp-mobile-drawer__cta a {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* 12px gap between icon and text */
    padding: 1rem 2rem; /* Match menu item padding */
    background-color: var(--esp-bg); /* White background */
    border: none;
    border-bottom: 1px solid var(--esp-border-container-darker);
    border-radius: 0;
    color: var(--esp-gray-700);
    text-decoration: none;
    font-size: 1.125rem; /* text-lg */
    font-weight: 400;
    transition: color var(--esp-transition);
}

.esp-mobile-drawer__cta a:last-child {
    border-bottom: none;
}

.esp-mobile-drawer__cta a:hover {
    color: var(--esp-primary-dark); /* ESP gold hover */
    background-color: transparent;
    border-color: var(--esp-border-container-darker);
}

.esp-mobile-drawer__cta svg {
    width: 20px;
    height: 20px;
    color: var(--esp-text); /* Dark icon color like PaulB */
}

/* ============================================
   Base / Reset (Tailwind Preflight style)
   ============================================ */
.esp-homepage *,
.esp-homepage *::before,
.esp-homepage *::after {
    box-sizing: border-box;
    border-width: 0;
    border-style: solid;
    border-color: var(--esp-border);
}

.esp-homepage {
    font-family: var(--esp-font-sans);
    color: var(--esp-text);
    line-height: 1.5;
    -webkit-text-size-adjust: 100%;
    -moz-tab-size: 4;
    tab-size: 4;
}

.esp-homepage img,
.esp-homepage svg,
.esp-homepage video {
    display: block;
    vertical-align: middle;
    max-width: 100%;
    height: auto;
}

.esp-homepage a {
    color: inherit;
    text-decoration: inherit;
}

.esp-homepage h1,
.esp-homepage h2,
.esp-homepage h3,
.esp-homepage h4,
.esp-homepage h5,
.esp-homepage h6 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.esp-homepage p {
    margin: 0;
}

/* ============================================
   Typography - Heading Hierarchy (H1-H6)
   Using ESP typography scale tokens
   ============================================ */

/* Base heading styles - all headings */
h1, h2, h3, h4, h5, h6,
.esp-homepage h1,
.esp-homepage h2,
.esp-homepage h3,
.esp-homepage h4,
.esp-homepage h5,
.esp-homepage h6 {
    font-family: var(--esp-font-heading);
    color: var(--esp-text);
    margin: 0;
    line-height: var(--esp-leading-tight);
}

/* H1 - Primary page headings */
h1, .esp-homepage h1, .esp-h1 {
    font-size: var(--esp-text-4xl);      /* 2.25rem / 36px */
    font-weight: var(--esp-font-bold);   /* 700 */
    letter-spacing: var(--esp-tracking-tight);
    line-height: var(--esp-leading-tight);
}

@media (min-width: 768px) {
    h1, .esp-homepage h1, .esp-h1 {
        font-size: var(--esp-text-5xl);  /* 3rem / 48px */
    }
}

@media (min-width: 1024px) {
    h1, .esp-homepage h1, .esp-h1 {
        font-size: var(--esp-text-6xl);  /* 3.75rem / 60px */
    }
}

/* H2 - Section headings */
h2, .esp-homepage h2, .esp-h2 {
    font-size: var(--esp-text-3xl);      /* 1.875rem / 30px */
    font-weight: var(--esp-font-bold);   /* 700 */
    letter-spacing: var(--esp-tracking-wide);
    line-height: var(--esp-leading-tight);
}

@media (min-width: 768px) {
    h2, .esp-homepage h2, .esp-h2 {
        font-size: var(--esp-text-4xl);  /* 2.25rem / 36px */
    }
}

/* H3 - Subsection headings */
h3, .esp-homepage h3, .esp-h3 {
    font-size: var(--esp-text-2xl);      /* 1.5rem / 24px */
    font-weight: var(--esp-font-bold);   /* 700 */
    letter-spacing: var(--esp-tracking-normal);
    line-height: var(--esp-leading-snug);
}

@media (min-width: 768px) {
    h3, .esp-homepage h3, .esp-h3 {
        font-size: var(--esp-text-3xl);  /* 1.875rem / 30px */
    }
}

/* H4 - Card/Component headings */
h4, .esp-homepage h4, .esp-h4 {
    font-size: var(--esp-text-xl);       /* 1.25rem / 20px */
    font-weight: var(--esp-font-semibold); /* 600 */
    letter-spacing: var(--esp-tracking-normal);
    line-height: var(--esp-leading-snug);
}

@media (min-width: 768px) {
    h4, .esp-homepage h4, .esp-h4 {
        font-size: var(--esp-text-2xl);  /* 1.5rem / 24px */
    }
}

/* H5 - Small headings, labels */
h5, .esp-homepage h5, .esp-h5 {
    font-size: var(--esp-text-lg);       /* 1.125rem / 18px */
    font-weight: var(--esp-font-semibold); /* 600 */
    letter-spacing: var(--esp-tracking-normal);
    line-height: var(--esp-leading-normal);
}

@media (min-width: 768px) {
    h5, .esp-homepage h5, .esp-h5 {
        font-size: var(--esp-text-xl);   /* 1.25rem / 20px */
    }
}

/* H6 - Smallest headings, captions */
h6, .esp-homepage h6, .esp-h6 {
    font-size: var(--esp-text-base);     /* 1rem / 16px */
    font-weight: var(--esp-font-medium); /* 500 */
    letter-spacing: var(--esp-tracking-wide);
    line-height: var(--esp-leading-normal);
    text-transform: uppercase;
}

/* ============================================
   Typography - Body Text Utilities
   ============================================ */

/* Body text - standard */
.esp-text-body, .esp-prose {
    font-size: var(--esp-text-base);
    font-weight: var(--esp-font-normal);
    line-height: var(--esp-leading-normal);
    color: var(--esp-text);
}

/* Body text - large (for descriptions, intros) */
.esp-text-lg {
    font-size: var(--esp-text-lg);
    line-height: var(--esp-leading-relaxed);
}

/* Small text */
.esp-text-sm {
    font-size: var(--esp-text-sm);
    line-height: var(--esp-leading-normal);
}

/* Extra small / caption text */
.esp-text-xs {
    font-size: var(--esp-text-xs);
    line-height: var(--esp-leading-normal);
}

/* Muted text (secondary content) */
.esp-text-muted {
    color: var(--esp-text-light);
}

/* Label text (form labels, small headings) */
.esp-label {
    font-size: var(--esp-text-sm);
    font-weight: var(--esp-font-medium);
    line-height: var(--esp-leading-normal);
    color: var(--esp-text);
}

/* Uppercase label (filters, categories) */
.esp-label-uppercase {
    font-size: var(--esp-text-xs);
    font-weight: var(--esp-font-semibold);
    letter-spacing: var(--esp-tracking-wider);
    text-transform: uppercase;
    color: var(--esp-text-light);
}

/* ============================================
   Container (Competitor pattern - UPDATED)
   Breakpoints: 640px, 768px, 1024px, 1280px, 1640px
   ============================================ */
.esp-container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--esp-container-padding);
    padding-right: var(--esp-container-padding);
}

@media (min-width: 640px) {
    .esp-container {
        max-width: 640px;
    }
}

@media (min-width: 768px) {
    .esp-container {
        max-width: 768px;
    }
}

@media (min-width: 1024px) {
    .esp-container {
        max-width: 1024px;
    }
}

@media (min-width: 1280px) {
    .esp-container {
        max-width: 1280px;
    }
}

/* UPDATED: 1640px breakpoint to match competitor */
@media (min-width: 1640px) {
    .esp-container {
        max-width: 1640px;
    }
}

/* Full-width container variant */
.esp-container--full {
    max-width: none !important;
    padding-left: 0;
    padding-right: 0;
}

/* ============================================
   Typography
   ============================================ */
.esp-section-title {
    font-family: var(--esp-font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--esp-space-8);
    color: var(--esp-text);
    line-height: 1.2;
    letter-spacing: 0.025em; /* Added to match competitor */
}

@media (min-width: 640px) {
    .esp-section-title {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 768px) {
    .esp-section-title {
        font-size: 2.25rem;
        margin-bottom: var(--esp-space-12);
    }
}

/* ============================================
   Buttons (Competitor pattern - UPDATED)
   Mobile: 0.5rem 1rem padding
   MD+: 1.5rem horizontal padding
   XL: returns to 1rem font-size
   ============================================ */
.esp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem; /* UPDATED: Match competitor mobile */
    font-size: 1rem;
    font-weight: 500; /* UPDATED: Match competitor (was 600) */
    line-height: 1.5rem;
    text-decoration: none;
    border-radius: var(--esp-rounded-none); /* UPDATED: No radius like competitor */
    transition: all var(--esp-transition);
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: var(--esp-shadow-md);
}

.esp-btn:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
    box-shadow: var(--esp-shadow-md), 0 0 0 4px var(--esp-primary-ring);
}

.esp-btn--primary {
    background-color: var(--esp-primary);
    color: var(--esp-text-inverse);
    border-color: var(--esp-primary);
}

.esp-btn--primary:hover {
    background-color: var(--esp-primary-dark);
    border-color: var(--esp-primary-dark);
    box-shadow: var(--esp-shadow-lg);
}

.esp-btn--secondary {
    background-color: var(--esp-bg);
    color: var(--esp-text);
    border-width: 2px;
    border-color: var(--esp-primary-light);
    box-shadow: var(--esp-shadow-md);
}

.esp-btn--secondary:hover {
    border-color: var(--esp-primary-dark);
    box-shadow: var(--esp-shadow-lg);
}

.esp-btn--outline {
    background-color: transparent;
    color: var(--esp-text-inverse);
    border-color: var(--esp-text-inverse);
    box-shadow: none;
}

.esp-btn--outline:hover {
    background-color: var(--esp-text-inverse);
    color: var(--esp-primary);
    box-shadow: var(--esp-shadow-md);
}

/* Tablet: Larger padding and font */
@media (min-width: 768px) {
    .esp-btn {
        padding: 0.5rem 1.5rem; /* UPDATED: Match competitor MD */
        font-size: 1.125rem;
        line-height: 1.75rem;
    }
}

/* XL: Return to 1rem font-size like competitor */
@media (min-width: 1280px) {
    .esp-btn {
        font-size: 1rem;
        line-height: 1.5rem;
    }
}

/* ============================================
   Hero Section (Full-width image, no overlay)
   ============================================ */
.esp-hero {
    width: 100%;
}

.esp-hero__image {
    margin: 0;
    padding: 0;
    width: 100%;
}

.esp-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============================================
   Parts Showcase (Overlapping hero pattern)
   ============================================ */
.esp-parts-showcase {
    position: relative;
    z-index: 10;
    margin-top: -4rem;
    padding-bottom: var(--esp-space-8);
    background-color: transparent;
}

@media (min-width: 768px) {
    .esp-parts-showcase {
        margin-top: -6rem;
    }
}

@media (min-width: 1024px) {
    .esp-parts-showcase {
        margin-top: -8rem;
    }
}

.esp-parts-showcase__image {
    margin: 0 auto;
    padding: 0;
    max-width: 900px;
}

.esp-parts-showcase__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Shop Now CTA button overlapping product pile */
.esp-parts-showcase__cta {
    display: flex;
    justify-content: center;
    margin-top: -22px; /* Overlap into image - mobile */
    margin-bottom: 22px; /* Compensate so tagline stays in place */
    position: relative;
    z-index: 15;
}

@media (min-width: 768px) {
    .esp-parts-showcase__cta {
        margin-top: -30px; /* More overlap on tablet */
        margin-bottom: 30px;
    }
}

@media (min-width: 1024px) {
    .esp-parts-showcase__cta {
        margin-top: -37px; /* Maximum overlap on desktop */
        margin-bottom: 37px;
    }
}

/* Gold Shop Button - Premium CTA */
.gold-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    padding: 1rem 3rem;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid #ffeebb;
    background: linear-gradient(90deg, #d4931d 0%, #fccf63 50%, #d4931d 100%);
    box-shadow:
        0 12px 24px -6px rgba(145,100,20,0.6),
        inset 0 2px 4px rgba(255,255,255,0.6),
        inset 0 -3px 5px rgba(145,100,20,0.4);
    transition: transform 0.1s ease, background 0.3s ease;
    text-decoration: none;
}

.gold-btn:hover {
    background: linear-gradient(90deg, #e3a229 0%, #fdd97e 50%, #e3a229 100%);
}

.gold-btn:active {
    transform: scale(0.95);
}

.gold-btn-text {
    position: relative;
    z-index: 10;
    color: #4a320d;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: 0.025em;
    filter: drop-shadow(0 1px 1px rgba(255,255,255,0.5));
}

@media (min-width: 768px) {
    .gold-btn {
        padding: 1.5rem 4rem;
    }
    .gold-btn-text {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .gold-btn {
        padding: 2rem 6rem;
    }
    .gold-btn-text {
        font-size: 2.5rem;
    }
}

.gold-btn-gloss {
    position: absolute;
    inset: 0;
    border-radius: 9999px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.3) 0%, transparent 40%, transparent 100%);
    opacity: 0.5;
    pointer-events: none;
}

/* Ripple Animation */
.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(0);
    pointer-events: none;
    animation: ripple-animation 600ms linear;
}

@keyframes ripple-animation {
    0% {
        transform: scale(0);
        opacity: 0.6;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.esp-parts-showcase__tagline {
    text-align: center;
    margin-top: var(--esp-space-6);
}

.esp-parts-showcase__tagline p {
    font-size: 1.25rem;
    color: #808080;
    line-height: 1.8;
    letter-spacing: 0.05em;
    margin: 0;
}

@media (min-width: 768px) {
    .esp-parts-showcase__tagline p {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }
}

@media (min-width: 1024px) {
    .esp-parts-showcase__tagline p {
        font-size: 2.25rem;
        line-height: 2.75rem;
    }
}

/* ============================================
   Category Grid
   ============================================ */
.esp-categories {
    padding: var(--esp-space-12) 0;
    background-color: var(--esp-bg);
}

@media (min-width: 768px) {
    .esp-categories {
        padding: var(--esp-space-16) 0;
    }
}

.esp-categories__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--esp-space-4);
}

@media (min-width: 640px) {
    .esp-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--esp-space-6);
    }
}

@media (min-width: 1024px) {
    .esp-categories__grid {
        grid-template-columns: repeat(6, 1fr);
        gap: var(--esp-space-6);
    }
}

.esp-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--esp-space-6);
    background-color: var(--esp-bg-alt);
    border-radius: var(--esp-rounded-lg);
    text-decoration: none;
    color: var(--esp-text);
    transition: all var(--esp-transition);
    border: none;
}

.esp-category-card:hover {
    box-shadow: var(--esp-shadow-lg);
    background-color: var(--esp-bg);
}

.esp-category-card:focus {
    outline: none;
    box-shadow: var(--esp-shadow-lg), 0 0 0 4px var(--esp-primary-ring);
}

.esp-category-card__image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--esp-rounded-lg);
    margin-bottom: var(--esp-space-4);
    transition: transform var(--esp-transition);
}

.esp-category-card:hover .esp-category-card__image {
    transform: scale(1.05);
}

.esp-category-card__title {
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    margin: 0;
    line-height: 1.25;
}

@media (min-width: 768px) {
    .esp-category-card__title {
        font-size: 1rem;
    }
}

.esp-category-card__count {
    font-size: 0.75rem;
    color: var(--esp-text-light);
    margin-top: var(--esp-space-1);
}

@media (min-width: 768px) {
    .esp-category-card__count {
        font-size: 0.8125rem;
    }
}

/* ============================================
   Value Props
   ============================================ */
.esp-value-props {
    padding: var(--esp-space-12) 0;
    background-color: var(--esp-bg-alt);
}

@media (min-width: 768px) {
    .esp-value-props {
        padding: var(--esp-space-16) 0;
    }
}

.esp-value-props__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--esp-space-8);
}

@media (min-width: 768px) {
    .esp-value-props__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--esp-space-10);
    }
}

.esp-value-prop {
    text-align: center;
    padding: var(--esp-space-4);
}

.esp-value-prop__icon {
    display: flex;
    justify-content: center;
    margin-bottom: var(--esp-space-4);
    color: var(--esp-primary);
}

.esp-value-prop__icon svg {
    width: 48px;
    height: 48px;
}

@media (min-width: 768px) {
    .esp-value-prop__icon svg {
        width: 56px;
        height: 56px;
    }
}

.esp-value-prop__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 var(--esp-space-2);
    color: var(--esp-text);
}

@media (min-width: 768px) {
    .esp-value-prop__title {
        font-size: 1.25rem;
    }
}

.esp-value-prop__desc {
    font-size: 0.9375rem;
    color: var(--esp-text-light);
    margin: 0;
    line-height: 1.6;
}

/* ============================================
   Shop CTA Section (Two-column catalog layout)
   ============================================ */
.esp-shop-cta {
    padding: var(--esp-space-12) 0;
    background-color: #e4e4e4;
}

@media (min-width: 768px) {
    .esp-shop-cta {
        padding: var(--esp-space-16) 0;
    }
}

.esp-shop-cta__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--esp-space-8);
    align-items: center;
}

@media (min-width: 768px) {
    .esp-shop-cta__grid {
        grid-template-columns: 1fr 1.5fr;
        gap: var(--esp-space-12);
    }
}

@media (min-width: 1024px) {
    .esp-shop-cta__grid {
        gap: var(--esp-space-16);
    }
}

.esp-shop-cta__image {
    display: flex;
    justify-content: center;
}

.esp-shop-cta__image img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: 400px;
    transition: transform var(--esp-transition);
}

@media (min-width: 768px) {
    .esp-shop-cta__image img {
        max-height: 450px;
    }
}

@media (min-width: 1024px) {
    .esp-shop-cta__image img {
        max-height: 500px;
    }
}

.esp-shop-cta__image img:hover {
    transform: scale(1.02);
}

.esp-shop-cta__content {
    text-align: center;
}

@media (min-width: 768px) {
    .esp-shop-cta__content {
        text-align: left;
    }
}

.esp-shop-cta__title {
    font-family: var(--esp-font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--esp-text);
    margin: 0 0 var(--esp-space-6);
    line-height: 1.2;
    letter-spacing: 0.025em;
}

@media (min-width: 768px) {
    .esp-shop-cta__title {
        font-size: 2rem;
    }
}

@media (min-width: 1024px) {
    .esp-shop-cta__title {
        font-size: 2.25rem;
    }
}

.esp-shop-cta__desc {
    font-size: 1rem;
    color: var(--esp-text-light);
    line-height: 1.7;
    margin: 0 0 var(--esp-space-4);
}

@media (min-width: 768px) {
    .esp-shop-cta__desc {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .esp-shop-cta__desc {
        font-size: 1.25rem;
        line-height: 1.8;
    }
}

.esp-shop-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: var(--esp-space-3);
    margin-top: var(--esp-space-6);
}

@media (min-width: 480px) {
    .esp-shop-cta__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .esp-shop-cta__buttons {
        justify-content: flex-start;
    }
}

/* Outline button variant for dark text */
.esp-btn--outline-dark {
    background-color: transparent;
    color: var(--esp-text);
    border-color: var(--esp-text);
    box-shadow: none;
}

.esp-btn--outline-dark:hover {
    background-color: var(--esp-text);
    color: var(--esp-text-inverse);
    box-shadow: var(--esp-shadow-md);
}

/* ============================================
   Brands Section - Infinite Scroll Carousel
   ============================================ */
.esp-brands {
    padding: var(--esp-space-12) 0;
    background-color: var(--esp-bg);
    overflow: hidden;
}

@media (min-width: 768px) {
    .esp-brands {
        padding: var(--esp-space-16) 0;
    }
}

.esp-brands__carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-top: var(--esp-space-8);
}

/* Fade edges for seamless look */
.esp-brands__carousel::before,
.esp-brands__carousel::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.esp-brands__carousel::before {
    left: 0;
    background: linear-gradient(to right, var(--esp-bg), transparent);
}

.esp-brands__carousel::after {
    right: 0;
    background: linear-gradient(to left, var(--esp-bg), transparent);
}

.esp-brands__track {
    display: flex;
    align-items: center;
    gap: var(--esp-space-10);
    width: max-content;
    animation: esp-scroll 40s linear infinite;
}

.esp-brands__track:hover {
    animation-play-state: paused;
}

@keyframes esp-scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.esp-brands__track img {
    height: 40px;
    width: auto;
    max-width: 120px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all var(--esp-transition);
}

.esp-brands__track img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (min-width: 768px) {
    .esp-brands__track img {
        height: 50px;
        max-width: 150px;
    }

    .esp-brands__track {
        gap: var(--esp-space-12);
    }
}

@media (min-width: 1024px) {
    .esp-brands__track img {
        height: 60px;
        max-width: 180px;
    }

    .esp-brands__track {
        gap: var(--esp-space-16);
    }
}

/* ============================================
   Footer CTA Bar (matches header top bar)
   ============================================ */
.esp-footer-cta {
    background-color: var(--esp-primary) !important;
    color: var(--esp-text-inverse) !important;
    padding: var(--esp-space-3) 0;
}

.esp-footer-cta__inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--esp-space-2);
}

@media (min-width: 768px) {
    .esp-footer-cta__inner {
        justify-content: flex-end;
    }
}

.esp-footer-cta__link {
    color: var(--esp-text-inverse);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    padding: var(--esp-space-2);
    transition: text-decoration var(--esp-transition);
}

.esp-footer-cta__link:hover {
    text-decoration: underline;
}

@media (min-width: 768px) {
    .esp-footer-cta__link {
        font-size: 1.125rem;
    }
}

@media (min-width: 1024px) {
    .esp-footer-cta__link {
        font-size: 1.25rem;
    }
}

.esp-footer-cta__divider {
    color: var(--esp-text-inverse);
    opacity: 0.6;
}

/* ============================================
   Footer
   ============================================ */
.esp-footer {
    background-color: var(--esp-bg-darker) !important;
    padding: var(--esp-space-12) 0 0;
}

.esp-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--esp-space-8);
}

@media (min-width: 640px) {
    .esp-footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .esp-footer__grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: var(--esp-space-12);
    }
}

.esp-footer__logo-col {
    display: flex;
    align-items: flex-start;
}

.esp-footer__logo img {
    max-width: 200px;
    height: auto;
}

@media (min-width: 1024px) {
    .esp-footer__logo img {
        max-width: 250px;
    }
}

.esp-footer__links-col {
    display: flex;
    flex-direction: column;
}

.esp-footer__heading {
    font-family: var(--esp-font-heading);
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--esp-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 var(--esp-space-4);
}

.esp-footer__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esp-footer__list li {
    margin-bottom: var(--esp-space-2);
}

.esp-footer__list a {
    color: var(--esp-text-light);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--esp-transition);
}

.esp-footer__list a:hover {
    color: var(--esp-primary);
}

.esp-footer__contact li {
    color: var(--esp-text-light);
    font-size: 0.875rem;
}

/* Footer Copyright Bar */
.esp-footer__copyright {
    background-color: var(--esp-bg-dark);
    padding: var(--esp-space-4) 0;
    margin-top: var(--esp-space-12);
}

.esp-footer__copyright p {
    color: var(--esp-text-inverse);
    font-size: 0.75rem;
    text-align: center;
    margin: 0;
    opacity: 0.8;
}

.esp-footer__copyright a {
    color: var(--esp-text-inverse);
    text-decoration: none;
    transition: opacity 0.15s;
}

.esp-footer__copyright a:hover {
    text-decoration: underline;
    opacity: 1;
}

@media (min-width: 768px) {
    .esp-footer__copyright p {
        text-align: left;
    }
}

/* ============================================
   Footer Dark Variant (PaulB pattern)
   ============================================ */
.esp-footer--dark {
    background-color: var(--esp-bg-dark); /* #363636 */
}

.esp-footer--dark .esp-footer__heading {
    color: var(--esp-text-inverse);
}

.esp-footer--dark .esp-footer__list a {
    color: rgba(255, 255, 255, 0.7);
}

.esp-footer--dark .esp-footer__list a:hover {
    color: var(--esp-text-inverse);
}

.esp-footer--dark .esp-footer__contact li {
    color: rgba(255, 255, 255, 0.7);
}

.esp-footer--dark .esp-footer__copyright {
    background-color: rgba(0, 0, 0, 0.3);
}

/* ============================================
   Shop Categories Dropdown Navigation
   ============================================ */
.esp-nav__dropdown {
    position: relative;
}

.esp-nav__dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
}

.esp-nav__caret {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.esp-nav__dropdown:hover .esp-nav__caret {
    transform: rotate(180deg);
}

.esp-nav__dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 100;
    min-width: 800px;
    background: white;
    border: 1px solid var(--esp-border);
    border-radius: 0.5rem;
    box-shadow: var(--esp-shadow-lg);
    padding: 1.25rem;
    margin-top: 0;
}

/* Invisible buffer zone to prevent accidental close */
.esp-nav__dropdown-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    z-index: -1;
}

.esp-nav__dropdown-inner {
    display: flex;
    gap: 2rem;
}

/* Categories column - single column on left, full height, no scroll */
.esp-nav__dropdown-categories {
    flex: 0 0 auto;
    min-width: 280px;
    overflow: visible !important;
    max-height: none !important;
}

.esp-nav__dropdown-col {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.esp-nav__dropdown-col li {
    margin: 0;
    padding: 0;
    white-space: nowrap;
}

.esp-nav__dropdown-col a {
    display: block;
    padding: 0.375rem 0.5rem;
    color: var(--esp-text) !important;
    text-decoration: none !important;
    font-family: var(--esp-font-sans) !important;
    font-size: 0.9375rem;
    border-radius: 0.25rem;
    transition: background-color 0.15s ease, color 0.15s ease;
    white-space: nowrap;
}

.esp-nav__dropdown-col a:hover {
    background-color: var(--esp-primary-light);
    color: var(--esp-primary-dark);
}

/* Promo images column - stacked on right */
.esp-nav__dropdown-promos {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.esp-nav__dropdown-promo {
    display: block;
    border-radius: 0.375rem;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esp-nav__dropdown-promo:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.esp-nav__dropdown-promo img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Simple dropdown variant (for About, etc.) */
.esp-nav__dropdown-menu--simple {
    min-width: auto;
    width: auto;
    padding: 0.5rem 0;
}

.esp-nav__dropdown-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.esp-nav__dropdown-list li {
    margin: 0;
    padding: 0;
}

.esp-nav__dropdown-list a {
    display: block;
    padding: 0.625rem 1.25rem;
    color: var(--esp-text) !important;
    text-decoration: none !important;
    font-family: var(--esp-font-sans) !important;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.esp-nav__dropdown-list a:hover {
    background-color: var(--esp-primary-light);
    color: var(--esp-primary-dark);
}

/* Responsive adjustments for dropdown */
@media (max-width: 1023px) {
    .esp-nav__dropdown-menu {
        min-width: 100%;
        left: 0;
        transform: none;
        border-radius: 0;
    }

    .esp-nav__dropdown-menu--simple {
        min-width: auto;
        width: auto;
    }

    .esp-nav__dropdown-inner {
        flex-direction: column;
        gap: 1rem;
    }

    .esp-nav__dropdown-categories {
        flex: none;
    }

    .esp-nav__dropdown-promos {
        flex-direction: row;
        gap: 0.5rem;
    }

    .esp-nav__dropdown-promo {
        flex: 1;
    }
}

/* ============================================
   Form Inputs (aligned with competitor)
   ============================================ */
.esp-input,
.form-input,
.form-email,
.form-textarea,
.form-select {
    border-width: 1px;
    border-color: var(--esp-border-input);
    border-radius: var(--esp-rounded-none); /* UPDATED: No radius like competitor */
    background-color: var(--esp-bg);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5rem;
    box-shadow: var(--esp-shadow-sm);
    transition: border-color var(--esp-transition), box-shadow var(--esp-transition);
}

.esp-input:focus,
.form-input:focus,
.form-email:focus,
.form-textarea:focus,
.form-select:focus {
    border-color: var(--esp-primary-light);
    outline: none;
    box-shadow: 0 0 0 3px var(--esp-primary-ring);
}

/* Checkbox and radio - use primary color */
input[type="checkbox"],
input[type="radio"] {
    color: var(--esp-primary);
}

input[type="checkbox"]:focus,
input[type="radio"]:focus {
    --tw-ring-color: var(--esp-primary);
}

/* ============================================
   Card Component (aligned with competitor)
   ============================================ */
.esp-card {
    border-radius: var(--esp-rounded-sm); /* 0.125rem like competitor */
    background-color: var(--esp-bg);
    box-shadow: var(--esp-shadow);
}

@media (min-width: 1024px) {
    .esp-card {
        padding: 1rem;
    }
}

.esp-card--interactive:hover {
    background-color: var(--esp-gray-50);
}

/* ============================================
   Message/Alert Component (aligned with competitor)
   ============================================ */
.esp-message {
    margin-bottom: 0.5rem;
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border-radius: 0.25rem;
    padding: 0.5rem;
    color: var(--esp-text-inverse);
    box-shadow: var(--esp-shadow);
}

.esp-message--error {
    background-color: var(--esp-error);
}

.esp-message--success {
    background-color: var(--esp-success);
}

.esp-message--warning,
.esp-message--info {
    background-color: var(--esp-warning);
}

.esp-message a {
    text-decoration: underline;
}

/* ============================================
   Utility Classes
   ============================================ */

/* Screen reader only (matches Tailwind sr-only) */
.sr-only,
.esp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Pointer events */
.pointer-events-none {
    pointer-events: none;
}

/* Visibility */
.visible {
    visibility: visible;
}

.invisible {
    visibility: hidden;
}

/* Responsive visibility */
@media (max-width: 639px) {
    .esp-hide-mobile {
        display: none !important;
    }
}

@media (min-width: 640px) and (max-width: 767px) {
    .esp-hide-sm {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .esp-hide-md {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .esp-hide-desktop {
        display: none !important;
    }
}

/* Focus visible (accessibility) */
.esp-homepage *:focus-visible {
    outline: 2px solid var(--esp-primary);
    outline-offset: 2px;
}

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
    .esp-homepage {
        scroll-behavior: smooth;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .esp-homepage *,
    .esp-homepage *::before,
    .esp-homepage *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Responsive Order Utilities (PaulB/Tailwind pattern)
   ============================================ */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-first { order: -9999; }
.order-last { order: 9999; }
.order-none { order: 0; }

@media (min-width: 640px) {
    .sm\:order-1 { order: 1; }
    .sm\:order-2 { order: 2; }
    .sm\:order-3 { order: 3; }
    .sm\:order-first { order: -9999; }
    .sm\:order-last { order: 9999; }
}

@media (min-width: 768px) {
    .md\:order-1 { order: 1; }
    .md\:order-2 { order: 2; }
    .md\:order-3 { order: 3; }
    .md\:order-first { order: -9999; }
    .md\:order-last { order: 9999; }
}

@media (min-width: 1024px) {
    .lg\:order-1 { order: 1; }
    .lg\:order-2 { order: 2; }
    .lg\:order-3 { order: 3; }
    .lg\:order-first { order: -9999; }
    .lg\:order-last { order: 9999; }
}

/* ============================================
   Flex Utilities (PaulB/Tailwind pattern)
   ============================================ */
.grow { flex-grow: 1; }
.grow-0 { flex-grow: 0; }
.shrink { flex-shrink: 1; }
.shrink-0 { flex-shrink: 0; }

/* ============================================
   Gap Utilities (PaulB/Tailwind pattern)
   ============================================ */
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-8 { gap: 2rem; }

@media (min-width: 768px) {
    .md\:gap-8 { gap: 2rem; }
}

/* ============================================
   Negative Margin Utilities (PaulB pattern)
   ============================================ */
.mb-\[-54px\] { margin-bottom: -54px; }

@media (min-width: 640px) {
    .sm\:mb-0 { margin-bottom: 0; }
}

/* ============================================
   Print Utilities (PaulB/Tailwind pattern)
   ============================================ */
@media print {
    .print\:hidden {
        display: none !important;
    }

    .print\:flex {
        display: flex !important;
    }

    .print\:block {
        display: block !important;
    }
}

/* Print styles */
@media print {
    .esp-container {
        max-width: 100% !important;
    }

    * {
        box-shadow: none !important;
        text-shadow: none !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }

    h2, h3, h4, h5, h6, p {
        orphans: 3;
        widows: 3;
    }

    tr, img, svg, pre, blockquote {
        page-break-inside: avoid;
    }

    /* PaulB: Hide header nav, search, actions on print */
    .esp-nav,
    .esp-search,
    .esp-logobar__actions,
    .esp-mobile-nav-toggle,
    .esp-mobile-drawer {
        display: none !important;
    }
}

/* ============================================
   Rentals Page
   ============================================ */

/* Remove top padding from main so hero touches header */
.esp-rentals-body .esp-main {
    padding-top: 0 !important;
}

/* Hero */
.esp-rentals-hero {
    position: relative;
    background-color: var(--esp-bg-dark);
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
    text-align: left;
    overflow: hidden;
    min-height: 272px;
    display: flex;
    align-items: center;
}

.esp-rentals-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.45) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.esp-rentals-hero__content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
}

.esp-rentals-hero__content > * {
    grid-column: 1;
}

.esp-rentals-hero__title {
    font-size: var(--esp-text-4xl);
    font-weight: 700;
    color: var(--esp-text-inverse);
    margin: 0 0 0.5rem;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.esp-rentals-hero__subtitle {
    font-size: var(--esp-text-lg);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
    max-width: 500px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.esp-rentals-hero__cta {
    display: flex;
    justify-content: flex-start;
}

.esp-rentals-hero__btn {
    gap: 0.5rem;
    font-size: var(--esp-text-lg);
    border-radius: 6px;
}

@media (min-width: 768px) {
    .esp-rentals-hero {
        padding: 4.25rem 0;
        min-height: 340px;
    }

    .esp-rentals-hero__content {
        grid-template-columns: 1fr 1fr;
    }

    .esp-rentals-hero__title {
        font-size: var(--esp-text-5xl);
    }
}

@media (min-width: 1024px) {
    .esp-rentals-hero {
        padding: 5rem 0;
        min-height: 383px;
    }
}

/* Section headings */
.esp-rentals-section {
    padding: 2.5rem 0;
}

.esp-rentals-section__heading {
    font-size: var(--esp-text-2xl);
    font-weight: 700;
    color: var(--esp-text);
    margin: 0 0 1.25rem;
    text-align: center;
}

@media (min-width: 768px) {
    .esp-rentals-section {
        padding: 3.5rem 0;
    }
}

/* How It Works */
.esp-howitworks-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1100px;
    margin: 0 auto 2.5rem;
}

.esp-howitworks-step {
    text-align: center;
}

.esp-howitworks-step__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #374151;
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.esp-howitworks-step__title {
    font-size: var(--esp-text-sm);
    font-weight: 700;
    color: var(--esp-text);
    margin: 0 0 0.25rem;
}

.esp-howitworks-step__text {
    font-size: var(--esp-text-sm);
    color: #374151;
    margin: 0;
    line-height: 1.5;
}

@media (min-width: 768px) {
    .esp-howitworks-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Equipment Cards Grid */
.esp-rentals-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .esp-rentals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Individual Equipment Card */
.esp-rental-card {
    background: var(--esp-bg);
    border: 1px solid var(--esp-bg-container-darker);
    box-shadow: var(--esp-shadow-md);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.esp-rental-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.esp-rental-card__image {
    aspect-ratio: 4 / 3;
    background: linear-gradient(180deg, #f8f8f8 0%, #efefef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 1rem;
}

.esp-rental-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.esp-rental-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--esp-text-lighter);
}

.esp-rental-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.esp-rental-card__title {
    font-size: var(--esp-text-xl);
    font-weight: 700;
    color: var(--esp-text);
    margin: 0 0 0.75rem;
}

.esp-rental-card__badge {
    display: inline-block;
    background: var(--esp-primary);
    color: var(--esp-text-inverse);
    font-size: var(--esp-text-sm);
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    align-self: flex-start;
}

.esp-rental-card__specs {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.esp-rental-card__specs li {
    font-size: var(--esp-text-sm);
    color: var(--esp-text-muted);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.esp-rental-card__specs li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65rem;
    width: 6px;
    height: 6px;
    background: var(--esp-primary);
    border-radius: 50%;
}

/* Rate Table */
.esp-rental-card__rates {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    background: var(--esp-bg-alt);
    border: 1px solid var(--esp-bg-container-darker);
    border-radius: 6px;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.esp-rental-card__rate {
    text-align: center;
    padding: 0.75rem 0.5rem;
}

.esp-rental-card__rate:not(:last-child) {
    border-right: 1px solid var(--esp-bg-container-darker);
}

.esp-rental-card__rate-label {
    display: block;
    font-size: var(--esp-text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--esp-text-light);
    margin-bottom: 0.25rem;
}

.esp-rental-card__rate-value {
    display: block;
    font-size: var(--esp-text-lg);
    font-weight: 700;
    color: var(--esp-primary);
}

/* Card CTA */
.esp-rental-card__cta {
    margin-top: auto;
}

.esp-rental-card__btn {
    width: 100%;
    gap: 0.5rem;
    border-radius: 6px;
}

/* CTA Banner */
.esp-rentals-cta {
    position: relative;
    background-color: var(--esp-bg-dark);
    background-size: cover;
    background-position: center;
    padding: 3rem 0;
    text-align: center;
}

.esp-rentals-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    z-index: 1;
}

.esp-rentals-cta__inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.esp-rentals-cta__title {
    font-size: var(--esp-text-2xl);
    font-weight: 700;
    color: var(--esp-text-inverse);
    margin: 0 0 0.75rem;
}

.esp-rentals-cta__text {
    font-size: var(--esp-text-base);
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 1.5rem;
    line-height: 1.6;
}

.esp-rentals-cta__buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.esp-rentals-cta .esp-btn--primary {
    background: var(--esp-bg-dark);
    color: var(--esp-text-inverse);
    border-radius: 6px;
}

.esp-rentals-cta .esp-btn--primary:hover {
    background: #333;
}

.esp-rentals-cta .esp-btn--outline {
    border-color: var(--esp-text-inverse);
    color: var(--esp-text-inverse);
    border-radius: 6px;
}

.esp-rentals-cta .esp-btn--outline:hover {
    background: rgba(255, 255, 255, 0.15);
}

@media (min-width: 768px) {
    .esp-rentals-cta__title {
        font-size: var(--esp-text-3xl);
    }

    .esp-rentals-cta__buttons {
        flex-direction: row;
        justify-content: center;
    }
}

/* FAQ Section */
.esp-rentals-faq {
    background: var(--esp-bg-alt);
}

.esp-faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.esp-faq-item {
    background: var(--esp-bg);
    border: 1px solid var(--esp-bg-container-darker);
    border-radius: 6px;
    margin-bottom: 0.5rem;
}

.esp-faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--esp-font-sans);
    font-size: var(--esp-text-base);
    font-weight: 600;
    color: var(--esp-text);
    gap: 1rem;
    transition: background var(--esp-transition);
}

.esp-faq-item__question:hover {
    background: var(--esp-bg-alt);
}

.esp-faq-item__chevron {
    flex-shrink: 0;
    color: var(--esp-text-light);
    transition: transform 0.2s ease;
}

.esp-faq-item__chevron.is-open {
    transform: rotate(180deg);
}

.esp-faq-item__answer {
    padding: 0 1.25rem 1rem;
    overflow: hidden;
}

.esp-faq-item__answer p {
    margin: 0;
    font-size: var(--esp-text-sm);
    color: #374151;
    line-height: 1.6;
}

/* Trust Signals */
.esp-rentals-trust {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--esp-bg-container-darker);
}

.esp-rentals-trust__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.esp-trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.esp-trust-item svg {
    color: var(--esp-primary);
    margin-bottom: 0.25rem;
}

.esp-trust-item h3 {
    font-size: var(--esp-text-base);
    font-weight: 700;
    color: var(--esp-text);
    margin: 0;
}

.esp-trust-item p {
    font-size: var(--esp-text-sm);
    color: var(--esp-text-light);
    margin: 0;
    max-width: 220px;
}

@media (min-width: 768px) {
    .esp-rentals-trust__grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .esp-rentals-trust {
        padding: 4rem 0;
    }
}
