/* Base styles with minimalist approach */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', system-ui, sans-serif;
  background-color: #FAFAF9;
  color: #1A1A1A;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header with clean, modern branding */
header {
  text-align: center;
  padding: 20px 24px 32px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FAFAF9 100%);
  border-bottom: 1px solid #E8E8E7;
}

/* Affiliate Disclosure Banner - Amazon policy requirement */
.affiliate-disclosure-banner {
  text-align: center;
  padding: 8px 16px;
  background: #F5F5F4;
  border-bottom: 1px solid #E8E8E7;
  font-size: 0.75rem;
  color: #6B6B6B;
}

.affiliate-disclosure-banner p {
  margin: 0;
  font-weight: 400;
}

/* Logo - clickable to return home */
.logo {
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.logo:hover {
  opacity: 0.85;
}

/* Logo image */
.logo-image {
  height: 180px;
  width: auto;
  display: block;
  margin: 0 auto;
}

/* Clean, understated tagline */
.tagline {
  font-size: 1rem;
  color: #6B6B6B;
  margin-top: 4px;
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Modern search box */
.search-box {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-box input {
  padding: 16px 20px;
  padding-right: 54px;
  border: 1.5px solid #E0E0DF;
  border-radius: 12px;
  width: 380px;
  max-width: 90%;
  font-size: 0.95rem;
  background: #FFFFFF;
  color: #1A1A1A;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.search-box input::placeholder {
  color: #9B9B9A;
}

.search-box input:focus {
  outline: none;
  border-color: #FF6B35;
  box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.08);
}

.search-box button {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border: none;
  padding: 18px 42px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  color: #FFFFFF;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.search-box button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.3);
}

.search-box button:active {
  transform: translateY(0);
}

.search-box button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* Clear search button */
.clear-search-btn {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
  z-index: 10;
  opacity: 1;
}

.clear-search-btn svg {
  width: 20px;
  height: 20px;
  stroke: #1A1A1A;
}

.clear-search-btn:hover {
  background: #E8E8E7 !important;
  color: #FF6B35;
  border-color: #FF6B35 !important;
  transform: translateY(-50%) scale(1.05) !important;
  box-shadow: 0 2px 6px rgba(255, 107, 53, 0.15) !important;
}

.clear-search-btn:hover svg {
  stroke: #FF6B35;
}

.clear-search-btn:active {
  background: #DCDCDB !important;
  transform: translateY(-50%) scale(0.98) !important;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Search suggestions container */
.suggestions-container {
  display: none;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding: 0 24px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeIn 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Suggestion chips */
.suggestion-chip {
  background: #FFFFFF;
  border: 1.5px solid #E0E0DF;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #4A4A4A;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  white-space: nowrap;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.suggestion-chip:hover {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  border-color: #FF6B35;
  color: #FFFFFF;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.suggestion-chip:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(255, 107, 53, 0.15);
}

/* Search status display with AI glow */
.search-status {
  text-align: center;
  margin-top: 20px;
  min-height: 32px;
  font-size: 0.95rem;
  color: #6B6B6B;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.search-status.visible {
  opacity: 1;
}

.search-status.fade-out {
  opacity: 0;
}

.search-status.ai-active {
  color: #FF6B35;
  text-shadow: 0 0 20px rgba(255, 107, 53, 0.15);
}

.search-status.ai-active::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 40px;
  background: radial-gradient(ellipse, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
  z-index: -1;
  animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
  0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

/* Retailer dots animation */
.status-dots {
  display: inline-block;
  margin-left: 4px;
}

.status-dots::after {
  content: '';
  animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
  0%, 20% { content: ''; }
  40% { content: '.'; }
  60% { content: '..'; }
  80%, 100% { content: '...'; }
}

/* Category Navigation */
.category-nav {
  background: #FFFFFF;
  border-bottom: 1px solid #E8E8E7;
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.category-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  padding: 12px 20px;
}

.category-item {
  position: relative;
}

.category-button {
  background: transparent;
  border: none;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #4A4A4A;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.category-button:hover {
  color: #FF6B35;
  background: rgba(255, 107, 53, 0.05);
}

.category-badge {
  font-size: 0.75rem;
  padding: 2px 6px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 4px;
}

.category-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 8px;
  background: #FFFFFF;
  border: 1px solid #E0E0DF;
  border-radius: 12px;
  padding: 12px 0;
  min-width: 220px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

/* Desktop hover */
.category-item:hover .category-dropdown {
  opacity: 1;
  visibility: visible;
  margin-top: 4px;
}

/* Mobile/touch click toggle */
.category-item.active .category-dropdown {
  opacity: 1;
  visibility: visible;
  margin-top: 4px;
}

.subcategory-item {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: #4A4A4A;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subcategory-item:hover {
  background: rgba(255, 107, 53, 0.06);
  color: #FF6B35;
}

.subcategory-trending {
  width: 6px;
  height: 6px;
  background: #FF6B35;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.subcategory-seasonal {
  width: 6px;
  height: 6px;
  background: #F7931E;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive Category Nav */
@media (max-width: 768px) {
  .category-container {
    justify-content: center;
    flex-wrap: wrap;
    padding: 12px 16px;
    gap: 8px;
  }
  
  .category-button {
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 0.85rem;
  }
  
  .category-badge {
    font-size: 0.7rem;
    padding: 1px 5px;
  }
  
  .category-dropdown {
    left: 0;
    transform: none;
  }
}

/* AI Verdict Summary */
.ai-verdict {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  margin-bottom: 24px;
}

.verdict-text {
  font-size: 0.95rem;
  color: #6B6B6B;
  line-height: 1.5;
}

.verdict-text strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* Category Filters */
.category-filters {
  grid-column: 1/-1;
  margin-bottom: 24px;
  padding: 20px;
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F0F0EF;
}

.filter-label {
  font-size: 0.9rem;
  color: #6B6B6B;
  margin-bottom: 12px;
  font-weight: 500;
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  padding: 10px 18px;
  border: 2px solid #E0E0DF;
  background: #FAFAF9;
  color: #1A1A1A;
  border-radius: 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.filter-chip:hover {
  background: #F5F5F4;
  border-color: #FF6B35;
  transform: translateY(-2px);
}

.filter-chip.active {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  border-color: #FF6B35;
  box-shadow: 0 2px 12px rgba(255, 107, 53, 0.25);
}

/* Confidence Badge */
.confidence-badge {
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
}

/* Search stats with minimal design */
.search-stats {
  grid-column: 1/-1;
  text-align: center;
  padding: 24px;
  font-size: 0.95rem;
  color: #6B6B6B;
  background: #FFFFFF;
  border-radius: 16px;
  margin-bottom: 16px;
  border: 1px solid #F0F0EF;
  font-weight: 500;
}

/* View Toggle */
.view-toggle-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px 16px;
}

.view-toggle {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

.view-toggle .view-btn {
  background: #FFFFFF;
  border: 1.5px solid #E0E0DF;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  color: #6B6B6B;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  width: auto;
  margin: 0;
}

.view-toggle .view-btn:hover {
  background: #FAFAF9;
  border-color: #D4D4D3;
  transform: none;
  box-shadow: none;
}

.view-toggle .view-btn.active {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  border-color: #FF6B35;
  box-shadow: 0 2px 8px rgba(255, 107, 53, 0.2);
}

.view-toggle .view-btn svg {
  flex-shrink: 0;
}

/* Clean grid layout */
.grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 24px;
  max-width: 1440px;
  margin: 0 auto;
}

/* List layout - Clean table-like design */
.list-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 40px 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.list-layout .product-card {
  display: grid;
  grid-template-columns: 140px 1fr auto auto auto;
  gap: 20px;
  text-align: left;
  align-items: center;
  padding: 20px 24px;
  min-height: auto;
}

.list-layout .product-card img {
  width: 140px;
  height: 140px;
  margin: 0;
  border-radius: 12px;
}

.list-layout .product-card .product-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
  min-width: 300px;
}

.list-layout .product-card .product-name {
  margin: 0;
  min-height: auto;
  -webkit-line-clamp: 2;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.4;
}

.list-layout .product-card .product-rating {
  font-size: 0.8rem;
  margin: 0;
}

.list-layout .product-card .product-price {
  font-size: 1.6rem;
  margin: 0;
  font-weight: 700;
  min-width: 120px;
  text-align: right;
}

.list-layout .product-card .savings-text {
  font-size: 0.85rem;
  margin: 0;
  min-width: 140px;
  text-align: right;
  white-space: nowrap;
}

.list-layout .product-card .product-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
  align-self: center;
  min-width: 200px;
}

.list-layout .product-card .view-btn {
  margin: 0;
  width: 100%;
  padding: 12px 24px;
  white-space: nowrap;
}

.list-layout .product-card .sold-by {
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
}

.list-layout .product-card .retailer-options {
  margin: 0;
  width: 100%;
}

.list-layout .product-card:hover {
  transform: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.list-layout .product-card .badge-container {
  position: absolute;
  top: 8px;
  left: 160px;
  margin: 0;
  min-height: auto;
}

.list-layout .product-card .shipping-info {
  display: none; /* Hide in list view for cleaner layout */
}

/* Responsive list layout */
@media (max-width: 1200px) {
  .list-layout .product-card {
    grid-template-columns: 120px 1fr auto;
    gap: 16px;
  }
  
  .list-layout .product-card img {
    width: 120px;
    height: 120px;
  }
  
  .list-layout .product-card .product-price,
  .list-layout .product-card .savings-text {
    min-width: auto;
  }
}

@media (max-width: 768px) {
  .list-layout .product-card {
    grid-template-columns: 100px 1fr;
    gap: 12px;
    padding: 16px;
  }
  
  .list-layout .product-card img {
    width: 100px;
    height: 100px;
  }
  
  .list-layout .product-card .product-info {
    min-width: auto;
  }
  
  .list-layout .product-card .product-price {
    font-size: 1.3rem;
    text-align: left;
  }
  
  .list-layout .product-card .savings-text {
    text-align: left;
  }
  
  .list-layout .product-card .product-actions {
    grid-column: 1 / -1;
    min-width: auto;
  }
  
  .list-layout .product-card .badge-container {
    left: 110px;
  }
}

/* Minimalist product cards */
.product-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F0F0EF;
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  opacity: 1;
  transform: translateY(0);
  display: flex;
  flex-direction: column;
  min-height: 520px; /* Fixed minimum height for consistent layout */
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #E8E8E7;
}

.product-card.best-deal {
  border-color: #FF6B35;
  background: linear-gradient(180deg, #FFFBF8 0%, #FFFFFF 100%);
}

/* Clean best deal badge */
.best-deal-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #FFD700 0%, #FFC107 100%);
  color: #1A1A1A;
  padding: 8px 14px;
  border-radius: 24px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 10;
  box-shadow: 0 2px 12px rgba(255, 215, 0, 0.3);
}

/* Savings badge with clean design */
.savings-badge {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

/* Minimalist retailer badge */
.retailer-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #F5F5F4;
  color: #1A1A1A;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  z-index: 10;
  letter-spacing: 0.03em;
}

/* Product card content - fills available space */
.product-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Product card actions - always at bottom */
.product-card-actions {
  margin-top: auto;
  padding-top: 12px;
}

/* Product images with clean styling */
.product-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  border-radius: 12px;
  margin: 12px 0;
  background: #FAFAF9;
  flex-shrink: 0;
}

/* Typography hierarchy */
.product-name {
  font-size: 0.9rem;
  color: #1A1A1A;
  margin: 8px 0;
  min-height: 44px;
  line-height: 1.5;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 0;
}

.product-price {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 8px 0;
  letter-spacing: -0.02em;
  min-height: 40px; /* Reserve space */
  flex-shrink: 0;
}

.product-rating {
  font-size: 0.85rem;
  color: #6B6B6B;
  margin: 6px 0;
  font-weight: 400;
  min-height: 20px; /* Reserve space */
  flex-shrink: 0;
}

.shipping-info {
  font-size: 0.8rem;
  color: #10B981;
  margin: 6px 0;
  font-weight: 500;
  min-height: 20px; /* Reserve space even when empty */
}

.out-of-stock {
  color: #EF4444;
  font-weight: 600;
  font-size: 0.85rem;
}

/* Clean CTA button */
.view-btn {
  background: #1A1A1A;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  cursor: pointer;
  color: #FFFFFF;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9rem;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.view-btn:hover {
  background: #2D2D2D;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.view-btn:active {
  transform: translateY(0);
}

/* Retailer comparison UI - minimal and clean */
.retailer-options {
  margin: 16px 0;
  text-align: left;
}

.toggle-retailers {
  background: #FAFAF9;
  border: 1.5px solid #E0E0DF;
  padding: 12px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1A1A1A;
  width: 100%;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.toggle-retailers:hover {
  background: #F5F5F4;
  border-color: #D4D4D3;
}

.retailer-list {
  background: #FAFAF9;
  border-radius: 12px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #E8E8E7;
}

.retailer-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  background: white;
  border-radius: 10px;
  margin-bottom: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 10px;
  border: 1px solid transparent;
}

.retailer-option:last-child {
  margin-bottom: 0;
}

.retailer-option:hover {
  background: #FAFAF9;
  border-color: #E8E8E7;
}

.retailer-option.lowest-price {
  background: linear-gradient(180deg, #FFFBF8 0%, #FFFFFF 100%);
  border: 1.5px solid #FF6B35;
}

.retailer-badge-small {
  background: #F5F5F4;
  color: #1A1A1A;
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.retailer-price {
  font-weight: 700;
  color: #1A1A1A;
  font-size: 0.95rem;
  flex: 1;
  text-align: center;
  letter-spacing: -0.01em;
}

.view-link {
  background: #1A1A1A;
  color: #FFFFFF;
  padding: 8px 14px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.view-link:hover {
  background: #2D2D2D;
  transform: scale(1.02);
}

/* Clean, minimal footer */
footer {
  text-align: center;
  padding: 40px 24px;
  background: #FAFAF9;
  color: #6B6B6B;
  font-size: 0.85rem;
  margin-top: 60px;
  border-top: 1px solid #E8E8E7;
}

footer p {
  margin: 0.5rem 0;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: #FF6B35;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #F7931E;
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 768px) {
  /* Hide clear search button on mobile and tablets */
  .clear-search-btn {
    display: none !important;
  }

  header {
    padding: 48px 20px 36px;
  }

  .logo-image {
    height: 150px;
  }
  
  .tagline {
    font-size: 0.9rem;
  }
  
  .search-box {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }
  
  .search-box input {
    width: 100%;
  }
  
  .search-box button {
    width: 100%;
  }
  
  .grid-layout {
    grid-template-columns: 1fr;
    padding: 32px 16px;
    gap: 20px;
  }

  .product-card img {
    height: 200px;
  }
}

@media (max-width: 480px) {
  .logo-image {
    height: 120px;
  }

  .product-price {
    font-size: 1.5rem;
  }

  /* Hide clear search button on mobile */
  .clear-search-btn {
    display: none !important;
  }
}

/* Loading state */
@keyframes shimmer {
  0% {
    background-position: -468px 0;
  }
  100% {
    background-position: 468px 0;
  }
}

.loading {
  animation: shimmer 1.2s ease-in-out infinite;
  background: linear-gradient(to right, #F5F5F4 8%, #E8E8E7 18%, #F5F5F4 33%);
  background-size: 800px 104px;
}

/* PREMIUM REDESIGN - Elegant, Trustworthy Product Cards */

/* Savings Text - Inline Display (not a badge) */
.savings-text {
  color: #FF6B35;
  font-size: 0.9rem;
  font-weight: 700;
  margin: 6px 0;
  letter-spacing: -0.01em;
  min-height: 24px; /* Reserve space even when hidden */
}

/* Legacy savings-display class kept for backwards compatibility */
.savings-display {
  position: absolute;
  top: 16px;
  left: 16px;
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  letter-spacing: -0.01em;
}

/* Subtle Best Deal Badge - Not Loud */
.best-deal-badge-subtle {
  background: #F8F8F7;
  color: #1A1A1A;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
  border: 1.5px solid #FF6B35;
}

/* Badge Container - Prevents overlapping */
.badge-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
  min-height: 32px; /* Reserve space even if empty */
  gap: 8px;
  flex-shrink: 0;
}

.badge-container-left {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.badge-container-right {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

/* Best Seller Badge - Shows ranking with number (1-5) */
.best-seller-badge {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: #FFFFFF;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 70px;
}

.best-seller-badge .badge-number {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.best-seller-badge .badge-text {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* Wishlist Heart Icon */
.wishlist-heart {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  color: #6B6B6B;
  flex-shrink: 0;
}

.wishlist-heart:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
  color: #FF6B35;
}

.wishlist-heart.wishlisted {
  color: #FF6B35;
  background: rgba(255, 107, 53, 0.1);
}

.wishlist-heart svg {
  pointer-events: none;
}

/* Sold By Text - Clean and Simple */
.sold-by {
  font-size: 0.85rem;
  color: #6B6B6B;
  margin: 8px 0;
  font-weight: 400;
  text-align: center;
  min-height: 20px; /* Reserve space */
}

/* Compare Retailers Button - Clean Design */
.compare-retailers-btn {
  background: #FAFAF9;
  border: 1.5px solid #E0E0DF;
  padding: 10px 16px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1A1A1A;
  width: 100%;
  margin-bottom: 12px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
}

.compare-retailers-btn:hover {
  background: #F5F5F4;
  border-color: #D4D4D3;
}

/* Retailer Name - Simple Text */
.retailer-name {
  font-size: 0.8rem;
  color: #1A1A1A;
  font-weight: 600;
  white-space: nowrap;
}

/* HOTTEST DEALS SECTION */
.hottest-deals-section {
  max-width: 1440px;
  margin: 0 auto;
  padding: 60px 24px 40px;
}

.hottest-deals-header {
  text-align: center;
  margin-bottom: 40px;
}

.hottest-deals-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hottest-deals-header p {
  font-size: 1rem;
  color: #6B6B6B;
  margin: 0;
  font-weight: 400;
}

.hottest-deals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.deal-card {
  background: #FFFFFF;
  border-radius: 16px;
  border: 1px solid #F0F0EF;
  padding: 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 560px; /* Fixed minimum height for consistent layout */
}

.deal-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border-color: #E8E8E7;
}

/* Position badges absolutely to prevent layout shifts */
.deal-card .wishlist-heart {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.deal-card .best-seller-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.deal-card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  margin: 12px 0;
  background: #FAFAF9;
  flex-shrink: 0; /* Prevent image from shrinking */
}

.deal-card h3 {
  font-size: 0.95rem;
  color: #1A1A1A;
  margin: 12px 0;
  line-height: 1.4;
  font-weight: 600;
  min-height: 60px; /* Fixed height for consistent alignment */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-card .product-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 12px 0;
  line-height: 1.4;
  min-height: 60px; /* Fixed height for consistent alignment */
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.deal-card .product-rating {
  font-size: 0.8rem;
  color: #6B6B6B;
  margin: 8px 0;
  min-height: 20px; /* Fixed height for consistent alignment */
}

.deal-card .product-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1A1A1A;
  margin: 8px 0;
  min-height: 40px; /* Fixed height for consistent alignment */
}

.deal-card .savings-text {
  font-size: 0.85rem;
  color: #FF6B35;
  margin: 4px 0 8px;
  min-height: 24px; /* Fixed height for consistent alignment */
}

.deal-card .sold-by {
  margin: 10px 0 14px;
  font-size: 0.85rem;
  color: #6B6B6B;
  min-height: 24px; /* Fixed height for consistent alignment */
}

.deal-card .product-link {
  margin-top: auto; /* Push button to bottom */
  padding-top: 12px;
}

.deal-card .view-btn {
  width: 100%;
}

/* Responsive Hottest Deals */
@media (max-width: 768px) {
  .hottest-deals-section {
    padding: 40px 16px 32px;
  }
  
  .hottest-deals-header h2 {
    font-size: 1.5rem;
  }
  
  .hottest-deals-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* Show More Button */
.show-more-container {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px 20px;
  margin-top: 20px;
}

.show-more-btn {
  background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.3);
}

.show-more-btn:active {
  transform: translateY(0);
}

.show-more-info {
  color: #6B6B6B;
  font-size: 0.9rem;
  margin: 0;
}

/* SEO H1 - Visible but subtle */
.seo-h1 {
  text-align: center;
  font-size: 1.8rem;
  font-weight: 600;
  color: #1A1A1A;
  margin: 32px auto 24px;
  padding: 0 20px;
  max-width: 900px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

/* SEO Content Section */
.seo-content {
  background: #FFFFFF;
  border-top: 1px solid #E8E8E7;
  padding: 60px 24px;
  margin-top: 40px;
}

.seo-content-inner {
  max-width: 800px;
  margin: 0 auto;
  color: #1A1A1A;
}

.seo-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1A1A1A;
  margin-bottom: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.seo-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1A1A1A;
  margin-top: 36px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.seo-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3A3A3A;
  margin-bottom: 18px;
}

.seo-content strong {
  color: #1A1A1A;
  font-weight: 600;
}

/* Responsive SEO Content */
@media (max-width: 768px) {
  .seo-h1 {
    font-size: 1.4rem;
    margin: 24px auto 16px;
  }
  
  .seo-content {
    padding: 40px 20px;
  }
  
  .seo-content h2 {
    font-size: 1.6rem;
  }
  
  .seo-content h3 {
    font-size: 1.3rem;
    margin-top: 28px;
  }
  
  .seo-content p {
    font-size: 1rem;
  }
}
