/*
Theme Name: JDM Parts
Version: 1.0.0
Text Domain: jdm-parts
Requires at least: 6.6
Requires PHP: 8.0
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #16191c;
  font-family: Arial, Helvetica, sans-serif;
}

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

/* Header */
.site-header {
  background: #fff;
}

.header-inner {
  max-width: 1500px;
  margin: auto;
  padding: 18px 4%;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand-main {
  font-weight: 900;
  font-style: italic;
  font-size: 34px;
  letter-spacing: -2px;
  line-height: .9;
}

.brand-main strong {
  color: #e31b23;
}

.brand-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3.5px;
  margin: 9px 0 0 45px;
}

.header-copy {
  font-size: 14px;
  line-height: 1.35;
  border-left: 1px solid #999;
  padding-left: 28px;
}

.header-copy span {
  display: block;
}

.cta {
  background: #e31b23;
  color: #fff;
  padding: 15px 24px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.nav-row {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #ddd;
  min-height: 48px;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-row nav {
  display: flex;
  gap: 40px;
  font-weight: 700;
  font-size: 13px;
}

.nav-row nav a.active {
  color: #e31b23;
}

.ship {
  font-size: 12px;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  background: #111;
}

.hero > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.08) 58%, rgba(0,0,0,0));
}

.hero-copy {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 600px;
}

.eyebrow {
  letter-spacing: .35em;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 90px);
  font-style: italic;
  line-height: .86;
  margin: 18px 0 20px;
  letter-spacing: -3px;
}

.hero h1 span {
  color: #ed1c24;
}

.hero p {
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-copy > a {
  display: inline-block;
  background: #ed1c24;
  color: #fff;
  padding: 17px 25px;
  font-weight: 800;
  font-size: 13px;
}

.hero-copy > a b {
  margin-left: 25px;
}

/* Trust Bar */
.trust {
  background: #151a1e;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 5%;
  gap: 20px;
}

.trust div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #3c4247;
  padding-left: 8%;
}

.trust div:last-child {
  border: 0;
}

.trust b {
  font-size: 12px;
}

.trust span {
  font-size: 9px;
  color: #aeb4b8;
  margin-top: 5px;
  letter-spacing: .08em;
}

/* Sections Common */
.brands-section,
.category-section {
  max-width: 1500px;
  margin: auto;
  padding: 34px 4%;
}

.heading {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 18px;
}

.heading h2 {
  font-size: 30px;
  font-style: italic;
  margin: 0;
}

.heading p {
  font-size: 11px;
  letter-spacing: .22em;
  color: #777;
  margin: 0;
}

/* Brands Single-Row Strip */
.brandrail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0 12px;
}

.brandrail::-webkit-scrollbar {
  display: none;
}

.brandcard {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 4px;
  background: transparent;
  transition: transform .2s ease;
}

.brandcard:hover {
  transform: translateY(-2px);
}

.brandcard img {
  display: block;
  max-height: 32px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brandcard:hover img {
  filter: grayscale(0%);
}

.brandcard span {
  display: none;
}

.brand-more {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #ccc;
  padding-left: 14px;
  margin-left: 4px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .12em;
  color: #777;
  text-transform: uppercase;
  white-space: nowrap;
}

.availability {
  font-size: 11px;
  color: #777;
  margin: 10px 0 0;
}

/* Category Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.card {
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45/1;
  object-fit: cover;
  transition: transform .2s;
}

.card:hover img {
  transform: scale(1.03);
}

.card span {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  font-size: 11px;
  font-weight: 800;
}

/* About */
.about {
  background: #161b1f;
  color: #fff;
  margin-top: 15px;
}

.about-inner {
  max-width: 1500px;
  margin: auto;
  padding: 48px 5%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.jp {
  font-size: 24px;
}

.about h2 {
  font-style: italic;
  font-size: 34px;
  margin: 8px 0;
}

.about h2 span {
  font-weight: 500;
}

.about p {
  font-size: 18px;
  line-height: 1.55;
  color: #d7dadd;
  margin: 0;
}

/* Footer */
footer {
  background: #0c0f11;
  color: #fff;
}

.foot {
  max-width: 1500px;
  margin: auto;
  padding: 32px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  font-size: 13px;
}

.foot div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot div:last-child {
  text-align: right;
  align-items: flex-end;
}

.foot span {
  color: #aeb4b8;
}

/* Media Queries */
@media(max-width: 1200px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .header-copy {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 700px) {
  .header-inner {
    padding: 14px 5%;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .brand-main {
    font-size: 27px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 2.5px;
    margin-left: 30px;
  }
  .cta {
    padding: 11px 12px;
    font-size: 10px;
  }
  .nav-row {
    padding: 0 5%;
    overflow: hidden;
  }
  .nav-row nav {
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 10px;
  }
  .ship {
    display: none;
  }
  .hero {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }
  .hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05));
  }
  .hero-copy {
    left: 5%;
    right: 5%;
    top: auto;
    bottom: 7%;
    transform: none;
    max-width: 420px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: .22em;
  }
  .hero h1 {
    font-size: 45px;
    letter-spacing: -2px;
    margin: 11px 0 12px;
  }
  .hero p {
    font-size: 13px;
    max-width: 290px;
    margin-bottom: 16px;
  }
  .hero-copy > a {
    padding: 12px 16px;
    font-size: 10px;
  }
  .trust {
    grid-template-columns: 1fr;
    padding: 8px 5%;
    gap: 0;
  }
  .trust div {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #343a3f;
  }
  .brands-section,
  .category-section {
    padding: 28px 5%;
  }
  .heading {
    display: block;
  }
  .heading h2 {
    font-size: 28px;
  }
  .heading p {
    margin-top: 5px;
    letter-spacing: .1em;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card img {
    aspect-ratio: 1.35/1;
  }
  .card span {
    height: 40px;
    font-size: 10px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 5%;
  }
  .about h2 {
    font-size: 27px;
  }
  .about p {
    font-size: 15px;
  }
  .foot {
    grid-template-columns: 1fr;
    padding: 28px 5%;
  }
  .foot div:last-child {
    text-align: left;
    align-items: flex-start;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Payment Methods in Cart */
.payment-methods-cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.payment-methods-cart span {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-methods-cart img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Cart Icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: #333;
  transition: color 0.2s;
}

.cart-icon:hover {
  color: #e31b23;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #e31b23;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Language Selector Dropdown */
.language-selector {
  position: relative;
}

.lang-dropdown-btn {
  background: #e31b23;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  color: #000;
}

.lang-dropdown-btn:hover {
  background: #c41820;
}

.lang-dropdown-btn .flag {
  font-size: 16px;
}

.lang-dropdown-btn .arrow {
  font-size: 10px;
  transition: transform 0.2s;
  color: #000;
}

.lang-dropdown-btn .arrow.open {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 85px;
}

.lang-option {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #f7f7f7;
}

.lang-option.active {
  background: #e31b23;
}

.lang-option .flag {
  font-size: 16px;
}

/* Payment Methods */
.payment-methods {
  max-width: 1500px;
  margin: auto;
  padding: 20px 5%;
  border-top: 1px solid #1a1f22;
  text-align: center;
}

.payment-methods b {
  font-size: 11px;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
  color: #aeb4b8;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payment-card {
  padding: 6px 14px;
  background: #161b1f;
  border: 1px solid #2a2f33;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d7dadd;
}

/* Products Page */
.products-page {
  max-width: 1500px;
  margin: auto;
  padding: 34px 4%;
}

.products-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.products-filters input,
.products-filters select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 13px;
  font-family: inherit;
}

.products-filters input {
  flex: 1;
  min-width: 250px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  border: 1px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.product-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 10px;
  font-weight: 700;
  color: #777;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  flex: 1;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #e31b23;
  margin-bottom: 10px;
}

.product-stock {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-stock.in-stock {
  color: #2d9736;
}

.product-stock.out-of-stock {
  color: #999;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  flex: 1;
}

.btn-primary {
  background: #e31b23;
  color: #fff;
}

.btn-primary:hover {
  background: #c41820;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

/* Product Detail Page */
.product-detail {
  max-width: 1200px;
  margin: auto;
  padding: 34px 4%;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.product-detail-image {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-info h1 {
  font-size: 32px;
  font-style: italic;
  margin: 0 0 12px;
}

.product-detail-info .product-brand {
  font-size: 12px;
  margin-bottom: 12px;
}

.product-detail-info .product-price {
  font-size: 36px;
  margin-bottom: 16px;
}

.product-detail-info .product-stock {
  font-size: 13px;
  margin-bottom: 20px;
}

.product-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
}

.product-specs {
  background: #f7f7f7;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.product-specs h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.product-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}

.product-specs dt {
  font-weight: 700;
  font-size: 13px;
}

.product-specs dd {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.quantity-selector label {
  font-weight: 700;
  font-size: 13px;
}

.quantity-selector input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  text-align: center;
}

.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
}

/* Cart Page */
.cart-page {
  max-width: 1200px;
  margin: auto;
  padding: 34px 4%;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty p {
  font-size: 18px;
  color: #777;
  margin-bottom: 24px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.cart-item-image {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.cart-item-info h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.cart-item-info .product-brand {
  margin-bottom: 8px;
}

.cart-item-info .product-price {
  font-size: 18px;
  margin-bottom: 12px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-quantity input {
  width: 60px;
  padding: 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 12px;
}

.cart-item-remove:hover {
  color: #e31b23;
}

.cart-summary {
  background: #f7f7f7;
  padding: 24px;
  border: 1px solid #e0e0e0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  font-size: 20px;
  margin: 0 0 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-summary-row.total {
  font-size: 20px;
  font-weight: 800;
  padding-top: 12px;
  border-top: 2px solid #ddd;
  margin-top: 12px;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  margin-top: 20px;
}

/* Checkout Page */
.checkout-page {
  max-width: 1200px;
  margin: auto;
  padding: 34px 4%;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section {
  background: #fff;
  padding: 24px;
  border: 1px solid #e0e0e0;
}

.form-section h2 {
  font-size: 18px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #e31b23;
}

.order-summary {
  background: #f7f7f7;
  padding: 24px;
  border: 1px solid #e0e0e0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.order-summary h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
}

.order-summary-item:last-of-type {
  border-bottom: 2px solid #ddd;
}

.order-summary-item .quantity {
  color: #777;
  margin-left: 6px;
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  margin-top: 20px;
}

/* Mobile Responsive */
@media(max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary,
  .order-summary {
    position: static;
  }
}

@media(max-width: 700px) {
  .payment-methods-cart {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .payment-methods-cart img {
    height: 20px;
  }
  .lang-dropdown-btn {
    padding: 6px 10px;
  }
  .payment-icons {
    gap: 8px;
  }
  .payment-card {
    padding: 5px 10px;
    font-size: 9px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
  .cart-item-image {
    width: 100%;
    height: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.wp-content-area { max-width:1500px; margin:auto; padding:34px 4%; }
.language-selector summary {list-style:none;cursor:pointer;font-family:Arial,Helvetica,sans-serif;font-weight:700;color:#000;background:#e31b23;}
.language-selector summary::-webkit-details-marker {display:none;}
.lang-option {display:block;text-align:center;font-family:Arial,Helvetica,sans-serif;}
.woocommerce ul.products {display:flex;flex-wrap:wrap;gap:20px;}
.woocommerce ul.products li.product {float:none;margin:0;width:calc(25% - 20px);}
.woocommerce a.button,.woocommerce button.button.alt {background:#e31b23;color:#fff;}
@media(max-width:700px){.nav-row nav{flex-wrap:wrap;gap:12px;}.woocommerce ul.products li.product{width:100%;}.header-inner{grid-template-columns:1fr auto;}.header-copy{display:none;}}

/* Softer neutral canvas for dark product imagery. */
body{background:#eef0f2;color:#16191c;}
body .jdm-motion{background:#eef0f2;color:#16191c;}
body .jdm-motion-pause{background:rgba(238,240,242,.94);color:#333;}
.brands-section,.category-section,.wp-content-area{background:transparent;}
.card{background:#f7f8f9;border-color:#d7dce1;}

/* Shared type roles for the native WordPress/WooCommerce frontend. */
:root {
  --jdm-font: Arial, Helvetica, sans-serif;
  --jdm-page-title: 32px;
  --jdm-section-title: 30px;
  --jdm-panel-title: 20px;
  --jdm-product-card-title: 18px;
  --jdm-body-size: 15px;
  --jdm-brand-size: 12px;
  --jdm-sku-size: 13px;
  --jdm-price-size: 24px;
  --jdm-ink: #16191c;
  --jdm-muted: #666;
  --jdm-accent: #e31b23;
}
body { font-family: var(--jdm-font); font-size: var(--jdm-body-size); line-height: 1.6; }
#main-content { font-family: var(--jdm-font); font-size: var(--jdm-body-size); color: var(--jdm-ink); }
#main-content :is(h1, .entry-title, .product_title, .woocommerce-products-header__title) {
  font-family: var(--jdm-font); font-size: var(--jdm-page-title); font-style: italic;
  font-weight: 700; line-height: 1.15; letter-spacing: normal;
}
#main-content h2 {
  font-family: var(--jdm-font); font-size: var(--jdm-section-title); font-style: italic;
  font-weight: 700; line-height: 1.2; letter-spacing: normal;
}
#main-content h3 {
  font-family: var(--jdm-font); font-size: var(--jdm-panel-title); font-style: normal;
  font-weight: 700; line-height: 1.3; letter-spacing: normal;
}
#main-content :is(p, li, td, dd, blockquote) { font-family: var(--jdm-font); font-size: var(--jdm-body-size); line-height: 1.6; }
#main-content .heading p { font-size: 11px; font-style: normal; font-weight: 400; line-height: 1.5; letter-spacing: .22em; color: #777; }
#main-content .about h2 { font-size: 34px; }
#main-content .about p { font-size: 18px; line-height: 1.55; color: #d7dadd; }
#main-content .about p a { font-family: var(--jdm-font); }
#main-content :is(.jdm-finder h2, .woocommerce-tabs .panel h2, .woocommerce-Reviews-title,
  .cart_totals h2, .cross-sells > h2, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3,
  #order_review_heading, .wc-block-components-title, .wc-block-components-checkout-step__title,
  .wc-block-cart__totals-title, .wc-block-checkout__contact-fields h2,
  .wc-block-cart__empty-cart__title) {
  font-size: var(--jdm-panel-title); font-style: normal; font-weight: 800; line-height: 1.3; letter-spacing: normal;
}
#main-content :is(.woocommerce-loop-product__title, .wc-block-components-product-name,
  .wc-block-grid__product-title, .product-name, .product-name a, .wc-block-components-order-summary-item__description a) {
  font-family: var(--jdm-font); font-size: var(--jdm-product-card-title); font-style: normal;
  font-weight: 700; line-height: 1.35; letter-spacing: normal;
}
#main-content :is(.woocommerce-product-details__short-description, .woocommerce-product-details__short-description p,
  .woocommerce-Tabs-panel--description p, .product-description) {
  font-family: var(--jdm-font); font-size: var(--jdm-body-size); font-style: normal;
  font-weight: 400; line-height: 1.6; letter-spacing: normal; color: #555;
}
#main-content .product_meta { font-family: var(--jdm-font); font-size: var(--jdm-brand-size); font-weight: 400; font-style: normal; line-height: 1.6; color: var(--jdm-muted); }
#main-content .product_meta > span { display: block; margin: 5px 0; }
#main-content :is(.product-brand, .product_meta .posted_in:has(a[href*="/brand/"])) {
  font-family: var(--jdm-font); font-size: var(--jdm-brand-size); font-weight: 700;
  font-style: normal; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--jdm-muted);
}
#main-content .product_meta .sku_wrapper { font-size: var(--jdm-brand-size); font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; }
#main-content :is(.product_meta .sku, .sku, .part-number) {
  font-family: var(--jdm-font); font-size: var(--jdm-sku-size); font-weight: 400;
  font-style: normal; letter-spacing: .03em; line-height: 1.5; text-transform: none; color: var(--jdm-muted);
}
#main-content :is(.price, .product-price, .wc-block-components-product-price) {
  font-family: var(--jdm-font); font-size: var(--jdm-price-size); font-weight: 800;
  font-style: normal; line-height: 1.3; letter-spacing: normal; color: var(--jdm-accent);
}
#main-content .price :is(ins, .amount) { font: inherit; color: inherit; }
#main-content .price del { font-size: .75em; font-weight: 400; color: var(--jdm-muted); }
#main-content :is(.stock, .woocommerce-breadcrumb, .woocommerce-result-count, .wc-block-components-product-metadata) {
  font-family: var(--jdm-font); font-size: 12px; font-style: normal; font-weight: 400; line-height: 1.5;
}
#main-content .woocommerce-product-attributes :is(th, td, p) { font-size: 13px; font-style: normal; line-height: 1.5; }
#main-content .woocommerce-product-attributes th { font-weight: 700; }
#main-content :is(label, .form-row label, .wc-block-components-text-input label) {
  font-family: var(--jdm-font); font-size: 13px; font-weight: 700; font-style: normal; line-height: 1.4;
}
#main-content :is(input, select, textarea, button, .button, .wp-element-button) { font-family: var(--jdm-font); }
#main-content :is(input, select, textarea) { font-size: 14px; font-style: normal; font-weight: 400; line-height: 1.5; }
#main-content :is(button, .button, .wp-element-button) { font-size: 13px; font-style: normal; font-weight: 800; line-height: 1.4; letter-spacing: normal; }
#main-content :is(.jdm-finder-field > span, .wc-block-components-combobox label) { font-size: 12px; font-weight: 700; line-height: 1.4; }
#main-content .jdm-finder :is(input, select) { font-size: 13px; }
#main-content .woocommerce-tabs ul.tabs li a { font-family: var(--jdm-font); font-size: 13px; font-weight: 700; line-height: 1.4; }
#main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-error li) {
  font-family: var(--jdm-font); font-size: 13px; font-style: normal; font-weight: 400; line-height: 1.5;
}
@media (max-width:700px) {
  :root { --jdm-page-title:28px; --jdm-section-title:28px; --jdm-product-card-title:16px; --jdm-price-size:22px; }
  #main-content .about h2 { font-size: 27px; }
  #main-content .about p { font-size: 15px; }
}

/* Shared header: vehicle finder replaces the former tagline. */
.site-header .header-inner {
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header .header-finder { min-width: 0; }
.site-header .header-finder .jdm-finder { padding: 0; border: 0; background: transparent; }
.site-header .header-finder .jdm-finder-inner { max-width: none; }
.site-header .header-finder .jdm-finder h2,
.site-header .header-finder .jdm-finder-field > span:first-child {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-header .header-finder .jdm-finder-form {
  grid-template-columns: 1fr 1fr .72fr 1fr 1.35fr auto;
  gap: 7px;
}
.site-header .header-finder .jdm-finder-field { gap: 4px; }
.site-header .header-finder .jdm-finder-field > span {
  font: 700 11px/1.3 Arial, Helvetica, sans-serif;
  color: #444;
}
.site-header .header-finder .jdm-finder select,
.site-header .header-finder .jdm-finder input[type="search"] {
  height: 34px;
  padding: 0 8px;
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
}
.site-header .header-finder .jdm-finder select:has(option[value=""]:checked),
.site-header .header-finder .jdm-finder input::placeholder {
  color: #737980;
  opacity: 1;
}
.site-header .header-finder .jdm-finder select option { color: #16191c; }
.site-header .header-finder .jdm-finder select option[value=""] { color: #737980; }
.site-header .header-finder .jdm-finder button {
  height: 34px;
  padding: 0 13px;
  white-space: nowrap;
  font: 800 12px/1.3 Arial, Helvetica, sans-serif;
}
.site-header .header-actions { gap: 16px; align-self: center; align-items: center; }
.site-header .header-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 38px;
  min-height: 44px;
  padding: 0;
  color: #16191c;
  font: 700 11px/1.2 Arial, Helvetica, sans-serif;
}
.site-header .header-action svg { display: block; flex: none; }
.site-header .header-action:hover { color: #e31b23; }
.site-header .header-action:focus-visible { outline: 2px solid #16191c; outline-offset: 3px; }
.site-header .header-action .cart-count {
  position: absolute;
  top: -3px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  color: #fff;
  background: #e31b23;
  font: 700 10px/1 Arial, Helvetica, sans-serif;
}
.footer-payments-label {
  max-width: 1380px;
  margin: 24px auto 0;
  padding-top: 15px;
  border-top: 1px solid #343a3e;
  color: #aeb4b8;
  text-align: center;
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
}
@media (max-width: 1150px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  .site-header .header-finder { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .site-header .header-inner { padding: 14px 4%; }
  .site-header .header-finder .jdm-finder-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .site-header .header-finder .jdm-finder-field:nth-of-type(5) { grid-column: 2; }
  .site-header .header-finder .jdm-finder button { grid-column: 3; }
  .site-header .nav-row { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .ship { display: none; }
}
/*
Theme Name: JDM Parts
Version: 1.0.0
Text Domain: jdm-parts
Requires at least: 6.6
Requires PHP: 8.0
*/
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: #16191c;
  font-family: Arial, Helvetica, sans-serif;
}

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

/* Header */
.site-header {
  background: #fff;
}

.header-inner {
  max-width: 1500px;
  margin: auto;
  padding: 18px 4%;
  display: grid;
  grid-template-columns: 280px 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand-main {
  font-weight: 900;
  font-style: italic;
  font-size: 34px;
  letter-spacing: -2px;
  line-height: .9;
}

.brand-main strong {
  color: #e31b23;
}

.brand-sub {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 3.5px;
  margin: 9px 0 0 45px;
}

.header-copy {
  font-size: 14px;
  line-height: 1.35;
  border-left: 1px solid #999;
  padding-left: 28px;
}

.header-copy span {
  display: block;
}

.cta {
  background: #e31b23;
  color: #fff;
  padding: 15px 24px;
  font-weight: 800;
  font-size: 13px;
  white-space: nowrap;
}

.nav-row {
  border-top: 1px solid #eee;
  border-bottom: 1px solid #ddd;
  min-height: 48px;
  padding: 0 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-row nav {
  display: flex;
  gap: 40px;
  font-weight: 700;
  font-size: 13px;
}

.nav-row nav a.active {
  color: #e31b23;
}

.ship {
  font-size: 12px;
  font-weight: 700;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  background: #111;
}

.hero > img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.52), rgba(0,0,0,.08) 58%, rgba(0,0,0,0));
}

.hero-copy {
  position: absolute;
  left: 6%;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  max-width: 600px;
}

.eyebrow {
  letter-spacing: .35em;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(46px, 6vw, 90px);
  font-style: italic;
  line-height: .86;
  margin: 18px 0 20px;
  letter-spacing: -3px;
}

.hero h1 span {
  color: #ed1c24;
}

.hero p {
  font-size: 18px;
  margin: 0 0 28px;
}

.hero-copy > a {
  display: inline-block;
  background: #ed1c24;
  color: #fff;
  padding: 17px 25px;
  font-weight: 800;
  font-size: 13px;
}

.hero-copy > a b {
  margin-left: 25px;
}

/* Trust Bar */
.trust {
  background: #151a1e;
  color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 18px 5%;
  gap: 20px;
}

.trust div {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #3c4247;
  padding-left: 8%;
}

.trust div:last-child {
  border: 0;
}

.trust b {
  font-size: 12px;
}

.trust span {
  font-size: 9px;
  color: #aeb4b8;
  margin-top: 5px;
  letter-spacing: .08em;
}

/* Sections Common */
.brands-section,
.category-section {
  max-width: 1500px;
  margin: auto;
  padding: 34px 4%;
}

.heading {
  display: flex;
  align-items: baseline;
  gap: 28px;
  margin-bottom: 18px;
}

.heading h2 {
  font-size: 30px;
  font-style: italic;
  margin: 0;
}

.heading p {
  font-size: 11px;
  letter-spacing: .22em;
  color: #777;
  margin: 0;
}

/* Brands Single-Row Strip */
.brandrail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: none;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 6px 0 12px;
}

.brandrail::-webkit-scrollbar {
  display: none;
}

.brandcard {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 4px;
  background: transparent;
  transition: transform .2s ease;
}

.brandcard:hover {
  transform: translateY(-2px);
}

.brandcard img {
  display: block;
  max-height: 32px;
  max-width: 110px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.brandcard:hover img {
  filter: grayscale(0%);
}

.brandcard span {
  display: none;
}

.brand-more {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #ccc;
  padding-left: 14px;
  margin-left: 4px;
  font-size: 8px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .12em;
  color: #777;
  text-transform: uppercase;
  white-space: nowrap;
}

.availability {
  font-size: 11px;
  color: #777;
  margin: 10px 0 0;
}

/* Category Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
}

.card {
  border: 1px solid #e0e0e0;
  background: #f7f7f7;
  overflow: hidden;
  display: block;
  cursor: pointer;
}

.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1.45/1;
  object-fit: cover;
  transition: transform .2s;
}

.card:hover img {
  transform: scale(1.03);
}

.card span {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5px;
  font-size: 11px;
  font-weight: 800;
}

/* About */
.about {
  background: #161b1f;
  color: #fff;
  margin-top: 15px;
}

.about-inner {
  max-width: 1500px;
  margin: auto;
  padding: 48px 5%;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.jp {
  font-size: 24px;
}

.about h2 {
  font-style: italic;
  font-size: 34px;
  margin: 8px 0;
}

.about h2 span {
  font-weight: 500;
}

.about p {
  font-size: 18px;
  line-height: 1.55;
  color: #d7dadd;
  margin: 0;
}

/* Footer */
footer {
  background: #0c0f11;
  color: #fff;
}

.foot {
  max-width: 1500px;
  margin: auto;
  padding: 32px 5%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  font-size: 13px;
}

.foot div {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.foot div:last-child {
  text-align: right;
  align-items: flex-end;
}

.foot span {
  color: #aeb4b8;
}

/* Media Queries */
@media(max-width: 1200px) {
  .header-inner {
    grid-template-columns: 1fr auto;
  }
  .header-copy {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 700px) {
  .header-inner {
    padding: 14px 5%;
    grid-template-columns: 1fr auto;
    gap: 8px;
  }
  .brand-main {
    font-size: 27px;
  }
  .brand-sub {
    font-size: 8px;
    letter-spacing: 2.5px;
    margin-left: 30px;
  }
  .cta {
    padding: 11px 12px;
    font-size: 10px;
  }
  .nav-row {
    padding: 0 5%;
    overflow: hidden;
  }
  .nav-row nav {
    gap: 22px;
    overflow-x: auto;
    white-space: nowrap;
    padding-right: 10px;
  }
  .ship {
    display: none;
  }
  .hero {
    height: 430px;
    min-height: 430px;
    max-height: 430px;
  }
  .hero > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
  }
  .hero-shade {
    background: linear-gradient(90deg, rgba(0,0,0,.55), rgba(0,0,0,.05));
  }
  .hero-copy {
    left: 5%;
    right: 5%;
    top: auto;
    bottom: 7%;
    transform: none;
    max-width: 420px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: .22em;
  }
  .hero h1 {
    font-size: 45px;
    letter-spacing: -2px;
    margin: 11px 0 12px;
  }
  .hero p {
    font-size: 13px;
    max-width: 290px;
    margin-bottom: 16px;
  }
  .hero-copy > a {
    padding: 12px 16px;
    font-size: 10px;
  }
  .trust {
    grid-template-columns: 1fr;
    padding: 8px 5%;
    gap: 0;
  }
  .trust div {
    padding: 10px 0;
    border-right: 0;
    border-bottom: 1px solid #343a3f;
  }
  .brands-section,
  .category-section {
    padding: 28px 5%;
  }
  .heading {
    display: block;
  }
  .heading h2 {
    font-size: 28px;
  }
  .heading p {
    margin-top: 5px;
    letter-spacing: .1em;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .card img {
    aspect-ratio: 1.35/1;
  }
  .card span {
    height: 40px;
    font-size: 10px;
  }
  .about-inner {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 36px 5%;
  }
  .about h2 {
    font-size: 27px;
  }
  .about p {
    font-size: 15px;
  }
  .foot {
    grid-template-columns: 1fr;
    padding: 28px 5%;
  }
  .foot div:last-child {
    text-align: left;
    align-items: flex-start;
  }
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Payment Methods in Cart */
.payment-methods-cart {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.payment-methods-cart span {
  font-size: 13px;
  font-weight: 700;
  color: #333;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.payment-methods-cart img {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Cart Icon */
.cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  color: #333;
  transition: color 0.2s;
}

.cart-icon:hover {
  color: #e31b23;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #e31b23;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

/* Language Selector Dropdown */
.language-selector {
  position: relative;
}

.lang-dropdown-btn {
  background: #e31b23;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
  color: #000;
}

.lang-dropdown-btn:hover {
  background: #c41820;
}

.lang-dropdown-btn .flag {
  font-size: 16px;
}

.lang-dropdown-btn .arrow {
  font-size: 10px;
  transition: transform 0.2s;
  color: #000;
}

.lang-dropdown-btn .arrow.open {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 85px;
}

.lang-option {
  width: 100%;
  background: transparent;
  border: none;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  border-bottom: 1px solid #f0f0f0;
}

.lang-option:last-child {
  border-bottom: none;
}

.lang-option:hover {
  background: #f7f7f7;
}

.lang-option.active {
  background: #e31b23;
}

.lang-option .flag {
  font-size: 16px;
}

/* Payment Methods */
.payment-methods {
  max-width: 1500px;
  margin: auto;
  padding: 20px 5%;
  border-top: 1px solid #1a1f22;
  text-align: center;
}

.payment-methods b {
  font-size: 11px;
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: 12px;
  color: #aeb4b8;
}

.payment-icons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payment-card {
  padding: 6px 14px;
  background: #161b1f;
  border: 1px solid #2a2f33;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #d7dadd;
}

/* Products Page */
.products-page {
  max-width: 1500px;
  margin: auto;
  padding: 34px 4%;
}

.products-filters {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.products-filters input,
.products-filters select {
  padding: 10px 14px;
  border: 1px solid #ddd;
  font-size: 13px;
  font-family: inherit;
}

.products-filters input {
  flex: 1;
  min-width: 250px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.product-card {
  border: 1px solid #e0e0e0;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

.product-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-brand {
  font-size: 10px;
  font-weight: 700;
  color: #777;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.product-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  flex: 1;
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  color: #e31b23;
  margin-bottom: 10px;
}

.product-stock {
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
}

.product-stock.in-stock {
  color: #2d9736;
}

.product-stock.out-of-stock {
  color: #999;
}

.product-actions {
  display: flex;
  gap: 8px;
}

.btn {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  flex: 1;
}

.btn-primary {
  background: #e31b23;
  color: #fff;
}

.btn-primary:hover {
  background: #c41820;
}

.btn-primary:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.btn-secondary {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #f5f5f5;
}

/* Product Detail Page */
.product-detail {
  max-width: 1200px;
  margin: auto;
  padding: 34px 4%;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.product-detail-image {
  background: #f7f7f7;
  border: 1px solid #e0e0e0;
}

.product-detail-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-detail-info h1 {
  font-size: 32px;
  font-style: italic;
  margin: 0 0 12px;
}

.product-detail-info .product-brand {
  font-size: 12px;
  margin-bottom: 12px;
}

.product-detail-info .product-price {
  font-size: 36px;
  margin-bottom: 16px;
}

.product-detail-info .product-stock {
  font-size: 13px;
  margin-bottom: 20px;
}

.product-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
}

.product-specs {
  background: #f7f7f7;
  padding: 18px;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
}

.product-specs h3 {
  font-size: 14px;
  font-weight: 700;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.product-specs dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}

.product-specs dt {
  font-weight: 700;
  font-size: 13px;
}

.product-specs dd {
  margin: 0;
  font-size: 13px;
  color: #666;
}

.quantity-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.quantity-selector label {
  font-weight: 700;
  font-size: 13px;
}

.quantity-selector input {
  width: 80px;
  padding: 8px;
  border: 1px solid #ddd;
  font-size: 14px;
  text-align: center;
}

.add-to-cart-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
}

/* Cart Page */
.cart-page {
  max-width: 1200px;
  margin: auto;
  padding: 34px 4%;
}

.cart-empty {
  text-align: center;
  padding: 60px 20px;
}

.cart-empty p {
  font-size: 18px;
  color: #777;
  margin-bottom: 24px;
}

.cart-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-item {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 18px;
  padding: 18px;
  border: 1px solid #e0e0e0;
  background: #fff;
}

.cart-item-image {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.cart-item-info h3 {
  font-size: 16px;
  margin: 0 0 6px;
}

.cart-item-info .product-brand {
  margin-bottom: 8px;
}

.cart-item-info .product-price {
  font-size: 18px;
  margin-bottom: 12px;
}

.cart-item-quantity {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item-quantity input {
  width: 60px;
  padding: 6px;
  border: 1px solid #ddd;
  text-align: center;
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
  margin-left: 12px;
}

.cart-item-remove:hover {
  color: #e31b23;
}

.cart-summary {
  background: #f7f7f7;
  padding: 24px;
  border: 1px solid #e0e0e0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.cart-summary h2 {
  font-size: 20px;
  margin: 0 0 20px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
}

.cart-summary-row.total {
  font-size: 20px;
  font-weight: 800;
  padding-top: 12px;
  border-top: 2px solid #ddd;
  margin-top: 12px;
}

.checkout-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  margin-top: 20px;
}

/* Checkout Page */
.checkout-page {
  max-width: 1200px;
  margin: auto;
  padding: 34px 4%;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 40px;
}

.checkout-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-section {
  background: #fff;
  padding: 24px;
  border: 1px solid #e0e0e0;
}

.form-section h2 {
  font-size: 18px;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e0e0e0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
}

.form-group input {
  padding: 10px 12px;
  border: 1px solid #ddd;
  font-size: 14px;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #e31b23;
}

.order-summary {
  background: #f7f7f7;
  padding: 24px;
  border: 1px solid #e0e0e0;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.order-summary h2 {
  font-size: 18px;
  margin: 0 0 16px;
}

.order-summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
}

.order-summary-item:last-of-type {
  border-bottom: 2px solid #ddd;
}

.order-summary-item .quantity {
  color: #777;
  margin-left: 6px;
}

.place-order-btn {
  width: 100%;
  padding: 16px;
  font-size: 14px;
  margin-top: 20px;
}

/* Mobile Responsive */
@media(max-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 900px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
  .cart-grid,
  .checkout-grid {
    grid-template-columns: 1fr;
  }
  .cart-summary,
  .order-summary {
    position: static;
  }
}

@media(max-width: 700px) {
  .payment-methods-cart {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .payment-methods-cart img {
    height: 20px;
  }
  .lang-dropdown-btn {
    padding: 6px 10px;
  }
  .payment-icons {
    gap: 8px;
  }
  .payment-card {
    padding: 5px 10px;
    font-size: 9px;
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .cart-item {
    grid-template-columns: 1fr;
  }
  .cart-item-image {
    width: 100%;
    height: auto;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}

.wp-content-area { max-width:1500px; margin:auto; padding:34px 4%; }
.language-selector summary {list-style:none;cursor:pointer;font-family:Arial,Helvetica,sans-serif;font-weight:700;color:#000;background:#e31b23;}
.language-selector summary::-webkit-details-marker {display:none;}
.lang-option {display:block;text-align:center;font-family:Arial,Helvetica,sans-serif;}
.woocommerce ul.products {display:flex;flex-wrap:wrap;gap:20px;}
.woocommerce ul.products li.product {float:none;margin:0;width:calc(25% - 20px);}
.woocommerce a.button,.woocommerce button.button.alt {background:#e31b23;color:#fff;}
@media(max-width:700px){.nav-row nav{flex-wrap:wrap;gap:12px;}.woocommerce ul.products li.product{width:100%;}.header-inner{grid-template-columns:1fr auto;}.header-copy{display:none;}}

/* Softer neutral canvas for dark product imagery. */
body{background:#eef0f2;color:#16191c;}
body .jdm-motion{background:#eef0f2;color:#16191c;}
body .jdm-motion-pause{background:rgba(238,240,242,.94);color:#333;}
.brands-section,.category-section,.wp-content-area{background:transparent;}
.card{background:#f7f8f9;border-color:#d7dce1;}

/* Shared type roles for the native WordPress/WooCommerce frontend. */
:root {
  --jdm-font: Arial, Helvetica, sans-serif;
  --jdm-page-title: 32px;
  --jdm-section-title: 30px;
  --jdm-panel-title: 20px;
  --jdm-product-card-title: 18px;
  --jdm-body-size: 15px;
  --jdm-brand-size: 12px;
  --jdm-sku-size: 13px;
  --jdm-price-size: 24px;
  --jdm-ink: #16191c;
  --jdm-muted: #666;
  --jdm-accent: #e31b23;
}
body { font-family: var(--jdm-font); font-size: var(--jdm-body-size); line-height: 1.6; }
#main-content { font-family: var(--jdm-font); font-size: var(--jdm-body-size); color: var(--jdm-ink); }
#main-content :is(h1, .entry-title, .product_title, .woocommerce-products-header__title) {
  font-family: var(--jdm-font); font-size: var(--jdm-page-title); font-style: italic;
  font-weight: 700; line-height: 1.15; letter-spacing: normal;
}
#main-content h2 {
  font-family: var(--jdm-font); font-size: var(--jdm-section-title); font-style: italic;
  font-weight: 700; line-height: 1.2; letter-spacing: normal;
}
#main-content h3 {
  font-family: var(--jdm-font); font-size: var(--jdm-panel-title); font-style: normal;
  font-weight: 700; line-height: 1.3; letter-spacing: normal;
}
#main-content :is(p, li, td, dd, blockquote) { font-family: var(--jdm-font); font-size: var(--jdm-body-size); line-height: 1.6; }
#main-content .heading p { font-size: 11px; font-style: normal; font-weight: 400; line-height: 1.5; letter-spacing: .22em; color: #777; }
#main-content .about h2 { font-size: 34px; }
#main-content .about p { font-size: 18px; line-height: 1.55; color: #d7dadd; }
#main-content .about p a { font-family: var(--jdm-font); }
#main-content :is(.jdm-finder h2, .woocommerce-tabs .panel h2, .woocommerce-Reviews-title,
  .cart_totals h2, .cross-sells > h2, .woocommerce-billing-fields h3, .woocommerce-shipping-fields h3,
  #order_review_heading, .wc-block-components-title, .wc-block-components-checkout-step__title,
  .wc-block-cart__totals-title, .wc-block-checkout__contact-fields h2,
  .wc-block-cart__empty-cart__title) {
  font-size: var(--jdm-panel-title); font-style: normal; font-weight: 800; line-height: 1.3; letter-spacing: normal;
}
#main-content :is(.woocommerce-loop-product__title, .wc-block-components-product-name,
  .wc-block-grid__product-title, .product-name, .product-name a, .wc-block-components-order-summary-item__description a) {
  font-family: var(--jdm-font); font-size: var(--jdm-product-card-title); font-style: normal;
  font-weight: 700; line-height: 1.35; letter-spacing: normal;
}
#main-content :is(.woocommerce-product-details__short-description, .woocommerce-product-details__short-description p,
  .woocommerce-Tabs-panel--description p, .product-description) {
  font-family: var(--jdm-font); font-size: var(--jdm-body-size); font-style: normal;
  font-weight: 400; line-height: 1.6; letter-spacing: normal; color: #555;
}
#main-content .product_meta { font-family: var(--jdm-font); font-size: var(--jdm-brand-size); font-weight: 400; font-style: normal; line-height: 1.6; color: var(--jdm-muted); }
#main-content .product_meta > span { display: block; margin: 5px 0; }
#main-content :is(.product-brand, .product_meta .posted_in:has(a[href*="/brand/"])) {
  font-family: var(--jdm-font); font-size: var(--jdm-brand-size); font-weight: 700;
  font-style: normal; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--jdm-muted);
}
#main-content .product_meta .sku_wrapper { font-size: var(--jdm-brand-size); font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; }
#main-content :is(.product_meta .sku, .sku, .part-number) {
  font-family: var(--jdm-font); font-size: var(--jdm-sku-size); font-weight: 400;
  font-style: normal; letter-spacing: .03em; line-height: 1.5; text-transform: none; color: var(--jdm-muted);
}
#main-content :is(.price, .product-price, .wc-block-components-product-price) {
  font-family: var(--jdm-font); font-size: var(--jdm-price-size); font-weight: 800;
  font-style: normal; line-height: 1.3; letter-spacing: normal; color: var(--jdm-accent);
}
#main-content .price :is(ins, .amount) { font: inherit; color: inherit; }
#main-content .price del { font-size: .75em; font-weight: 400; color: var(--jdm-muted); }
#main-content :is(.stock, .woocommerce-breadcrumb, .woocommerce-result-count, .wc-block-components-product-metadata) {
  font-family: var(--jdm-font); font-size: 12px; font-style: normal; font-weight: 400; line-height: 1.5;
}
#main-content .woocommerce-product-attributes :is(th, td, p) { font-size: 13px; font-style: normal; line-height: 1.5; }
#main-content .woocommerce-product-attributes th { font-weight: 700; }
#main-content :is(label, .form-row label, .wc-block-components-text-input label) {
  font-family: var(--jdm-font); font-size: 13px; font-weight: 700; font-style: normal; line-height: 1.4;
}
#main-content :is(input, select, textarea, button, .button, .wp-element-button) { font-family: var(--jdm-font); }
#main-content :is(input, select, textarea) { font-size: 14px; font-style: normal; font-weight: 400; line-height: 1.5; }
#main-content :is(button, .button, .wp-element-button) { font-size: 13px; font-style: normal; font-weight: 800; line-height: 1.4; letter-spacing: normal; }
#main-content :is(.jdm-finder-field > span, .wc-block-components-combobox label) { font-size: 12px; font-weight: 700; line-height: 1.4; }
#main-content .jdm-finder :is(input, select) { font-size: 13px; }
#main-content .woocommerce-tabs ul.tabs li a { font-family: var(--jdm-font); font-size: 13px; font-weight: 700; line-height: 1.4; }
#main-content :is(.woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-error li) {
  font-family: var(--jdm-font); font-size: 13px; font-style: normal; font-weight: 400; line-height: 1.5;
}
@media (max-width:700px) {
  :root { --jdm-page-title:28px; --jdm-section-title:28px; --jdm-product-card-title:16px; --jdm-price-size:22px; }
  #main-content .about h2 { font-size: 27px; }
  #main-content .about p { font-size: 15px; }
}

/* Shared header: vehicle finder replaces the former tagline. */
.site-header .header-inner {
  grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 22px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.site-header .header-finder { min-width: 0; }
.site-header .header-finder .jdm-finder { padding: 0; border: 0; background: transparent; }
.site-header .header-finder .jdm-finder-inner { max-width: none; }
.site-header .header-finder .jdm-finder h2 {
  margin: 0 0 9px;
  font: 800 16px/1.25 Arial, Helvetica, sans-serif;
  color: #16191c;
}
.site-header .header-finder .jdm-finder-form {
  grid-template-columns: 1fr 1fr .72fr 1fr 1.35fr auto;
  gap: 7px;
}
.site-header .header-finder .jdm-finder-field { gap: 4px; }
.site-header .header-finder .jdm-finder-field > span {
  font: 700 11px/1.3 Arial, Helvetica, sans-serif;
  color: #444;
}
.site-header .header-finder .jdm-finder select,
.site-header .header-finder .jdm-finder input[type="search"] {
  height: 34px;
  padding: 0 8px;
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
}
.site-header .header-finder .jdm-finder button {
  height: 34px;
  padding: 0 13px;
  white-space: nowrap;
  font: 800 12px/1.3 Arial, Helvetica, sans-serif;
}
.site-header .header-actions { gap: 16px; align-self: end; align-items: center; }
.site-header .header-action {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 38px;
  min-height: 44px;
  padding: 0;
  color: #16191c;
  font: 700 11px/1.2 Arial, Helvetica, sans-serif;
}
.site-header .header-action svg { display: block; flex: none; }
.site-header .header-action:hover { color: #e31b23; }
.site-header .header-action:focus-visible { outline: 2px solid #16191c; outline-offset: 3px; }
.site-header .header-action .cart-count {
  position: absolute;
  top: -3px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 50%;
  color: #fff;
  background: #e31b23;
  font: 700 10px/1 Arial, Helvetica, sans-serif;
}

.footer-payments-label {
  max-width: 1380px;
  margin: 24px auto 0;
  padding-top: 15px;
  border-top: 1px solid #343a3e;
  color: #aeb4b8;
  text-align: center;
  font: 400 12px/1.4 Arial, Helvetica, sans-serif;
}
@media (max-width: 1150px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .site-header .header-actions { grid-column: 2; grid-row: 1; }
  .site-header .header-finder { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 700px) {
  .site-header .header-inner { padding: 14px 4%; }
  .site-header .header-finder .jdm-finder-form { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .site-header .header-finder .jdm-finder-field:nth-of-type(5) { grid-column: 2; }
  .site-header .header-finder .jdm-finder button { grid-column: 3; }
  .site-header .header-finder .jdm-finder-field > span:first-child { min-height: 28px; display: flex; align-items: end; }
  .site-header .nav-row { gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .site-header .ship { display: none; }
}
