/* Header and nav, top section of index page*/

body {
  font-family: Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

/* Announcement bar */
.announcement-bar {
  background-color: rgba(37, 121, 49, 1);
  color: white;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
}

/* nav bar for all pages*/

.navbar {
  background: white;
  position: sticky;
  top: 30px;
  z-index: 100;
  width: 100%;
}

.navdiv {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-green {
  font-size: 34px;
  font-weight: 700;
  color: rgba(37, 121, 49, 1);
  margin-left: 40px;
}

.logo-light {
  font-size: 22px;
  font-weight: semi;
  color: rgba(89, 212, 58, 1);
}

.logo a {
  text-decoration: none;
}

li {
  list-style: none;
  display: inline-block;
}

li a {
  text-decoration: none;
  color: rgba(114, 123, 112, 1);
}

.navbar ul {
  display: flex;
  align-items: center;
  gap: 100px;
  list-style: none;
}

li.active a {
  color: rgba(92, 173, 71, 1);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-right: 30px;
}

.nav-right img {
  width: 22px;
  height: 22px;
}

.nav-right button {
     
  background: rgba(30, 157, 58, 1);
  color: white;
  padding: 10px;
  padding-left: 20px;
  padding-right: 20px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: bold;
  border-style: none;
  cursor: pointer;
  text-decoration: none;
}


.nav-right button:hover {
  background-color: rgba(27, 100, 39, 1);
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.nav-right button a {
  color: white;
  border: none;
  text-decoration: none;
}

.hamburger-dropdown {
  position: relative;
}
.hamburger-menu {
  display: none !important;
  position: absolute !important;
  right: 0 !important;
  top: 130% !important;
  background: white !important;
  border: 1px solid #ddd !important;
  border-radius: 8px !important;
  min-width: 150px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  z-index: 999 !important;
}
.hamburger-menu a {
  display: block;
  padding: 10px 16px;
  color: #333 !important;
  text-decoration: none;
  font-size: 14px;
}
.hamburger-menu a:hover {
  background-color: #f5f5f5;
  color: green !important;
  border-radius: 8px;
}
.hamburger-menu.open {
  display: block !important;
}



    
/* Hero section in home page */

.hero {
  background-image: url("../images/homepage.png");
  background-size: cover;
  background-position: center;
  height: 530px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 60px;
  width: 100%;
}

.hero-content {
  background: rgba(37, 121, 49, 0.6);
  padding: 16px 40px;
  border-radius: 48px;
  max-width: 550px;
}

.hero h1 {
  font-size: 42px;
  font-weight: bold;
  color: white;
  line-height: 1.3;
}

.hero-green {
  color: rgba(107, 230, 76, 1);
  margin-left: 50px;
}

.hero-priced {
  margin-left: 100px;
}

.hero-btn {
  display: inline-block;
  margin-top: 0px;
  margin-bottom: 10px;
  background-color: rgba(30, 157, 58, 1);
  color: white;
  padding: 12px 38px;
  border-radius: 25px;
  font-size: 22px;
  font-weight: bold;
  text-decoration: none;
  margin-left: 220px;
}

.hero-btn:hover {
  background-color: rgba(27, 100, 39, 1);
  transition: background-color 0.3s ease;
}




/* centre of homepage */

.centre {
  background: rgba(113, 221, 142, 0.3);
  padding: 60px 0;
  text-align: center;
}

.centre-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.centre-top {
  font-size: 24px;
  color: rgba(34, 118, 13, 1);
  margin-bottom: 10px;
}

.centre-title {
  font-size: 32px;
  font-weight: bold;
  color: black;
}

.cards-row {
  display: flex;
  gap: 300px;
  margin-top: 40px;
  justify-content: center;
}

.card {
  background-color: white !important;
  border-radius: 90px !important;
  padding: 40px 25px;
  min-height: 500px;
  min-width: 310px !important;
  width: 310px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}


.card h3 {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 70px;
  margin-top: 0px;
  color: black;
}

.card p {
  font-size: 18px;
  color: rgba(80, 80, 80, 1);
  line-height: 1.6;
}




/* Bottom of all pages called footer */

.footer {
  background: rgba(6, 124, 14, 1);
  color: white;
  padding: 60px 0;
}

.footer-content {
  display: flex;
  gap: 250px;
  margin-top: 40px;
  margin-left: 40px;
  justify-content: center;
}

.footer h2 {
  color: white;
}

.footer-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 8px;
}

.footer-iconlocation {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  margin-left: -5px;
  margin-right: 3px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 40px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.footer-links a:hover {
  color: black;
}










/* Sign up page */

.auth-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.auth-box {
  background: white;
  padding: 40px;
  border-radius: 12px;
  width: 340px;
}

.auth-box h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
}

.auth-box input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

.auth-box input:focus {
  outline: none;
  border-color: rgba(37, 121, 49, 1);
}

.auth-box button {
  width: 100%;
  padding: 12px;
  background: rgba(37, 121, 49, 1);
  color: white;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
}

.auth-box button:hover {
  background: rgba(27, 100, 39, 1);
}

.auth-box p {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-grey);
}

.auth-box p a {
  color: rgba(37, 121, 49, 1);
  font-weight: bold;
}













/* Log In*/

.notification {
  background: rgba(37, 121, 49, 1);
  border-radius: 28px;
  padding: 50px;
  margin-right: 80%;
  margin-top: 100px;
  text-align: left;
}

.auth-sectionlogin {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream);
}

.auth-boxlogin {
  background: white;
  padding: 40px;
  border-radius: 12px;
  width: 340px;
}

.auth-boxlogin h2 {
  font-size: 22px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 24px;
}

.auth-boxlogin input {
  display: block;
  width: 100%;
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: Arial, sans-serif;
}

.auth-boxlogin input:focus {
  outline: none;
  border-color: rgba(37, 121, 49, 1);
}

.auth-boxlogin button {
  width: 100%;
  padding: 12px;
  background: rgba(37, 121, 49, 1);
  color: white;
  border-radius: 25px;
  font-size: 16px;
  font-weight: bold;
  margin-top: 8px;
}

.auth-boxlogin button:hover {
  background: rgba(27, 100, 39, 1);
}

.auth-boxlogin p {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-grey);
}

.auth-boxlogin p a {
  color: rgba(37, 121, 49, 1);
  font-weight: bold;
}

.notification {
  background: rgba(37, 121, 49, 1);
  border-radius: 28px;
  padding: 50px;
  width: 300px;
  position: absolute;
  left: 40px;
  top: 200px;
}

.noti {
  position: relative;
}

.notification h3 {
  color: white;
  margin-bottom: 16px;
  font-size: 16px;
}

.test-account {
  padding: 10px 14px;
  margin-bottom: 10px;
}

.test-account p {
  color: white;
  font-size: 13px;
  margin: 4px 0;
  font-weight: bold;
}

.account-name {
  font-weight: bold;
  font-size: 14px !important;
  margin-bottom: 6px !important;
}









/*shop page*/

/* shop pop up for non signed in users*/


.popup-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-box {
  background: #fff;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  font-size: 16px;
  color: #333;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}


/* The top  section of the shop page*/

.shoptop {
  background-color: rgba(246, 240, 240, 1);
  padding: 20px 0;
  text-align: center;
}
.shopinfo {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 60px;
  width: 100%;
}

.shoptxt {
  font: 400;
  font-size: 10px;
}


/* Shopping middle section*/

.shopcentrebackground {
  background-color: rgba(222, 220, 220, 1);
  padding: 190px 0;
}
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  max-width: 1400px;
  margin: 20px auto;
  padding: 0 24px;
}

@media (max-width: 700px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }
}

.product-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 20px 20px 0 0;
}

.product-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.13);
}

.card-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vendor {
  font-size: 12.5px;
  font-weight: 600;
  color: #2a7d2e;
}

.product-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.product-name {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a1a;
}

.badge {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge.in-stock {
  background: #e8f5e9;
  color: #2a7d2e;
}

.badge.out-of-stock {
  background: #fdecea;
  color: #e05c2a;
}

.price {
  font-size: 16px;
  font-weight: 500;
  color: #1a1a1a;
  margin-top: 8px;
}

.price strong {
  font-size: 20px;
  font-weight: 700;
}

.price .unit {
  font-size: 13px;
  color: #666;
  font-weight: 400;
}

.btn-basket {
  margin-top: 16px;
  background: #2a7d2e;
  color: #fff;
  border: none;
  border-radius: 40px;
  padding: 13px 0;
  width: 100%;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.18s ease,
    transform 0.12s ease;
}

.btn-basket:hover {
  background: #1e5e22;
  transform: scale(1.02);
}

.btn-basket:active {
  transform: scale(0.98);
}






/*producer page*/

/*Producer information*/

.producer {
  padding: 60px 80px;
  max-width: 100%;
}

.producer-light {
  background-color: #f4f4f2;
}

.producer-dark {
  background-color: #e8e8e5;
}

.producer h1 {
  font-size: 28px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.producer h2 {
  font-size: 16px;
  font-weight: 600;
  color: rgba(92, 173, 71, 1);
  margin-bottom: 16px;
}

.producer p {
  font-size: 15px;
  color: #555;
  line-height: 1.7;
  max-width: 750px;
}








/* checkout*/

.basket-centre-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  gap: 24px;
  max-width: 600px;
  margin: 40px auto;
}

.basket-centre-wrapper .basket-box {
  width: 100%;
}

.basket-centre-wrapper .place-order-btn {
  font-size: 16px;
  padding: 16px 30px;
  width: auo;
  display: inline-block;
  margin-top: 100px;
}


/* Basket badge */
.basket-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(30, 157, 58, 1);
  color: white;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes pop {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.4); }
  100% { transform: scale(1); }
}

.badge-pop {
  animation: pop 0.3s ease;
}

/* Basket rows */
.basket-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.5fr;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid #e0e0e0;
  gap: 10px;
}

.basket-header {
  font-weight: bold;
  font-size: 14px;
  color: #1a1a1a;
  border-bottom: 2px solid #ccc;
  padding-bottom: 10px;
}

.basket-item-name {
  font-size: 14px;
  color: #333;
}

.basket-item-price {
  font-size: 14px;
  color: #333;
}

.basket-qty-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.qty-btn {
  background: #f0f0f0;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 16px;
  cursor: pointer;
}

.qty-btn:hover {
  background: #ddd;
}

.qty-input {
  width: 40px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 4px;
  font-size: 14px;
}

.remove-btn {
  background: none;
  border: none;
  color: red;
  font-size: 14px;
  cursor: pointer;
}

.remove-btn:hover {
  color: darkred;
}

.basket-total-row {
  display: flex;
  justify-content: space-between;
  padding: 16px 10px 0;
  font-weight: bold;
  font-size: 15px;
  color: #1a1a1a;
  border-top: 2px solid #ccc;
  margin-top: 10px;
}






/* final checkout*/

/* Basket / Checkout page */
.basket-section {
  display: flex;
  gap: 40px;
  padding: 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.basket-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1.5;
}

.basket-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
}

.basket-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
}

.basket-box h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.basket-toggle-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  gap: 16px;
}

.toggle-btn {
  padding: 10px 30px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background: white;
  font-size: 15px;
  cursor: pointer;
  font-weight: 500;
}

.toggle-btn.active {
  background: rgba(30, 157, 58, 1);
  color: white;
  border-color: rgba(30, 157, 58, 1);
}

.toggle-btn:hover {
  background: #f0f0f0;
}

.toggle-btn.active:hover {
  background: rgba(27, 100, 39, 1);
}

.basket-input {
  display: block;
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: Arial, sans-serif;
}

.basket-input:focus {
  outline: none;
  border-color: rgba(37, 121, 49, 1);
}

.basket-label {
  display: block;
  font-size: 14px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 6px;
}

.basket-note {
  font-size: 12px;
  color: #888;
  font-style: italic;
  margin-top: 4px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 15px;
  
}



.loyalty-row {
  font-size: 13px;
  color: #555;
}

.total-row {
  font-size: 18px;
  font-weight: bold;
  margin-top: 8px;
}

.loyalty-title {
  color: rgba(37, 121, 49, 1) !important;
}

.place-order-container {
  display: flex;
  justify-content: flex-start;
  padding: 0 60px 40px 60px;
}

.place-order-btn {
  display: block;
  background-color: rgba(30, 157, 58, 1);
  color: white;
  padding: 14px 30px;
  border-radius: 25px;
  font-size: 20px;
  font-weight: bold;
  text-decoration: none;
  text-align: center;
}

.place-order-btn:hover {
  background-color: rgba(27, 100, 39, 1);
  transition: background-color 0.3s ease;
}












/*Producer dashbaord*/





  .container {
  width: 80% !important;
  margin: 40px auto;
}

  h2 {
    margin-bottom: 15px;
  }

 .dash-card {
  background: #bfbfbf;
  border-radius: 40px;
  padding: 70px;
  margin-bottom: 60px;
  width: 100% !important;
  min-width: 0 !important;
  height: 300px;
}

  /* Vertical layout */
  .column {
    display: flex;
    
    gap: 20px; /* space between fields */
  }

  .field {
    display: flex;
    
  }

  .label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  /* Wide, short input boxes */
  input {
    width: 100%;
    padding: 8px 12px;  /* short height */
    border-radius: 10px;
    border: none;
    outline: none;
    background: #ffffff;
    font-size: 14px;
  }

  input::placeholder {
    color: #aaa;
  }



/* Orders table */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.orders-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #ccc;
  color: #1a1a1a;
  font-weight: bold;
}

.orders-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  color: #333;
}

.orders-table tr:last-child td {
  border-bottom: none;
}

.orders-table tr:hover td {
  background-color: #f9f9f9;
}














/* settings*/

/* Settings page */

.settings-wrapper {
  max-width: 700px;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.settings-title {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 12px;
}

.settings-box {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 24px;
}



.delete-account-btn {
  background: #e53935;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  align-self: flex-start;
}

.delete-account-btn:hover {
  background: #c62828;
}



























