/* Aficionado Shop – crna, topla bela, diskretno zlato */
:root {
  --ink: #0e0c0a;
  --ink-2: #1a1713;
  --paper: #f4f0e9;
  --card: #fbf9f5;
  --line: #e1dacd;
  --text: #1c1814;
  --muted: #6f665a;
  --gold: #b8924a;
  --gold-2: #d2ad66;
  --danger: #a33a2c;
  --ok: #3b6b3a;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1240px;
  --pad: clamp(1rem, 4vw, 2rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 1rem/1.6 var(--sans); font-feature-settings: "kern" 1; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; hyphens: none; text-wrap: balance; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-sm { padding-top: 3rem; }

/* Zaglavlje */
.site-header { background: var(--ink); color: #f2ece1; position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; gap: clamp(.75rem, 2.5vw, 2.25rem); min-height: 78px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; margin-inline-end: .5rem; }
.logo-main { font-family: var(--serif); font-weight: 500; font-size: 1.65rem; letter-spacing: .1em; }
.logo-sub { display: flex; align-items: center; gap: .6rem; font-size: .62rem; letter-spacing: .32em; color: var(--gold-2); margin-top: .35rem; }
.logo-sub i { display: block; width: 1.8rem; height: 1px; background: var(--gold); }
.main-nav { display: flex; gap: clamp(.9rem, 2vw, 2rem); font-size: .92rem; font-weight: 500; }
.main-nav a, .sub-nav a { text-decoration: none; opacity: .92; }
.main-nav a:hover, .sub-nav a:hover { color: var(--gold-2); opacity: 1; }
.search { margin-inline-start: auto; display: flex; align-items: center; gap: .5rem; border: 1px solid #4a4339; border-radius: 3px; padding: 0 .75rem; min-width: min(28vw, 270px); color: #c9bfae; }
.search input { background: none; border: 0; padding: .6rem 0; width: 100%; color: #f2ece1; outline: none; }
.search input::placeholder { color: #9a917f; }
.search:focus-within { border-color: var(--gold); }
.icon-btn { background: none; border: 0; color: inherit; cursor: pointer; padding: .5rem; position: relative; display: inline-grid; place-items: center; text-decoration: none; }
.menu-btn { display: none; }
.badge { position: absolute; top: 0; right: -2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--gold); color: #000; font-size: .7rem; font-weight: 600; display: grid; place-items: center; }
.sub-nav { border-top: 1px solid #2c2721; }
.sub-nav .wrap { display: flex; justify-content: safe center; gap: clamp(1rem, 3.5vw, 3rem); padding-block: .7rem; font-size: .9rem; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.drawer { margin: 0; inset: 0 auto 0 0; height: 100%; max-height: none; width: min(86vw, 340px); background: var(--ink); color: #f2ece1; border: 0; padding: 1rem 1.25rem 2rem; }
.drawer::backdrop { background: rgb(0 0 0 / .6); }
.drawer a { display: block; padding: .65rem 0; text-decoration: none; border-bottom: 1px solid #2c2721; }
.drawer .close { margin-inline-start: auto; display: block; }
.drawer .search { margin: .5rem 0 1rem; min-width: 0; }
.drawer-h { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin: 1.2rem 0 .3rem; }
main .drawer-h { color: var(--muted); }

/* Hero */
.hero { position: relative; background: var(--ink); color: #f6f0e4; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hero-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-height: clamp(420px, 46vw, 600px); display: grid; align-items: center; isolation: isolate; overflow: hidden;
  background: radial-gradient(120% 120% at 80% 30%, #2a2219 0%, var(--ink) 62%); }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.slide.is-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 12 10 / .88) 0%, rgb(14 12 10 / .55) 42%, rgb(14 12 10 / 0) 75%); }
.slide-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding-block: 3rem 4rem; }
.slide-copy { max-width: 34rem; }
.kicker { font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); margin: 0 0 .9rem; font-weight: 500; }
main .card .kicker, main .pdp .kicker { color: var(--muted); letter-spacing: .14em; font-size: .68rem; margin-bottom: .35rem; }
.slide-title { font-size: clamp(2.2rem, 5.2vw, 4.2rem); font-weight: 600; margin-bottom: 1rem; }
.slide-sub { font-size: 1.1rem; color: #d8cfbf; margin: 0 0 1.75rem; max-width: 30rem; }
.slide-product { justify-self: center; width: min(100%, 460px); aspect-ratio: 1; background: var(--card); border-radius: 4px; display: grid; place-items: center; padding: 1.25rem; box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6); }
.slide-product img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-ctrl { position: absolute; inset: auto 0 1.1rem 0; display: flex; align-items: center; justify-content: center; gap: 1rem; pointer-events: none; }
.hero-ctrl > * { pointer-events: auto; }
.hc { width: 38px; height: 38px; border-radius: 50%; border: 1px solid #6a5f4d; background: rgb(14 12 10 / .5); color: #f6f0e4; cursor: pointer; }
.hc:hover { border-color: var(--gold); color: var(--gold-2); }
.dots { display: flex; gap: .55rem; }
.dots button { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid var(--gold); background: transparent; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--gold); }

/* Dugmad */
.btn { display: inline-block; border: 1px solid var(--gold); background: transparent; color: inherit; padding: .85rem 1.6rem; font-weight: 500; letter-spacing: .02em; text-decoration: none; cursor: pointer; border-radius: 2px; transition: background .15s, color .15s; text-align: center; }
.btn-gold { background: var(--gold); color: #120f0a; }
.btn-gold:hover { background: var(--gold-2); }
.btn-outline-gold { color: var(--gold-2); }
.btn-outline-gold:hover { background: var(--gold); color: #120f0a; }
.btn-outline { border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { display: block; width: 100%; }
.link-gold { color: #8a6a2c; font-weight: 500; text-decoration: none; }
.link-gold:hover { text-decoration: underline; }

/* Naslovi */
.h-section { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: 1.5rem; }
.h-page { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.h-sub { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin: 2rem 0 1rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.section-head .h-section { margin-bottom: 1.5rem; }
.lead { font-size: 1.15rem; color: var(--muted); }
.prose { max-width: 68ch; }
.prose p, .prose ul { margin: 0 0 1em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .3em; }

/* Pločice kategorija i kartice */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.tile { position: relative; aspect-ratio: 1.15; overflow: hidden; background: var(--ink-2); color: #fff; text-decoration: none; display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: transform .5s, opacity .3s; }
.tile:hover img { transform: scale(1.04); opacity: 1; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(0 0 0 / .6), transparent 55%); }
.tile-label { position: absolute; z-index: 1; left: 1rem; right: 1rem; bottom: .9rem; display: flex; justify-content: space-between; font-family: var(--serif); font-size: 1.3rem; }
.tile-label i { font-style: normal; font-family: var(--sans); }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card { background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-media { position: relative; display: block; aspect-ratio: 1; background: #fff; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: 1rem; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.tag-out { position: absolute; top: .6rem; left: .6rem; background: var(--ink); color: #fff; font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: .25rem .5rem; }
.is-out .card-media img { opacity: .5; }
.card-body { padding: .9rem 1rem 1.1rem; display: flex; flex-direction: column; gap: .25rem; flex: 1; }
.card-title { font-size: 1.15rem; }
.card-title a { text-decoration: none; }
.price { margin: .1rem 0 .3rem; font-variant-numeric: lining-nums tabular-nums; }
.price s { color: var(--muted); font-size: .9em; }
.price .from { color: var(--muted); font-size: .85em; }
.more { margin-top: auto; font-size: .88rem; color: #8a6a2c; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* Katalog */
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--gold); }
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2rem; margin-top: 1.5rem; }
.cat-list { list-style: none; margin: 0; padding: 0; font-size: .95rem; }
.cat-list a { display: flex; justify-content: space-between; gap: .5rem; padding: .4rem 0; text-decoration: none; border-bottom: 1px solid var(--line); }
.cat-list a:hover, .cat-list a[aria-current] { color: #8a6a2c; font-weight: 500; }
.cnt { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.25rem; font-size: .92rem; }
.toolbar .count { margin-inline-end: auto; color: var(--muted); }
.toolbar select { border: 1px solid var(--line); background: var(--card); padding: .45rem .6rem; border-radius: 2px; margin-inline-start: .4rem; }
.check { display: inline-flex; gap: .5rem; align-items: center; cursor: pointer; }
.check input { accent-color: var(--gold); width: 1rem; height: 1rem; }
.pager { display: flex; justify-content: center; align-items: center; gap: 1.5rem; margin-top: 2.5rem; }
.pager a { text-decoration: none; color: #8a6a2c; font-weight: 500; }
.empty { padding: 2rem 0; color: var(--muted); }

/* Proizvod */
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); margin-top: 1rem; }
.pdp-main { background: #fff; border: 1px solid var(--line); aspect-ratio: 1; display: grid; place-items: center; }
.pdp-main img { max-height: 100%; width: 100%; object-fit: contain; padding: 1.5rem; }
.thumbs { list-style: none; padding: 0; margin: .75rem 0 0; display: flex; gap: .6rem; flex-wrap: wrap; }
.thumbs button { width: 76px; height: 76px; padding: 4px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp-title { margin-bottom: .5rem; }
.sku { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.price-lg { font-size: 1.6rem; margin: .5rem 0 1.25rem; }
.price-lg strong { font-weight: 600; }
.variants { border: 0; padding: 0; margin: 1.25rem 0; }
.variants legend { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: .6rem; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: block; padding: .5rem 1rem; border: 1px solid var(--line); background: var(--card); border-radius: 2px; }
.chip input:checked + span { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-weight: 500; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.chip.is-out span { color: var(--muted); text-decoration: line-through; background: transparent; }
.chip small { font-size: .7rem; text-decoration: none; display: inline-block; }
.buy-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin-top: 1rem; }
.qty { display: inline-flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--muted); }
.qty input { width: 4.2rem; padding: .7rem .5rem; border: 1px solid var(--line); background: var(--card); text-align: center; }
.note-cod { font-size: .88rem; color: var(--muted); margin: .9rem 0 0; }
.out-msg { color: var(--danger); margin: 1rem 0 0; }
.pdp-desc { margin-top: 2rem; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.5rem; }
.tags a { font-size: .8rem; padding: .2rem .6rem; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.tags a:hover { color: var(--text); border-color: var(--gold); }

/* Korpa i naplata */
.cart-lines { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 80px 1fr auto 110px 120px 32px; gap: 1rem; align-items: center; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cart-line img { background: #fff; border: 1px solid var(--line); object-fit: contain; width: 80px; height: 80px; }
.cl-main { display: flex; flex-direction: column; }
.cl-name { text-decoration: none; font-weight: 500; }
.cl-price, .cl-total { text-align: right; font-variant-numeric: tabular-nums; }
.rm { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1rem; }
.rm:hover { color: var(--danger); }
.cart-actions { margin-top: 1rem; }
.totals { max-width: 420px; margin: 2rem 0 0 auto; }
.totals dl, .totals-mini { margin: 0 0 1rem; }
.totals dl div, .totals-mini div { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; }
.totals dd, .totals-mini dd { margin: 0; font-variant-numeric: tabular-nums; }
.grand { border-top: 1px solid var(--ink); margin-top: .4rem; padding-top: .8rem !important; font-weight: 600; font-size: 1.15rem; }
.done-lines { list-style: none; padding: 0; margin: 0 0 1rem; }
.done-lines li { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .85rem; margin-bottom: .3rem; }
.field input:not([type=checkbox]), .field textarea, .field select { width: 100%; padding: .7rem .8rem; border: 1px solid var(--line); background: #fff; border-radius: 2px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.has-err input { border-color: var(--danger) !important; }
.err { color: var(--danger); font-size: .85rem; margin: .3rem 0 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hp { position: absolute; left: -9999px; }
.pay-box { border: 1px solid var(--gold); background: var(--card); padding: 1rem 1.1rem; margin: 0 0 1.25rem; }
.co-sum { background: var(--card); border: 1px solid var(--line); padding: 1.25rem; position: sticky; top: 130px; }
.co-sum .h-sub { margin-top: 0; }
.co-sum ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.co-sum li { display: grid; grid-template-columns: 56px 1fr auto; gap: .75rem; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.co-sum li img { background: #fff; border: 1px solid var(--line); object-fit: contain; width: 56px; height: 56px; }
.flashes { padding-top: 1rem; }
.flash { margin: 0 0 .5rem; padding: .75rem 1rem; border-left: 3px solid var(--gold); background: var(--card); }
.flash-error { border-color: var(--danger); color: var(--danger); }
.flash-success { border-color: var(--ok); }

/* Podnožje */
.site-footer { background: var(--ink); color: #cfc6b6; margin-top: 3rem; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem; padding-block: 2.5rem 1.5rem; align-items: start; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; color: #f2ece1; }
.foot-brand p { color: #a79e8e; font-size: .92rem; max-width: 26rem; margin: 1rem 0 0; }
.foot-nav, .foot-contact { display: flex; flex-direction: column; gap: .5rem; font-style: normal; font-size: .93rem; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--gold-2); }
.legal { border-top: 1px solid #2c2721; padding-block: 1rem 1.5rem; font-size: .8rem; color: #8b8273; }

@media (max-width: 1000px) {
  .grid, .tiles { grid-template-columns: repeat(2, 1fr); }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .main-nav, .search.search { display: none; }
  .menu-btn { display: inline-grid; }
  .bar { justify-content: space-between; }
  .logo { margin: 0 auto; }
  .slide-in { grid-template-columns: 1fr; padding-block: 2rem 4rem; gap: 1.5rem; }
  .slide-product { width: min(70%, 300px); order: -1; }
  .slide { min-height: 0; }
  .pdp, .checkout { grid-template-columns: 1fr; }
  .co-sum { position: static; }
  .foot { grid-template-columns: 1fr; }
  .cart-line { grid-template-columns: 70px 1fr auto 32px; }
  .cart-line .cl-price { display: none; }
  .cart-line img { width: 70px; height: 70px; }
  .cl-total { grid-column: 2 / 4; text-align: left; }
}
@media (max-width: 520px) {
  .grid { gap: .7rem; }
  .card-body { padding: .7rem .75rem .9rem; }
  .card-title { font-size: 1rem; }
  .two { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; gap: 0; }
  .buy-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html, .hero-track { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
