/* General Body & Reset Styles */
:root {
  --primary-color: #14b8a6; /* A nice teal color */
  --primary-hover: #0d9488;
  --secondary-color: #334155; /* A dark slate color */
  --light-gray: #f1f5f9;
  --text-color: #1e293b;
  --border-color: #e2e8f0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  background-color: var(--light-gray);
  color: var(--text-color);
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: relative;
}

.mobile-menu-button {
  display: block; /* Show by default on mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
}

.hamburger-icon {
  color: var(--secondary-color);
}

nav {
  display: none; /* Hide nav by default on mobile */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  align-items: center;
  padding: 1rem 0;
}

nav.is-open {
  display: flex; /* This class will be toggled by JS to show the menu */
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--secondary-color);
  display: flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.75rem;
}

.logo img {
  height: 50px;
  width: auto;
}

nav a {
  text-decoration: none;
  color: var(--secondary-color);
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover {
  color: var(--primary-color);
}

#home {
  text-align: center;
  padding: 6rem 0;
}

#home h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.tagline {
  font-size: 1.25rem;
  color: #475569;
  margin-bottom: 2rem;
}

.cta-button {
  background-color: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

section {
  padding: 4rem 0;
}

section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.product-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  max-width: 350px;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.product-image {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding-top: 1rem;
}
.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}
.product-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: auto;
  padding-top: 1rem;
}
.add-to-cart-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
  margin-top: 1rem;
}
.add-to-cart-btn:hover {
  background-color: #1e293b;
}

.cart-container,
.contact-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.cart-items {
  min-height: 50px;
}
#cart-total-section {
  display: flex;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}
#checkout-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
}
#checkout-button:hover {
  background-color: #16a34a;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 0.25rem;
  font-size: 1rem;
  font-family: inherit;
  min-height: auto;
  resize: none;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.3);
}

#contact-form button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.75rem;
  border-radius: 0.25rem;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: 600;
  transition: background-color 0.3s ease;
  width: 100%;
}

#contact-form button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

footer {
  text-align: center;
  padding: 2rem 0;
  background-color: var(--secondary-color);
  color: var(--light-gray);
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .mobile-menu-button {
    display: none; /* Hide hamburger on wide screens */
  }

  nav {
    display: flex; /* Show nav as a row on wide screens */
    position: static;
    flex-direction: row;
    width: auto;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
    gap: 2rem;
  }

  nav a {
    padding: 0;
    width: auto;
  }

  nav a:hover {
    background-color: transparent;
    color: var(--primary-color);
  }

  .product-card {
    width: calc(50% - 1rem);
  }
}

@media (min-width: 768px) {
  .product-card {
    width: calc(50% - 1rem);
  }
}

@media (min-width: 1024px) {
  .product-card {
    width: calc(33.333% - 1.34rem);
  }
}
