@import url("../fonts/PierSans/pierSans.css");
@import url("../fonts/RubikOne/rubikone.css");

:root {
  --gray-light-bg: #f5f5f5;
  --white-bg: #ffffff;
  --dark-black-bg: #000a12;
  --border-color: #ddd;
  --primary-red: #ee3a43;
  --text-gray: #777;
  --text-white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  margin-top: 0 !important;
}

body {
  margin: 0;
  font-family: "Lexend Exa", sans-serif;
  color: #151515;
  background: #fff;
  line-height: 1.6;
  font-size: 16px;
}

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

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

a:hover {
  color: var(--red);
}

/* ********|| BOOTSTRAP FIX START ||******** */

.container {
  max-width: none;
  width: 100%;
  padding-left: 16px;
  padding-right: 16px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 576px) {
  :root {
    --padding: 16px;
  }

  .container {
    max-width: none;
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  :root {
    --padding: calc(calc(var(--viewWidth) - 690px) / 2);
  }

  .container {
    max-width: 740px;
  }
}

@media (min-width: 992px) {
  :root {
    --padding: calc(calc(var(--viewWidth) - 960px) / 2);
  }

  .container {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1172px;
  }
}

/* ********|| BOOTSTRAP FIX END ||******** */
.section-parts {
  padding: 240px 0 100px; /* Reduced top padding for general placement */
  position: relative;
}

.section-parts .container {
  display: grid;
  grid-template-columns: 1fr 3fr; /* Wider main area for products */
  gap: 30px;
  align-items: start;
}

/* SIDEBAR FILTER STYLES */
.parts-filter-sidebar {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.filter-group {
  width: 100%;
  margin-bottom: 12px;
}

.form-control,
.form-select {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid var(--border-color);
  background-color: var(--white-bg);
  color: #333;
  font-size: 14px;
  border-radius: 0; /* Square edges */
  box-sizing: border-box;
}

.form-control::placeholder {
  color: #999;
}

.form-select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007CB2%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22/%3E%3C/svg%3E");
  background-repeat: no-repeat, repeat;
  background-position:
    right 0.7em top 50%,
    0 0;
  background-size:
    0.65em auto,
    100%;
}

.filter-action {
  text-align: left;
}

.reset-btn {
  background-color: var(--primary-red);
  color: var(--text-white);
  padding: 10px 25px;
  font-weight: 600;
  border-radius: 0;
  font-size: 14px;
  border: none;
  text-transform: none; /* Text is not all caps in screenshot */
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 4 columns as seen in screenshot */
  gap: 15px;
}

/* PRODUCT CARD STYLES */
.product-item-card {
  background: #f0f0f0;
  border: 1px solid #e5e5e5;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.735px;
}

.product-visual {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background-color: var(--white-bg);
}

.product-image-link {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.product-image-link img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.product-details {
  flex-grow: 1; /* Allow details to fill vertical space */
  display: flex;
  flex-direction: column;
}

.product-title-link {
  padding: 30px 8px;
  color: #737373;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.735px;
  height: 105px;
}

.product-part-sku {
  padding: 20px 8px;
  color: #fff;
  background: #000a12;
  position: relative;
  margin: 0 -1px;
  text-align: center;
  font-size: 15px;
  letter-spacing: 0.735px;
}

/* PRODUCT ACTION FOOTER (Quantity + Button) */
.product-action-footer {
  display: flex;
  align-items: center;
  background-color: #eee; /* Match the grayish action bar in screenshot */
  padding: 8px;
  gap: 8px;
}

/* QUANTITY SELECTOR STYLES */
.qty-selector {
  display: flex;
  background: #fff;
  border: 1px solid #ccc;
  height: 55px;
  box-sizing: border-box;
  align-items: center;
  flex-grow: 0;
  flex-shrink: 0;
}

.qty-input {
  width: 50px;
  text-align: center;
  border: none;
  font-weight: 700;
  height: 100%;
  padding: 0;
}

.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none; /* Remove number arrows for Chrome/Safari */
  margin: 0;
}

.qty-nav {
  display: flex;
  flex-direction: column;
  width: 25px;
  height: 100%;
  border-left: 1px solid #ccc;
  position: relative;
}

.qty-up,
.qty-down {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #000;
  font-size: 16px;
  position: absolute;
  height: auto;
  font-size: 24px;
}
.qty-up {
  top: 20px;
}
.qty-down {
  bottom: 20px;
}

/* ADD TO QUOTE BUTTON */
.btn-quote-action {
  height: 55px;
  border: none;
  background: #ee3a43;
  color: #fff;
  font-size: 15px;
  width: 100%;
  transition: all 0.5s ease;
  padding: 19px 0;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 400;
  flex: 1;
}

.btn-quote-action:hover {
  opacity: 0.9;
}
@media screen and (max-width: 1600px) {
}

@media screen and (max-width: 1440px) {
}

@media screen and (max-width: 1366px) {
}

@media screen and (max-width: 1280px) {
}

@media screen and (max-width: 1200px) {
}

@media screen and (max-width: 1070px) {
}

@media screen and (max-width: 768px) {
}

@media screen and (max-width: 480px) {
}
