@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,500&family=DM+Sans:wght@400;500;700&family=Caveat:wght@600;700&display=swap');

:root {
  --sage: #E7EDDF;
  --sage-deep: #A9BF9E;
  --plum: #3D2C3A;
  --rose: #C97D8D;
  --rose-deep: #B15F71;
  --mustard: #D9A441;
  --cream-thread: #FBF9F5;
  --line: rgba(61, 44, 58, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body: 'DM Sans', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius: 14px;
}

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

body {
  font-family: var(--font-body);
  background: var(--cream-thread);
  color: var(--plum);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---------- Chain-stitch motif (signature element) ---------- */
.stitch-divider {
  width: 100%;
  height: 14px;
  background-image: radial-gradient(circle, var(--rose-deep) 3px, transparent 3.5px);
  background-size: 22px 14px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

.stitch-rule {
  border: none;
  border-top: 2px dashed var(--line);
  margin: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--cream-thread);
  border-bottom: 2px dashed var(--line);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  font-family: var(--font-script);
  font-size: 2rem;
  font-weight: 700;
  color: var(--rose-deep);
  letter-spacing: 0.5px;
}

.header-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: transform 0.15s ease;
}
.icon-btn:hover { transform: scale(1.08); }

/* ---------- Hero ---------- */
.hero {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rose-deep);
  margin-bottom: 12px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  color: var(--plum);
  margin-bottom: 18px;
}

.hero h1 em {
  font-style: italic;
  color: var(--rose-deep);
}

.hero p {
  font-size: 1.05rem;
  color: rgba(61,44,58,0.75);
  max-width: 46ch;
  margin-bottom: 26px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--rose-deep);
  color: var(--cream-thread);
  box-shadow: 0 4px 0 #8f4655;
}
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 #8f4655; }

.btn-secondary {
  background: transparent;
  color: var(--plum);
  border: 2px dashed var(--line);
}
.btn-secondary:hover { background: var(--sage); }

.hero-visual {
  aspect-ratio: 1/1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--sage) 0%, var(--sage-deep) 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual .yarn-icon {
  font-size: 5rem;
  transform: rotate(-6deg);
}

.hero-visual img {
  width: 82%;
  height: 82%;
  object-fit: contain;
  border-radius: 50%;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 3px dashed rgba(61,44,58,0.25);
  border-radius: 18px;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  justify-content: center;
  font-size: 0.85rem;
  color: rgba(61,44,58,0.7);
  font-weight: 500;
}
.trust-strip span { display: flex; align-items: center; gap: 6px; }

/* ---------- Section wrapper ---------- */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 24px;
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 600;
  margin-bottom: 8px;
}

.section-sub {
  color: rgba(61,44,58,0.65);
  margin-bottom: 30px;
  max-width: 60ch;
}

/* ---------- Category pills ---------- */
.category-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}

.pill {
  padding: 9px 20px;
  border-radius: 100px;
  background: var(--sage);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--plum);
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.pill.active {
  background: var(--rose-deep);
  color: var(--cream-thread);
}

.pill:hover:not(.active) { border-color: var(--rose-deep); }

/* ---------- Product grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 24px;
}

.product-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(61,44,58,0.12);
}

.product-photo {
  aspect-ratio: 1/1;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  color: var(--sage-deep);
  position: relative;
}

.product-photo img { width: 100%; height: 100%; object-fit: cover; }

.product-info { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }

.product-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
}

.product-desc {
  font-size: 0.85rem;
  color: rgba(61,44,58,0.62);
  flex: 1;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* price tag - shaped like a yarn label with a notch, the other signature detail */
.price-tag {
  position: relative;
  background: var(--mustard);
  color: var(--plum);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 6px 14px 6px 18px;
  border-radius: 0 8px 8px 0;
}
.price-tag::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: var(--mustard);
  border-radius: 50%;
  clip-path: polygon(0 0, 50% 50%, 0 100%);
}
.price-tag::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  background: var(--cream-thread);
  border-radius: 50%;
}

.order-btn {
  background: #25D366;
  color: white;
  padding: 9px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.order-btn:hover { filter: brightness(1.05); }

.empty-state {
  text-align: center;
  padding: 40px;
  color: rgba(61,44,58,0.5);
  font-style: italic;
}

/* ---------- About ---------- */
.about-section {
  background: var(--sage);
}

.about-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-inner blockquote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  line-height: 1.5;
  color: var(--plum);
  border-left: 3px dashed var(--rose-deep);
  padding-left: 20px;
}

.about-inner cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-script);
  font-size: 1.3rem;
  font-style: normal;
  color: var(--rose-deep);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 2px dashed var(--line);
  padding: 34px 24px 26px;
  text-align: center;
  color: rgba(61,44,58,0.6);
  font-size: 0.85rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 14px;
  font-weight: 700;
  color: var(--plum);
}

/* ---------- Sticky WhatsApp button (mobile-friendly) ---------- */
.float-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
  z-index: 60;
}

/* ---------- Responsive ---------- */
@media (max-width: 780px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .hero-visual { order: -1; max-width: 260px; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner { padding: 14px 16px; gap: 8px; }
  .logo { font-size: 1.3rem; white-space: nowrap; }
  .header-cta { gap: 6px; }
  .icon-btn { width: 34px; height: 34px; font-size: 1rem; flex-shrink: 0; }
  .header-cta .btn { padding: 8px 14px; font-size: 0.78rem; white-space: nowrap; }

  .hero-actions { flex-wrap: nowrap; gap: 8px; }
  .hero-actions .btn {
    flex: 1;
    justify-content: center;
    padding: 10px 8px;
    font-size: 0.8rem;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .logo { font-size: 1.1rem; }
  .header-cta .btn { padding: 7px 10px; font-size: 0.72rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

:focus-visible {
  outline: 3px solid var(--rose-deep);
  outline-offset: 2px;
}
