/* Products Page Styles */

/* Products Hero Section */
.products-hero {
  position: relative;
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #667eea 25%, 
    #667eea 50%, 
    #667eea 75%, 
    #667eea 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.products-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.products-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 0;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: white;
}

.products-hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: white;
  line-height: 1.2;
}

.gradient-text {
  display: block;
  background: linear-gradient(45deg, #ffffff, #f8f9ff, #e8f4fd);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: textShimmer 4s ease-in-out infinite;
  font-size: 0.7em;
  margin-top: 0.5rem;
}

.products-hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.products-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: white;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Product Filters */
.product-filters {
  padding: 2rem 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

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

.filter-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 400px;
}

.search-box input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border: 2px solid #e2e8f0;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.search-box input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
}

.filter-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border: 2px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 50px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

/* Products Section */
.products-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, 
    #ffffff 0%, 
    #fafbff 25%, 
    #f8fafc 50%, 
    #fafbff 75%, 
    #ffffff 100%);
  position: relative;
}

.products-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(102, 126, 234, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(118, 75, 162, 0.02) 0%, transparent 50%);
  pointer-events: none;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2.5rem;
  margin-bottom: 3rem;
  padding: 1rem 0;
}

/* Enhanced Product Cards */
.product-card {
  background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 24px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(20px);
  animation: subtleFloat 6s ease-in-out infinite;
}

.product-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.12),
    0 12px 24px rgba(102, 126, 234, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  animation-play-state: paused;
}

@keyframes subtleFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg); 
  }
  50% { 
    transform: translateY(-3px) rotate(0.5deg); 
  }
}

.product-image {
  position: relative;
  height: 240px;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.1) 0%, 
    rgba(118, 75, 162, 0.05) 50%, 
    rgba(255, 255, 255, 0.9) 100%);
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px 8px 0 8px;
  box-shadow: 
    0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-photo {
  width: 90%;
  height: 90%;
  object-fit: contain;
  padding: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.product-card:hover .product-photo {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15)) brightness(1.05);
}

/* Badge styling for professional look */
.product-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, #ff6b6b, #ff8787);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.product-badge.featured {
  background: linear-gradient(45deg, #4ecdc4, #44a08d);
}

.product-badge.popular {
  background: linear-gradient(45deg, #ffa726, #fb8c00);
}

.product-badge.premium {
  background: linear-gradient(45deg, #9c27b0, #673ab7);
}

/* Enhanced overlay for better interaction */
.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(5px);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

/* Clickable image indicators */
.product-photo {
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.product-photo:hover {
  transform: scale(1.05);
}

.product-image:hover::after {
  content: '🔍 Click to zoom';
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 4;
  animation: zoomHintFadeIn 0.3s ease;
}

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

/* Image click feedback */
.product-photo:active {
  transform: scale(0.95);
}

/* Professional button styling */
.btn-quick-view {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transform: translateY(10px);
}

.product-overlay:hover .btn-quick-view {
  transform: translateY(0);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* Image loading states */
.product-photo {
  opacity: 0;
  animation: fadeInImage 0.5s ease forwards;
}

@keyframes fadeInImage {
  to {
    opacity: 1;
  }
}

/* Professional fallback for failed images */
.product-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  text-align: center;
  padding: 20px;
}

.fallback-icon {
  font-size: 3rem;
  margin-bottom: 10px;
  opacity: 0.8;
}

.fallback-text {
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
}

/* Enhanced Professional loading animations */
.product-card {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.product-card.animate-in {
  animation: enhancedSlideUp 0.7s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes enhancedSlideUp {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.98) rotate(-1deg);
  }
  60% {
    opacity: 0.8;
    transform: translateY(-5px) scale(1.01) rotate(0deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

.product-photo.loaded {
  animation: imageReveal 0.6s ease-out forwards;
}

@keyframes imageReveal {
  from {
    opacity: 0;
    filter: blur(5px) brightness(1.2);
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    filter: blur(0) brightness(1);
    transform: scale(1);
  }
}

/* Enhanced professional styling */
.product-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(102, 126, 234, 0.03) 100%);
  pointer-events: none;
  transition: opacity 0.3s ease;
  opacity: 0;
}

.product-card:hover::after {
  opacity: 1;
}

/* Professional badge animations */
.product-badge {
  transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.product-card:hover .product-badge {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive image adjustments */
@media (max-width: 768px) {
  .product-photo {
    padding: 10px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .fallback-icon {
    font-size: 2rem;
  }
  
  .fallback-text {
    font-size: 0.8rem;
  }
  
  /* Modal responsive styling */
  .modal-product-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }
  
  .modal-product-image {
    width: 100px;
    height: 100px;
  }
  
  .modal-product-photo {
    padding: 8px;
  }
  
  .modal-product-details h4 {
    font-size: 1.2rem;
    text-align: center;
  }
}

/* Zoom Hint */
.zoom-hint {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.modal-product-image:hover .zoom-hint {
  opacity: 1;
}

/* Image Zoom Modal */
.image-zoom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 10000;
  animation: fadeIn 0.3s ease;
}

.image-zoom-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-modal-content {
  position: relative;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  max-height: 800px;
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.zoom-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.zoom-close-btn:hover {
  background: rgba(255, 0, 0, 0.7);
  transform: scale(1.1);
}

.zoom-controls {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  gap: 10px;
  z-index: 10001;
}

.zoom-btn {
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
}

.zoom-btn:hover {
  background: rgba(102, 126, 234, 0.9);
  transform: translateY(-2px);
}

.zoom-image-container {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  cursor: grab;
}

.zoom-image-container.dragging {
  cursor: grabbing;
}

.zoom-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}

.zoom-info {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  text-align: center;
  z-index: 10001;
}

/* Zoom Modal Responsive */
@media (max-width: 768px) {
  .zoom-modal-content {
    width: 95%;
    height: 95%;
    border-radius: 15px;
  }
  
  .zoom-controls {
    flex-wrap: wrap;
    max-width: 200px;
  }
  
  .zoom-btn {
    padding: 6px 8px;
    font-size: 0.8rem;
    min-width: 35px;
  }
  
  .zoom-info {
    font-size: 0.7rem;
    padding: 6px 12px;
  }
  
  .modal-product-image {
    width: 150px;
    height: 150px;
  }
}

.product-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 20px;
  text-transform: uppercase;
  z-index: 3;
}

.product-badge:not(.featured):not(.premium) {
  background: #10b981;
  color: white;
}

.product-badge.featured {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

.product-badge.premium {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.product-icon {
  font-size: 4rem;
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
  animation: productIconFloat 3s ease-in-out infinite;
}

@keyframes productIconFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.btn-quick-view {
  padding: 0.75rem 1.5rem;
  background: white;
  color: #1e293b;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-quick-view:hover {
  background: #f1f5f9;
  transform: scale(1.05);
}

.product-content {
  padding: 1.5rem 2rem 2rem;
  background: linear-gradient(180deg, transparent 0%, rgba(248, 250, 252, 0.3) 100%);
}

.product-name {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.product-description {
  color: #64748b;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  font-weight: 400;
}

.product-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border-radius: 20px;
  font-size: 0.9rem;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.spec-item svg {
  width: 16px;
  height: 16px;
  color: #667eea;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.btn-wishlist {
  width: 50px;
  height: 50px;
  border: 2px solid #e2e8f0;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-wishlist:hover {
  border-color: #ef4444;
  background: #fef2f2;
  transform: scale(1.1);
}

.btn-wishlist:hover svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  margin-top: 3rem;
}

.load-more-btn {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Product Features */
.product-features {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  padding: 2rem;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: white;
}

.feature-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.feature-item p {
  color: #64748b;
  line-height: 1.6;
}

/* Products CTA */
.products-cta {
  padding: 4rem 0;
  background: linear-gradient(135deg, #1e293b, #334155);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Product Modal */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.product-modal.active {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  visibility: visible;
  opacity: 1;
}

.modal-content {
  background: white;
  border-radius: 20px;
  max-width: 800px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalSlideIn 0.3s ease;
}

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

.modal-header {
  padding: 2rem;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  font-size: 2rem;
  color: #64748b;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #1e293b;
}

.modal-body {
  padding: 2rem;
}

.modal-product-info {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

/* Enhanced Modal Product Image Container */
.modal-product-image {
  position: relative;
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-product-image:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.25);
  border-color: rgba(102, 126, 234, 0.4);
}

.modal-product-image:active {
  transform: scale(0.98);
}

.modal-product-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: all 0.3s ease;
}

.modal-product-photo:hover {
  transform: scale(1.05);
}

/* Loading and loaded states */
.modal-product-image.loading {
  animation: modalImagePulse 1.5s ease-in-out infinite;
}

.modal-product-image.loaded .modal-product-photo {
  animation: modalImageFadeIn 0.5s ease-out forwards;
}

@keyframes modalImagePulse {
  0%, 100% { 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  }
  50% { 
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    transform: scale(1.02);
  }
}

@keyframes modalImageFadeIn {
  from {
    opacity: 0;
    transform: scale(1.1);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-product-icon {
  font-size: 4rem;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-product-details {
  flex: 1;
}

.modal-product-details h4 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 1rem;
}

.modal-product-details p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.modal-features h5 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.modal-features ul {
  list-style: none;
  padding: 0;
}

.modal-features li {
  padding: 0.5rem 0;
  color: #64748b;
  position: relative;
  padding-left: 1.5rem;
}

.modal-features li:before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: 600;
}

.modal-footer {
  padding: 2rem;
  border-top: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .products-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .stat-item {
    padding: 1rem;
  }
  
  .filter-header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-box {
    max-width: none;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .modal-product-info {
    flex-direction: column;
    text-align: center;
  }
  
  .modal-footer {
    flex-direction: column;
  }
  
  .products-hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .product-card {
    margin: 0 1rem;
  }
  
  .filter-buttons {
    justify-content: center;
  }
  
  .filter-btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }
}

/* Animation Enhancements */
.product-card {
  opacity: 0;
  transform: translateY(30px);
  animation: productCardFadeIn 0.6s ease forwards;
}

/* Staggered animation delays */
.product-card:nth-child(1) { animation-delay: 0.1s; }
.product-card:nth-child(2) { animation-delay: 0.2s; }
.product-card:nth-child(3) { animation-delay: 0.3s; }
.product-card:nth-child(4) { animation-delay: 0.4s; }
.product-card:nth-child(5) { animation-delay: 0.5s; }
.product-card:nth-child(6) { animation-delay: 0.6s; }
.product-card:nth-child(7) { animation-delay: 0.7s; }
.product-card:nth-child(8) { animation-delay: 0.8s; }

/* Floating animation delays for organic movement */
.product-card:nth-child(odd) { 
  animation-delay: 0s; 
}
.product-card:nth-child(even) { 
  animation-delay: -3s; 
}
.product-card:nth-child(3n) { 
  animation-delay: -1.5s; 
}

@keyframes productCardFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Filter Animation */
.product-card.hidden {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.product-card.show {
  opacity: 1;
  transform: scale(1);
  transition: all 0.3s ease;
}

/* Hover Effects */
.btn {
  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%;
}

/* Enhanced Modal Styles for Quick View */

/* Image Gallery in Modal */
.image-gallery {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 10px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-thumbnails {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 8px;
  overflow-x: auto;
  padding: 5px;
}

.gallery-thumb {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background: white;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-thumb:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: scale(1.1);
}

.gallery-thumb.active {
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transform: scale(1.05);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.gallery-btn {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.gallery-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.gallery-btn:active {
  transform: scale(0.95);
}

.image-counter {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  padding: 4px 8px;
  border-radius: 10px;
  min-width: 50px;
  text-align: center;
}

/* Enhanced Modal Specifications */
.modal-specs .spec-item {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.modal-specs .spec-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.spec-icon {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.spec-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.spec-value {
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 600;
}

/* Additional Product Information */
.additional-product-info {
  margin-top: 2rem;
  border-top: 1px solid #e2e8f0;
  padding-top: 2rem;
}

.product-info-section {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
}

.product-info-section:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.product-info-section h5 {
  color: #1e293b;
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.info-icon {
  font-size: 1.1rem;
}

.product-info-section p {
  color: #64748b;
  line-height: 1.6;
  font-size: 0.95rem;
  margin: 0;
}

.category-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  color: white;
}

.category-badge.tablets {
  background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-badge.strips {
  background: linear-gradient(135deg, #f093fb, #f5576c);
}

.category-badge.capsules {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
}

/* Enhanced Features List */
.modal-features {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  padding: 1.5rem;
  border-radius: 15px;
  border: 1px solid #e2e8f0;
  margin-top: 1rem;
}

.modal-features h5 {
  color: #1e293b;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-features ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.8rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-item {
  padding: 0.8rem 1rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.feature-item:hover {
  background: rgba(102, 126, 234, 0.05);
  border-color: rgba(102, 126, 234, 0.2);
  transform: translateX(5px);
}

/* Notification System */
.notification-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}

.notification {
  background: white;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border-left: 4px solid;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: notificationSlideIn 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.notification-success {
  border-left-color: #10b981;
  background: rgba(240, 253, 244, 0.95);
}

.notification-error {
  border-left-color: #ef4444;
  background: rgba(254, 242, 242, 0.95);
}

.notification-warning {
  border-left-color: #f59e0b;
  background: rgba(255, 251, 235, 0.95);
}

.notification-info {
  border-left-color: #3b82f6;
  background: rgba(239, 246, 255, 0.95);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.notification-icon {
  font-size: 1.2rem;
}

.notification-message {
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
}

.notification-close {
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 2px;
  line-height: 1;
  transition: color 0.2s ease;
}

.notification-close:hover {
  color: #374151;
}

@keyframes notificationSlideIn {
  from {
    opacity: 0;
    transform: translateX(100%) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

/* Wishlist Enhancements */
.btn-wishlist.in-wishlist {
  background: #fef2f2;
  border-color: #ef4444;
}

.btn-wishlist.in-wishlist svg {
  fill: #ef4444;
  stroke: #ef4444;
}

/* Modal Product Name Enhancement */
.modal-product-name {
  background: linear-gradient(135deg, #667eea, #764ba2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Enhanced Modal Responsiveness */
@media (max-width: 768px) {
  .image-gallery {
    padding: 8px;
  }
  
  .gallery-thumbnails {
    gap: 6px;
  }
  
  .gallery-thumb {
    width: 35px;
    height: 35px;
  }
  
  .gallery-btn {
    width: 25px;
    height: 25px;
    font-size: 0.8rem;
  }
  
  .image-counter {
    font-size: 0.7rem;
    padding: 3px 6px;
  }
  
  .modal-specs {
    justify-content: center;
  }
  
  .modal-specs .spec-item {
    padding: 10px 12px;
    margin: 3px;
  }
  
  .modal-features ul {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  
  .notification-container {
    left: 10px;
    right: 10px;
    max-width: none;
  }
  
  .notification {
    padding: 12px 16px;
  }
  
  .additional-product-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
  
  .product-info-section {
    padding: 0.8rem;
    margin-bottom: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-content {
    margin: 1rem;
    max-height: calc(100vh - 2rem);
  }
  
  .modal-header,
  .modal-body,
  .modal-footer {
    padding: 1.5rem;
  }
  
  .modal-product-info {
    gap: 1rem;
  }
  
  .modal-product-image {
    width: 120px;
    height: 120px;
  }
  
  .gallery-thumbnails {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 5px;
  }
  
  .gallery-thumb {
    flex-shrink: 0;
  }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .product-filters {
    background: #1e293b;
  }
  
  .filter-header h2 {
    color: white;
  }
  
  .search-box input {
    background: #334155;
    border-color: #475569;
    color: white;
  }
  
  .filter-btn {
    background: #334155;
    border-color: #475569;
    color: white;
  }
  
  .products-section {
    background: #0f172a;
  }
  
  .product-card {
    background: #1e293b;
    border-color: #334155;
  }
  
  .product-name {
    color: white;
  }
  
  .modal-content {
    background: #1e293b;
    color: white;
  }
  
  .image-gallery {
    background: rgba(30, 41, 59, 0.95);
  }
  
  .spec-item {
    background: #334155;
    border-color: #475569;
    color: white;
  }
  
  .additional-product-info {
    border-color: #475569;
  }
  
  .product-info-section {
    background: #334155;
    border-color: #475569;
    color: white;
  }
}

/* Print Styles */
@media print {
  .product-modal,
  .image-zoom-modal,
  .notification-container {
    display: none !important;
  }
}