/* CozyFitLiving — Main Stylesheet */
:root{
  --primary:#2d8659;
  --primary-dark:#1f5e3f;
  --accent:#ff9f43;
  --amazon:#ff9900;
  --amazon-dark:#e88b00;
  --bg:#fdfcf9;
  --bg-soft:#f5f1ea;
  --text:#2c2c2c;
  --text-light:#666;
  --border:#e8e4dc;
  --decor:#c8a27a;
  --fitness:#e76f51;
  --wellness:#7fb069;
  --shadow:0 4px 20px rgba(0,0,0,.06);
  --shadow-hover:0 8px 30px rgba(0,0,0,.12);
  --radius:12px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
section[id]{scroll-margin-top:80px}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.65;
  font-weight:400;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
h1,h2,h3,h4,.logo{
  font-family:'Playfair Display',Georgia,serif;
  font-weight:700;
  letter-spacing:-.01em;
}
.hero h1,.article-hero h1,.section-title{letter-spacing:-.02em}
.btn,.main-nav a,.tag,.badge{font-family:'Inter',sans-serif;letter-spacing:.01em}
.container{max-width:1200px;margin:0 auto;padding:0 20px}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}

/* Header */
.site-header{
  background:#fff;
  border-bottom:1px solid var(--border);
  position:sticky;top:0;z-index:100;
  box-shadow:0 2px 10px rgba(0,0,0,.04);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 20px}
.logo{font-size:1.6rem;font-weight:800;color:var(--primary)}
.logo span{color:var(--accent)}
.main-nav ul{display:flex;gap:30px;list-style:none}
.main-nav a{font-weight:500;color:var(--text);transition:color .2s}
.main-nav a:hover{color:var(--primary)}
.menu-toggle{display:none;background:none;border:none;font-size:1.5rem;cursor:pointer}

/* Hero */
.hero{
  position:relative;
  padding:60px 0;
  text-align:center;
  background-image:url('https://images.unsplash.com/photo-1616486338812-3dadae4b4ace?w=1600&q=80');
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  min-height:340px;
  display:flex;
  align-items:center;
  overflow:hidden;
}
.hero-overlay{
  position:absolute;
  top:0;left:0;right:0;bottom:0;
  background:linear-gradient(135deg,rgba(31,94,63,.82) 0%,rgba(45,134,89,.75) 100%);
  z-index:1;
}
.hero-content{position:relative;z-index:2}

/* Floating background shapes */
.floating-shapes{position:absolute;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.shape{
  position:absolute;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  backdrop-filter:blur(2px);
  animation:float 15s ease-in-out infinite;
}
.shape.s1{width:120px;height:120px;top:10%;left:5%;animation-delay:0s}
.shape.s2{width:80px;height:80px;top:60%;left:15%;animation-delay:2s;background:rgba(255,159,67,.15)}
.shape.s3{width:150px;height:150px;top:20%;right:10%;animation-delay:4s}
.shape.s4{width:60px;height:60px;bottom:15%;right:20%;animation-delay:6s;background:rgba(255,159,67,.12)}
.shape.s5{width:100px;height:100px;top:50%;left:50%;animation-delay:3s}
@keyframes float{
  0%,100%{transform:translate(0,0) rotate(0deg)}
  25%{transform:translate(30px,-40px) rotate(90deg)}
  50%{transform:translate(-20px,-60px) rotate(180deg)}
  75%{transform:translate(-40px,-20px) rotate(270deg)}
}

/* Carousel */
.carousel-section{padding:70px 0;background:#fff;overflow:hidden}
.carousel-wrap{position:relative;display:flex;align-items:center;gap:15px}
.carousel-track{
  display:flex;
  gap:20px;
  overflow:hidden;
  scroll-behavior:smooth;
  flex:1;
}
.carousel-track .product-card{
  flex:0 0 calc(25% - 15px);
  min-width:250px;
  animation:slideIn .6s ease-out;
}
.carousel-btn{
  background:var(--primary);
  color:#fff;
  border:none;
  width:45px;
  height:45px;
  border-radius:50%;
  cursor:pointer;
  font-size:1.1rem;
  box-shadow:0 4px 15px rgba(0,0,0,.15);
  transition:all .2s;
  flex-shrink:0;
  z-index:5;
}
.carousel-btn:hover{background:var(--primary-dark);transform:scale(1.1)}
.carousel-dots{display:flex;gap:8px;justify-content:center;margin-top:25px}
.carousel-dots .dot{
  width:10px;height:10px;border-radius:50%;
  background:#ddd;cursor:pointer;transition:all .3s;
}
.carousel-dots .dot.active{background:var(--primary);width:30px;border-radius:5px}

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

/* Fade-in scroll animation */
.fade-in{opacity:0;transform:translateY(30px);transition:all .7s ease}
.fade-in.visible{opacity:1;transform:translateY(0)}

/* Product card hover pulse */
.product-card{position:relative}
.product-card::before{
  content:'';
  position:absolute;
  inset:-2px;
  border-radius:14px;
  background:linear-gradient(135deg,var(--primary),var(--accent));
  opacity:0;
  z-index:-1;
  transition:opacity .3s;
}
.product-card:hover::before{opacity:.4}

/* Pulsing badge */
.badge{animation:pulse-badge 2s ease-in-out infinite}
@keyframes pulse-badge{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.08)}
}
.hero h1{
  font-size:2.4rem;
  margin-bottom:14px;
  color:#fff;
  line-height:1.2;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}
.hero p{
  font-size:1.1rem;
  color:#f5f1ea;
  max-width:600px;
  margin:0 auto 24px;
  text-shadow:0 1px 6px rgba(0,0,0,.25);
}

/* Buttons */
.btn{
  display:inline-block;
  padding:14px 32px;
  border-radius:8px;
  font-weight:600;
  transition:all .2s;
  border:none;
  cursor:pointer;
  font-size:1rem;
}
.btn-primary{background:var(--accent);color:#fff;box-shadow:0 4px 15px rgba(255,159,67,.4)}
.btn-primary:hover{background:#e8871a;transform:translateY(-2px);box-shadow:0 6px 20px rgba(255,159,67,.5)}
.btn-amazon{background:var(--amazon);color:#fff;width:100%;text-align:center}
.btn-amazon:hover{background:var(--amazon-dark)}
.btn-category{
  background:var(--primary);
  color:#fff;
  padding:12px 24px;
  margin-top:15px;
  display:inline-block;
  font-size:.95rem;
}
.btn-category:hover{background:var(--primary-dark);transform:translateY(-2px)}

/* Section Title */
.section-title{
  text-align:center;
  font-size:2.2rem;
  margin-bottom:50px;
  color:var(--primary-dark);
}

/* Categories */
.categories{padding:80px 0;background:var(--bg)}
.category-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.category-card{
  background:#fff;
  padding:40px 30px;
  border-radius:var(--radius);
  text-align:center;
  box-shadow:var(--shadow);
  transition:all .3s;
  border-top:4px solid transparent;
}
.category-card:hover{transform:translateY(-8px);box-shadow:var(--shadow-hover)}
.category-card{display:flex;flex-direction:column;align-items:center}
.category-card.decor{border-top-color:var(--decor)}
.category-card.fitness{border-top-color:var(--fitness)}
.category-card.wellness{border-top-color:var(--wellness)}
.category-icon{
  font-size:2.2rem;
  margin-bottom:22px;
  width:80px;
  height:80px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  box-shadow:0 8px 20px rgba(0,0,0,.1);
}
.category-card.decor .category-icon{background:linear-gradient(135deg,#c8a27a,#a8845a)}
.category-card.fitness .category-icon{background:linear-gradient(135deg,#e76f51,#c94f30)}
.category-card.wellness .category-icon{background:linear-gradient(135deg,#7fb069,#5a8a48)}
.category-card h3{font-size:1.5rem;margin-bottom:12px;color:var(--text)}
.category-card p{color:var(--text-light);margin-bottom:20px}
.link-arrow{color:var(--primary);font-weight:600}

/* Featured Products */
.featured{padding:80px 0;background:var(--bg-soft)}
.product-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:25px}
.product-card{
  background:#fff;
  padding:25px 20px;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  position:relative;
  transition:all .3s;
}
.product-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-hover)}
.product-image{
  text-align:center;
  background:#fff;
  border-radius:8px;
  margin-bottom:15px;
  height:220px;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.product-image img{
  max-width:100%;
  max-height:100%;
  object-fit:contain;
  transition:transform .3s;
}
.product-image img:hover{transform:scale(1.05)}
.product-image .emoji-fallback{
  font-size:5rem;
  background:var(--bg-soft);
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  justify-content:center;
}
.badge{
  position:absolute;
  top:15px;right:15px;
  background:var(--accent);
  color:#fff;
  padding:5px 12px;
  border-radius:20px;
  font-size:.75rem;
  font-weight:600;
}
.product-card h3{font-size:1.05rem;margin:10px 0;min-height:50px}
.rating{color:#f5b700;font-size:.9rem;margin-bottom:8px}
.rating span{color:var(--text-light)}
.price{font-size:1.4rem;font-weight:700;color:var(--primary);margin-bottom:15px}

/* Articles */
.articles{padding:80px 0;background:var(--bg)}
.article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px}
.article-card{
  background:#fff;
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:all .3s;
}
.article-card:hover{transform:translateY(-5px);box-shadow:var(--shadow-hover)}
.article-img{
  height:200px;
  display:flex;align-items:center;justify-content:center;
  font-size:5rem;
}
.decor-bg{background:linear-gradient(135deg,#f5e6d3,#e8c8a3)}
.fitness-bg{background:linear-gradient(135deg,#fde0d9,#f4a896)}
.wellness-bg{background:linear-gradient(135deg,#e0f0d8,#a8d8a0)}
.article-body{padding:25px}
.tag{
  display:inline-block;
  background:var(--bg-soft);
  color:var(--primary);
  padding:4px 12px;
  border-radius:20px;
  font-size:.75rem;
  font-weight:600;
  margin-bottom:12px;
  text-transform:uppercase;
}
.article-body h3{font-size:1.25rem;margin-bottom:10px;line-height:1.3}
.article-body h3 a:hover{color:var(--primary)}
.article-body p{color:var(--text-light);font-size:.95rem}

/* Newsletter */
.newsletter{
  padding:80px 0;
  background:linear-gradient(135deg,var(--primary),var(--primary-dark));
  color:#fff;
  text-align:center;
}
.newsletter h2{font-size:2rem;margin-bottom:15px}
.newsletter p{margin-bottom:30px;opacity:.9}
.newsletter-form{display:flex;gap:10px;max-width:500px;margin:0 auto}
.newsletter-form input{
  flex:1;
  padding:14px 20px;
  border:none;
  border-radius:8px;
  font-size:1rem;
}

/* Footer */
.site-footer{background:#1a1a1a;color:#ccc;padding:60px 0 20px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:40px;margin-bottom:40px}
.site-footer h4{color:#fff;margin-bottom:18px;font-size:1.1rem}
.site-footer ul{list-style:none}
.site-footer li{margin-bottom:8px}
.site-footer a:hover{color:var(--accent)}
.footer-bottom{
  border-top:1px solid #333;
  padding-top:20px;
  text-align:center;
  font-size:.9rem;
  color:#888;
}

/* Article page */
.article-hero{
  padding:60px 0 40px;
  background:var(--bg-soft);
  text-align:center;
}
.article-hero h1{font-size:2.5rem;max-width:800px;margin:0 auto 15px;color:var(--primary-dark)}
.article-meta{color:var(--text-light);font-size:.95rem}
.article-content{max-width:800px;margin:0 auto;padding:60px 20px}
.article-content h2{font-size:1.8rem;margin:40px 0 20px;color:var(--primary-dark)}
.article-content h3{font-size:1.4rem;margin:30px 0 15px}
.article-content p{margin-bottom:18px;font-size:1.05rem}
.article-content ul{margin:15px 0 20px 25px}
.article-content li{margin-bottom:8px}
.disclosure-box{
  background:#fff8e1;
  border-left:4px solid var(--accent);
  padding:15px 20px;
  border-radius:6px;
  margin:25px 0;
  font-size:.9rem;
}
.product-review{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:25px;
  margin:30px 0;
  box-shadow:var(--shadow);
}
.product-review h3{margin-top:0;color:var(--primary-dark)}
.pros-cons{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:20px 0}
.pros,.cons{padding:15px;border-radius:8px}
.pros{background:#e8f5e9}
.cons{background:#ffebee}
.pros h4{color:#2e7d32;margin-bottom:10px}
.cons h4{color:#c62828;margin-bottom:10px}

/* Responsive */
@media (max-width:900px){
  .category-grid,.product-grid,.article-grid,.footer-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:2.2rem}
  .main-nav{display:none}
  .main-nav.open{display:block;position:absolute;top:70px;left:0;right:0;background:#fff;padding:20px}
  .main-nav.open ul{flex-direction:column;gap:15px}
  .menu-toggle{display:block}
}
@media (max-width:600px){
  .category-grid,.product-grid,.article-grid,.footer-grid{grid-template-columns:1fr}
  .newsletter-form{flex-direction:column}
  .pros-cons{grid-template-columns:1fr}
}
