/* base.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  font-family: Arial, sans-serif;
  background-color: #f1f3f6;

}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

/* Main Content */
.container {
  max-width: 1250PX;
  margin: 0 auto;
  margin-top: 10px;
  padding: 10px;
  background-color: #ffffff;
  background: #ffffff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}





.error-container {
    text-align: center;
    padding: 40px;
    background-color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

h1 {
    font-size: 72px;
    margin-bottom: 10px;
    color: #dc3545;
}

h2 {
    margin-bottom: 20px;
    color: #343a40;
}

p {
    color: #6c757d;
    font-size: 16px;
}

.a1 {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    color: white;
    background-color: #007bff;
    padding: 10px 20px;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.a1:hover {
    background-color: #0056b3;
}

.no-products-img {
  width: 300px;                /* default desktop size */
  max-width: 80%;              /* never exceed screen width */
  height: auto;
  margin: 0 auto 20px auto;    /* center horizontally */
  display: block;              /* ensures centering works */
  opacity: 0.9;
}

.category-hero {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 20px;
}

.category-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
  transition: transform 0.4s ease;
}

.category-hero:hover .category-hero-img {
  transform: scale(1.05);
}

.category-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
}

.category-info {
  position: absolute;
  bottom: 20px;
  left: 20px;
  color: white;
}

.category-info h1 {
  font-size: 28px;
  margin-bottom: 5px;
  text-transform: capitalize;
  font-weight: bold;
}

.category-info p {
  font-size: 16px;
  opacity: 0.9;
}



@media (max-width: 480px) {

  .no-products-img {
    width: 200px;              /* slightly smaller on mobile */
  }


}