/* ==========================================================
   Global Styles
   ========================================================== */

body {
  font-family: Arial, sans-serif;
  background: #222;
  color: #fff;
  margin: 0;
  padding: 0;
}

/* ==========================================================
   Header
   ========================================================== */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #333;
  color: #fff;
}

header h1 {
  margin: 0;
  font-size: 2em;
}

.header-buttons {
  display: flex;
  gap: 15px;
}

.header-buttons a {
  padding: 10px 20px;
  background: #e67e22;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s;
}

.header-buttons a:hover {
  background: #d35400;
}

/* ==========================================================
   Hero Section
   ========================================================== */

.hero {
  background: url('images/hero-guitar.jpg') center/cover no-repeat;
  height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  padding: 20px;
}

.hero h1 {
  font-size: 3em;
  margin-bottom: 20px;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero p {
  font-size: 1.2em;
  margin-bottom: 30px;
}

.hero .button-container {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero .button {
  display: inline-block;
  padding: 16px 32px;
  background: #e67e22;
  color: #fff;
  border: none;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  text-align: center;
  transition: background 0.2s;
}

.hero .button:hover {
  background: #d35400;
}

/* ==========================================================
   Features Section
   ========================================================== */

.features {
  text-align: center;
  padding: 40px 20px;
  background: #333;
}

.features h2 {
  margin-bottom: 20px;
}

.features .feature-cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.feature-card {
  background: #444;
  padding: 20px;
  border-radius: 8px;
  flex: 1;
  max-width: 300px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.feature-card img {
  max-width: 80px;
  margin-bottom: 10px;
}

.feature-card h3 {
  color: #e67e22;
  margin: 10px 0;
}

/* ==========================================================
   Testimonials Section
   ========================================================== */

.testimonials {
  padding: 40px 20px;
  text-align: center;
}

.testimonials h2 {
  margin-bottom: 20px;
  color: #e67e22;
}

.testimonial {
  background: #333;
  color: #ddd;
  padding: 20px;
  border-radius: 8px;
  margin: 0 auto 20px;
  max-width: 600px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.testimonial p {
  font-style: italic;
}

.testimonial h4 {
  margin-top: 10px;
  color: #fff;
}

/* ==========================================================
   Footer
   ========================================================== */

footer {
  background: #333;
  color: #aaa;
  text-align: center;
  padding: 20px;
  font-size: 0.9em;
}

footer a {
  color: #e67e22;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}

/* ==========================================================
   About Page
   ========================================================== */

.about-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 20px;
  background: #333;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.about-container h2 {
  color: #e67e22;
  margin-bottom: 20px;
}

.about-container p {
  line-height: 1.6;
  color: #ddd;
}

.about-container img {
  width: 100%;
  max-width: 400px;
  border-radius: 8px;
  margin: 20px auto;
}

/* ==========================================================
   Shop Page
   ========================================================== */

.container {
  display: flex;
  align-items: stretch; /* ensure divider spans full height */
  width: 100%;         /* use full page width */
  max-width: none;     /* remove width cap */
  margin: 0;           /* no centering */
  padding: 20px;       /* keep consistent breathing room */
}

.sidebar {
  width: 200px;
  flex-shrink: 0;
  margin-right: 20px;
}

.sidebar h3 {
  font-size: 1.5em;
  margin: 0 0 10px 0;
  color: #e67e22;
}

.categories {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.categories button {
  padding: 10px;
  background: #e67e22;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.3s ease-in-out;
}

.categories button:hover {
  background: #d35400;
}

/* Divider Line */
.divider {
  width: 2px;
  background: #444;
  margin-right: 20px;
  flex-shrink: 0;
  align-self: stretch; /* full height of container */
}

/* Products */
.products-container {
  flex-grow: 1;
}

.products-container h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #e67e22;
}

.products {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.product {
  background: #333;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid #444;
  width: 280px;
  display: none; /* Hidden by default for filtering */
}

.product img {
  width: 100%;
  border-radius: 8px;
}

.product-title {
  font-weight: bold;
  margin-top: 12px;
  color: #e67e22;
}

.product-price {
  margin: 8px 0;
  color: #ff9800;
}

/* Quantity selector and Add button */
.qty-control {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0;
}

.qty-btn {
  background: #444;
  color: #fff;
  border: 1px solid #555;
  border-radius: 6px;
  width: 36px;
  height: 36px;
  font-size: 1.2em;
  cursor: pointer;
  transition: background 0.2s;
}

.qty-btn:hover {
  background: #555;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}

.add-btn {
  background: #28a745;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
  width: 100%;
}

.add-btn:hover {
  background: #218838;
}

/* ==========================================================
   Cart Page
   ========================================================== */

.cart-container {
  max-width: 1200px;
  margin: 20px auto;
  background: #333;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.cart-container h2 {
  text-align: center;
  color: #e67e22;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #444;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item img {
  width: 80px;
  border-radius: 8px;
}

.cart-item-details {
  flex: 1;
  margin-left: 20px;
}

.cart-item-details h4 {
  margin: 0;
  color: #e67e22;
}

.cart-item-details p {
  margin: 5px 0;
  color: #ddd;
}

.cart-item-price {
  font-size: 1.2em;
  color: #ff9800;
  margin-right: 20px;
}

.remove-btn {
  background: #e74c3c;
  color: #fff;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.remove-btn:hover {
  background: #c0392b;
}

.checkout-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 15px 0;
  margin-top: 20px;
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1em;
  text-decoration: none;
}

.checkout-btn:hover {
  background: #218838;
}