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

body {
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.navbar {
  background: #2d6a4f;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(45, 106, 79, 0.3);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav-left, .nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
  position: relative;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.logo {
  height: 45px;
  width: 45px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.3);
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.1) rotate(5deg);
}

.shop-section {
  max-width: 1400px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.shop-section h2 {
  text-align: center;
  color: #16a34a;
  font-size: 2.5rem;
  margin-bottom: 30px;
  position: relative;
}

.shop-section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  border-radius: 2px;
}

.search-container {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.search-input {
  padding: 12px 20px;
  border: 2px solid #2d6a4f;
  border-radius: 25px;
  width: 300px;
  font-size: 16px;
}

.search-btn {
  background: #2d6a4f;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 25px;
  margin-left: 10px;
  cursor: pointer;
}

.category {
  margin-bottom: 50px;
}

.category-title {
  color: #16a34a;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border-bottom: 2px solid #16a34a;
  padding-bottom: 10px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.product {
  background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 35px;
  padding: 25px;
  text-align: center;
  box-shadow: 
    0 25px 60px rgba(0, 0, 0, 0.2),
    0 0 0 2px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.3),
    0 0 40px rgba(255,255,255,0.05);
  cursor: pointer;
  transition: all 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border: 1px solid rgba(255, 255, 255, 0.25);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
min-height: 260px;
}

.product::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
  background-size: 200px 200px, 150px 150px, 100px 100px;
  background-position: 0% 0%, 100% 100%, 50% 50%;
  animation: backgroundFloat 20s ease-in-out infinite;
  border-radius: 35px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.product:hover::before {
  opacity: 1;
}

.product:hover {
  transform: translateY(-20px) scale(1.05);
  box-shadow: 
    0 40px 100px rgba(0, 0, 0, 0.3),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.4),
    0 0 60px rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.3);
}

.product-image {
  width: 100%;
  height: 110px;
  object-fit: contain;
  border-radius: 25px;
  margin-bottom: 15px;
  transition: all 0.5s ease;
  box-shadow: 
    0 15px 40px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.2);
}

.product:hover .product-image {
  transform: scale(1.08) rotate(2deg);
  box-shadow: 
    0 20px 50px rgba(0,0,0,0.3),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

.product h4 {
  color: #1f2937;
  margin-bottom: 12px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.3;
  text-shadow: none;
  letter-spacing: 0.3px;
}

.price {
  color: white !important;
  font-weight: 900;
  font-size: 1.1rem;
  margin-top: auto;
  padding: 12px 20px;
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%) !important;
  border-radius: 35px;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
  box-shadow: 
    0 8px 25px rgba(255,107,107,0.4),
    0 0 0 2px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

/* Product Card Quantity Controls */
.product-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.product-btn, .qty-btn, .add-to-cart-toggle {
  background: linear-gradient(135deg, var(--brand-600) 0%, #22c55e 50%, var(--brand-500) 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 20px rgba(45,106,79,0.4), 0 0 0 1px rgba(255,255,255,0.2), inset 0 1px 0 rgba(255,255,255,0.3);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.add-to-cart-toggle {
  font-size: 0.8rem;
  padding: 10px 16px;
  border-radius: 25px;
  width: auto;
  margin-top: 8px;
}

.add-to-cart-toggle::before {
  content: "🛒";
  margin-right: 4px;
}

.qty-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
  flex-shrink: 0;
}

.quantity-controls-inline {
  gap: 8px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(20px);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.qty-display {
  font-size: 0.9rem;
  font-weight: 700;
  min-width: 32px;
  background: white;
  border-radius: 12px;
  padding: 4px 8px;
  border: 1px solid rgba(45,106,79,0.2);
}

.product-btn::before, .qty-btn::before, .add-to-cart-toggle::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  transition: left 0.6s ease;
  border-radius: inherit;
}

.product-btn:hover::before, .qty-btn:hover::before, .add-to-cart-toggle:hover::before {
  left: 100%;
}

.product-btn:hover, .qty-btn:hover, .add-to-cart-toggle:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 30px rgba(45,106,79,0.6), 0 0 0 1px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
  animation: buttonPulse 0.6s ease-out;
}

@keyframes buttonPulse {
  0% { box-shadow: 0 6px 20px rgba(45,106,79,0.4), 0 0 20px rgba(34,197,94,0.3); }
  50% { box-shadow: 0 0 0 10px rgba(34,197,94,0.15), 0 12px 40px rgba(45,106,79,0.7), 0 0 30px rgba(34,197,94,0.5); }
  100% { box-shadow: 0 10px 30px rgba(45,106,79,0.6), 0 0 0 1px rgba(255,255,255,0.3), inset 0 1px 0 rgba(255,255,255,0.4); }
}

.product.has-quantity .add-to-cart-toggle {
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
}

.product-quantity {
  min-width: 45px;
  text-align: center;
  font-weight: 900;
  color: #2c3e50;
  font-size: 1.2rem;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  box-shadow: 
    0 4px 15px rgba(0,0,0,0.1),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

/* Product Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000 !important;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.85), rgba(0,0,0,0.7));
  -webkit-backdrop-filter: blur(25px);
  backdrop-filter: blur(25px);
  animation: fadeIn 0.5s ease;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.show {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: linear-gradient(145deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.05) 100%);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-radius: 35px;
  max-width: 500px;
  width: 100%;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow:
    0 50px 150px rgba(0, 0, 0, 0.6),
    0 0 0 2px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.3),
    0 0 60px rgba(255,255,255,0.05);
  transform: scale(0.7) translateY(60px) rotateX(10deg);
  animation: modalSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards, modalGlowPulse 3s ease-in-out infinite 1s;
  position: relative;
  margin: auto;
  border: 1px solid rgba(255,255,255,0.25);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  perspective: 1000px;
}

.modal-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 226, 0.1) 0%, transparent 50%);
  background-size: 200px 200px, 150px 150px, 100px 100px;
  background-position: 0% 0%, 100% 100%, 50% 50%;
  animation: backgroundFloat 20s ease-in-out infinite;
  border-radius: 35px;
  pointer-events: none;
}

.modal-content:hover {
  box-shadow:
    0 60px 180px rgba(0, 0, 0, 0.7),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.35),
    0 0 80px rgba(255,255,255,0.08);
  transform: scale(1.02) translateY(-5px) rotateX(0deg);
  animation-play-state: paused;
}

.modal-content:hover::before {
  animation-duration: 10s;
}

.close {
  position: absolute;
  top: 20px;
  right: 25px;
  background: linear-gradient(135deg, #ff6b6b, #ee5a52);
  border: none;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255,107,107,0.4);
}

.close:hover {
  background: linear-gradient(135deg, #ee5a52, #ff6b6b);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 8px 25px rgba(255,107,107,0.6);
}

.modal-body {
  padding: 50px 35px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  position: relative;
}

.modal-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 25px;
  flex-shrink: 0;
  box-shadow:
    0 15px 40px rgba(0,0,0,0.3),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
  overflow: hidden;
}

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

.modal-image:hover::before {
  left: 100%;
}

.modal-image:hover {
  transform: scale(1.08) rotate(2deg);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.4),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

.modal-info {
  width: 100%;
  text-align: center;
}

.modal-info h3 {
  color: #ffffff;
  font-size: 2rem;
  margin-bottom: 18px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.5px;
}

.modal-info p {
  color: rgba(255,255,255,0.9);
  margin-bottom: 25px;
  line-height: 1.7;
  font-size: 1.15rem;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.modal-price {
  color: white;
  font-size: 1.6rem;
  font-weight: 900;
  margin-bottom: 30px;
  padding: 15px 30px;
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
  border-radius: 35px;
  display: inline-block;
  text-shadow: 0 3px 8px rgba(0,0,0,0.4);
  box-shadow:
    0 8px 25px rgba(255,107,107,0.4),
    0 0 0 2px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.5px;
}

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

.modal-price:hover::before {
  left: 100%;
}

.quantity-selector {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
}

.quantity-selector label {
  font-weight: 700;
  color: #16a34a;
  font-size: 1.2rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 25px;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 18px 30px;
  border-radius: 50px;
  box-shadow:
    0 8px 30px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.15);
  transition: all 0.3s ease;
}

.quantity-controls:hover {
  box-shadow:
    0 12px 40px rgba(0,0,0,0.3),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.3);
  transform: translateY(-2px);
}

.quantity-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  font-weight: bold;
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow:
    0 6px 20px rgba(102,126,234,0.4),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

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

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

.quantity-btn:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow:
    0 8px 25px rgba(102,126,234,0.5),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

.quantity-selector input {
  width: 90px;
  padding: 15px;
  border: none;
  border-radius: 20px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: bold;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #2c3e50;
  box-shadow:
    0 4px 15px rgba(0,0,0,0.1),
    inset 0 2px 0 rgba(255,255,255,0.3);
  border: 1px solid rgba(255,255,255,0.2);
  transition: all 0.3s ease;
}

.quantity-selector input:focus {
  outline: none;
  box-shadow:
    0 6px 20px rgba(0,0,0,0.15),
    0 0 0 2px rgba(102,126,234,0.3),
    inset 0 2px 0 rgba(255,255,255,0.4);
  transform: scale(1.05);
}

.modal-buttons {
  display: flex;
  gap: 20px;
  width: 100%;
  justify-content: center;
  margin-top: 35px;
  position: relative;
}

.add-to-cart-btn, .buy-now-btn {
  flex: 1;
  padding: 20px 35px;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  border: none;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 8px 25px rgba(0,0,0,0.2),
    0 0 0 1px rgba(255,255,255,0.1),
    inset 0 2px 0 rgba(255,255,255,0.2);
}

.add-to-cart-btn {
  background: linear-gradient(135deg, #00b894 0%, #00cec9 50%, #55efc4 100%);
  color: white;
}

.add-to-cart-btn:hover {
  background: linear-gradient(135deg, #00cec9 0%, #55efc4 50%, #00b894 100%);
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(0,184,148,0.5),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

.buy-now-btn {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 50%, #ff7675 100%);
  color: white;
}

.buy-now-btn:hover {
  background: linear-gradient(135deg, #ee5a52 0%, #ff7675 50%, #ff6b6b 100%);
  transform: translateY(-5px) scale(1.02);
  box-shadow:
    0 15px 40px rgba(255,107,107,0.5),
    0 0 0 2px rgba(255,255,255,0.15),
    inset 0 2px 0 rgba(255,255,255,0.3);
}

.add-to-cart-btn::before, .buy-now-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;
}

.add-to-cart-btn:hover::before, .buy-now-btn:hover::before {
  left: 100%;
}

.product-modal-body .product-image {
  width: 180px;
  height: 180px;
  object-fit: contain;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-modal-body p {
  margin-bottom: 15px;
  color: #495057;
  line-height: 1.6;
}

#modal-product-price {
  font-size: 1.4rem;
  font-weight: bold;
  color: #16a34a;
  margin-bottom: 10px;
}

#modal-stock-info {
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f8f9fa;
  display: inline-block;
  margin-bottom: 20px;
}

.quantity-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.quantity-controls button {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 106, 79, 0.3);
}

.quantity-controls button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.4);
}

#modal-quantity {
  width: 70px;
  text-align: center;
  padding: 12px;
  border: 2px solid #2d6a4f;
  border-radius: 10px;
  font-size: 18px;
  font-weight: bold;
  background: #f8f9fa;
}

.add-to-cart-modal {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 6px 20px rgba(45, 106, 79, 0.3);
  width: 100%;
}

.add-to-cart-modal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 106, 79, 0.4);
}

.add-to-cart-modal:disabled {
  background: #6c757d;
  cursor: not-allowed;
  transform: none;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalSlideIn {
  from {
    transform: scale(0.7) translateY(60px) rotateX(10deg);
    opacity: 0;
    filter: blur(10px);
  }
  50% {
    transform: scale(1.05) translateY(-10px) rotateX(-2deg);
    opacity: 0.8;
    filter: blur(2px);
  }
  to {
    transform: scale(1) translateY(0) rotateX(0deg);
    opacity: 1;
    filter: blur(0px);
  }
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 40px 100px rgba(0, 0, 0, 0.5),
      0 0 0 1px rgba(255,255,255,0.1),
      inset 0 1px 0 rgba(255,255,255,0.2);
  }
  50% {
    box-shadow:
      0 50px 120px rgba(0, 0, 0, 0.6),
      0 0 0 1px rgba(255,255,255,0.15),
      inset 0 1px 0 rgba(255,255,255,0.25),
      0 0 20px rgba(255,255,255,0.1);
  }
}

@keyframes modalGlowPulse {
  0%, 100% {
    box-shadow:
      0 50px 150px rgba(0, 0, 0, 0.6),
      0 0 0 2px rgba(255,255,255,0.1),
      inset 0 2px 0 rgba(255,255,255,0.3),
      0 0 60px rgba(255,255,255,0.05);
  }
  50% {
    box-shadow:
      0 60px 180px rgba(0, 0, 0, 0.7),
      0 0 0 2px rgba(255,255,255,0.15),
      inset 0 2px 0 rgba(255,255,255,0.35),
      0 0 80px rgba(255,255,255,0.08);
  }
}

@keyframes backgroundFloat {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  25% {
    background-position: 10% 10%, 90% 90%, 60% 40%;
  }
  50% {
    background-position: 20% 20%, 80% 80%, 70% 30%;
  }
  75% {
    background-position: 10% 10%, 90% 90%, 60% 40%;
  }
}

/* User Dropdown Styles */
.user-dropdown-container {
  position: relative;
}

.user-initial {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.user-initial:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

.user-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  min-width: 150px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1001;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-dropdown a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s ease;
}

.user-dropdown a:hover {
  background: #f8f9fa;
}

/* Floating Buttons */
.floating-chatbot-btn {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999999;
  color: white;
  font-size: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.floating-chatbot-btn {
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
}

.floating-chatbot-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Chatbot Sidebar */
.chatbot-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
  z-index: 999998;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

.chatbot-header {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  color: white;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  font-size: 18px;
}

.chatbot-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.chatbot-message {
  padding: 12px 16px;
  border-radius: 18px;
  max-width: 80%;
  word-wrap: break-word;
}

.chatbot-message.user {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  color: white;
  align-self: flex-end;
  margin-left: auto;
}

.chatbot-message.bot {
  background: #f1f3f4;
  color: #333;
  align-self: flex-start;
}

.chatbot-input-area {
  padding: 20px;
  border-top: 1px solid #e9ecef;
}

.chatbot-input-container {
  display: flex;
  gap: 10px;
}

.chatbot-input {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e9ecef;
  border-radius: 25px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s ease;
}

.chatbot-input:focus {
  border-color: #16a34a;
}

.chatbot-send {
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  color: white;
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.3s ease;
}

.chatbot-send:hover {
  transform: scale(1.1);
}

/* Toast Notification */
#cart-toast {
  position: fixed;
  bottom: 100px;
  right: 20px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  padding: 15px 25px;
  border-radius: 25px;
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.3);
  z-index: 999999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

#cart-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Loading Screen */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2d6a4f 0%, #40916c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  transition: opacity 0.5s ease;
}

#loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-logo {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes backgroundFloat {
  0%, 100% {
    background-position: 0% 0%, 100% 100%, 50% 50%;
  }
  25% {
    background-position: 10% 10%, 90% 90%, 60% 40%;
  }
  50% {
    background-position: 20% 20%, 80% 80%, 70% 30%;
  }
  75% {
    background-position: 10% 10%, 90% 90%, 60% 40%;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 10px 15px;
  }

  .nav-left, .nav-right {
    gap: 10px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 14px;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    padding: 30px 0;
  }

  .product {
    min-height: 260px;
    padding: 20px;
  }

  .product-image {
    height: 120px;
  }

  .search-input {
    width: 250px;
  }

  .modal-content {
    width: 95%;
    margin: 10px;
    max-width: 450px;
    animation: modalSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }

  .modal-content::before {
    background-size: 150px 150px, 120px 120px, 80px 80px;
  }

  .modal-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .add-to-cart-btn, .buy-now-btn {
    padding: 16px 25px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .add-to-cart-btn:hover, .buy-now-btn:hover {
    transform: translateY(-3px) scale(1.02);
  }

  .modal-body {
    flex-direction: column;
    text-align: center;
    padding: 40px 25px 30px;
  }

  .modal-info {
    text-align: center;
  }

  .modal-image {
    width: 160px;
    height: 160px;
  }

  .chatbot-sidebar {
    width: 100%;
    right: -100%;
  }

  .floating-chatbot-btn {
    right: 20px;
    bottom: 20px;
  }
}

@media (max-width: 480px) {
  .shop-section {
    padding: 0 15px;
  }

  .shop-section h2 {
    font-size: 2rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .products {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 15px;
  }

  .product {
min-height: 200px;
    padding: 12px;
  }

  .product h4 {
    font-size: 1rem;
  }

  .product-image {
    height: 90px;
  }

  .modal-content {
    width: 98%;
    margin: 5px;
    max-width: 400px;
    animation: modalSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }

  .modal-content::before {
    background-size: 120px 120px, 100px 100px, 60px 60px;
  }

  .modal-body {
    padding: 30px 20px 25px;
  }

  .modal-image {
    width: 140px;
    height: 140px;
  }

  .modal-info h3 {
    font-size: 1.8rem;
  }

  .modal-price {
    font-size: 1.4rem;
    padding: 12px 25px;
  }

  .quantity-controls {
    gap: 20px;
    padding: 15px 25px;
  }

  .quantity-btn {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }

  .quantity-selector input {
    width: 80px;
    padding: 12px;
    font-size: 1.2rem;
  }

  .modal-buttons {
    margin-top: 25px;
  }

  .add-to-cart-btn, .buy-now-btn {
    padding: 18px 30px;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .add-to-cart-btn:hover, .buy-now-btn:hover {
    transform: translateY(-3px) scale(1.02);
  }
}
