/* TrikoMik — עיצוב ראשי */
:root {
  --bg: #faf5ee;
  --bg-soft: #f3ead9;
  --card: #fffdf9;
  --ink: #2b2233;
  --ink-soft: #6b5d78;
  --purple: #6d4a9e;
  --purple-deep: #472b6b;
  --lavender: #cbb6e8;
  --gold: #c9a24b;
  --radius: 22px;
  --shadow: 0 10px 30px -12px rgba(58, 34, 92, 0.25);
  --font-display: "Frank Ruhl Libre", "Heebo", serif;
  --font-body: "Heebo", "Rubik", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  direction: rtl;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* subtle knit texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(109, 74, 158, 0.025) 22px 24px),
    repeating-linear-gradient(90deg, transparent 0 22px, rgba(109, 74, 158, 0.025) 22px 24px);
}

.container { width: min(1160px, 92%); margin-inline: auto; position: relative; z-index: 1; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 245, 238, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(109, 74, 158, 0.12);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}
.site-header img.logo { height: 52px; width: auto; }
nav.top-nav { display: flex; gap: 1.4rem; font-weight: 500; font-size: 0.95rem; }
nav.top-nav a { position: relative; padding: 0.3rem 0; color: var(--ink-soft); transition: color 0.2s; }
nav.top-nav a:hover, nav.top-nav a.active { color: var(--purple-deep); }
nav.top-nav a::after {
  content: "";
  position: absolute;
  bottom: 0; right: 0;
  width: 0; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: width 0.25s;
}
nav.top-nav a:hover::after, nav.top-nav a.active::after { width: 100%; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid transparent;
  transition: all 0.22s ease;
}
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 8px 20px -8px rgba(109, 74, 158, 0.55); }
.btn-primary:hover { background: var(--purple-deep); transform: translateY(-2px); }
.btn-ghost { background: transparent; border-color: rgba(109, 74, 158, 0.4); color: var(--purple-deep); }
.btn-ghost:hover { background: rgba(109, 74, 158, 0.08); }
.btn-outline { background: #fff; border-color: rgba(109, 74, 158, 0.35); color: var(--purple-deep); }
.btn-outline:hover { border-color: var(--purple); background: rgba(109, 74, 158, 0.05); }
.btn-block { display: flex; width: 100%; margin-bottom: 0.7rem; }
.btn-block:last-child{margin-bottom:0}

/* ---------- hero ---------- */
.hero {
  padding: 4.2rem 0 4.8rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2.4rem;
}
.hero-eyebrow {
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.4vw, 4.2rem);
  line-height: 1.12;
  font-weight: 700;
  color: var(--purple-deep);
  margin-bottom: 1.1rem;
}
.hero-title-accent { color: var(--purple); }
.hero-text { font-size: 1.13rem; color: var(--ink-soft); max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }

.hero-art { position: relative; min-height: 480px; }
.yarn-circle {
  position: absolute;
  inset: 4% 2%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(203,182,232,.55), rgba(240,215,230,.5) 55%, rgba(250,245,238,0) 75%);
  filter: blur(6px);
}
.hero-img {
  position: absolute;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 8px solid #fff;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.hero-img-1 { width: 62%; top: 6%; right: 20%; rotate: 2.5deg; aspect-ratio: 1; }
.hero-img-2 { width: 46%; bottom: 4%; right: 1%; rotate: -6deg; aspect-ratio: 5/6; }
.hero-img-3 { width: 38%; bottom: 6%; left: 1%; rotate: 5deg; aspect-ratio: 5/6; }
.hero-img:hover { transform: scale(1.04) rotate(0deg); z-index: 3; }

/* ---------- about ---------- */
.about { margin-block: 2rem 3rem; }
.about-card {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.2rem;
  width: 100%;
  background: var(--card);
  border-radius: 28px;
  padding: 2.4rem 2.6rem;
  border: 1px solid rgba(109, 74, 158, 0.12);
  box-shadow: 0 20px 50px -30px rgba(58, 34, 92, 0.35);
  display: flex;
}
.about-logo { width: 130px; flex-shrink: 0; filter: drop-shadow(0 4px 10px rgba(58,34,92,.18)); }
.about-card h2 { font-family: var(--font-display); font-size: 1.75rem; color: var(--purple-deep); margin-bottom: 0.6rem; }
.about-card p { color: var(--ink-soft); max-width: 46rem; margin-inline: auto; }
.about-social { display: flex; gap: 1rem; margin-top: 1.2rem; flex-wrap: wrap; justify-content: center; }
.about-social a {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.9rem; font-weight: 600; color: var(--purple-deep);
  background: rgba(109, 74, 158, 0.08);
  padding: 0.5rem 0.95rem; border-radius: 999px;
  transition: background 0.2s;
}
.about-social a:hover { background: rgba(109, 74, 158, 0.16); }

/* ---------- gallery ---------- */
.gallery { margin-block: 3.5rem; }
.gallery-head { text-align: center; margin-bottom: 2.2rem; }
.gallery-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--purple-deep);
  margin-bottom: 0.4rem;
}
.gallery-head p { color: var(--ink-soft); }
.filter-chips { display: flex; justify-content: center; gap: 0.55rem; margin-top: 1.3rem; flex-wrap: wrap; }
.chip {
  border: 1.5px solid rgba(109, 74, 158, 0.3);
  background: transparent;
  color: var(--purple-deep);
  border-radius: 999px;
  padding: 0.5rem 1.3rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.2s;
}
.chip:hover { border-color: var(--purple); }
.chip.active { background: var(--purple); border-color: var(--purple); color: #fff; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.card {
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(109, 74, 158, 0.1);
  box-shadow: 0 6px 22px -12px rgba(58, 34, 92, 0.25);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: rise 0.5s ease both;
  animation-delay: calc(min(var(--i, 0) * 35ms, 280ms));
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.card-media { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--bg-soft); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.card-tall .card-media { aspect-ratio: 5/6; }
.card-price {
  position: absolute;
  inset-inline-start: 0.8rem;
  top: 0.8rem;
  background: rgba(43, 34, 51, 0.78);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card-multi {
  position: absolute;
  bottom: 0.7rem;
  inset-inline-start: 0.8rem;
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.85);
  color: var(--purple-deep);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
}
.card-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: 0.15rem; flex: 1; align-items: center; text-align: center; }
.card-cat { font-size: 0.76rem; letter-spacing: 0.08em; font-weight: 700; color: var(--gold); text-transform: uppercase; }
.card-name { font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.card-more { margin-top: auto; padding-top: 0.55rem; font-size: 0.88rem; font-weight: 600; color: var(--purple); opacity: 0.85; transition: opacity .2s; }
.card:hover .card-more { opacity: 1; }
.grid-empty { text-align: center; color: var(--ink-soft); padding: 3rem 0; }

/* ---------- policy ---------- */
.policy { margin-block: 3.5rem; }
.policy-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.4rem; }
.policy-block {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.7rem 1.9rem;
  border: 1px solid rgba(109, 74, 158, 0.12);
  text-align: center;
}
.policy-block h3 { justify-content: center; }
.policy-block h3 {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.12rem; color: var(--purple-deep); margin-bottom: 0.6rem;
}
.policy-block .icon { color: var(--gold); display: inline-flex; }
.policy-block p { color: var(--ink-soft); font-size: 0.95rem; }
.policy-list { margin: 0.5rem 0 0 0; padding-inline: 0; list-style: none; color: var(--ink-soft); font-size: 0.9rem; }
.policy-list li { padding: 0.45rem 0; border-top: 1px dashed rgba(109, 74, 158, 0.18); }
.policy-list li strong { color: var(--purple-deep); }

/* ---------- contact ---------- */
.contact {
  text-align: center;
  margin-block: 1rem 4rem;
  background: linear-gradient(135deg, var(--purple-deep), var(--purple) 60%, #8a63c2);
  color: #fff;
  border-radius: 34px;
  padding: 3.4rem 2rem;
  box-shadow: var(--shadow);
}
.contact h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 0.5rem; }
.contact p { opacity: 0.92; margin-bottom: 1.8rem; }
.contact-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.contact .btn-primary { background: #fff; color: var(--purple-deep); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4); }
.contact .btn-primary:hover { background: var(--bg); }
.contact .btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.contact .btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid rgba(109, 74, 158, 0.12);
  padding: 2.2rem 0 2.6rem;
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}
.site-footer img { height: 44px; margin: 0 auto 0.7rem; }
.social-row { display: flex; justify-content: center; gap: 1.1rem; margin: 0.8rem 0 1rem; }
.social-row a { color: var(--purple); opacity: 0.8; transition: opacity .2s, transform .2s; display: inline-flex; }
.social-row a:hover { opacity: 1; transform: translateY(-2px); }

/* ---------- detail view ---------- */
.crumbs { padding: 1.4rem 0 0.6rem; font-size: 0.92rem; color: var(--ink-soft); display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--purple); font-weight: 600; }
.crumbs a:hover { text-decoration: underline; }
.piece {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: start;
  padding: 1rem 0 3.5rem;
}
.piece-gallery { position: sticky; top: 88px; }
.piece-main {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-soft);
  border: 10px solid #fff;
}
.piece-main > img { width: 100%; aspect-ratio: 1; object-fit: cover; cursor: zoom-in; }
.pg-track { position: relative; aspect-ratio: 1; }
.pg-track img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.pg-track img.active { opacity: 1; }
.pg-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 4;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  font-size: 1.5rem; color: var(--purple-deep);
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .15s;
}
.pg-arrow:hover { transform: translateY(-50%) scale(1.1); }
.pg-prev { inset-inline-start: 0.7rem; }
.pg-next { inset-inline-end: 0.7rem; }
.pg-dots { position: absolute; bottom: 0.9rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.45rem; z-index: 4; }
.pg-dots button { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.55); transition: all .2s; }
.pg-dots button.active { background: #fff; scale: 1.35; }

.piece-info h1 { font-family: var(--font-display); font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; color: var(--purple-deep); margin-bottom: 0.4rem; }
.piece-kicker { font-size: .85rem; letter-spacing: .1em; font-weight: 700; color: var(--gold); text-transform: uppercase; margin-bottom: .4rem; }
.piece-price { font-size: 1.6rem; font-weight: 800; color: var(--purple); margin: 0.5rem 0 0.2rem; font-family: var(--font-display); }
.piece-made { color: var(--ink-soft); font-size: .95rem; margin-bottom: 1.2rem; }
.piece-desc { margin-top: 1.6rem; }
.piece-desc p { color: #4a3f57; margin-bottom: 0.9rem; font-size: 1.02rem; }
.piece-sub { font-family: var(--font-display); color: var(--purple-deep); font-size: 1.2rem; margin: 1.5rem 0 0.6rem; }
.piece-details { list-style: none; }
.piece-details li {
  padding: 0.45rem 0 0.45rem 0;
  padding-inline-start: 1.4rem;
  position: relative;
  color: #4a3f57;
  border-bottom: 1px dashed rgba(109, 74, 158, 0.15);
}
.piece-details li::before {
  content: "";
  position: absolute; inset-inline-start: 0;
  font-size: 0.8rem;
  top: 0.65rem;
}
.piece-note { margin-top: 1rem; font-size: 0.88rem; color: var(--ink-soft); background: var(--bg-soft); border-radius: 12px; padding: 0.7rem 1rem; }
.piece-specs { display: grid; gap: 0; margin-top: 0.2rem; }
.piece-specs div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.55rem 0; border-bottom: 1px dashed rgba(109, 74, 158, 0.18); }
.piece-specs dt { color: var(--ink-soft); font-size: 0.92rem; }
.piece-specs dd { color: var(--ink); font-weight: 600; font-size: 0.95rem; text-align: left; }
.piece-social { display: flex; gap: 0.9rem; margin-top: 1.6rem; }
.piece-social a { color: var(--purple); opacity: .75; }
.piece-social a:hover { opacity: 1; }
.piece-nav {
  margin-top: 2rem;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(109, 74, 158, 0.15);
  display: flex; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap;
  font-size: 0.92rem;
}
.piece-navlink { font-weight: 600; color: var(--purple); }
.piece-navlink:hover { text-decoration: underline; }

/* ---------- lightbox ---------- */
#lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(20, 12, 32, 0.92);
  display: none;
  align-items: center; justify-content: center;
  cursor: zoom-out;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 92vw; max-height: 92vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close {
  position: absolute; top: 1rem; inset-inline-start: 1.2rem;
  background: none; border: none; color: #fff; font-size: 2.6rem; line-height: 1;
  cursor: pointer;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { min-height: 380px; order: -1; margin-top: -1rem; }
  .about-card { flex-direction: column; text-align: center; gap: 1.2rem; }
  .policy-grid { grid-template-columns: 1fr; }
  .piece { grid-template-columns: 1fr; gap: 1.8rem; }
  .piece-gallery { position: static; }
  nav.top-nav { display: none; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .card-tall .card-media { aspect-ratio: 1; }
  .site-header img.logo { height: 42px; }
  .hero { padding: 2.4rem 0 3rem; }
  .hero-art { min-height: 320px; }
  .hero-title { overflow-wrap: anywhere; hyphens: none; }
  .hero-img-1 { width: 70%; top: 2%; right: 12%; }
  .hero-img-2 { width: 52%; bottom: 0; right: 0; }
  .hero-img-3 { width: 42%; bottom: 2%; left: 0; }
  .btn { padding: 0.7rem 1.3rem; font-size: 0.92rem; }
  .about-card { padding: 1.6rem 1.2rem; }
  .piece-main { border-width: 6px; }
  .contact { padding: 2.4rem 1.2rem; }
}

.hero-brand-logo { display: block; width: min(320px, 75%); height: auto; margin: 0 0 1.4rem;  }

.about-heading { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.about-heading-logo { width: 175px; height: auto; }

.card-price del { font-size: .8em; opacity: .8; margin-inline-end: .35rem; font-weight: 400; }
.piece-price del { font-size: .75em; color: var(--ink-soft); margin-inline-end: .5rem; font-weight: 400; }

.hero-carousel { min-height: 0; width: 100%; max-width: 520px; margin-inline: auto; }
.hero-slide { display: block; position: relative; background: #fff; border: 8px solid #fff; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero-slide img { width: 100%; aspect-ratio: 1; object-fit: contain; display: block; }
.hero-slide-name { display: block; padding: .7rem 1rem; text-align: center; color: var(--purple-deep); font-weight: 700; }
.hero-carousel-controls { display: flex; align-items: center; justify-content: center; gap: .7rem; margin-top: .8rem; }
.hero-carousel-controls button { min-width: 44px; min-height: 44px; border: 1px solid #d9cbe8; border-radius: 24px; background: var(--card); color: var(--purple-deep); cursor: pointer; font: inherit; padding: .4rem .8rem; }
.hero-carousel-controls button:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
.hero-slide-count { direction: ltr; color: var(--ink-soft); font-size: .85rem; }

