:root {
    --primary: #ff6600;
    --primary-hover: #e05500;
    --primary-light: #fff2ea;
    --primary-gradient: linear-gradient(135deg, #ff6600 0%, #ff8533 100%);
    --dark: #0f172a;
    --dark-light: #1e293b;
    --dark-muted: #334155;
    --gray-bg: #f8fafc;
    --gray-border: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: #ffffff;
    line-height: 1.6;
}

img, svg, video, canvas, audio, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl, .container-xxl {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, .fw-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--dark);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

/* ==========================================================================
   Header Top Bar (Light Tone)
   ========================================================================== */
.header-top-bar {
    background-color: #f8fafc;
    color: #475569;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 1px solid #e2e8f0;
}
.header-top-bar a.topbar-link {
    color: #334155;
    font-weight: 500;
}
.header-top-bar a.topbar-link:hover {
    color: var(--primary);
}
.topbar-divider {
    color: #cbd5e1;
}

/* Language dropdown in Topbar */
.language-dropdown .btn {
    color: #334155;
    background-color: #ffffff;
    border-color: #cbd5e1;
    font-weight: 600;
    transition: all 0.2s ease;
}
.language-dropdown .btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}
.language-dropdown .dropdown-item.active,
.language-dropdown .dropdown-item:active {
    background-color: var(--primary-light);
    color: var(--primary);
}

/* ==========================================================================
   Main Navbar (Dark Tone & Natural Logo)
   ========================================================================== */
.navbar-main {
    background-color: #0f172a;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: all 0.3s ease;
}

/* Logo sits naturally on dark navbar */
.navbar-brand {
    padding: 0;
    margin: 0;
}
.navbar-logo-img {
    height: 48px;
    max-width: 340px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
    transition: height 0.2s ease, max-width 0.2s ease;
}
@media (max-width: 767.98px) {
    .navbar-logo-img {
        height: 38px;
        max-width: 220px;
    }
}

/* Nav Links on Dark Navbar */
.navbar-main .nav-link {
    font-weight: 500;
    color: #e2e8f0 !important;
    padding: 8px 14px !important;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.navbar-main .nav-link:hover,
.navbar-main .nav-link.active {
    color: #ff6600 !important;
    background-color: rgba(255, 102, 0, 0.12);
}

/* Dropdown Menus on Dark Navbar */
.navbar-main .dropdown-menu-dark {
    background-color: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
.navbar-main .dropdown-menu-dark .dropdown-item {
    color: #cbd5e1;
    border-radius: 6px;
    font-size: 0.9rem;
    padding: 8px 14px;
    transition: all 0.2s ease;
}
.navbar-main .dropdown-menu-dark .dropdown-item:hover,
.navbar-main .dropdown-menu-dark .dropdown-item:focus {
    background-color: rgba(255, 102, 0, 0.15);
    color: #ff6600;
}

/* Search bar on Dark Navbar */
.navbar-search-input {
    background-color: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
    font-size: 0.88rem;
}
.navbar-search-input::placeholder {
    color: #94a3b8 !important;
}
.navbar-search-input:focus {
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(255, 102, 0, 0.25) !important;
}

/* Cart button on Dark Navbar */
.navbar-cart-btn {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
}
.navbar-cart-btn:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(255, 102, 0, 0.35);
    transform: translateY(-1px);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.25);
    transition: all 0.25s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-hover);
    border-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.35);
}

.btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 8px;
    transition: all 0.25s ease;
}
.btn-outline-primary:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-dark {
    background-color: var(--dark);
    border-color: var(--dark);
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 22px;
}
.btn-dark:hover {
    background-color: var(--dark-light);
    border-color: var(--dark-light);
    transform: translateY(-2px);
}

/* ==========================================================================
   Badges & Elements
   ========================================================================== */
.badge-orange {
    background-color: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
    border: 1px solid rgba(255, 102, 0, 0.2);
}
.badge-cad {
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* ==========================================================================
   Hero Slider Section (High-Contrast Award-Winning B2B Design)
   ========================================================================== */
.hero-slider-section {
    position: relative;
    background-color: #0b1120;
    overflow: hidden;
}

.hero-slider-item {
    position: relative;
    min-height: 580px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    padding: 90px 0 110px 0;
}

/* Dual-Layer Directional Gradient Overlay (Zero Glare, Maximum Contrast) */
.hero-slider-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, 
        rgba(11, 17, 32, 0.98) 0%, 
        rgba(11, 17, 32, 0.94) 38%, 
        rgba(11, 17, 32, 0.82) 58%, 
        rgba(11, 17, 32, 0.45) 85%, 
        rgba(11, 17, 32, 0.30) 100%
    ),
    linear-gradient(180deg, 
        rgba(15, 23, 42, 0.75) 0%, 
        transparent 40%, 
        rgba(11, 17, 32, 0.95) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

/* Badge Pill */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    background: rgba(255, 102, 0, 0.16);
    border: 1px solid rgba(255, 102, 0, 0.45);
    border-radius: 50rem;
    color: #ff944d;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}
.hero-badge i {
    color: var(--primary);
    font-size: 0.95rem;
}

/* Hero Typography */
.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: #ffffff;
    font-size: 3.25rem;
    line-height: 1.16;
    letter-spacing: -0.025em;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.hero-subtitle {
    color: #cbd5e1 !important;
    font-size: 1.16rem;
    line-height: 1.65;
    font-weight: 400;
    margin-bottom: 30px;
    max-width: 590px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* Hero Action Buttons */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}

.btn-hero-primary {
    background: linear-gradient(135deg, #ff6600 0%, #ff7f24 100%) !important;
    border: none !important;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 1.05rem;
    padding: 14px 30px !important;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(255, 102, 0, 0.42);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}
.btn-hero-primary:hover {
    background: linear-gradient(135deg, #e65c00 0%, #ff6600 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(255, 102, 0, 0.55);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.10) !important;
    backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.35) !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 28px !important;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s ease;
}
.btn-hero-secondary:hover {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25);
}

/* Trust Bar inside Hero */
.hero-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-trust-item {
    font-size: 0.85rem;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}
.hero-trust-item i {
    font-size: 0.95rem;
}

/* Carousel Indicators & Controls */
.hero-slider-section .carousel-indicators {
    bottom: 24px;
    margin-bottom: 0;
    gap: 8px;
    z-index: 5;
}
.hero-slider-section .carousel-indicators [data-bs-target] {
    width: 32px;
    height: 4px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.35);
    border: none;
    transition: all 0.3s ease;
    opacity: 0.8;
}
.hero-slider-section .carousel-indicators [data-bs-target].active {
    width: 52px;
    background-color: var(--primary);
    opacity: 1;
}

.hero-slider-section .carousel-control-prev,
.hero-slider-section .carousel-control-next {
    width: 50px;
    height: 50px;
    top: 50%;
    transform: translateY(-50%);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    opacity: 0.85;
    transition: all 0.25s ease;
    z-index: 5;
}
.hero-slider-section .carousel-control-prev {
    left: 24px;
}
.hero-slider-section .carousel-control-next {
    right: 24px;
}
.hero-slider-section .carousel-control-prev:hover,
.hero-slider-section .carousel-control-next:hover {
    background: var(--primary);
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
}
.hero-slider-section .carousel-control-prev-icon,
.hero-slider-section .carousel-control-next-icon {
    width: 20px;
    height: 20px;
}

/* Floating Metrics Bar (Elevated Overlap on Desktop) */
.hero-metrics-section {
    position: relative;
    z-index: 6;
    margin-top: -42px;
    padding-bottom: 24px;
}
.hero-metrics-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    padding: 24px 32px;
}
.hero-metric-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.hero-metric-icon {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.5rem;
    flex-shrink: 0;
}
.hero-metric-value {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 2px;
}
.hero-metric-label {
    font-size: 0.84rem;
    color: var(--text-muted);
}

/* Responsive Overrides (Mobile & Tablet) */
@media (max-width: 991.98px) {
    .hero-slider-item {
        min-height: 520px;
        padding: 65px 0 85px 0;
    }
    .hero-title {
        font-size: 2.6rem;
    }
    .hero-metrics-section {
        margin-top: 0;
        padding-top: 24px;
    }
}

@media (max-width: 767.98px) {
    .hero-slider-item {
        min-height: 460px;
        padding: 44px 0 55px 0;
        background-position: center center;
    }
    /* Mobile full dark overlay to eliminate ANY glare / contrast issue */
    .hero-slider-overlay {
        background: linear-gradient(180deg, 
            rgba(11, 17, 32, 0.96) 0%, 
            rgba(11, 17, 32, 0.90) 45%, 
            rgba(11, 17, 32, 0.98) 100%
        ) !important;
    }
    .hero-badge {
        font-size: 0.72rem;
        padding: 5px 13px;
        margin-bottom: 14px;
    }
    .hero-title {
        font-size: 1.85rem;
        line-height: 1.22;
        margin-bottom: 14px;
    }
    .hero-subtitle {
        font-size: 0.96rem;
        line-height: 1.55;
        margin-bottom: 22px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
        padding: 13px 20px !important;
        font-size: 0.98rem;
    }
    .hero-trust-bar {
        margin-top: 20px;
        padding-top: 16px;
        gap: 10px;
    }
    .hero-trust-item {
        font-size: 0.78rem;
        width: 100%;
    }
    .hero-slider-section .carousel-control-prev,
    .hero-slider-section .carousel-control-next {
        display: none !important;
    }
    .hero-metrics-section {
        margin-top: 0 !important;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    .hero-metrics-card {
        padding: 16px 10px;
        border-radius: 14px;
    }
    .hero-metrics-card .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.75rem;
    }
    .hero-metric-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 6px !important;
        padding: 6px 2px;
    }
    .hero-metric-icon {
        width: 44px !important;
        height: 44px !important;
        padding: 0 !important;
        font-size: 1.25rem !important;
    }
    .hero-metric-value {
        font-size: 1.15rem !important;
        font-weight: 800;
        line-height: 1.2;
    }
    .hero-metric-label {
        font-size: 0.75rem !important;
        line-height: 1.25;
        color: #64748b;
    }
    .model-viewer-controls {
        left: 8px !important;
        right: 8px !important;
        bottom: 10px !important;
        gap: 6px !important;
    }
    .model-viewer-controls button {
        padding: 6px 10px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
    }
    .model-viewer-badge {
        top: 10px !important;
        left: 10px !important;
        font-size: 0.72rem !important;
        padding: 4px 10px !important;
    }
}

@media (max-width: 399.98px) {
    .navbar-logo-img {
        max-width: 175px !important;
        height: 32px !important;
    }
    .hero-title {
        font-size: 1.55rem;
    }
}

/* RTL Support for Hero Overlay */
[dir="rtl"] .hero-slider-overlay {
    background: linear-gradient(270deg, 
        rgba(11, 17, 32, 0.98) 0%, 
        rgba(11, 17, 32, 0.94) 38%, 
        rgba(11, 17, 32, 0.82) 58%, 
        rgba(11, 17, 32, 0.45) 85%, 
        rgba(11, 17, 32, 0.30) 100%
    ),
    linear-gradient(180deg, 
        rgba(15, 23, 42, 0.75) 0%, 
        transparent 40%, 
        rgba(11, 17, 32, 0.95) 100%
    );
}
@media (max-width: 767.98px) {
    [dir="rtl"] .hero-slider-overlay {
        background: linear-gradient(180deg, 
            rgba(11, 17, 32, 0.95) 0%, 
            rgba(11, 17, 32, 0.88) 45%, 
            rgba(11, 17, 32, 0.97) 100%
        ) !important;
    }
}

/* ==========================================================================
   Product Cards
   ========================================================================== */
.product-card {
    background: #ffffff;
    border: 1px solid var(--gray-border);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.product-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    transform: translateY(-4px);
}
.product-thumb-wrap {
    position: relative;
    background: #f8fafc;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    border-bottom: 1px solid #f1f5f9;
}
.product-thumb-wrap img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}
.product-card:hover .product-thumb-wrap img {
    transform: scale(1.05);
}
.product-card-body {
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.product-code-tag {
    font-family: monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: #0284c7;
    background: #f0f9ff;
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 6px;
}
.product-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}
.product-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--gray-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

/* ==========================================================================
   3D Model Viewer Styles
   ========================================================================== */
.model-viewer-container {
    background: radial-gradient(circle at center, #2a374a 0%, #0f172a 100%);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}
model-viewer {
    width: 100%;
    height: 480px;
    --poster-color: transparent;
}
.model-viewer-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}
.model-viewer-controls button {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.85rem;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}
.model-viewer-controls button:hover {
    background: var(--primary);
    border-color: var(--primary);
}
.model-viewer-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: rgba(15, 23, 42, 0.85);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   Quote Basket & Floating Badges
   ========================================================================== */
.cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--primary);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #ffffff;
}

/* ==========================================================================
   Variant Configurator & Matrix Styling
   ========================================================================== */
.variant-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.variant-pill {
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.85rem;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #334155;
    transition: all 0.2s ease;
    cursor: pointer;
}
.variant-pill:hover {
    border-color: #ff6600;
    color: #ff6600;
    background: #fffaf5;
}
.variant-pill.active {
    background: #ff6600 !important;
    border-color: #ff6600 !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.25);
}
.spec-matrix-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #475569;
}
.spec-matrix-table td {
    vertical-align: middle;
}

/* ==========================================================================
   Mobile Bottom Navigation Bar (App-like UX)
   ========================================================================== */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #0f172a;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 60px;
    z-index: 1040;
    padding: 0 4px;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.25);
}
.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 500;
    flex: 1;
    padding: 6px 0;
    transition: all 0.2s ease;
}
.mobile-nav-item i {
    font-size: 1.25rem;
    margin-bottom: 2px;
}
.mobile-nav-item.active,
.mobile-nav-item:hover {
    color: var(--primary);
}
.mobile-cart-badge {
    position: absolute;
    top: 4px;
    right: 22%;
    background-color: var(--primary);
    color: #ffffff;
    border-radius: 50rem;
    font-size: 0.65rem;
    padding: 2px 6px;
    font-weight: 700;
}
@media (max-width: 991.98px) {
    body {
        padding-bottom: 64px; /* Ensure content is not cut off by bottom nav */
    }
}

/* ==========================================================================
   Footer Styles
   ========================================================================== */
.footer-main {
    background-color: var(--dark);
    color: #94a3b8;
    padding: 60px 0 20px;
    border-top: 4px solid var(--primary);
}
.footer-main h5 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 10px;
}
.footer-main h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: var(--primary);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li {
    margin-bottom: 10px;
}
.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}
.footer-bottom {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
}

/* ==========================================================================
   Mobile Nav Offcanvas Drawer
   ========================================================================== */
.offcanvas.bg-dark-custom {
    background-color: #0f172a !important;
}
.offcanvas .btn-close-white {
    filter: invert(1) grayscale(100%);
}
.offcanvas .nav-link {
    color: #e2e8f0;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
}
.offcanvas .nav-link:hover,
.offcanvas .nav-link.active {
    background-color: rgba(255, 102, 0, 0.15);
    color: #ff6600;
}
.offcanvas .accordion-button {
    background-color: #1e293b;
    color: #e2e8f0;
    font-weight: 500;
    padding: 12px 14px;
    border-radius: 8px;
    box-shadow: none;
}
.offcanvas .accordion-button:not(.collapsed) {
    background-color: rgba(255, 102, 0, 0.15);
    color: #ff6600;
}
.offcanvas .accordion-button::after {
    filter: invert(1);
}
.offcanvas .accordion-body {
    background-color: #151f33;
    padding: 8px;
    border-radius: 8px;
    margin-top: 4px;
}
.offcanvas .accordion-body a {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 0.88rem;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}
.offcanvas .accordion-body a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ff6600;
}

/* ==========================================================================
   Search Autocomplete Dropdown
   ========================================================================== */
.search-results-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
    z-index: 1050;
    margin-top: 6px;
    overflow: hidden;
    max-height: 400px;
    overflow-y: auto;
}
.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    text-decoration: none;
    transition: background 0.15s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background: rgba(255, 102, 0, 0.15);
    color: #ffffff;
}
.search-result-thumb {
    width: 42px;
    height: 42px;
    border-radius: 6px;
    background: #ffffff;
    object-fit: contain;
    padding: 2px;
    flex-shrink: 0;
}
.search-result-title {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.3;
}
.search-result-meta {
    font-size: 0.76rem;
    color: #94a3b8;
}

/* ==========================================================================
   Smooth Interactions & Cards
   ========================================================================== */
.transition-hover {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.transition-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(255, 102, 0, 0.3) !important;
}

/* ==========================================================================
   RTL (Right-to-Left) Support (for Arabic)
   ========================================================================== */
[dir="rtl"] {
    text-align: right;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
[dir="rtl"] .dropdown-menu {
    text-align: right;
}
[dir="rtl"] .me-1, [dir="rtl"] .me-2, [dir="rtl"] .me-3, [dir="rtl"] .me-4 {
    margin-right: 0 !important;
}
[dir="rtl"] .ms-1, [dir="rtl"] .ms-2, [dir="rtl"] .ms-3, [dir="rtl"] .ms-4 {
    margin-left: 0 !important;
}
[dir="rtl"] .footer-main h5::after {
    left: auto;
    right: 0;
}
[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 5px;
}
[dir="rtl"] .rounded-start-pill {
    border-radius: 0 50rem 50rem 0 !important;
}
[dir="rtl"] .rounded-end-pill {
    border-radius: 50rem 0 0 50rem !important;
}
[dir="rtl"] .navbar-cart-btn {
    text-align: center;
}
[dir="rtl"] .offcanvas-start {
    right: 0;
    left: auto;
    transform: translateX(100%);
}
[dir="rtl"] .offcanvas-start.show {
    transform: none;
}
[dir="rtl"] .search-results-box {
    text-align: right;
}


.cad-spotlight-wrapper {
    position: relative;
}


/* ==========================================================================
   Pneumax Official Main Partnership Custom Styles
   ========================================================================== */
.pneumax-partner-section {
    position: relative;
    padding-top: 1.5rem;
    padding-bottom: 2.5rem;
}
.pneumax-partner-card {
    background: linear-gradient(135deg, #0b1120 0%, #1e293b 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.15);
}
.pneumax-partner-logo-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pneumax-partner-logo-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
}
.navbar-partner-badge {
    transition: all 0.2s ease;
}
.footer-partner-box {
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.footer-partner-box:hover {
    border-color: rgba(255, 102, 0, 0.4) !important;
    transform: translateY(-2px);
}

@media (max-width: 991.98px) {
    .pneumax-partner-section {
        padding-top: 1rem;
        padding-bottom: 1.5rem;
    }
}


/* Homepage Dynamic Categories Showcase */
.category-card {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08) !important;
}
.category-card:hover .category-thumb {
    transform: scale(1.08);
}
.category-img-wrap {
    background: #f8fafc;
    border: 1px solid rgba(226, 232, 240, 0.8);
}
@media (max-width: 575.98px) {
    .category-img-wrap {
        height: 125px !important;
        padding: 0.5rem !important;
    }
    .category-img-wrap img {
        max-height: 100px !important;
    }
}
