:root {
  --black: #050505;
  --white: #ffffff;
  --muted: #666666;
  --line: #111111;
  --soft: #f7f3eb;
  --border: #d8d8d8;
  --ribbon-height: 42px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--white);
  color: var(--black);
  font-family: "Inter", Arial, sans-serif;
  letter-spacing: 0;
  animation: pageFade 520ms ease both;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.social-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1040;
  height: var(--ribbon-height);
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.social-ribbon .container {
  height: 100%;
}

.social-ribbon-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.trending-ribbon {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--white);
}

.trending-label {
  flex: 0 0 auto;
  border-right: 1px solid rgba(255, 255, 255, 0.32);
  padding-right: 14px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.trending-marquee {
  min-width: 0;
  width: min(52vw, 560px);
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
}

.trending-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  min-width: max-content;
  animation: trendingScroll 24s linear infinite;
  will-change: transform;
}

.trending-set {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.trending-track a {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  place-items: initial;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 600;
  flex: 0 0 auto;
  min-width: 230px;
  max-width: 230px;
  padding-right: 34px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.trending-track a::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: auto 10px auto 0;
  border-radius: 50%;
  background: currentColor;
}

.trending-track a:hover {
  background: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: none;
}

.social-ribbon-links {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.social-ribbon-links a {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.social-ribbon-links a:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
  transform: translateY(-1px);
}

.social-ribbon svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-navbar {
  top: var(--ribbon-height);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(18px);
  padding: 18px 0;
  transition: padding 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-navbar.navbar-scrolled {
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(0, 0, 0, 0.14);
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

.navbar-brand {
  color: var(--black);
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  color: var(--black);
  font-size: 0.92rem;
  font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
  color: var(--black);
  text-decoration: none;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 4px;
  height: 1px;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.cart-pill {
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 8px 16px !important;
}

.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--black);
  color: var(--white);
  font-size: 0.75rem;
  transition: transform 220ms ease;
}

.cart-count.cart-bump {
  animation: cartBump 420ms ease;
}

.hero-section {
  min-height: 100vh;
  padding: 172px 0 70px;
  display: flex;
  align-items: center;
}

.hero-carousel-section {
  position: relative;
  overflow: hidden;
}

.hero-carousel-section .carousel,
.hero-carousel-section .carousel-inner,
.hero-carousel-section .carousel-item {
  min-height: calc(100vh - 200px);
}

.hero-carousel-section .carousel-item {
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1) 360ms, opacity 900ms ease 360ms;
}

.hero-carousel-section .carousel-item .container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.hero-section .eyebrow,
.hero-section h1,
.hero-section .hero-copy,
.hero-section .btn {
  animation: heroRise 760ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-section h1.handwriting-ready {
  animation: none;
}

.handwriting-letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.18em) rotate(-2deg);
  filter: blur(2px);
  animation: writeLetter 520ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--letter-index) * 42ms + 140ms);
  transform-origin: left bottom;
}

.handwriting-word {
  display: inline-block;
  white-space: nowrap;
}

.handwriting-word + .handwriting-word {
  margin-left: 0.28em;
}

.carousel-item.active .handwriting-letter {
  animation-name: writeLetter;
}

.hero-carousel-section .carousel-item:not(.active) .eyebrow,
.hero-carousel-section .carousel-item:not(.active) h1,
.hero-carousel-section .carousel-item:not(.active) .hero-copy,
.hero-carousel-section .carousel-item:not(.active) .btn {
  animation: none;
}

.hero-carousel-section .carousel-item:not(.active) .handwriting-letter {
  opacity: 0;
  animation: none;
}

.hero-section h1 {
  animation-delay: 90ms;
}

.hero-section .hero-copy {
  animation-delay: 180ms;
}

.hero-section .btn {
  animation-delay: 280ms;
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
.page-title {
  max-width: 900px;
  font-size: clamp(2.75rem, 7vw, 6.8rem);
  font-weight: 800;
  line-height: 0.95;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  font-weight: 800;
  line-height: 1;
}

.hero-copy,
.lead {
  max-width: 680px;
  color: #2d2d2d;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.7;
}

.hero-copy {
  margin: 26px 0 34px;
}

.btn {
  position: relative;
  border-radius: 999px;
  font-weight: 700;
  padding: 13px 24px;
  overflow: hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.14);
}

.btn:active,
.mini-button:active,
.quantity-control button:active {
  transform: translateY(1px) scale(0.98);
}

.btn-dark {
  background: var(--black);
  border-color: var(--black);
}

.btn-outline-dark {
  border-color: var(--black);
  color: var(--black);
}

.hero-image,
.about-image,
.product-detail-image {
  overflow: hidden;
  border: 1px solid var(--black);
  border-radius: 18px;
  background: var(--soft);
  transform: translateZ(0);
}

.hero-image img {
  width: 100%;
  height: min(72vh, 720px);
  object-fit: cover;
  animation: slowFloat 9s ease-in-out infinite alternate;
  transform-origin: center;
}

.hero-image {
  animation: imageReveal 880ms cubic-bezier(0.22, 1, 0.36, 1) 180ms both;
}

.hero-indicators {
  right: auto;
  bottom: 18px;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  gap: 10px;
}

.hero-indicators [data-bs-target] {
  width: 34px;
  height: 3px;
  margin: 0;
  border: 0;
  border-radius: 999px;
  background: var(--black);
  opacity: 0.22;
  transition: width 220ms ease, opacity 220ms ease;
}

.hero-indicators .active {
  width: 58px;
  opacity: 1;
}

.section-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  padding: 30px 18px;
  border-right: 1px solid var(--line);
  transition: background 220ms ease, transform 220ms ease;
}

.stat-item:hover {
  background: var(--soft);
  transform: translateY(-2px);
}

.stat-item:last-child {
  border-right: 0;
}

.stat-item span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.stat-item strong {
  display: block;
  margin-top: 8px;
  font-size: 1.05rem;
}

.section-space {
  padding: 95px 0;
}

.page-top {
  padding-top: 172px;
}

.section-heading,
.shop-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-heading a,
.text-link {
  position: relative;
  border-bottom: 1px solid var(--black);
  font-weight: 700;
  padding-bottom: 5px;
}

.section-heading a:hover,
.text-link:hover {
  color: var(--black);
}

.product-card {
  height: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: transform 260ms cubic-bezier(0.22, 1, 0.36, 1), border-color 260ms ease, box-shadow 260ms ease;
}

.product-card:hover {
  border-color: var(--black);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.12);
  transform: translateY(-8px);
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 1.08;
  object-fit: cover;
  background: var(--soft);
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1), filter 520ms ease;
}

.product-card:hover img {
  filter: contrast(1.04) saturate(1.03);
  transform: scale(1.045);
}

.product-card-body {
  padding: 20px;
}

.product-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 10px 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.price {
  font-weight: 800;
}

.mini-button {
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 9px 14px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.mini-button:hover {
  background: var(--black);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.soft-band {
  background: var(--soft);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}

.feature-photo {
  width: 100%;
  border: 1px solid var(--black);
  border-radius: 16px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.feature-photo:hover {
  transform: scale(1.02);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--black);
  border-left: 1px solid var(--black);
}

.category-grid a {
  min-height: 140px;
  padding: 22px;
  border-right: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  display: flex;
  align-items: end;
  font-size: 1.2rem;
  font-weight: 800;
  transition: background 220ms ease, color 220ms ease, padding 220ms ease;
}

.category-grid a:hover {
  background: var(--black);
  color: var(--white);
  padding-bottom: 30px;
}

.site-footer {
  border-top: 1px solid var(--black);
  padding: 30px 0;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-image img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.about-image:hover img,
.product-detail-image:hover img {
  transform: scale(1.025);
}

.about-crochet-motion {
  min-height: 430px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    radial-gradient(circle at center, rgba(247, 243, 235, 0.9), rgba(255, 255, 255, 0)) border-box;
}

.crochet-orbit {
  position: relative;
  width: min(58vw, 420px);
  aspect-ratio: 1;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--soft);
  animation: crochetPulse 4.8s ease-in-out infinite;
}

.crochet-orbit::before,
.crochet-orbit::after {
  content: "";
  position: absolute;
  inset: 14%;
  border: 1px solid var(--black);
  border-radius: 50%;
}

.crochet-orbit::after {
  inset: 31%;
  background: var(--white);
}

.stitch {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 42px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  animation: stitchBreathe 2.8s ease-in-out infinite;
}

.stitch-1 {
  transform: translate(-50%, -50%) rotate(0deg) translateX(116px);
}

.stitch-2 {
  transform: translate(-50%, -50%) rotate(45deg) translateX(116px);
  animation-delay: 90ms;
}

.stitch-3 {
  transform: translate(-50%, -50%) rotate(90deg) translateX(116px);
  animation-delay: 180ms;
}

.stitch-4 {
  transform: translate(-50%, -50%) rotate(135deg) translateX(116px);
  animation-delay: 270ms;
}

.stitch-5 {
  transform: translate(-50%, -50%) rotate(180deg) translateX(116px);
  animation-delay: 360ms;
}

.stitch-6 {
  transform: translate(-50%, -50%) rotate(225deg) translateX(116px);
  animation-delay: 450ms;
}

.stitch-7 {
  transform: translate(-50%, -50%) rotate(270deg) translateX(116px);
  animation-delay: 540ms;
}

.stitch-8 {
  transform: translate(-50%, -50%) rotate(315deg) translateX(116px);
  animation-delay: 630ms;
}

.crochet-hook {
  position: absolute;
  top: 16%;
  left: 51%;
  width: 2px;
  height: 64%;
  background: var(--black);
  border-radius: 999px;
  transform: rotate(38deg);
  transform-origin: center;
  animation: hookMove 3.6s ease-in-out infinite;
  z-index: 2;
}

.crochet-hook::before {
  content: "";
  position: absolute;
  top: -11px;
  left: -10px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--black);
  border-left: 2px solid var(--black);
  border-radius: 50% 0 0 0;
}

.crochet-thread {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54%;
  height: 54%;
  border: 2px solid var(--black);
  border-left-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(18deg);
  animation: threadDraw 3.6s ease-in-out infinite;
  z-index: 1;
}

.small-title {
  margin-bottom: 18px;
  border-top: 1px solid var(--black);
  padding-top: 20px;
  font-size: 1.25rem;
}

.shop-layout {
  display: grid;
  grid-template-columns: minmax(230px, 280px) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  margin-top: 24px;
}

.shop-sidebar {
  position: sticky;
  top: 116px;
  border: 1px solid var(--black);
  border-radius: 16px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.92);
}

.filter-block {
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.filter-label {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.shop-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--black);
}

.shop-results-bar p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

#shop-products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

#shop-products > [class*="col-"] {
  width: auto;
  max-width: none;
  padding: 0;
}

.form-range {
  accent-color: var(--black);
}

.form-range::-webkit-slider-thumb {
  background: var(--black);
}

.form-range::-moz-range-thumb {
  background: var(--black);
  border: 0;
}

.product-detail-image img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.product-detail-panel {
  position: sticky;
  top: 120px;
}

.detail-list {
  margin: 32px 0;
  padding: 0;
  border-top: 1px solid var(--black);
  list-style: none;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.cart-row {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  animation: cartRowIn 360ms ease both;
  transition: background 180ms ease;
}

.cart-row:hover {
  background: rgba(247, 243, 235, 0.55);
}

.cart-row img {
  width: 96px;
  height: 104px;
  border: 1px solid var(--border);
  border-radius: 10px;
  object-fit: cover;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--black);
  border-radius: 999px;
  overflow: hidden;
}

.quantity-control button {
  width: 38px;
  height: 36px;
  border: 0;
  background: transparent;
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.quantity-control button:hover {
  background: var(--black);
  color: var(--white);
}

.quantity-control span {
  min-width: 36px;
  text-align: center;
  font-weight: 700;
}

.remove-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: underline;
  transition: color 180ms ease;
}

.remove-button:hover {
  color: var(--black);
}

.cart-summary,
.contact-form {
  border: 1px solid var(--black);
  border-radius: 16px;
  padding: 28px;
  transition: box-shadow 220ms ease, transform 220ms ease;
}

.cart-summary:hover,
.contact-form:hover {
  box-shadow: 0 24px 52px rgba(0, 0, 0, 0.08);
  transform: translateY(-3px);
}

.cart-summary {
  position: sticky;
  top: 120px;
}

.cart-summary p {
  margin: 24px 0;
  color: var(--muted);
  line-height: 1.7;
}

.empty-state {
  border: 1px solid var(--black);
  border-radius: 16px;
  padding: 42px;
}

.form-control,
.form-select {
  border-color: var(--black);
  border-radius: 10px;
  padding: 13px 14px;
  transition: box-shadow 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--black);
  box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}

.contact-lines {
  margin-top: 36px;
  border-top: 1px solid var(--black);
}

.contact-lines p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.contact-lines span {
  color: var(--muted);
  font-weight: 700;
}

.toast-note {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 2000;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: var(--white);
  padding: 13px 18px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
  font-size: 0.9rem;
  font-weight: 700;
  animation: toastIn 260ms ease both;
}

.tracking-card {
  border: 1px solid var(--black);
  border-radius: 16px;
  padding: 28px;
}

.tracking-badge {
  align-self: start;
  border: 1px solid var(--black);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.tracking-progress {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin: 34px 0;
}

.tracking-step {
  position: relative;
  color: var(--muted);
}

.tracking-step::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 18px;
  right: -8px;
  height: 1px;
  background: var(--border);
}

.tracking-step:last-child::before {
  display: none;
}

.tracking-step span {
  position: relative;
  z-index: 1;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--black);
  border-radius: 50%;
  background: var(--white);
}

.tracking-step p {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 700;
}

.tracking-step.is-complete {
  color: var(--black);
}

.tracking-step.is-complete span,
.tracking-step.is-complete::before {
  background: var(--black);
}

.reveal-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-item {
  transition-delay: var(--reveal-delay, 0ms);
}

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

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

@keyframes writeLetter {
  0% {
    opacity: 0;
    transform: translateY(0.18em) rotate(-2deg) scaleX(0.82);
    filter: blur(2px);
  }
  55% {
    opacity: 1;
    transform: translateY(0) rotate(1deg) scaleX(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotate(0) scaleX(1);
    filter: blur(0);
  }
}

@keyframes imageReveal {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slowFloat {
  from {
    transform: scale(1.02) translateY(0);
  }
  to {
    transform: scale(1.06) translateY(-12px);
  }
}

@keyframes cartBump {
  0%,
  100% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.22);
  }
}

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

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes crochetPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.07);
  }
  50% {
    transform: scale(1.025);
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.1);
  }
}

@keyframes stitchBreathe {
  0%,
  100% {
    opacity: 0.68;
    scale: 0.96;
  }
  50% {
    opacity: 1;
    scale: 1.06;
  }
}

@keyframes hookMove {
  0%,
  100% {
    transform: rotate(34deg) translateY(-4px);
  }
  50% {
    transform: rotate(43deg) translateY(7px);
  }
}

@keyframes threadDraw {
  0%,
  100% {
    clip-path: inset(0 0 0 46%);
    opacity: 0.55;
  }
  50% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

@keyframes trendingScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 991px) {
  .site-navbar {
    padding: 12px 0;
  }

  .navbar-collapse {
    padding-top: 16px;
  }

  .trending-marquee {
    width: min(45vw, 360px);
  }

  .section-heading,
  .shop-header {
    align-items: start;
    flex-direction: column;
  }

  .shop-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .shop-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }

  .filter-block {
    margin: 0;
  }

  .shop-sidebar .btn {
    align-self: end;
  }

  .hero-section {
    min-height: auto;
    padding: 147px 0 82px;
  }

  .hero-carousel-section .carousel,
  .hero-carousel-section .carousel-inner,
  .hero-carousel-section .carousel-item,
  .hero-carousel-section .carousel-item .container {
    min-height: auto;
  }

  .hero-section h1 {
    font-size: clamp(2.55rem, 8vw, 4.7rem);
    line-height: 1;
  }

  .hero-copy {
    margin: 18px 0 24px;
    font-size: 1rem;
    line-height: 1.55;
  }

  .hero-image img {
    height: 420px;
  }

  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 575px) {
  .hero-section {
    padding: 134px 0 80px;
  }

  .social-ribbon-inner {
    gap: 10px;
  }

  .trending-label {
    padding-right: 10px;
    font-size: 0.68rem;
  }

  .trending-marquee {
    width: min(34vw, 170px);
  }

  .trending-track {
    animation-duration: 20s;
  }

  .trending-track a {
    font-size: 0.76rem;
    min-width: 180px;
    max-width: 180px;
    padding-right: 24px;
  }

  .social-ribbon-links a {
    width: 27px;
    height: 27px;
  }

  .section-space {
    padding: 68px 0;
  }

  .page-top {
    padding-top: 147px;
  }

  .hero-image img {
    height: 310px;
  }

  .about-crochet-motion {
    min-height: 330px;
  }

  .crochet-orbit {
    width: min(82vw, 300px);
  }

  .stitch {
    width: 62px;
    height: 31px;
  }

  .stitch-1 {
    transform: translate(-50%, -50%) rotate(0deg) translateX(82px);
  }

  .stitch-2 {
    transform: translate(-50%, -50%) rotate(45deg) translateX(82px);
  }

  .stitch-3 {
    transform: translate(-50%, -50%) rotate(90deg) translateX(82px);
  }

  .stitch-4 {
    transform: translate(-50%, -50%) rotate(135deg) translateX(82px);
  }

  .stitch-5 {
    transform: translate(-50%, -50%) rotate(180deg) translateX(82px);
  }

  .stitch-6 {
    transform: translate(-50%, -50%) rotate(225deg) translateX(82px);
  }

  .stitch-7 {
    transform: translate(-50%, -50%) rotate(270deg) translateX(82px);
  }

  .stitch-8 {
    transform: translate(-50%, -50%) rotate(315deg) translateX(82px);
  }

  .hero-section h1 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .hero-copy {
    font-size: 0.96rem;
  }

  .hero-section .btn {
    padding: 11px 18px;
    font-size: 0.95rem;
  }

  .hero-indicators {
    bottom: -54px;
  }

  .category-grid {
    grid-template-columns: 1fr;
  }

  .category-grid a {
    min-height: 94px;
  }

  .stat-item {
    border-right: 0;
  }

  .cart-row {
    grid-template-columns: 78px 1fr;
  }

  .cart-row img {
    width: 78px;
    height: 86px;
  }

  .cart-actions {
    grid-column: 1 / -1;
  }

  .shop-sidebar {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .shop-results-bar {
    align-items: start;
    flex-direction: column;
  }

  .tracking-progress {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .tracking-step::before {
    top: 22px;
    bottom: -18px;
    left: 10px;
    width: 1px;
    height: auto;
    right: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal-up {
    opacity: 1;
    transform: none;
  }
}
