/* ==========================================================================
   ARMS COMPLEX - DESIGN SYSTEM 1.0
   ========================================================================== */

:root {
    /* === DESIGN SYSTEM 1.0 COLOR PALETTE === */

    /* Background Colors */
    --ac-bg-dark: #121212;
    /* Main page background */
    --ac-bg-card: #1A1A1A;
    /* Card backgrounds, elevated surfaces */
    --ac-bg-popover: #1A1A1A;
    /* Dropdown menus, popovers, modals */

    /* Primary (Olive/Tactical Green) */
    --ac-primary: #5C7244;
    /* Primary buttons, CTAs, links */
    --ac-primary-dark: #4A5C37;
    /* Hover state */
    --ac-primary-light: #6B8650;
    /* Lighter variant */
    --ac-primary-foreground: #FAFAFA;
    /* Text on primary */

    /* Secondary */
    --ac-secondary: #262626;
    /* Secondary buttons */
    --ac-secondary-foreground: #F2F2F2;
    /* Text on secondary */

    /* Accent (Golden Amber) */
    --ac-accent: #E8A70A;
    /* Highlights, badges, special callouts */
    --ac-accent-foreground: #1A1A1A;
    /* Text on accent */
    --ac-accent-bright: #F5B800;
    /* Brighter variant */

    /* Text Colors */
    --ac-text-main: #F2F2F2;
    /* Primary text on dark */
    --ac-text-muted: #999999;
    /* Subtle text, placeholders */
    --ac-foreground: #F2F2F2;
    /* Alias for main text */

    /* Status Colors */
    --ac-destructive: #EB4D4D;
    /* Errors, delete, danger */
    --ac-destructive-foreground: #FAFAFA;
    --ac-warning: #E8A70A;
    /* Warnings (same as accent) */
    --ac-warning-foreground: #1A1A1A;

    /* Borders & Inputs */
    --ac-border: #333333;
    /* All borders, dividers */
    --ac-input: #333333;
    /* Input field borders */
    --ac-ring: #5C7244;
    /* Focus ring color */

    /* Border Radius */
    --ac-radius: 0.375rem;
    --ac-radius-sm: calc(0.375rem - 4px);
    --ac-radius-md: calc(0.375rem - 2px);
    --ac-radius-lg: 0.375rem;
    --ac-radius-xl: 0.75rem;

    /* Muted */
    --ac-muted: #262626;
    /* Muted backgrounds */
    --ac-muted-foreground: #999999;
    /* Muted text */

    /* Legacy aliases for compatibility */
    --primary: #5C7244;
    --secondary: #262626;
    --background: #121212;
    --card-bg: #1A1A1A;
    --text-main: #F2F2F2;
    --text-muted: #999999;
    --border: #333333;
    --darker-bg: #0F0F0F;
}

/* ==========================================================================
   ACCESSIBILITY FOCUS STATES
   ========================================================================== */
*:focus-visible {
    outline: 2px solid var(--ac-primary-light) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 4px rgba(107, 142, 35, 0.2) !important;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--ac-primary);
    outline-offset: 2px;
}

/* Skip Link for Screen Readers */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--ac-primary);
    color: #000;
    padding: 8px 16px;
    z-index: 10000;
    font-weight: bold;
    text-transform: uppercase;
}

.skip-link:focus {
    top: 0;
}

/* Hide scrollbar utility */
.hide-scrollbar::-webkit-scrollbar,
.arms-complex-theme-page::-webkit-scrollbar,
.arms-complex-theme-page body::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar,
.arms-complex-theme-page,
.arms-complex-theme-page body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ==========================================================================
   FLUID TYPOGRAPHY (10/10 Optimization)
   ========================================================================== */
html {
    /* Fluid base font: 14px at 320px → 16px at 1200px */
    font-size: clamp(0.875rem, 0.8rem + 0.25vw, 1rem);
}

/* Removed global uppercase transform - now controlled per element via theme_overrides.css */


h1,
.text-4xl,
.text-5xl {
    font-size: clamp(1.75rem, 1.5rem + 2vw, 3.5rem);
}

h2,
.text-3xl {
    font-size: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
}

h3,
.text-2xl {
    font-size: clamp(1.25rem, 1rem + 1vw, 2rem);
}

h4,
.text-xl {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.5rem);
}

/* ==========================================================================
   IMAGE OPTIMIZATION (10/10)
   ========================================================================== */
img {
    /* Native lazy loading support */
    content-visibility: auto;
}

/* Fade-in effect for lazy loaded images */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease-in;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
    opacity: 1;
}

/* ==========================================================================
   FLUID CONTAINERS (10/10)
   ========================================================================== */
.container {
    width: 100%;
    max-width: clamp(320px, 90vw, 1200px);
    margin-inline: auto;
    padding-inline: clamp(1rem, 3vw, 2rem);
}


.arms-complex-theme {
    background-color: var(--ac-bg-dark);
    color: var(--ac-text-main);
    font-family: 'Inter', sans-serif;
}

.arms-complex-theme h1,
.arms-complex-theme h2,
.arms-complex-theme h3,
.arms-complex-theme h4,
.arms-complex-theme h5 {
    text-transform: uppercase !important;
}

.uppercase {
    text-transform: uppercase !important;
}

.lowercase {
    text-transform: lowercase !important;
}

.capitalize {
    text-transform: capitalize !important;
}

.nav-menu-centered a,
.desktop-nav a,
.mobile-nav-container a {
    white-space: nowrap !important;
    text-transform: uppercase !important;
}

.header-grid,
.header-sector,
.mission-control,
.nav-menu-centered {
    flex-wrap: nowrap !important;
}

.logo-text,
.ac-logo-text-main,
.ac-logo-text-sub,
.ac-brand-badge {
    text-transform: uppercase !important;
}

/* Scroll Indicator */
.ac-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--ac-primary-light);
    z-index: 10001;
    width: 0%;
    transition: width 0.1s;
    box-shadow: 0 0 10px var(--ac-primary-light);
}

/* --- Hero Section --- */
.ac-hero {
    position: relative;
    min-height: 54vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(18, 20, 15, 0.95), rgba(18, 20, 15, 0.9)), var(--ac-bg-dark);
    /* Fallback or placeholder */
    background-size: cover;
    background-position: center;
    border-bottom: 4px solid var(--ac-primary);
    overflow: hidden;
    animation: bgPulse 20s infinite alternate;
}

@keyframes bgPulse {
    0% {
        background-size: 105%;
    }

    100% {
        background-size: 115%;
    }
}

.ac-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--ac-bg-dark) 90%);
    pointer-events: none;
    z-index: 1;
}

.ac-hero-content {
    text-align: center;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.ac-brand-badge {
    display: inline-block;
    background: rgba(85, 107, 47, 0.2);
    border: 1px solid var(--ac-primary);
    color: var(--ac-accent);
    padding: 5px 15px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
}

.ac-hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.04em;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
    color: #ffffff;
}

.ac-hero h1 span {
    color: var(--ac-primary-light);
    display: block;
}

.ac-hero p {
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    color: #a3a3a3;
    margin-bottom: 48px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Hero Tactical Icons Styling */
.ac-spec-item {
    cursor: default;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.ac-spec-item:hover {
    transform: translateY(-5px);
    opacity: 1 !important;
}

.ac-spec-icon-wrapper {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0.4) 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05), 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 4px !important;
    /* Squarer, more industrial */
}

.ac-spec-item:hover .ac-spec-icon-wrapper {
    background: linear-gradient(135deg, rgba(92, 114, 68, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%) !important;
    border-color: var(--ac-primary-light) !important;
    box-shadow: inset 0 0 15px rgba(92, 114, 68, 0.2), 0 10px 25px rgba(0, 0, 0, 0.5);
    transform: scale(1.05);
}

.ac-spec-item:hover span {
    color: var(--ac-accent) !important;
}


.ac-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-radius: 2px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    line-height: 1;
    position: relative;
    overflow: hidden;
}

/* Primary Action: Solid Olive */
.ac-btn-primary {
    background: var(--ac-primary);
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.ac-btn-primary:hover {
    background: var(--ac-primary-dark);
    border-color: var(--ac-primary-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.4);
}

.ac-btn-primary:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Secondary Action: Transparent with Border */
.ac-btn-secondary {
    background: transparent;
    color: var(--ac-primary) !important;
    border: 1px solid var(--ac-primary);
}

.ac-btn-secondary:hover {
    background: rgba(107, 142, 35, 0.1);
    color: #ffffff !important;
    border-color: var(--ac-primary-light);
}

/* Danger Action: Red Border/Text */
.ac-btn-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #ef4444 !important;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.ac-btn-danger:hover {
    background: rgba(220, 38, 38, 0.2);
    border-color: #ef4444;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.2);
}


.ac-btn-sm {
    padding: 6px 15px;
    background: var(--ac-primary);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

/* Sizing Utilities */
.ac-btn-sm {
    padding: 8px 16px;
    font-size: 0.75rem;
}

.ac-btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    letter-spacing: 0.15em;
}

/* Text Safety */
.ac-text-truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


.ac-btn-tactical {
    background: var(--ac-primary);
    color: #fff !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.2s ease-out;
    border-radius: 0.375rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border: none;
}

.ac-btn-tactical:hover {
    background: var(--ac-primary-dark);
    border-color: var(--ac-primary-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-1px);
}

.ac-btn-outline {
    background: transparent;
    border: 1px solid var(--ac-primary-light);
    color: var(--ac-primary-light) !important;
}

.ac-btn-outline:hover {
    background: rgba(107, 142, 35, 0.1);
    color: #fff !important;
    border-color: #fff;
}

/* ==========================================================================
   UNIFIED TAB COMPONENTS (10/10 Standardization)
   ========================================================================== */

/* Tab Container */
.ac-tabs {
    display: flex;
    gap: 2px;
    border-bottom: 1px solid var(--ac-border);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ac-tabs::-webkit-scrollbar {
    display: none;
}

/* Tab Button */
.ac-tab-btn,
.tab-trigger,
.vendor-tab-btn {
    padding: 16px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ac-text-muted);
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

.ac-tab-btn:hover,
.tab-trigger:hover,
.vendor-tab-btn:hover {
    color: var(--ac-text-main);
    background: rgba(107, 142, 35, 0.05);
}

.ac-tab-btn.active,
.tab-trigger.active,
.vendor-tab-btn.active {
    color: var(--ac-primary-light);
    border-bottom-color: var(--ac-primary);
    background: rgba(107, 142, 35, 0.1);
}

/* Tab Content */
.ac-tab-content,
.tab-content,
.product-tab-content {
    display: none;
    animation: tabFadeIn 0.3s ease-out;
}

.ac-tab-content.active,
.tab-content.active,
.product-tab-content.active,
.ac-tab-content:not(.hidden),
.tab-content:not(.hidden),
.product-tab-content:not(.hidden) {
    display: block;
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Features Grid (Marketplace) --- */
.ac-features {
    padding: 80px 0;
    background: var(--ac-bg-dark);
}

.ac-feature-card {
    background: var(--ac-bg-card);
    border: 1px solid var(--ac-border);
    padding: 30px;
    position: relative;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ac-feature-card:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-5px);
}



.ac-feature-icon {
    font-size: 2.5rem;
    color: var(--ac-primary-light);
    margin-bottom: 20px;
}

.ac-feature-card h3 {
    color: var(--ac-text-main);
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-weight: 700;
}

.ac-feature-card p {
    color: var(--ac-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Categories (Military Tiles) --- */
.ac-categories {
    padding: 80px 0;
    background: linear-gradient(to bottom, var(--ac-bg-dark), #151610);
}

.ac-section-header {
    text-align: center;
    margin-bottom: 60px;
}

.ac-section-header h2 {
    font-size: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--ac-text-main);
    margin-bottom: 15px;
}

.ac-section-header p {
    color: var(--ac-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.ac-cat-grid,
.ac-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

@media (min-width: 992px) {

    .ac-cat-grid,
    .ac-grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 576px) {

    .ac-cat-grid,
    .ac-grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
        gap: 10px;
    }

    .ac-vendor-card {
        flex-direction: column;
        text-align: center;
    }

    .ac-vendor-avatar {
        margin-bottom: 10px;
    }

    /* Polish section spacing for smaller screens */
    .ac-hero {
        min-height: 70vh;
    }

    .ac-features,
    .ac-products,
    .ac-categories,
    .ac-vendors {
        padding: 40px 0 !important;
    }

    .ac-section-header {
        margin-bottom: 30px;
    }

    .ac-section-header h2 {
        font-size: 1.8rem;
    }

    .ac-logo-text-main {
        font-size: 1.2rem;
    }

    .ac-logo-text-sub {
        font-size: 0.6rem;
        letter-spacing: 3px;
    }
}

.ac-cat-card {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid var(--ac-border);
}

.ac-cat-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1);
}

.ac-cat-card:hover .ac-cat-bg {
    transform: scale(1.1);
}

.ac-cat-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
}

.ac-cat-title {
    font-size: 1.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #fff;
}

.ac-cat-link {
    color: var(--ac-accent);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    opacity: 0.8;
}

/* --- Product Card (Tactical Picks) --- */
/* --- Product Card (Tactical Picks) --- */
/* Styles moved to Tailwind classes in partials/product_card.php */

/* --- Vendor Spotlight --- */
.ac-vendors {
    padding: 100px 0;
    background: var(--ac-bg-card);
    border-top: 1px solid var(--ac-border);
    border-bottom: 1px solid var(--ac-border);
}

.ac-vendor-card {
    background: var(--ac-bg-dark);
    border: 1px solid var(--ac-border);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s;
}

.ac-vendor-card:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
}


.ac-vendor-avatar {
    width: 60px;
    height: 60px;
    background: var(--ac-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--ac-text-muted);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .ac-hero h1 {
        font-size: 2.2rem;
    }

    .ac-feature-card {
        padding: 20px;
    }
}

/* --- Global Layout Overrides --- */
.arms-complex-theme-page main.container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    margin: 0 !important;
}

@media (min-width: 768px) {
    .arms-complex-theme-page main.container {
        padding-left: 2rem !important;
        padding-right: 2rem !important;
    }
}

.arms-complex-theme-page header {
    background-color: var(--ac-bg-dark) !important;
    border-bottom: 2px solid var(--ac-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0;
    padding: 10px 20px;
    max-width: 100%;
    margin: 0 auto;
}

@media (max-width: 992px) {
    .header-grid {
        grid-template-columns: auto 1fr;
        padding: 10px 15px;
    }
}

.header-sector {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-sector.mission-control {
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.header-sector.tactical-actions {
    justify-content: flex-end;
}

.desktop-nav {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(107, 142, 35, 0.2);
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
    position: relative;
    display: flex;
    justify-content: center;
    max-width: 100%;
    overflow: hidden;
}

.nav-menu-centered {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 15px 20px;
    justify-content: center;
    align-items: center;
}

.nav-menu-centered li a {
    color: #ffffff !important;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(107, 142, 35, 0.15);
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

.nav-menu-centered li a i {
    font-size: 0.8rem;
    color: #6b8e23 !important;
    transition: transform 0.3s;
}

.nav-menu-centered li a:hover {
    color: #ffffff !important;
    background: rgba(107, 142, 35, 0.2);
    border-color: #6b8e23;
    box-shadow: 0 0 25px rgba(107, 142, 35, 0.3), inset 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-menu-centered li a:hover i {
    transform: scale(1.2);
    color: #ffffff !important;
}

.nav-menu-centered li a::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.header-action-icon {
    font-size: 1.2rem;
    color: var(--ac-text-main);
    text-decoration: none;
    position: relative;
    transition: transform 0.2s;
}

.header-action-icon:hover {
    transform: scale(1.1);
    color: var(--ac-primary-light);
}

.action-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--ac-primary-light);
    color: white;
    font-size: 0.65rem;
    padding: 2px 5px;
    border-radius: 10px;
    font-weight: 800;
}

.header-action-link {
    color: var(--ac-text-main);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Standardized ac-btn-sm refactored to top level */


/* Updated Search Trigger */
.header-search-trigger {
    background: var(--ac-bg-card);
    border: 1px solid var(--ac-border);
    padding: 8px 15px;
    border-radius: 4px;
    color: var(--ac-text-muted);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    min-width: 150px;
}

/* Mobile Nav Sidebar Styling */
.mobile-nav-container {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100vh;
    background: var(--ac-bg-dark);
    z-index: 1100;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-right: 1px solid var(--ac-primary);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE and Edge */
}

.mobile-nav-container::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.mobile-nav-container.active {
    left: 0;
}

.mobile-menu-header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--ac-border);
    background: var(--ac-bg-dark);
}

.mobile-menu-header span {
    color: #6b8e23;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.mobile-menu-header i {
    color: #ffffff;
    cursor: pointer;
    font-size: 1.2rem;
}

.mobile-menu-footer {
    margin-top: auto;
    padding: 20px;
    border-top: 1px solid var(--ac-border);
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--ac-bg-dark);
}

.mobile-menu-footer a {
    color: #ffffff !important;
    padding: 10px 15px;
    display: block;
    border-left: 3px solid transparent;
    transition: all 0.3s;
}

.mobile-menu-footer a:hover {
    color: #6b8e23 !important;
    background: rgba(107, 142, 35, 0.1);
    border-left-color: #6b8e23;
}

.text-glow-olive {
    color: #6b8e23 !important;
    text-shadow: 0 0 10px rgba(107, 142, 35, 0.5);
}

.text-olive-500 {
    color: #6b8e23 !important;
}

.logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ac-logo-icon {
    height: 62px;
    width: auto;
    display: block;
    filter: drop-shadow(0 0 10px rgba(92, 114, 68, 0.3));
    margin-top: -5px;
    /* Adjusting for increased height to keep text baseline aligned */
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
}

.arms-complex-theme-page .logo-text span:last-child {
    color: var(--ac-accent) !important;
}

.arms-complex-theme-page .mobile-menu-toggle {
    display: none;
    color: var(--ac-text-main) !important;
    background: transparent;
    border: 1px solid var(--ac-border);
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
}

.arms-complex-theme-page footer {
    background-color: var(--ac-bg-dark) !important;
    border-top: 2px solid var(--ac-primary) !important;
    color: var(--ac-text-main) !important;
    margin-top: 0 !important;
}

.arms-complex-theme-page footer h3,
.arms-complex-theme-page footer h4 {
    color: var(--ac-accent) !important;
}

.arms-complex-theme-page footer .footer-links a {
    color: var(--ac-text-muted) !important;
}

.arms-complex-theme-page footer .footer-links a:hover {
    color: var(--ac-primary-light) !important;
}

.arms-complex-theme-page .bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--ac-bg-dark) !important;
    border-top: 1px solid var(--ac-border) !important;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 998;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    .arms-complex-theme-page .bottom-nav {
        display: flex !important;
    }

    body.arms-complex-theme-page {
        padding-bottom: 90px !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ac-text-muted);
    text-decoration: none;
    font-size: 0.7rem;
    gap: 4px;
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.arms-complex-theme-page .bottom-nav-item.active {
    color: var(--ac-primary-light) !important;
}

.arms-complex-theme-page .nav-menu {
    margin: 0;
    padding: 80px 20px 20px !important;
    list-style: none;
    display: flex;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    background: #000000 !important;
    width: 280px !important;
    height: 100vh !important;
    position: fixed !important;
    top: 0;
    left: -100%;
    /* Default hidden state handled by JS toggling active class which overrides this via .nav-menu.active */
    z-index: 1000;
}

.mobile-only {
    display: none;
}

.desktop-only {
    display: flex !important;
}

.header-search-trigger:hover {
    border-color: var(--ac-primary-light) !important;
    background: var(--ac-bg-dark) !important;
}

.arms-complex-theme-page .nav-menu li a {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-decoration: none;
    transition: color 0.3s;
    padding: 8px 20px;
    display: block;
    border-left: 3px solid transparent;
}

.arms-complex-theme-page .nav-menu li a:hover {
    color: #6b8e23 !important;
    background: rgba(107, 142, 35, 0.1);
    border-left-color: #6b8e23;
}

.arms-complex-theme-page .nav-menu li a i {
    color: #6b8e23 !important;
    margin-right: 10px;
}

/* ==========================================================================
   LAYOUT OVERRIDES (Moved from properties in layout_arms_complex.php)
   ========================================================================== */

/* Force Arms Complex Theme on layout elements */
body.arms-complex-theme-page {
    background-color: #1a1c15;
    color: #f0f2e9;
}

.arms-complex-theme-page header {
    background-color: #1a1c15 !important;
    border-bottom: 2px solid #6b8e23 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5) !important;
    padding: 10px 0 !important;
}

.arms-complex-theme-page .main-nav-container {
    background: #000000 !important;
    border-top: 1px solid #333333 !important;
}

.arms-complex-theme-page .nav-menu li a {
    color: #999999 !important;
    font-weight: 800 !important;
}

.arms-complex-theme-page .nav-menu li a:hover {
    color: #FFFFFF !important;
}

.arms-complex-theme-page footer {
    background-color: #1a1c15 !important;
    border-top: 2px solid #6b8e23 !important;
    padding: 60px 0 !important;
    margin-top: 0 !important;
}

.arms-complex-theme-page footer h4 {
    color: #d2b48c !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.arms-complex-theme-page footer .footer-links a {
    color: #a3a899 !important;
}

.arms-complex-theme-page footer .footer-links a:hover {
    color: #6b8e23 !important;
    padding-left: 5px;
}

.ac-logo-text-main {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #f0f2e9;
}

.ac-logo-text-sub {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 6px;
    color: #d2b48c;
    text-transform: uppercase;
}

.notification-badge {
    background: #6b8e23 !important;
    border: 2px solid #1a1c15 !important;
}

/* Tactical Search Overlay Refinements */
.search-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(10, 12, 8, 0.98) !important;
    padding-top: 60px;
    z-index: 10000 !important;
    display: none;
    overflow-y: auto;
}

.search-container {
    max-width: 900px !important;
    margin: 0 auto !important;
    animation: tacticalSlideIn 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes tacticalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#ajax-search-input {
    background: #1a1c15 !important;
    border: 2px solid #3d4232 !important;
    border-radius: 4px !important;
    color: #f0f2e9 !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1.2rem !important;
    padding: 15px 15px 15px 50px !important;
    letter-spacing: 2px !important;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
}

#ajax-search-input:focus {
    border-color: var(--ac-primary-light) !important;
    box-shadow: 0 0 20px rgba(107, 142, 35, 0.2), inset 0 0 10px rgba(0, 0, 0, 0.5) !important;
    outline: none !important;
}

.ac-search-scanning-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 0;
    background: var(--ac-primary-light);
    box-shadow: 0 0 10px var(--ac-primary-light);
    transition: width 0.3s ease;
}

.searching .ac-search-scanning-bar {
    animation: scanningPulse 1.5s infinite ease-in-out;
}

@keyframes scanningPulse {
    0% {
        width: 0;
        left: 0;
    }

    50% {
        width: 100%;
        left: 0;
    }

    100% {
        width: 0;
        left: 100%;
    }
}

.search-icon {
    position: absolute;
    left: 15px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.4rem !important;
    transition: all 0.3s ease !important;
    z-index: 5;
}

#ajax-search-input:focus+.search-icon {
    color: var(--ac-primary-light) !important;
    text-shadow: 0 0 10px var(--ac-primary-light);
}

.search-results {
    margin-top: 30px;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.search-results .ac-prod-card {
    background: #262920 !important;
    border: 1px solid #3d4232 !important;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 20px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.search-results .ac-prod-card:hover {
    border-color: var(--ac-primary-light);
    background: #2c3127 !important;
    transform: translateX(10px);
}

/* Tactical Age Verification Modal Overrides */
#age-verification-modal {
    background: rgba(10, 12, 8, 0.99) !important;
}

#age-verification-modal .age-modal-content {
    background: #1a1c15 !important;
    border: 2px solid #6b8e23 !important;
    box-shadow: 0 0 50px rgba(85, 107, 47, 0.3) !important;
}

#age-verification-modal h2 {
    color: #f0f2e9 !important;
}

#age-verification-modal .fas.fa-shield-alt {
    color: #6b8e23 !important;
}

#age-confirm-btn {
    background: #6b8e23 !important;
    border-color: #6b8e23 !important;
    color: white !important;
}

#age-confirm-btn:hover {
    background: #6b8e23 !important;
    border-color: #6b8e23 !important;
}

#age-exit-btn {
    color: #a3a899 !important;
    border-color: #3d4232 !important;
}

/* --- HUD & Animations --- */
.arms-complex-theme-page header {
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(26, 28, 21, 0.9) !important;
    backdrop-filter: blur(15px);
    padding: 5px 0 !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.6) !important;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Scanline Effect */
.ac-scanline-container {
    position: relative;
    overflow: hidden;
}

.ac-scanline-container::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(107, 142, 35, 0) 0%,
            rgba(107, 142, 35, 0.05) 50%,
            rgba(107, 142, 35, 0) 100%);
    background-size: 100% 4px;
    animation: scanline 4s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Tactical Status Badges */
.ac-status-badge {
    padding: 2px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 1px solid currentColor;
}

.ac-status-verified {
    color: var(--ac-primary-light);
    background: rgba(107, 142, 35, 0.1);
}

.ac-status-critical {
    color: var(--ac-accent-bright);
    background: rgba(244, 164, 96, 0.1);
}

.ac-status-secure {
    color: var(--ac-accent);
    background: rgba(210, 180, 140, 0.1);
}

/* Hover HUD effect */
.ac-cat-card:hover .ac-cat-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--ac-accent-bright);
}

.ac-vendor-card:hover {
    border-color: var(--ac-primary-light);
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(107, 142, 35, 0.2);
}

#age-exit-btn:hover {
    background: rgba(85, 107, 47, 0.1) !important;
    border-color: #6b8e23 !important;
}

/* Notification Dropdown HUD */
.notification-dropdown {
    position: absolute;
    top: 45px;
    right: 0;
    width: 320px;
    background: rgba(38, 41, 32, 0.98);
    border: 1px solid var(--ac-border);
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 2000;
    backdrop-filter: blur(15px);
}

.notification-dropdown.active {
    display: block;
    animation: hudSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes hudSlideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-dropdown-header {
    padding: 15px;
    border-bottom: 1px solid var(--ac-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(85, 107, 47, 0.1);
}

.notification-dropdown-header h4 {
    margin: 0;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ac-primary-light);
}

.view-all-link {
    font-size: 0.7rem;
    color: var(--ac-accent);
    text-decoration: none;
    text-transform: uppercase;
}

.notification-dropdown-body {
    max-height: 400px;
    overflow-y: auto;
}

.notification-dropdown-item:hover {
    background: rgba(85, 107, 47, 0.2);
}

.notification-loading {
    padding: 20px;
    text-align: center;
    color: var(--ac-text-muted);
    font-size: 0.8rem;
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        color: #ffffff !important;
        cursor: pointer !important;
        font-size: 1.5rem !important;
        background: transparent !important;
        border: none !important;
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* Mobile Header Responsive Fixes */
    .header-grid {
        padding: 8px 10px !important;
        gap: 10px !important;
    }

    .header-sector {
        gap: 8px !important;
    }

    .header-sector.tactical-actions {
        gap: 12px !important;
    }

    /* Logo Responsive */
    .logo i {
        font-size: 1.3rem !important;
    }

    .ac-logo-text-main {
        font-size: 0.95rem !important;
    }

    .ac-logo-text-sub {
        font-size: 0.5rem !important;
        letter-spacing: 1px !important;
    }

    /* Header Icons */
    .header-action-icon {
        font-size: 1.1rem !important;
        padding: 5px;
    }

    .notification-dropdown {
        width: 100%;
        max-width: 320px;
        right: 10px;
        left: auto;
    }

    /* Smaller Mobile Search Trigger if visible */
    .header-search-trigger {
        padding: 6px 10px !important;
        min-width: auto !important;
        font-size: 0.75rem !important;
    }

    .header-search-trigger span {
        display: none;
    }

    /* Logo Text Adjustment for very small screens */
    @media (max-width: 360px) {
        .ac-logo-text-main {
            font-size: 0.8rem !important;
        }

        .logo i {
            display: none;
            /* Hide icon to save space */
        }
    }

    .header-action-icon i {
        font-size: 1.1rem !important;
    }

    /* Cart Badge */
    .action-badge {
        font-size: 0.6rem !important;
        padding: 1px 4px !important;
        min-width: 16px !important;
        height: 16px !important;
    }

    /* Login Button */
    .ac-btn-sm {
        padding: 5px 10px !important;
        font-size: 0.7rem !important;
        width: auto !important;
        white-space: nowrap !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: center !important;
    }

    .main-nav-container {
        /* Do NOT display:none, or the child fixed menu will hide too */
        background: transparent !important;
        border: none !important;
        padding: 0 !important;
        height: 0;
        overflow: visible !important;
    }

    /* Side Drawer Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--ac-bg-card);
        border-right: 1px solid var(--ac-border);
        flex-direction: column;
        justify-content: flex-start !important;
        align-items: flex-start !important;
        /* Ensure items align left */
        padding: 80px 20px 20px !important;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.5);
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        display: flex !important;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        width: 100%;
        margin-bottom: 20px;
        display: block;
        /* Ensure list items stack */
    }

    .nav-menu li a {
        display: flex;
        align-items: center;
        padding: 15px;
        font-size: 1rem !important;
        border-bottom: 1px solid var(--ac-border);
        color: var(--ac-text-main);
        width: 100%;
        /* Full width */
    }

    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.05);
        padding-left: 20px;
    }

    /* Menu Overlay */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        backdrop-filter: blur(2px);
    }
}

/* ================================================
   MOBILE APP SHELL & NAVIGATION
   ================================================ */

.ac-app-shell {
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--ac-bg-darker);
    z-index: 1000;
}

.ac-app-header {
    flex-shrink: 0;
    height: 60px;
    background: rgba(10, 12, 8, 0.95);
    border-bottom: 1px solid var(--ac-border);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

.ac-app-content {
    flex-grow: 1;
    overflow-y: auto;
    padding-bottom: 90px;
    -webkit-overflow-scrolling: touch;
}

/* Persistent Bottom Nav */
.ac-app-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 75px;
    background: rgba(5, 5, 5, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid var(--ac-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100000;
    padding-bottom: env(safe-area-inset-bottom);
}

.ac-app-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    color: var(--ac-text-muted);
    text-decoration: none;
    font-size: 0.6rem;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    transition: all 0.3s;
    flex: 1;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ac-app-nav-item i {
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.ac-app-nav-item:active i {
    transform: scale(0.85);
}

.ac-app-nav-item.active {
    color: var(--ac-primary-light);
}

.ac-app-nav-item.active i {
    color: var(--ac-primary);
    filter: drop-shadow(0 0 8px var(--ac-primary));
}

/* App Grid Menu */
.ac-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    padding: 20px;
}

.ac-app-tile {
    background: rgba(20, 25, 15, 0.4);
    border: 1px solid var(--ac-border);
    aspect-ratio: 1/1;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ac-text-main);
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.ac-app-tile i {
    font-size: 1.8rem;
    color: var(--ac-primary-light);
    opacity: 0.8;
}

.ac-app-tile span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.ac-app-tile:active {
    background: rgba(85, 107, 47, 0.2);
    transform: scale(0.92);
    border-color: var(--ac-primary);
}

/* App Modules */
.ac-app-card {
    background: rgba(15, 18, 12, 0.6);
    border: 1px solid var(--ac-border);
    border-radius: 4px;
    padding: 20px;
    margin: 15px;
    position: relative;
}

.ac-app-card-title {
    font-size: 0.7rem;
    font-family: 'Inter', sans-serif;
    color: var(--ac-primary-light);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ac-app-card-title::before {
    content: '';
    width: 3px;
    height: 10px;
    background: var(--ac-primary);
}

/* Hide Global Layout when in App Shell */
.ac-app-shell~header,
.ac-app-shell~footer,
.ac-app-shell~.mobile-nav,
.arms-complex-theme-page.is-app-mode header,
.arms-complex-theme-page.is-app-mode footer,
.arms-complex-theme-page.is-app-mode .mobile-nav,
.arms-complex-theme-page.is-app-mode .header-sub-bar {
    display: none !important;
}

.arms-complex-theme-page.is-app-mode {
    overflow: hidden;
    height: 100vh;
}

/* App Header Logic */
.ac-app-header-title {
    flex-grow: 1;
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ac-text-main);
}

.ac-app-header-action {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ac-text-muted);
}

/* Dashboard App Overrides */
.is-app-mode .dashboard-container {
    height: 100%;
    margin: 0;
    gap: 0;
    padding: 0;
}

.is-app-mode .dashboard-sidebar {
    display: none !important;
    /* Managed by bottom nav */
}

@media (min-width: 993px) {
    .is-app-mode .dashboard-sidebar {
        display: flex !important;
        flex-direction: column !important;
        width: 280px;
        background: rgba(10, 12, 8, 0.4);
        border-right: 1px solid var(--ac-border);
        padding: 20px;
    }

    .ac-app-nav {
        display: none !important;
    }

    .ac-app-shell {
        position: relative;
        height: auto;
        min-height: 100vh;
        overflow: visible;
    }
}

/* --- HUD Decorators & Fragments --- */
.ac-hud-bracket {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    opacity: 0.8;
}

/* Global Terminal Card Edge White Override */
.terminal-card {
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.terminal-card:hover {
    border-color: rgba(255, 255, 255, 0.5) !important;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), 0 0 20px rgba(107, 142, 35, 0.1);
}


/* Internal elements within terminal-card that use olive borders */
.terminal-card [class*="border-olive-500"] {
    border-color: rgba(255, 255, 255, 0.15) !important;
}

.terminal-card .ac-hud-bracket {
    border-color: rgba(255, 255, 255, 0.6) !important;
}




.ac-hud-bracket-tl {
    top: -2px;
    left: -2px;
    border-right: 0;
    border-bottom: 0;
}

.ac-hud-bracket-tr {
    top: -2px;
    right: -2px;
    border-left: 0;
    border-bottom: 0;
}

.ac-hud-bracket-bl {
    bottom: -2px;
    left: -2px;
    border-right: 0;
    border-top: 0;
}

.ac-hud-bracket-br {
    bottom: -2px;
    right: -2px;
    border-left: 0;
    border-top: 0;
}

.ac-data-pipeline {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ac-primary-light), transparent);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.ac-data-pipeline::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: pipelineFlow 2s infinite linear;
}

@keyframes pipelineFlow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.ac-text-glitch:hover {
    animation: glitchText 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
}

@keyframes glitchText {
    0% {
        transform: translate(0);
    }

    25% {
        text-shadow: -2px 0 #5C7244, 2px 0 #E8A70A;
        transform: translate(-1px, -1px);
    }

    50% {
        text-shadow: 2px 0 #5C7244, -2px 0 #E8A70A;
        transform: translate(1px, 1px);
    }

    75% {
        transform: translate(-2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.ac-bg-grid-pulse {
    background-image: radial-gradient(var(--ac-primary-dark) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridPulse 8s ease-in-out infinite;
}

@keyframes gridPulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Force Grid Columns on Desktop (High Density Protocol) */
@media (min-width: 1280px) {
    .arms-complex-theme-page .grid.xl\:grid-cols-5 {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

@media (min-width: 1024px) and (max-width: 1279px) {
    .arms-complex-theme-page .grid.lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .arms-complex-theme-page .grid.md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

@media (max-width: 767px) {
    .arms-complex-theme-page .grid.grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        display: grid !important;
    }
}

/* Ensure flex children don't overflow with grids */
.arms-complex-theme-page main.flex-1 {
    min-width: 0;
}

/* --- TACTICAL UTILITIES & EFFECTS --- */
.text-glow-olive {
    text-shadow: 0 0 10px rgba(107, 142, 35, 0.5), 0 0 20px rgba(107, 142, 35, 0.3);
}

.bg-scanline {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.05) 50%,
            rgba(255, 255, 255, 0) 100%);
    background-size: 100% 4px;
}

/* ==========================================================================
   MOBILE MENU OVERRIDES - HIGHEST PRIORITY
   ========================================================================== */

/* Hide scrollbar on mobile menu */
.mobile-nav-container,
.mobile-nav-container .nav-menu {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}

.mobile-nav-container::-webkit-scrollbar,
.mobile-nav-container .nav-menu::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* Mobile menu background to match header */
.arms-complex-theme-page .mobile-nav-container {
    background: #1a1c15 !important;
    border-right: 2px solid #6b8e23 !important;
}

/* Menu items - WHITE text, reduced gap */
.arms-complex-theme-page .mobile-nav-container .nav-menu li a,
.mobile-nav-container .nav-menu li a,
body.arms-complex-theme-page .nav-menu li a {
    color: #ffffff !important;
    padding: 10px 15px !important;
    margin: 0 !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    border-bottom: 1px solid rgba(107, 142, 35, 0.2) !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

/* Menu item icons - olive green */
.arms-complex-theme-page .mobile-nav-container .nav-menu li a i,
.mobile-nav-container .nav-menu li a i,
body.arms-complex-theme-page .nav-menu li a i {
    color: #6b8e23 !important;
    width: 20px !important;
    text-align: center !important;
}

/* Menu item hover */
.arms-complex-theme-page .mobile-nav-container .nav-menu li a:hover,
.mobile-nav-container .nav-menu li a:hover {
    background: rgba(107, 142, 35, 0.15) !important;
    color: #6b8e23 !important;
}

/* Mobile menu header */
.arms-complex-theme-page .mobile-nav-container .mobile-menu-header,
.mobile-nav-container .mobile-menu-header {
    background: #1a1c15 !important;
    border-bottom: 1px solid #6b8e23 !important;
    padding: 15px !important;
}

.mobile-menu-header span {
    color: #6b8e23 !important;
}

.mobile-menu-header i {
    color: #ffffff !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
}

/* Mobile menu footer */
.arms-complex-theme-page .mobile-nav-container .mobile-menu-footer a,
.mobile-nav-container .mobile-menu-footer a {
    color: #ffffff !important;
    padding: 10px 15px !important;
}

/* Remove list item margins for tighter spacing */
.mobile-nav-container .nav-menu li {
    margin: 0 !important;
    padding: 0 !important;
}

.lowercase {
    text-transform: lowercase;
}

/* ==========================================================================
   FIX: Prevent content sliding/scroll separation issue
   ========================================================================== */
html,
body {
    position: relative !important;
    overflow-x: hidden !important;
}

body.arms-complex-theme-page {
    position: relative !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.arms-complex-theme-page main,
.arms-complex-theme-page .container,
.arms-complex-theme-page .ac-content-wrapper,
.arms-complex-theme-page .ac-app-shell {
    position: relative !important;
    transform: none !important;
}

/* Ensure footer stays in flow */
.arms-complex-theme-page footer {
    position: relative !important;
    transform: none !important;
}

/* ==========================================================================
   FIX: Content z-index to prevent overlap with footer
   ========================================================================== */
.arms-complex-theme-page main {
    z-index: 1 !important;
}

.arms-complex-theme-page footer {
    z-index: 1 !important;
}

/* Ensure content wrapper has proper z-index */
.ac-content-wrapper,
.ac-app-shell {
    z-index: auto !important;
}

/* Fix bottom navigation z-index on mobile */
@media (max-width: 768px) {
    .bottom-nav {
        z-index: 100 !important;
    }

    /* Add padding to prevent content hiding behind bottom nav */
    .arms-complex-theme-page main {
        padding-bottom: 100px !important;
    }

    .arms-complex-theme-page footer {
        padding-bottom: 90px !important;
    }
}

/* --- AC Refactored Utility Classes (Replaces Inline Styles) --- */

/* Grids */
.ac-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Headers */
.ac-header-label {
    font-size: 0.7rem;
    color: var(--ac-primary-light);
    font-family: 'Inter', sans-serif;
    margin-bottom: 5px;
    text-transform: uppercase;
}

/* Product Cards */
.ac-product-card {
    background: var(--ac-bg-card);
    border: 1px solid var(--ac-border);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    height: 100%;
    /* Ensure uniform height in grid */
    display: flex;
    flex-direction: column;
    text-decoration: none;
    /* Ensure link wrapper doesn't underline */
}

.ac-prod-img {
    height: 220px;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #121212;
    /* Fallback for transparency */
}

.ac-prod-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ac-product-card:hover .ac-prod-img img {
    transform: scale(1.05);
    /* Zoom effect */
}

.ac-overlay-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 3;
}

.ac-status-low {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
}

.ac-prod-info {
    padding: 20px;
    border-top: 1px solid var(--ac-border);
    flex-grow: 1;
    /* Push footer down if we had one */
    display: flex;
    flex-direction: column;
}

.ac-prod-serial {
    font-size: 0.65rem;
    color: var(--ac-primary-light);
    margin-bottom: 5px;
    font-weight: 800;
    letter-spacing: 1px;
    font-family: 'Inter', sans-serif;
}

.ac-prod-title {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: var(--ac-text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ac-prod-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    /* Push to bottom of content area */
}

.ac-prod-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--ac-accent);
    font-family: 'Inter', sans-serif;
}

.ac-prod-enc {
    font-size: 0.8rem;
    color: var(--ac-text-muted);
}

.ac-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
}

/* Call to Action Section */
.ac-cta-section {
    padding: 100px 0;
    text-align: center;
    background-color: var(--ac-primary-dark);
    background-image: url('/assets/images/pattern_camo.png');
    background-blend-mode: overlay;
    background-size: cover;
}

.ac-cta-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ac-cta-desc {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.ac-cta-btn {
    background: var(--ac-accent);
    color: #000 !important;
    border-color: var(--ac-accent);
}

/* --- Mobile Responsiveness Overrides --- */
@media (max-width: 768px) {

    /* Hero */
    .ac-hero {
        min-height: auto;
        padding: 60px 0;
    }

    .ac-hero h1 {
        font-size: 2.5rem;
        /* Smaller font */
    }

    .ac-hero p {
        font-size: 1rem;
        padding: 0 10px;
    }

    /* Features Grid: Allow 1 column naturally via auto-fit, but prevent overflow */
    .ac-features-grid {
        grid-template-columns: 1fr;
        /* Force 1 column on tablet/mobile for features to ensure readability */
        padding: 0 10px;
    }

    /* Products Grid: Force 2 columns for "Ordnance Manifest" */
    .ac-grid-responsive {
        grid-template-columns: repeat(2, 1fr) !important;
        /* Force 2 columns */
        display: grid;
        gap: 10px;
        /* Tighter gap */
        padding: 0 10px;
        /* Note: style.css global might override this. Let's ensure it doesn't break. */
    }

    /* Product Card adjustments for 2-column layout */
    .ac-prod-img {
        height: 160px;
        /* Shorter image */
    }

    .ac-prod-info {
        padding: 12px;
        /* Less padding */
    }

    .ac-prod-title {
        font-size: 0.95rem;
        /* Smaller title */
    }

    .ac-prod-price {
        font-size: 1rem;
    }

    .ac-prod-serial {
        display: none;
        /* Hide serial on mobile to save space */
    }

    /* Sections */
    .ac-products {
        padding: 40px 0 !important;
        /* Reduce padding */
    }

    .ac-categories {
        padding: 40px 0 !important;
    }

    .ac-vendors {
        padding: 40px 0 !important;
    }

    /* Category Grid */
    .ac-cat-grid {
        grid-template-columns: repeat(2, 1fr);
        /* Ensure 2 columns */
        gap: 10px;
        padding: 0 10px;
    }

    .ac-cta-section {
        padding: 60px 0;
    }

    .ac-cta-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {

    /* Very small screens */
    .ac-hero h1 {
        font-size: 2rem;
    }

    /* Keep 2 columns for products/categories but maybe tighten more? */
    .ac-prod-img {
        height: 140px;
    }
}

/* ==========================================================================
   MIGRATED RESPONSIVE UTILITIES (from mobile-responsive.css)
   ========================================================================== */

/* === GRID SYSTEM === */
.grid-3,
.product-grid,
.shop-grid,
.featured-products,
.category-grid,
.vendor-grid {
    display: grid;
    gap: 20px;
}

/* Desktop: 4 columns */
@media (min-width: 1200px) {

    .grid-3,
    .product-grid,
    .shop-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Laptop: 3 columns */
@media (min-width: 969px) and (max-width: 1199px) {

    .grid-3,
    .product-grid,
    .shop-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet: 2 columns */
@media (min-width: 769px) and (max-width: 968px) {

    .grid-3,
    .product-grid,
    .shop-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 2 columns (Critical for Shop) */
@media (max-width: 768px) {

    .grid-3,
    .product-grid,
    .shop-grid,
    .shop-grid-container,
    .vendors-grid,
    .featured-products,
    .category-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }

    .card {
        padding: 15px;
    }

    /* Prevent Sidebar Blowout */
    .sidebar,
    #shopSidebar,
    .filter-toggle-btn {
        display: none !important;
    }

    .shop-container,
    .product-grid {
        width: 100% !important;
        display: grid !important;
    }
}

/* Small Mobile: 1 Column */
@media (max-width: 400px) {

    .grid-3,
    .product-grid {
        grid-template-columns: 1fr !important;
    }

    /* Keep Vendors 2-col even on small if possible, or 1-col if too tight */
    .vendors-grid,
    .shop-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .vendors-grid .vendor-card,
    .shop-grid .card {
        min-width: 0 !important;
        width: 100% !important;
    }
}

/* === MOBILE UTILITIES === */
@media (max-width: 768px) {
    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        background: none;
        border: none;
        color: var(--ac-text-main);
        font-size: 1.5rem;
        cursor: pointer;
        padding: 10px;
    }

    /* Fixed Sidebar Menu */
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%;
        /* Hidden by default */
        width: 280px;
        height: 100vh;
        background: var(--ac-bg-dark);
        /* Use AC Theme Var */
        border-right: 1px solid var(--ac-border);
        padding: 80px 20px 20px;
        transition: left 0.3s ease;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: 5px 0 20px rgba(0, 0, 0, 0.5);
    }

    .nav-menu.active {
        left: 0;
    }

    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        z-index: 9998;
    }
}

/* ==========================================================================
   CONSOLIDATED ACCESSIBILITY STYLES (from accessibility_fixes.css)
   ========================================================================== */

/* Form Input Base Styles */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
textarea,
select {
    background-color: var(--ac-bg-card);
    border: 1px solid var(--ac-border);
    color: var(--ac-text-main);
    padding: 12px 16px;
    border-radius: 2px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

input:disabled,
textarea:disabled,
select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: var(--ac-bg-dark);
}

/* Responsive Button Scaling */
.btn,
button[type="submit"],
button[type="button"],
.tab-trigger {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
}

@media (min-width: 768px) {

    .btn,
    button[type="submit"],
    button[type="button"] {
        font-size: 1rem;
        padding: 1rem 2rem;
    }

    .tab-trigger {
        font-size: 1.125rem;
        padding: 1.25rem 1rem;
    }
}

@media (min-width: 1024px) {

    .btn,
    button[type="submit"],
    button[type="button"] {
        font-size: 1.125rem;
        padding: 1.25rem 2.5rem;
    }

    .tab-trigger {
        font-size: 1.25rem;
    }
}

/* Touch-Friendly Targets */
@media (max-width: 767px) {

    button,
    .btn,
    a[class*="btn"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* EMERGENCY MOBILE MENU FIX */
.arms-complex-theme-page .nav-menu.active,
.nav-menu.active {
    left: 0 !important;
    z-index: 999999 !important;
    display: flex !important;
}

.mobile-menu-toggle {
    color: #fff !important;
    opacity: 1 !important;
    z-index: 2000 !important;
}

.arms-complex-theme-page .nav-menu li a {
    pointer-events: auto !important;
    position: relative !important;
    z-index: 1000000 !important;
    cursor: pointer !important;
}

.arms-complex-theme-page .nav-menu {
    pointer-events: auto !important;
}