/* --- GLOBAL PAGE BLACKOUT --- */
body, 
#page-content, 
.page-content-inner, 
.off-canvas-wrapper, 
.off-canvas-content {
    background-color: #000000 !important;
}

/* Fix the thumbnail arrows */
#page-product .product-images-module .product-images ul.secondary-images.owl-carousel .owl-next, 
#page-product .product-images-module .product-images ul.secondary-images.owl-carousel .owl-prev {
     height: 60px;
    padding: 0;
}

#featured-custom .product-wrapper-link {
   height: 360px;
}

#page-home #vehicle-custom #custom-h1 h1 {
    text-align: center;
}

/* Custom Mobile Links */
.custom-mobile-links li a {
    background-color: #C51A47;
    display: block;
    width: 100%;
    margin: 0;
    vertical-align: middle;
    padding: 5px;
    border: 1px #fff solid;
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    color: #fff;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
}
.links-list-module.links-display-block .links-list {
    display: block;
}
.custom-mobile-links li a:hover {
    background-color: #e64570;
}

#mobile-search {
    margin-top: 0px !important;
}

/* Page Pet Accessories Page */
.themePageBanner {
        position: relative;
}

.themePageBanner::before {
        content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.4);
    z-index: 1;
}

@media screen and (max-width: 767px) {
    .themePageBanner::before {
            background-color: rgba(0,0,0,0.5);
    }
    .themePageBanner .banner-vpicker-module .slider .rslides_container .rslides li,
    .themePageBanner .banner-vpicker-module .slider .rslides_container .rslides,
    .themePageBanner .banner-vpicker-module {
            height: calc(200px + (500 - 200) * ((100vw - 320px) / (768 - 320))) !important;
    }
}

.themePageBanner .banner-vpicker-module .banner-overlay-content .header-text,
.themePageBanner .banner-vpicker-module .banner-overlay-content .custom_content {
        text-align: left;
    font-weight: 300;
    font-family: var(--themeFontRegular);
}

.themePageBanner .banner-vpicker-module .banner-overlay-content .custom_content {
        font-size: 1rem;
    letter-spacing: .3px;
}

.themePageBanner .banner-vpicker-module .banner-overlay-content {
        left: 0;
}

.themePagePadding {
        padding: 50px 0;
}

.description_body .manufacturer-logos {
        display: inline-block;
}

.description_body .manufacturer-logos img {
        width: 37px !important;
    padding: 0 !important;
}

.themePageProductList .catalog-products {
        display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

@media screen and (max-width: 767px) {
    .themePageProductList .catalog-products {
            grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    .themePageProductList .catalog-products {
            grid-template-columns: repeat(1, 1fr);
    }
}

.themePageProductList .search-listing-module .catalog-product {
        margin-left: 0;
    margin-right: 0;
    border: 0;
    padding: 20px 20px;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.themePageProductList .search-listing-module .catalog-product .product-image-col,
.themePageProductList .search-listing-module .catalog-product .product-details-col,
.themePageProductList .search-listing-module .catalog-product .add-to-cart-col {
        width: 100%;
    padding: 0;
}

.themePageProductList .search-listing-module .catalog-product .add-to-cart-col {
    margin-block-start: auto;
}

.themePageProductList .search-listing-module .catalog-product .product-image-col {
    margin-bottom: 20px;
}

.themePageProductList .search-listing-module .catalog-product .product-details-col .product-title a {
        font-size: 22px;
    color: var(--themeColor);
    font-family: var(--themeFontRegular);
}

.themePageProductList .search-listing-module .catalog-product .product-image-col>a {
        height: 300px;
}

.themePageProductList .search-listing-module .catalog-product .product-purchase-button .place-order-button {
        background-color: var(--themeColor);
    color: #fff;
    text-align: center;
    display: block;
    padding: 10px 10px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 25px;
    width: 100%;
    font-family: var(--themeFontRegular) !important;
    font-size: 16px;
    font-weight: 300;
    text-transform: capitalize;
}

.themePageProductList .search-listing-module .catalog-product:hover .product-image-col>a img {
        transform: scale(1.1);
}

.themePageProductList .search-listing-module .catalog-product .product-image-col>a img {
    width: 100%;
    height: 300px;
    object-fit: contain;
    transition: all .3s ease-in-out;
}

.themePageProductList .search-listing-module .catalog-product .sale-price {
        font-size: 20px;
}

.themePageProductList .search-listing-module .catalog-product .product-manufacturer .product-manufacturer-data span strong {
        display: none;
}

.search-listing-module .catalog-product .product-details-col .product-title a {
        color: #000;
}

.selected-vehicle-tile .select-vehicle-link {
        color: #000;
}

html body .action-button.place-order-button {
        background-color: var(--themeColor);
    border-radius: 50px;
    width: 100%;
    font-weight: 700;
    font-family: var(--themeFontBold);
    font-size: 14px !important;
    position: relative;
}

html body .action-button.place-order-button::before {
        -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    content: "\F07A";
    display: inline-block;
    font-family: FontAwesome\ 4;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 1;
    margin-right: 8px;
    position: relative;
    top: 0;
}

html body .action-button.place-order-button:hover,
html body .action-button.place-order-button:focus {
        background-color: var(--themeColor);
    opacity: .8;
}

.vp_category_sidebar_module .all-category-parts, .vp_category_sidebar_module .category-accessories, .vp_category_sidebar_module .category-parts {
        padding: 15px 15px;
    background-color: #fff;
}

.themePageProductListNew {
        margin-bottom: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

@media screen and (max-width: 767px) {
    .themePageProductListNew {
            grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 500px) {
    .themePageProductListNew {
            grid-template-columns: repeat(1, 1fr);
    }
}

.themePageProductListCard {
        padding: 20px 20px;
    background-color: #fff;
}

.themePageProductListImg img {
        width: 100%;
    height: 300px;
    object-fit: cover;
    transition: all .3s ease-in-out;
}

.themePageProductListContent {
        padding-top: 20px;
}

.themePageProductListContent h3 {
        font-size: 22px;
    color: var(--themeColor);
    font-family: var(--themeFontRegular);
}

.themeMSRP {
        text-decoration: line-through;
    font-size: 12px;
    margin-bottom: 0;
}

.themePartNumber {
        font-size: 12px;
    margin-bottom: 5px;
}

.themePartLogo {
        margin-bottom: 1rem;
}

.themePrice {
        font-size: 20px;
    font-weight: 700;
    margin-bottom: 0;
}

.themePartLogo img {
        width: 40px;
}

.themeOtherNames,
.themeDescription {
        font-size: 12px;
    margin-bottom: 5px;
}

.themeButton a {
        background-color: var(--themeColor);
    color: #fff;
    text-align: center;
    display: block;
    padding: 10px 10px;
    margin-top: 20px;
    cursor: pointer;
    border-radius: 25px;
}

.themeButton a:hover,
.themeButton a:focus {
        text-decoration: none;
}

.themePageProductListImg {
        overflow: hidden;
}

.themePageProductListLink {
        cursor: pointer;
}

.themePageProductListLink:hover .themePageProductListImg img {
        transform: scale(1.1);
}

/* Fonts */
@font-face {
    font-family:'nissan-light';
    src:url('https://cdn.revolutionparts.io/42394aa61e7f417307148d55124bba0d/design/fonts/NissanBrandW01-Light.woff2') format('woff2')
}

@font-face {
    font-family:'nissan-regular';
    src:url('https://cdn.revolutionparts.io/42394aa61e7f417307148d55124bba0d/design/fonts/NissanBrandW01-Regular.woff2') format('woff2')
}

@font-face {
    font-family:'nissan-bold';
    src:url('https://cdn.revolutionparts.io/42394aa61e7f417307148d55124bba0d/design/fonts/NissanBrandW01-Bold.woff2') format('woff2')
}

@font-face {
    font-family:'nissan-global';
    src:url('https://cdn.revolutionparts.io/42394aa61e7f417307148d55124bba0d/design/fonts/Nissan-Global.woff2') format('woff2')
}

/* Global Variables */
:root {
        --themeColor: #c3002f;
    --themeTextColor: #343434;
    --themeFontLight: 'nissan-light';
    --themeFontRegular: 'nissan-regular';
    --themeFontBold: 'nissan-bold';
    --themeFontGlobal: 'nissan-global';
}

/* --- NEW MENU BUTTON STYLES --- */

/* 1. THE MAIN BAR (The "Rail") */
div:has(> .container .links-list),
section:has(.links-list),
.row:has(.links-list) {
    background-color: #000000 !important;
    border-bottom: 3px solid #c3002f;
    border-top: 1px solid #111;
}

/* 2. THE BUTTONS */
.links-list {
    text-align: center;
    margin: 0;
    padding: 0;
}

.links-list ul {
    margin: 0; padding: 0;
}

.links-list li {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: inline-block;
}

.links-list a {
    background-color: transparent;
    color: #ffffff !important;
    border-bottom: 3px solid transparent;
    padding: 12px 15px;
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    border-right: 1px solid #222;
    transition: all 0.2s ease;
}

/* 3. THE HOVER EFFECT */
.links-list a:hover {
    background-color: #c3002f; 
    color: #ffffff !important;
    border-bottom: 3px solid #c3002f;
}

.links-list a i {
    font-size: 14px;
    vertical-align: middle;
    position: relative;
    top: -1px;
}

/* --- NUCLEAR SEARCH BAR FIX --- */
input[placeholder*="Part Number"],
input[placeholder*="Keywords"], 
input[type="search"],
#search_query, 
input[name="search_query"],
.search-input {
    background-color: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #555 !important;
    box-shadow: none !important;
}

/* The Focus State (Clicking inside) */
input[placeholder*="Part Number"]:focus,
input[placeholder*="Keywords"]:focus, 
input[type="search"]:focus,
#search_query:focus, 
input[name="search_query"]:focus {
    background-color: #000000 !important;
    border: 2px solid #c3002f !important;
    box-shadow: inset 0 0 10px rgba(195, 0, 47, 0.8) !important;
    outline: none !important;
}

/* The Search Button */
.input-group-btn button.btn,
button[type="submit"],
.search-form .btn, 
.search-submit {
    background-color: #c3002f !important;
    border: 1px solid #c3002f !important;
    color: #fff !important;
    z-index: 10 !important;
}

/* --- NISMO VIN SECTION --- */
.nismo-vin h3,
.nismo-vin p, 
.nismo-vin div,
.nismo-vin em,
.nismo-vin i {
    font-style: normal !important;
    font-family: sans-serif !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    letter-spacing: 1px;
}

.nismo-vin input {
    background-color: #222222 !important;
    border: 1px solid #444444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

.nismo-vin input:focus {
    background-color: #000000 !important;
    border: 2px solid #c3002f !important;
    box-shadow: inset 0 0 15px rgba(195, 0, 47, 0.8) !important;
    outline: none !important;
}

/* --- NUCLEAR FOOTER FIX --- */
footer ul, #footer ul, .site-footer ul, .footer-links ul,
.site-footer .col-sm-3 ul, .site-footer .col-md-3 ul, footer [class*="col-"] ul {
    padding-left: 0 !important;
    margin-left: 0 !important;
    list-style-type: none !important;
}

footer li, #footer li, .site-footer li,
.site-footer li, footer [class*="col-"] li {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-bottom: 8px;
    text-align: left !important;
}

footer h3, footer h4, .footer-heading {
    border-bottom: none !important;
    margin-bottom: 15px !important;
    padding-left: 0 !important;
    text-transform: uppercase;
    font-weight: 800;
    color: #ffffff !important;
}

footer a, #footer a {
    color: #999999 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: all 0.2s;
}

footer a:hover, #footer a:hover {
    color: #c3002f !important;
    padding-left: 5px !important;
}

footer address, #footer address, footer p {
    color: #cccccc !important;
    margin-left: 0 !important;
    text-align: left !important;
}

/* --- MOBILE FIXES --- */
@media only screen and (max-width: 767px) {
    .header-logo img {
        max-height: 50px !important;
        width: auto !important;
        margin-top: 10px;
    }
    .header-logo {
        text-align: center;
        padding-bottom: 10px;
        background: transparent !important;
        box-shadow: none !important;
    }
    body, #page-content, .page-content-inner, .container-header, .mobile-header {
        background-color: #000000 !important;
        background-image: url('https://cdn-static.revolutionparts.io/assets/images/carbon-fiber.png') !important;
        background-repeat: repeat;
        color: #ffffff;
    }
    .mobile-header-inner {
        background: transparent !important;
        box-shadow: none !important;
    }
    .mobile-menu-toggle i, .header-cart-icon i, .header-cart-count {
        color: #ffffff !important;
    }
    #vin-custom p, #vin-custom .text-content, #vin-custom h3 { 
        display: none !important; 
    }
    #vin-custom {
        background-color: #000000 !important;
        padding: 10px 5px !important;
        border-bottom: 1px solid #333;
    }
    .popular-links-container .btn, .btn-group-vertical > .btn {
        width: 48% !important;
        display: inline-block !important;
        margin: 1% !important;
        font-size: 13px !important;
    }
}

/* --- NISMO RED SCANNER --- */
.glitch-wrapper {
  background-color: #000000 !important; 
  text-align: center;
  padding: 15px 0 5px 0;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  position: relative; 
  z-index: 5; 
}
.nismo-glitch {
  font-size: 28px;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  display: inline-block;
  background: linear-gradient(110deg, #ffffff 40%, #ff0000 50%, #ffffff 60%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: scan-beam 4s linear infinite;
}
.nismo-glitch::before, .nismo-glitch::after { display: none !important; }
@keyframes scan-beam { to { background-position: 200% center; } }
@media (max-width: 767px) { .nismo-glitch { font-size: 20px !important; } }

/* --- EV NEON PULSE --- */
.ev-glow {
  font-family: 'Nissan Brand', sans-serif;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 2px;
  animation: neon-pulse 1.5s infinite alternate;
}
@keyframes neon-pulse {
  from { text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #00A4E4, 0 0 20px #00A4E4; }
  to { text-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #00A4E4, 0 0 40px #00d2ff, 0 0 50px #00d2ff; }
}
.btn-pulse { animation: box-pulse 2s infinite; }
@keyframes box-pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 164, 228, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(0, 164, 228, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 164, 228, 0); }
}

/* --- NISMO OFF-ROAD LANDING PAGE --- */
.nismo-landing-container {
  background-color: #000;
  color: #fff;
  font-family: 'Nissan Brand', sans-serif;
}
.nismo-hero {
  background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/D41%20FRONTIER/T99E4-D41ASM_Hero_Image.jpg');
  height: 60vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nismo-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
}
.nismo-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
}
.nismo-hero h2 {
  font-size: 4em;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
  font-style: italic;
}
.nismo-hero .subtitle {
  display: block;
  font-size: 1.5em;
  margin-bottom: 30px;
  color: #ccc;
  letter-spacing: 2px;
}
.nismo-btn {
  background-color: #cc0000;
  color: white;
  padding: 15px 40px;
  font-size: 1.2em;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  border: 2px solid #cc0000;
}
.nismo-btn:hover {
  background-color: transparent;
  color: #cc0000;
}
.nismo-intro {
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
}
.nismo-intro h3 {
  color: #cc0000;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.parallax-section {
  height: 500px;
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px;
}
.section-contour { background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/D41%20FRONTIER/T99E4-D41ASM_Hero_Image_2.jpg'); }
.section-kit { background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/D41%20FRONTIER/T99E4-D41ASM_Hero_Image_3.jpg'); }
.section-grip { background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/D41%20FRONTIER/T99E4-D41ASM_Hero_Image_4.jpg'); }
.section-installed { background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/D41%20FRONTIER/T99E4-D41ASM_HERO_6.jpg'); }
.info-box {
  background: rgba(0,0,0,0.85);
  padding: 30px;
  max-width: 400px;
  border-left: 4px solid #cc0000;
  margin-right: 5%;
}
.info-box h4 {
  color: #fff;
  font-size: 1.8em;
  margin-top: 0;
  text-transform: uppercase;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 40px;
  background: #111;
}
.feature-card {
  background: #1a1a1a;
  padding: 30px;
  border-radius: 4px;
  text-align: center;
  border: 1px solid #333;
}
.feature-icon {
  font-size: 3em;
  margin-bottom: 10px;
  display: block;
}
.feature-card h4 {
  color: #cc0000;
  margin: 10px 0;
  text-transform: uppercase;
}
@media (max-width: 768px) {
  .nismo-hero h2 { font-size: 2.5em; }
  .parallax-section { background-attachment: scroll; height: auto; flex-direction: column; padding: 0; }
  .info-box { max-width: 100%; margin: 0; width: 100%; border-left: none; border-bottom: 4px solid #cc0000; }
}

/* --- SENTRA DARK MODE LANDING PAGE --- */
.sentra-landing-container {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Nissan Brand', sans-serif;
}
.sentra-hero {
  background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/26%20SENTRA/T99E4-7SF0A-hero-3.jpg');
  height: 60vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sentra-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
}
.sentra-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 800px;
}
.sentra-hero h2 {
  font-size: 3.5em;
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-shadow: 0 5px 15px rgba(0,0,0,0.9);
}
.sentra-hero .subtitle {
  display: block;
  font-size: 1.4em;
  margin-bottom: 40px;
  color: #e0e0e0;
  font-weight: 300;
}
.sentra-btn {
  background-color: #c3002f;
  color: white;
  padding: 15px 50px;
  font-size: 1.1em;
  font-weight: bold;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(195, 0, 47, 0.4);
}
.sentra-btn:hover {
  background-color: #a00025;
  transform: translateY(-2px);
}
.sentra-intro {
  text-align: center;
  padding: 70px 20px;
  max-width: 800px;
  margin: 0 auto;
  border-bottom: 1px solid #222;
}
.sentra-intro h3 {
  color: #c3002f;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
}
.sentra-intro p {
  color: #bbb;
  font-size: 1.1em;
  line-height: 1.8;
}
.section-kit .info-box {
  border-left: none;
  border-right: 4px solid #c3002f;
}

/* --- NISMO LIFESTYLE & PERFORMANCE (Common Styles) --- */
.np-sub-wrapper {
  background-color: #000000;
  color: #ffffff;
  font-family: 'Nissan Brand', sans-serif;
  padding-bottom: 60px;
}
.np-sub-hero {
  background-image: url('https://cdn-static.revolutionparts.io/assets/images/carbon-fiber.png');
  background-color: #111;
  padding: 60px 20px;
  text-align: center;
  border-bottom: 2px solid #cc0000;
  position: relative;
}
.np-hero-performance {
  background-image: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/Gift%20Guide%202025/Nismo_Performance_Parts.jpg');
  background-size: cover;
  background-position: center;
}
.np-sub-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.6);
}
.np-sub-overlay {
  position: relative;
  z-index: 2;
}
.np-sub-overlay h1 {
  color: #fff;
  font-size: 3.5em;
  font-weight: 900;
  text-transform: uppercase;
  margin: 0;
  letter-spacing: 2px;
  text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}
.np-sub-overlay p {
  color: #cc0000;
  font-size: 1.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  font-weight: 700;
}
.np-manual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}
.np-prod-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s;
  display: flex;
  flex-direction: column;
}
.np-prod-card:hover {
  transform: translateY(-5px);
  border-color: #cc0000;
}
.np-prod-img-container {
  background: #fff;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-bottom: 1px solid #333;
}
.np-prod-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}
.np-prod-info {
  padding: 20px;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.np-prod-title {
  color: #fff;
  font-size: 1.1em;
  margin: 0 0 10px 0;
  font-weight: 600;
  line-height: 1.4;
}
.np-prod-price {
  color: #cc0000;
  font-size: 1.4em;
  font-weight: 800;
  margin-bottom: 15px;
}
.np-prod-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
}
.np-prod-btn:hover {
  background: #cc0000;
  border-color: #cc0000;
}
.np-interstitial-visual {
  position: relative;
  margin: 40px 20px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #333;
}
.np-interstitial-visual img {
  width: 100%;
  height: auto;
  display: block;
  filter: brightness(0.7);
}
.np-interstitial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  padding: 0 20px;
}
.np-interstitial-text h2 {
  color: #fff;
  font-size: 2.5em;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  margin-bottom: 10px;
}
.np-interstitial-text p {
  color: #ddd;
  font-size: 1.2em;
  margin-bottom: 20px;
}
.np-interstitial-text a {
  background: #cc0000;
  color: #fff;
  padding: 12px 30px;
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  border-radius: 4px;
}
.np-sub-footer {
  text-align: center;
  padding: 60px 20px;
  background: #111;
  border-top: 1px solid #333;
}
.np-footer-btn {
  border: 2px solid #fff;
  color: #fff;
  padding: 15px 40px;
  text-transform: uppercase;
  font-weight: 800;
  text-decoration: none;
  transition: all 0.3s;
}
.np-footer-btn:hover {
  background: #fff;
  color: #000;
}
@media (max-width: 768px) {
  .np-sub-overlay h1 { font-size: 2em; }
  .np-interstitial-text h2 { font-size: 1.5em; }
  .np-interstitial-text { position: relative; transform: none; top: auto; left: auto; background: #000; padding: 30px; }
  .np-btn-group { flex-direction: column; }
}

/* --- PRODUCT GRID FIXES --- */

/* 1. FIX THE INVISIBLE TEXT */
.catalog-products .catalog-product,
.catalog-product .product-description,
.catalog-product .product-data,
.catalog-product span, 
.catalog-product div {
    color: #cccccc !important;
}

/* Force "Strong" tags (like 'Part Number:') to be White */
.catalog-product strong,
.catalog-product b {
    color: #ffffff !important;
}

/* Fix the "Shop all..." links */
.catalog-product a {
    color: #cc0000 !important; /* Nissan Red */
}

/* 2. FIX THE QUANTITY BOX */
.catalog-product .input-group input[type="text"],
.catalog-product .input-group input[type="number"],
.catalog-product .qty-input {
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    text-align: center;
}

/* Style the Plus/Minus Buttons */
.catalog-product .input-group-btn button,
.catalog-product .qty-up,
.catalog-product .qty-down {
    background-color: #333333 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}
.catalog-product .input-group-btn button:hover {
    background-color: #cc0000 !important;
    border-color: #cc0000 !important;
}

/* 3. CARD BORDERS */
.catalog-product {
    border: 1px solid #333 !important;
    background-color: #000000 !important;
}

/* --- GLOBAL READABILITY & DARK MODE TEXT FIX --- */

/* 1. FLIP ALL STANDARD TEXT TO LIGHT GREY */
body,
#page-content,
.page-content-inner,
.product-details-module, 
.product-description,
.product-data,
p, li, span, div, label {
    color: #cccccc !important;
}

/* 2. FLIP HEADERS TO WHITE */
h1, h2, h3, h4, h5, h6,
strong, b,
.product-title,
.header-text,
label {
    color: #ffffff !important;
}

/* 3. FIX BREADCRUMBS */
.breadcrumb a,
.breadcrumbs a {
    color: #999999 !important;
}
.breadcrumb > .active,
.breadcrumbs > .active {
    color: #cc0000 !important;
}

/* 4. GLOBAL INPUT BOX DARKENER */
input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea,
.form-control,
.qty-input {
    background-color: #222222 !important;
    border: 1px solid #444 !important;
    color: #ffffff !important;
    box-shadow: none !important;
}

/* 5. FIX BUTTONS */
.input-group-btn button,
.product-quantity .btn {
    background-color: #333333 !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}
.input-group-btn button:hover {
    background-color: #cc0000 !important;
}

/* 6. PRICE VISIBILITY */
.product-price .msrp,
.product-price .list-price {
    color: #888888 !important;
    text-decoration: line-through;
}
.product-price .sale-price,
.product-price .your-price {
    color: #ffffff !important;
    font-weight: bold;
}

/* --- SAFE NISMO LOGO SWAP (ICONS ONLY) --- */

/* We ONLY target images sitting inside specific "Manufacturer" or "Brand" boxes */
.product-details-module .manufacturer-logo img[src*="nismo"],
.product-details-module .manufacturer-logo img[alt*="Nismo"],
.catalog-product .product-manufacturer img[src*="nismo"],
.catalog-product .brand-logo img,
.manufacturer-logo img,
.brand-image img {
    /* FORCE THE NEW IMAGE */
    content: url('https://cdn.revolutionparts.io/92bc82032d886fd052d99116fccc8bf7/design/Nismo%20Goods/NISMO_dark.png') !important;
     
    /* RESET FILTERS */
    filter: none !important;
    mix-blend-mode: normal !important;
     
    /* SIZE & POSITIONING */
    height: 30px !important;
    width: auto !important;
    display: block !important;
    object-fit: contain !important;
    background-color: transparent !important;
}

/* SAFETY CATCH: Explicitly protect Main Product Images */
.product-image img,
.product-main-image img,
.product-images-module img {
    content: normal !important; 
}

/* --- PRODUCT PAGE POLISH --- */

/* 1. VEHICLE FITMENT TABLE */
#page-product .table thead th,
#page-product .vehicle-fitment-module th {
    background-color: #000000 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #cc0000 !important;
    border-top: none !important;
}

/* Rows */
#page-product .table tbody tr,
#page-product .table tbody td,
#page-product .table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #111111 !important;
    color: #cccccc !important;
    border-color: #333333 !important;
}

/* --- GOD MODE: FORCE DARKNESS --- */

/* 1. UNIVERSAL TABLE HEADER NUKE */
html body #page-product table thead th,
html body #page-product table th,
html body #page-product .table > thead > tr > th {
    background: #000000 !important;
    background-color: #000000 !important;
    color: #ffffff !important;
    border-bottom: 2px solid #cc0000 !important;
    border-top: none !important;
}

/* 2. UNIVERSAL INPUT BOX NUKE */
html body #page-product input[name="qty"],
html body #page-product .product-quantity input,
html body #page-product .input-group input.form-control {
    background: #222222 !important;
    background-color: #222222 !important;
    color: #ffffff !important;
    border: 1px solid #444444 !important;
    box-shadow: none !important;
    text-align: center !important;
}

/* 3. FORCE BUTTONS TO MATCH */
html body #page-product .product-quantity button,
html body #page-product .input-group-btn button {
    background: #333333 !important;
    border: 1px solid #333333 !important;
    color: #ffffff !important;
}

/* --- MASTER RESET: FORCE PHOTOS VISIBLE --- */
/* This is the missing piece that fixes your invisible photos */
img, 
.catalog-product img,
.product-main-image img,
.product-image-container img {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-block !important;
    mix-blend-mode: normal !important;
    filter: none !important;
}

/* --- THE FOG KILLER (Visibility Method) --- */
/* Safely hides the white overlay */
.enlarge-image-overlay,
div[style*="hsla(0, 0%, 100%, .6)"] {
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    background: none !important;
}

/* --- GRID BACKGROUND (Safe Mode) --- */
/* Paints the wall behind the images black */
.catalog-product .product-image a,
.product-listing .product-image-container {
    background-color: #000000 !important;
    border: 1px solid #222 !important;
}

/* --- FORCE HEADER ALIGNMENT TO MATCH CONTENT --- */

/* 1. Constrain the Main Header (Logo & Search) */
.header-main .row, 
.site-header .row, 
.header-middle .row,
header .row {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* 2. FORCE CENTER NAVIGATION (The Fix) */
.main-nav .row, 
.navigation-bar .row, 
.top-bar .row {
    max-width: 1500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    
    /* Turn off Flexbox/Grid that might be forcing left align */
    display: block !important; 
    text-align: center !important;
}

/* Target the inner columns that hold the links */
.main-nav .col-md-12,
.navigation-bar .col-md-12,
.main-nav div[class*="col-"],
.navigation-bar div[class*="col-"] {
    float: none !important;
    display: inline-block !important;
    text-align: center !important;
    width: 100% !important; /* Force full width so text-align works */
}

/* Target the list itself (The <ul>) */
.main-nav ul,
.navigation-bar ul,
.links-list ul {
    display: inline-block !important; /* Shrink wrap the list */
    float: none !important;
    margin: 0 auto !important;
    text-align: center !important;
}

/* Target the list items (The <li>) */
.main-nav li,
.navigation-bar li,
.links-list li {
    float: none !important;
    display: inline-block !important;
}

/* 3. Ensure the background stays full width */
.header-main, .site-header, .main-nav, .navigation-bar {
    width: 100% !important;
}
/* --- THE CONTENT TARGET KILL --- */
/* This detects the Nismo Hero banner (truck image) and hides the subcategories ONLY on that page */
body:has(.nismo-hero) .category-children-module {
    display: none !important;
}

/* Also hide it on the sub-pages where we used the custom grid (looking for the grid box style) */
body:has(a[href*="/nismo-offroad-suspension"]) .category-children-module {
    display: none !important;
}