/**
 * Innomotics Motor Catalog — Consolidated Responsive Stylesheet
 * Mobile-first approach: base styles for 320px+, then tablet/desktop overrides
 * Breakpoints: 480px (small mobile), 768px (tablet), 1024px (desktop)
 *
 * This file provides:
 * 1. All missing class definitions for BEM components used across the site
 * 2. Comprehensive responsive overrides for all pages
 * 3. Touch-friendly sizing and spacing for mobile
 * 4. Overflow prevention and layout fixes
 */

/* ═══════════════════════════════════════════════════════════
   0. GLOBAL RESPONSIVE FOUNDATION
   ═══════════════════════════════════════════════════════════ */

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
    min-height: 100vh;
    min-height: 100dvh;
}

img, video, svg {
    max-width: 100%;
    height: auto;
}

/* Container responsive padding — base definition is in header.php critical CSS */
@media (max-width: 480px) {
    .container { padding: 0 12px; }
}

/* Touch target minimum 44px — only on touch devices */
@media (hover: none) and (pointer: coarse) {
    a, button, select {
        min-height: 44px;
    }
}

input[type="checkbox"], input[type="radio"] {
    min-height: 20px;
    min-width: 20px;
}


/* ═══════════════════════════════════════════════════════════
   1. NAVIGATION — nav-modern
   ═══════════════════════════════════════════════════════════ */

.nav-modern__spacer {
    display: none;
}

.nav-modern--scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}

.nav-modern--scrolled .nav-modern__inner {
    height: 60px;
}

.nav-modern__menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-modern__link {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
}

.nav-modern__link:hover,
.nav-modern__link--active {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.nav-modern__link--cta {
    background: #00C896;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
}

.nav-modern__link--cta:hover {
    background: #00A67D;
    color: #fff;
}

.nav-modern__link-line {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #00C896;
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-modern__link:hover .nav-modern__link-line {
    width: 80%;
}

.nav-modern__chevron {
    transition: transform 0.3s;
    color: rgba(255,255,255,0.5);
}

.nav-modern__link--active .nav-modern__chevron {
    transform: rotate(180deg);
}

.nav-modern__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-modern__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: none;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-decoration: none;
}

.nav-modern__action-btn:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

.nav-modern__badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #ff4757;
    color: white;
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(255,71,87,0.4);
}

@keyframes badgePop {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Hamburger */
.nav-modern__hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: background 0.2s;
}

.nav-modern__hamburger:hover {
    background: rgba(255,255,255,0.08);
}

.nav-modern__hamburger-line {
    width: 20px;
    height: 2px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-modern__hamburger.active .nav-modern__hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-modern__hamburger.active .nav-modern__hamburger-line:nth-child(2) {
    opacity: 0;
}

.nav-modern__hamburger.active .nav-modern__hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mega Menu */
.nav-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(26,26,46,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4,0,0.2,1), padding 0.3s;
    z-index: 999;
}

.nav-mega.active {
    max-height: 600px;
    padding: 30px 0;
}

.nav-mega__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.nav-mega__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.nav-mega__card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.2s;
    border: 1px solid transparent;
}

.nav-mega__card:hover {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.08);
}

.nav-mega__card-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,200,150,0.1);
    border-radius: 10px;
    color: #00C896;
}

.nav-mega__card-content h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.nav-mega__card-content p {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

.nav-mega__card-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: rgba(255,255,255,0.3);
    transition: transform 0.2s, color 0.2s;
}

.nav-mega__card:hover .nav-mega__card-arrow {
    transform: translateX(4px);
    color: #00C896;
}

.nav-mega__footer {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
}

.nav-mega__footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00C896;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    transition: gap 0.2s;
}

.nav-mega__footer-link:hover {
    gap: 12px;
}

/* Search Overlay */
.nav-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26,26,46,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10001;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.nav-search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.nav-search-overlay__inner {
    width: 90%;
    max-width: 600px;
    position: relative;
}

.nav-search-overlay__input {
    width: 100%;
    padding: 18px 60px 18px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
}

.nav-search-overlay__input:focus {
    border-color: #00C896;
}

.nav-search-overlay__input::placeholder {
    color: rgba(255,255,255,0.4);
}

.nav-search-overlay__close {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 8px;
}

.nav-search-overlay__results {
    margin-top: 12px;
    background: #fff;
    border-radius: 12px;
    max-height: 400px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.nav-search-overlay__result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    text-decoration: none;
    color: #1A1A2E;
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.2s;
}

.nav-search-overlay__result:hover {
    background: #F8F9FA;
}

.nav-search-overlay__result:last-child {
    border-bottom: none;
}

.nav-search-overlay__result-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.nav-search-overlay__result-info strong {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1A2E;
}

.nav-search-overlay__result-info span {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
}

.nav-search-overlay__noresult {
    padding: 20px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    color: #999;
    font-size: 14px;
}

/* Mobile Drawer */
.nav-drawer {
    position: fixed;
    top: 72px;
    right: -100%;
    width: 85%;
    max-width: 360px;
    height: calc(100vh - 72px);
    height: calc(100dvh - 72px);
    background: #1A1A2E;
    z-index: 9999;
    overflow-y: auto;
    transition: right 0.35s cubic-bezier(0.4,0,0.2,1);
    border-left: 1px solid rgba(255,255,255,0.08);
    -webkit-overflow-scrolling: touch;
}

.nav-drawer.active {
    right: 0;
}

.nav-drawer__content {
    padding: 24px;
}

.nav-drawer__link {
    display: block;
    padding: 14px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: color 0.2s;
}

.nav-drawer__link:hover {
    color: #00C896;
}

.nav-drawer__link--sub {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.6);
    padding: 10px 0 10px 16px;
}

.nav-drawer__divider {
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 12px 0;
}

.nav-drawer__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 12px 0 8px;
}

.nav-drawer__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    background: #00C896;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    border-radius: 8px;
    text-decoration: none;
    margin-top: 16px;
    transition: background 0.2s;
}

.nav-drawer__cta:hover {
    background: #00A67D;
}

/* Mobile nav adjustments */
@media (max-width: 768px) {
    .nav-modern__menu {
        display: none;
    }

    .nav-modern__hamburger {
        display: flex;
    }

    .nav-modern__inner {
        padding: 0 16px;
        height: 64px;
    }

    .nav-modern__spacer {
        height: 64px;
    }

    .nav-drawer {
        top: 64px;
        height: calc(100vh - 64px);
        height: calc(100dvh - 64px);
    }

    .nav-mega__grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   2. HOMEPAGE — hp-* classes
   ═══════════════════════════════════════════════════════════ */

/* Hero */
.hp-hero {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 50%, #0F3460 100%);
    padding: 48px 0;
    padding-top: 120px;
    margin-top: -72px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(0,200,150,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hp-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(28px, 6vw, 52px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.1;
}

.hp-hero__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(14px, 2.5vw, 18px);
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    line-height: 1.5;
}

.hp-hero__search {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
}

.hp-hero__search-row {
    display: flex;
    gap: 8px;
}

.hp-hero__search-input {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    background: rgba(255,255,255,0.08);
    color: #fff;
    outline: none;
    transition: border-color 0.3s;
    min-width: 0;
}

.hp-hero__search-input:focus {
    border-color: #00C896;
}

.hp-hero__search-input::placeholder {
    color: rgba(255,255,255,0.4);
}

.hp-hero__search-btn {
    padding: 14px 28px;
    background: #00C896;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.hp-hero__search-btn:hover {
    background: #00A67D;
}

.hp-hero__search-results {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    max-height: 350px;
    overflow-y: auto;
    z-index: 100;
}

.hp-hero__search-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #F0F0F0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #333;
    transition: background 0.2s;
}

.hp-hero__search-item:hover {
    background: #F8F9FA;
}

/* Trust Strip */
.hp-trust {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid #E0E0E0;
}

.hp-trust__grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hp-trust__item {
    text-align: center;
    min-width: 120px;
}

.hp-trust__value {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #00C896;
}

.hp-trust__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #666;
    margin-top: 4px;
}

/* Section Titles */
.hp-section-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #1A1A2E;
    text-align: center;
    margin-bottom: 40px;
}

/* Categories */
.hp-categories {
    padding: 60px 0;
    background: #F8F9FA;
}

.hp-categories__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Category Cards */
.hp-cat-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.hp-cat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: #00C896;
}

.hp-cat-card__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 8px;
}

.hp-cat-card__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 16px;
    flex: 1;
}

.hp-cat-card__footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #F0F0F0;
}

.hp-cat-card__count {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
    font-weight: 600;
}

.hp-cat-card__arrow {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #00C896;
    font-weight: 600;
    transition: transform 0.2s;
}

.hp-cat-card:hover .hp-cat-card__arrow {
    transform: translateX(4px);
}

/* Featured Products */
.hp-featured {
    padding: 60px 0;
    background: #fff;
}

.hp-featured__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
}

/* Product Cards */
.hp-prod-card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.hp-prod-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.hp-prod-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.hp-prod-card__image {
    background: #F8F9FA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    height: 200px;
    overflow: hidden;
}

.hp-prod-card__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.hp-prod-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.hp-prod-card__placeholder img {
    max-width: 60%;
    opacity: 0.5;
}

.hp-prod-card__body {
    padding: 16px;
    flex: 1;
}

.hp-prod-card__sku {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    color: #00C896;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.hp-prod-card__name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hp-prod-card__desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.hp-prod-card__action {
    padding: 0 16px 16px;
}

.hp-prod-card__btn {
    width: 100%;
}

/* CTA Bottom */
.hp-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, #1A1A2E, #16213E);
    text-align: center;
}

.hp-cta__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    color: #fff;
    margin-bottom: 16px;
}

.hp-cta__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: rgba(255,255,255,0.7);
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.hp-cta__btn {
    display: inline-block;
    padding: 16px 40px;
    background: #00C896;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s, transform 0.2s;
}

.hp-cta__btn:hover {
    background: #00A67D;
    transform: translateY(-2px);
}

/* Homepage Mobile */
@media (max-width: 768px) {
    .hp-hero {
        padding: 32px 0;
    }

    .hp-hero__search-row {
        flex-direction: column;
    }

    .hp-hero__search-btn {
        width: 100%;
        padding: 14px;
    }

    .hp-trust__grid {
        gap: 20px;
    }

    .hp-trust__item {
        min-width: 80px;
    }

    .hp-categories {
        padding: 40px 0;
    }

    .hp-categories__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hp-featured {
        padding: 40px 0;
    }

    .hp-featured__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .hp-section-title {
        margin-bottom: 24px;
    }

    .hp-cta {
        padding: 40px 0;
    }
}

@media (max-width: 480px) {
    .hp-featured__grid {
        grid-template-columns: 1fr;
    }

    .hp-prod-card__image {
        height: 160px;
    }
}


/* ═══════════════════════════════════════════════════════════
   3. PRODUCT PAGE — product-hero, product-tabs
   ═══════════════════════════════════════════════════════════ */

.product-hero {
    padding: 40px 0;
    background: #fff;
}

.product-hero__grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 48px;
    align-items: flex-start;
}

.product-hero__image-col {
    position: sticky;
    top: 90px;
}

.product-hero__image-wrap {
    background: #F8F9FA;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    min-height: 300px;
    border: 1px solid #E0E0E0;
}

.product-hero__details {
    min-width: 0;
}

.product-hero__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.product-hero__specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 30px;
}

.product-hero__spec-badge {
    background: #F8F9FA;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
}

.product-hero__cta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.product-hero__cta-quote {
    padding: 14px 32px;
    background: #00C896;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.product-hero__cta-quote:hover {
    background: #00A67D;
}

.product-hero__cta-datasheet {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    border: 2px solid #E0E0E0;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    color: #1A1A2E;
    transition: border-color 0.2s, color 0.2s;
}

.product-hero__cta-datasheet:hover {
    border-color: #00C896;
    color: #00C896;
}

/* Product Tabs */
.product-tabs-section {
    padding: 40px 0 60px;
    background: #F8F9FA;
}

.product-tabs-nav {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #E0E0E0;
    margin-bottom: 32px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.product-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 14px 24px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    border: none;
    background: none;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    white-space: nowrap;
}

.tab-btn:hover {
    color: #1A1A2E;
}

.tab-btn--active {
    color: #00C896;
    border-bottom-color: #00C896;
}

/* Specs Table */
.product-specs-table {
    width: 100%;
    border-collapse: collapse;
}

.product-specs-table tr {
    border-bottom: 1px solid #E0E0E0;
}

.product-specs-table tr:nth-child(even) {
    background: #F8F9FA;
}

.product-specs-table__key {
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666;
    font-weight: 500;
    width: 40%;
}

.product-specs-table__value {
    padding: 12px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1A2E;
    font-weight: 600;
}

/* Related Products */
.product-related__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.product-related__card {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

/* Product Trust Badges */
.product-trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

/* Product Mobile */
@media (max-width: 768px) {
    .product-hero {
        padding: 24px 0;
    }

    .product-hero__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .product-hero__image-col {
        position: static;
    }

    .product-hero__image-wrap {
        min-height: 220px;
        padding: 20px;
    }

    .product-hero__specs-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .product-hero__cta {
        flex-direction: column;
    }

    .product-hero__cta-quote,
    .product-hero__cta-datasheet {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .product-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .product-tabs-nav {
        gap: 0;
    }

    .tab-btn {
        padding: 12px 16px;
        font-size: 13px;
    }

    .product-specs-table__key,
    .product-specs-table__value {
        padding: 10px 12px;
        font-size: 13px;
    }

    .product-specs-table__key {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .product-hero__specs-grid {
        grid-template-columns: 1fr 1fr;
    }

    .product-related__grid {
        grid-template-columns: 1fr;
    }
}


/* ═══════════════════════════════════════════════════════════
   4. CATALOG PAGE
   ═══════════════════════════════════════════════════════════ */

.mobile-filter-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1A1A2E;
    cursor: pointer;
    margin: 12px 0;
    width: 100%;
    justify-content: center;
    transition: border-color 0.2s;
}

.mobile-filter-toggle:hover {
    border-color: #00C896;
}

@media (max-width: 768px) {
    .mobile-filter-toggle {
        display: flex;
    }
}


/* ═══════════════════════════════════════════════════════════
   5. QUOTE PAGE — qt-* classes
   ═══════════════════════════════════════════════════════════ */

/* Header */
.qt-header {
    padding: 40px 0 24px;
    background: #F8F9FA;
    border-bottom: 1px solid #E0E0E0;
}

.qt-header__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 8px;
}

.qt-header__subtitle {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #666;
}

/* Stepper */
.qt-stepper {
    background: #fff;
    padding: 24px 0;
    border-bottom: 1px solid #E0E0E0;
}

.qt-stepper__track {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    max-width: 500px;
    margin: 0 auto;
}

.qt-stepper__step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
}

.qt-stepper__num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #E0E0E0;
    color: #999;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s;
    flex-shrink: 0;
}

.qt-stepper__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    transition: color 0.3s;
    white-space: nowrap;
}

.qt-stepper__line {
    flex: 1;
    height: 2px;
    background: #E0E0E0;
    min-width: 30px;
    transition: background 0.3s;
}

.qt-stepper__step--active .qt-stepper__num {
    background: #00C896;
    color: #fff;
}

.qt-stepper__step--active .qt-stepper__label {
    color: #00C896;
}

.qt-stepper__step--done .qt-stepper__num {
    background: #00C896;
    color: #fff;
}

.qt-stepper__step--done .qt-stepper__label {
    color: #1A1A2E;
}

.qt-stepper__line--done {
    background: #00C896;
}

/* Main Section */
.qt-main {
    padding: 40px 0 60px;
    background: #F8F9FA;
}

/* Cart */
.qt-cart {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 32px;
}

.qt-cart__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #E0E0E0;
}

.qt-cart__header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.qt-cart__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #1A1A2E;
}

.qt-cart__badge {
    min-width: 24px;
    height: 24px;
    padding: 0 8px;
    border-radius: 12px;
    background: #00C896;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.qt-cart__add-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #00C896;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.qt-cart__add-link:hover {
    color: #00A67D;
}

/* Cart Table */
.qt-cart__table-header {
    display: flex;
    align-items: center;
    padding: 8px 0;
    border-bottom: 2px solid #E0E0E0;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qt-cart__th--num { width: 40px; text-align: center; }
.qt-cart__th--sku { width: 150px; }
.qt-cart__th--name { flex: 1; }
.qt-cart__th--qty { width: 80px; text-align: center; }
.qt-cart__th--action { width: 40px; text-align: center; }

.qt-cart__row {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #F0F0F0;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
}

.qt-cart__cell--num { width: 40px; text-align: center; color: #999; font-size: 12px; }
.qt-cart__cell--sku { width: 150px; color: #00C896; font-weight: 600; font-size: 12px; }
.qt-cart__cell--name { flex: 1; color: #1A1A2E; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qt-cart__cell--qty { width: 80px; text-align: center; }
.qt-cart__cell--action { width: 40px; text-align: center; }

.qt-cart__qty-input {
    width: 60px;
    padding: 6px 8px;
    border: 1px solid #E0E0E0;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    text-align: center;
    outline: none;
}

.qt-cart__qty-input:focus {
    border-color: #00C896;
}

.qt-cart__remove-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qt-cart__remove-btn:hover {
    color: #DC3545;
    background: rgba(220,53,69,0.08);
}

/* Cart Empty & Summary */
.qt-cart__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
}

.qt-cart__empty-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: #999;
}

.qt-cart__browse-link {
    color: #00C896;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    text-decoration: none;
}

.qt-cart__summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid #E0E0E0;
}

.qt-cart__summary-count {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666;
}

.qt-cart__clear-btn {
    background: none;
    border: none;
    color: #DC3545;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 4px;
    transition: background 0.2s;
}

.qt-cart__clear-btn:hover {
    background: rgba(220,53,69,0.08);
}

/* Form */
.qt-form-wrap {
    background: #fff;
    border: 1px solid #E0E0E0;
    border-radius: 8px;
    padding: 32px;
}

.qt-form__group {
    margin-bottom: 24px;
}

.qt-form__group-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E0E0E0;
}

.qt-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.qt-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.qt-form__label {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.qt-form__input {
    padding: 12px 16px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}

.qt-form__input:focus {
    border-color: #00C896;
}

.qt-form__select {
    appearance: auto;
    cursor: pointer;
}

.qt-form__textarea {
    resize: vertical;
    min-height: 100px;
}

.qt-form__honey {
    position: absolute;
    left: -9999px;
    top: -9999px;
}

.qt-form__privacy {
    margin: 24px 0 16px;
}

.qt-form__privacy-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.qt-form__checkbox {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #00C896;
}

.qt-form__privacy-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.qt-form__privacy-link {
    color: #00C896;
    text-decoration: underline;
}

.qt-form__submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px;
    background: #00C896;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.qt-form__submit:hover {
    background: #00A67D;
    transform: translateY(-1px);
}

.qt-form__submit--loading {
    opacity: 0.7;
    pointer-events: none;
}

.qt-form__spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.qt-form__required-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    color: #999;
    text-align: center;
    margin-top: 12px;
}

/* Form Error */
.qt-form__error {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 8px;
    margin-bottom: 20px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #DC3545;
}

.qt-form__error-icon {
    flex-shrink: 0;
}

/* Success */
.qt-success {
    padding: 80px 0;
    background: #F8F9FA;
    text-align: center;
}

.qt-success__container {
    max-width: 600px;
    margin: 0 auto;
}

.qt-success__icon {
    margin-bottom: 24px;
}

.qt-success__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 32px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 16px;
}

.qt-success__text {
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 32px;
}

.qt-success__btn {
    display: inline-block;
    padding: 14px 32px;
    background: #00C896;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    transition: background 0.2s;
}

.qt-success__btn:hover {
    background: #00A67D;
}

/* Benefits */
.qt-benefits {
    padding: 60px 0;
    background: #fff;
    border-top: 1px solid #E0E0E0;
}

.qt-benefits__title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #1A1A2E;
    text-align: center;
    margin-bottom: 40px;
}

.qt-benefits__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.qt-benefits__card {
    text-align: center;
    padding: 24px;
}

.qt-benefits__icon {
    margin-bottom: 16px;
}

.qt-benefits__card-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 8px;
}

.qt-benefits__card-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Quote Mobile */
@media (max-width: 768px) {
    .qt-header {
        padding: 24px 0 16px;
    }

    .qt-stepper__step {
        padding: 8px 8px;
    }

    .qt-stepper__label {
        font-size: 11px;
    }

    .qt-cart {
        padding: 16px;
    }

    .qt-cart__table-header {
        display: none;
    }

    .qt-cart__row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 0;
    }

    .qt-cart__cell--num {
        display: none;
    }

    .qt-cart__cell--sku {
        width: auto;
        font-size: 11px;
    }

    .qt-cart__cell--name {
        width: 100%;
        order: -1;
        white-space: normal;
    }

    .qt-cart__cell--qty {
        width: auto;
    }

    .qt-form-wrap {
        padding: 20px;
    }

    .qt-form__row {
        grid-template-columns: 1fr;
    }

    .qt-benefits__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}


/* ═══════════════════════════════════════════════════════════
   6. FOOTER
   ═══════════════════════════════════════════════════════════ */

.footer {
    background: #1A1A2E;
    padding-top: 0;
    color: #E0E0E0;
}

.footer-trust-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.footer-column {
    min-width: 0;
}

.footer-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-text {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #999;
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #00C896;
}

.footer-contact-item {
    margin-bottom: 16px;
}

.footer-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.footer-contact-item a,
.footer-contact-item address {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-style: normal;
    line-height: 1.6;
}

.footer-contact-item a:hover {
    color: #00C896;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.5);
    transition: all 0.2s;
    text-decoration: none;
}

.social-icon:hover {
    background: rgba(0,200,150,0.15);
    color: #00C896;
}

/* Footer link hover classes (replacing inline onmouseover/onmouseout) */
.footer-link-hover:hover { color: #fff !important; }
.footer-link-hover--dim:hover { color: #fff !important; }
.footer-brand-badge:hover { color: rgba(255,255,255,0.95) !important; border-color: rgba(255,255,255,0.5) !important; }
.footer-brand-badge--highlight:hover { background: #00C896 !important; color: #fff !important; border-color: #00C896 !important; }

/* Footer Mobile */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 24px 16px 32px !important;
    }

    .footer-container[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
        padding: 0 16px 32px !important;
    }

    .footer-trust-bar {
        gap: 16px !important;
        padding: 16px !important;
        justify-content: flex-start !important;
    }

    .footer-trust-badge {
        font-size: 12px;
    }

    .footer-trust-badge span {
        font-size: 12px !important;
    }

    .footer-brands-list {
        gap: 6px !important;
    }

    .footer-brand-badge,
    .footer-brands-list a {
        font-size: 11px !important;
        padding: 3px 8px !important;
    }

    .footer-legal-nav {
        display: flex;
        gap: 16px;
        justify-content: center;
    }
}

/* Mobile CTA Bar */
.mobile-cta-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    background: #1A1A2E;
    border-top: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.mobile-cta-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 4px;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    transition: background 0.2s;
    color: rgba(255,255,255,0.7);
}

.mobile-cta-item:hover {
    background: rgba(255,255,255,0.06);
}

.mobile-cta-item--wa { color: #25D366; }
.mobile-cta-item--phone { color: #4FC3F7; }
.mobile-cta-item--quote { color: #00C896; }
.mobile-cta-item--email { color: #FFB74D; }

@media (max-width: 768px) {
    .mobile-cta-bar {
        display: flex;
    }

    /* Add bottom padding to body for mobile CTA bar */
    body {
        padding-bottom: 64px;
    }

    /* Shift footer content above mobile bar */
    .footer {
        padding-bottom: 0;
    }
}


/* ═══════════════════════════════════════════════════════════
   7. WIDGETS — CTA, Toast, Back-to-top, Add-to-quote
   ═══════════════════════════════════════════════════════════ */

/* CTA Widget (FAB) */
.cta-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9900;
}

.cta-widget__toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #00C896;
    border: none;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0,200,150,0.4);
    transition: transform 0.3s, background 0.3s;
    position: relative;
    z-index: 2;
}

.cta-widget__toggle:hover {
    transform: scale(1.05);
    background: #00A67D;
}

.cta-widget__pulse {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0,200,150,0.4);
    animation: ctaPulse 2s infinite;
    pointer-events: none;
}

@keyframes ctaPulse {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

.cta-widget__icon-open,
.cta-widget__icon-close {
    position: absolute;
    transition: opacity 0.3s, transform 0.3s;
}

.cta-widget__menu {
    position: absolute;
    bottom: 70px;
    right: 0;
    background: #fff;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    min-width: 200px;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}

.cta-widget__menu.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.cta-widget__header {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 8px 12px 4px;
}

.cta-widget__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.2s;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #1A1A2E;
}

.cta-widget__item:hover {
    background: #F0F0F0;
}

.cta-widget__item-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.cta-widget__item--whatsapp .cta-widget__item-icon { background: rgba(37,211,102,0.1); color: #25D366; }
.cta-widget__item--email .cta-widget__item-icon { background: rgba(0,200,150,0.1); color: #00C896; }
.cta-widget__item--phone .cta-widget__item-icon { background: rgba(79,195,247,0.1); color: #4FC3F7; }
.cta-widget__item--quote .cta-widget__item-icon { background: rgba(0,200,150,0.1); color: #00C896; }

.cta-widget__item-text {
    font-weight: 500;
}

@media (max-width: 768px) {
    .cta-widget {
        bottom: 80px;
        right: 16px;
    }

    .cta-widget__toggle {
        width: 50px;
        height: 50px;
    }
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10002;
    display: flex;
    flex-direction: column;
    gap: 8px;
    pointer-events: none;
}

.toast-notification {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    min-width: 280px;
    max-width: 380px;
    pointer-events: auto;
    animation: toastIn 0.4s cubic-bezier(0.34,1.56,0.64,1);
    border-left: 4px solid #00C896;
}

.toast-notification--success { border-left-color: #10B981; }
.toast-notification--error { border-left-color: #EF4444; }
.toast-notification--info { border-left-color: #3B82F6; }
.toast-notification--cart { border-left-color: #00C896; }

.toast-notification--exit {
    animation: toastOut 0.3s forwards;
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    to { transform: translateX(120%); opacity: 0; }
}

.toast-notification__icon {
    flex-shrink: 0;
}

.toast-notification__message {
    flex: 1;
    color: #333;
}

.toast-notification__close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .toast-container {
        left: 12px;
        right: 12px;
        top: 72px;
    }

    .toast-notification {
        min-width: auto;
        max-width: none;
    }
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 90px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(26,26,46,0.8);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s;
    z-index: 9800;
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #00C896;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 150px;
        right: 16px;
    }
}

/* Add to Quote Button (global) */
.add-to-quote-btn {
    padding: 10px 20px;
    background: #00C896;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.add-to-quote-btn:hover {
    background: #00A67D;
    transform: translateY(-1px);
}


/* ═══════════════════════════════════════════════════════════
   8. GLOBAL RESPONSIVE OVERRIDES — INLINE STYLE FIXES
   ═══════════════════════════════════════════════════════════ */

/* Prevent any element with inline padding from causing overflow */
@media (max-width: 768px) {
    /* Fix breadcrumb section padding */
    section[style*="padding: 40px 20px"],
    section[style*="padding: 20px"],
    section[style*="padding: 60px 20px"] {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Fix the catalog grid layout (inline style override) */
    .catalog-layout[style*="grid-template-columns: 280px"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 12px !important;
    }

    /* Fix the footer grid (inline 4-column) */
    div[style*="grid-template-columns:1.5fr 0.8fr 1.2fr 0.8fr"] {
        grid-template-columns: 1fr !important;
        gap: 28px !important;
        padding: 24px 16px !important;
    }

    /* Fix homepage value proposition grid */
    div[style*="grid-template-columns:repeat(auto-fit,minmax(200px,1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }

    /* Fix product hero grid */
    div[style*="grid-template-columns: 400px 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix family header grid */
    .family-header__grid,
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Fix sort bars / flex rows that overflow */
    div[style*="display: flex; justify-content: space-between"] {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Fix catalog h1 font size */
    h1[style*="font-size: 44px"] {
        font-size: 28px !important;
    }

    /* Prevent fixed-width elements from causing overflow */
    img[style*="max-width: 300px"] {
        max-width: 100% !important;
    }

    /* Fix any hard-coded width tables */
    table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Container override */
    .container {
        padding: 0 12px;
    }
}

@media (max-width: 480px) {
    /* Single column for value proposition */
    div[style*="grid-template-columns:repeat(auto-fit,minmax(200px,1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Single column for product grid */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(220px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fill, minmax(250px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"],
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"],
    .grid-cards--wide[style*="grid-template-columns"],
    .grid-cards[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    /* Fix section padding for very small screens */
    section[style*="padding:56px 0"] {
        padding: 32px 0 !important;
    }

    /* Fix font sizes for small screens */
    h2[style*="font-size:clamp(24px,4vw,36px)"],
    h2[style*="font-size: 32px"] {
        font-size: 22px !important;
    }

    p[style*="font-size:17px"] {
        font-size: 15px !important;
    }

    /* Fix value proposition card text */
    div[style*="font-size:28px"] {
        font-size: 22px !important;
    }
}

/* ═══════════════════════════════════════════════════════════
   9. CHATBOT MOBILE ADJUSTMENTS
   ═══════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    /* Ensure chatbot launcher sits above mobile CTA bar */
    .im-chat-container {
        bottom: 80px !important;
        left: 16px !important;
        right: auto !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   10. PRINT STYLES
   ═══════════════════════════════════════════════════════════ */

@media print {
    .nav-modern,
    .mobile-cta-bar,
    .cta-widget,
    .back-to-top,
    .toast-container,
    .cb-overlay,
    .cb-sticky-bar,
    .cb-social-proof,
    #mobileCTABar {
        display: none !important;
    }

    body {
        padding-bottom: 0;
    }
}


/* ═══════════════════════════════════════════════════════════
   11. COMPREHENSIVE RESPONSIVE ENHANCEMENT (2026-04-01)
   Deep mobile-first overhaul for 320px+ compatibility
   ═══════════════════════════════════════════════════════════ */

/* --- Safe Area Insets for notched phones (iPhone X+) --- */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .mobile-cta-bar {
        padding-bottom: env(safe-area-inset-bottom);
    }
    body {
        padding-bottom: calc(64px + env(safe-area-inset-bottom));
    }
    @media (min-width: 769px) {
        body { padding-bottom: 0; }
    }
}

/* --- Global 320px foundation --- */
@media (max-width: 374px) {
    html { font-size: 14px; }

    .container {
        padding: 0 10px !important;
    }

    /* Shrink nav for very small screens */
    .nav-modern__inner {
        padding: 0 10px !important;
    }

    .nav-modern__logo-img {
        height: 28px !important;
    }

    .nav-modern__logo-text {
        font-size: 14px !important;
        letter-spacing: 1px !important;
    }

    /* Search overlay smaller */
    .nav-search-overlay__input {
        font-size: 16px;
        padding: 14px 50px 14px 14px;
    }

    /* Hero text */
    .hp-hero__title {
        font-size: 24px !important;
    }

    .hp-hero__subtitle {
        font-size: 13px !important;
    }

    /* Category/family headers */
    .category-header__title,
    h1[style*="font-size: 48px"],
    h1[style*="font-size: 52px"] {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }

    .family-header__title {
        font-size: 28px !important;
    }

    /* Section headings */
    h2[style*="font-size: 36px"],
    h2[style*="font-size: 32px"] {
        font-size: 20px !important;
    }

    /* Spec badge text */
    .product-hero__spec-badge div[style*="font-size: 24px"] {
        font-size: 18px !important;
    }

    /* Quote page form compact */
    .qt-form-wrap {
        padding: 14px !important;
    }

    .qt-form__input {
        padding: 10px 12px;
        font-size: 16px; /* Prevent iOS zoom */
    }

    .qt-form__select {
        font-size: 16px; /* Prevent iOS zoom */
    }

    .qt-form__textarea {
        font-size: 16px; /* Prevent iOS zoom */
    }

    /* CTA buttons */
    .hp-cta__btn,
    a[style*="padding: 16px 40px"] {
        padding: 14px 24px !important;
        font-size: 14px !important;
    }

    /* Footer brand badges: 2-col on tiny screens */
    .footer-brands-list {
        justify-content: center !important;
    }

    /* Product card images smaller */
    div[style*="height: 220px"] {
        height: 160px !important;
    }

    div[style*="height: 180px"] {
        height: 140px !important;
    }
}

/* --- 480px enhancements --- */
@media (max-width: 480px) {
    /* Prevent iOS zoom on focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Category page: subcategory cards full width */
    .grid-cards--wide[style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Family page: product grid single column */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(240px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Product page: certifications grid */
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Product page: applications grid */
    div[style*="grid-template-columns: repeat(auto-fill, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Breadcrumbs font size */
    div[style*="font-size: 13px; color: #B0B0B0"],
    div[style*="font-size: 13px; color: #666"],
    div[style*="font-size: 13px; color: #E0E0E0"] {
        font-size: 11px !important;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* Mobile CTA bar labels */
    .mobile-cta-item span {
        font-size: 9px;
    }

    /* Stepper labels hide on very small */
    .qt-stepper__label {
        font-size: 10px !important;
    }

    /* Cart item layout improvements */
    .qt-cart__cell--sku {
        width: 100% !important;
        order: 0;
    }

    .qt-cart__cell--name {
        font-size: 13px !important;
    }

    /* CTA section text */
    section[style*="background: linear-gradient(135deg, #1A1A2E 0%, #2D3561 100%); text-align: center"] p {
        font-size: 14px !important;
    }

    /* Pagination compact */
    .pagination a,
    .pagination span,
    div[style*="display: flex; justify-content: center; gap: 8px"] a,
    div[style*="display: flex; justify-content: center; gap: 8px"] span {
        padding: 8px 10px !important;
        font-size: 11px !important;
    }
}

/* --- 768px (tablet) enhancements --- */
@media (max-width: 768px) {
    /* Category page header */
    h1[style*="font-size: 48px"] {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    /* Family page header */
    .family-header__title,
    h1[style*="font-size: 52px"] {
        font-size: 32px !important;
    }

    /* Section padding reduction */
    section[style*="padding: 60px 20px"],
    section[style*="padding: 50px 20px"] {
        padding-top: 36px !important;
        padding-bottom: 36px !important;
    }

    section[style*="padding: 40px 20px"] {
        padding-top: 24px !important;
        padding-bottom: 24px !important;
    }

    /* Product page description section */
    section[style*="padding: 60px 20px; background: white"] h2[style*="font-size: 32px"] {
        font-size: 24px !important;
        margin-bottom: 20px !important;
    }

    /* Category/family section titles */
    h2[style*="font-size: 32px; font-weight: 700; color: #1A1A2E"] {
        font-size: 24px !important;
    }

    /* Catalog filter sidebar collapse */
    .catalog-sidebar,
    div[style*="grid-template-columns: 280px 1fr"] {
        grid-template-columns: 1fr !important;
    }

    /* Footer grid -- ensure single column even with inline styles */
    .footer-grid,
    .footer-container.footer-grid {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }

    /* Footer trust bar: wrap naturally */
    .footer-trust-bar,
    .footer-container.footer-trust-bar {
        flex-wrap: wrap !important;
        gap: 12px 24px !important;
        justify-content: center !important;
    }

    /* Footer brand badges: wrap naturally, smaller text */
    .footer-brands-list {
        justify-content: center !important;
    }

    /* Footer copyright: smaller */
    div[style*="text-align: center"] p[style*="font-size: 13px"] {
        font-size: 12px !important;
    }

    /* Category card border-left highlight: ensure visible */
    a[style*="border-left: 5px solid #00C896"] {
        border-left-width: 4px !important;
    }

    /* FAQ details compact */
    details summary {
        padding: 16px !important;
        font-size: 14px !important;
    }

    details > div[style*="padding: 0 24px 20px"] {
        padding: 0 16px 16px !important;
    }

    /* Category page: grid cards on tablet */
    .grid-cards--wide[style*="grid-template-columns: repeat(auto-fill, minmax(320px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }

    /* Family page product cards: 2 columns */
    .grid-cards[style*="grid-template-columns: repeat(auto-fill, minmax(280px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    /* Catalog sort bar: wrap */
    div[style*="display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px"] {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    /* Fix any image with hard-coded width */
    img[width="250"],
    img[width="300"],
    img[width="190"] {
        width: 100% !important;
        height: auto !important;
    }

    /* Tab navigation: scroll hint */
    .product-tabs-nav {
        position: relative;
    }
    .product-tabs-nav::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 24px;
        background: linear-gradient(to right, transparent, #F8F9FA);
        pointer-events: none;
    }

    /* Chatbot: ensure no overlap with mobile bar */
    .im-chat-container,
    .im-chat-launcher {
        bottom: 80px !important;
    }

    .im-chat-window {
        bottom: 140px !important;
        max-height: calc(100vh - 200px) !important;
        max-height: calc(100dvh - 200px) !important;
        right: 8px !important;
        left: 8px !important;
        width: auto !important;
    }

    /* Conversion boost overlays */
    .cb-overlay__content {
        width: calc(100% - 24px) !important;
        max-width: none !important;
        margin: 12px;
    }

    /* Flex row items with gap - ensure wrapping */
    div[style*="display: flex; justify-content: space-between; align-items: center;"] {
        flex-wrap: wrap !important;
    }
}

/* --- Touch interaction improvements --- */
@media (hover: none) and (pointer: coarse) {
    /* Enlarge all interactive targets for touch */
    .tab-btn {
        min-height: 48px;
        padding: 14px 20px;
    }

    .footer-links a {
        display: block;
        padding: 10px 0;
        min-height: 44px;
        line-height: 24px;
    }

    /* Remove hover effects that don't work well on touch */
    .hp-cat-card:hover,
    .hp-prod-card:hover,
    .product-related__card:hover,
    .hover-lift:hover {
        transform: none;
    }

    /* Pagination: larger touch targets */
    div[style*="display: flex; justify-content: center; gap: 8px"] a,
    div[style*="display: flex; justify-content: center; gap: 8px"] span {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pagination a, .pagination span {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Details/FAQ: larger tap target */
    details summary {
        min-height: 48px;
        display: flex;
        align-items: center;
    }
}

/* --- Landscape mobile optimization --- */
@media (max-height: 500px) and (orientation: landscape) {
    .nav-drawer {
        padding-top: 8px;
    }

    .nav-drawer__link {
        padding: 8px 0;
    }

    .nav-drawer__content {
        padding: 12px 24px;
    }

    .nav-search-overlay {
        padding-top: 60px;
    }

    .mobile-cta-bar {
        display: none !important;
    }

    body {
        padding-bottom: 0 !important;
    }
}

/* --- Cross-browser fixes --- */

/* Firefox: scrollbar styling */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

/* Webkit scrollbar (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.35);
}

/* Safari: prevent bounce overscroll leak on nav drawer */
.nav-drawer {
    overscroll-behavior: contain;
}

/* Safari: fix backdrop-filter rendering */
@supports (-webkit-backdrop-filter: blur(1px)) {
    .nav-modern {
        -webkit-backdrop-filter: blur(20px);
    }
    .nav-mega {
        -webkit-backdrop-filter: blur(20px);
    }
}

/* Edge / IE11: fallback for gap in flex */
@supports not (gap: 1px) {
    .nav-modern__menu > * + * { margin-left: 8px; }
    .nav-modern__actions > * + * { margin-left: 8px; }
    .footer-social > * + * { margin-left: 10px; }
}

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

    .nav-drawer {
        transition: none;
    }

    .nav-mega {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* --- Dark mode media query (future-proofing) --- */
@media (prefers-color-scheme: dark) {
    /* The site is already dark-themed, so only override light sections */
    /* Kept minimal to avoid breaking existing design */
}

/* --- Admin pages responsive (standalone dark UI) --- */
@media (max-width: 768px) {
    /* leads.php table */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .table-wrapper table {
        min-width: 700px;
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
    }

    /* newsletter.php */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .action-bar {
        flex-direction: column;
        align-items: stretch !important;
    }

    .filter-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
    }

    .detail-row {
        flex-direction: column;
        gap: 4px;
    }

    .detail-row .dlabel {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .stats-bar,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}


/* ═══════════════════════════════════════════════════════════
   12. PAGE-SPECIFIC INLINE STYLE OVERRIDES FOR MOBILE
   Targets inline styles that can't be overridden by class alone
   ═══════════════════════════════════════════════════════════ */

/* --- Catalog: sidebar + main grid → stacked on tablet/mobile --- */
@media (max-width: 768px) {
    div[style*="grid-template-columns: 280px 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px 12px !important;
    }

    /* Catalog filter inputs: full width */
    input[style*="width: 50%"] {
        width: 100% !important;
    }
}

/* --- Category: subcategories grid minmax(320px) → fluid --- */
@media (max-width: 640px) {
    div[style*="minmax(320px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    div[style*="minmax(280px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}

/* --- Family: 2-col header → stacked on mobile --- */
@media (max-width: 640px) {
    div[style*="grid-template-columns: 1fr 1fr"][style*="gap: 40px"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    /* Family: product image fixed height → auto */
    div[style*="height: 220px"][style*="overflow: hidden"] {
        height: auto !important;
        min-height: 160px;
    }
}

/* --- Product: related products 4-col → responsive --- */
@media (max-width: 768px) {
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
}

@media (max-width: 480px) {
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Catalog grid: single column on smallest screens */
    div[style*="minmax(220px"] {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }

    /* Chatbot left position on mobile */
    .im-chat-container {
        left: 14px !important;
        right: auto !important;
    }
}

/* --- Home: trust grid refinement for very small screens --- */
@media (max-width: 374px) {
    div[style*="minmax(200px"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
}
