/* General resets */
body {
  margin: 0;
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.5;
  color: #333;
  background-color: #fafafa;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
  background: green;
  color: white;
}

header a {
	text-decoration: none;
	color: #FFFEFE;
}

header h1 {
  font-size: 2.2rem;
  margin: 0;
}

header p {
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Product card */
.product-card {
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  padding: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.product-card h3 {
  font-size: 1.1rem;
  margin: 0.8rem 0 0.4rem 0;
}

.product-card p {
  font-size: 0.9rem;
  color: #666;
  margin: 0.3rem 0 0.6rem 0;
}

.price {
  font-size: 1.1rem;
  font-weight: bold;
  color: #0077b6;
  margin-top: auto;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #222;
  color: #eee;
  font-size: 0.9rem;
}

footer a {
	color: #FDFDFD;
	margin-right: 2%;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 1rem;
}

.media-gallery img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.product-info h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.product-info .price {
  font-size: 1.5rem;
  color: #0077b6;
  margin: 1rem 0;
}

.btn-buy {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: rgb(38, 162, 105);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.btn-buy:hover {
  background: rgb(46, 194, 126);
}

.breadcrumbs {
  font-size: 0.9rem;
  margin: 1rem auto;
  max-width: 1200px;
  color: #555;
}

.breadcrumbs a {
  color: rgb(246, 245, 244);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs strong {
  color: rgb(255, 255, 255);
}


.not-found {
  text-align: center;
  padding: 4rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.not-found h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.not-found p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  margin-left: 1rem;
  background: #e0e0e0;
  color: #333;
  border-radius: 6px;
  font-size: 1rem;
  text-decoration: none;
}

.btn-secondary:hover {
  background: #d0d0d0;
}

.error-section {
  text-align: center;
  padding: 5rem 2rem;
  max-width: 700px;
  margin: 0 auto;
}

.error-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #d9534f; /* Red-ish for error */
}

.error-section p {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 2rem;
}

.error-actions a {
  margin: 0 0.5rem;
}

