/* Base Styles */
body {
  font-family: 'Lora', serif;
  background-color: #FAF3E0; /* Cream White */
  color: #333333; /* Charcoal Gray */
  margin: 0;
  padding: 0;
}

header, footer {
  background-color: #8B5E3C; /* Timber Brown */
  color: #FAF3E0;
  text-align: center;
  padding: 2rem;
  font-family: 'Montserrat', sans-serif;
}

h1 {
  font-size: 2.5rem;
  margin: 0;
  color: #FAF3E0;
}

h2 {
  font-family: 'Montserrat', sans-serif;
  color: #DAA520; /* Harvest Gold */
}

section {
  padding: 2rem;
  max-width: 900px;
  margin: auto;
}

/* Call-to-Action Button */
.cta-section {
  text-align: center;
  margin: 3rem 0;
}

.cta {
  background-color: #FFD54F; /* Sunflower Yellow */
  color: #333333;
  padding: 1rem 2rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.cta:hover {
  background-color: #6DBE45; /* Fresh Green */
  color: #fff;
}

/* Add-to-Cart and Action Buttons */
.add-btn {
  background-color: #FFD54F;
  color: #333333;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
  text-decoration: none;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.add-btn:hover {
  background-color: #6DBE45;
  color: #fff;
}

/* Notice Section */
.notice {
  max-width: 900px;
  margin: 2rem auto;
  text-align: center;
  padding: 1rem;
}

.notice .add-btn {
  margin-top: 1rem;
}

/* About Page Layout */
.about-content {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  flex-wrap: wrap;
}

.story { flex: 2; }

.mission-box {
  flex: 1;
  background-color: #FAF3E0;
  border: 2px solid #556B2F;
  border-radius: 8px;
  padding: 1.5rem;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mission-box h3 {
  margin-top: 0;
  color: #556B2F;
  font-size: 1.4rem;
}

.mission-box p {
  margin: 0.5rem 0 0;
  line-height: 1.6;
}

/* Sidebar Navigation (Hamburger Menu) */
.hamburger {
  position: fixed;
  top: 15px;
  left: 15px;
  width: 30px;
  height: 25px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger div {
  background-color: #b8860b;
  height: 4px;
  margin: 5px 0;
  border-radius: 2px;
}

.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  top: 0;
  left: 0;
  background-color: #fffef9;
  box-shadow: 2px 0 5px rgba(0,0,0,0.3);
  overflow-x: hidden;
  transition: width 0.3s ease;
  padding-top: 60px;
  z-index: 1000;
  border-right: 3px solid #b8860b;
}

.sidebar a {
  padding: 12px 24px;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  display: block;
  transition: 0.2s;
  cursor: pointer;
}

.sidebar a:hover {
  background-color: #f5deb3;
  color: #000;
}

/* Submenu with animation */
.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding-left: 20px;
}

.submenu.open {
  max-height: 500px;
  transition: max-height 0.3s ease-in;
}

.submenu a {
  font-weight: normal;
  font-size: 16px;
}

/* Arrow indicator */
.arrow {
  float: right;
  transition: transform 0.3s ease;
}

.arrow.down {
  transform: rotate(90deg);
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.4rem; }
  section { padding: 1rem; }
  .cta { font-size: 1rem; padding: 0.8rem 1.2rem; }
  .about-content { flex-direction: column; }
  .mission-box { margin-top: 1.5rem; }
  .sidebar a { font-size: 16px; padding: 10px 20px; }
  .submenu a { font-size: 14px; }
}

@media (max-width: 600px) {
  h1 { font-size: 2.2rem; }
  section { padding: 1.5rem; }
  .cta { font-size: 1.1rem; }
}

/* === Cart Sidebar Styles === */
.cart-sidebar {
  height: 100vh;
  -webkit-overflow-scrolling: touch;
  position: fixed;
  top: 0;
  right: 0;
  background-color: #FAF3E0;
  border-left: 2px solid #556B2F;
  overflow-x: hidden;
  overflow-y: auto;
  padding-top: 60px;
  box-shadow: -4px 0 8px rgba(0,0,0,0.2);
  z-index: 2000;

  /* Start off-screen to the right */
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-sidebar.open {
  /* Slide into view */
  transform: translateX(0);
  width: auto;       /* let left/right define width */
  padding: 1rem;
}
/* Mobile: full screen from the right */
@media (max-width: 600px) {
  .cart-sidebar.open {
    left: 5%;   /* adjust this value for desired gap */
    right: 0;
    width: auto;
    max-width: none;
  }
}

body.cart-open {
  overflow: hidden;
}

/* Cart Header */
.cart-header {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  color: #556B2F;
  margin-bottom: 1rem;
}

/* Cart Items */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-family: 'Lora', serif;
}

.cart-item span {
  flex: 1;
}

.cart-controls {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.cart-controls button {
  background-color: #FFD54F;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.cart-controls button:hover {
  background-color: #6DBE45;
  color: #fff;
}

/* Cart Total */
.cart-total {
  font-weight: bold;
  margin-top: 1rem;
  text-align: right;
  color: #333;
}

/* Checkout Button */
.checkout-btn {
  position: sticky;
  bottom: 0;
  width: 100%;
  background-color: #FFD54F;
  border: none;
  border-radius: 6px;
  padding: 0.7rem;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
}

.checkout-btn:hover {
  background-color: #6DBE45;
  color: #fff;
}

/* Cart Icon */
.cart-icon {
  position: fixed;
  top: 20px;
  right: 20px;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2100;
}

/* Optional Overlay for Mobile UX */
.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1999;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Modal background */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  z-index: 3000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* semi-transparent overlay */
}

/* Modal box */
.modal-content {
  background-color: #FAF3E0;
  margin: 15% auto;
  padding: 20px;
  border: 2px solid #556B2F;
  border-radius: 8px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Close button */
.close {
  color: #333;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #6DBE45;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #556B2F; /* Olive green */
  border-radius: 6px;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  background-color: #f9f9f9;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #8FBC8F; /* Lighter green */
  outline: none;
}

.contact-form button {
  padding: 0.75rem;
  background-color: #556B2F;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.contact-form button:hover {
  background-color: #6B8E23; /* Slightly brighter green */
}

.hp-field {
  display: none !important;
  visibility: hidden;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
  position: absolute;
  left: -9999px;
}
.cart-toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #2f3e2f; /* deep heritage green */
  color: #f5f1e8;       /* warm cream */
  padding: 14px 20px;
  border-radius: 6px;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

.cart-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.cart-toast.hidden {
  display: none;
}
.egg-select {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 2px solid #556B2F;
  border-radius: 6px;
  background-color: #FAF3E0;
  color: #333;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.egg-select:focus {
  border-color: #6DBE45;
  outline: none;
}
