/* RangerX Style A - Tactical Modern */
/* Inspired by: Crye Precision, Mystery Ranch, Vertx, Maxpedition, Armor50, Caliber Armor */
/* Fonts: Barlow Condensed (headings) + Inter (body) - Google Fonts */

@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700;800&family=Montserrat:wght@500;600;700;800;900&display=swap');

/* ===== COLOR PALETTE ===== */
:root {
    --rx-abyss: #0B0F19;       /* Deepest black-blue (Armor50 style) */
    --rx-steel: #1a1f2b;       /* Dark steel */
    --rx-slate: #252a35;       /* Surface/card bg */
    --rx-border: #2f3540;      /* Subtle border */
    --rx-tactical-green: #3d5a3c; /* Muted military green */
    --rx-active: #4a7c59;      /* Brighter green for hover/active */
    --rx-coyote: #b8955a;      /* Coyote tan accent */
    --rx-alert: #c44b3c;       /* Muted alert red */
    --rx-text: #c8ccd0;        /* Body text */
    --rx-heading: #e8eaed;     /* Heading text */
    --rx-muted: #6e7278;       /* Muted/secondary text */
    --rx-white: #f0f0f0;       /* Maximum white */
}

/* ===== GLOBAL ===== */
body, .site, .content-area, .entry-content, .site-container,
.content-container, .site-main, #primary, #main, .wrap,
.kt-clear, main, #inner-wrap, .content-wrap, .entry,
.single-content, .page-content, .site-content {
    background: var(--rx-abyss) !important;
}

body {
    color: var(--rx-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.2px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6,
.entry-title, .product_title, .wp-block-heading,
.woocommerce-loop-product__title {
    font-family: 'Barlow Condensed', 'Impact', 'Arial Black', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--rx-heading) !important;
    line-height: 1.15 !important;
}

h1, .entry-title, .product_title {
    font-size: 42px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

h2 {
    font-size: 30px !important;
    font-weight: 800 !important;
    letter-spacing: 2.5px !important;
    position: relative;
    padding-bottom: 16px;
    margin-bottom: 24px;
}

/* Tactical underline */
h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--rx-coyote);
}

h2.has-text-align-center::after { left: 50%; transform: translateX(-50%); }

h3 { font-size: 22px !important; font-weight: 700 !important; letter-spacing: 1.5px !important; }
h4 { font-size: 18px !important; font-weight: 600 !important; letter-spacing: 1px !important; }

p, li, td, th, span, div {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.2px;
}

/* ===== HEADER ===== */
#masthead, .site-header, .site-header-row-container-inner,
.site-main-header-wrap, .site-header-upper-wrap, .site-header-inner-wrap,
.site-header-upper-inner-wrap, .site-header-row-container,
.site-main-header-inner-wrap {
    background: rgba(11, 15, 25, 0.95) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06) !important;
}

.site-branding .site-title, .site-branding .site-title a {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 900 !important;
    font-size: 24px !important;
    letter-spacing: 4px !important;
    text-transform: uppercase !important;
    color: var(--rx-white) !important;
}

/* ===== NAVIGATION ===== */
.main-navigation .menu > .menu-item > a {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--rx-muted) !important;
    padding: 10px 20px !important;
    border-radius: 0 !important;
    transition: color 0.2s;
    position: relative;
}

.main-navigation .menu > .menu-item > a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 20px;
    right: 20px;
    height: 2px;
    background: var(--rx-coyote);
    transform: scaleX(0);
    transition: transform 0.25s;
}

.main-navigation .menu > .menu-item > a:hover::after,
.main-navigation .menu > .menu-item.current-menu-item > a::after {
    transform: scaleX(1);
}

.main-navigation .menu > .menu-item > a:hover,
.main-navigation .menu > .menu-item.current-menu-item > a {
    color: var(--rx-white) !important;
    background: transparent !important;
}

.main-navigation .menu > .menu-item.btn > a,
.main-navigation .menu > .menu-item.current-menu-item > a {
    background: transparent !important;
    border: 1px solid var(--rx-coyote) !important;
    color: var(--rx-coyote) !important;
    border-radius: 0 !important;
}

.main-navigation .menu > .menu-item.btn > a:hover {
    background: var(--rx-coyote) !important;
    color: var(--rx-abyss) !important;
}

/* ===== HERO SECTION ===== */
.wp-block-cover {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wp-block-cover .has-x-large-font-size {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 52px !important;
    font-weight: 900 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

/* ===== BUTTONS ===== */
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.rangerx-enquiry-btn,
.wpcf7-form .wpcf7-submit {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    padding: 14px 32px !important;
    border: none !important;
    border-radius: 0 !important;
    background: var(--rx-coyote) !important;
    color: var(--rx-abyss) !important;
    transition: background 0.2s, transform 0.2s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}

.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.rangerx-enquiry-btn:hover {
    background: #ccaa66 !important;
    transform: translateY(-2px);
}

/* Outline button */
.wp-block-button.is-style-outline .wp-block-button__link {
    background: transparent !important;
    border: 2px solid var(--rx-coyote) !important;
    color: var(--rx-coyote) !important;
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background: var(--rx-coyote) !important;
    color: var(--rx-abyss) !important;
}

/* ===== PRODUCT CARDS ===== */
.woocommerce ul.products li.product,
.woocommerce ul.products .product-category {
    background: var(--rx-steel) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: 0 !important;
    transition: border-color 0.3s, transform 0.3s;
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.products .product-category:hover {
    border-color: var(--rx-coyote) !important;
    transform: translateY(-6px);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-category__title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--rx-heading) !important;
}

.woocommerce ul.products li.product .product-excerpt p {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: var(--rx-muted);
    font-weight: 400;
}

.woocommerce-loop-category__title .count {
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    background: var(--rx-abyss);
    color: var(--rx-muted);
    padding: 2px 10px;
    border-radius: 0;
}

/* ===== PRODUCT PAGE ===== */
.woocommerce div.product .product_title {
    font-size: 36px !important;
    font-weight: 900 !important;
    letter-spacing: 2px !important;
}

.woocommerce div.product .woocommerce-product-gallery {
    border: 1px solid var(--rx-border);
    border-radius: 0;
    background: var(--rx-steel);
    padding: 16px;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr)) !important;
    gap: 10px !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    list-style: none !important;
    clear: both !important;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    object-position: center center !important;
    border: 1px solid var(--rx-border) !important;
    opacity: 0.72 !important;
    transition: opacity 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img:hover,
.woocommerce div.product .woocommerce-product-gallery .flex-control-thumbs li img.flex-active {
    opacity: 1 !important;
    border-color: var(--rx-coyote) !important;
    transform: translateY(-1px);
}

.woocommerce div.product form.cart .variations {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    margin: 0 0 16px !important;
}

.woocommerce div.product form.cart .variations tr {
    display: grid !important;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) !important;
    gap: 12px !important;
    align-items: center !important;
}

.woocommerce div.product form.cart .variations th,
.woocommerce div.product form.cart .variations td {
    width: auto !important;
    padding: 0 !important;
    text-align: left !important;
    vertical-align: middle !important;
}

.woocommerce div.product form.cart .variations label {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    margin: 0 !important;
    color: var(--rx-text) !important;
}

.woocommerce div.product form.cart .variations select {
    width: 100% !important;
    min-height: 48px !important;
    padding: 0.75rem 1rem !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: 0 !important;
    background: var(--rx-abyss) !important;
    color: var(--rx-text) !important;
}

.woocommerce div.product form.cart .reset_variations {
    display: inline-flex !important;
    align-items: center !important;
    margin-top: 10px !important;
    color: var(--rx-coyote) !important;
    font-size: 12px !important;
    letter-spacing: 0.08em !important;
}

.woocommerce div.product .single_variation_wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-top: 12px !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart {
    display: flex !important;
    align-items: stretch !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

.woocommerce div.product .woocommerce-variation-add-to-cart .button {
    min-width: 220px !important;
}

.woocommerce div.product .woocommerce-tabs {
    background: var(--rx-steel) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: 0 !important;
    padding: 32px;
    margin-top: 40px;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--rx-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--rx-muted) !important;
    position: relative;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--rx-coyote) !important;
}

/* ===== SPECS TABLE ===== */
.spec-table,
.woocommerce table.shop_attributes {
    background: var(--rx-abyss);
    border: 1px solid var(--rx-border);
    border-radius: 0;
    border-collapse: collapse;
}

.spec-table td,
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    padding: 14px 18px;
    border-bottom: 1px solid var(--rx-border);
    color: var(--rx-text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
}

.spec-table td:first-child,
.woocommerce table.shop_attributes th {
    background: rgba(0,0,0,0.25);
    color: var(--rx-coyote);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    width: 30%;
}

/* ===== FORMS ===== */
.wpcf7-form, .enquiry-card {
    background: var(--rx-steel) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: 0 !important;
    padding: 36px;
}

.wpcf7-form label, .enquiry-row label {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--rx-muted) !important;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea,
.enquiry-row input,
.enquiry-row select,
.enquiry-row textarea {
    background: var(--rx-abyss) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: 0 !important;
    color: var(--rx-text) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
}

.wpcf7-form input:focus,
.wpcf7-form select:focus,
.wpcf7-form textarea:focus {
    border-color: var(--rx-coyote) !important;
    outline: none;
    box-shadow: 0 0 0 2px rgba(184,149,90,0.15) !important;
}

/* ===== TRUST STRIP ===== */
.wp-block-group.has-white-background-color,
.has-white-background-color,
[class*="has-white-background"] {
    background: var(--rx-steel) !important;
    color: var(--rx-text) !important;
}

/* ===== BRAND SECTION ===== */
.brands-section {
    background: var(--rx-abyss) !important;
}

.brand-card {
    background: var(--rx-steel) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: 0 !important;
    transition: border-color 0.3s, transform 0.3s;
}

.brand-card:hover {
    border-color: var(--rx-coyote) !important;
    transform: translateY(-6px);
}

.brand-card h3 {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
}

.brand-card p:first-of-type {
    font-family: 'Barlow Condensed', sans-serif !important;
    letter-spacing: 3px !important;
}

/* ===== FOOTER ===== */
.site-footer, .site-footer-wrap, .site-bottom-footer-inner-wrap {
    background: var(--rx-abyss) !important;
    border-top: 1px solid var(--rx-border) !important;
    color: var(--rx-muted) !important;
    font-family: 'Inter', sans-serif !important;
}

.site-footer .widget-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--rx-white) !important;
}

/* ===== BREADCRUMBS ===== */
.kadence-breadcrumbs {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rx-muted);
}

.kadence-breadcrumbs a {
    color: var(--rx-coyote);
}

/* ===== KEY POINTS ===== */
.key-points li {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    color: var(--rx-text);
    position: relative;
}

.key-points li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 18px;
    width: 8px;
    height: 8px;
    background: var(--rx-coyote);
    transform: rotate(45deg);
    border-radius: 0;
}

/* ===== PAGINATION ===== */
.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
    background: var(--rx-steel);
    border: 1px solid var(--rx-border);
    border-radius: 0;
    color: var(--rx-text);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
    background: var(--rx-coyote);
    border-color: var(--rx-coyote);
    color: var(--rx-abyss);
}

.woocommerce nav.woocommerce-pagination ul li a:hover {
    border-color: var(--rx-coyote);
    background: var(--rx-abyss);
    color: var(--rx-coyote);
}

/* ===== HIDE ELEMENTS ===== */
.woocommerce-cart, .woocommerce-checkout, .cart-contents,
.add_to_cart_button, .ajax_add_to_cart, .single_add_to_cart_button,
.woocommerce-mini-cart, .woocommerce-message .button.wc-forward,
a.wc-forward, .product_meta, .home .entry-header,
.woocommerce-store-notice, .woocommerce div.product .price,
.woocommerce .star-rating { display: none !important; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    h1, .entry-title, .product_title { font-size: 32px !important; }
    h2 { font-size: 24px !important; }
    .wp-block-cover .has-x-large-font-size { font-size: 32px !important; }
    .woocommerce ul.products.columns-4 li.product,
    .woocommerce ul.products.columns-5 li.product { width: 48%; }
}

@media (max-width: 768px) {
    h1, .entry-title, .product_title { font-size: 26px !important; }
    h2 { font-size: 20px !important; }
    .wp-block-cover .has-x-large-font-size { font-size: 22px !important; }
    .woocommerce ul.products.columns-4 li.product,
    .woocommerce ul.products.columns-5 li.product { width: 100%; }
    .woocommerce div.product .summary { padding-left: 0; margin-top: 20px; }
    .woocommerce div.product .woocommerce-tabs { padding: 20px; }
    .wpcf7-form, .enquiry-card { padding: 20px; }
}

/* ===== CATEGORY CARD TEXT FIX ===== */
.woocommerce-loop-category__title,
.woocommerce ul.products .product-category h2,
.woocommerce ul.products li.product-category h2,
.woocommerce ul.products .product-category .woocommerce-loop-category__title {
    color: #f0f0f0 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.woocommerce-loop-category__title .count,
.woocommerce ul.products .product-category .count {
    color: #b8955a !important;
    font-weight: 600 !important;
    background: rgba(0,0,0,0.4);
    padding: 2px 10px;
}

/* ===== CATEGORY CARD COMPLETE OVERHAUL ===== */
.woocommerce ul.products .product-category,
.woocommerce ul.products li.product-category {
    position: relative;
    overflow: hidden;
}

/* Dark overlay on category images for text readability */
.woocommerce ul.products .product-category a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(11,15,25,0.85));
    z-index: 2;
    pointer-events: none;
}

/* Reposition and style category title OVER the image */
.woocommerce ul.products .product-category h2,
.woocommerce-loop-category__title,
.woocommerce ul.products .product-category .woocommerce-loop-category__title {
    position: absolute !important;
    bottom: 10px !important;
    left: 16px !important;
    right: 16px !important;
    z-index: 3 !important;
    color: #ffffff !important;
    font-family: 'Barlow Condensed', 'Impact', sans-serif !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.9) !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.woocommerce-loop-category__title .count,
.woocommerce ul.products .product-category .count {
    color: #b8955a !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
    background: none !important;
    margin-left: 6px !important;
}

/* Category card hover - intensify */
.woocommerce ul.products .product-category:hover a::before {
    background: linear-gradient(transparent, rgba(11,15,25,0.95));
}

/* Fix product-details wrapping in category cards */
.woocommerce ul.products .product-category .product-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 3;
    padding: 40px 16px 16px !important;
    background: linear-gradient(transparent, rgba(11,15,25,0.9)) !important;
}

/* ===== ALL PRODUCT CARDS - SAME TREATMENT AS CATEGORIES ===== */
.woocommerce ul.products li.product {
    position: relative;
    overflow: hidden;
}

/* Dark overlay on product images */
.woocommerce ul.products li.product .woocommerce-loop-product__link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(11,15,25,0.85));
    z-index: 2;
    pointer-events: none;
}

/* Product title - bigger, whiter, with shadow */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2 {
    color: #ffffff !important;
    font-family: 'Barlow Condensed', 'Impact', sans-serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    text-shadow: 0 2px 6px rgba(0,0,0,0.8), 0 1px 2px rgba(0,0,0,0.9) !important;
    line-height: 1.3 !important;
}

/* Product excerpt - readable */
.woocommerce ul.products li.product .product-excerpt p {
    color: #b0b4b8 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
}

/* Product hover - intensify */
.woocommerce ul.products li.product:hover .woocommerce-loop-product__link::before {
    background: linear-gradient(transparent, rgba(11,15,25,0.95));
}

/* Product badge z-index fix */
.rangerx-badge {
    z-index: 5 !important;
}

/* Product details section */
.woocommerce ul.products li.product .product-details {
    background: #1a1f2b !important;
    padding: 14px 16px 18px !important;
    position: relative;
    z-index: 3;
}

/* Product action wrap */
.woocommerce ul.products li.product .product-action-wrap {
    padding: 0 16px 12px !important;
    background: #1a1f2b !important;
}

/* ===== PRODUCT CARD TITLE ALIGNMENT FIX ===== */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product h2,
.woocommerce ul.products li.product .woocommerce-loop-product__title a,
.woocommerce-loop-product__title,
.woocommerce ul.products li.product .product-details h2 {
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    font-size: 18px !important;
    line-height: 1.3 !important;
    letter-spacing: 1.5px !important;
}

/* Product excerpt also center */
.woocommerce ul.products li.product .product-excerpt p {
    text-align: center !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
}

/* Button area center */
.woocommerce ul.products li.product .product-action-wrap {
    text-align: center !important;
}

/* Category card titles */
.woocommerce-loop-category__title,
.woocommerce ul.products .product-category h2 {
    text-align: left !important;
    left: 16px !important;
    right: auto !important;
}

/* ===== AGGRESSIVE CARD ALIGNMENT FIX ===== */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .content-bg {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link {
    width: 100% !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 10px 16px 0 16px !important;
    box-sizing: border-box !important;
}

.woocommerce ul.products li.product .product-excerpt {
    width: 100% !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .product-action-wrap {
    width: 100% !important;
    text-align: center !important;
    margin-top: auto !important;
    padding-bottom: 16px !important;
}

/* Ensure consistent height for all cards */
.woocommerce ul.products li.product {
    height: 100% !important;
}

/* ===== CATEGORY COUNT FIX ===== */
.woocommerce-loop-category__title .count,
.woocommerce ul.products .product-category .count,
.woocommerce ul.products .product-category mark.count {
    display: inline-block;
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #8a8c85 !important;
    letter-spacing: 0.5px !important;
    text-shadow: none !important;
    margin-left: 4px !important;
    background: none !important;
    padding: 0 !important;
}

/* ===== COMPLETE CARD ALIGNMENT RESET ===== */
.woocommerce ul.products li.product,
.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .entry-content-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.woocommerce ul.products li.product .product-details {
    width: 100% !important;
    padding: 12px 0 0 0 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
    width: 100% !important;
    text-align: center !important;
    padding: 8px 20px 4px 20px !important;
    margin: 0 !important;
    font-size: 17px !important;
    letter-spacing: 1.5px !important;
    line-height: 1.25 !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title a {
    text-align: center !important;
}

.woocommerce ul.products li.product .product-excerpt {
    width: 100% !important;
    text-align: center !important;
    padding: 0 20px 8px 20px !important;
}

.woocommerce ul.products li.product .product-excerpt p {
    text-align: center !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.woocommerce ul.products li.product .product-action-wrap {
    width: 100% !important;
    text-align: center !important;
    margin-top: auto !important;
    padding: 0 20px 20px 20px !important;
}

/* Reset list styles that might interfere */
.woocommerce ul.products li.product {
    list-style: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}
.woocommerce ul.products li.product::before,
.woocommerce ul.products li.product::after {
    display: none !important;
    content: none !important;
}

/* ===== PRODUCT GRID EQUAL HEIGHT FIX ===== */
.woocommerce ul.products.grid-cols {
    display: grid !important;
    grid-auto-rows: 1fr !important;
    gap: 20px !important;
}

.woocommerce ul.products.grid-cols::before,
.woocommerce ul.products.grid-cols::after {
    display: none !important;
}

.woocommerce ul.products.grid-cols li.product {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product .product-details {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
}

.woocommerce ul.products li.product .product-action-wrap {
    margin-top: auto !important;
}

/* Force grid columns on desktop */
@media (min-width: 1025px) {
    .woocommerce ul.products.grid-lg-col-4 { grid-template-columns: repeat(4, 1fr) !important; }
    .woocommerce ul.products.grid-lg-col-5 { grid-template-columns: repeat(5, 1fr) !important; }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .woocommerce ul.products.grid-sm-col-3 { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 767px) {
    .woocommerce ul.products.grid-ss-col-2 { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ===== FIX CARD VERTICAL ALIGNMENT ===== */
.woocommerce ul.products.grid-cols {
    align-items: stretch !important;
}

.woocommerce ul.products.grid-cols li.product {
    align-self: stretch !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    vertical-align: top !important;
}

/* ===== BRAND LOGO CENTER ===== */
.brand-card img {
    display: block !important;
    margin: 0 auto 16px auto !important;
    max-height: 60px !important;
    width: auto !important;
    object-fit: contain !important;
}

.brand-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
}

.brand-card h3,
.brand-card p {
    width: 100% !important;
}

/* ===== US LAYOUT REFINEMENT ===== */
:root {
    --rx-radius-soft: 8px;
    --rx-radius-card: 6px;
    --rx-shadow-soft: 0 10px 28px rgba(0, 0, 0, 0.18);
    --rx-shadow-hover: 0 16px 34px rgba(0, 0, 0, 0.24);
}

html {
    background: var(--rx-abyss);
}

body {
    background: var(--rx-abyss) !important;
    color: var(--rx-text) !important;
    font-family: 'Inter', 'Roboto', 'Arial', 'Helvetica Neue', sans-serif !important;
    font-size: 16px !important;
    line-height: 1.72 !important;
    letter-spacing: 0 !important;
}

body, p, li, td, th, input, select, textarea {
    font-family: 'Inter', 'Roboto', 'Arial', 'Helvetica Neue', sans-serif !important;
}

.site-container,
.content-container,
.site-main,
.content-area,
.entry-content,
.site-content,
.wrap,
.entry,
.single-content,
.page-content,
.site-header-row-layout-contained,
.site-footer-row-layout-contained,
.entry-hero-layout-contained {
    max-width: 1320px !important;
}

.content-area {
    margin-top: 3.5rem !important;
    margin-bottom: 3.5rem !important;
}

.entry-content-wrap,
.loop-entry .entry-content-wrap {
    padding: 1.75rem !important;
}

h1, h2, h3, h4, h5, h6,
.entry-title, .product_title, .wp-block-heading,
.woocommerce-loop-product__title {
    font-family: 'Montserrat', 'Barlow Condensed', sans-serif !important;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
    line-height: 1.15 !important;
}

h1, .entry-title, .product_title {
    font-size: clamp(30px, 3vw, 48px) !important;
    font-weight: 800 !important;
}

h2 {
    font-size: clamp(24px, 2.2vw, 34px) !important;
    font-weight: 800 !important;
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
    letter-spacing: 0.01em !important;
}

h2::after {
    width: 42px !important;
    height: 2px !important;
}

h3 {
    font-size: clamp(18px, 1.6vw, 24px) !important;
    font-weight: 700 !important;
}

h4 {
    font-size: 18px !important;
    font-weight: 700 !important;
}

.site-branding .site-title,
.site-branding .site-title a,
.main-navigation .menu > .menu-item > a,
.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.rangerx-enquiry-btn,
.wpcf7-form .wpcf7-submit {
    font-family: 'Montserrat', 'Barlow Condensed', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
}

#masthead,
.site-header,
.site-header-row-container-inner,
.site-main-header-wrap,
.site-header-upper-wrap,
.site-header-inner-wrap,
.site-header-upper-inner-wrap,
.site-main-header-inner-wrap {
    background: rgba(11, 15, 25, 0.94) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
}

.site-main-header-inner-wrap {
    min-height: 72px !important;
}

.site-branding .site-title,
.site-branding .site-title a {
    font-size: 22px !important;
    letter-spacing: 3px !important;
}

.main-navigation .menu > .menu-item > a {
    color: #9aa0a6 !important;
    font-size: 14px !important;
    padding: 12px 16px !important;
}

.main-navigation .menu > .menu-item > a:hover,
.main-navigation .menu > .menu-item.current-menu-item > a {
    color: var(--rx-white) !important;
}

.main-navigation .menu > .menu-item > a::after {
    left: 16px;
    right: 16px;
    bottom: 2px;
    opacity: 0.85;
}

.wp-block-button__link,
.woocommerce a.button,
.woocommerce button.button,
.rangerx-enquiry-btn,
.wpcf7-form .wpcf7-submit {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 48px !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    border: 1px solid transparent !important;
    box-shadow: none !important;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease !important;
}

.wp-block-button__link:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.rangerx-enquiry-btn:hover,
.wpcf7-form .wpcf7-submit:hover {
    transform: translateY(-1px) !important;
    border-color: rgba(11, 15, 25, 0.22) !important;
}

.woocommerce ul.products,
.woocommerce-page ul.products,
.wc-block-grid__products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 22px !important;
    align-items: stretch !important;
}

.woocommerce ul.products li.product,
.woocommerce ul.products .product-category,
.wc-block-grid__product {
    background: var(--rx-steel) !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-radius-card) !important;
    overflow: hidden !important;
    box-shadow: var(--rx-shadow-soft) !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product:hover,
.woocommerce ul.products .product-category:hover,
.wc-block-grid__product:hover {
    border-color: rgba(184, 149, 90, 0.7) !important;
    box-shadow: var(--rx-shadow-hover) !important;
    transform: translateY(-4px) !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__link,
.woocommerce ul.products .product-category a,
.wc-block-grid__product-link {
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
}

.woocommerce ul.products li.product img,
.woocommerce ul.products .product-category img,
.wc-block-grid__product-image img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: cover !important;
    display: block !important;
    background: #11161f !important;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce-loop-category__title,
.woocommerce ul.products .product-category .woocommerce-loop-category__title,
.wc-block-grid__product-title {
    color: var(--rx-heading) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    padding: 14px 16px 6px !important;
    min-height: 3.4em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .product-excerpt,
.woocommerce ul.products li.product .product-excerpt p {
    text-align: center !important;
}

.woocommerce ul.products li.product .product-excerpt p {
    color: var(--rx-muted) !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    padding: 0 16px 12px !important;
    min-height: 3.6em !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 3 !important;
    overflow: hidden !important;
}

.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .content-bg,
.woocommerce ul.products .product-category .product-details {
    background: var(--rx-steel) !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    flex: 1 1 auto !important;
}

.woocommerce ul.products li.product .product-action-wrap {
    margin-top: auto !important;
    padding: 0 16px 18px !important;
    text-align: center !important;
    background: var(--rx-steel) !important;
}

.woocommerce ul.products li.product .button {
    width: auto !important;
    min-width: 150px !important;
}

.woocommerce ul.products .product-category h2,
.woocommerce ul.products .product-category .woocommerce-loop-category__title {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    padding: 12px 16px 14px !important;
    text-align: center !important;
    text-shadow: none !important;
    background: none !important;
}

.woocommerce ul.products .product-category .count,
.woocommerce-loop-category__title .count,
.woocommerce ul.products .product-category mark.count {
    background: none !important;
    color: #96a0a8 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    padding: 0 !important;
    margin-left: 4px !important;
    text-shadow: none !important;
}

.woocommerce ul.products .product-category a::before,
.woocommerce ul.products li.product .woocommerce-loop-product__link::before {
    background: linear-gradient(transparent, rgba(11, 15, 25, 0.7)) !important;
}

.woocommerce div.product {
    align-items: start !important;
}

.woocommerce div.product .woocommerce-product-gallery {
    background: #11161f !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-radius-soft) !important;
    padding: 12px !important;
    box-shadow: var(--rx-shadow-soft) !important;
}

.woocommerce div.product .summary {
    padding-left: 8px !important;
}

.woocommerce div.product .product_title {
    margin-bottom: 12px !important;
}

.woocommerce div.product .woocommerce-tabs {
    background: #11161f !important;
    border: 1px solid var(--rx-border) !important;
    border-radius: var(--rx-radius-soft) !important;
    padding: 24px !important;
    margin-top: 28px !important;
    box-shadow: var(--rx-shadow-soft) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
    border-bottom: 1px solid var(--rx-border) !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
    color: var(--rx-muted) !important;
    font-size: 13px !important;
    letter-spacing: 0.08em !important;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
    color: var(--rx-coyote) !important;
}

.spec-table,
.woocommerce table.shop_attributes {
    border-radius: var(--rx-radius-soft) !important;
    overflow: hidden !important;
}

.spec-table td,
.woocommerce table.shop_attributes th,
.woocommerce table.shop_attributes td {
    padding: 12px 16px !important;
    font-size: 14px !important;
}

.wpcf7-form,
.enquiry-card {
    border-radius: var(--rx-radius-soft) !important;
    padding: 24px !important;
    box-shadow: var(--rx-shadow-soft) !important;
}

.wpcf7-form input:not([type="submit"]),
.wpcf7-form select,
.wpcf7-form textarea,
.enquiry-row input,
.enquiry-row select,
.enquiry-row textarea {
    border-radius: 4px !important;
}

.brands-section > div > div {
    gap: 18px !important;
}

.brand-card {
    border-radius: var(--rx-radius-soft) !important;
    box-shadow: var(--rx-shadow-soft) !important;
}

.brand-card img {
    max-height: 56px !important;
}

.brand-card h3 {
    font-size: 18px !important;
}

.site-footer,
.site-footer-wrap,
.site-bottom-footer-inner-wrap {
    padding-top: 32px !important;
    padding-bottom: 24px !important;
}

.site-footer .widget-title {
    font-size: 15px !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 14px !important;
}

.site-footer a {
    color: #d0d4d8 !important;
}

.site-footer a:hover {
    color: var(--rx-coyote) !important;
}

.kadence-breadcrumbs {
    font-size: 12px !important;
    letter-spacing: 0.06em !important;
}

@media (max-width: 1024px) {
    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .wc-block-grid__products {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .woocommerce div.product {
        display: block !important;
    }
}

@media (max-width: 768px) {
    .content-area {
        margin-top: 2.5rem !important;
        margin-bottom: 2.5rem !important;
    }

    .entry-content-wrap,
    .loop-entry .entry-content-wrap {
        padding: 1.25rem !important;
    }

    .site-header-row-container-inner,
    .site-main-header-inner-wrap {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .main-navigation .menu > .menu-item > a {
        font-size: 13px !important;
        padding: 10px 12px !important;
        letter-spacing: 0.05em !important;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .wc-block-grid__products {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title,
    .woocommerce-loop-category__title,
    .wc-block-grid__product-title {
        font-size: 15px !important;
        padding: 12px 12px 4px !important;
    }

    .woocommerce ul.products li.product .product-excerpt p {
        font-size: 12px !important;
        -webkit-line-clamp: 2 !important;
        padding: 0 12px 10px !important;
    }

    .woocommerce ul.products li.product .product-action-wrap {
        padding: 0 12px 14px !important;
    }

    .woocommerce div.product .woocommerce-product-gallery {
        margin-bottom: 18px !important;
    }

    .woocommerce div.product .summary {
        padding-left: 0 !important;
    }

    .woocommerce div.product .woocommerce-tabs,
    .wpcf7-form,
    .enquiry-card {
        padding: 18px !important;
    }

    .woocommerce div.product .woocommerce-product-gallery .flex-control-nav.flex-control-thumbs {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 8px !important;
    }

    .woocommerce div.product form.cart .variations tr {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }

    .woocommerce div.product .woocommerce-variation-add-to-cart {
        flex-direction: column !important;
    }

    .woocommerce div.product .woocommerce-variation-add-to-cart .button {
        width: 100% !important;
        min-width: 0 !important;
    }

    .brands-section > div > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 480px) {
    h1, .entry-title, .product_title {
        font-size: 28px !important;
    }

    h2 {
        font-size: 22px !important;
    }

    .site-branding .site-title,
    .site-branding .site-title a {
        font-size: 19px !important;
        letter-spacing: 2px !important;
    }

    .woocommerce ul.products,
    .woocommerce-page ul.products,
    .wc-block-grid__products {
        grid-template-columns: 1fr !important;
    }

    .wp-block-button__link,
    .woocommerce a.button,
    .woocommerce button.button,
    .rangerx-enquiry-btn,
    .wpcf7-form .wpcf7-submit {
        width: 100% !important;
        max-width: 100% !important;
    }

    .brand-card {
        padding: 20px 14px !important;
    }

    .brand-card h3 {
        font-size: 17px !important;
    }

    .brands-section > div > div {
        grid-template-columns: 1fr !important;
    }

    .woocommerce div.product .woocommerce-tabs {
        padding: 16px !important;
    }
}

/* ===== SMALL TUNING PASS ===== */
body.home .wp-block-cover {
    min-height: clamp(360px, 52vw, 540px) !important;
    padding: clamp(2.5rem, 5vw, 4.5rem) 1.25rem !important;
}

body.home .wp-block-cover .wp-block-cover__inner-container {
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto !important;
}

body.home .wp-block-cover .has-x-large-font-size {
    font-size: clamp(34px, 4.4vw, 58px) !important;
    line-height: 1.05 !important;
    letter-spacing: 0.02em !important;
}

.woocommerce ul.products li.product .product-details,
.woocommerce ul.products li.product .content-bg,
.woocommerce ul.products .product-category .product-details {
    padding-bottom: 0 !important;
}

.woocommerce ul.products li.product .product-action-wrap {
    display: flex !important;
    align-items: flex-end !important;
    justify-content: center !important;
    min-height: 72px !important;
}

.woocommerce ul.products li.product .button {
    width: min(100%, 200px) !important;
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product {
        min-height: 100% !important;
    }

    .woocommerce ul.products li.product .product-action-wrap {
        min-height: 64px !important;
    }
}

@media (max-width: 480px) {
    body.home .wp-block-cover {
        min-height: 320px !important;
        padding: 2rem 1rem !important;
    }

    body.home .wp-block-cover .has-x-large-font-size {
        font-size: clamp(30px, 8vw, 42px) !important;
    }

    .woocommerce ul.products li.product .product-action-wrap {
        min-height: 56px !important;
    }
}

/* ===== OUR BRANDS ALIGNMENT ===== */
.brands-section > div > div {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 24px !important;
    grid-auto-rows: 1fr !important;
    align-items: stretch !important;
}

.brands-section > div > div > a {
    display: flex !important;
    height: 100% !important;
    min-width: 0 !important;
    align-self: stretch !important;
}

.brand-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 340px !important;
    padding: 28px 22px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    overflow: hidden !important;
}

.brand-card img {
    display: block !important;
    width: 100% !important;
    max-width: 180px !important;
    height: 84px !important;
    max-height: none !important;
    margin: 0 auto 18px !important;
    object-fit: contain !important;
    object-position: center !important;
    flex: 0 0 auto !important;
}

.brand-card h3 {
    margin: 0 0 6px !important;
    min-height: 2.3em !important;
    line-height: 1.08 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.brand-card p:first-of-type {
    margin: 0 0 12px !important;
    min-height: 2.6em !important;
    line-height: 1.15 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.brand-card p:last-of-type {
    flex: 1 1 auto !important;
    align-self: stretch !important;
    margin: 0 !important;
    line-height: 1.55 !important;
    min-height: calc(1.55em * 4) !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 4 !important;
    overflow: hidden !important;
}

@media (max-width: 1024px) {
    .brands-section > div > div {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 18px !important;
    }

    .brand-card {
        min-height: 320px !important;
    }
}

@media (max-width: 640px) {
    .brands-section > div > div {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    .brand-card {
        min-height: auto !important;
        padding: 22px 16px !important;
    }

    .brand-card img {
        height: 72px !important;
        max-width: 150px !important;
        margin-bottom: 14px !important;
    }

    .brand-card h3 {
        min-height: auto !important;
        font-size: 17px !important;
    }

    .brand-card p:first-of-type {
        min-height: auto !important;
        font-size: 12px !important;
    }

    .brand-card p:last-of-type {
        -webkit-line-clamp: 3 !important;
        min-height: auto !important;
    }
}

/* ===== BRAND LANDING PAGE ===== */
body.term-camptac .entry-header.page-header,
body.term-black-sniper .entry-header.page-header,
body.term-rangerx .entry-header.page-header,
body.term-tacman .entry-header.page-header {
    display: none !important;
}

body.term-camptac .page-title.archive-title,
body.term-black-sniper .page-title.archive-title,
body.term-rangerx .page-title.archive-title,
body.term-tacman .page-title.archive-title,
body.term-camptac .archive-title,
body.term-black-sniper .archive-title,
body.term-rangerx .archive-title,
body.term-tacman .archive-title,
body.term-camptac .woocommerce-products-header__title.page-title,
body.term-black-sniper .woocommerce-products-header__title.page-title,
body.term-rangerx .woocommerce-products-header__title.page-title,
body.term-tacman .woocommerce-products-header__title.page-title {
    display: none !important;
}

body.term-camptac .woocommerce-products-header,
body.term-black-sniper .woocommerce-products-header,
body.term-rangerx .woocommerce-products-header,
body.term-tacman .woocommerce-products-header {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 0 !important;
    margin: -112px 0 8px !important;
    border: 0 !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
}

body.term-camptac .content-area,
body.term-black-sniper .content-area,
body.term-rangerx .content-area,
body.term-tacman .content-area {
    margin-top: 0 !important;
    margin-bottom: 3rem !important;
}

body.term-camptac .content-container,
body.term-black-sniper .content-container,
body.term-rangerx .content-container,
body.term-tacman .content-container,
body.term-camptac .site-main,
body.term-black-sniper .site-main,
body.term-rangerx .site-main,
body.term-tacman .site-main {
    padding-top: 0 !important;
}

body.term-camptac #main,
body.term-black-sniper #main,
body.term-rangerx #main,
body.term-tacman #main,
body.term-camptac #primary,
body.term-black-sniper #primary,
body.term-rangerx #primary,
body.term-tacman #primary {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

body.term-camptac .rangerx-brand-hero,
body.term-black-sniper .rangerx-brand-hero,
body.term-rangerx .rangerx-brand-hero,
body.term-tacman .rangerx-brand-hero {
    margin-top: 0 !important;
}

body.term-camptac .term-description,
body.term-black-sniper .term-description,
body.term-rangerx .term-description,
body.term-tacman .term-description,
body.term-camptac .archive-description,
body.term-black-sniper .archive-description,
body.term-rangerx .archive-description,
body.term-tacman .archive-description,
body.term-camptac .woocommerce-products-header__description,
body.term-black-sniper .woocommerce-products-header__description,
body.term-rangerx .woocommerce-products-header__description,
body.term-tacman .woocommerce-products-header__description {
    display: none !important;
}

body.term-camptac .entry-content-wrap,
body.term-black-sniper .entry-content-wrap,
body.term-rangerx .entry-content-wrap,
body.term-tacman .entry-content-wrap,
body.term-camptac .loop-entry .entry-content-wrap,
body.term-black-sniper .loop-entry .entry-content-wrap,
body.term-rangerx .loop-entry .entry-content-wrap,
body.term-tacman .loop-entry .entry-content-wrap {
    padding-top: 0 !important;
}

.rangerx-brand-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
    gap: clamp(22px, 3vw, 40px);
    align-items: center;
    padding: clamp(18px, 2vw, 28px);
    border: 1px solid rgba(184, 149, 90, 0.24);
    border-radius: 10px;
    background:
        radial-gradient(circle at top left, rgba(184, 149, 90, 0.18), transparent 36%),
        linear-gradient(135deg, rgba(15, 21, 32, 0.96), rgba(26, 31, 43, 0.98));
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.rangerx-brand-hero::after {
    content: "";
    position: absolute;
    inset: auto -8% -36% auto;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(184, 149, 90, 0.08);
    filter: blur(12px);
    pointer-events: none;
}

.rangerx-brand-hero__media {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 168px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(11, 15, 25, 0.52);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.rangerx-brand-hero__media img {
    display: block;
    width: 100%;
    max-width: 240px;
    max-height: 110px;
    object-fit: contain;
}

.rangerx-brand-hero__content {
    position: relative;
    z-index: 1;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rangerx-brand-hero__eyebrow {
    margin: 0 0 10px;
    color: var(--rx-coyote) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.rangerx-brand-hero__title {
    margin: 0 0 10px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 0.96;
    letter-spacing: 0.04em;
}

.rangerx-brand-hero__slogan {
    margin: 0 0 14px;
    color: #d2b171 !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.rangerx-brand-hero__desc {
    max-width: 62ch;
    margin: 0;
    color: #c8ccd0 !important;
    font-size: 15px;
    line-height: 1.75;
}

.rangerx-brand-empty-state {
    margin-top: 24px;
    padding: 26px 28px;
    border: 1px solid rgba(184, 149, 90, 0.18);
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(18, 24, 35, 0.96), rgba(12, 16, 24, 0.98));
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.rangerx-brand-empty-state__eyebrow {
    margin: 0 0 8px;
    color: var(--rx-coyote) !important;
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.rangerx-brand-empty-state__title {
    margin: 0 0 10px;
    padding: 0;
    font-size: clamp(20px, 2.2vw, 30px) !important;
}

.rangerx-brand-empty-state__title::after {
    display: none;
}

.rangerx-brand-empty-state__desc {
    margin: 0;
    max-width: 58ch;
    color: #c8ccd0 !important;
    font-size: 15px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    body.term-camptac .content-area,
    body.term-black-sniper .content-area,
    body.term-rangerx .content-area,
    body.term-tacman .content-area {
        margin-top: 0 !important;
        margin-bottom: 2.25rem !important;
    }

    body.term-camptac .woocommerce-products-header,
    body.term-black-sniper .woocommerce-products-header,
    body.term-rangerx .woocommerce-products-header,
    body.term-tacman .woocommerce-products-header {
        margin: -56px 0 8px !important;
    }

    .rangerx-brand-hero {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 18px 16px;
        text-align: center;
    }

    .rangerx-brand-hero__media {
        min-height: 120px;
    }

    .rangerx-brand-hero__media img {
        max-width: 200px;
        max-height: 88px;
    }

    .rangerx-brand-hero__desc {
        max-width: none;
    }

    .rangerx-brand-empty-state {
        margin-top: 18px;
        padding: 20px 18px;
        text-align: center;
    }

    .rangerx-brand-empty-state__desc {
        max-width: none;
    }
}

/* ===== SHOP PAGE HERO TUNING ===== */
body.post-type-archive-product:not(.tax-product_cat) .content-area,
body.woocommerce-shop .content-area {
    margin-top: 0.35rem !important;
}

body.post-type-archive-product:not(.tax-product_cat) .entry-header.page-header,
body.woocommerce-shop .entry-header.page-header {
    padding: 10px 0 2px !important;
    margin: 0 0 2px !important;
    min-height: 0 !important;
    text-align: center !important;
}

body.post-type-archive-product:not(.tax-product_cat) .entry-header.page-header .entry-title,
body.post-type-archive-product:not(.tax-product_cat) .page-title,
body.woocommerce-shop .entry-header.page-header .entry-title,
body.woocommerce-shop .page-title {
    margin: 0 !important;
    font-size: clamp(24px, 3vw, 40px) !important;
    font-weight: 800 !important;
    letter-spacing: 0 !important;
    line-height: 1.02 !important;
    opacity: 0.94 !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brands-section,
body.woocommerce-shop .brands-section {
    padding-top: 0 !important;
    padding-bottom: 28px !important;
    margin-top: -8px !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brands-section > div,
body.woocommerce-shop .brands-section > div {
    max-width: 1320px !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brands-section h2,
body.woocommerce-shop .brands-section h2 {
    margin-bottom: 18px !important;
    font-size: clamp(28px, 3.2vw, 44px) !important;
    font-weight: 800 !important;
    line-height: 1.02 !important;
    letter-spacing: -0.02em !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brands-section h2::after,
body.woocommerce-shop .brands-section h2::after {
    margin-top: 10px !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brand-card,
body.woocommerce-shop .brand-card {
    padding: 24px 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    background: linear-gradient(180deg, rgba(32, 38, 52, 0.98), rgba(24, 29, 41, 0.98)) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18) !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brand-card img,
body.woocommerce-shop .brand-card img {
    max-width: 170px !important;
    height: 78px !important;
    margin-bottom: 16px !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brand-card h3,
body.woocommerce-shop .brand-card h3 {
    margin-bottom: 8px !important;
    font-size: 18px !important;
    letter-spacing: 0.01em !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brand-card p:first-of-type,
body.woocommerce-shop .brand-card p:first-of-type {
    margin-bottom: 12px !important;
    font-size: 12px !important;
    letter-spacing: 0.2em !important;
}

body.post-type-archive-product:not(.tax-product_cat) .brand-card p:last-of-type,
body.woocommerce-shop .brand-card p:last-of-type {
    color: rgba(232, 234, 237, 0.86) !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
}

@media (max-width: 768px) {
    body.post-type-archive-product:not(.tax-product_cat) .content-area,
    body.woocommerce-shop .content-area {
        margin-top: 0 !important;
    }

    body.post-type-archive-product:not(.tax-product_cat) .entry-header.page-header,
    body.woocommerce-shop .entry-header.page-header {
        padding: 8px 0 0 !important;
        margin-bottom: 2px !important;
    }

    body.post-type-archive-product:not(.tax-product_cat) .brands-section,
    body.woocommerce-shop .brands-section {
        padding-top: 0 !important;
        padding-bottom: 20px !important;
    }

    body.post-type-archive-product:not(.tax-product_cat) .brands-section h2,
    body.woocommerce-shop .brands-section h2 {
        margin-bottom: 14px !important;
        font-size: clamp(24px, 7vw, 34px) !important;
    }

    body.post-type-archive-product:not(.tax-product_cat) .brand-card,
    body.woocommerce-shop .brand-card {
        padding: 20px 16px !important;
    }
}
