/* ==========================================================
   🌐 GENERAL PAGE STYLING
   ========================================================== */
body {
  background-color: #f8f9fa;
  font-family: "Inter", "Roboto", sans-serif;
  color: #212529;
}

/* Container padding for better spacing on wide screens */
.container-fluid {
  padding-left: 5%;
  padding-right: 5%;
}

/* ==========================================================
   🧩 FILTER SIDEBAR
   ========================================================== */
.filter-box {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.filter-box h5 {
  color: #111;
}

.filter-box input {
  border-radius: 10px;
  border: 1px solid #ddd;
  transition: all 0.2s ease;
}

.filter-box input:focus {
  border-color: #6c63ff;
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.2);
}

/* ==========================================================
   📦 CARD STYLING
   ========================================================== */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-body {
  flex-grow: 1;
}

/* ==========================================================
   🖼️ IMAGE SECTION
   ========================================================== */
.product-image-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.product-img-floating {
  height: auto;
  width: 100%;
  max-height: 95%;
  max-width: 95%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s ease;
}

.product-image-wrapper:hover .product-img-floating {
  transform: scale(1.05);
}

/* ==========================================================
   🏷️ BADGE BUTTONS (Tag-style)
   ========================================================== */
.btn-outline-primary,
.btn-outline-secondary {
  border-radius: 8px;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-width: 1px;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
  transform: translateY(-2px);
}

/* ==========================================================
   🛒 ADD TO CART BUTTON
   ========================================================== */
.btn-primary {
  background-color: #6c63ff;
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #5848d8;
  transform: scale(1.05);
}

/* ==========================================================
   🧭 SECTION TITLES
   ========================================================== */
.section-title {
  border-left: 4px solid #6c63ff;
  padding-left: 10px;
  font-weight: 700;
  color: #111;
}

.bearing-group {
  border-bottom: 1px solid #e9ecef;
}

.section-title {
  border-left: 4px solid #6c63ff;
  padding-left: 10px;
  color: #111;
}

.bearing-group:last-child {
  border-bottom: none;
}


/* ==========================================================
   📱 RESPONSIVE DESIGN
   ========================================================== */
@media (max-width: 992px) {
  .filter-box {
    margin-bottom: 25px;
  }

  .product-image-wrapper {
    height: 180px;
  }
}

@media (max-width: 576px) {
  .product-image-wrapper {
    height: 160px;
  }

  .product-card {
    border-radius: 16px;
  }
}
