/* Energized Engines Store Styles */

:root {
  --primary-color: #b22234;
  --secondary-color: #3c3b6e;
  --accent-color: #f1ef2d;
  --success-color: #10b981;
  --warning-color: #ef4444;
  --background: #ffffff;
  --surface: #f8fafc;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* P1-3: Load Questrial and Archivo fonts */
body {
  font-family: 'Questrial', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #4a4970;
  background: var(--background);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Preview Banner */
.preview-banner {
  position: sticky;
  top: 0;
  background: var(--primary-color);
  color: white;
  min-height: 36px;
  padding: 8px 16px;
  text-align: center;
  font-size: 14px;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.banner-mobile {
  display: none;
}

@media (max-width: 600px) {
  .banner-desktop {
    display: none;
  }
  .banner-mobile {
    display: inline;
  }
}

.preview-banner a {
  color: white;
  text-decoration: underline;
}

/* P1-1: Navy header like live store */
header {
  background: var(--secondary-color);
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.logo-link {
  display: block;
}

.logo {
  height: 60px;
  width: auto;
}

.contact-info {
  text-align: right;
}

.contact-info a {
  display: block;
  margin: 0;
  font-size: 15px;
  color: white;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

nav a {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  padding: 0.5rem 0;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

nav a:hover,
nav a.active {
  color: white;
  border-bottom-color: var(--accent-color);
}

/* Main Content */
main {
  min-height: 60vh;
  padding: 2rem 0;
}

/* Desktop header search */
.desktop-search-form {
  display: none;
  margin-left: auto;
  margin-right: 24px;
  gap: 8px;
}

.desktop-search-form input {
  width: 260px;
  padding: 8px 16px;
  border: 2px solid var(--secondary-color);
  border-radius: 40px;
  font-size: 14px;
  font-family: 'Questrial', sans-serif;
  color: #333;
  min-height: 44px;
}

.desktop-search-form button {
  padding: 8px 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 40px;
  font-family: 'Questrial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;
}

@media (min-width: 769px) {
  .desktop-search-form {
    display: flex;
  }
}

/* Mobile search row */
.mobile-search-row {
  display: none;
  padding: 8px 16px;
  background: #fff;
  border-bottom: 1px solid #e3e3ee;
}

.mobile-search-row form {
  display: flex;
  gap: 8px;
  max-width: 600px;
  margin: 0 auto;
}

.mobile-search-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  border: 2px solid var(--secondary-color);
  border-radius: 40px;
  padding: 0 16px;
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  color: #333;
}

.mobile-search-row button {
  min-height: 44px;
  padding: 0 20px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 40px;
  font-family: 'Questrial', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.mobile-search-row.active {
  display: block;
}

@media (max-width: 768px) {
  .desktop-search-form {
    display: none;
  }
}

@media (min-width: 769px) {
  .mobile-search-row {
    display: none !important;
  }
}

/* P1-3: Archivo headings with navy color */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
  letter-spacing: 0.02em;
}

h1 {
  font-size: 40px;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
}

h2 {
  font-size: 26px;
  margin-bottom: 1rem;
}

h3 {
  font-size: 20px;
  margin: 1.5rem 0 0.75rem;
}

p {
  margin-bottom: 1rem;
  color: #4a4970;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.hero-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary-color);
  text-decoration: none;
  font-size: 16px;
  min-height: 44px;
  padding: 8px 0;
  line-height: 1.4;
}

.hero-link:hover {
  text-decoration: underline;
}

/* Services Cards */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

/* P1-4: Cards with 18px radius */
.service-card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  border: 1px solid #e3e3ee;
  box-shadow: 0 1px 2px rgba(60,59,110,.06);
  transition: border-color 0.2s;
}

.service-card:hover {
  border-color: var(--secondary-color);
}

.service-card h3 {
  margin-top: 0;
  color: var(--secondary-color);
}

/* P0-5: Renamed .info to .find-parts to avoid collision with alert styles */
.find-parts {
  text-align: center;
  padding: 40px 24px;
  background: #eff0f5;
  border-radius: 18px;
  margin: 3rem 0;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* P1-4: Pill buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 40px;
  font-family: 'Questrial', sans-serif;
  font-size: 16px;
  font-weight: 400;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn:hover {
  background: #9a1c2c;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
  background: var(--secondary-color);
}

.btn-secondary:hover {
  background: #2e2d56;
}

.btn-sm {
  min-height: 44px;
  padding: 0 24px;
  font-size: 15px;
}

.btn-primary {
  background: var(--primary-color);
}

/* Model Groups */
.model-group {
  margin-bottom: 3rem;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.model-card {
  background: white;
  border: 1px solid #e3e3ee;
  border-radius: 18px;
  padding: 1.25rem;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 1px 2px rgba(60,59,110,.06);
  transition: border-color 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  .model-card:hover {
    border-color: var(--secondary-color);
  }
}

.model-card strong {
  font-size: 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
}

.model-card span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.product-card {
  background: white;
  border: 1px solid #e3e3ee;
  border-radius: 18px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 2px rgba(60,59,110,.06);
  transition: border-color 0.2s;
}

@media (hover: hover) {
  .product-card:hover {
    border-color: var(--secondary-color);
  }
}

.product-card h3 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.product-card h3 a {
  color: #3c3b6e;
  text-decoration: none;
}

.product-card h3 a:hover {
  color: var(--primary-color);
}

.part-number {
  font-family: 'Courier New', monospace;
  color: #3c3b6e;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.description {
  font-size: 0.9rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  flex: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.price {
  font-size: 1.25rem;
  font-weight: 600;
  color: #3c3b6e;
}

/* P0-2: Fixed badge styles */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-bottom: 0.5rem;
}

.product-card .badge {
  align-self: flex-start;
}

.badge.aftermarket {
  background: white;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
}

.badge.oem {
  background: #f1ef2d;
  color: var(--secondary-color);
}

/* Removed old fitment-note and model-notice styles - replaced with fitment-flag */

/* Product Page */
.product-page {
  max-width: 900px;
}

.product-main {
  display: grid;
  gap: 2rem;
}

.product-info {
  background: white;
  padding: 1.5rem;
  border-radius: 18px;
  border: 1px solid #e3e3ee;
}

.price-display {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 1rem 0;
}

.vendor-badge {
  background: var(--surface);
  padding: 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  margin: 1rem 0;
}

.order-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

/* Removed old fitment-info and fitment-notice - replaced with new fitment component */

/* Search */
/* P0-4: Search form styling */
.search-box {
  display: flex;
  gap: 8px;
  max-width: 640px;
  margin: 2rem auto;
  align-items: stretch;
}

@media (max-width: 360px) {
  .search-box {
    flex-direction: column;
  }
}

#search-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  height: 48px;
  padding: 0 20px;
  border: 1px solid #c9c9d9;
  border-radius: 40px;
  font-size: 17px;
  font-family: 'Courier New', monospace;
}


#search-input:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(60, 59, 110, 0.1);
}

#search-results {
  margin-top: 2rem;
}

/* Alert styles */
.info,
.warning {
  padding: 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}

.info {
  background: #dbeafe;
  color: #1e40af;
  border: 1px solid #93c5fd;
}

.warning {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Breadcrumb */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--primary-color);
}

/* About Page */
.model-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.model-section:last-child {
  border-bottom: none;
}

/* Return Policy */
.draft-notice {
  background: #fef3c7;
  border-left: 4px solid var(--accent-color);
  padding: 1rem;
  margin: 2rem 0;
  border-radius: 4px;
}

.policy-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.policy-content li {
  margin-bottom: 0.5rem;
}

/* P1-5: Navy footer */
footer {
  background: var(--secondary-color);
  border-top: none;
  padding: 3rem 0;
  margin-top: 4rem;
  text-align: center;
}

footer h3 {
  margin: 0.5rem 0;
  font-size: 24px;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  color: white;
  overflow-wrap: anywhere;
}

footer h3 a {
  color: white;
  text-decoration: none;
}

footer p {
  margin: 0.5rem 0;
  font-size: 15px;
  color: rgba(255,255,255,.8);
}

footer a {
  color: white;
  text-decoration: underline;
}

footer h3 a[href^="mailto:"] {
  font-size: clamp(17px, 5.6vw, 24px);
  overflow-wrap: anywhere;
}

footer .small {
  font-size: 14px;
  color: rgba(255,255,255,.8);
}

/* Responsive */
@media (max-width: 768px) {
  .preview-banner {
    padding: 8px;
    font-size: 14px;
  }
  
  .logo {
    height: 40px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-info {
    text-align: center;
  }
  
  h1 {
    font-size: 1.75rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .services {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .model-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 767px) {
  .model-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  
  .products-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 640px) and (max-width: 1023px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .search-box {
    flex-direction: column;
  }
  
  .search-box button {
    width: 100%;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

/* Manual and Diagram Sections */
.manual-section {
  background: #fffbeb;
  border: 2px solid #fbbf24;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
}

.manual-section h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.diagram-info {
  background: var(--surface);
  border-left: 4px solid var(--secondary-color);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
}

.diagram-info h3 {
  margin-top: 0;
  color: var(--text-primary);
}

.diagram-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.diagram-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.diagram-list li:last-child {
  border-bottom: none;
}

/* P0-1: New fitment flag component */
.fitment-flag {
  display: inline-block;
  background: var(--accent-color);
  color: var(--secondary-color);
  font-size: 14px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 40px;
}

.fitment-flag--verified {
  background: var(--secondary-color);
  color: white;
}

/* P3: Style exact badges as solid navy */
.fitment-flag--exact {
  background: var(--secondary-color);
  color: white;
  border: none;
}

/* P3: Style series/listed badges as outline */
.fitment-flag--series,
.fitment-flag--listed {
  background: white;
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
}

/* P2: Multi-line badge styling */
.fitment-flag {
  line-height: 1.4;
  border-radius: 6px;
}

.fitment-verified-link {
  color: var(--secondary-color);
  text-decoration: underline;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

.fitment-info {
  background: #f5f5fa;
  border-left: 4px solid var(--secondary-color);
  padding: 16px 20px;
  border-radius: 12px;
  margin: 1.5rem 0;
}

.fitment-info p {
  margin: 0.5rem 0;
  font-size: 15px;
  color: var(--secondary-color);
}

.fitment-verified {
  background: #d1fae5;
  border: 1px solid #10b981;
  padding: 1rem;
  border-radius: 6px;
  color: #065f46;
  font-weight: 500;
}

/* P1-2: Mobile header with hamburger menu */
.header-mobile {
  display: none;
  justify-content: space-between;
  align-items: center;
  height: 60px;
}

.header-desktop {
  display: block;
}

.hamburger-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger-btn span {
  display: block;
  width: 24px;
  height: 3px;
  background: white;
  border-radius: 2px;
}

.logo-link-mobile {
  display: block;
}

.logo-link-mobile .logo {
  height: 40px;
}

.search-icon-btn {
  color: white;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  text-decoration: none;
}

.mobile-menu {
  position: fixed;
  top: 96px;
  left: -100%;
  width: min(390px, 85vw);
  height: calc(100vh - 96px);
  background: var(--secondary-color);
  transition: left 0.3s ease;
  z-index: 1001;
  overflow-y: auto;
  visibility: hidden;
}

.mobile-menu.open {
  left: 0;
  visibility: visible;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-backdrop {
  position: fixed;
  top: 99px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.mobile-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 0;
}

.mobile-nav a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 18px;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-nav a.active {
  background: transparent;
  color: white;
  text-decoration: none;
}

.mobile-contact-pills {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 0;
}

.contact-pill {
  display: inline-block;
  padding: 12px 24px;
  border: 2px solid white;
  border-radius: 40px;
  color: white !important;
  text-decoration: none !important;
  font-size: 16px;
  text-align: center;
  min-height: 44px;
  border-bottom: 2px solid white !important;
}

@media (max-width: 768px) {
  header {
    padding: 0;
  }
  
  .header-mobile {
    display: flex;
  }
  .header-desktop {
    display: none;
  }
  
  main {
    padding-top: 1rem;
  }
}

/* P1-7: Hero search form */
.hero-search {
  max-width: 600px;
  margin: 2rem auto 0;
}

.search-form {
  display: flex;
  gap: 0.5rem;
  width: 100%;
}

.search-form input[type="text"] {
  flex: 1;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--secondary-color);
  border-radius: 40px;
  font-family: 'Questrial', sans-serif;
}

.search-form input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 2px rgba(60, 59, 110, 0.1);
}

.search-form button {
  white-space: nowrap;
}

@media (max-width: 600px) {
  .search-form {
    flex-direction: column;
  }
  .search-form button {
    width: 100%;
  }
}

/* P2-1: Series jump chips */
.series-chips {
  position: sticky;
  top: 38.4px;
  background: white;
  padding: 1rem 0;
  margin: -0.5rem 0 1.5rem;
  z-index: 10;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-color);
}

.series-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  min-height: 44px;
  background: #f5f5fa;
  color: var(--secondary-color);
  text-decoration: none;
  border-radius: 40px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--secondary-color);
  white-space: nowrap;
  flex: 0 0 auto;
}

.series-chip:hover {
  background: var(--secondary-color);
  color: white;
}

@media (max-width: 768px) {
  .series-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .series-chips::-webkit-scrollbar {
    display: none;
  }
}

.model-group {
  scroll-margin-top: calc(38.4px + 77px + 12px);
}

.no-match-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-secondary);
  font-size: 16px;
}

/* P2-1: Model search input */
.model-search {
  margin: 1.5rem 0;
}

.model-search input {
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  border: 2px solid var(--secondary-color);
  border-radius: 12px;
  font-family: 'Questrial', sans-serif;
}

.model-search input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

/* P2-2: Model page filters */
.model-page-filters {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.model-page-filters input {
  flex: 1;
  min-width: 200px;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid var(--secondary-color);
  border-radius: 40px;
  font-family: 'Questrial', sans-serif;
}

.model-page-filters input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.vendor-toggle {
  display: flex;
  gap: 0;
  background: #f5f5fa;
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--secondary-color);
}

.toggle-btn {
  padding: 0 24px;
  min-height: 44px;
  background: transparent;
  color: var(--secondary-color);
  border: none;
  border-right: 1px solid var(--secondary-color);
  border-radius: 0;
  font-family: 'Questrial', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-btn:last-child {
  border-right: none;
}

.toggle-btn:hover {
  background: rgba(60, 59, 110, 0.1);
}

.toggle-btn.active {
  background: var(--secondary-color);
  color: white;
}

.parts-count {
  font-size: 18px;
  color: var(--secondary-color);
  margin: -0.5rem 0 1rem;
}

/* P2-3: Product page layout with images */
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.product-images {
  order: 1;
}

.product-info-panel {
  order: 2;
}

.product-images img {
  width: 100%;
  height: auto;
  max-height: 480px;
  aspect-ratio: 1/1;
  object-fit: contain;
  background: #fff;
  padding: 16px;
  border-radius: 18px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid #e3e3ee;
}

.product-info-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.product-info-panel .part-number {
  font-size: 16px;
  color: var(--secondary-color);
}

.product-info-panel .price-display {
  font-size: 32px;
  font-weight: 700;
  color: var(--secondary-color);
  margin: 0;
}

.aftermarket-badge {
  background: white;
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 6px 12px;
  border-radius: 40px;
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  align-self: flex-start;
  white-space: nowrap;
}

.oem-badge {
  background: #f1ef2d;
  color: var(--secondary-color);
  padding: 6px 12px;
  border-radius: 40px;
  display: inline-block;
  font-weight: 700;
  font-size: 12px;
  align-self: flex-start;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .product-layout {
    grid-template-columns: 1fr;
  }
  
  .product-info-panel {
    order: 1;
  }
  
  .product-images {
    order: 2;
    max-height: 40vh;
  }
  
  .product-images img {
    max-height: 40vh;
  }
}

.product-images.no-img {
  display: none;
}

.photo-coming-soon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1/1;
  background: #f5f5fa;
  color: var(--secondary-color);
  font-size: 16px;
  padding: 16px;
  border-radius: 18px;
  text-align: center;
}

/* P1-6: Search empty state */
.search-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  background: #f5f5fa;
  border-radius: 18px;
  margin: 2rem 0;
}

.search-empty-state p {
  font-size: 18px;
  margin-bottom: 1rem;
}

.empty-state-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.search-count {
  font-size: 20px;
  color: var(--secondary-color);
  margin: 1rem 0;
  font-weight: 600;
}

/* P1-6: Show more button */
.show-more-btn {
  display: block;
  margin: 2rem auto;
  min-width: 200px;
}

/* P1-6: Replaces note for aftermarket parts */
.replaces-note {
  font-size: 14px;
  color: var(--secondary-color);
  font-style: italic;
  margin: 0.5rem 0;
}

/* Call for price link styling */
.call-price {
  color: #b22234;
  text-decoration: none;
}

.call-price:hover {
  text-decoration: underline;
}
