/* ============================================
   Blissful Finds - Main Stylesheet
   ============================================ */

:root {
  --primary: #e91e63;
  --primary-dark: #c2185b;
  --primary-light: #f8bbd0;
  --secondary: #9c27b0;
  --accent: #ff5722;
  --text: #333;
  --text-light: #666;
  --text-lighter: #999;
  --bg: #fff;
  --bg-light: #f9f9f9;
  --bg-dark: #1a1a2e;
  --border: #e0e0e0;
  --success: #4caf50;
  --warning: #ff9800;
  --error: #f44336;
  --shadow: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
  --radius: 8px;
  --radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* ============================================
   Header
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 15px 0;
}

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

.logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.main-nav {
  display: flex;
  gap: 30px;
}

.main-nav a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  width: 100%;
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.snipcart-items-count {
  background: white;
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 50%, #e8eaf6 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(233,30,99,0.05) 0%, transparent 50%);
  animation: pulse 10s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 30px;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.hero-meta strong {
  color: var(--text);
}

/* ============================================
   Table of Contents
   ============================================ */

.toc {
  background: var(--bg-light);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.toc h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text);
}

.toc ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.toc a {
  display: block;
  padding: 15px 20px;
  background: white;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  border: 1px solid var(--border);
}

.toc a:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateX(5px);
  box-shadow: var(--shadow);
}

/* ============================================
   Main Content
   ============================================ */

.main-content {
  padding: 60px 0;
}

.article {
  max-width: 800px;
  margin: 0 auto;
}

.article section {
  margin-bottom: 60px;
}

.article h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 30px;
  color: var(--text);
  position: relative;
  padding-bottom: 15px;
}

.article h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.article h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--text);
}

.article p {
  margin-bottom: 20px;
  color: var(--text-light);
  line-height: 1.8;
}

.article ul {
  margin: 15px 0 20px 25px;
  color: var(--text-light);
}

.article li {
  margin-bottom: 10px;
}

.article strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   Buying Guide
   ============================================ */

.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.guide-card {
  background: var(--bg-light);
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: var(--transition);
}

.guide-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.guide-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
}

/* ============================================
   Product Cards
   ============================================ */

.product-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  margin-bottom: 40px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
}

.product-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 30px;
  background: var(--bg-light);
}

.product-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

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

.stars {
  color: #ffc107;
  font-size: 1.1rem;
}

.rating-text {
  color: var(--text-lighter);
  font-size: 0.9rem;
}

.product-tagline {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.product-price {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.add-to-cart-btn {
  padding: 12px 30px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.add-to-cart-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.product-details {
  padding: 30px;
}

.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}

.pros, .cons {
  padding: 20px;
  border-radius: var(--radius);
}

.pros {
  background: #e8f5e9;
}

.cons {
  background: #ffebee;
}

.pros h4, .cons h4 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.pros h4 {
  color: var(--success);
}

.cons h4 {
  color: var(--error);
}

.pros ul, .cons ul {
  list-style: none;
  margin: 0;
}

.pros li, .cons li {
  padding: 8px 0;
  padding-left: 25px;
  position: relative;
  font-size: 0.95rem;
}

.pros li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: bold;
}

.cons li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--error);
  font-weight: bold;
}

.product-description {
  border-top: 1px solid var(--border);
  padding-top: 25px;
}

/* ============================================
   Comparison Table
   ============================================ */

.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.comparison-table th,
.comparison-table td {
  padding: 15px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.comparison-table th {
  background: var(--primary);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

.comparison-table tr:hover {
  background: var(--bg-light);
}

.comparison-table td:first-child {
  font-weight: 600;
}

/* ============================================
   Safety Section
   ============================================ */

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

.safety-card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.safety-card h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.safety-card ul {
  list-style: none;
  margin: 0;
}

.safety-card li {
  padding: 8px 0;
  padding-left: 20px;
  position: relative;
  font-size: 0.95rem;
}

.safety-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* ============================================
   FAQ
   ============================================ */

.faq-item {
  background: var(--bg-light);
  padding: 25px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

.faq-item h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.faq-item p {
  margin: 0;
}

/* ============================================
   Conclusion
   ============================================ */

.conclusion {
  background: linear-gradient(135deg, #fce4ec 0%, #f3e5f5 100%);
  padding: 40px;
  border-radius: var(--radius-lg);
  text-align: center;
}

.conclusion h2 {
  margin-bottom: 20px;
}

.conclusion p {
  max-width: 600px;
  margin: 0 auto 15px;
}

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--bg-dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: var(--primary-light);
}

.footer-brand p {
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.footer-links h4,
.footer-legal h4 {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links a,
.footer-legal a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 30px;
  text-align: center;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .product-header {
    grid-template-columns: 1fr;
  }
  
  .product-image {
    min-height: 200px;
  }
  
  .pros-cons {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .main-nav {
    display: none;
  }
  
  .article h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-meta {
    flex-direction: column;
    gap: 5px;
  }
  
  .product-price {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .price {
    font-size: 1.5rem;
  }
}

/* ============================================
   Animations
   ============================================ */

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

.product-card {
  animation: fadeInUp 0.6s ease-out;
}

.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }

/* ============================================
   Print Styles
   ============================================ */

@media print {
  .site-header,
  .cart-btn,
  .add-to-cart-btn,
  .site-footer {
    display: none;
  }
  
  .product-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1px solid #ddd;
  }
}
