
/* Reset */
* { 
  margin: 0; 
  padding: 0; 
  box-sizing: border-box; 
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

/* Header */
header {
  width: 100%;
  background: #000;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 { 
  font-size: 1.5rem; 
  color: #e10000; 
}

nav ul { 
  list-style: none; 
  display: flex; 
  gap: 1.5rem; }

nav a {
  color: white; 
  text-decoration: none; 
  font-weight: bold; 
  transition: all 0.3s;
}
nav a:hover { 
  color: #e10000; 
}

/* Promo Banner */
.promo-banner {
  background: linear-gradient(90deg, #e10000, #b30000);
  color: white; 
  text-align: center; 
  padding: 1.5rem; 
  margin: 1.5rem auto;
  border-radius: 10px; 
  font-size: 1.2rem; 
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); 
  max-width: 1000px;
}
.promo-banner a { 
  color: yellow; 
  text-decoration: underline; 
  font-weight: bold; 
  margin-left: 10px; 
}

/* Main Content */
main { 
  padding: 2rem; 
  max-width: 1000px; 
  margin: auto; 
}

section { 
  margin-bottom: 3rem; 
}
section h2 { 
  margin-bottom: 1rem; 
  color: #e10000; 
}

.reviews { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 1.5rem; 
}

article {
  background: white; 
  padding: 1rem; 
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  transition: transform 0.2s;
}

article img {
  width: 100%; 
  height: auto; 
  border-radius: 8px;
  margin-bottom: 0.8rem;
}

.rating { 
  color: #e10000; 
  font-weight: bold; 
}

.user-review {
  margin-top: 1rem; 
  padding: 1rem; 
  background: #f4f4f4;
  border-left: 4px solid #e10000; 
  border-radius: 6px;
}
.user-review h4 { 
  margin-bottom: 0.5rem; 
  color: #e10000; 
}

.suppliers {
  display: grid; 
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); 
  gap: 1.5rem;
}
.supplier {
  background: white; 
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
  text-align: center;
}
.supplier img { 
  width: 80px; 
  height: 80px; 
  object-fit: contain; 
  margin-bottom: 0.5rem; 
}
.supplier a { 
  display: inline-block; 
  margin-top: 0.5rem; 
  color: #e10000; 
  font-weight: bold; 
  text-decoration: none; 
}
.supplier a:hover { 
  text-decoration: underline; 
}

footer { 
  background: #000; 
  color: white; 
  text-align: center; 
  padding: 1rem; 
  margin-top: 2rem; 
}
footer span { 
  color: #e10000; 
  font-weight: bold; 
}

/* Gallery Styles */
.gallery {
  display: flex; 
  justify-content: center; 
  gap: 20px; 
  margin: 20px 0;
}
.gallery img {
  width: 200px; 
  height: auto; 
  border: 2px solid #ccc; 
  border-radius: 8px;
}
.upload-box { 
  display: flex; 
  flex-direction: column; 
  align-items: center; }
.upload-box input {
  margin-top: 10px; 
}

/* Responsive */
@media (max-width: 768px) {
  header { 
    flex-direction: column; 
    align-items: flex-start; 
  }
  nav ul { 
    margin-top: 0.5rem; 
    flex-wrap: wrap; 
  }
  .gallery { 
    flex-direction: column; 
    align-items: center; 
  }
}

/* reviews user avatars */
.user-review-details {
    display: flex;
    align-items: center;
}
.user-avatar {
    max-width: 50px;
    margin-right: 5px;
}

.user-avatar img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: 0 !important;
}
