:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #2d2a26;
  --text-secondary: #6b6560;
  --primary: #c96f4a;
  --primary-hover: #b85e3a;
  --primary-light: #fdf0ea;
  --accent: #d4a574;
  --border: #e8e2dc;
  --border-light: #f0ebe6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 999px;
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.hidden { display: none !important; }

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

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

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

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

.animate-fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-scale-in { animation: scaleIn 0.5s ease-out forwards; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

.card { animation: fadeInUp 0.6s ease-out forwards; }
.card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3) { animation-delay: 0.3s; }
.card:nth-child(4) { animation-delay: 0.4s; }
.card:nth-child(5) { animation-delay: 0.5s; }
.card:nth-child(6) { animation-delay: 0.6s; }
.card:nth-child(7) { animation-delay: 0.7s; }
.card:nth-child(8) { animation-delay: 0.8s; }
.card:nth-child(9) { animation-delay: 0.9s; }

.hero h1 { animation: fadeInUp 0.8s ease-out; }
.hero p { animation: fadeInUp 0.8s ease-out 0.2s forwards; opacity: 0; }
.hero-actions { animation: fadeInUp 0.8s ease-out 0.4s forwards; opacity: 0; }
.hero-stats { animation: fadeInUp 0.8s ease-out 0.6s forwards; opacity: 0; }

.category-card { animation: scaleIn 0.5s ease-out forwards; }
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

.feature { animation: fadeIn 0.6s ease-out forwards; }
.feature:nth-child(1) { animation-delay: 0.1s; }
.feature:nth-child(2) { animation-delay: 0.2s; }
.feature:nth-child(3) { animation-delay: 0.3s; }
.feature:nth-child(4) { animation-delay: 0.4s; }

/* ===== HEADER ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 248, 245, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem; font-weight: 700; color: var(--text);
}
.brand-icon { font-size: 1.6rem; }
.main-nav {
  display: flex; gap: 8px; align-items: center;
}
.main-nav a {
  padding: 8px 16px; border-radius: var(--radius-full);
  font-weight: 500; font-size: 0.95rem; color: var(--text-secondary);
  transition: all var(--transition);
}
.main-nav a:hover { color: var(--text); background: var(--border-light); }
.main-nav a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative; background: none; border: none;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full); color: var(--text);
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--border-light); }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--primary); color: #fff;
  width: 20px; height: 20px; border-radius: 50%;
  font-size: 0.7rem; font-weight: 700;
  display: none; align-items: center; justify-content: center;
}
.menu-toggle {
  display: none; background: none; border: none;
  width: 44px; height: 44px; flex-direction: column;
  align-items: center; justify-content: center; gap: 5px;
}
.menu-toggle span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero {
  padding: 80px 0 100px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f5e6d3 50%, #fdf0ea 100%);
  text-align: center;
}
.hero-content { max-width: 700px; margin: 0 auto; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: var(--radius-full);
  background: var(--primary); color: #fff;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.5px;
  text-transform: uppercase; margin-bottom: 24px;
}
.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 800; line-height: 1.15;
  margin-bottom: 20px;
}
.hero-accent { color: var(--primary); }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.hero-stats {
  display: flex; gap: 48px; justify-content: center;
}
.hero-stats .stat { text-align: center; }
.hero-stats .stat strong {
  display: block; font-size: 1.6rem; font-weight: 700; color: var(--text);
}
.hero-stats .stat span { font-size: 0.85rem; color: var(--text-secondary); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border: none; border-radius: var(--radius-full);
  font-weight: 600; font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none;
  min-height: 48px; position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
}
.btn:hover::before { opacity: 1; }
.btn:hover { transform: translateY(-3px) scale(1.02); text-decoration: none; box-shadow: 0 10px 25px rgba(201, 111, 74, 0.25); }
.btn:active { transform: translateY(-1px) scale(0.98); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-ghost { background: transparent; color: var(--text-secondary); }
.btn-ghost:hover { color: var(--primary); background: var(--primary-light); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; min-height: 40px; }
.btn-full { width: 100%; }

/* ===== SECTIONS ===== */
.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; margin-bottom: 40px;
}
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700;
}
.section-header p { color: var(--text-secondary); margin-top: 4px; }

/* ===== CATEGORIES ===== */
.categories { padding: 80px 0; }
.category-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.category-card {
  display: block; padding: 32px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  text-align: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}
.category-card:hover {
  border-color: var(--primary); box-shadow: 0 15px 35px rgba(201, 111, 74, 0.12);
  transform: translateY(-8px) scale(1.03);
}
.category-icon { 
  font-size: 3.5rem; margin-bottom: 16px; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.category-card:hover .category-icon { transform: scale(1.2) rotate(10deg); }
.category-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.category-card p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== SHOP GRID ===== */
.shop-section { padding: 60px 0 80px; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters select {
  padding: 10px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 0.9rem;
  cursor: pointer; min-height: 44px;
}
.shop-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); position: relative;
  opacity: 0;
}
.card:hover { 
  box-shadow: 0 20px 40px rgba(201, 111, 74, 0.15); 
  transform: translateY(-8px) scale(1.02); 
  border-color: var(--primary);
}
.card-link { color: inherit; display: block; }
.card-link:hover { text-decoration: none; }
.card-image {
  height: 240px; display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; background-size: cover; background-position: center;
}
.card-image::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201, 111, 74, 0.1) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
}
.card:hover .card-image::after { opacity: 1; }
.card-emoji { font-size: 5rem; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.card:hover .card-emoji { transform: scale(1.15) rotate(5deg); }
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card:hover .card-image img { transform: scale(1.1); }
.card-body { padding: 20px; }
.card-tags { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.tag {
  font-size: 0.7rem; font-weight: 600; text-transform: uppercase;
  padding: 4px 10px; border-radius: var(--radius-full); letter-spacing: 0.3px;
}
.tag-beginner { background: #e8f5e9; color: #2e7d32; }
.tag-intermediate { background: #fff3e0; color: #ef6c00; }
.tag-advanced { background: #fce4ec; color: #c62828; }
.tag-category { background: var(--border-light); color: var(--text-secondary); }
.card h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: 8px; line-height: 1.3; }
.card-desc { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 16px; line-height: 1.5; }
.card-footer { display: flex; align-items: center; justify-content: space-between; }
.card-price { font-weight: 700; font-size: 1.2rem; color: var(--primary); }
.card-rating { font-size: 0.85rem; color: var(--text-secondary); }
.card-rating span { font-size: 0.8rem; }
.card-add-btn {
  display: block; width: 100%; padding: 14px;
  background: var(--primary-light); color: var(--primary);
  border: none; border-top: 1px solid var(--border);
  font-weight: 600; font-size: 0.9rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative; overflow: hidden;
}
.card-add-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(201, 111, 74, 0.1) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.3s;
}
.card-add-btn:hover::before { opacity: 1; }
.card-add-btn:hover { background: var(--primary); color: #fff; transform: scale(1.02); }
.no-results { text-align: center; padding: 60px 0; color: var(--text-secondary); font-size: 1.1rem; }

/* ===== FEATURES ===== */
.features { padding: 60px 0; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.feature { 
  text-align: center; padding: 20px; 
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  opacity: 0;
}
.feature:hover { transform: translateY(-5px); }
.feature-icon { 
  font-size: 2.5rem; margin-bottom: 16px; 
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.feature:hover .feature-icon { transform: scale(1.3) rotate(15deg); }
.feature h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature p { font-size: 0.9rem; color: var(--text-secondary); }

/* ===== NEWSLETTER ===== */
.newsletter { padding: 80px 0; }
.newsletter-content { text-align: center; max-width: 500px; margin: 0 auto; }
.newsletter h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; margin-bottom: 12px;
}
.newsletter p { color: var(--text-secondary); margin-bottom: 24px; }
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; }
.newsletter-form input {
  flex: 1; padding: 14px 20px; border: 2px solid var(--border);
  border-radius: var(--radius-full); font-size: 1rem; min-width: 0;
  transition: all 0.3s ease;
}
.newsletter-form input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-light); transform: scale(1.02); }
.newsletter-msg { color: var(--primary); font-weight: 500; margin-top: 16px; animation: fadeInUp 0.5s ease-out; }

/* ===== CART SIDEBAR ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  z-index: 200; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease; backdrop-filter: blur(4px);
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }
.cart-sidebar {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 400px; max-width: 90vw;
  background: var(--surface); z-index: 201;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex; flex-direction: column;
}
.cart-sidebar.open { transform: translateX(0); }
.cart-sidebar-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.cart-sidebar-header h3 { font-family: 'Playfair Display', serif; font-size: 1.3rem; }
.cart-close {
  width: 40px; height: 40px; border: none; background: var(--border-light);
  border-radius: 50%; font-size: 1.4rem; display: flex;
  align-items: center; justify-content: center; color: var(--text);
}
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-item {
  display: flex; gap: 14px; padding: 16px 0;
  border-bottom: 1px solid var(--border-light); align-items: flex-start;
}
.cart-item-image {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; flex-shrink: 0;
}
.cart-item-info { flex: 1; }
.cart-item-info h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.cart-item-info p { font-size: 0.85rem; color: var(--text-secondary); }
.cart-item-qty {
  display: flex; align-items: center; gap: 10px; margin-top: 8px;
}
.cart-item-qty button {
  width: 28px; height: 28px; border: 1px solid var(--border);
  border-radius: 50%; background: var(--surface); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.cart-item-qty span { font-weight: 600; min-width: 20px; text-align: center; }
.cart-item-remove {
  border: none; background: none; color: var(--text-secondary);
  font-size: 1.1rem; padding: 4px;
}
.cart-item-remove:hover { color: #c62828; }
.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1.1rem; font-weight: 700; margin-bottom: 16px;
}
.cart-footer .btn { margin-bottom: 8px; }
.empty-cart {
  text-align: center; padding: 60px 20px; color: var(--text-secondary);
}
.empty-cart .btn { margin-top: 16px; }

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px);
  background: var(--text); color: #fff;
  padding: 14px 28px; border-radius: var(--radius-full);
  font-weight: 500; font-size: 0.9rem; z-index: 300;
  opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ===== DETAIL PAGE ===== */
.detail-section { padding: 40px 0 80px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 500; color: var(--text-secondary); margin-bottom: 32px;
  transition: all 0.3s ease;
}
.back-link:hover { color: var(--primary); transform: translateX(-5px); }
.detail-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.detail-image {
  border-radius: var(--radius); height: 480px;
  display: flex; align-items: center; justify-content: center;
  font-size: 8rem; position: sticky; top: 100px;
  overflow: hidden; animation: fadeIn 0.6s ease-out;
}
.detail-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.detail-image:hover img { transform: scale(1.05); }
.detail-tags { display: flex; gap: 8px; margin-bottom: 16px; animation: fadeInUp 0.6s ease-out 0.1s forwards; opacity: 0; }
.detail-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem; font-weight: 700; margin-bottom: 12px;
  animation: fadeInUp 0.6s ease-out 0.2s forwards; opacity: 0;
}
.detail-price { font-size: 1.6rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; animation: fadeInUp 0.6s ease-out 0.3s forwards; opacity: 0; }
.detail-rating { color: var(--text-secondary); margin-bottom: 20px; animation: fadeInUp 0.6s ease-out 0.4s forwards; opacity: 0; }
.detail-desc { font-size: 1.05rem; color: var(--text-secondary); margin-bottom: 28px; line-height: 1.7; animation: fadeInUp 0.6s ease-out 0.5s forwards; opacity: 0; }
.detail-info h3 {
  font-size: 0.9rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.5px; color: var(--text-secondary); margin: 24px 0 10px;
}
.detail-info ul { list-style: none; padding: 0; }
.detail-info ul li { 
  padding: 6px 0; padding-left: 20px; position: relative; 
  font-size: 0.95rem; color: var(--text-secondary);
  transition: all 0.3s ease;
}
.detail-info ul li:hover { transform: translateX(5px); color: var(--primary); }
.detail-info ul li::before { content: '•'; position: absolute; left: 0; color: var(--primary); font-weight: 700; }
.detail-actions { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; animation: fadeInUp 0.6s ease-out 0.6s forwards; opacity: 0; }

/* ===== PAGES ===== */
.page { padding: 60px 0 80px; }
.page-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; font-weight: 700; margin-bottom: 24px;
}
.page-content { max-width: 700px; }
.page-content h2 { font-size: 1.4rem; font-weight: 600; margin: 32px 0 12px; }
.page-content p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8; }
.page-content ul { padding-left: 24px; margin-bottom: 16px; }
.page-content li { color: var(--text-secondary); margin-bottom: 8px; line-height: 1.7; }

/* ===== CONTACT ===== */
.contact-form { max-width: 520px; margin-top: 24px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.95rem; }
.form-group input, .form-group textarea {
  width: 100%; padding: 12px 16px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 1rem; 
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.form-group input:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); 
  box-shadow: 0 0 0 4px var(--primary-light); transform: scale(1.02);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-msg { color: var(--primary); font-weight: 500; margin-top: 12px; animation: fadeInUp 0.5s ease-out; }

/* ===== YARN GRID ===== */
.yarn-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; margin-top: 40px;
}
.yarn-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  animation: fadeInUp 0.6s ease-out forwards;
}
.yarn-card:nth-child(1) { animation-delay: 0.1s; }
.yarn-card:nth-child(2) { animation-delay: 0.2s; }
.yarn-card:nth-child(3) { animation-delay: 0.3s; }
.yarn-card:nth-child(4) { animation-delay: 0.4s; }
.yarn-card:nth-child(5) { animation-delay: 0.5s; }
.yarn-card:nth-child(6) { animation-delay: 0.6s; }
.yarn-card:hover { 
  box-shadow: 0 15px 35px rgba(201, 111, 74, 0.12); 
  transform: translateY(-8px) scale(1.02); 
}
.yarn-card-image {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-size: 4rem; overflow: hidden;
}
.yarn-card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.yarn-card:hover .yarn-card-image img { transform: scale(1.1); }
.yarn-card-body { padding: 18px; }
.yarn-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.yarn-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.yarn-meta span {
  font-size: 0.75rem; padding: 3px 8px; background: var(--border-light);
  border-radius: var(--radius-full); color: var(--text-secondary);
  transition: all 0.3s ease;
}
.yarn-meta span:hover { background: var(--primary-light); color: var(--primary); }
.yarn-card-footer { display: flex; align-items: center; justify-content: space-between; }
.yarn-price { font-weight: 700; font-size: 1.1rem; color: var(--primary); }

/* ===== FOOTER ===== */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 60px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { color: var(--text-secondary); margin-top: 12px; font-size: 0.9rem; line-height: 1.6; }
.footer-links h4 { font-weight: 600; margin-bottom: 16px; font-size: 0.95rem; }
.footer-links a { 
  display: block; color: var(--text-secondary); padding: 4px 0; font-size: 0.9rem; 
  transition: all 0.3s ease;
}
.footer-links a:hover { color: var(--primary); transform: translateX(5px); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 0.85rem; color: var(--text-secondary);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a:hover { color: var(--primary); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero h1 { font-size: 2.5rem; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-image { height: 300px; font-size: 5rem; position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav {
    position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
    background: var(--surface); flex-direction: column;
    padding: 24px; gap: 0; display: none;
    border-top: 1px solid var(--border);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 14px 16px; font-size: 1.05rem; border-radius: var(--radius-sm); }
  .menu-toggle { display: flex; }
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 24px; }
  .shop-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-actions { flex-direction: column; }
  .hero-stats { flex-direction: column; gap: 16px; }
  .newsletter-form { flex-direction: column; }
  .category-grid { grid-template-columns: 1fr 1fr; }
}
