/* General styles */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f9f9f9;
  color: #333;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Top bar with contact information */
.top-bar {
  background-color: #fafafa;
  color: #666;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  text-align: center;
}
.top-bar a {
  color: #e53e3e;
  text-decoration: none;
}
.top-bar a:hover {
  text-decoration: underline;
}

/* Site header styles */
.site-header {
  background-color: #ffffff;
  color: #333;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 3px solid #e53e3e;
}

/* Logo styling */
/* Logo styling */
.logo a {
  color: #333;
  font-size: 1.6rem;
  font-weight: bold;
  text-decoration: none;
  margin-right: 2rem;
}

/* Navigation categories */
.nav-categories {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}
.nav-categories li a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.nav-categories li a:hover {
  border-bottom-color: #e53e3e;
  color: #e53e3e;
}

/* Cart container within header */
.cart-container {
  position: relative;
}

nav {
  display: flex;
  align-items: center;
}

/* Give the navigation bar within the site header room between the logo and the links */
.site-header nav {
  flex: 1;
  margin-left: 2rem;
}

.cart-link {
  position: relative;
  display: flex;
  align-items: center;
}

.cart-count {
  position: absolute;
  top: -0.4rem;
  right: -0.8rem;
  background-color: #e53e3e;
  color: #fff;
  border-radius: 50%;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

main {
  padding: 2rem;
}

/* Category grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.category-card {
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #eaeaea;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.category-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.category-card::after {
  content: "";
  display: block;
  height: 4px;
  background-color: #e53e3e;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s;
}
.category-card:hover::after {
  transform: scaleX(1);
}

.category-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.category-card h3 {
  margin: 0.5rem 0;
  padding: 0 0.5rem;
  font-size: 1.2rem;
}

/* Product listing */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.product-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card .details {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 1.1rem;
}

.product-card p {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: #555;
  flex-grow: 1;
}

.product-card .price {
  font-weight: bold;
  margin-bottom: 0.5rem;
  color: #e53e3e;
}

.product-card button {
  background-color: #e53e3e;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.product-card button:hover {
  background-color: #c53030;
}

/* Cart page */
.cart-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-container h2 {
  margin-top: 0;
}

.cart-items {
  margin-bottom: 2rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  border-bottom: 1px solid #eee;
  padding-bottom: 1rem;
}

.cart-item img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 4px;
}

.cart-item .name {
  flex: 1;
  margin-left: 1rem;
}

.cart-item .quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cart-item button {
  background-color: #e53e3e;
  color: #fff;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 0.8rem;
}

.cart-item button:hover {
  background-color: #c53030;
}

.cart-summary {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.order-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.order-form input, .order-form textarea {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 0.9rem;
}

.order-form button {
  background-color: #e53e3e;
  color: #fff;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 1rem;
}

.order-form button:hover {
  background-color: #c53030;
}

/* Hero section styles */
.hero {
  background: linear-gradient(135deg, #333333, #555555);
  color: #ffffff;
  padding: 5rem 2rem;
  text-align: center;
}

.hero h2 {
  font-size: 2.8rem;
  margin: 0 0 0.75rem 0;
}

.hero p {
  font-size: 1.2rem;
  margin: 0 0 2rem 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btn {
  display: inline-block;
  background-color: #e53e3e;
  color: #fff;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: bold;
  transition: background-color 0.2s;
}
.hero-btn:hover {
  background-color: #c53030;
}

/* Info section */
.info-section {
  background-color: #ffffff;
  padding: 3rem 2rem;
  margin-top: 2rem;
  border-top: 1px solid #eaeaea;
}
.info-section h2 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #333;
}
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}
.info-card {
  background-color: #f9f9f9;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}
.info-card h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.3rem;
  color: #e53e3e;
}
.info-card p {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}