/* NatuBright Premium Styles - Enhanced Professional E-Commerce Design */

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

body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  background-color: #fafafa;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Story Cards - Lifestyle Photos */
.story-card {
  cursor: pointer;
  transition: all 0.4s ease;
}

.story-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Premium button styles */
.btn-primary {
  background: linear-gradient(135deg, #2d5016 0%, #4a7c2b 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(45, 80, 22, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(45, 80, 22, 0.3);
}

.btn-secondary {
  background: white;
  color: #2d5016;
  border: 2px solid #2d5016;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #2d5016;
  color: white;
}

/* ============================================
   PRODUCT GRID - Professional E-Commerce Layout
   Inspired by Melaleuca's clean, minimal design
   ============================================ */

/* Product Grid - Uniform layout */
.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  padding: 0.5rem;
}

@media (max-width: 1400px) {
  .product-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 480px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.625rem;
  }
}

/* Product Card - Clean, Professional Design */
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #ffffff;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #f0f0f0;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08), 0 8px 16px rgba(0, 0, 0, 0.06);
  border-color: #e8e8e8;
}

/* Product Image Container - PURE WHITE Background (like Melaleuca) */
.product-image-container {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Subtle bottom border separator */
.product-image-container::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
}

/* Product Image - Professional presentation with subtle shadow */
.product-image {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  /* Professional product shadow - creates depth like studio photography */
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.07)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
}

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

/* Product Content - Clean spacing */
.product-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1rem 1rem 1.125rem;
  background: #ffffff;
}

/* Product Title - Clean typography */
.product-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.35;
  height: 2.4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin-bottom: 0.375rem;
  letter-spacing: -0.01em;
}

/* Product Description Container */
.product-description-container {
  margin-bottom: 0.625rem;
  min-height: 2.5rem;
}

/* Product Description - Muted, clean text */
.product-description {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 0.25rem;
}

/* Read More Button - Subtle */
.read-more-btn {
  font-size: 0.7rem;
  color: #2d5016;
  font-weight: 500;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
}

.read-more-btn:hover {
  color: #4a7c2b;
}

.read-more-btn i {
  font-size: 0.6rem;
  transition: transform 0.2s;
}

.read-more-btn:hover i {
  transform: translateX(2px);
}

/* Product Pricing - Clean layout */
.product-pricing {
  margin-top: auto;
  margin-bottom: 0.75rem;
  min-height: 2.75rem;
}

.pricing-member {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.375rem;
}

.pricing-regular {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.retail-price {
  font-size: 0.75rem;
  color: #9ca3af;
  text-decoration: line-through;
}

.member-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2d5016;
  letter-spacing: -0.02em;
}

.savings-text {
  font-size: 0.65rem;
  font-weight: 600;
  color: #059669;
  background: #d1fae5;
  padding: 0.125rem 0.5rem;
  border-radius: 2rem;
}

.regular-price {
  font-size: 1.375rem;
  font-weight: 700;
  color: #2d5016;
  letter-spacing: -0.02em;
}

.member-hint {
  font-size: 0.7rem;
  color: #6b7280;
}

/* Add to Cart Button - Professional, clean */
.add-to-cart-btn {
  width: 100%;
  background: #2d5016;
  color: white;
  padding: 0.625rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.01em;
}

.add-to-cart-btn:hover {
  background: #3d6b1e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45, 80, 22, 0.25);
}

.add-to-cart-btn:active {
  transform: translateY(0);
}

/* Savings Badge - Professional, minimal */
.savings-badge {
  position: absolute;
  top: 0.625rem;
  right: 0.625rem;
  background: #dc2626;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.6rem;
  font-weight: 700;
  z-index: 10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Leaf decorative element */
.leaf-icon {
  color: #8fbc5a;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Membership banner */
.membership-banner {
  background: linear-gradient(135deg, #2d5016 0%, #4a7c2b 50%, #8fbc5a 100%);
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.membership-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shine 3s infinite;
}

@keyframes shine {
  0% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
  }
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #f5f0e8 0%, #e8dcc8 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 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='%238fbc5a' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

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

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  animation: slideUp 0.3s ease;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

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

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

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #2d5016;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 2rem auto;
}

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

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* Additional Utility Classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Product Section Header - Clean typography */
.products-section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.products-section-header h2 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.products-section-header p {
  color: #6b7280;
  font-size: 1rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .btn-primary,
  .btn-secondary {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .product-card:hover {
    transform: translateY(-4px);
  }
  
  .product-image-container {
    padding: 1rem;
  }
  
  .product-content {
    padding: 0.75rem 0.75rem 1rem;
  }
  
  .product-title {
    font-size: 0.8rem;
  }
  
  .member-price,
  .regular-price {
    font-size: 1.125rem;
  }
  
  .add-to-cart-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
  }
}

/* Extra small screens */
@media (max-width: 380px) {
  .product-grid {
    gap: 0.5rem;
  }
  
  .product-image-container {
    padding: 0.75rem;
  }
  
  .product-content {
    padding: 0.625rem;
  }
  
  .product-title {
    font-size: 0.75rem;
    height: auto;
    -webkit-line-clamp: 2;
  }
  
  .product-description {
    font-size: 0.65rem;
  }
}

/* Product attributes badges (Made in Canada, etc.) */
.product-attributes {
  display: flex;
  gap: 0.375rem;
  flex-wrap: wrap;
  margin-top: 0.375rem;
}

.product-attribute {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

.product-attribute img {
  width: 12px;
  height: 12px;
  object-fit: contain;
}

/* Product Quick View overlay on hover */
.product-card .quick-view-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  justify-content: center;
}

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

.quick-view-btn {
  background: white;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

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