:root {
    --bg: #0A0A0A;
    --grid: #222222;
    --text-main: #FFFFFF;
    --text-muted: #888888;
    --accent: #FF2A2A;
    --hero-left-image: url('../images/hero-test-map.svg');
    --hero-image-panel-width: clamp(280px, 34vw, 520px);
    --panel-pad: 40px;
    --font-main: 'Inter', -apple-system, sans-serif;
    --font-data: 'Roboto Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border-radius: 0 !important;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: var(--font-main);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.site-main {
    display: contents;
}

.skip-link,
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    top: 16px;
    left: 16px;
    width: auto;
    height: auto;
    clip: auto;
    margin: 0;
    padding: 12px 16px;
    background: #000;
    color: #fff;
    border: 1px solid var(--accent);
    z-index: 10001;
    transform: translateY(-200%);
    transition: transform 0.2s ease;
}

.skip-link:focus-visible {
    transform: translateY(0);
}

/* CUSTOM SCROLLBARS */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #000;
    border-left: 1px solid var(--grid);
}

::-webkit-scrollbar-thumb {
    background: #333;
    border: 1px solid #000;
    border-radius: 0;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* DATA DENSITY ELEMENTS */
.grid-container {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    max-width: 100%;
    margin: 0;
    width: 100%;
}

.panel {
    border-right: 1px solid var(--grid);
    border-bottom: 1px solid var(--grid);
    padding: var(--panel-pad);
    position: relative;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--grid);
    padding-bottom: 15px;
}

.label {
    font-family: var(--font-data);
    font-size: 14px;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
}

.meta-text {
    font-family: var(--font-data);
    font-size: 14px;
    color: var(--text-muted);
}

/* NAVIGATION */
nav {
    grid-column: span 12;
    display: flex;
    background: #000;
    height: 80px;
    align-items: center;
    border-bottom: 1px solid var(--grid);
    position: sticky;
    top: 0;
    z-index: 9990;
    transition: transform 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

nav.nav-hidden {
    transform: translateY(-100%);
}

.nav-link {
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 40px;
    color: var(--text-main);
    text-decoration: none;
    border-right: 1px solid var(--grid);
    text-transform: uppercase;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.2s;
}

.nav-link:hover {
    background: #1a1a1a;
    color: var(--accent);
}

.nav-link.active {
    background: #050505;
    color: var(--accent);
}

/* Secondary Navigation / Tabs */
.secondary-nav {
    grid-column: span 12;
    display: flex;
    background: #000;
    border-bottom: 1px solid var(--grid);
    height: 60px;
}

.tab-link {
    height: 100%;
    padding: 0 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-family: var(--font-data);
    font-size: 14px;
    text-transform: uppercase;
    border-right: 1px solid var(--grid);
    transition: all 0.2s;
    cursor: pointer;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
}

.tab-link:hover { color: var(--accent); background: #050505; }
.tab-link.active {
    background: #111;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

/* Subcategory Headers */
.subcategory-header {
    grid-column: span 12;
    background: #1a1a1a;
    border-bottom: 2px solid var(--grid);
    padding: 25px 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.subcategory-dot {
    width: 12px;
    height: 12px;
    background: var(--accent);
    box-shadow: 0 0 10px var(--accent);
}

.subcategory-title {
    font-family: var(--font-data);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: #fff;
}

/* HERO */
.hero {
    grid-column: span 12;
    display: grid;
    grid-template-columns: 1fr 450px;
}

.hero-main {
    position: relative;
    overflow: hidden;
    padding: 100px 60px;
    padding-right: calc(var(--hero-image-panel-width) + 90px);
    border-right: 1px solid var(--grid);
    min-height: calc(var(--hero-image-panel-width) + 56px);
    background: #000;
}

.hero-main::before {
    content: '';
    position: absolute;
    top: 28px;
    right: 24px;
    width: var(--hero-image-panel-width);
    aspect-ratio: 1 / 1;
    background-image: var(--hero-left-image), url('../images/ufo-left-panel.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    filter: grayscale(100%) contrast(1.05);
    opacity: 0.94;
    border: 1px solid var(--grid);
    z-index: 0;
}

.hero-main::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 24px;
    width: var(--hero-image-panel-width);
    aspect-ratio: 1 / 1;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.44) 100%);
    z-index: 1;
}

.hero-main > * {
    position: relative;
    z-index: 2;
}

h1 {
    font-size: 84px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 30px;
    letter-spacing: -3px;
}

.sub-header {
    font-size: 22px;
    color: var(--text-muted);
    max-width: 900px;
    margin-bottom: 50px;
}

.btn {
    background: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-block;
}

.btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.nav-link:focus-visible,
.jump-item:focus-visible,
.footer-link:focus-visible,
.tab-link:focus-visible,
.search-btn:focus-visible,
.mobile-nav-item:focus-visible,
.mobile-nav-link:focus-visible,
#back-to-top:focus-visible,
#scrollTop:focus-visible,
.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.hero-stats {
    padding: 60px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* FAKE GRAPHS */
.mini-graph {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 60px;
}

.bar {
    background: var(--grid);
    width: 6px;
}

.bar.active { background: var(--accent); }
/* EVENT PANELS (TIMELINE LISTS) */
.section-panel {
    grid-column: span 12;
}

.carousel-wrap {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.event-panel {
    min-width: 33.333%;
    border-right: 1px solid var(--grid);
    padding: 25px;
    transition: background 0.2s;
}

.event-panel--linked {
    display: flex;
    flex-direction: row;
    text-decoration: none;
    color: inherit;
}

.event-panel--linked:hover {
    background: rgba(255, 42, 42, 0.03);
}

.event-panel--linked:hover h3 {
    color: var(--accent);
}

.event-panel:last-child { border-right: none; }

.event-panel__image {
    width: 140px;
    min-height: 140px;
    flex-shrink: 0;
    overflow: hidden;
    border-right: 1px solid var(--grid);
    aspect-ratio: 1 / 1;
}

.event-panel__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s;
}

.event-panel--linked:hover .event-panel__image img {
    transform: scale(1.05);
}

.event-panel__placeholder {
    width: 100%;
    height: 100%;
    min-height: 140px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--text-muted);
}

.event-panel__content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.event-panel__content h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 8px 0;
    line-height: 1.3;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-panel__excerpt {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-panel:not(.event-panel--linked) h3 {
    font-size: 24px;
    margin: 15px 0;
}

.jump-nav {
    display: flex;
    gap: 1px;
    background: var(--grid);
    margin-bottom: 25px;
}

.jump-item {
    background: var(--bg);
    padding: 10px 20px;
    font-family: var(--font-data);
    font-size: 14px;
    text-decoration: none;
    color: var(--text-muted);
    border: none;
    cursor: pointer;
}

.jump-item:hover { color: var(--accent); }

.jump-item:focus-visible {
    color: var(--accent);
    background: #050505;
}

.search-bar {
    display: flex;
    border: 1px solid var(--grid);
}

.search-bar input {
    background: transparent;
    border: none;
    color: white;
    padding: 20px;
    flex-grow: 1;
    font-size: 18px;
    font-family: var(--font-data);
}

.search-bar input::placeholder,
.email-input input::placeholder {
    color: var(--text-muted);
}

.search-btn {
    background: var(--accent);
    border: none;
    color: white;
    padding: 0 40px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}

/* DIRECTORY */
.dir-quadrant {
    grid-column: span 6;
    min-height: 350px;
    padding: var(--panel-pad);
}

.dir-quadrant h2 {
    font-size: 32px;
    margin: 20px 0;
}

/* COMMS */
.comms-panel {
    grid-column: span 12;
    background: #0f0f0f;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px var(--panel-pad);
}

.comms-panel p {
    font-size: 20px;
}

.email-input {
    display: flex;
    gap: 15px;
}

.email-input input {
    background: transparent;
    border: 1px solid var(--grid);
    color: white;
    padding: 15px 25px;
    font-family: var(--font-data);
    font-size: 16px;
    width: 350px;
}

/* FOOTER */
footer {
    grid-column: span 12;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--grid);
    background: var(--bg);
}

.footer-col {
    padding: 40px;
    border-right: 1px solid var(--grid);
}

.footer-col:last-child { border-right: none; }

.footer-link {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    margin-bottom: 10px;
}

.footer-link:hover { color: white; }

.footer-link:focus-visible {
    color: #fff;
}

/* DECORATION */
.notification-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    display: inline-block;
    margin-right: 12px;
    box-shadow: 0 0 10px var(--accent);
}

/* HAMBURGER MENU */
.nav-hamburger {
    display: none;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 20px;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

.nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

.nav-clock {
    margin-left: auto;
    padding-right: 15px;
    font-family: var(--font-data);
    font-size: 10px;
    color: var(--text-muted);
}

.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #000;
    z-index: 9989;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-nav-panel {
    padding-top: 70px;
    display: flex;
    flex-direction: column;
}

.mobile-nav-item {
    display: block;
    padding: 18px 30px;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    border-bottom: 1px solid var(--grid);
    transition: all 0.2s ease;
}

.mobile-nav-item:hover,
.mobile-nav-item.active {
    color: var(--accent);
    background: #111;
}

.mobile-nav-clock {
    padding: 18px 30px;
    font-family: var(--font-data);
    font-size: 11px;
    color: var(--text-muted);
}

/* MEDIA QUERIES */
@media (max-width: 1200px) {
    .hero { grid-template-columns: 1fr; }
    .hero-main {
        border-right: none;
        border-bottom: 1px solid var(--grid);
        padding-right: 60px;
    }
    .hero-main::before,
    .hero-main::after {
        display: none;
    }
    h1 { font-size: 64px; }
}

@media (max-width: 900px) {
    .event-panel--linked { padding: 0; }
    .event-panel__image { width: 120px; min-height: 120px; }
    .event-panel__content { padding: 15px 18px; }
    .dir-quadrant { grid-column: span 12; padding: 20px; }
    footer { grid-template-columns: 1fr 1fr; }
    .comms-panel { flex-direction: column; gap: 30px; text-align: center; padding: 40px 20px; }
    .email-input { width: 100%; max-width: 400px; }
    .email-input input { width: 100%; }

    /* Mobile nav: hamburger replaces inline links */
    nav { height: 60px; flex-wrap: nowrap; }
    .nav-desktop { display: none; }
    .nav-clock { display: none; }
    .nav-brand { height: 60px; padding: 0 20px; font-size: 14px; }
    .nav-hamburger { display: flex; }
    .mobile-nav-overlay { display: block; }

    /* Carousel: show 1 panel at a time */
    .event-panel { min-width: 100%; }
}

@media (max-width: 600px) {
    h1 { font-size: 38px; }
    .sub-header { font-size: 16px; }
    .panel { padding: 15px; }
    .hero-main { padding: 40px 20px; }
    .hero-stats { padding: 20px; }
    .dir-quadrant { min-height: auto; }
    footer { grid-template-columns: 1fr; }
    .footer-col { border-right: none; padding: 20px; }

    .event-panel__image { width: 100px; min-height: 100px; }
    .event-panel__content { padding: 12px 15px; }
    .event-panel__content h3 { font-size: 14px; }

    .panel-header { flex-direction: column; align-items: flex-start; gap: 10px; }

    /* Search bar: horizontal compact layout */
    .search-bar { flex-direction: row; flex-wrap: wrap; }
    .search-bar > div:first-child { display: none; }
    .search-bar input { border: 1px solid var(--grid); flex: 1; min-width: 0; padding: 12px; font-size: 14px; }
    .search-btn { padding: 0 20px; height: auto; min-height: 44px; font-size: 13px; white-space: nowrap; }

    /* Filter tags: horizontal scroll */
    .filter-row { flex-direction: column !important; }
    .filter-row-label { width: 100% !important; padding: 10px 15px !important; }
    .jump-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .jump-nav::-webkit-scrollbar { display: none; }
    .jump-item { flex-shrink: 0; white-space: nowrap; padding: 10px 16px; font-size: 12px; }

    /* Carousel buttons: bigger touch targets */
    .carousel-controls .btn,
    div[style*="margin-top: 15px"] .btn {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 16px;
    }
}

/* ===================== WooCommerce Shop ===================== */
.shop-section {
    grid-column: span 12;
}

.shop-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Product grid */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.woocommerce ul.products li.product {
    background: #111;
    border: 1px solid var(--grid);
    padding: 20px;
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    text-align: center;
    transition: border-color 0.2s ease;
}

.woocommerce ul.products li.product:hover {
    border-color: var(--accent);
}

.woocommerce ul.products li.product a img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--font-main);
    font-size: 16px;
    font-weight: 600;
    color: var(--text-main);
    padding: 10px 0 5px;
}

.woocommerce ul.products li.product .price {
    font-family: var(--font-data);
    font-size: 18px;
    color: var(--accent);
    display: block;
    margin-bottom: 15px;
}

.woocommerce ul.products li.product .price del {
    color: var(--text-muted);
    font-size: 14px;
}

.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

.woocommerce ul.products li.product .button,
.woocommerce ul.products li.product .add_to_cart_button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-data);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
    display: inline-block;
}

.woocommerce ul.products li.product .button:hover,
.woocommerce ul.products li.product .add_to_cart_button:hover {
    background: #cc2222 !important;
}

/* Sale badge */
.woocommerce ul.products li.product .onsale {
    background: var(--accent);
    color: #fff;
    font-family: var(--font-data);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 4px 10px;
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
}

/* Single product page */
.woocommerce div.product {
    color: var(--text-main);
}

.woocommerce div.product .product_title {
    font-family: var(--font-main);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-main);
}

.woocommerce div.product p.price {
    font-family: var(--font-data);
    font-size: 24px;
    color: var(--accent);
}

.woocommerce div.product .woocommerce-product-details__short-description,
.woocommerce div.product .description p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.8;
}

.woocommerce div.product .single_add_to_cart_button {
    background: var(--accent) !important;
    color: #fff !important;
    border: none;
    padding: 14px 30px;
    font-family: var(--font-data);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.woocommerce div.product .single_add_to_cart_button:hover {
    background: #cc2222 !important;
}

/* Quantity input */
.woocommerce .quantity .qty {
    background: #111;
    border: 1px solid var(--grid);
    color: var(--text-main);
    font-family: var(--font-data);
    padding: 10px;
    width: 70px;
    text-align: center;
}

/* WooCommerce notices */
.woocommerce .woocommerce-message,
.woocommerce .woocommerce-info,
.woocommerce .woocommerce-error {
    background: #111;
    border-top-color: var(--accent);
    color: var(--text-main);
}

.woocommerce .woocommerce-message::before,
.woocommerce .woocommerce-info::before {
    color: var(--accent);
}

/* Cart & checkout tables */
.woocommerce table.shop_table {
    border-color: var(--grid);
    background: transparent;
}

.woocommerce table.shop_table th,
.woocommerce table.shop_table td {
    border-color: var(--grid);
    color: var(--text-main);
}

/* Result count & ordering */
.woocommerce .woocommerce-result-count,
.woocommerce .woocommerce-ordering select {
    font-family: var(--font-data);
    font-size: 13px;
    color: var(--text-muted);
}

.woocommerce .woocommerce-ordering select {
    background: #111;
    border: 1px solid var(--grid);
    color: var(--text-main);
    padding: 8px 12px;
}

/* Responsive */
@media (max-width: 900px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .woocommerce ul.products {
        grid-template-columns: 1fr !important;
        gap: 15px;
    }
}

/* ============== Homepage Briefing Callouts ============== */
.briefing-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.briefing-callout {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--grid);
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.briefing-callout:last-child {
    border-bottom: none;
}

.briefing-callout:hover {
    background: rgba(255, 42, 42, 0.03);
}

.briefing-callout:hover h3 {
    color: var(--accent);
}

.briefing-image {
    width: 200px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    overflow: hidden;
    border-right: 1px solid var(--grid);
}

.briefing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.briefing-callout:hover .briefing-image img {
    transform: scale(1.05);
}

.briefing-image-placeholder {
    width: 100%;
    height: 100%;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
}

.briefing-content {
    flex: 1;
    padding: 20px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (max-width: 700px) {
    .briefing-image {
        width: 120px;
        min-height: 100px;
    }

    .briefing-content {
        padding: 15px;
    }

    .briefing-content h3 {
        font-size: 15px !important;
    }
}

@media (max-width: 480px) {
    .briefing-callout {
        flex-direction: column;
    }

    .briefing-image {
        width: 100%;
        height: 180px;
        min-height: auto;
        border-right: none;
        border-bottom: 1px solid var(--grid);
    }
}

/* Homepage Article Grid */
.article-grid-inner {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.article-grid-inner .event-panel {
    min-width: 0;
}

@media (max-width: 900px) {
    .article-grid-inner {
        grid-template-columns: 1fr;
    }
}

/* Print Styles for Intelligence Briefings */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    nav, .hero-main::before, .hero-main::after, footer, .comms-panel, #back-to-top, .article-grid {
        display: none !important;
    }
    .panel {
        border: none !important;
        padding: 0 !important;
    }
    a {
        color: #000 !important;
        text-decoration: underline !important;
    }
    h1, h2, h3, h4, h5, h6, .label, .meta-text {
        color: #000 !important;
    }
    .single-content {
        max-width: 100% !important;
    }
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--bg);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 15px;
    font-family: var(--font-data);
    font-size: 12px;
    cursor: pointer;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
}
#back-to-top.visible {
    opacity: 1;
    visibility: visible;
}
#back-to-top:hover {
    background: var(--accent);
    color: #fff;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}



/* ===================== WooCommerce Contrast Fixes & Overrides ===================== */
.woocommerce, 
.woocommerce-page, 
.woocommerce p, 
.woocommerce span, 
.woocommerce div, 
.woocommerce th, 
.woocommerce td, 
.woocommerce label, 
.woocommerce h1, 
.woocommerce h2, 
.woocommerce h3, 
.woocommerce h4, 
.woocommerce h5, 
.woocommerce h6, 
.woocommerce .woocommerce-breadcrumb, 
.woocommerce .product_meta, 
.woocommerce-tabs .panel, 
.woocommerce #reviews #comments ol.commentlist li .comment-text {
    color: var(--text-main) !important;
}

.woocommerce .price, .woocommerce .price * {
    color: var(--accent) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--text-muted) !important;
}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--text-main) !important;
}

/* Make inputs readable */
.woocommerce input[type='text'], 
.woocommerce input[type='email'], 
.woocommerce input[type='tel'], 
.woocommerce textarea, 
.woocommerce select {
    background: #111 !important;
    border: 1px solid var(--grid) !important;
    color: var(--text-main) !important;
}

/* ===================== Custom Variation Swatches (via JS) ===================== */
.custom-variation-swatches {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 15px;
}
.custom-swatch {
    background: var(--accent);
    color: #fff;
    border: 2px solid transparent;
    padding: 10px 15px;
    font-family: var(--font-data);
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    transition: all 0.2s ease;
}
.custom-swatch:hover {
    background: #cc2222;
}
.custom-swatch.selected {
    border: 2px solid #fff;
}
.custom-swatch.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    text-decoration: line-through;
}
.woocommerce table.variations select {
    display: none !important; /* Hide original selects */
}


