/* Global Styles */
body {
  background-color: #fff;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
}

.container {
  width: 90%;
  max-width: 960px;
  margin: 20px auto;
  padding: 20px;
  background: #f4f7fa;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  position: relative;
}

/* Logo styling */
.logo {
  text-align: center;
  margin-bottom: 20px;
}

.logo img {
  max-width: 200px;
  height: auto;
}

/* Navigation menu */
.main-nav {
  background-color: #f8f9fa;
  padding: 10px 0;
  border-radius: 5px;
  margin-bottom: 20px;
  text-align: center;
}

.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.main-nav li {
  margin: 0 15px;
}

.main-nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 16px;
  padding: 5px 10px;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.main-nav a:hover {
  background-color: #e9ecef;
}

.main-nav li.active a {
  background-color: #007bff;
  color: #fff;
}

/* View Quote link - positioned to the right */
.view-quote {
  position: absolute;
  top: 70px; /* Position it below the top of the container */
  right: 20px;
  text-align: right;
}

.view-quote a {
  display: inline-block;
  padding: 8px 16px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.view-quote a:hover {
  background-color: #0056b3;
}

/* Basket count badge */
.basket-count {
  background: #dc3545;
  color: #fff;
  border-radius: 50%;
  padding: 2px 7px;
  font-size: 12px;
  margin-left: 5px;
}

/* Page titles */
h1 {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 10px;
}

/* Status filters */
.filters {
  text-align: center;
  margin-bottom: 30px;
}

.filters a {
  text-decoration: none;
  padding: 10px 20px;
  margin: 0 5px;
  border: 1px solid #333;
  color: #333;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.filters a.active,
.filters a:hover {
  background-color: #333;
  color: #fff;
}

/* Category and subcategory styling - UPDATED */
.category {
  margin-bottom: 30px; /* Reduced from 40px */
}

.category-title {
  text-align: center;
  font-size: 1.3em; /* Reduced from 1.5em */
  margin-bottom: 10px; /* Reduced from 15px */
  background-color: #e6e6e6; /* Changed to gray shade */
  border-radius: 4px;
  padding: 3px 0; /* Reduced from 12px 0 */
  font-weight: bold;
  text-transform: uppercase; /* Capitalized */
  letter-spacing: 1px;
  color: #2c3e50;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  border-left: 4px solid #888; /* Changed from blue to gray */
}

/* Updated Subcategory Style */
.subcategory-title {
  text-align: left;
  font-size: 1.1em;
  margin-top: 15px;
  padding: 6px 20px;
  background-color: #f8f9fa;
  border-radius: 4px;
  color: #333333; /* Changed to dark gray */
  font-weight: bold; /* Made bold */
  font-style: italic; /* Made italic */
}

/* Item listing */
.item {
  padding: 8px 0;
  border-bottom: 1px dashed #ccc;
  font-size: 1.1em;
}

.item span.price {
  font-weight: bold;
  margin-right: 10px;
  color: #333; /* Changed from green to standard text color */
}

.item a {
  text-decoration: none;
  color: #333;
}

.item a:hover {
  color: #007bff;
}

/* Message alerts */
.message {
  padding: 10px 15px;
  margin: 15px 0;
  border-radius: 4px;
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Back button */
.back-button {
  margin-top: 20px;
}

.back-button a {
  display: inline-block;
  padding: 8px 15px;
  background-color: #f8f9fa;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}

.back-button a:hover {
  background-color: #e9ecef;
}