/* Index Page Styles */

/* Complete CSS reset to prevent any unwanted content above header */
html::before,
html::after,
body::before,
body::after,
*::before,
*::after {
  content: none !important;
  display: none !important;
}

/* Force clean body start */
body {
  position: relative;
  overflow-x: hidden;
}

/* Ensure no floating or absolute positioned elements appear above header */
body > *:first-child:not(header) {
  display: none !important;
}

/* Reset any potential margin/padding on body and html */
html, body {
  margin: 0 !important;
  padding: 0 !important;
}

/* Force header to top */
header {
  position: relative;
  z-index: 1000;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Header Styles */
header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo h1 {
  color: #27ae60;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0;
}

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #27ae60;
}

.cart-link {
  background: #27ae60;
  color: white !important;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
}

.cart-link:hover {
  background: #229954;
  transform: translateY(-1px);
}

.cart-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

#cartCount {
  font-weight: 600;
  background: #fff;
  color: #27ae60;
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  line-height: 1;
}

@media (max-width: 768px) {
  nav {
    padding: 1rem 3%;
  }
  
  .logo h1 {
    font-size: 1.5rem;
  }
  
  .nav-links {
    gap: 1rem;
  }
  
  .nav-links a {
    font-size: 0.9rem;
  }
  
  .cart-link {
    padding: 0.4rem 0.8rem;
    gap: 0.3rem;
  }
  
  .cart-icon {
    width: 18px;
    height: 18px;
  }
  
  #cartCount {
    min-width: 18px;
    height: 18px;
    font-size: 0.7rem;
  }
}

/* Hero Section Styles */
.hero {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 50%, #27ae60 100%);
  color: white;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  z-index: 1;
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
  position: relative;
  z-index: 2;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(45deg, #fff, #e8f5e8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 3rem;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 140px;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.hero-cta {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: #fff;
  color: #27ae60;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
  background: #fff;
  color: #27ae60;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Hero Mobile Responsiveness */
@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }
  
  .hero-container {
    padding: 0 3%;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }
  
  .hero-stats {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .stat {
    padding: 1rem 1.5rem;
    min-width: 120px;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .hero-cta {
    gap: 1rem;
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .hero-stats {
    gap: 1rem;
  }
  
  .stat {
    padding: 0.75rem 1rem;
    min-width: 100px;
  }
  
  .stat-number {
    font-size: 1.5rem;
  }
}

html {
  scroll-behavior: unset !important;
}
html,
body {
  max-width: 100vw;
  overflow-x: hidden;
  scroll-behavior: unset !important;
}
@media (max-width: 600px) {
  .nav-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    gap: 0;
  }
  .nav-logo {
    width: 38px;
    height: 38px;
    margin-right: 0.3rem;
    vertical-align: middle;
  }
  .nav-cart {
    margin: 0;
    padding: 0.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
  }
  .nav-search-group,
  .search-wrapper,
  .search-input,
  .search-icon-wrapper {
    display: none !important;
  }
}
.navbar {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.05);
  padding: 0.7rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.2rem;
  width: 100%;
  gap: 1.2rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Outfit", "Poppins", Arial, sans-serif;
  font-weight: 700;
  font-size: 1.18rem;
  color: #27ae60;
}
.nav-logo {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}
.nav-search-group {
  flex: 1 1 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  max-width: 400px;
}
.search-wrapper {
  width: 100%;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.05);
}
.search-wrapper:hover {
  background: #f0f4f0;
}
.search-wrapper:focus-within {
  background: white;
  border: 2px solid #27ae60;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.1);
}
.search-wrapper:focus-within .search-icon {
  opacity: 1;
  transform: scale(1.05);
}
.search-input:focus {
  outline: none;
  width: 320px;
}
.search-input::placeholder {
  color: #9ca3af;
}
.nav-cart {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.3rem;
  color: #27ae60;
  font-weight: 600;
  cursor: pointer;
  margin-left: 1.2rem;
}
@media (max-width: 900px) {
  .nav-header {
    max-width: 100vw;
    padding: 0 0.5rem;
  }
  .nav-search-group {
    max-width: 250px;
  }
}
@media (max-width: 768px) {
  .nav-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.7rem;
  }
  .nav-search-group {
    max-width: 100%;
    margin: 0.5rem 0 0.2rem 0;
  }
  .search-input {
    width: 200px;
  }
  .search-input:focus {
    width: 240px;
  }
  .nav-cart {
    margin-left: 0;
    align-self: flex-end;
  }
}
@media (max-width: 600px) {
  .nav-header {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .nav-search-group {
    max-width: 100%;
  }
  .search-input {
    width: 140px;
  }
  .search-input:focus {
    width: 180px;
  }
}
.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 0.5rem 0;
  width: 100%;
}
.product {
  background: #fff;
  border: 1.5px solid #e0e7ef;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(39, 174, 96, 0.07);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.2rem 1rem 1.3rem 1rem;
  transition: box-shadow 0.18s, border 0.18s;
  min-width: 0;
}
.product:hover {
  border: 1.5px solid #27ae60;
  box-shadow: 0 4px 16px rgba(39, 174, 96, 0.13);
}
.product-img-wrap {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  background: linear-gradient(135deg, #f8faf5 0%, #e8f5e8 100%);
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid #e1e8e3;
  transition: all 0.3s ease;
}
.product:hover .product-img-wrap {
  border-color: #27ae60;
  background: linear-gradient(135deg, #e8f5e8 0%, #d4f4dd 100%);
  transform: scale(1.02);
}
.product-img {
  width: 90%;
  height: 90%;
  object-fit: cover;
  border-radius: 12px;
  transition: transform 0.1s ease;
}
.product:hover .product-img {
  transform: scale(1.02);
}
.product-info {
  width: 100%;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-info h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0.3rem 0 0.5rem 0;
  color: #222;
  line-height: 1.3;
  min-height: 2.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-info p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 0.8rem;
  min-height: 60px;
  line-height: 1.4;
  flex-grow: 1;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 0 0.5rem;
}
.price-row {
  margin-bottom: 0.7rem;
}
.price {
  font-size: 1.08rem;
  font-weight: 700;
  color: #27ae60;
}
.cart-btn {
  background: #27ae60;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s;
  margin-top: 0.2rem;
}
.cart-btn:hover {
  background: #219150;
}
/* Product link styles */
.featured-product-link, .product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: none;
}
.featured-product-link:hover, .product-link:hover {
  transform: none;
}
.featured-product-link:hover .featured-product, 
.product-link:hover .product {
  border: 1.5px solid #27ae60;
}
@media (max-width: 900px) {
  .product-list {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
  .product-img-wrap {
    width: 120px;
    height: 120px;
  }
}
@media (max-width: 600px) {
  .product-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
  }
  .product {
    padding: 0.8rem 0.6rem;
  }
  .product-img-wrap {
    width: 100px;
    height: 100px;
  }
  .product-info h3 {
    font-size: 0.95rem;
    min-height: 2.4rem;
  }
  .product-info p {
    font-size: 0.85rem;
    min-height: 50px;
    padding: 0 0.3rem;
  }
  .price {
    font-size: 0.95rem;
  }
  .cart-btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(39, 174, 96, 0.3);
    cursor: pointer;
  }
  .cart-btn:active {
    transform: scale(0.95);
    background: #1e8449;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.5rem 0 0.5rem 0;
}

/* Cart Popup Styles */
.cart-popup {
  display: none;
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #27ae60;
  color: #fff;
  padding: 0.7rem 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(39, 174, 96, 0.18);
  font-size: 1rem;
  z-index: 99999;
  transition: opacity 0.3s;
}

/* Footer Styles */
footer {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 2rem 0 1rem 0;
  margin-top: 3rem;
}

.footer-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: #27ae60;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-section p,
.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  margin-bottom: 0.5rem;
  display: block;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid #34495e;
  margin-top: 2rem;
  padding-top: 1rem;
  text-align: center;
  color: #95a5a6;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
