/* Šumadijska Nit — modern craft: warm, airy, woven accents */

:root {
  --bg: #faf6f0;
  --surface: #ffffff;
  --ink: #2c2420;
  --ink-2: #5a4f47;
  --ink-muted: #93857a;
  --accent: #b05432;      /* terracotta */
  --accent-dark: #8f3f22;
  --green: #5c6b4c;       /* šumadija woods */
  --gold: #c99a4b;
  --hairline: #e8ddd1;
  --radius: 18px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --shadow: 0 10px 30px rgba(44, 36, 32, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 720px; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; }

section { padding: 88px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hairline);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 20px;
  color: var(--ink); text-decoration: none;
  margin-right: auto;
}
.logo em { color: var(--accent); font-style: normal; }
.nav-links { display: flex; gap: 22px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }
@media (max-width: 720px) { .nav-links { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff; text-decoration: none;
  font-weight: 600; font-size: 15px;
  padding: 12px 24px; border-radius: 999px;
  transition: background 0.2s, transform 0.2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--bg); }
.btn.small { padding: 8px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 110px 0 130px;
  overflow: hidden;
}
.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(38px, 6vw, 64px); font-weight: 700; }
.hero .accent { color: var(--accent); }
.hero-sub {
  max-width: 540px;
  margin-top: 20px;
  font-size: 19px; color: var(--ink-2);
}
.hero-cta { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.cta-note { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }

/* hero bag — cutout photo floating right, gentle hanging sway */
.hero-torba {
  position: absolute;
  right: 4%;
  bottom: 30px;
  width: min(40vw, 520px);
  height: auto;
  transform-origin: 50% 8%; /* pivot near the strap, swings like it hangs */
  animation: sway 7s ease-in-out infinite;
  filter: drop-shadow(0 22px 36px rgba(44, 36, 32, 0.28));
  pointer-events: none;
}
@keyframes sway {
  0%, 100% { transform: rotate(-1.5deg); }
  50% { transform: rotate(-4.5deg); }
}
@media (max-width: 960px) {
  .hero-torba {
    position: static;
    display: block;
    margin: 36px auto 0;
    width: min(72vw, 380px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-torba { animation: none; transform: rotate(-3deg); }
}

/* woven band along the hero bottom */
.hero-weave {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26px;
  background:
    repeating-linear-gradient(90deg,
      var(--accent) 0 14px, var(--gold) 14px 22px,
      var(--green) 22px 36px, var(--bg) 36px 40px);
  opacity: 0.85;
}

/* ---------- section heads ---------- */
.section-head { max-width: 620px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.section-head p { color: var(--ink-2); font-size: 17px; }

/* ---------- products ---------- */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.product {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s;
}
.product:hover { transform: translateY(-4px); }

/* product photos — weave-N stays behind as loading background */
.product-img {
  height: 260px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.product-img span {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}

.size-label {
  font-size: 22px;
  margin: 44px 0 20px;
  color: var(--ink);
}
.size-label:first-of-type { margin-top: 0; }

.dim {
  margin-top: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}
.weave-1 {
  background:
    repeating-linear-gradient(45deg, rgba(176,84,50,0.55) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(201,154,75,0.5) 0 10px, transparent 10px 20px),
    #eadfcf;
}
.weave-2 {
  background:
    repeating-linear-gradient(45deg, rgba(92,107,76,0.55) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(44,36,32,0.35) 0 10px, transparent 10px 20px),
    #e5e0d2;
}
.weave-3 {
  background:
    repeating-linear-gradient(45deg, rgba(201,154,75,0.5) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(176,84,50,0.35) 0 10px, transparent 10px 20px),
    #f3ecdd;
}
.weave-4 {
  background:
    repeating-linear-gradient(45deg, rgba(44,36,32,0.5) 0 10px, transparent 10px 20px),
    repeating-linear-gradient(-45deg, rgba(143,63,34,0.45) 0 10px, transparent 10px 20px),
    #ddd3c4;
}

.product-body { padding: 20px 22px 22px; }
.product-body h3 { font-size: 20px; margin-bottom: 8px; }
.product-body p { font-size: 15px; color: var(--ink-2); }
.product-foot {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px;
}
.price { font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.custom-note { margin-top: 34px; text-align: center; color: var(--ink-2); }
.custom-note a { color: var(--accent); font-weight: 600; }

/* ---------- story ---------- */
.story-photo {
  margin: 0 0 32px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story-photo img { width: 100%; display: block; }

.story {
  font-size: 18px; color: var(--ink-2);
  margin-bottom: 18px;
}
.story-sign {
  font-family: var(--font-display);
  font-size: 17px; font-weight: 600;
  margin-top: 10px; text-align: right;
}

/* ---------- steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 26px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.step-num {
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.step h3 { font-size: 19px; margin: 10px 0 8px; }
.step p { font-size: 15px; color: var(--ink-2); }
.loom-photo {
  margin: 40px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 720px;
}
.loom-photo img { width: 100%; display: block; }
.loom-photo figcaption {
  padding: 10px 16px;
  background: var(--surface);
  font-size: 14px; color: var(--ink-muted);
}

.honest-note {
  margin-top: 36px;
  padding: 20px 24px;
  background: rgba(201, 154, 75, 0.12);
  border-left: 3px solid var(--gold);
  border-radius: 0 12px 12px 0;
  color: var(--ink-2);
  max-width: 640px;
}

/* ---------- ordering ---------- */
.contact-buttons {
  display: flex; flex-direction: column; gap: 12px;
  max-width: 420px; margin: 0 auto 36px;
}
.contact-btn {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface);
  border: 1.5px solid var(--hairline);
  border-radius: 14px;
  padding: 15px 20px;
  color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 16px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, transform 0.2s;
}
.contact-btn:hover { border-color: var(--accent); transform: translateY(-1px); }
.contact-btn .icon { font-size: 20px; }
.order-steps {
  max-width: 480px; margin: 0 auto;
  color: var(--ink-2); font-size: 16px;
}
.order-steps p { margin-bottom: 10px; }
.order-steps strong { color: var(--accent); font-family: var(--font-display); }
.guarantee {
  margin: 34px auto 0; max-width: 480px;
  text-align: center;
  font-size: 15px; color: var(--ink-2);
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
}

/* ---------- footer ---------- */
footer {
  padding: 36px 0;
  border-top: 1px solid var(--hairline);
}
footer .wrap {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 14px; color: var(--ink-muted);
}

/* ---------- bag carousel ---------- */
.carousel-wrap { position: relative; }
.carousel {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 4px 4px 18px;
}
.carousel::-webkit-scrollbar { display: none; }

.slide {
  flex: 0 0 min(86%, 520px);
  scroll-snap-align: center;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.slide-img {
  height: 440px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.slide-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slide-placeholder span {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px;
}
.slide-info { padding: 18px 22px 20px; }
.slide-info h3 { font-size: 21px; margin-bottom: 6px; }
.slide-info p { font-size: 15px; color: var(--ink-2); }
.slide-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px;
}
.dim-badge {
  font-size: 12px; font-weight: 600;
  color: var(--ink-2);
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 4px 10px; border-radius: 999px;
}
.slide-meta .price { margin-left: auto; }
.slide-meta .btn.small { flex-shrink: 0; }

.car-btn {
  position: absolute;
  top: 200px;
  z-index: 2;
  width: 44px; height: 44px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  font-size: 26px; line-height: 1;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.car-btn:hover { transform: scale(1.06); border-color: var(--accent); }
.car-btn.prev { left: -10px; }
.car-btn.next { right: -10px; }
@media (max-width: 720px) {
  .car-btn { display: none; } /* swipe territory */
  .slide { flex-basis: 88%; }
  .slide-img { height: 340px; }
}

/* ---------- texture band (vez close-up) ---------- */
.texture-band {
  margin-top: 64px;
  height: 240px;
  background: url("/images/vez-detalj.jpg") center 40% / cover no-repeat;
}

/* ---------- craft media: video + loom photo ---------- */
.craft-media {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 26px;
  margin-top: 40px;
  align-items: start;
}
.loom-video {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--surface);
}
.loom-video video { width: 100%; display: block; aspect-ratio: 9 / 16; object-fit: cover; }
.loom-video figcaption, .craft-media .loom-photo figcaption {
  padding: 10px 16px;
  background: var(--surface);
  font-size: 14px; color: var(--ink-muted);
}
.craft-media .loom-photo { margin-top: 0; max-width: none; }
@media (max-width: 720px) {
  .craft-media { grid-template-columns: 1fr; }
  .loom-video { max-width: 320px; }
}

/* ---------- carousel v2: photo slides + fixed info panel ---------- */
.carousel-split {
  display: grid;
  /* portrait photos: cap the photo column at about half the row */
  grid-template-columns: minmax(0, 500px) 1fr;
  gap: 28px;
  align-items: stretch;
}
.carousel-split .car-btn { top: 50%; margin-top: -22px; }

.slide-photo {
  flex: 0 0 100%;
  scroll-snap-align: center;
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.slide-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bag-panel {
  display: flex; flex-direction: column;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.purpose-badge {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent);
  background: rgba(176, 84, 50, 0.1);
  padding: 5px 12px; border-radius: 999px;
}
.bag-panel h3 { font-size: 24px; }
.bag-panel p { font-size: 15px; color: var(--ink-2); }
.panel-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 4px;
}
.bag-panel .price { font-size: 22px; }
.panel-order {
  margin-top: auto;
  text-align: center;
}

@media (max-width: 960px) {
  .carousel-split { grid-template-columns: 1fr; }
  .slide-photo { aspect-ratio: 3 / 4; max-height: 520px; }
  .panel-order { margin-top: 8px; }
}

/* ---------- size picker (buklija / slavski kolac) ---------- */
.size-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 4px;
}
.size-btn {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 600;
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 8px;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px; align-items: center;
  transition: border-color 0.15s, background 0.15s;
}
.size-btn small {
  font-size: 12px; font-weight: 500;
  color: var(--ink-muted);
}
.size-btn.selected {
  border-color: var(--accent);
  background: rgba(176, 84, 50, 0.08);
  color: var(--accent);
}
.size-btn.selected small { color: var(--accent); }
.bag-panel .panel-meta { justify-content: flex-end; }
