/* MoroParts live overrides on top of the original demo visual system. */
:root {
  --accent: #961123;
  --accent-hover: #76101d;
  --primary: #303033;
  --primary-dark: #202024;
}

.header-logo {
  width: 174px;
  height: auto;
  display: block;
  padding: .15rem .4rem;
  border-radius: 8px;
  background: #fff;
}

.site-header .site-logo {
  min-width: 190px;
}

.products-section {
  background: var(--light-bg);
}

.product-card-name,
.product-card-vehicle,
.product-card-sku {
  overflow-wrap: anywhere;
}

.product-card-img-wrap img {
  background: #f1f3f5;
}

.product-detail-page {
  background: var(--light-bg);
  min-height: 70vh;
}

.product-gallery-main {
  display: grid;
  place-items: center;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.product-gallery-main img {
  width: 100%;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
}

.product-info-panel {
  height: 100%;
  padding: 1.4rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.product-title {
  color: var(--primary);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: .98;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.product-meta span {
  display: inline-flex;
  border: 1px solid #e2ddd2;
  border-radius: 999px;
  padding: .25rem .65rem;
  color: var(--text-muted-custom);
  font-size: .82rem;
  font-weight: 800;
}

.product-detail-price {
  margin: 1rem 0;
  color: var(--accent);
  font-family: var(--display-font);
  font-size: 2.4rem;
  font-weight: 800;
}

.product-detail-box {
  margin: 1rem 0;
  padding: 1rem;
  border: 1px solid #eee7dc;
  border-radius: 8px;
  background: #fffdf8;
}

.product-detail-box strong {
  display: block;
  margin-bottom: .4rem;
  color: var(--primary);
}

.product-detail-box p {
  margin: 0;
  color: #505963;
}

.login.panel {
  max-width: 430px;
  margin: 5rem auto;
  padding: 1.2rem;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--card-shadow);
}

.login form {
  display: grid;
  gap: .75rem;
}

@media (max-width: 768px) {
  .site-header .site-logo {
    min-width: 0;
  }

  .header-logo {
    width: 148px;
  }

  .product-gallery-main {
    min-height: 320px;
  }
}
