/* ===== Reset & Basics ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f8f8f8;
  color: #333;
  margin: 0;
  padding: 0 15px;
  line-height: 1.6;
}

a {
  color: #ff6600;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #e65c00;
}

/* ===== Header & Navigation ===== */
header {
  background-color: #222;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-radius: 0 0 10px 10px;
  flex-wrap: wrap;
}

.logo img {
  height: 50px;
}

nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #ff6600;
  color: white;
}

#search {
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
  font-size: 1rem;
  max-width: 200px;
}
/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f2f2f2;
}

/* ===== Main Content ===== */
main {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 10px;
}

/* ===== Section Headings ===== */
h1, h2 {
  text-align: center;
  margin-bottom: 25px;
  font-weight: 700;
  color: #222;
}


/* ===== Product Grid ===== */
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.product {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
}

.product img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 12px;
}

.product h2 {
  font-size: 1.1rem;
  margin: 8px 0 4px 0;
  color: #222;
}

.product p {
  font-size: 0.9rem;
  margin: 4px 0;
  color: #555;
}

.price {
  font-weight: 700;
  font-size: 1.1rem;
  margin: 8px 0;
  color: #ff6600;
}

/* ===== Buttons ===== */
button, a.btn {
  background-color: #ff6600;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  transition: background-color 0.3s ease;
  text-align: center;
  display: inline-block;
}

button:hover, a.btn:hover {
  background-color: #e65c00;
}

/* ===== Cart Page ===== */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

th, td {
  padding: 15px 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
}

th {
  background-color: #222;
  color: white;
  font-weight: 700;
}

td img {
  width: 80px;
  border-radius: 8px;
}

/* Quantity input */
input[type="number"] {
  width: 60px;
  padding: 8px 6px;
  border: 1px solid #ccc;
  border-radius: 6px;
  text-align: center;
  font-size: 1rem;
}

/* Remove button */
button.remove-btn {
  background-color: #d9534f;
  color: white;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button.remove-btn:hover {
  background-color: #c9302c;
}

/* Summary box */
.summary {
  max-width: 450px;
  background: white;
  margin: 0 auto 50px auto;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  font-size: 1.1rem;
  color: #444;
  text-align: center;
}

.discount {
  color: #28a745;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 10px;
}

/* Proceed to Checkout */
a.btn.proceed-btn {
  width: 100%;
  display: block;
  margin-top: 20px;
  font-size: 1.2rem;
  padding: 15px;
}

/* ===== Forms (Checkout Page) ===== */
form {
  max-width: 500px;
  margin: 30px auto 60px auto;
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #222;
}

form input, form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

form button {
  width: 100%;
}

/* ===== Testimonials ===== */
.testimonial-list {
  max-width: 1000px;
  margin: 0 auto 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill,minmax(280px,1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}

.testimonial {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 10px;
  color: #555;
}

.testimonial .author {
  font-weight: 700;
  color: #222;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 20px 15px;
  background-color: #222;
  color: #ddd;
  border-radius: 10px 10px 0 0;
  font-size: 0.9rem;
  margin-top: 40px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  header {
    flex-direction: column;
    gap: 10px;
  }
  nav {
    justify-content: center;
    gap: 12px;
  }
  #search {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .product-list {
    grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  }
  table, th, td {
    font-size: 0.9rem;
  }
  td img {
    width: 60px;
  }
  input[type="number"] {
    width: 50px;
  }
.btn {
  display: inline-block;
  background-color: #ff6600;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}
.btn:hover {
  background-color: #e65c00;
}