/* Shop Page Styles */

/* Base Styles */
body {
  background-color: #ffffff;
  color: #212529;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
}

/* Hero Section */
.shop-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 80px 0 60px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero-heading {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subheading {
  font-size: 1.25rem;
  margin-bottom: 30px;
  opacity: 0.9;
  line-height: 1.6;
}

/* Affiliate Disclosure */
.affiliate-disclosure {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 30px auto 0;
  max-width: 600px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
}

.affiliate-disclosure i {
  color: #ffd700;
}

/* Shop Controls */
.shop-controls {
  background: #f8f9fa;
  padding: 30px 0;
  border-bottom: 1px solid #e9ecef;
}

.controls-wrapper {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: space-between;
}

.search-wrapper {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.search-input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

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

.filter-wrapper,
.sort-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-label {
  font-weight: 600;
  color: #495057;
  white-space: nowrap;
}

.category-select,
.sort-select {
  padding: 10px 15px;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

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

/* Main Shop Content */
.shop-main {
  padding: 60px 0;
  background: #ffffff;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Category Sections */
.category-section {
  margin-bottom: 80px;
}

.category-section.hidden {
  display: none;
}

.category-header {
  text-align: center;
  margin-bottom: 50px;
}

.category-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 15px;
}

.category-description {
  font-size: 1.1rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e2e8f0;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.product-image {
  width: 100%;
  height: 240px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

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

.product-image.placeholder {
  color: #cbd5e0;
  font-size: 3rem;
}

.product-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-description {
  color: #4a5568;
  font-size: 0.85rem;
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-price-section {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #d69e2e;
}

.product-original-price {
  font-size: 0.9rem;
  color: #718096;
  text-decoration: line-through;
}

.product-discount {
  background: #e53e3e;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.stars {
  display: flex;
  gap: 1px;
}

.star {
  color: #ffd700;
  font-size: 0.9rem;
}

.star.empty {
  color: #e2e8f0;
}

.rating-text {
  color: #718096;
  font-size: 0.8rem;
}

.product-features {
  margin-bottom: 16px;
  flex-grow: 1;
}

.product-features h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1a202c;
  margin-bottom: 8px;
}

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

.features-list li {
  padding: 3px 0;
  color: #4a5568;
  font-size: 0.8rem;
  position: relative;
  padding-left: 16px;
  line-height: 1.3;
}

.features-list li:before {
  content: "✓";
  color: #38a169;
  font-weight: bold;
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.product-badges {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.badge {
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge.prime {
  background: #ff9500;
  color: white;
}

.badge.featured {
  background: #667eea;
  color: white;
}

.badge.in-stock {
  background: #38a169;
  color: white;
}

.badge.discount {
  background: #e53e3e;
  color: white;
}

.product-cta {
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: auto;
}

.product-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
  color: white;
  text-decoration: none;
}

.product-cta i {
  margin-left: 8px;
}

/* Loading and No Results States */
.loading-state,
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #4a5568;
}

.loading-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: #667eea;
}

.no-results i {
  font-size: 4rem;
  margin-bottom: 20px;
  color: #cbd5e0;
}

.no-results h3 {
  font-size: 1.5rem;
  color: #2d3748;
  margin-bottom: 10px;
}

/* Footer Updates */
.footer-section {
  background: #f8f9fa;
  padding: 2rem 0;
  border-top: 1px solid #e9ecef;
  margin-top: 4rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.footer-image {
  height: 40px;
  width: auto;
}

.social-icon {
  display: inline-block;
  margin: 0 10px;
}

.social-icon img {
  height: 24px;
  width: 24px;
}

.footer-copywrite {
  color: #4a5568;
  font-size: 0.9rem;
}

.footer-link-wrapper {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #4a5568;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #007bff;
  text-decoration: none;
}

.affiliate-footer-disclosure {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #4a5568;
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #e2e8f0;
}

.affiliate-footer-disclosure i {
  color: #ffd700;
  margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-heading {
    font-size: 2.5rem;
  }
  
  .hero-subheading {
    font-size: 1.1rem;
  }
  
  .controls-wrapper {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-wrapper,
  .sort-wrapper {
    justify-content: space-between;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .category-title {
    font-size: 2rem;
  }
  
  .product-content {
    padding: 16px;
  }
  
  .product-image {
    height: 200px;
    padding: 16px;
  }
  
  .footer-row {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }
  
  .footer-link-wrapper {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 15px;
  }
  
  .affiliate-disclosure {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  .product-price-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
}

/* Touch Improvements for Mobile */
@media (hover: none) and (pointer: coarse) {
  .product-cta {
    padding: 18px 20px;
    font-size: 1.2rem;
  }
  
  .search-input,
  .category-select,
  .sort-select {
    padding: 15px;
    font-size: 1.1rem;
  }
}
