/*
 * Scoped Styles for Category Page Content Only
 * All selectors are prefixed with .fmsMain to prevent conflicts with the header, footer, and other site styles.
 */
.category-main {
  background-color: #f0f2f5;
  /* A light, off-white gray to differentiate from the main background */
  padding: 40px 0;
}

.category-container {
  display: flex;
  gap: 30px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

/*
 * Sidebar Styles
 */
.category-sidebar {
  flex: 0 0 280px;
  background-color: #f30606;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  height: fit-content;
  position: sticky;
  top: 100px;
}

.category-sidebar h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #2c3e50;
  /* Dark blue/gray */
  border-bottom: 2px solid #3498db;
  /* A vibrant blue */
  padding-bottom: 12px;
  margin-top: 25px;
  margin-bottom: 25px;
}

.category-sidebar h3:first-of-type {
  margin-top: 0;
}

.category-sidebar .search-box {
  width: 100%;
  padding: 12px;
  border: 1px solid #dfe6e9;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.category-sidebar .search-box:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 5px rgba(52, 152, 219, 0.5);
}

.category-sidebar .filter-section {
  margin-bottom: 30px;
}

.category-sidebar label {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  cursor: pointer;
  color: #555;
  transition: color 0.3s;
  font-size: 0.95rem;
}

.category-sidebar label:hover {
  color: #3498db;
}

.category-sidebar input[type="range"] {
  width: 100%;
  margin-top: 8px;
  cursor: pointer;
}

.category-sidebar input[type="checkbox"] {
  margin-right: 12px;
  width: 18px;
  height: 18px;
  accent-color: #3498db;
}

.category-sidebar .filter-button {
  width: 100%;
  padding: 15px;
  background-color: #2980b9;
  /* A professional blue */
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: 600;
  cursor: pointer;
  margin-top: 25px;
  transition: background-color 0.3s ease, transform 0.2s;
  box-shadow: 0 4px 10px rgba(41, 128, 185, 0.3);
}

.category-sidebar .filter-button:hover {
  background-color: #2c6e91;
  transform: translateY(-2px);
}

/*
 * Main Products Area
 */

.top-bar {
  padding: 10px 25px;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sorting label {
  font-weight: 400;
  color: #555;
}

.sorting select {
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #dfe6e9;
  background-color: #f7f7f7;
}

.product-card h4 {
  font-size: 1.3em;
  color: #2c3e50;
  margin: 15px 0 10px;
}

.price {
  font-size: 1.2em;
  font-weight: bold;
  color: #27ae60;
}

.old-price {
  color: #95a5a6;
  text-decoration: line-through;
  font-size: 1.1em;
}

.add-to-cart {
  background-color: #e74c3c;
  color: #ffffff;
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s;
  font-size: 1.1em;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.add-to-cart:hover {
  background-color: #c0392b;
  transform: translateY(-2px);

}

.cutmpagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
  font-family: Arial, sans-serif;
}

.cutmpagination button {
  padding: 8px 16px;
  border: 1px solid #ccc;
  background-color: #f8f8f8;
  color: #333;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.cutmpagination button:hover {
  background-color: #e0e0e0;
  border-color: #999;
}

.cutmpagination button.active {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.cutmpagination button:disabled {
  background-color: #eaeaea;
  color: #aaa;
  cursor: not-allowed;
}

.product-title-link .product-title-text {
  color: #344767;
  font-weight: bold;
}


.product-title-link .highlight {
  color: #007bff; 
}


.product-title-link .highlight-device {
  color: #007bff; 
}