/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding: 20px;
}

/* Header */
header {
  background-color: #fff;
  border-bottom: 2px solid #eee;
  padding: 20px 0;
  margin-bottom: 30px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header h1 {
  text-align: center;
  font-size: 2.5rem;
  color: #2a7f62;
}

nav ul {
  display: flex;
  justify-content: center;
  list-style: none;
  margin-top: 15px;
}

nav ul li {
  margin: 0 15px;
}

nav ul li a {
  text-decoration: none;
  color: #2a7f62;
  font-weight: bold;
}

nav ul li a:hover {
  text-decoration: underline;
}

nav ul li a.active {
  border-bottom: 2px solid #2a7f62;
}

/* Main */
main {
  max-width: 800px;
  margin: 0 auto;
}

section h2 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #444;
}

section p {
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  background-color: #e8f5f0;
  padding: 60px 20px;
  text-align: center;
}

.hero h2 {
  font-size: 2rem;
  color: #2a7f62;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 20px;
}

.hero button {
  background-color: #2a7f62;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
}

.hero button:hover {
  background-color: #256b54;
}

/* Product Preview */
.homepage-products {
  text-align: center;
  padding: 40px 20px;
}

.product-preview-grid {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin: 20px 0;
  flex-wrap: wrap;
}

.preview-card {
  max-width: 200px;
}

.preview-card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 4px;
}

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

.product-card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease;
}

.product-card:hover {
  transform: scale(1.02);
}

.product-card img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: 4px;
}

.product-card h3 {
  margin: 10px 0 5px;
  color: #2a7f62;
}

.product-card p {
  font-size: 0.95rem;
  color: #555;
}

/* Why Us */
.why-us {
  padding: 40px 20px;
  background-color: #f4f4f4;
  text-align: center;
}

.columns {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.columns div {
  flex: 1;
  min-width: 200px;
}

/* Buttons */
button,
a button {
  background-color: #2a7f62;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 10px;
}

button:hover,
a button:hover {
  background-color: #256b54;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 2px solid #eee;
  color: #999;
  font-size: 0.9rem;
}

/* Mascot */
.mascot-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
}

.corner-mascot {
  width: 100px;
  cursor: pointer;
  opacity: 0.95;
}

.speech-bubble {
  position: absolute;
  bottom: 110px;
  right: 0;
  background-color: #fff;
  color: #333;
  padding: 10px 15px;
  border-radius: 12px;
  border: 1px solid #ccc;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: none;

  width: fit-content;
  max-width: 300px;
  white-space: normal;
  word-wrap: break-word;
  min-width: 120px;
}

.speech-bubble::after {
  content: "";
  position: absolute;
  bottom: -10px;
  right: 20px;
  border-width: 10px 10px 0;
  border-style: solid;
  border-color: #fff transparent;
}

/* Mobile Fixes */
@media (max-width: 480px) {
  .speech-bubble {
    max-width: 180px;
    font-size: 0.85rem;
  }
}

/* Close Bubble Button */
.close-bubble {
  position: absolute;
  top: 5px;
  right: 10px;
  font-size: 16px;
  color: #888;
  cursor: pointer;
}

.close-bubble:hover {
  color: #444;
}
