@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
}

html, body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
  color: #333;
  line-height: 1.6;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow-x: hidden;
}

.main-content {
  flex: 1;
}

.top-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100%;
}

.header {
  background-color: #FFFFFF;
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 15px 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  min-width: 0;
}

.logo img {
  height: 50px;
  margin-right: 10px;
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

.logo-text h1 {
  font-size: 1.2rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.logo-text p {
  font-size: 0.75rem;
  color: #666;
}

.nav {
  display: flex;
  gap: 20px;
  transition: all 0.3s ease;
}

.nav-link {
  text-decoration: none;
  color: #666;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #1A3C34;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: #1A3C34;
  font-weight: bold;
}

.nav-link:hover {
  color: #1A3C34;
}

.menu-toggle-checkbox {
  display: none;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  border: none;
  background: none;
  cursor: pointer;
  color: #1A3C34;
  transition: transform 0.3s ease;
}

.menu-toggle:hover {
  transform: rotate(90deg);
}

/* Products Dropdown */
.nav .nav-link.products-link {
  position: relative;
}

.nav .nav-link.products-link:hover .dropdown {
  display: block;
}

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #1A3C34;
  min-width: 200px;
  max-width: 100%;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding: 0.5rem 0;
}

.dropdown a {
  color: #fff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  font-weight: 600;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

.dropdown a:hover {
  background-color: #A9C9A4;
}

/* Animations for Navbar */
[data-animate="fade-in"] {
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* Cart Section */
.checkout.section, .cart.section {
  background-color: #e9e9e7;
  padding: 4rem 0;
}

.section-title {
  font-size: 2.5rem;
  color: #1A3C34;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: bold;
}

#cart-items {
  margin-bottom: 2rem;
  padding: 1rem;
  background: #FFFFFF;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #e9e9e7;
  flex-wrap: wrap;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item span {
  font-size: 1rem;
  color: #1A3C34;
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.qty-btn {
  background: #A9C9A4;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.qty-btn:hover {
  background: #1A3C34;
  transform: scale(1.05);
}

.remove-item {
  background: #e74c3c;
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  padding: 0.25rem 0.75rem;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.remove-item:hover {
  background: #c0392b;
  transform: scale(1.05);
}

.cart-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.continue-shopping {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #eff6ff;
  border-radius: 9999px;
  color: #1A3C34;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out, transform 0.3s;
}

.continue-shopping:hover {
  background-color: #dbeafe;
  color: #1d4ed8;
  transform: scale(1.05);
}

.submit-button {
  background: #A9C9A4;
  border: none;
  padding: 10px 20px;
  color: #fff;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: transform 0.3s, background 0.3s;
  width: 100%;
  max-width: 200px;
  text-align: center;
  text-decoration: none;
}

.submit-button:hover {
  transform: scale(1.05);
  background: #1A3C34;
}

/* Form Styles */
#eft-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 400px;
  margin: 2rem auto;
  align-items: stretch;
  width: 100%;
}

#eft-form .form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
}

#eft-form label {
  font-size: 1rem;
  color: #1A3C34;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

#eft-form input,
#eft-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

#eft-form input:focus,
#eft-form textarea:focus {
  outline: none;
  border-color: #1A3C34;
  box-shadow: 0 0 5px rgba(26, 60, 52, 0.3);
}

#eft-form input:invalid:not(:placeholder-shown),
#eft-form textarea:invalid:not(:placeholder-shown) {
  border-color: #e74c3c;
}

.eft-note {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
  text-align: center;
}

#status-message {
  font-size: 1rem;
  text-align: center;
  margin-top: 1rem;
}

#status-message.success {
  color: #1A3C34;
  font-weight: bold;
}

#status-message.error {
  color: #e74c3c;
  font-weight: bold;
}

/* Popup Styles */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #FFFFFF;
  padding: 2rem;
  border-radius: 8px;
  max-width: 500px;
  width: 90%;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.popup-content p {
  font-size: 1.1rem;
  color: #1A3C34;
  margin-bottom: 1.5rem;
}

.close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
  color: #666;
}

.close:hover {
  color: #1A3C34;
}

/* Footer */
.footer {
  background-color: #1A3C34;
  color: #bbb;
  padding: 40px 0;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
  width: 100%;
}

.footer-section h4 {
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 10px;
}

.footer-section p {
  font-size: 0.875rem;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
}

.footer-section a:hover {
  color: #FFFFFF;
}

.footer-text {
  font-size: 0.75rem;
  border-top: 1px solid #666;
  padding-top: 10px;
  text-align: center;
}

.footer-section img {
  width: 80px;
  height: 84px;
  margin-right: 10px;
}

/* Action Buttons */
.action-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 50;
}

.action-button {
  background-color: #A9C9A4;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.action-button:hover {
  transform: scale(1.1);
}

.action-button svg {
  fill: none;
  stroke: #FFFFFF;
  width: 24px;
  height: 24px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .cart-item {
    padding: 0.75rem;
  }

  .quantity-controls {
    gap: 0.3rem;
  }

  .qty-btn {
    padding: 4px 8px;
    font-size: 0.9rem;
  }

  .remove-item {
    font-size: 0.85rem;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: #FFFFFF;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 40;
    padding: 1rem 0;
  }

  .menu-toggle-checkbox:checked ~ .nav {
    display: flex;
  }

  .nav-link {
    margin: 0;
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid #e9e9e7;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav .nav-link.products-link .dropdown {
    display: none !important;
  }

  .cart-item {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .cart-item span {
    font-size: 0.9rem;
    flex-basis: 100%;
  }

  .quantity-controls {
    flex-basis: 50%;
  }

  .remove-item {
    flex-basis: 30%;
  }

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

  .continue-shopping,
  .submit-button {
    max-width: 180px;
    width: 100%;
  }

  #eft-form {
    max-width: 100%;
    padding: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .action-buttons {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }

  .action-button {
    width: 45px;
    height: 45px;
  }

  .action-button svg {
    width: 20px;
    height: 20px;
  }

  .popup-content {
    width: 95%;
    padding: 1.5rem;
  }

  .popup-content p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.8rem;
  }

  .cart-item span {
    font-size: 0.8rem;
  }

  .qty-btn,
  .remove-item {
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
  }

  .continue-shopping,
  .submit-button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  #eft-form {
    gap: 1rem;
  }

  #eft-form label {
    font-size: 0.9rem;
  }

  #eft-form input,
  #eft-form textarea {
    font-size: 0.9rem;
    padding: 0.6rem;
  }

  .popup-content {
    padding: 1rem;
  }

  .popup-content p {
    font-size: 0.9rem;
  }

  .action-buttons {
    bottom: 10px;
    right: 10px;
  }

  .action-button {
    width: 40px;
    height: 40px;
  }

  .action-button svg {
    width: 18px;
    height: 18px;
  }

  .logo-text h1 {
    font-size: 1rem;
  }

  .logo-text p {
    font-size: 0.65rem;
  }

  .logo img {
    height: 40px;
  }

  .cart-icon {
    font-size: 1em;
  }

  .cart-count {
    font-size: 0.7rem;
    padding: 1px 5px;
  }
}