/*
Theme Name: REEJIM Exhaust Theme
Theme URI: https://www.reejim.com/
Author: REEJIM
Description: Starter WordPress theme for the REEJIM Exhaust product website.
Version: 0.3.4
*/

:root {
  --reejim-bg: #060b12;
  --reejim-panel: #0f1723;
  --reejim-panel-2: #131f31;
  --reejim-line: rgba(255, 255, 255, 0.1);
  --reejim-text: #f3f7fc;
  --reejim-muted: #9ba8bb;
  --reejim-accent: #2d78ff;
  --reejim-ink: #132235;
  --reejim-subtle: #52647d;
  --reejim-title-blue: #0b2a4a;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  color: var(--reejim-text);
  background: linear-gradient(180deg, #04070c, #0b1220 50%, #060a10);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.site-shell {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.wp-catalog-page {
  width: min(1180px, calc(100% - 40px)) !important;
}

.site-header .logo .logo-image,
.site-header .logo-image {
  width: 180px !important;
  max-width: 180px !important;
  height: auto !important;
  max-height: 56px !important;
  object-fit: contain !important;
}

.catalog-hero {
  padding: 96px 0 40px;
}

.catalog-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.catalog-lead {
  margin: 0;
  color: var(--reejim-muted);
  max-width: 720px;
}

.catalog-overview-card {
  background: #ffffff !important;
}

.catalog-overview-title,
.product-card .catalog-overview-title {
  margin: 0 0 14px !important;
  color: var(--reejim-title-blue) !important;
  font-size: 1.45rem !important;
  font-weight: 900 !important;
  line-height: 1.15 !important;
  text-transform: uppercase;
}

.catalog-overview-description {
  color: #415571 !important;
  line-height: 1.65;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  padding-bottom: 60px;
}

.catalog-layout {
  display: grid !important;
  grid-template-columns: 260px minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: start;
  padding-bottom: 70px;
}

.catalog-sidebar {
  position: sticky !important;
  top: 96px;
  background: #ffffff;
  border: 1px solid rgba(19, 34, 53, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(9, 20, 34, 0.08);
  padding: 18px;
}

.catalog-sidebar h2 {
  margin: 0 0 14px;
  color: var(--reejim-title-blue);
  font-size: 1rem;
  font-weight: 900;
}

.catalog-nav-link,
.catalog-subnav-link {
  display: block !important;
  border-radius: 6px;
  color: var(--reejim-subtle);
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none !important;
}

.catalog-nav-link {
  margin-top: 8px;
  padding: 11px 12px;
  background: #f1f5fb;
  color: var(--reejim-title-blue);
  font-size: 0.98rem;
  box-shadow: inset 0 0 0 1px rgba(19, 34, 53, 0.04);
}

.catalog-subnav-link {
  margin-top: 3px;
  padding: 7px 8px 7px 14px;
  font-size: 0.84rem;
  font-weight: 650;
  color: #66758b;
}

.catalog-nav-link.active,
.catalog-nav-link:hover {
  background: #eef5ff;
  color: var(--reejim-accent);
}

.catalog-subnav-link.active,
.catalog-subnav-link:hover {
  background: rgba(45, 120, 255, 0.08);
  color: var(--reejim-accent);
}

.catalog-section + .catalog-section {
  margin-top: 38px;
}

.catalog-sidebar-children {
  margin: 4px 0 12px;
  padding: 2px 0 4px 14px;
  border-left: 2px solid #e7eef8;
}

.catalog-section-header {
  margin-bottom: 16px;
}

.catalog-section-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--reejim-accent);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-section-header h2 {
  margin: 0;
  color: var(--reejim-ink);
  font-size: 1.7rem;
}

.catalog-products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)) !important;
  gap: 18px !important;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
  gap: 24px;
  padding-bottom: 32px;
}

.product-detail-single {
  display: block;
}

.product-detail-catalog-layout {
  grid-template-columns: 260px minmax(0, 1fr) !important;
}

.product-detail-main {
  min-width: 0;
}

.product-card {
  background: #ffffff;
  border: 1px solid rgba(19, 34, 53, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(9, 20, 34, 0.08);
  overflow: hidden;
}

.product-card > a {
  display: block;
}

.product-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.catalog-product-card img {
  width: 100% !important;
  height: 210px !important;
  max-height: 210px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
}

.product-detail-media {
  max-width: 760px;
  margin: 0 auto 28px;
}

.product-detail-media img,
.product-detail-media .wp-post-image,
.product-detail-single .product-detail-media img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #080d14;
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3,
.product-card-body h3 a {
  color: #0b2a4a !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.catalog-product-card .product-card-body {
  padding: 18px;
}

.product-card-title {
  margin: 0 0 12px;
  color: var(--reejim-ink);
  font-size: 1.2rem;
  line-height: 1.25;
}

.product-card-title a {
  color: inherit;
}

.product-card-description {
  margin: 0 0 18px;
  color: var(--reejim-subtle);
  line-height: 1.55;
}

.catalog-product-card .product-card-description {
  display: -webkit-box;
  overflow: hidden;
  min-height: 4.6em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.spec-tags,
.spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.spec-tags span,
.spec-list span {
  border: 1px solid rgba(16, 59, 111, 0.12);
  background: #f4f8fd;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--reejim-ink);
}

.product-card-specs {
  margin-top: 16px;
}

.product-card-specs span {
  border-radius: 6px;
  width: 100%;
}

.subcategory-list li {
  padding: 0 !important;
  overflow: hidden;
}

.subcategory-list a {
  display: inline-flex !important;
  min-height: 36px;
  align-items: center;
  padding: 8px 12px;
  color: #132235 !important;
  font-weight: 700;
  opacity: 1 !important;
  text-decoration: none !important;
}

.subcategory-list a:hover {
  color: #0f6cf6 !important;
}

.catalog-inline-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--reejim-accent);
  font-weight: 700;
}

.whatsapp-button {
  display: inline-flex;
  margin-top: 18px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--reejim-accent);
  color: #fff;
  font-weight: 700;
}

.product-detail-content {
  max-width: 820px;
  margin: 0;
  padding: 12px 0 72px;
  color: #d8e6f5;
}

.product-detail-content h2 {
  margin: 0 0 18px;
  color: #f5f9ff;
  font-size: 1.6rem;
}

.product-detail-content p,
.product-detail-content li {
  color: #c9d8ea;
  line-height: 1.75;
}

.product-detail-content ul,
.product-detail-content ol {
  margin: 0 0 22px 22px;
  padding: 0;
}

.product-detail-content strong,
.product-detail-content b {
  color: #ffffff;
}

.product-detail-content a:not(.whatsapp-button) {
  color: #66a3ff;
  font-weight: 700;
}

.product-info-card h2 {
  margin: 0 0 18px;
  color: var(--reejim-ink);
  font-size: 1.2rem;
}

.product-detail-specs {
  margin-top: 18px;
}

.product-detail-specs span {
  border-radius: 6px;
  width: 100%;
}

.product-image-placeholder {
  display: grid;
  min-height: 360px;
  place-items: center;
  color: var(--reejim-muted);
  background: rgba(255, 255, 255, 0.04);
}

@media (max-width: 760px) {
  .site-header .logo-image {
    width: 150px !important;
    max-width: 150px !important;
  }

  .catalog-layout {
    grid-template-columns: 1fr !important;
  }

  .catalog-sidebar {
    position: static;
  }

  .catalog-product-card img {
    height: 190px !important;
    max-height: 190px !important;
  }

  .product-detail-layout {
    grid-template-columns: 1fr;
  }
}
