body {
  margin: 0;
  font-family: "Helvetica Neue", sans-serif;
  background: #f6f0e7;
  color: #1b3c2b;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2em 2em;
  background-color: #f6f0e7;
  border-bottom: 2px solid #ddd;
  position: relative;
  z-index: 10;
}

.left-section {
  display: flex;
  align-items: center;
  gap: 1em;
}

.hamburger {
  display: none;
  font-size: 1.5em;
  cursor: pointer;
}

.logo {
  height: 40px;
}

.logo img {
  height: 100%;
  width: auto;
  display: block;
}

nav {
  display: flex;
}

.right-section {
  display: flex;
  align-items: center;
}

.overlay-menu {
  display: none;
}

nav a {
  margin-left: 1.5em;
  text-decoration: none;
  color: #1b3c2b;
  font-weight: 600;
}

.hero {
  background: url("../assets/Background.PNG") no-repeat center center/cover;
  color: white;
  padding: 8em 2em 10em;
  position: relative;
  text-align: left;
}

.hero-text {
  max-width: 500px;
}

/* Hero section specifically for the menu page */
.menu-hero {
  background: url("../assets/Roast.PNG") no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 6em 1em;
}

.menu-hero h1 {
  font-size: 2.8em;
  margin: 0;
}

.hero-text h1 {
  font-size: 3.2em;
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 1em;
}

.shop-button {
  background-color: #265e36;
  color: white;
  padding: 0.9em 2em;
  font-size: 1.1em;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.info-section {
  display: flex;
  flex-wrap: wrap;
  padding: 4em 2em;
  gap: 3em;
  background-color: #f6f0e7;
}

.left-info,
.roasting {
  flex: 1;
  min-width: 280px;
}

.left-info {
  display: flex;
  flex-direction: column;
  gap: 2em;
}

.column {
  flex: 1;
}

.products {
  display: flex;
  align-items: center;
  gap: 1.5em;
}

.products-content {
  flex: 1;
}

.roaster-info {
  flex: 1;
  text-align: right;
}

.column h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.column p {
  font-size: 1em;
  line-height: 1.5;
}

.roaster-img {
  margin-top: 2em;
  width: 300px;
  height: auto;
  display: block;
}

.roaster-container {
  display: flex;
  align-items: center;
  gap: 2em;
}

.roaster-container .roaster-img {
  margin-left: 0;
}

.products-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 4em 2em;
  gap: 3em;
  background-color: #f6f0e7;
}

.products,
.contact {
  flex: 1;
  min-width: 280px;
  max-width: 480px;
  margin: 0 auto;
}

/* Contact icons container */
.contact-links {
  display: flex;
  gap: 1em;
  margin-bottom: 1em;
}

.contact-links .contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: #1b3c2b;
  color: #fff;
  border-radius: 50%;
  text-decoration: none;
  transition: background-color 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.contact-links .contact-icon:hover {
  background-color: #265e36;
}

.contact-links svg {
  width: 16px;
  height: 16px;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.products h2,
.contact h2 {
  font-size: 1.5em;
  margin-bottom: 1em;
}

.bags {
  display: flex;
  gap: 1em;
  margin-bottom: 2em;
}

.bags img {
  height: 180px;
  border-radius: 4px;
}

.coffee-bag-img {
  width: 240px;
  height: auto;
  border-radius: 4px;
  display: block;
  margin-bottom: 1em;
}

.menu-header {
  text-align: center;
  padding: 40px 20px 20px;
}

.menu-logo {
  width: 60px;
  margin-bottom: 10px;
}

.menu-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
}

.menu-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 20px;
}

.menu-section {
  margin-bottom: 40px;
}

.menu-section h2 {
  font-size: 1.5rem;
  color: #0f3d2e;
  margin: 0;
}

.menu-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-section li {
  display: flex;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e6dac2;
  font-size: 1.1rem;
  font-weight: 500;
}

/* Specials list has no price columns */
.specials-section li {
  display: block;
  padding: 8px 0;
}

/* Align menu item columns with the size labels */
.menu-section li span:first-child {
  flex: 2;
}

.menu-section li span:not(:first-child) {
  flex: 1;
  text-align: center;
}


.menu-section-header {
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid #e6dac2;
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.menu-section-header h2 {
  flex: 2;
  margin: 0;
  font-size: 1.5rem;
  color: #0f3d2e;
}

.size-labels {
  display: flex;
  flex: 3;
  font-size: 1.1rem;
  font-weight: 600;
}

.size-labels span {
  flex: 1;
  text-align: center;
}

.footer {
  background-color: #f6f0e7;
  border-top: 2px solid #ddd;
  text-align: center;
  padding: 2em;
  font-size: 0.9em;
  color: #1b3c2b;
}

.footer a {
  color: #1b3c2b;
  text-decoration: none;
}

.hours {
  margin-top: 0.5em;
}

.send-button {
  background-color: #265e36;
  color: white;
  border: none;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

input,
textarea {
  padding: 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1em;
}

form button {
  background-color: #265e36;
  color: white;
  border: none;
  padding: 0.8em 2em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
}

/* Responsive styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #f6f0e7;
    flex-direction: column;
    align-items: center;
    padding: 1em 0;
    border-bottom: 2px solid #ddd;
  }

  nav.show {
    display: flex;
  }

  nav a {
    margin: 0.5em 0;
  }

  .hero {
    padding: 6em 1em 8em;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.2em;
  }

  .info-section {
    flex-direction: column;
  }

  .products {
    flex-direction: column;
    text-align: center;
  }

  .coffee-bag-img {
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }

  .roaster-container {
    flex-direction: column;
    align-items: center;
  }

  /* Center menu heading and button on mobile */
  .roaster-info {
    text-align: center;
  }

  .menu-hero {
    padding: 4em 1em;
  }

  .menu-hero h1 {
    font-size: 2.2em;
  }

  .bags {
    flex-direction: column;
    align-items: center;
  }

  .roaster-img {
    margin-left: auto;
    margin-right: auto;
    width: 60%;
  }

  /* Center the roaster image within its container on small screens */
  .roaster-container .roaster-img {
    margin-left: auto;
    margin-right: auto;
  }

  .overlay-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(246, 240, 231, 0.95);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition:
      opacity 0.3s ease,
      transform 0.3s ease;
    z-index: 100;
  }

  .overlay-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .overlay-menu a {
    color: #1b3c2b;
    font-size: 1.5em;
    text-decoration: none;
    margin: 0.6em 0;
    transition:
      transform 0.2s,
      color 0.2s;
  }

  .overlay-menu a:hover {
    color: #265e36;
    transform: translateY(-3px);
  }

  .overlay-close {
    position: absolute;
    top: 1em;
    right: 1em;
    font-size: 2em;
    cursor: pointer;
  }

  .overlay-logo {
    width: 200px;
    margin-bottom: 1.5em;
  }

  .menu-header h1 {
    font-size: 2rem;
  }

  .menu-section h2 {
    font-size: 1.3rem;
  }

  .menu-section li {
    font-size: 1rem;
  }
}

/* Store page styles */
.shop-main {
  padding: 2rem;
}

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

.product {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1rem;
  width: 220px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.product label {
  display: flex;
  flex-direction: column;
  margin: 0.5rem 0;
  font-size: 0.9em;
  text-align: left;
}

.product select {
  margin-top: 0.2rem;
  padding: 0.4em 2em 0.4em 0.4em;
  border: 1px solid #1b3c2b;
  border-radius: 4px;
  font-size: 0.9em;
  color: #1b3c2b;
  cursor: pointer;
  background-color: #fdfdfd;
  accent-color: #1b3c2b;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%231b3c2b' stroke-width='2' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6em center;
  background-size: 10px 6px;
}

.product button {
  background-color: #265e36;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.2em;
  font-size: 0.9em;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
}

.product button:hover {
  background-color: #1b3c2b;
}

.cart-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #fff;
  border: 1px solid #ccc;
  padding: 1.5rem;
  z-index: 200;
  border-radius: 8px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
}

.cart-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cart-modal ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1em;
}

.cart-modal li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding: 0.5em 0;
}
.cart-item-info {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.cart-item-info img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #1b3c2b;
  padding: 0;
}

.remove-btn .trash-icon {
  width: 1em;
  height: 1em;
  pointer-events: none;
}

.cart-close {
  position: absolute;
  top: 0.3em;
  right: 0.5em;
  background: none;
  border: none;
  font-size: 1.4em;
  cursor: pointer;
  line-height: 1;
  color: #1b3c2b;
  -webkit-appearance: none;
  appearance: none;
}

.cart-link {
  margin-left: 1em;
  text-decoration: none;
  color: #1b3c2b;
  font-weight: 600;
  display: flex;
  align-items: center;
}

.cart-icon {
  width: 1.3em;
  height: 1.3em;
  fill: currentColor;
  margin-right: 0.2em;
}

@media (max-width: 768px) {
  .cart-link {
    margin-left: 0;
  }
}

.paypal-button {
  background-color: #0070ba;
  color: #fff;
  border: none;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  font-size: 1em;
  cursor: pointer;
  width: 100%;
  margin-top: 1em;
}

#paypal-form {
  text-align: center;
}

@media (max-width: 480px) {
  .menu-section-header h2,
  .size-labels span,
  .menu-section li span {
    font-size: 0.9rem;
  }
}
