/*
Theme Name: The Spark Shop Theme
Theme URI: https://thesparkshopkidsclothesforbabyboygirl.in
Author: Agent
Author URI: https://thesparkshopkidsclothesforbabyboygirl.in
Description: A modern, high-converting affiliate theme optimized for conversions and SEO. Features custom affiliate blocks, pros & cons, star ratings, and ultra-fast vanilla assets.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: sparkshop
*/

/* =========================================================================
   Design System variables
   ========================================================================= */
   :root {
    /* Soft Pastel Colors */
    --clr-primary: #80c4e9; /* Light blue */
    --clr-secondary: #ffb6b9; /* Soft Pink / Peach */
    --clr-accent: #fce38a; /* Soft Yellow */
    --clr-success: #b5e7a0; /* Soft Green */
    --clr-text-main: #2d3436;
    --clr-text-muted: #636e72;
    --clr-bg-main: #f9fbfc;
    --clr-bg-card: #ffffff;
    
    /* Conversion Focused Buttons */
    --clr-amazon: #ff9900;
    --clr-pros: #e8f5e9;
    --clr-cons: #ffebee;
    
    /* Layout & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-button: 24px;
    --shadow-soft: 0 8px 16px rgba(0,0,0,0.05);
    --shadow-hover: 0 12px 24px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 12px rgba(0,0,0,0.1);
    
    /* Typography */
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Container Constraints */
    --container-width: 1200px;
  }
  
  /* =========================================================================
     Resets and Base Styles
     ========================================================================= */
  * { margin: 0; padding: 0; box-sizing: border-box; }
  body { font-family: var(--font-body); color: var(--clr-text-main); background-color: var(--clr-bg-main); line-height: 1.6; }
  h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--clr-text-main); margin-bottom: 0.5rem; line-height: 1.2; }
  a { text-decoration: none; color: inherit; transition: color 0.3s ease; }
  img { max-width: 100%; height: auto; display: block; }
  ul { list-style: none; }
  
  /* =========================================================================
     Layout Utilities
     ========================================================================= */
  .container { width: 90%; max-width: var(--container-width); margin: 0 auto; }
  .section { padding: 4rem 0; }
  .section-title { text-align: center; margin-bottom: 3rem; font-size: 2.2rem; position: relative; }
  .section-title::after { content: ''; display: block; width: 60px; height: 4px; background-color: var(--clr-primary); margin: 0.5rem auto 0; border-radius: var(--radius-sm); }
  
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
  .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 2rem; }
  
  /* =========================================================================
     Navigation
     ========================================================================= */
  .header { background-color: var(--clr-bg-card); box-shadow: var(--shadow-soft); position: sticky; top: 0; z-index: 1000; }
  .nav { display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 0; }
  .nav__logo { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; color: var(--clr-text-main); display: flex; align-items: center; gap: 0.5rem; flex: 1; justify-content: flex-start; }
  .nav__logo span { color: var(--clr-primary); }
  
  .nav__links { display: flex; flex: 2; justify-content: center; }
  .nav__links ul { display: flex; gap: 2rem; align-items: center; }
  .nav__link, .nav__links a { font-weight: 500; font-size: 1rem; }
  .nav__link:hover, .nav__links a:hover { color: var(--clr-primary); }
  
  .header-actions { display: flex; flex: 1; justify-content: flex-end; align-items: center; }
  .hamburger { display: none; cursor: pointer; background: none; border: none; font-size: 1.5rem; color: var(--clr-text-main); margin-left:1.5rem; }
  
  /* =========================================================================
     Buttons
     ========================================================================= */
  .btn { display: inline-block; padding: 0.8rem 1.8rem; border-radius: var(--radius-button); font-weight: 600; font-family: var(--font-heading); text-align: center; cursor: pointer; transition: all 0.3s ease; border: none; }
  .btn-primary { background-color: var(--clr-primary); color: #fff; }
  .btn-primary:hover { background-color: #6bb0d5; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .btn-secondary { background-color: var(--clr-secondary); color: #fff; }
  .btn-secondary:hover { background-color: #eba3a6; transform: translateY(-2px); box-shadow: var(--shadow-hover); }
  .btn-outline { background-color: transparent; border: 2px solid var(--clr-primary); color: var(--clr-primary); }
  .btn-outline:hover { background-color: var(--clr-primary); color: #fff; }
  
  .btn-affiliate { background-color: var(--clr-amazon); color: #fff; width: 100%; display: flex; justify-content: center; align-items: center; gap: 0.5rem; font-size: 1.1rem; padding: 1rem; border-radius: var(--radius-md); box-shadow: 0 4px 6px rgba(255, 153, 0, 0.3); transition: all 0.2s; }
  .btn-affiliate:hover { background-color: #e68a00; transform: scale(1.02); box-shadow: 0 6px 12px rgba(255, 153, 0, 0.4); }
  
  /* =========================================================================
     Hero Section
     ========================================================================= */
  .hero { background: linear-gradient(135deg, rgba(128,196,233,0.1) 0%, rgba(255,182,185,0.1) 100%); padding: 6rem 0; text-align: center; }
  .hero__content { max-width: 800px; margin: 0 auto; }
  .hero__title { font-size: 3.5rem; margin-bottom: 1rem; }
  .hero__subtitle { font-size: 1.2rem; color: var(--clr-text-muted); margin-bottom: 2.5rem; }
  .hero__buttons { display: flex; gap: 1rem; justify-content: center; }
  
  /* =========================================================================
     Cards (Categories, Blog Posts, standard Products)
     ========================================================================= */
  .card { background-color: var(--clr-bg-card); border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-card); transition: transform 0.3s ease, box-shadow 0.3s ease; display: flex; flex-direction: column; }
  .card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
  .card__img { width: 100%; height: 250px; object-fit: cover; }
  .card__content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
  .card__title { font-size: 1.2rem; margin-bottom: 0.5rem; }
  .card__desc { color: var(--clr-text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; flex-grow: 1; }
  
  /* =========================================================================
     Trust / Badges
     ========================================================================= */
  .badge { display: inline-block; padding: 0.4rem 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; font-weight: 700; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; }
  .badge-top { background-color: var(--clr-accent); color: #8a762c; }
  .badge-budget { background-color: var(--clr-success); color: #436e33; }
  .badge-premium { background-color: var(--clr-primary); color: #fff; }
  
  /* =========================================================================
     WordPress Content Area / SEO Elements
     ========================================================================= */
  .site-main { padding: 4rem 0; }
  .site-main p { margin-bottom: 1.5rem; font-size: 1.1rem; color: #4a5568; }
  .site-main h2, .site-main h3 { margin-top: 2rem; }
  
  .breadcrumbs { font-size: 0.9rem; color: var(--clr-text-muted); margin-bottom: 2rem; padding: 1rem; background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow-soft); }
  .breadcrumbs a { color: var(--clr-primary); font-weight: 600; }
  .breadcrumbs a:hover { text-decoration: underline; }
  
  /* Additional Background Colors for Sections */
  .bg-pastel-blue { background-color: rgba(128,196,233, 0.15); }
  .bg-pastel-pink { background-color: rgba(255,182,185, 0.15); }
  .bg-pastel-yellow { background-color: rgba(252,227,138, 0.25); }
  
  /* =========================================================================
     High-Converting Affiliate Product Block (Shortcode)
     ========================================================================= */
  .affiliate-block { display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; background: #fff; padding: 2rem; border-radius: var(--radius-md); border: 2px solid #edf2f7; box-shadow: var(--shadow-card); margin: 3rem 0; position: relative; transition: all 0.3s ease; }
  .affiliate-block:hover { border-color: var(--clr-primary); box-shadow: var(--shadow-hover); }
  .affiliate-block__badge { position: absolute; top: -15px; left: 20px; background: var(--clr-amazon); color: #fff; padding: 0.4rem 1.2rem; border-radius: 20px; font-weight: bold; font-size: 0.9rem; z-index: 10; font-family: var(--font-heading); box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
  .affiliate-block__image { display: flex; align-items: center; justify-content: center; background: #f8fafc; border-radius: var(--radius-sm); padding: 1rem; }
  .affiliate-block__image img { max-height: 300px; object-fit: contain; }
  .affiliate-block__content { display: flex; flex-direction: column; }
  .affiliate-block__title { font-size: 1.8rem; margin-bottom: 0.5rem; }
  .affiliate-block__stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 1rem; display: flex; gap: 0.2rem; align-items: center; }
  .affiliate-block__stars span { color: var(--clr-text-muted); font-size: 0.9rem; margin-left: 0.5rem; font-family: var(--font-body); font-weight: 600; }
  .affiliate-block__desc { font-size: 1.05rem; margin-bottom: 1.5rem; color: #4a5568; }
  
  /* Pros & Cons */
  .affiliate-block__features { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
  .feature-box { padding: 1.5rem; border-radius: var(--radius-sm); }
  .feature-box.pros { background-color: var(--clr-pros); border-left: 4px solid #4ade80; }
  .feature-box.cons { background-color: var(--clr-cons); border-left: 4px solid #f87171; }
  .feature-box h4 { font-size: 1.1rem; margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.5rem; }
  .feature-box.pros h4 { color: #166534; }
  .feature-box.cons h4 { color: #991b1b; }
  .feature-box ul { padding-left: 0; }
  .feature-box li { margin-bottom: 0.5rem; display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.95rem; }
  
  /* =========================================================================
     Comparison Table (Shortcode)
     ========================================================================= */
  .comparison-table-wrapper { overflow-x: auto; border-radius: var(--radius-md); box-shadow: var(--shadow-card); margin: 3rem 0; border: 1px solid #e2e8f0; }
  .comparison-table { width: 100%; border-collapse: collapse; background-color: #fff; text-align: left; }
  .comparison-table th, .comparison-table td { padding: 1.5rem 1.2rem; border-bottom: 1px solid #e2e8f0; vertical-align: middle; }
  .comparison-table th { background-color: #f8fafc; color: #1e293b; font-family: var(--font-heading); font-size: 1.1rem; text-transform: uppercase; font-weight: 800; }
  .comparison-table td { font-size: 1rem; color: #475569; }
  .comparison-table tr:hover { background-color: #f8fafc; }
  .comp-image { max-width: 80px; border-radius: 8px; margin-bottom: 0.5rem; }
  .comp-title { font-weight: 700; color: #1e293b; display: block; font-size: 1.1rem; }
  .comp-rating { color: #fbbf24; }
  
  /* =========================================================================
     Footer
     ========================================================================= */
  .footer { background-color: var(--clr-bg-card); padding: 4rem 0 2rem; border-top: 1px solid #eee; margin-top: 4rem; }
  .footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 3rem; margin-bottom: 3rem; }
  .footer__col h4 { font-size: 1.2rem; margin-bottom: 1.5rem; }
  .footer__links { display: flex; flex-direction: column; gap: 0.8rem; color: var(--clr-text-muted); }
  .footer__links a:hover { color: var(--clr-primary); }
  .footer__bottom { text-align: center; padding-top: 2rem; border-top: 1px solid #eee; color: var(--clr-text-muted); font-size: 0.9rem; }
  
  .affiliate-disclaimer { background-color: #fff9e6; border: 1px solid #fce38a; padding: 1rem; border-radius: var(--radius-sm); font-size: 0.85rem; color: #665b32; margin-bottom: 1.5rem; text-align: center; }
  
  /* =========================================================================
     Dark Mode overrides
     ========================================================================= */
  :root[data-theme='dark'] {
    --clr-bg-main: #121212;
    --clr-bg-card: #1e1e1e;
    --clr-text-main: #f1f5f9;
    --clr-text-muted: #94a3b8;
    --shadow-soft: 0 4px 6px rgba(0,0,0,0.5);
    --shadow-card: 0 4px 12px rgba(0,0,0,0.6);
    --clr-primary: #5da0c2;
    --clr-amazon: #ff9900;
    --clr-pros: #064e3b;
    --clr-cons: #7f1d1d;
  }
  
  :root[data-theme='dark'] .header { border-bottom: 1px solid #333; }
  :root[data-theme='dark'] .footer { border-top: 1px solid #333; }
  :root[data-theme='dark'] .affiliate-block { border-color: #333; background: #1e1e1e; }
  :root[data-theme='dark'] .comparison-table th { background-color: #2d3748; color: #f1f5f9; border-color: #333; }
  :root[data-theme='dark'] .comparison-table td { border-bottom: 1px solid #333; color: #cbd5e1; border-color: #333; }
  :root[data-theme='dark'] .comparison-table tr:hover { background-color: #2d3748; }
  :root[data-theme='dark'] .breadcrumbs { background: #1e1e1e; }
  :root[data-theme='dark'] .comp-title { color: #f1f5f9; }
  :root[data-theme='dark'] .bg-light { background-color: #1a1a1a; }
  :root[data-theme='dark'] .bg-pastel-blue { background-color: rgba(128,196,233, 0.05); }
  :root[data-theme='dark'] .bg-pastel-pink { background-color: rgba(255,182,185, 0.05); }
  :root[data-theme='dark'] .bg-pastel-yellow { background-color: rgba(252,227,138, 0.05); }
  :root[data-theme='dark'] .section-title::after { background-color: var(--clr-primary); }

  /* =========================================================================
     Media Queries
     ========================================================================= */
  @media (max-width: 900px) {
    .affiliate-block { grid-template-columns: 1fr; }
    .affiliate-block__features { grid-template-columns: 1fr; }
  }
  @media (max-width: 768px) {
    .section { padding: 2.5rem 0; }
    .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
    
    .nav__links { display: none; position: absolute; top: 100%; left: 0; width: 100%; background-color: var(--clr-bg-card); flex-direction: column; padding: 2rem; box-shadow: var(--shadow-soft); }
    .nav__links.active { display: flex; text-align: center; }
    .nav__links ul { flex-direction: column; width: 100%; align-items: center; }
    .nav__link, .nav__links a { display: block; padding: 0.8rem 0; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.05); }
    
    .hamburger { display: block; }
    
    .hero { padding: 4rem 0 3rem; }
    .hero__title { font-size: 2.2rem; }
    .hero__subtitle { font-size: 1.05rem; margin-bottom: 2rem; }
    .hero__buttons { flex-direction: column; width: 100%; }
    .hero__buttons .btn { width: 100%; margin-bottom: 0.5rem; }
    
    .footer__grid { gap: 2rem; grid-template-columns: 1fr; text-align: center; }
    .footer { padding: 3rem 0 2rem; margin-top: 2rem; }
    .footer__col .nav__logo { justify-content: center; }
    
    .comparison-table th, .comparison-table td { padding: 1rem 0.8rem; font-size: 0.9rem; }
    .comp-image { max-width: 60px; }
    
    .affiliate-block { padding: 1.2rem; }
    .affiliate-block__title { font-size: 1.4rem; }
    .affiliate-block__image img { max-height: 200px; }
  }
  @media (max-width: 480px) {
    .section { padding: 1.5rem 0; }
    .hero { padding: 2.5rem 0 2rem; }
    .hero__title { font-size: 1.6rem; }
    .hero__subtitle { font-size: 0.95rem; }
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .card__img { height: 200px; }
    .btn { padding: 0.8rem 1.2rem; }
    .comparison-table { min-width: 500px; } /* Ensures horizontal scroll trigger on tiny screens */
  }
