/* General Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; line-height: 1.6; color: #333; background-color: #fff8f5; }

/* Header */
header { background-color: #f4a6a6; padding: 15px 0; text-align: center; }
header h1 { color: #5a3d2b; margin-bottom: 10px; }
nav a { margin: 0 15px; text-decoration: none; color: #5a3d2b; font-weight: bold; }
nav a:hover { color: #2e1c14; }

/* Hero Section */
.hero { min-height: 80vh; display: flex; justify-content: center; align-items: center; text-align: center; padding: 40px 20px; }
.hero-content h2 { font-size: 2rem; margin-bottom: 10px; color: #5a3d2b; }
.hero-content p { font-size: 1.1rem; margin-bottom: 20px; color: #333; }
.hero-content .btn { display: inline-block; padding: 10px 20px; background-color: #f48b8b; color: white; text-decoration: none; border-radius: 8px; transition: 0.3s; }
.hero-content .btn:hover { background-color: #e66c6c; }

/* Products Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 40px; justify-items: center; }

/* Product Card */
.product-card { background-color: #fff; border-radius: 12px; padding: 15px; text-align: center; box-shadow: 0 4px 10px rgba(0,0,0,0.1); transition: transform 0.3s ease; position: relative; width: 100%; max-width: 250px; }
.product-card:hover { transform: translateY(-5px); }

/* Product Image Hover Preview */
.product-image { position: relative; width: 100%; height: 250px; overflow: hidden; border-radius: 12px; margin-bottom: 10px; }
.product-image img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease-in-out; }
.product-image img.active { opacity: 1; }

/* Color Options */
.color-options { margin: 10px 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.color-btn { padding: 5px 10px; border: 1px solid #333; border-radius: 5px; cursor: pointer; background-color: #e67b7b; transition: 0.3s; }
.color-btn:hover { background-color: #d95959; }
.color-btn.selected { border: 2px solid #f4a6a6; background-color: #f48b8b; color: white; }

/* Buttons */
button, .btn { padding: 10px 15px; background-color: #f48b8b; border: none; color: white; border-radius: 8px; cursor: pointer; transition: 0.3s; }
button:hover, .btn:hover { background-color: #e66c6c; }

/* Checkout Page */
.cart-items { padding: 40px; list-style: none; }
.cart-item { display: flex; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #ddd; padding-bottom: 10px; }
.cart-item img { width: 60px; height: 60px; object-fit: cover; border-radius: 8px; margin-right: 15px; }
.cart-item h4 { flex: 1; color: #5a3d2b; }
.cart-item button { background-color: #e66c6c; }

/* Footer */
footer { background-color: #5a3d2b; color: white; text-align: center; padding: 15px; margin-top: 20px; }

/* Mobile Responsive */
@media (max-width: 600px) {
  .products-grid { padding: 20px; gap: 15px; }
  .product-image { height: 200px; }
  .color-btn { padding: 4px 8px; margin: 3px; }
}
/* --- Fix for About and Contact section clumping --- */
section,
.about,
.contact {
  padding: 60px 20px;
  margin: 40px auto;
  max-width: 1000px;
  line-height: 1.8;
}

/* Ensure headings and paragraphs have spacing */
.about h2,
.contact h2 {
  margin-bottom: 20px;
  text-align: center;
}

.about p,
.contact p {
  margin-bottom: 15px;
  text-align: justify;
}

/* For Contact form layout */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.contact button {
  background-color: #ffb6a0;
  border: none;
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
  font-weight: 600;
}

.contact button:hover {
  background-color: #ff9f86;
}

