@import url('https://fonts.googleapis.com/css2?family=Comic+Neue:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

/* GENERAL STYLES */
* {
  box-sizing: border-box;
}

body, .font-body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  font-weight: 400;
  letter-spacing: 0.01em;
  margin: 0;
  padding: 0;
  background: #d6f5c9;
  padding-top: 90px; /* Default for desktop */
}

/* NAVBAR */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #dfbf9c;
  
  box-shadow: 0 4px 24px rgba(44, 62, 80, 0.10);
  padding: 0 24px;
  min-height: 90px;
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 100;
  animation: navbarFadeIn 0.8s cubic-bezier(.39,.575,.56,1.000);
  transition: background 0.3s;
}

.navbar.scrolled {
  background: #ff9800;
}

@keyframes navbarFadeIn {
  from { opacity: 0; transform: translateY(-30px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-left {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.sidebar-hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: none;
  border: none;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  cursor: pointer;
  position: relative;
  z-index: 1100;
  padding: 0;
  transition: background 0.2s, box-shadow 0.2s;
}
.sidebar-hamburger:hover {
  background: #e0f7fa;
  box-shadow: 0 4px 18px rgba(44,62,80,0.13);
}
.hamburger-line {
  width: 26px;
  height: 3.5px;
  background: #fff;
  border-radius: 2px;
  margin: 3.5px 0;
  box-shadow: 0 1px 4px rgba(44,62,80,0.10);
  transition: all 0.32s cubic-bezier(.39,.575,.56,1.000);
}
.sidebar.open ~ .sidebar-overlay .sidebar-hamburger .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.sidebar.open ~ .sidebar-overlay .sidebar-hamburger .hamburger-line:nth-child(2) {
  opacity: 0;
}
.sidebar.open ~ .sidebar-overlay .sidebar-hamburger .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-center {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo {
  height: 80px;
  width: 80px;
  object-fit: contain;
  margin-right: 12px;
  display: block;
}

.farm-name {
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffffff;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav-links a {
  color: #fffcfc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.08rem;
  transition: color 0.2s, box-shadow 0.22s, transform 0.22s;
  border-radius: 8px;
  padding: 6px 14px;
  display: inline-block;
}

.nav-links a:hover, .nav-links a.active {
  color: #00d963;
  background: #f8fff6;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.13), 0 0 0 2px #00d96333;
  transform: translateY(-2px) scale(1.06);
}

.nav-icons {
  display: flex;
  gap: 22px;
  align-items: center;
  font-size: 1.5rem;
  margin-right: 8px;
}

.nav-icon {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.18s;
}

.nav-icon:hover {
  background: #f5f5f5;
}

.cart-count-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: #ff9800;
  color: #fff;
  font-size: 0.85rem;
  font-weight: bold;
  border-radius: 50%;
  padding: 2px 6px;
  min-width: 18px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(44,62,80,0.13);
}

/* Highlight active nav link */
.nav-links a.active, .nav-links a[aria-current="page"] {
  color: #41c321 !important;
  background: #fff;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.13), 0 0 0 2px #41c32133;
  border-radius: 8px;
  font-weight: bold;
}

/* Hamburger hover effect */
.sidebar-hamburger:hover {
  background: #e0f7fa;
  color: #2e7d32;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

/* Responsive: Hide nav-links, show hamburger on mobile */
@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
  .sidebar-hamburger {
    display: block;
  }
  .navbar {
    padding: 0 10px;
    min-height: 70px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
  .logo {
    height: 60px;
    width: 60px;
    margin-right: 8px;
  }
  .farm-name {
    font-size: 1.1rem;
  }
  body {
    padding-top: 70px;
  }
}

@media (max-width: 600px) {
  .navbar {
    height: 62px;
    min-height: 56px;
    padding: 0 10px;
    display: flex;
    align-items: center;
    padding-top: 2px;
    padding-bottom: 2px;
  }
  .nav-center {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .logo {
    width: 80px !important;
    height: 80px !important;
    margin: 0 4px 0 0;
  }
  .farm-name {
    font-size: 1.08rem !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin: 0;
    line-height: 1.1;
    vertical-align: middle;
  }
  .nav-left, .nav-right, .nav-icons {
    display: flex;
    align-items: center;
    height: 100%;
  }
  .nav-icon.cart-icon {
    margin-right: 0;
    margin-left: 8px;
  }
  .cart-count-badge {
    top: 2px;
    right: -8px;
    font-size: 0.85rem;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
  }
  body {
    padding-top: 56px;
  }
}

@media (max-width: 770px) {
  .navbar {
    border-radius: 0;
  }
}

/* Sidebar Drawer Styles */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 240px;
  max-width: 340px;
  height: 100%;
  background: #725c3a;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  color: #fff;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(.4,2,.6,1);
  box-shadow: 2px 0 32px 0 rgba(44,62,80,0.18);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  border-radius: 0 18px 18px 0;
  overflow: hidden;
  border-right: 2.5px solid #ffd70044;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding: 0 18px;
}

.sidebar-close {
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
  transition: color 0.2s;
}
.sidebar-close:hover {
  color: #00d963;
}

.sidebar-menu {
  list-style: none;
  padding: 0 0 0 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
}

.sidebar-menu li {
  margin: 0;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  border-radius: 0;
  position: relative;
  border-bottom: 1.5px solid #ffffff22;
}

.sidebar-menu li:last-child {
  border-bottom: none;
}

.sidebar-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.18rem;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background 0.2s, color 0.2s, transform 0.18s;
  border-radius: 0;
  padding: 16px 28px 16px 28px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: none;
  background: transparent;
}

.sidebar-menu a span {
  font-size: 1.45em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
}

.sidebar-menu a:hover {
  background: linear-gradient(90deg, #ffd70022 0%, #fffbe9 100%);
  color: #2e7d32;
  transform: translateX(6px) scale(1.04);
  box-shadow: 0 2px 12px #ffd70022;
}

/* Sidebar divider */
.sidebar-divider {
  border: none;
  border-top: 1.5px solid #e0e0e0;
  margin: 10px 0 6px 0;
  width: 85%;
  align-self: center;
  opacity: 0.4;
}

/* Sidebar Profile Dropdown */
.sidebar-profile-menu.inline {
  margin-bottom: 0;
  position: relative;
}
.sidebar-profile-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 1.13rem;
  font-weight: 600;
  color: #fff;
  padding: 8px 12px;
  border-radius: 12px 12px 0 0;
  transition: background 0.18s, color 0.18s;
  background: none;
  background-color: #e0f7fa;
  color: #2e7d32;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  width: 90%;
  margin: 0 auto;
}
.sidebar-profile-btn:hover, .sidebar-profile-menu.open .sidebar-profile-btn {
  background: #d2f5e3;
  color: #00d963;
}
.sidebar-profile-dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(.39,.575,.56,1.000), opacity 0.22s;
  background: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(44,62,80,0.13);
  width: 90%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.sidebar-profile-menu.open .sidebar-profile-dropdown-list {
  max-height: 120px;
  opacity: 1;
}
.sidebar-profile-dropdown-list li {
  margin: 0;
}
.sidebar-profile-dropdown-list a {
  color: #2e7d32;
  background: #fff;
  border-radius: 0;
  padding: 12px 16px;
  font-size: 1.08rem;
  font-weight: 500;
  text-decoration: none;
  display: block;
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  border-bottom: 1px solid #e0e0e0;
}
.sidebar-profile-dropdown-list a:last-child {
  border-radius: 0 0 12px 12px;
  border-bottom: none;
}
.sidebar-profile-dropdown-list a:hover {
  background: #e0f7fa;
  color: #00d963;
}

.sidebar-hamburger {
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
  margin-left: 0;
  z-index: 1100;
  display: inline-block;
}

.sidebar-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.25);
  z-index: 1000;
  display: none;
}

.sidebar.open ~ .sidebar-overlay,
.sidebar-overlay.open {
  display: block;
}

/* MAIN PAGE CONTAINER */
.page-container {
  padding: 0 20px 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* PRODUCTS SECTION */
.all-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 16px;
  overflow-x: auto;
}

@media (min-width: 500px) {
  .all-products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (min-width: 600px) {
  .all-products {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  border: none;
  box-shadow: 0 2px 12px rgba(44, 62, 80, 0.10);
  border-radius: 16px;
  padding: 0 0 18px 0;
  background: #fff;
  transition: box-shadow 0.22s, transform 0.22s;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  min-height: 0;
  height: auto;
  max-height: none;
}

.product-card:hover {
  box-shadow: 0 8px 32px rgba(44, 62, 80, 0.18);
  transform: translateY(-4px) scale(1.025);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8f8f8;
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
}

.product-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}

.product-card-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 14px 12px 0 12px;
  gap: 10px;
}

.product-card h3 {
  margin: 4px 0 8px 0;
  font-size: 1.13rem;
  color: #2e7d32;
  font-weight: 700;
  word-break: break-word;
  text-align: center;
}

.product-card select {
  width: 100%;
  max-width: 180px;
  margin: 0 auto 8px auto;
  padding: 7px 8px;
  border-radius: 7px;
  border: 1.5px solid #c8e6c9;
  font-size: 1rem;
  background: #f8f8f8;
  color: #333;
  transition: border 0.2s;
}

.product-card select:focus {
  border-color: #8d6e63;
  outline: none;
}

.product-card .product-price {
  font-size: 1.15rem;
  font-weight: bold;
  color: #795548;
  margin-bottom: 8px;
}

.product-card button {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 1.08rem;
  padding: 10px 0;
  width: 100%;
  max-width: 180px;
  background-color: #795548;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 1px 4px rgba(44,62,80,0.08);
  cursor: pointer;
  display: block;
}

.product-card button:hover {
  background: #2e7d32;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.product-card.out-of-stock {
  opacity: 0.6;
  pointer-events: none; /* Disables clicks on the card itself */
}

.product-card.out-of-stock .product-image-container::after {
  content: 'OUT OF STOCK';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-15deg);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 1.2rem;
  z-index: 2;
}

.out-of-stock-btn {
  background-color: #9e9e9e !important;
  cursor: not-allowed !important;
  color: #fff !important;
}

.product-group .category-heading {
  margin-bottom: 10px;
}

/* CART SECTION */
.cart-section {
  background: #fff;
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.05);
}

.cart-section h2 {
  margin-top: 0;
  font-size: 24px;
  color: #2e7d32;
  border-bottom: 2px solid #c8e6c9;
  padding-bottom: 10px;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.cart-table th,
.cart-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

.cart-table th {
  background-color: #e8f5e9;
  color: #2e7d32;
}

.total-value {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
  color: #1b5e20;
}

.place-order-btn,
.clear-cart-btn {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  font-size: 16px;
}

.place-order-btn {
  background-color: #388e3c;
  color: white;
}

.place-order-btn:hover {
  background-color: #2e7d32;
}

.clear-cart-btn {
  background-color: #d32f2f;
  color: white;
}

.clear-cart-btn:hover {
  background-color: #b71c1c;
}

.cart-highlight {
  animation: cartFlash 1s;
  box-shadow: 0 0 0 4px #ffe082, 0 2px 8px rgba(44,62,80,0.08);
  background: #fffde7 !important;
}
@keyframes cartFlash {
  0% { background: #fffde7; }
  50% { background: #ffe082; }
  100% { background: #fffde7; }
}

/* AUTH, CONTACT, HERO & OTHER PAGES */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  top: 0;
  left: 0;
  opacity: 0;
  border-radius: 10px;
  transition: opacity 1s ease-in-out;
  filter: brightness(0.7);
}

.hero-carousel img.active {
  opacity: 1;
  z-index: 1;
}

.product-preview,
.product-carousel {
  padding: 20px;
  text-align: center;
}

.product-carousel {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  justify-content: flex-start;
  padding-left: 8px;
  padding-right: 16px;
  scroll-snap-type: x mandatory;
}

.product-carousel div {
  min-width: 200px;
  border: 1px solid #ccc;
  padding: 10px;
}

.view-all-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: #004d00;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

/* AUTH FORMS */
.auth-container {
  background-color: #fff;
  padding: 30px 40px;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(0, 128, 0, 0.1);
  width: 100%;
  max-width: 400px;
  margin: 80px auto;
}

.auth-container h2 {
  text-align: center;
  color: #2e7d32;
  margin-bottom: 25px;
}

.auth-container input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #c8e6c9;
  border-radius: 5px;
  font-size: 16px;
}

.auth-container button {
  width: 100%;
  padding: 12px;
  background-color: #388e3c;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

.auth-container button:hover {
  background-color: #2e7d32;
}

.auth-container p {
  text-align: center;
  margin-top: 20px;
}

.auth-container a {
  color: #388e3c;
  text-decoration: none;
  font-weight: bold;
}

.auth-container a:hover {
  text-decoration: underline;
}

/* CONTACT SECTION */
.contact-section {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 0;
  background-color: #e0f7fa;
  gap: 40px;
  flex-wrap: wrap;
}

.contact-left, .contact-right {
  flex: 0 1 320px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-left {
  align-items: flex-start;
}

.contact-right {
  align-items: flex-end;
}

.owner-img {
  width: 100%;
  max-width: 200px;
  border-radius: 10px;
  margin-top: 10px;
}

.contact-left h2 {
  text-align: left;
  width: 100%;
}

.contact-left p, .contact-left a {
  margin: 6px 0;
  font-size: 1rem;
  color: #222;
  text-decoration: none;
}

.contact-left a:hover {
  text-decoration: underline;
}

/* FARM TITLE & DESCRIPTION */
.farm-title, .farm-description {
  position: static;
  background: #fff;
  margin: 0 auto 0.5rem auto;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  max-width: 900px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(44, 62, 80, 0.06);
}

.farm-title {
  top: 60px;
}

.farm-title h1 {
  font-size: 2.7rem !important;
  margin: 0.7rem 0 0.5rem 0 !important;
  text-shadow: 0 4px 18px rgba(44,62,80,0.18), 0 2px 8px #A084CA66, 0 1.5px 0 #fff, 0 0.5px 0 #6C3483;
  letter-spacing: 1.5px;
  font-weight: 800;
}

.farm-description p {
  font-size: 1.2rem;
  color: #333;
  margin: 0;
  line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  body {
    padding-top: 60px;
  }
  .page-container {
    padding: 0 4vw 32px 4vw;
    gap: 24px;
  }
  .all-products {
    gap: 14px;
  }
  .product-card {
    font-size: 0.95rem;
    padding: 0 0 12px 0;
  }
  .product-image-container {
    border-radius: 12px 12px 0 0;
  }
  .product-image-container img {
    border-radius: 12px 12px 0 0;
  }
  .product-card-content {
    padding: 8px 6px 0 6px;
    gap: 7px;
  }
  .navbar {
    flex-direction: row;
    align-items: flex-start;
    min-height: 110px;
    padding: 14px 8px;
    align-items: center;
  }

  .hero-carousel {
    margin-top: 60px !important;
  }
  .farm-title, .farm-description { max-width: 98vw; padding: 1rem 0.5rem; }
  .farm-title h1 { font-size: 1.5rem; }
  .farm-description p { font-size: 1rem; }
  .contact-section {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px 0;
  }
  .contact-left, .contact-right {
    align-items: center;
    text-align: center;
  }
  .contact-left h2 {
    text-align: center;
  }
  .nav-center {
    flex-direction: column;
    align-items: center;
    gap: 2px;
  }
  .logo {
    margin-right: 0;
    margin-bottom: 2px;
  }
  .farm-name {
    font-size: 1.1rem;
    text-align: center;
  }
}

/* Branch Map Section */
.branch-map-section {
  background: #e7f9e5;
  padding: 32px 0 16px 0;
  border-radius: 16px;
  text-align: center;
  margin: 12px auto 12px auto;
}

.branch-map-section h2 {
  color: #2e7d32;
  margin-bottom: 24px;
}

.branch-maps {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.branch-map {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  padding: 16px;
  width: 320px;
  max-width: 95vw;
}

.branch-map h3 {
  margin-bottom: 10px;
  color: #388e3c;
  font-size: 1.1rem;
}

/* YouTube Video Gallery */
.video-gallery {
  padding: 32px 0 16px 0;
  text-align: center;
  background: #f9fbe7;
  border-radius: 16px;
  margin: 12px auto 12px auto;
}

.video-gallery h2 {
  color: #2e7d32;
  margin-bottom: 24px;
}

.video-carousel {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  padding: 0 16px 16px 16px;
  scroll-snap-type: x mandatory;
}

.video-item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
  padding: 10px;
  width: 340px;
  max-width: 90vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ORDERS TABLE */
.orders-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}
.orders-table th, .orders-table td {
  border: 1px solid #e0e0e0;
  padding: 12px 16px;
  text-align: center;
}
.orders-table th {
  background: #388e3c;
  color: #fff;
  font-weight: bold;
}
.orders-table tr:nth-child(even) {
  background: #f9f9f9;
}
.orders-table tr:hover {
  background: #e8f5e9;
}

/* CATEGORY BAR (RESTORED) */
.category-bar {
  display: flex;
  gap: 32px;
  justify-content: flex-start;
  align-items: center;
  margin: 32px 0 18px 0;
  overflow-x: auto;
  padding: 12px 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.06);
  padding-left: 16px;
  padding-right: 16px;
  scroll-padding-left: 16px;
  min-width: 0;
  scroll-snap-type: x mandatory;
}
@media (min-width: 900px) {
  .category-bar {
    justify-content: center;
  }
}
.category-btn {
  background: none;
  border: none;
  outline: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  transition: color 0.2s, transform 0.22s;
  min-width: 90px;
  scroll-snap-align: start;
}
.category-btn.active, .category-btn:hover {
  color: #00d963;
  transform: translateY(-4px) scale(1.08);
}
.category-btn .category-circle {
  transition: box-shadow 0.22s, transform 0.22s;
}
.category-btn.active .category-circle,
.category-btn:hover .category-circle {
  box-shadow: 0 6px 24px rgba(44, 62, 80, 0.18), 0 0 0 4px #00d96333;
  transform: scale(1.10) rotate(-3deg);
}
.category-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #5a4327;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.category-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.category-heading {
  font-size: 2.5 rem;
  color: #5a4327;
  margin: 40px 0 24px 0;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-align: center;
  font-family: "Playwrite FR Moderne", cursive;
  background: #dfbf9c;
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.08);
  padding: 18px 0 10px 0;
  position: relative;
  display: inline-block;
  width: 100%;
}
.category-heading::after {
  content: '';
  display: block;
  margin: 12px auto 0 auto;
  width: 60px;
  height: 4px;
  border-radius: 2px;
}
@media (max-width: 700px) {
  .category-heading {
    font-size: 1.3rem;
    padding: 10px 0 6px 0;
    margin: 24px 0 12px 0;
  }
  .category-heading::after {
    width: 36px;
    height: 3px;
    margin: 8px auto 0 auto;
  }
}
.product-group {
  margin-bottom: 32px;
}
@media (max-width: 900px) {
  .all-products {
    gap: 14px;
  }
  .product-card {
    font-size: 0.95rem;
    padding: 0 0 12px 0;
  }
  .product-image-container {
    border-radius: 12px 12px 0 0;
    height: 180px;
    aspect-ratio: unset;
  }
  .product-image-container img {
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: 180px;
    object-fit: cover;
    aspect-ratio: unset;
  }
  .product-card-content {
    padding: 8px 6px 0 6px;
    gap: 7px;
  }
  .category-circle {
    width: 56px;
    height: 56px;
  }
  .category-btn {
    font-size: 1rem;
    min-width: 48px;
  }
}

@media (max-width: 600px) {
  .all-products {
    gap: 8px;
  }
  .product-card {
    font-size: 0.89rem;
    padding: 0 0 8px 0;
  }
  .product-image-container {
    border-radius: 8px 8px 0 0;
    height: 140px;
    aspect-ratio: unset;
  }
  .product-image-container img {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: 140px;
    object-fit: cover;
    aspect-ratio: unset;
  }
  .product-card-content {
    padding: 4px 2px 0 2px;
    gap: 5px;
  }
  .product-card h3 {
    font-size: 0.95rem;
  }
  .product-card button {
    font-size: 0.95rem;
    padding: 8px 0;
  }
  .category-circle {
    width: 56px;
    height: 56px;
  }
  .category-btn {
    font-size: 1.08rem;
    min-width: 56px;
  }
  .product-group .category-heading {
    margin-bottom: 6px;
    font-size: 1rem;
  }
}

/* PRODUCTS PAGE MODERN STYLES */
.products-header-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 32px 0 18px 0;
  flex-wrap: wrap;
}
.filter-toggle-btn {
  background: #fff;
  border: 1.5px solid #bdbdbd;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.filter-toggle-btn:hover {
  background: #f5f5f5;
}
.products-count {
  font-size: 1.1rem;
  font-weight: 600;
}
.products-view-toggle {
  display: flex;
  gap: 6px;
}
.view-btn {
  background: #fff;
  border: 1.5px solid #bdbdbd;
  border-radius: 6px;
  font-size: 1.2rem;
  padding: 4px 10px;
  cursor: pointer;
  color: #333;
  transition: background 0.2s, color 0.2s;
}
.view-btn.active, .view-btn:hover {
  background: #00d963;
  color: #fff;
  border-color: #00d963;
}
.products-sort {
  position: relative;
}
.sort-btn {
  background: #fff;
  border: 1.5px solid #bdbdbd;
  border-radius: 8px;
  padding: 7px 18px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.sort-btn:hover {
  background: #f5f5f5;
}
.sort-dropdown {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;
  background: #fff;
  border: 1.5px solid #bdbdbd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  z-index: 10;
  min-width: 180px;
}
.sort-dropdown .sort-option {
  padding: 10px 18px;
  cursor: pointer;
  font-size: 1rem;
  color: #333;
  transition: background 0.2s;
}
.sort-dropdown .sort-option:hover {
  background: #f5f5f5;
}
.products-layout {
  display: flex;
  gap: 32px;
}
.products-sidebar {
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.06);
  padding: 24px 18px 18px 18px;
  font-size: 1rem;
  color: #333;
  height: fit-content;
}
.products-sidebar h4 {
  font-size: 1.08rem;
  margin: 18px 0 8px 0;
  font-weight: 600;
}
.products-sidebar label {
  font-size: 1rem;
  margin-bottom: 6px;
  display: block;
  cursor: pointer;
}
.filter-price-range {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.products-grid {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
}
.product-card-modern {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.08);
  padding: 18px 14px 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card-modern:hover {
  box-shadow: 0 6px 24px rgba(44,62,80,0.14);
  transform: translateY(-4px) scale(1.02);
}
.product-card-modern img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #f8f8f8;
}
.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #ff9800;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  z-index: 2;
}
.product-badge.save {
  left: auto;
  right: 12px;
  background: #43a047;
}
.product-rating {
  color: #ffb300;
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.product-title {
  font-size: 1.13rem;
  font-weight: 600;
  margin: 8px 0 2px 0;
  color: #222;
}
.product-quantity-select {
  width: 100%;
  margin: 8px 0 8px 0;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid #c8e6c9;
  font-size: 1rem;
}
.product-price {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1b5e20;
  margin-bottom: 2px;
}
.product-price-old {
  font-size: 1rem;
  color: #bdbdbd;
  text-decoration: line-through;
  margin-left: 8px;
}
.add-to-cart-modern {
  width: 100%;
  margin-top: 10px;
  padding: 10px 0;
  background-color: #795548;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.08rem;
  cursor: pointer;
  transition: background 0.2s;
}
.add-to-cart-modern:hover {
  background-color: #4e342e;
}
@media (max-width: 1100px) {
  .products-layout {
    flex-direction: column;
  }
  .products-sidebar {
    max-width: 100%;
    width: 100%;
    margin-bottom: 18px;
  }
}
@media (max-width: 700px) {
  .products-header-controls {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }
  .products-layout {
    flex-direction: column;
    gap: 18px;
  }
  .products-sidebar {
    padding: 14px 6px 10px 6px;
    font-size: 0.98rem;
  }
  .products-grid {
    gap: 16px;
  }
  .hero-carousel {
    height: 28vh;
    min-height: 140px;
    max-height: none;
  }
}

/* Profile Dropdown Styles */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

.profile-btn {
  background: none;
  border: none;
  color: #fffcfc;
  font-weight: 500;
  font-size: 1.08rem;
  cursor: pointer;
  padding: 6px 14px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, box-shadow 0.22s, transform 0.22s;
}

.profile-btn:hover {
  color: #00d963;
  background: #f8fff6;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.13), 0 0 0 2px #00d96333;
  transform: translateY(-2px) scale(1.06);
}

.profile-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 1000;
  overflow: hidden;
}

.profile-dropdown-content a {
  color: #333;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
}

.profile-dropdown-content a:hover {
  background-color: #f1f8e9;
  color: #2e7d32;
}

.profile-dropdown:hover .profile-dropdown-content {
  display: block;
}

.profile-btn .user-icon {
  font-size: 1.2rem;
}

.sidebar-main-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-profile-section {
  margin-top: auto;
  padding-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.sidebar-profile-section::before {
  content: '';
  display: block;
  width: 85%;
  height: 1.5px;
  background: #e0e0e0;
  opacity: 0.4;
  margin: 10px 0 14px 0;
  border-radius: 2px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff9800;
  color: #fff;
  font-weight: bold;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.9em;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.original-price {
  color: #888;
  font-size: 0.9em;
  margin-right: 8px;
  text-decoration: line-through;
}
.discounted-price {
  color: #2e7d32;
  font-weight: bold;
}

/* --- FONT & ANIMATION ENHANCEMENTS FOR HOME PAGE --- */
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');

body, .font-body {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-headline {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  font-size: 2.8rem;
  font-weight: 700;
  color: #2e7d32;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  opacity: 0;
  animation: fadeSlideIn 1.2s cubic-bezier(.39,.575,.56,1.000) 0.2s forwards;
}

@media (max-width: 600px) {
  .hero-headline {
    font-size: 2rem;
  }
}

.hero-subheadline {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  font-size: 1.35rem;
  font-weight: 500;
  color: #388e3c;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeSlideIn 1.2s cubic-bezier(.39,.575,.56,1.000) 0.7s forwards;
}

@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  font-size: 2rem;
  font-weight: 600;
  color: #2e7d32;
  margin: 40px 0 18px 0;
  opacity: 0;
  animation: fadeUp 1.1s cubic-bezier(.39,.575,.56,1.000) forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.cta-btn {
  font-family: "Playwrite FR Moderne", cursive !important;
  font-size: 1.18rem;
  font-weight: 600;
  background: linear-gradient(90deg, #2e7d32 60%, #00d963 100%);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 38px;
  box-shadow: 0 4px 18px rgba(44,62,80,0.13);
  cursor: pointer;
  transition: background 0.22s, transform 0.22s, box-shadow 0.22s;
  animation: ctaBounceIn 1.2s cubic-bezier(.39,.575,.56,1.000) 1.2s forwards;
  opacity: 0;
}
.cta-btn:hover {
  background: linear-gradient(90deg, #219150 60%, #00b85c 100%);
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
}
@keyframes ctaBounceIn {
  0% { opacity: 0; transform: scale(0.8) translateY(40px); }
  60% { opacity: 1; transform: scale(1.08) translateY(-8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Section fade-in on scroll (for JS to add .fade-in class) */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.39,.575,.56,1.000), transform 0.8s cubic-bezier(.39,.575,.56,1.000);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
/* --- END FONT & ANIMATION ENHANCEMENTS --- */

.why-choose-us-section {
  background: #f8fff6;
  padding: 48px 0 32px 0;
  text-align: center;
}
.why-choose-us-section .info-title {
  font-size: 2rem;
  color: #2e7d32;
  margin-bottom: 32px;
  font-weight: bold;
  letter-spacing: 1px;
}
.why-choose-us-cards {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  max-width: 1100px;
  margin: 0 auto;
}
.why-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(44,62,80,0.10);
  padding: 32px 28px 24px 28px;
  min-width: 220px;
  max-width: 260px;
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 18px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.why-card:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 8px 32px rgba(44,62,80,0.13);
}
.why-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}
.why-title {
  font-size: 1.18rem;
  font-weight: bold;
  color: #388e3c;
  margin-bottom: 8px;
}
.why-desc {
  font-size: 1.02rem;
  color: #444;
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .why-choose-us-cards {
    gap: 18px;
  }
  .why-card {
    min-width: 160px;
    max-width: 98vw;
    padding: 22px 10px 18px 10px;
  }
}

.why-choose-us-wix {
  background: #eafbe7;
  padding: 0;
  margin: 0;
}
.why-main-block {
  background: #d6f5c9;
  text-align: center;
  padding: 48px 16px 32px 16px;
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
  border: 1.5px solid #e7f8e4;
}
.why-main-block h2 {
  font-size: 2.2rem;
  color: #234d20;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.why-main-desc {
  color: #234d20;
  font-size: 1.13rem;
  max-width: 540px;
  margin: 0 auto 28px auto;
  line-height: 1.6;
}
.why-main-btn {
  background: #234d20;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 14px 38px;
  margin-top: 10px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  transition: background 0.2s, transform 0.2s;
}
.why-main-btn:hover {
  background: #388e3c;
  transform: translateY(-2px) scale(1.04);
}
.why-info-blocks {
  background: #fff;
  max-width: 540px;
  margin: 0 auto;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 4px 18px rgba(44,62,80,0.07);
  padding: 0 0 18px 0;
}
.why-info-block {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 24px 10px 24px;
  text-align: left;
}
.why-info-icon {
  flex: 0 0 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.why-info-label {
  font-size: 0.98rem;
  color: #388e3c;
  font-weight: 500;
  margin-bottom: 2px;
}
.why-info-title {
  font-size: 1.18rem;
  font-weight: bold;
  color: #234d20;
  margin-bottom: 4px;
}
.why-info-desc {
  font-size: 1.02rem;
  color: #444;
  margin-bottom: 0;
}
.why-info-block > div:not(.why-info-icon) {
  display: block;
}
.why-info-divider {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0 24px;
}
@media (max-width: 700px) {
  .why-main-block {
    padding: 32px 4vw 18px 4vw;
  }
  .why-info-blocks {
    max-width: 98vw;
    padding: 0 0 8px 0;
  }
  .why-info-block {
    padding: 18px 8px 6px 8px;
    gap: 10px;
  }
  .why-info-divider {
    margin: 0 8px;
  }
}

.why-info-blocks.pro {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 18px rgba(44,62,80,0.10);
  border: 1.5px solid #e0e0e0;
  max-width: 1200px;
  margin: 12px auto 12px auto;
  padding: 18px 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.why-info-block-pro {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px 22px 24px;
  border-bottom: 1px solid #e0e0e0;
}
.why-info-block-pro:last-child {
  border-bottom: none;
}
.why-info-icon-pro {
  flex: 0 0 38px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-top: 2px;
}
.why-info-text-pro {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.why-info-label-pro {
  color: #43c01c;
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 2px;
}
.why-info-title-pro {
  font-size: 1.18rem;
  font-weight: 800;
  color: #222;
  margin-bottom: 2px;
}
.why-info-desc-pro {
  font-size: 1.02rem;
  color: #444;
  margin-bottom: 0;
  line-height: 1.5;
}
@media (max-width: 700px) {
  .why-info-blocks.pro {
    max-width: 98vw;
    padding: 0 0 8px 0;
  }
  .why-info-block-pro {
    padding: 16px 8px 16px 8px;
    gap: 10px;
  }
}

.cart-sidebar {
  background: #fff !important;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  width: 70vw;
  max-width: 480px;
  min-width: 320px;
  right: 0;
  left: auto;
  border-radius: 16px 0 0 16px;
  box-shadow: -2px 0 32px 0 rgba(44,62,80,0.18);
  position: fixed;
  top: 0;
  height: 100vh;
  z-index: 2000;
  transition: transform 0.3s cubic-bezier(.4,0,.2,1);
  transform: translateX(100%);
  display: flex;
  flex-direction: column;
  padding: 0 0 0 0;
}
.cart-sidebar.open {
  transform: translateX(0);
}
.cart-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 12px 28px;
  background: #fff8e1;
  border-radius: 16px 0 0 0;
  border-bottom: 2px solid #ffe082;
  border-left: 6px solid #ffd700;
  color: #5a4327;
}
.cart-sidebar-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #5a4327;
  letter-spacing: 0.2px;
}
.cart-sidebar-close {
  background: #fff3cd;
  color: #a67c00;
  border: none;
  font-size: 1.7rem;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s;
}
.cart-sidebar-close:hover {
  background: #ffe082;
  color: #b71c1c;
}
.cart-sidebar-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px 0 28px;
  background: #fff8e1;
  border-left: 6px solid #ffd700;
  border-radius: 0 0 0 0;
}
.cart-sidebar-progress-msg {
  color: #ff9800;
  font-weight: 600;
  font-size: 1.08rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cart-sidebar-progress-bar {
  width: 100%;
  height: 6px;
  background: #ffe082;
  border-radius: 4px;
  margin-top: 6px;
  overflow: hidden;
}
.cart-sidebar-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700 60%, #ff9800 100%);
  border-radius: 4px;
  width: 100%;
}
.cart-sidebar-content {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: calc(100vh - 70px);
  padding: 0 0 120px 0;
}
.cart-item-sidebar {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: #fff8e1;
  border-radius: 12px;
  box-shadow: 0 2px 8px #ffe08233;
  padding: 18px 28px 12px 28px;
  margin: 0 0 12px 0;
  position: relative;
  border: 1.5px solid #ffe082;
  transition: box-shadow 0.18s, border-color 0.18s;
}
.cart-item-sidebar:hover {
  box-shadow: 0 6px 24px #ffe08255;
  border-color: #ffd700;
}
.cart-item-img-sidebar {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: #fff;
  border: 1.5px solid #ffe082;
  box-shadow: 0 2px 8px #ffe08244;
}
.cart-item-details-sidebar {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cart-item-title-sidebar {
  font-weight: 700;
  font-size: 1.08rem;
  color: #5a4327;
  margin-bottom: 2px;
}
.cart-item-meta-sidebar {
  font-size: 0.98rem;
  color: #a67c00;
  margin-bottom: 2px;
}
.cart-item-qty-controls {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  width: 110px;
  margin: 8px 0 0 0;
  background: #fff;
}
.cart-qty-btn {
  background: none;
  border: none;
  color: #222e1f;
  font-size: 1.18rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.18s;
}
.cart-qty-btn:hover {
  background: #ffe082;
}
.cart-qty-value {
  width: 36px;
  text-align: center;
  font-size: 1.08rem;
  font-weight: 600;
  color: #222e1f;
  background: #fff;
  border: none;
}
.cart-item-price-sidebar {
  font-weight: 700;
  color: #795548;
  font-size: 1.13rem;
  margin-left: 0;
  margin-top: 8px;
}
.cart-item-remove-sidebar {
  background: none;
  border: none;
  color: #b71c1c;
  font-size: 1.3rem;
  font-weight: bold;
  cursor: pointer;
  margin-left: 8px;
  transition: background 0.18s, color 0.18s;
  position: absolute;
  right: 18px;
  top: 18px;
  line-height: 1;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-remove-sidebar:hover {
  background: #ffd7d7;
  color: #d32f2f;
}
.cart-sidebar-divider {
  border-top: 2px solid #ffe082;
  margin: 18px 0 12px 0;
}
.cart-sidebar-subtotal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1.18rem;
  font-weight: 800;
  color: #5a4327;
  padding: 0 28px;
  margin-top: 18px;
  margin-bottom: 8px;
  border-top: 2px solid #ffe082;
}
.cart-sidebar-note {
  color: #a67c00;
  background: #fffde7;
  color: #888;
  font-size: 1.01rem;
  padding: 0 28px;
  margin-bottom: 8px;
}
.checkout-btn {
  background: #5a4327;
  color: #fff;
  font-size: 1.13rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  padding: 16px 0;
  margin: 18px 28px 8px 28px;
  cursor: pointer;
  box-shadow: 0 2px 8px #ffe08244;
  transition: background 0.2s, box-shadow 0.2s;
  width: calc(100% - 56px);
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.checkout-btn:hover {
  background: #a67c00;
  color: #fff;
}
.view-cart-link {
  color: #ffffff;
  font-size: 1.01rem;
  text-align: center;
  text-decoration: none;
  margin: 0 28px 18px 28px;
  display: block;
  border: 1.5px solid #5a4327;
  border-radius: 10px;
  padding: 12px 0;
  font-weight: 600;
  background: #5a4327;
  transition: background 0.18s, color 0.18s;
  letter-spacing: 0.5px;
}
.view-cart-link:hover {
  background: #5a4327;
  color: #fff;
}
.cart-sidebar-secure {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #388e3c;
  font-size: 1.01rem;
  font-weight: 500;
  padding: 0 28px 18px 28px;
}
.cart-sidebar-secure svg {
  color: #388e3c;
  font-size: 1.2rem;
}
@media (max-width: 700px) {
  .cart-sidebar {
    width: 70vw;
    max-width: 98vw;
    min-width: 0;
    right: 0;
    left: auto;
    border-radius: 0;
    padding: 0;
  }
  .cart-sidebar-header {
    border-radius: 0;
    padding: 18px 12px 10px 12px;
  }
  .cart-sidebar-content {
    max-height: calc(100vh - 62px);
    padding-bottom: 120px;
  }
  .cart-item-sidebar {
    padding: 12px 12px 8px 12px;
    gap: 10px;
    border-radius: 8px;
  }
  .cart-item-img-sidebar {
    width: 48px;
    height: 48px;
    border-radius: 8px;
  }
  .cart-sidebar-subtotal-row, .cart-sidebar-note, .checkout-btn, .view-cart-link, .cart-sidebar-secure {
    padding-left: 12px;
    padding-right: 12px;
  }
  .checkout-btn, .view-cart-link {
    width: calc(100% - 24px);
  }
}

.site-footer {
  background: #222e1f;
  color: #fff;
  padding: 48px 0 0 0;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  margin: 12px auto 12px auto;
  border-radius: 16px;

}
.footer-container {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.footer-about {
  flex: 1 1 260px;
  min-width: 220px;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.footer-logo {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  margin-bottom: 8px;
}
.footer-about h3 {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0 0 6px 0;
  color: #fff;
}
.footer-about p {
  font-size: 1.01rem;
  color: #e0e0e0;
  margin: 0;
}
.footer-links {
  flex: 1 1 180px;
  min-width: 160px;
}
.footer-links h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffd700;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1.01rem;
  transition: color 0.18s;
}
.footer-links a:hover {
  color: #ffd700;
  text-decoration: underline;
}
.footer-contact {
  flex: 1 1 220px;
  min-width: 180px;
}
.footer-contact h4 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffd700;
}
.footer-contact p {
  margin: 0 0 8px 0;
  color: #e0e0e0;
  font-size: 1.01rem;
}
.footer-contact a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.18s;
}
.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #388e3c;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  transition: background 0.18s;
  color: #fff;
}
.footer-social-icon:hover {
  background: #ffd700;
  color: #222e1f;
}
.footer-social-icon svg {
  display: block;
}
.footer-bottom {
  background: #1a2217;
  color: #bdbdbd;
  text-align: center;
  padding: 18px 0 12px 0;
  font-size: 0.98rem;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .footer-container {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
    padding: 0 8vw;
  }
  .footer-about, .footer-links, .footer-contact {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .site-footer {
    padding: 32px 0 0 0;
  }
  .footer-container {
    padding: 0 4vw;
  }
  .footer-logo {
    width: 40px;
    height: 40px;
  }
}

.faq-section {
  background: #f8fff6;
  padding: 48px 0 32px 0;
  max-width: 900px;
  margin: 0 auto 36px auto;
  border-radius: 18px;
  box-shadow: 0 4px 18px rgba(44,62,80,0.07);
}
.faq-title {
  text-align: center;
  font-size: 2rem;
  color: #2e7d32;
  font-weight: bold;
  margin-bottom: 32px;
  letter-spacing: 1px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.faq-item {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.08);
  overflow: hidden;
  transition: box-shadow 0.22s;
}
.faq-item.open {
  box-shadow: 0 8px 32px rgba(44,62,80,0.13);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-size: 1.18rem;
  font-weight: 600;
  color: #388e3c;
  text-align: left;
  padding: 22px 32px 22px 22px;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  position: relative;
}
.faq-question::after {
  content: '\25BC';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%) rotate(0deg);
  font-size: 1.1rem;
  color: #388e3c;
  transition: transform 0.3s;
}
.faq-item.open .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-question:hover {
  background: #eafbe7;
  color: #2e7d32;
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  background: #f8fff6;
  color: #444;
  font-size: 1.05rem;
  padding: 0 22px;
  transition: max-height 0.5s cubic-bezier(.4,2,.6,1), padding 0.3s;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 22px 22px 22px;
}
@media (max-width: 700px) {
  .faq-section {
    padding: 8px 0 8px 0;
    border-radius: 10px;
  }
  .faq-title {
    font-size: 1.3rem;
    margin-bottom: 8px;
  }
  .faq-question {
    font-size: 1.05rem;
    padding: 14px 16px 14px 12px;
  }
  .faq-answer {
    font-size: 0.98rem;
    padding: 0 12px;
  }
}

.section-carousel {
  background: #fffef7;
  padding: 40px 0;
}
.section-title {
  background: #e8f5e9;
  padding: 40px 0;
}
.section-description {
  background: #fff8e1;
  padding: 40px 0;
}
.section-categories {
  background: linear-gradient(135deg, #ecff26 0%, #d5a945 100%);
  padding: 40px 0 32px 0;
  margin: 0 auto 40px auto;
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  align-items: center;
}
.categories-card {
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.product-categories-text {
  font-size: 2rem;
  font-weight: 800;
  color: #222e1f;
  margin-bottom: 24px;
  text-align: center;
}
.home-category-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 24px;
  padding: 0 0 12px 0;
  margin-bottom: 24px;
}
.category-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 90px;
  margin: 0;
  text-align: center;
  margin-bottom: 12px;
}
.view-all-products-btn {
  background: #5a4327;
  color: #fff;
  font-size: 1.18rem;
  font-weight: 700;
  border: none;
  border-radius: 32px;
  padding: 16px 0;
  width: 80%;
  max-width: 320px;
  margin: 0 auto;
  box-shadow: 0 4px 18px rgba(44,62,80,0.13);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  display: block;
}
.view-all-products-btn:hover {
  background: linear-gradient(90deg, #38f9d7 60%, #43e97b 100%);
  color: #222e1f;
}
.section-best-deals {
  background: #e3f2fd;
  padding: 40px 0;
}
.section-best-seller {
  background: #f5ede2;
  padding: 40px 0;
}
.section-new-arrivals {
  background: #f7f7fa;
  padding: 40px 0;
}
.section-why-choose {
  background: #e8f5e9;
  padding: 40px 0;
}
.section-branches {
  background: #fff8e1;
  padding: 40px 0;
}
.section-interviews {
  background: #f9f6f2;
  padding: 40px 0;
}
.section-faq {
  background: #e3f2fd;
  padding: 40px 0;
}
.section-footer {
  background: #222e1f !important;
  padding: 40px 0 0 0;
}

.section { padding: 48px 0; }
.section-alt-bg { background: linear-gradient(135deg, #ecff26 0%, #d5a945 100%); }
.section-bg-beige { background: #afb390; }
.section-bg-gold { background: #dfbf9c; }
.section-bg-brown { background: #dfbf9c; }
.section-bg-white { background: #b1b691; }

.section-header {
  font-size: 2rem;
  font-weight: 800;
  color: #5a4327;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center; /* Add this line to center content horizontally */
}
.section-header-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
}
.section-header-underline {
  width: 48px;
  height: 4px;
  background: #ffd700;
  border-radius: 2px;
  margin-top: 6px;
}
.card-modern {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  padding: 24px 18px;
  margin-bottom: 18px;
}
.btn-modern {
  background: #5a4327;
  color: #fff;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.13rem;
  padding: 14px 0;
  border: none;
  width: 100%;
  margin: 12px 0 0 0;
  transition: background 0.18s;
}
.btn-modern:hover {
  background: #ffd700;
  color: #5a4327;
}

.category-btn:focus, .category-btn:active, .category-btn:visited,
.category-btn a:focus, .category-btn a:active, .category-btn a:visited {
  outline: none !important;
  box-shadow: none !important;
  border-bottom: none !important;
}

.product-categories-section {
  background: linear-gradient(135deg, #A084CA 0%, #6C3483 100%);
}

.farm-title.section-title {
  padding: 18px 0 10px 0 !important;
  margin: 0 !important;
}
.farm-title h1 {
  font-size: 2rem !important;
  margin: 0.7rem 0 0.5rem 0 !important;
}

/* --- END FONT & ANIMATION ENHANCEMENTS --- */

/* --- MODERN PRELOADER ENHANCEMENT --- */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(120deg, #e0f7fa 0%, #f1f8e9 50%, #e8f5e9 100%);
  animation: preloaderBgMove 6s ease-in-out infinite alternate;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s, visibility 0.8s;
  backdrop-filter: blur(2.5px);
  will-change: opacity, background;
}
@keyframes preloaderBgMove {
  0% { background-position: 0% 50%; }
  100% { background-position: 100% 50%; }
}
.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}
.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
  animation: preloaderFadeInUp 1.2s cubic-bezier(.39,.575,.56,1.000) 0.2s both;
}
@keyframes preloaderFadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.preloader-text {
  position: relative;
  margin-top: 8px;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes preloaderTextFadeIn {
  from { opacity: 0; filter: blur(6px); }
  to { opacity: 1; filter: blur(0); }
}

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

.preloader-farm-name {
  font-family: 'Comic Neue', 'Comic Sans MS', cursive;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #2e7d32; /* Green matching theme */
  text-shadow: none;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  padding: 0 22px;
  transition: color 0.2s linear, font-size 0.2s;
}

@media (max-width: 360px) {
  .preloader-farm-name { font-size: 1.1rem; }
}

/* --- Invoice/Vertical Order Card Styles --- */
.order-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  margin-bottom: 28px;
  padding: 24px 20px 18px 20px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  border: 1.5px solid #e0e0e0;
  position: relative;
}
.order-card .order-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.order-card .order-id {
  font-weight: 700;
  color: #2e7d32;
  font-size: 1.1rem;
}
.order-card .order-date-time {
  color: #555;
  font-size: 0.98rem;
}
.order-card .order-status {
  position: absolute;
  top: 18px;
  right: 20px;
  background: #e0f7fa;
  color: #00796b;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 0.98rem;
}
.order-card .order-payment {
  margin-bottom: 8px;
  color: #333;
  font-size: 1rem;
}
.order-card .order-products {
  margin: 12px 0 8px 0;
  padding-left: 0;
}
.order-card .order-products li {
  list-style: none;
  margin-bottom: 6px;
  color: #444;
  font-size: 1.01rem;
  display: flex;
  justify-content: space-between;
}
.order-card .order-total {
  font-weight: 700;
  color: #388e3c;
  font-size: 1.13rem;
  margin-top: 10px;
  text-align: right;
}
.order-card .order-address {
  color: #888;
  font-size: 0.97rem;
  margin-top: 8px;
  margin-bottom: 0;
}
@media (max-width: 700px) {
  .order-card {
    padding: 16px 6px 12px 6px;
    max-width: 98vw;
  }
}

/* --- UI/UX POLISH: Button Animations & Consistency --- */
button, .admin-btn, .place-order-btn, .clear-cart-btn, .checkout-btn, .category-btn, .view-all-btn, .modal-btn, .add-category-btn, .action-btn {
  transition: background 0.18s, color 0.18s, box-shadow 0.18s, transform 0.12s;
  font-family: 'Comic Neue', 'Comic Sans MS', cursive !important;
  font-weight: 600;
  border-radius: 8px;
  outline: none;
  border: none;
  cursor: pointer;
}
button:active, .admin-btn:active, .place-order-btn:active, .clear-cart-btn:active, .checkout-btn:active, .category-btn:active, .view-all-btn:active, .modal-btn:active, .add-category-btn:active, .action-btn:active {
  transform: scale(0.97);
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
}
button:disabled, .admin-btn:disabled, .place-order-btn:disabled, .clear-cart-btn:disabled, .checkout-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Empty state polish */
.empty-state {
  text-align: center;
  color: #888;
  margin: 40px 0 20px 0;
  font-size: 1.15rem;
}
.empty-state-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  color: #bdbdbd;
}
.empty-state-action {
  margin-top: 18px;
  display: inline-block;
  background: linear-gradient(90deg, #2e7d32 60%, #00d963 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.12s;
}
.empty-state-action:hover {
  background: linear-gradient(90deg, #219150 60%, #00b85c 100%);
  transform: scale(1.04);
}

.stock-badge {
  display: inline-block;
  background: linear-gradient(90deg, #ff9800 60%, #ffd54f 100%);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 8px;
  margin-left: 8px;
  margin-top: 4px;
  box-shadow: 0 2px 8px rgba(44,62,80,0.10);
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.section-card {
  border-radius: 18px;
  box-shadow: 0 2px 12px rgba(44,62,80,0.10);
  margin: 32px 0;
  transition: box-shadow 0.22s, transform 0.22s;
  padding: 32px 0 32px 0;
  position: relative;
}
.section-card:hover,
.section-card:focus-within {
  box-shadow: 0 8px 32px rgba(44,62,80,0.18);
  transform: translateY(-4px) scale(1.025);
  z-index: 2;
}
.section-header-center {
  text-align: center !important;
  margin-left: auto;
  margin-right: auto;
  width: 100%; /* Ensure it takes full width for centering */
  justify-content: center !important; /* Ensure flex centering if inherited */
}

.otp-btn, .auth-container button[type="submit"], .login-btn {
  background: #5a4327 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(44, 62, 80, 0.13);
  transition: background 0.2s, transform 0.2s;
}
.otp-btn:hover, .auth-container button[type="submit"]:hover, .login-btn:hover {
  color: #fff !important;
  transform: translateY(-2px) scale(1.03);
}
