body {
  padding-top: 70px;
  font-family: system-ui;
}

/* Hero image */
.hero {
  position: relative;
  width: 100%;
  max-height: 350px;   
  overflow: hidden;
  border-radius: 12px; 
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgb(7, 59, 11);
  text-align: center;
  text-shadow: 0 2px 6px rgba(0,0,0,0.6); 
}


/* Category cards */
.category-card {
  background: #f8f9fa;
  padding: 25px;
  text-align: center;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  border: 2px solid transparent;
}

.category-card:hover {
  background: #198754;
  color: white;
  border-color: #146c43;
}

/* Sale card */
.sale-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 0 10px rgba(0,0,0,0.08);
}

.navbar {
  z-index: 1050;  
}

.navbar .cart-link:hover {
  color: #c8f5c8;         /* lighter green on hover */
  transform: scale(1.2);  
}


body {
  padding-top: 70px;
}



.category-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.category-card:hover {
  border: 2px solid #198754;
  box-shadow: 0 0 12px rgba(25, 135, 84, 0.4);
  transform: translateY(-5px);
}

.category-link {
  cursor: pointer;
}

.category-link.active-category {
  color: #198754;
  font-weight: bold;
  border-bottom: 3px solid #198754;
}






.weekly-sale-wrapper {
  position: relative;
}

.weekly-sale-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 10px;
}

.weekly-card {
  flex: 0 0 180px;
}

.carousel-arrow {
  position: absolute;
  top: 35%;
  background: rgba(0,0,0,0.4);
  border: none;
  color: white;
  font-size: 2rem;
  padding: 0 10px;
  cursor: pointer;
  z-index: 10;
}
.carousel-arrow.left { left: 0; }
.carousel-arrow.right { right: 0; }

/* cart */

.cart-page .card {
  border-radius: 10px;
  background: #ffffff;
  transition: 0.3s;
}

.cart-page .card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.cart-page .minus,
.cart-page .plus,
.cart-page .remove {
  cursor: pointer;
}

/* CART  STYLING */
.cart-summary {
  flex: 1;
  background: #ffffff;       
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  height: fit-content;
  margin-top: 20px;          
  position: sticky;
  top: 90px;               
}

.cart-summary h3 {
  color: #2e7d32;            
  margin-bottom: 15px;
  text-align: center;
}

.cart-summary .row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 500;
}

.cart-summary .row.total {
  font-size: 18px;
  font-weight: bold;
  border-top: 1px solid #ddd;
  padding-top: 10px;
  margin-top: 10px;
}

.pay-btn {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  background: #2e7d32;
  color: white;
  border: none;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.pay-btn:hover {
  background: #27672a;
}

/* RESPONSIVE: stack summary below products on mobile */
@media (max-width: 768px) {
  .cart-page {
    flex-direction: column;
  }
  .cart-summary {
    margin-top: 20px;
    position: relative;
    top: auto;
  }
}







/* Make cart emoji bigger on ALL pages */
.navbar-nav .cart-link {
    font-size: 1.8rem;  /* adjust as needed */
    display: inline-block;
    vertical-align: middle;
}
/* Category card images */
.category-card .category-img {
  width: 100%;          /* full width of card */
  height: 180px;        /* adjust height as you like */
  object-fit: cover;    /* fills area while keeping proportions */
  border-radius: 8px;   /* optional, rounded corners */
  display: block;
  margin-bottom: 10px;  /* space below image for text */
}



