
:root {
  --bg: #ffffff;
  --sand-50: #f4f2f0;
  --sand-100: #edeae7;
  --sand-200: #dad3ce;
  --sand-400: #aa988d;
  --sand-500: #998276;
  --brown: #755f59;
  --ink: #000000;
  --ink-80: rgba(0, 0, 0, .8);
  --ink-64: rgba(0, 0, 0, .64);
  --ink-48: rgba(0, 0, 0, .48);
  --line: rgba(0, 0, 0, .3);
  --line-soft: rgba(0, 0, 0, .1);
  --cta: rgba(0, 0, 0, .78);
  --serif: 'Source Serif 4', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  --wrap: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); font-weight: 500; font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2 { font-family: var(--serif); font-style: italic; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 4rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); text-align: center; }
h3 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.04em; line-height: 1.2; }

/* Bordered page frame, like the reference */
.frame { max-width: var(--wrap); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.section { border-bottom: 1px solid var(--line); padding: 80px 20px 60px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.section.tint { background: var(--sand-50); }
.title { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 640px; text-align: center; }
.tag { display: inline-block; background: var(--sand-100); border-radius: 100px; padding: 4px 14px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.lead { color: var(--brown); font-size: clamp(1.1rem, 2.4vw, 1.4rem); letter-spacing: -.03em; line-height: 1.4; text-align: center; max-width: 660px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; background: var(--cta); color: #fff; font-size: 15px; transition: background .2s, transform .2s; }
.btn:hover { background: #000; transform: translateY(-1px); }
.btn.light { background: #fff; color: #000; }
.btn.light:hover { background: var(--sand-100); }
.btn[disabled] { opacity: .5; cursor: wait; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; max-width: var(--wrap); margin: 0 auto; background: rgba(255, 255, 255, .72); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 20px; }
.logo { font-family: var(--serif); font-style: italic; font-size: 1.4rem; letter-spacing: -.03em; }
.logo small { font-family: var(--sans); font-style: normal; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; margin-left: 4px; color: var(--ink-64); }
.nav-links { display: none; gap: 28px; font-size: 14px; color: var(--ink-64); }
.nav-links a:hover { color: #000; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.cart-btn:hover { background: var(--sand-100); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: #000; color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.burger { width: 44px; height: 44px; display: grid; place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink-64); position: relative; transition: .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }
.mobile-menu { display: none; flex-direction: column; padding: 0 20px 24px; gap: 4px; }
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.hide-sm { display: none; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line); overflow: hidden; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(244, 242, 240, 0) 30%, rgba(244, 242, 240, .92) 85%); }
.hero-text { position: relative; z-index: 1; padding: 40px 20px 56px; display: flex; flex-direction: column; gap: 18px; max-width: 520px; }
.hero-text p { font-size: 18px; color: var(--ink-80); }
.pill { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 70px; padding: 3px 14px 3px 3px; font-size: 13px; font-weight: 700; width: max-content; }
.pill b { background: #000; color: #fff; border-radius: 30px; padding: 3px 10px; font-weight: 500; font-size: 12px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 10px; }

/* Trust strip */
.trust { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.trust div { padding: 26px 20px; border-right: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.trust strong { display: block; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 2rem; letter-spacing: -.04em; line-height: 1; }
.trust span { font-size: 14px; color: var(--ink-64); }

/* Category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; max-width: 100%; padding-bottom: 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; background: #fff; }
.chip.active { background: #000; color: #fff; border-color: #000; }

/* Product grid */
.products { width: 100%; max-width: 1060px; display: grid; grid-template-columns: 1fr; gap: 32px 16px; }
.product { display: flex; flex-direction: column; gap: 14px; }
.p-img { position: relative; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; background: var(--sand-100); }
.p-img img { width: 100%; height: 100%; object-fit: cover; transition: opacity .4s, transform .6s; }
.p-img img.alt { position: absolute; inset: 0; opacity: 0; }
.product:hover .p-img img.alt { opacity: 1; }
.product:hover .p-img img { transform: scale(1.03); }
.p-ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; font-family: var(--serif); font-style: italic; font-size: 1.4rem; color: var(--brown); background: linear-gradient(160deg, var(--sand-100), var(--sand-200)); }
.badge { position: absolute; top: 14px; left: 14px; background: #fff; border-radius: 70px; padding: 4px 12px; font-size: 13px; z-index: 2; }
.badge.sale { background: #000; color: #fff; }
.p-add { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.p-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.p-name { font-size: 16px; letter-spacing: -.03em; }
.p-price { font-size: 21px; letter-spacing: -.03em; }
.p-old { font-size: 15px; color: #a1a1a1; text-decoration: line-through; margin-left: 10px; }

/* Feature (sticky story) */
.feature { width: 100%; max-width: 1060px; display: grid; gap: 28px; border-radius: 12px; overflow: hidden; background: var(--sand-100); padding: 16px; }
.feature img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 10px; }
.feature-body { display: flex; flex-direction: column; gap: 18px; justify-content: center; padding: 8px; }
.feature-body ul { list-style: none; display: grid; gap: 10px; }
.feature-body li { padding-left: 22px; position: relative; }
.feature-body li::before { content: ''; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--brown); }
.price-tag { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border-radius: 12px; padding: 12px 12px 12px 18px; }
.price-tag small { display: block; font-size: 12px; color: var(--ink-64); }
.price-tag strong { font-size: 22px; }

/* Collection banners */
.collections { width: 100%; max-width: 1060px; display: grid; gap: 16px; }
.collection { position: relative; min-height: 340px; border-radius: 14px; overflow: hidden; display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(150deg, var(--sand-200), var(--sand-400)); }
.collection img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.collection-card { position: relative; background: rgba(255, 255, 255, .78); backdrop-filter: blur(6px); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.collection-card h3 { font-size: 1.6rem; }

/* Reviews */
.reviews { width: 100%; max-width: 1060px; display: grid; gap: 0; border-top: 1px solid var(--line); }
.review { padding: 28px 0; border-bottom: 1px solid var(--line); display: grid; gap: 8px; }
.review q { font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: -.03em; line-height: 1.3; quotes: none; }
.review span { font-size: 14px; color: var(--ink-64); }

/* Delivery */
.steps { width: 100%; max-width: 1060px; display: grid; gap: 0; counter-reset: s; }
.step { border-top: 1px solid var(--line); padding: 24px 0; display: grid; grid-template-columns: 60px 1fr; gap: 12px; }
.step::before { counter-increment: s; content: '0' counter(s); font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--brown); }
.step h3 { font-size: 1.2rem; margin-bottom: 4px; }
.step p { color: var(--ink-64); }

/* Footer */
.footer { max-width: var(--wrap); margin: 0 auto; background: var(--sand-500); border: 1px solid var(--line); padding: 72px 20px 40px; display: flex; flex-direction: column; gap: 48px; }
.footer-top { display: flex; flex-direction: column; gap: 20px; padding-bottom: 40px; border-bottom: 1px solid var(--ink-48); }
.footer-top h3 { font-size: 1.2rem; max-width: 320px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 16px; }
.footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 16px; max-width: 440px; }
.footer-brand .logo { font-size: 2.6rem; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col p:first-child { font-weight: 700; font-size: 18px; }
.footer-col a { color: var(--ink-80); min-height: 32px; display: flex; align-items: center; }
.footer-col a:hover { color: #000; }
.copy { font-size: 14px; color: var(--ink-80); }

/* Cart drawer */
.overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: .25s; z-index: 80; }
.overlay.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 100%); background: #fff; z-index: 90; transform: translateX(100%); transition: transform .3s; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.drawer.open { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.8rem; text-align: left; }
.close { width: 44px; height: 44px; font-size: 26px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.line-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.line-item img, .line-item .mini { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; background: var(--sand-100); }
.qty { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.qty button { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); }
.empty { padding: 40px 0; text-align: center; color: var(--ink-64); }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.total { display: flex; justify-content: space-between; font-size: 18px; font-weight: 700; }
.drawer form { display: grid; gap: 10px; }

/* Forms */
input, textarea { font: inherit; font-size: 16px; width: 100%; padding: 13px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
input:focus, textarea:focus { outline: 2px solid #000; outline-offset: 1px; }
label { font-size: 14px; font-weight: 700; display: grid; gap: 6px; }
.note { font-size: 14px; color: var(--ink-64); }
.success { background: var(--sand-100); border-radius: 12px; padding: 20px; text-align: center; }

/* Wizard */
.wizard { width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 28px; }
.progress { height: 4px; background: var(--sand-100); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 100%; width: 25%; background: #000; transition: width .3s; }
.w-step { display: none; flex-direction: column; gap: 18px; }
.w-step.active { display: flex; }
.w-step h2 { font-size: clamp(1.7rem, 4vw, 2.3rem); text-align: left; }
.choices { display: grid; gap: 10px; }
.choice { min-height: 56px; text-align: left; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: #fff; transition: .15s; }
.choice:hover, .choice.selected { border-color: #000; background: var(--sand-50); }
.w-nav { display: flex; justify-content: space-between; gap: 10px; }
.back { min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); }

/* Legal */
.legal { max-width: 720px; display: grid; gap: 16px; }
.legal h2 { text-align: left; font-size: 1.8rem; margin-top: 16px; }

/* ===== Animacije (po uzoru na Nirvella / Framer) ===== */

/* 1. Hero ulazak: fade + pomeraj 48px, spring easing, stepenasto kašnjenje */
@keyframes appear { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
.appear { opacity: 0; animation: appear .8s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: var(--d, .3s); }

/* 2. Otkrivanje pri skrolu: kartice i naslovi dolaze odozdo */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity .8s cubic-bezier(.22, 1, .36, 1), transform .8s cubic-bezier(.22, 1, .36, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* 3. Dugme: tekst se "kotrlja" nagore na hover */
.btn .roll { position: relative; display: block; overflow: hidden; line-height: 1.55; }
.btn .roll span { display: block; transition: transform .35s cubic-bezier(.22, 1, .36, 1); }
.btn .roll span + span { position: absolute; left: 0; top: 100%; width: 100%; text-align: center; }
.btn:hover .roll span { transform: translateY(-100%); }

/* 4. Hero slika lagano zumira pri učitavanju */
@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero > img { animation: heroZoom 2.4s cubic-bezier(.22, 1, .36, 1) both; }

/* 5. Citat koji raste pri skrolu (sticky) */
.scroll-quote { width: 100%; height: 220vh; position: relative; }
.scroll-quote-inner { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.scroll-quote-inner img { position: absolute; inset: 8vh 0; width: 100%; height: 84vh; object-fit: cover; border-radius: 16px; transform: scale(var(--s, .6)); opacity: var(--o, 1); }
.scroll-quote-inner h3 { position: relative; max-width: 820px; padding: 0 20px; text-align: center; font-size: clamp(1.6rem, 4vw, 2.5rem); transform: scale(var(--t, .5)); opacity: var(--to, 0); }

/* 6. Kartice koje se slažu jedna preko druge (sticky stack) */
.stack { width: 100%; max-width: 1060px; display: flex; flex-direction: column; }
.stack-item { position: sticky; top: 90px; padding-bottom: 24px; }
.stack-card { display: grid; gap: 24px; border-radius: 10px; padding: 16px; background: var(--sand-100); border: 1px solid var(--line-soft); transform-origin: top center; transition: transform .2s linear, filter .2s linear; }
.stack-card img { width: 100%; aspect-ratio: 4 / 5; max-height: 420px; object-fit: cover; border-radius: 8px; }
.stack-card div { display: flex; flex-direction: column; justify-content: center; gap: 16px; text-align: center; padding: 8px; }
.stack-card h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3.6vw, 2.5rem); letter-spacing: -.05em; }

/* 7. Slajder slika u kolekcijama sa tačkicama */
.slides img { opacity: 0; transition: opacity .8s ease; }
.slides img.on { opacity: 1; }
.dots { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; padding: 8px 10px; border-radius: 999px; background: rgba(255, 255, 255, .25); backdrop-filter: blur(5px); z-index: 2; }
.dots i { width: 7px; height: 7px; border-radius: 99px; background: #fff; opacity: .6; transition: width .4s, opacity .4s; }
.dots i.on { width: 36px; opacity: 1; }

/* Instagram galerija */
.gallery { width: 100%; max-width: 1060px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.gallery:not(.all) .g-item:nth-child(n+13) { display: none; }
.g-item { display: block; aspect-ratio: 1; overflow: hidden; border-radius: 10px; background: var(--sand-100); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.22, 1, .36, 1), filter .4s; }
.g-item:hover img { transform: scale(1.06); filter: brightness(.9); }
.two { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
textarea { resize: vertical; }

/* Detalji proizvoda (modal) */
.product { cursor: pointer; }
.p-open { position: absolute; inset: 0; z-index: 1; }
.pd { position: fixed; inset: 0; z-index: 95; display: grid; place-items: end center; pointer-events: none; }
.pd.open { pointer-events: auto; }
.pd-panel { position: relative; z-index: 81; width: 100%; max-width: 1060px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 16px 16px 0 0; transform: translateY(100%); transition: transform .45s cubic-bezier(.22, 1, .36, 1); display: grid; }
.pd.open .pd-panel { transform: none; }
.pd-close { position: sticky; top: 10px; justify-self: end; margin: 10px 10px -54px 0; z-index: 3; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .85); backdrop-filter: blur(6px); font-size: 26px; }
.pd-gallery { position: relative; background: var(--sand-100); }
.pd-main { width: 100%; aspect-ratio: 4 / 5; max-height: 70vh; object-fit: cover; transition: opacity .3s; }
.pd-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.pd-thumbs button { flex: none; width: 60px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; opacity: .7; }
.pd-thumbs button.on { border-color: #000; opacity: 1; }
.pd-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-body { padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 18px; }
.pd-body h2 { text-align: left; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.pd-price { font-size: 26px; letter-spacing: -.03em; }
.pd-body h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0; text-transform: uppercase; color: var(--ink-64); }
.pd-list { list-style: none; display: grid; gap: 8px; }
.pd-list li { padding-left: 22px; position: relative; }
.pd-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--brown); }
.pd-buy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.pd-buy .btn { flex: 1; min-width: 0; padding: 10px 14px; }
.pd-qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.pd-qty button { width: 44px; height: 44px; font-size: 20px; }
.pd-qty span { min-width: 24px; text-align: center; }
.pd-info { display: grid; gap: 6px; font-size: 14px; color: var(--ink-64); background: var(--sand-50); border-radius: 12px; padding: 14px 16px; }

/* Desktop */
@media (min-width: 768px) {
  .nav { padding: 0 28px; }
  .nav-links { display: flex; }
  .burger { display: none; }
  .mobile-menu, .mobile-menu.open { display: none; }
  .hide-sm { display: inline-flex; }
  .section { padding: 100px 36px 60px; gap: 64px; }
  .hero-text { padding: 0 24px 80px 48px; }
  .trust { grid-template-columns: repeat(4, 1fr); }
  .trust div { padding: 32px 36px; border-bottom: 0; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 400px 1fr; padding: 30px; gap: 40px; }
  .collections { grid-template-columns: 1fr 1fr; }
  .collection { min-height: 480px; }
  .footer { padding: 100px 60px 40px; }
  .footer-top { flex-direction: row; justify-content: space-between; align-items: center; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .choices { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .products { grid-template-columns: repeat(3, 1fr); }
  .collections .collection:first-child { grid-column: 1 / -1; }
}
@media (min-width: 768px) {
  .stack-card { grid-template-columns: 400px 1fr; padding: 30px; gap: 32px; }
  .stack-item:nth-child(even) .stack-card img { order: 2; }
  .gallery { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .pd { place-items: center; padding: 24px; }
  .pd-panel { grid-template-columns: 1fr 1fr; border-radius: 16px; transform: translateY(40px) scale(.97); opacity: 0; transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .3s; }
  .pd.open .pd-panel { opacity: 1; }
  .pd-close { position: absolute; top: 14px; right: 14px; margin: 0; }
  .pd-gallery { position: sticky; top: 0; align-self: start; }
  .pd-main { max-height: 80vh; }
  .pd-body { padding: 48px 36px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .appear, .reveal { opacity: 1; transform: none; }
}

.pd-variants { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pd-variants .chip { font-size: 14px; }

/* Slike proizvoda se ne seku: Instagram vizuali su kvadratni sa tekstom */
.p-img { aspect-ratio: 1; }
.p-img img { object-fit: contain; background: var(--sand-100); }
.pd-main { aspect-ratio: 1; object-fit: contain; background: var(--sand-100); }
.hero > img { object-position: 35% center; }
@media (max-width: 767px) { .hero { min-height: 78vh; } .hero > img { object-position: 30% top; } }

/* KupujemProdajem linkovi */
.p-kp { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--brown); text-decoration: underline; text-underline-offset: 3px; position: relative; z-index: 2; }
.pd-links { display: flex; flex-direction: column; gap: 10px; }
.pd-kp { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); font-size: 15px; }
.pd-kp:hover { background: var(--sand-50); }
.pd-kp b { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: #000; color: #fff; font-size: 12px; }

/* Ocene i potvrda */
.trust-score { display: flex; align-items: center; gap: 16px; }
.trust-score strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(3rem, 8vw, 4.5rem); letter-spacing: -.04em; line-height: 1; }
.trust-score span { font-size: 15px; color: var(--ink-64); }
.order-info { margin-top: 14px; display: grid; gap: 6px; font-size: 14px; background: var(--sand-50); border-radius: 12px; padding: 16px; }

.trust-text { max-width: 680px; display: grid; gap: 14px; text-align: center; }
.trust-text h3 { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.04em; margin-top: 10px; }
.trust-text p { color: var(--ink-80); }
.trust-text .lead { color: var(--brown); }
.trust-end { font-weight: 700; color: #000 !important; }

/* Viber kao glavni kontakt, istaknut telefon i KP */
:root { --viber: #7360f2; }
.btn-viber { background: var(--viber); color: #fff; }
.btn-viber:hover { background: #5a48d6; }
.btn-viber svg { flex: none; }
.head-phone { font-weight: 700; font-size: 16px; letter-spacing: -.02em; padding: 0 6px; }
.head-phone:hover { color: var(--viber); }
.pill-kp { background: #fff; }
.pill-kp b { background: #000; }
.contact-band { display: grid; gap: 24px; padding: 48px 20px; border-bottom: 1px solid var(--line); background: #000; color: #fff; }
.contact-band .tag { background: rgba(255,255,255,.14); color: #fff; }
.big-phone { display: block; margin: 12px 0 8px; font-family: var(--serif); font-style: italic; font-size: clamp(2.6rem, 9vw, 4.6rem); letter-spacing: -.04em; line-height: 1; }
.big-phone:hover { color: #c9c0ff; }
.contact-band p { color: rgba(255,255,255,.75); max-width: 440px; }
.band-btns { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.band-btns .note { color: rgba(255,255,255,.7); text-align: center; font-size: 15px; }
.btn-kp { background: #fff; color: #000; }
.btn-kp:hover { background: var(--sand-100); }
.btn-kp b { background: #000; color: #fff; border-radius: 6px; padding: 2px 6px; font-size: 12px; }
.viber-float { position: fixed; right: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 12px 18px 12px 14px; border-radius: 999px; background: var(--viber); color: #fff; font-weight: 700; box-shadow: 0 8px 24px rgba(115, 96, 242, .4); transition: transform .2s; }
.viber-float:hover { transform: translateY(-2px); }
@media (min-width: 768px) {
  .contact-band { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 64px 48px; }
}

/* Vodeni žig "Petkovic Online" na svim slikama proizvoda (zahtev klijentkinje) */
.p-img, .pd-gallery, .g-item, .collection, .feature, .stack-card, .scroll-quote-inner { position: relative; }
.p-img::after, .pd-gallery::after, .g-item::after, .collection::after, .feature::after, .stack-card::after {
  content: 'Petkovic Online'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-24deg);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 4vw, 2rem); letter-spacing: -.02em;
  color: rgba(255, 255, 255, .75); text-shadow: 0 0 2px rgba(0, 0, 0, .45), 0 1px 8px rgba(0, 0, 0, .35); white-space: nowrap; pointer-events: none; z-index: 1;
}
.pd-gallery::after { top: 40%; font-size: clamp(1.6rem, 5vw, 2.8rem); }
.g-item::after { font-size: 1rem; }
.feature::after { left: 30%; }
img { -webkit-user-drag: none; user-select: none; }

/* Strelice za listanje slika u prozoru proizvoda */
.pd-stage { position: relative; }
.pd-main { transition: opacity .15s; }
.pd-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.9); box-shadow: 0 2px 10px rgba(0,0,0,.18); font-size: 32px; line-height: 1; display: grid; place-items: center; padding-bottom: 4px; transition: background .2s, transform .2s; }
.pd-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.06); }
.pd-arrow.prev { left: 12px; }
.pd-arrow.next { right: 12px; }
.pd-count { position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%); z-index: 2; padding: 4px 12px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 13px; }

/* Prozor proizvoda: slika uvek staje u širinu, bez bočnog skrolovanja */
.pd-panel { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.pd-gallery, .pd-body, .pd-stage { min-width: 0; max-width: 100%; }
.pd-stage { display: flex; align-items: center; justify-content: center; background: var(--sand-100); height: min(70vh, 100vw); }
.pd-main { display: block; width: 100%; height: 100%; max-width: 100%; max-height: none; aspect-ratio: auto; object-fit: contain; }
.pd-thumbs { max-width: 100%; }
.pd-body * { overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .pd-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .pd-stage { height: min(78vh, 560px); }
}

/* Telefon: dva manja proizvoda u redu */
@media (max-width: 767px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }
  .product { gap: 8px; }
  .p-img { border-radius: 10px; }
  .badge { top: 8px; left: 8px; padding: 2px 8px; font-size: 11px; }
  .p-add { right: 8px; bottom: 8px; min-height: 34px; padding: 6px 12px; font-size: 12px; }
  .p-name { font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .p-price { font-size: 16px; }
  .p-kp { font-size: 11px; margin-top: 2px; }
  .p-img::after { font-size: .85rem; }
}

/* Izbor boje (padajuća lista) */
.pd-color { display: grid; gap: 6px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--ink-64); letter-spacing: .02em; }
.pd-color select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 48px; padding: 12px 44px 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center; font: inherit; font-size: 16px; font-weight: 500; text-transform: none; color: #000; letter-spacing: 0; cursor: pointer; }
.pd-color select:focus { outline: 2px solid #000; outline-offset: 1px; }
.pd-buy .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ===== Nije na stanju ===== */
.product.oos .p-img img { filter: grayscale(1); opacity: .55; }
.badge.oos-badge { background: #1a1a1a; color: #fff; }
.p-locked { pointer-events: none; opacity: .85; background: #eee !important; color: #555 !important; }
.pd-locked { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #f4f4f2; width: 100%; }
.pd-locked b { font-size: 1rem; }
.pd-locked span { font-size: .9rem; opacity: .75; }
