/* ========== CSS VARIABLES ========== */
:root {
  --bg-primary: #f5f7f0;
  --text-primary: #2d3e2b;
  --text-secondary: #5a6e55;
  --accent: #4c9a2a;
  --accent-dark: #3d7a22;
  --accent-light: #7dc247;
  --glass-bg: rgba(255, 255, 255, 0.3);
  --glass-border: rgba(255, 255, 255, 0.5);
  --card-bg: rgba(255, 255, 255, 0.85);
  --neumo-shadow: 6px 6px 12px rgba(0,0,0,0.05), -6px -6px 12px rgba(255,255,255,0.8);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ========== GLASS HEADER ========== */
.glass-header {
  position: sticky;
  top: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 100;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--text-primary);
}

.logo-img {
  height: 40px;
  width: auto;
}

.logo span {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Navigation */
.desktop-nav .nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.desktop-nav .nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
}

.desktop-nav .nav-links a:hover,
.desktop-nav .nav-links a.active {
  color: var(--accent);
}

/* Header Icons */
.header-icons {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--text-primary);
  position: relative;
  transition: var(--transition);
}

.icon-btn:hover {
  color: var(--accent);
}

.badge {
  position: absolute;
  top: -8px;
  right: -12px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 20px;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: 0.3s;
  border-radius: 3px;
}

/* Mobile Navigation Sidebar */
.mobile-nav {
  position: fixed;
  top: 0;
  left: -100%;
  width: 80%;
  height: 100vh;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  z-index: 200;
  transition: left 0.3s ease;
  padding: 5rem 2rem 2rem;
}

.mobile-nav.open {
  left: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-nav-links a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.2rem;
  font-weight: 500;
}

/* Search Overlay */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
  display: flex;
  justify-content: center;
  align-items: center;
}

.search-overlay.active {
  visibility: visible;
  opacity: 1;
}

.search-container {
  width: 80%;
  max-width: 600px;
  background: var(--card-bg);
  border-radius: 32px;
  padding: 2rem;
  position: relative;
}

#searchInput {
  width: 100%;
  padding: 1rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 60px;
  background: var(--bg-primary);
  color: var(--text-primary);
}

#closeSearch {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.search-results {
  margin-top: 1rem;
  max-height: 300px;
  overflow-y: auto;
}

/* ========== HERO CAROUSEL ========== */
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 0 0 32px 32px;
}

.hero-carousel {
  position: relative;
  height: 500px;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

/* Remove conflicting nth-child background rules – inline styles already work */
.hero-content {
  position: absolute;
  bottom: 20%;
  left: 10%;
  max-width: 500px;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  padding: 2rem;
  border-radius: 28px;
  border: 1px solid var(--glass-border);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--glass-bg);
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.8rem;
  border-radius: 50%;
  backdrop-filter: blur(4px);
  z-index: 10;
}

.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  opacity: 0.5;
}

.dot.active {
  opacity: 1;
  background: var(--accent);
}

/* ========== TRUST BADGES ========== */
.trust-badges {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  padding: 2rem;
  gap: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  margin: 2rem;
  border-radius: 60px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.trust-item i {
  font-size: 1.3rem;
  color: var(--accent);
}

/* ========== BUTTON STYLES (Neumorphism + Ripple) ========== */
.btn-neumo {
  background: var(--accent);
  border: none;
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: bold;
  color: white;
  cursor: pointer;
  box-shadow: var(--neumo-shadow);
  transition: var(--transition);
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-neumo:hover {
  transform: scale(1.02);
  background: var(--accent-dark);
  box-shadow: 0 0 12px var(--accent);
}

.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: rippleAnim 0.6s linear;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ========== SCROLL ANIMATIONS ========== */
.scroll-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1), transform 0.8s ease;
}

.scroll-animate.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ========== PRODUCT SECTIONS ========== */
.product-section {
  padding: 2rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.view-all {
  color: var(--accent);
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.product-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  border-radius: 20px;
  aspect-ratio: 1;
  object-fit: cover;
}

.product-card h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.1rem;
}

.product-price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.2rem;
}

.product-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1rem;
}

.add-to-cart, .wishlist-btn {
  padding: 8px 16px;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.add-to-cart {
  background: var(--accent);
  color: white;
  flex: 2;
}

.add-to-cart:hover {
  background: var(--accent-dark);
}

.wishlist-btn {
  background: var(--glass-bg);
  color: var(--text-primary);
  font-size: 1.2rem;
  padding: 8px 12px;
}

.wishlist-btn.active {
  color: #ff4757;
}

/* Product tags */
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.5rem 0;
}
.product-tag {
  background: rgba(76, 154, 42, 0.2);
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  color: var(--accent);
}

/* ========== OFFER BANNER ========== */
.offer-banner {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  margin: 2rem;
  border-radius: 32px;
  padding: 3rem;
  text-align: center;
  color: white;
}

.offer-banner h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.offer-banner .btn-neumo {
  background: white;
  color: var(--accent);
  margin-top: 1rem;
}

/* ========== CARE TIPS ========== */
.care-tips {
  padding: 2rem;
  text-align: center;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.tip-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
}

.tip-card img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 1rem;
}

/* ========== REVIEWS ========== */
.reviews {
  padding: 2rem;
  text-align: center;
}

.reviews-slider {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.review-card {
  background: var(--card-bg);
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
}

.stars {
  color: #ffc107;
  margin-bottom: 1rem;
}

/* ========== NEWSLETTER & MODAL ========== */
.newsletter {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  margin: 2rem;
  border-radius: 32px;
  padding: 3rem;
  text-align: center;
}

.newsletter .btn-neumo {
  background: var(--accent);
  color: white;
  margin-top: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  justify-content: center;
  align-items: center;
}
.modal-content {
  max-width: 450px;
  width: 90%;
  padding: 2rem;
  text-align: center;
  position: relative;
  animation: modalFadeIn 0.3s ease;
}
@keyframes modalFadeIn {
  from { transform: translateY(-30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-primary);
}
.modal-content input {
  width: 100%;
  padding: 12px;
  margin: 0.8rem 0;
  border-radius: 60px;
  border: 1px solid var(--glass-border);
  background: var(--bg-primary);
}

/* ========== CART SIDEBAR ========== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 400px;
  height: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--glass-border);
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 1rem;
}

.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(3px);
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
  z-index: 999;
}

.cart-overlay.active {
  visibility: visible;
  opacity: 1;
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  margin: 1rem 0;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

.cart-item-info {
  flex: 2;
}

.cart-item-controls button {
  background: var(--accent);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 20px;
  margin: 0 3px;
  cursor: pointer;
  color: white;
}

.cart-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.cart-total, .cart-shipping, .cart-grandtotal {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.free-gift-note {
  background: var(--accent-light);
  color: white;
  padding: 0.5rem;
  border-radius: 20px;
  text-align: center;
  margin: 0.5rem 0;
}

/* ========== CHECKOUT PAGE ========== */
.checkout-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem;
}

.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  margin-bottom: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.payment-options {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

/* ========== FOOTER ========== */
.glass-footer {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--glass-border);
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  padding: 2rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-secondary);
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-bottom {
  text-align: center;
  padding: 1rem;
  border-top: 1px solid var(--glass-border);
}

/* ========== TOAST NOTIFICATION ========== */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: white;
  padding: 12px 24px;
  border-radius: 60px;
  visibility: hidden;
  opacity: 0;
  transition: 0.2s;
  z-index: 2000;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

/* ========== TICKER / ANNOUNCEMENT BAR ========== */
.ticker {
  background: var(--accent);
  color: white;
  overflow: hidden;
  white-space: nowrap;
  padding: 8px 0;
  font-size: 0.9rem;
}
.ticker-content {
  display: inline-block;
  animation: tickerScroll 20s linear infinite;
}
.ticker-content span {
  margin-right: 2rem;
}
.ticker-content span:before {
  content: "🌱";
  margin-right: 6px;
}
@keyframes tickerScroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ========== FILTER TABS ========== */
.filter-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 1.5rem 2rem;
}
.filter-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(4px);
  border: 1px solid var(--glass-border);
  padding: 8px 20px;
  border-radius: 40px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
  color: var(--text-primary);
}
.filter-btn.active, .filter-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .hero-content h1 {
    font-size: 1.5rem;
  }
  .hero-carousel {
    height: 400px;
  }
  .checkout-container {
    grid-template-columns: 1fr;
  }
  .cart-sidebar {
    width: 100%;
    right: -100%;
  }
  .trust-badges {
    flex-wrap: wrap;
  }
  .ticker {
    font-size: 0.7rem;
  }
  .ticker-content {
    animation-duration: 15s;
  }
}
/* ========== CHECKOUT PAGE ADDITIONS ========== */
.checkout-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.checkout-main h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text-primary);
}

.checkout-form, .order-summary {
  padding: 1.8rem;
  border-radius: 28px;
}

.checkout-form h2, .order-summary h2 {
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  border-left: 4px solid var(--accent);
  padding-left: 1rem;
}

.order-summary {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
}

#checkoutItems {
  margin: 1rem 0;
  max-height: 300px;
  overflow-y: auto;
}

.checkout-item {
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--glass-border);
  font-size: 0.95rem;
}

.summary-totals {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--glass-border);
}

.summary-totals p {
  display: flex;
  justify-content: space-between;
  margin: 0.6rem 0;
}

.summary-totals strong {
  font-size: 1.1rem;
  color: var(--accent);
}

/* Make form inputs consistent with glass theme */
.checkout-form input,
.checkout-form select,
.checkout-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: 60px;
  border: 1px solid var(--glass-border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: inherit;
  margin-bottom: 0;
}

.checkout-form textarea {
  border-radius: 24px;
  resize: vertical;
}

.checkout-form .form-row {
  margin-bottom: 1rem;
}

.payment-options {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 1rem 0 1.5rem;
}

.payment-options label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
  .checkout-main {
    padding: 1rem;
  }
  .checkout-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .payment-options {
    flex-direction: column;
    gap: 0.8rem;
  }
}
/* ========== WISHLIST PAGE STYLES ========== */
.wishlist-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  border: 1px solid var(--glass-border);
}

.wishlist-container h1 {
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: var(--text-primary);
}

.wishlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.8rem;
}

.empty-wishlist {
  text-align: center;
  grid-column: 1 / -1;
  padding: 3rem;
  font-size: 1.2rem;
  color: var(--text-secondary);
}

.empty-wishlist a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.empty-wishlist a:hover {
  text-decoration: underline;
}

/* Ensure wishlist product cards match the main site */
.wishlist-grid .product-card {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: 28px;
  padding: 1.2rem;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.wishlist-grid .product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 30px -10px rgba(0,0,0,0.15);
}