/* Layout */
.spare-parts-layout {
  max-width: 1300px;
  margin: 50px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  font-family: 'Poppins', sans-serif;
}

/* LEFT */
.spare-left {
  flex: 1;
}

.page-heading {
  margin-bottom: 30px;
}

/* GRID 3 PER ROW */
.product-categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 38px;	
}

.category-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  padding: 15px;
  text-align: center;
  text-decoration: none;
  color: #000;
  transition: 0.3s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 10px;
}

.category-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: #666;	
}

/* === Layout wrapper === */
	.psp-sidebar .overlay-tow h2{
		font-size: 28px !important;
	}
	.psp-sidebar .overlay-tow{
		padding: 20px !important;
	}
	.psp-sidebar .overlay-tow .product-line-main{
		padding-bottom: 0px ;
        margin-bottom: 20px;
	}
	#inquiry-search-box-2{
		margin: 20px auto;
	}
.psp-main-wrap {
  max-width: 1300px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* left column (cards) takes remaining space */
.psp-left {
  flex: 1 1 0%;
  min-width: 0;
}

/* keep your original wrapper style inside left area */
.psp-wrap { width: 100%; box-sizing: border-box; color: #222; }

/* heading */
.psp-wrap h1 {
  display: none;
}

/* === Products grid: keep your .psp-results and .psp-card styles intact,
   but switch to grid for three-per-row behavior while preserving card size */
.psp-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns by default */
  gap: 25px;
  align-items: start;
   margin-top:38px;
}

/* Keep original card width and visual look by removing fixed width */
.psp-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-align: center;
    padding: 20px 10px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

/* === Inquiry Button Hover Effect === */
.psp-badge-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  border-radius: 8px;
}

.psp-card:hover .psp-badge-wrap {
  opacity: 1;
}

.psp-badge {
  background: linear-gradient(to right, #f97a00, #ff9100);
  color: #fff;
  font-weight: 600;
  padding: 10px 22px;
  text-decoration: none;
  border-radius: 10px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

.psp-badge:hover {
  background: linear-gradient(to right, #f97a00, #ff9100);
  color: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
/* === Preserve your image sizing — adjust to be responsive */
.psp-image img {
    width: 100%;
    max-width: 220px;   /* keeps image size similar to your design */
    height: 220px;
    object-fit: contain;
    margin: 0 auto 10px auto;
    display: block;
}

/* preserve your title and meta styling */

.psp-title {
  font-size: 16px !important;
  line-height: 1.4em; /* Adjust for readability */
  min-height: 2.8em;  /* Force space for two lines (1.4em × 2 = 2.8em) */
  display: block;
  font-weight:bold;
  font-family:'Poppins';
}

.psp-code, .psp-qty {
    margin: 5px 0;
    font-size: 14px;
    color: #333;
}

/* === Sidebar styles (right) === */
/* .psp-sidebar {
  width: 320px;
  flex: 0 0 320px;
  background: #fff;
  border-radius: 8px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
  box-sizing: border-box;
  position: sticky;
  top: 20px; 
  height: fit-content;
} */
 .psp-sidebar {
  width: 320px;
  flex: 0 0 320px;
  background: transparent;
  padding: 18px;
  box-sizing: border-box;
  position: sticky;
  top: 20px; 
  height: fit-content;
}
/* style inside inquiry */
	.inquiry-cf7 {
  border: 1px solid #ddd;         /* soft gray border */
  padding: 20px !important;                  /* space inside the box */
  background: #fff;               /* white background */
  border-radius: 4px;             /* slightly rounded corners */
  margin-top: 20px;               /* spacing from above elements */
}
.inquiry-title { font-size: 14px; font-weight:700; color:#333; margin:0 0 12px; }
.inquiry-cf7 .wpcf7-form-control,
.inquiry-cf7 input[type="text"],
.inquiry-cf7 input[type="email"],
.inquiry-cf7 input[type="tel"],
.inquiry-cf7 select,
.inquiry-cf7 textarea {
  width:100%;
  box-sizing:border-box;
  padding:9px 10px;
  
  border:1px solid #e6e6e6;
  border-radius:4px;
  background:#fafafa;
  font-size:13px;
}
	.wpcf7-spinner{
		display: none;
	}
.inquiry-cf7 textarea { min-height:120px; resize: vertical; }

/* submit inside CF7 */
 .search-form1{
  border: 1px solid #ddd;
  padding: 20px !important;
  background: #fff;
  border-radius: 4px;
	}
.inquiry-cf7 input[type="submit"], .inquiry-cf7 .wpcf7-submit {
  background: linear-gradient(to right, #f97a00, #ff9100);
  color: #fff;
  border: 0;
  padding: 4px 6px;
  border-radius: 10px;
  font-weight:700;
  cursor:pointer;
  width:100%;
}

/* brochure and person image */
.inquiry-brochure {
  border: 1px solid #ddd;
  padding-top: 20px !important;
  text-align: center;
  background: #fff;
  border-radius: 4px;
  margin-top: 20px;
}

.inquiry-brochure h3 {
  font-size: 22px;
  font-weight: 600;
  color: #222;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* === Button === */
.btn-profile {
  display: inline-block;
  width: 50%;
  background: linear-gradient(to right, #f97a00, #ff9100); /* navy blue like the screenshot */
  color: #fff;
  font-weight: 600;
  text-align: center;
  padding: 10px 0;
	margin-bottom: 20px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.3px;
  transition: all 0.3s ease;
}
	
.btn-profile:hover {
  background: linear-gradient(to right, #f97a00, #ff9100);
  color: #fff;
}
.inquiry-image img { width: 100%; height:100%; object-fit:cover; border-radius:50%; margin-top:12px; display:block; margin-left:auto; margin-right:auto; }

/* === Hover lift for card (unchanged) === */
.psp-card:hover { transform: translateY(-4px); }

/* === Responsive breakpoints === */
@media (max-width: 1100px) {
  .psp-results { grid-template-columns: repeat(2, 1fr); }
  .psp-sidebar { width: 100%; flex: 0 0 auto; position: static; margin-top: 30px; }
  .psp-main-wrap { flex-direction: column; gap: 18px; }
}

@media (max-width: 600px) {
  .psp-results { grid-template-columns: 1fr; }
  .psp-image img { height: 180px; }
  .psp-sidebar { margin-top: 20px; padding: 14px; }
}

/* Responsive */
@media(max-width:1100px){
  .spare-parts-layout { flex-direction: column; }
  .spare-sidebar { width: 100%; position: static; }
  .product-categories-grid { grid-template-columns: repeat(2,1fr); }
}

@media(max-width:600px){
  .product-categories-grid { grid-template-columns: 1fr; }
}


