/*
Theme Name: Cozy Stitch Studio Pro
Theme URI: https://example.com/cozy-stitch-studio-pro
Author: Terry Hill
Description: A polished knitting and handmade goods WordPress theme with WooCommerce support for patterns, products, kits, and digital downloads.
Version: 2.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: cozy-stitch-pro
Tags: ecommerce, woocommerce, blog, handmade, knitting, responsive
*/

:root{
  --cream:#fbf4ea;
  --linen:#f4e5d4;
  --oat:#dfc7ad;
  --wool:#cfa98e;
  --rose:#ad6f68;
  --berry:#8e4f59;
  --sage:#87946f;
  --moss:#5f6f52;
  --ink:#352d28;
  --muted:#71645c;
  --white:#fffaf4;
  --shadow:0 20px 48px rgba(53,45,40,.13);
  --soft-shadow:0 12px 28px rgba(53,45,40,.09);
}

*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Georgia","Times New Roman",serif;
  background:var(--cream);
  color:var(--ink);
  line-height:1.65;
}
a{color:inherit}
img{max-width:100%;height:auto}

.site-header{
  position:sticky;
  top:0;
  z-index:999;
  background:rgba(255,250,244,.95);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(53,45,40,.08);
}
.header-inner{
  max-width:1180px;
  margin:0 auto;
  padding:18px 22px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:22px;
}
.brand{
  text-decoration:none;
  font-weight:800;
  font-size:1.45rem;
  letter-spacing:.03em;
}
.brand span{
  display:block;
  color:var(--muted);
  font-size:.75rem;
  font-weight:400;
  letter-spacing:.12em;
  text-transform:uppercase;
}
.main-nav ul{
  list-style:none;
  display:flex;
  gap:22px;
  padding:0;
  margin:0;
}
.main-nav a{
  text-decoration:none;
  font-size:.96rem;
  color:var(--ink);
}
.header-actions{
  display:flex;
  gap:10px;
  align-items:center;
}
.btn,
.wp-block-button__link,
button,
input[type="submit"],
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{
  border:none;
  border-radius:999px;
  padding:13px 22px;
  background:var(--berry);
  color:#fff;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
}
.btn.secondary{
  background:transparent;
  color:var(--ink);
  border:1px solid rgba(53,45,40,.35);
}
.cart-link{
  text-decoration:none;
  border:1px solid rgba(53,45,40,.18);
  border-radius:999px;
  padding:10px 14px;
  background:var(--white);
  font-size:.92rem;
}

.hero{
  background:
    radial-gradient(circle at 85% 12%, rgba(173,111,104,.2), transparent 26%),
    radial-gradient(circle at 15% 80%, rgba(135,148,111,.22), transparent 30%),
    linear-gradient(135deg,var(--cream),var(--linen));
  padding:78px 22px 84px;
}
.hero-inner{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.08fr .92fr;
  gap:58px;
  align-items:center;
}
.eyebrow{
  color:var(--berry);
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  font-size:.78rem;
}
.hero h1{
  font-size:clamp(2.7rem,6vw,5.8rem);
  line-height:1;
  margin:14px 0 22px;
}
.hero p{
  font-size:1.18rem;
  max-width:650px;
  color:var(--muted);
}
.hero-buttons{display:flex;gap:14px;flex-wrap:wrap;margin-top:30px}
.hero-card{
  background:var(--white);
  padding:26px;
  border-radius:34px;
  box-shadow:var(--shadow);
}
.yarn-art{
  min-height:420px;
  border-radius:28px;
  position:relative;
  overflow:hidden;
  background:
    repeating-radial-gradient(circle at 45% 44%, #f4d9c5 0 8px, #d5968f 9px 14px, #87946f 15px 21px, #f4e5d4 22px 28px);
}
.yarn-art:before{
  content:"";
  position:absolute;
  inset:38px;
  border-radius:50%;
  border:18px solid rgba(255,250,244,.9);
}
.yarn-art:after{
  content:"PDF Patterns • Kits • Handmade Gifts";
  position:absolute;
  left:28px;
  right:28px;
  bottom:28px;
  background:rgba(255,250,244,.92);
  border-radius:20px;
  padding:18px;
  text-align:center;
  font-weight:800;
  box-shadow:var(--soft-shadow);
}

.trust-strip{
  background:var(--ink);
  color:var(--cream);
  padding:16px 22px;
}
.trust-inner{
  max-width:1180px;
  margin:0 auto;
  display:flex;
  justify-content:center;
  gap:36px;
  flex-wrap:wrap;
  font-size:.95rem;
}

.section{
  max-width:1180px;
  margin:0 auto;
  padding:76px 22px;
}
.section-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 42px;
}
.section-head h2{
  font-size:clamp(2rem,4vw,3.2rem);
  line-height:1.1;
  margin:0 0 12px;
}
.section-head p{color:var(--muted);font-size:1.06rem}

.category-grid,
.feature-grid,
.product-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:24px;
}
.category-card,
.feature-card,
.product-card{
  background:var(--white);
  border-radius:28px;
  box-shadow:var(--soft-shadow);
  overflow:hidden;
}
.category-card{
  min-height:230px;
  padding:28px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  position:relative;
}
.category-card:before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(135deg,rgba(207,169,142,.85),rgba(135,148,111,.72));
  opacity:.85;
}
.category-card:nth-child(2):before{background:linear-gradient(135deg,rgba(173,111,104,.85),rgba(244,229,212,.8))}
.category-card:nth-child(3):before{background:linear-gradient(135deg,rgba(95,111,82,.82),rgba(223,199,173,.82))}
.category-card > *{position:relative}
.category-card h3{font-size:1.55rem;margin:0 0 8px}
.category-card p{margin:0;color:#433933}
.category-card a{font-weight:800;margin-top:16px;text-decoration:none}

.product-card .product-image{
  min-height:230px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:4.3rem;
  background:linear-gradient(135deg,var(--linen),var(--oat));
}
.product-content{padding:24px}
.product-content h3{font-size:1.35rem;margin:0 0 8px}
.product-content p{color:var(--muted);margin:0 0 16px}
.price{font-weight:900;color:var(--berry);font-size:1.08rem}

.split{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:36px;
  align-items:center;
}
.panel{
  background:var(--white);
  border-radius:34px;
  padding:38px;
  box-shadow:var(--soft-shadow);
}
.panel h2{font-size:2.4rem;line-height:1.12;margin:0 0 18px}
.check-list{padding:0;margin:22px 0 0;list-style:none}
.check-list li{margin:10px 0;padding-left:28px;position:relative}
.check-list li:before{content:"✓";position:absolute;left:0;color:var(--moss);font-weight:bold}

.newsletter{
  margin:0 auto 76px;
  max-width:1180px;
  background:linear-gradient(135deg,var(--moss),var(--sage));
  color:white;
  border-radius:38px;
  padding:58px 22px;
  text-align:center;
}
.newsletter h2{font-size:2.5rem;margin:0 0 10px}
.newsletter form{margin-top:24px;display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.newsletter input[type="email"]{
  border:none;
  border-radius:999px;
  padding:15px 18px;
  min-width:320px;
}

.site-main{
  max-width:1180px;
  margin:0 auto;
  padding:52px 22px;
}
.page-title{
  font-size:3rem;
  margin:0 0 24px;
}

.site-footer{
  background:var(--ink);
  color:var(--cream);
  padding:46px 22px;
}
.footer-inner{
  max-width:1180px;
  margin:0 auto;
  display:grid;
  grid-template-columns:1.2fr .8fr .8fr;
  gap:28px;
}
.footer-inner a{color:var(--cream);text-decoration:none}
.footer-inner ul{list-style:none;padding:0;margin:0}
.footer-inner li{margin:8px 0}
.footer-bottom{
  max-width:1180px;
  margin:28px auto 0;
  padding-top:24px;
  border-top:1px solid rgba(255,250,244,.18);
  text-align:center;
  font-size:.92rem;
  color:rgba(251,244,234,.78);
}

.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product{
  background:var(--white);
  border-radius:24px;
  padding:18px;
  box-shadow:var(--soft-shadow);
}
.woocommerce span.onsale{background:var(--berry)}
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price{color:var(--berry)}
.woocommerce-message,
.woocommerce-info{
  border-top-color:var(--sage);
}
.woocommerce-message::before,
.woocommerce-info::before{color:var(--sage)}

@media(max-width:900px){
  .header-inner{flex-direction:column}
  .main-nav ul{flex-wrap:wrap;justify-content:center}
  .hero-inner,.split,.footer-inner{grid-template-columns:1fr}
  .category-grid,.feature-grid,.product-grid{grid-template-columns:1fr}
  .hero{padding-top:48px}
  .yarn-art{min-height:320px}
}
