/* ==========================================================================
   Narobe hiša – ročno izdelane voščilnice, sožalnice in škatle presenečenj
   ========================================================================== */

/* ---------- Pisave (gostovane lokalno) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  font-weight: 100 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ---------- Oblikovni žetoni ---------- */
:root {
  --paper: #fbf6ee;
  --paper-2: #f3eadc;
  --card: #ffffff;
  --ink: #2b2030;
  --ink-soft: #5d4f63;
  --violet: #7a2fa5;
  --violet-deep: #45185f;
  --lilac: #e8d8f3;
  --blush: #f7dcd8;
  --rose: #d8587c;
  --mustard: #e2a82c;
  --leaf: #3d8b5a;
  --lime: #b9d24f;
  --teal: #2b8ea0;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-hand: "Caveat", "Segoe Script", cursive;

  --radius: 26px;
  --radius-s: 14px;
  --shadow-s: 0 1px 0 rgba(43, 32, 48, .05), 0 12px 26px -14px rgba(43, 32, 48, .35);
  --shadow-m: 0 2px 0 rgba(43, 32, 48, .05), 0 26px 50px -22px rgba(69, 24, 95, .45);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 76px;
  --wrap: min(1180px, 100% - 2.5rem);
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
/* papirnata tekstura */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: .5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45  0 0 0 0 .35  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, video, canvas { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lilac); color: var(--violet-deep); }

.wrap { width: var(--wrap); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 200; background: var(--violet-deep); color: #fff; padding: .7rem 1rem; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 1rem; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Gumbi ---------- */
.btn {
  --bg: var(--violet-deep); --fg: #fff; --bd: var(--violet-deep);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; line-height: 1; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  box-shadow: 0 6px 0 -2px rgba(43, 32, 48, .18);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 10px 0 -4px rgba(43, 32, 48, .2); --bg: var(--violet); --bd: var(--violet); }
.btn:active { transform: translateY(0); box-shadow: 0 2px 0 0 rgba(43, 32, 48, .2); }
.btn--ghost { --bg: transparent; --fg: var(--violet-deep); --bd: var(--violet-deep); box-shadow: none; }
.btn--ghost:hover { --bg: var(--violet-deep); --fg: #fff; --bd: var(--violet-deep); }
.btn--gold { --bg: var(--mustard); --fg: var(--ink); --bd: var(--mustard); }
.btn--gold:hover { --bg: #f0b93d; --bd: #f0b93d; }
.btn--small { padding: .65rem 1.05rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn .icon { width: 1.1em; height: 1.1em; }

/* ---------- Glava ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(43, 32, 48, .08);
  --header-h: 66px; height: 66px;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; }

.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; color: var(--violet-deep); transform: rotate(180deg); transition: transform .7s cubic-bezier(.34, 1.56, .64, 1); }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { transform: rotate(0deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: -.02em; }
.brand__sub { font-family: var(--font-hand); font-size: 1.05rem; color: var(--violet); margin-top: .1rem; }

.nav { display: none; }
.nav__list { display: flex; gap: .25rem; }
.nav__link {
  position: relative; display: block; padding: .5rem .85rem; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: .98rem; color: var(--ink);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--lilac); color: var(--violet-deep); }
.nav__link.is-active { background: var(--violet-deep); color: #fff; }

.header-actions { display: flex; align-items: center; gap: .35rem; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; cursor: pointer; text-decoration: none; color: var(--ink);
  transition: background .2s, transform .2s var(--ease), color .2s;
}
.icon-btn:hover { background: var(--lilac); color: var(--violet-deep); transform: translateY(-2px); }
.icon-btn[aria-disabled="true"] { opacity: .35; cursor: not-allowed; pointer-events: none; }
.header-social { display: none; }
.cart-btn { background: var(--violet-deep); color: #fff; width: auto; padding: 0 1rem; gap: .5rem; border-radius: 999px; display: inline-flex; font-weight: 700; font-size: .95rem; }
.cart-btn:hover { background: var(--violet); color: #fff; }
.cart-btn__count { min-width: 1.5rem; height: 1.5rem; padding: 0 .35rem; border-radius: 999px; background: var(--mustard); color: var(--ink); display: grid; place-items: center; font-size: .8rem; }
.cart-btn__count.bump { animation: bump .45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5) rotate(-8deg); } }

.burger { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: inline-grid; place-items: center; border-radius: 50%; }
.burger:hover { background: var(--lilac); }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 2.5px; border-radius: 3px; background: var(--ink); transition: transform .3s var(--ease), background .2s; content: ""; }
.burger span { position: relative; }
.burger span::before { position: absolute; top: -7px; }
.burger span::after { position: absolute; top: 7px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--header-h) + 1.5rem) 1.5rem 2rem;
  background: var(--paper); display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 3rem) 2.2rem); transition: clip-path .6s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { clip-path: circle(150% at calc(100% - 3rem) 2.2rem); visibility: visible; }
.mobile-menu a.m-link { display: block; font-family: var(--font-display); font-size: clamp(2rem, 9vw, 3rem); font-weight: 600; text-decoration: none; padding: .35rem 0; border-bottom: 2px dashed rgba(43, 32, 48, .12); }
.mobile-menu a.m-link:hover { color: var(--violet); }
.mobile-menu__social { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }

@media (min-width: 1000px) {
  .nav { display: block; }
  .burger { display: none; }
  .header-social { display: flex; }
  .mobile-menu { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--header-h) + 3.5rem) 0 5.5rem; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -2; border-radius: 50%; filter: blur(60px); opacity: .75; animation: blob 18s ease-in-out infinite alternate; }
.hero::before { width: 520px; height: 520px; left: -140px; top: 10%; background: var(--blush); }
.hero::after { width: 560px; height: 560px; right: -160px; bottom: -60px; background: var(--lilac); animation-delay: -7s; }
@keyframes blob { to { transform: translate(60px, -40px) scale(1.15); } }
.petals { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

.hero__grid { display: grid; gap: 3.5rem; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 1.1rem; }
.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 { font-size: clamp(2.7rem, 7vw, 5.3rem); font-weight: 600; margin-bottom: .4em; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--violet); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.12em; height: .3em;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'><path d='M2 8 C 12 1, 18 1, 28 7 S 46 13, 58 6 S 78 1, 90 7 S 108 12, 118 5' fill='none' stroke='%23e2a82c' stroke-width='4' stroke-linecap='round'/></svg>") center / 100% 100% no-repeat;
}
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--ink-soft); max-width: 34ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 2.2rem; }
.hero__facts { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; font-weight: 600; font-size: .95rem; color: var(--ink-soft); }
.hero__facts li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__facts .icon { color: var(--leaf); }

.hero__visual { position: relative; width: min(400px, 78vw); aspect-ratio: 3 / 4; margin-inline: auto; }
.hero__visual::before, .hero__visual::after { content: ""; position: absolute; inset: 0; border-radius: 999px 999px 28px 28px; }
.hero__visual::before { background: var(--lilac); transform: rotate(-6deg) translate(-16px, 6px); }
.hero__visual::after { background: var(--mustard); transform: rotate(7deg) translate(18px, 4px); z-index: 0; opacity: .9; }
.arch { position: absolute; inset: 0; z-index: 1; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--blush); box-shadow: var(--shadow-m); transform: rotate(1.5deg); border: 8px solid #fff; }
.arch img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.1s ease, transform 8s ease-out; }
.arch img.is-hidden { opacity: 0; }
.arch img:not(.is-hidden) { transform: scale(1.04); }
.tape { position: absolute; z-index: 3; top: -14px; left: 50%; width: 120px; height: 32px; transform: translateX(-50%) rotate(-5deg);
  background: repeating-linear-gradient(45deg, rgba(216, 88, 124, .82) 0 9px, rgba(255, 255, 255, .7) 9px 18px);
  clip-path: polygon(0 0, 4% 15%, 0 30%, 4% 45%, 0 60%, 4% 75%, 0 100%, 100% 100%, 96% 85%, 100% 70%, 96% 55%, 100% 40%, 96% 25%, 100% 0);
  filter: drop-shadow(0 3px 3px rgba(43, 32, 48, .2)); }
.sticker { position: absolute; z-index: 4; top: 8%; right: -34px; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--rose); color: #fff; font-family: var(--font-display); line-height: 1; transform: rotate(12deg); box-shadow: 0 10px 22px -8px rgba(216, 88, 124, .7); border: 3px dashed rgba(255, 255, 255, .8); outline: 5px solid var(--rose); outline-offset: -1px; animation: wobble 5s ease-in-out infinite; }
.sticker small { display: block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.sticker b { display: block; font-size: 1.9rem; font-weight: 700; }
@keyframes wobble { 50% { transform: rotate(5deg) scale(1.05); } }
.badge { position: absolute; z-index: 4; left: -38px; bottom: 6%; width: 124px; height: 124px; }
.badge svg { width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge text { font-family: var(--font-body); font-weight: 800; font-size: 11.2px; letter-spacing: .21em; text-transform: uppercase; fill: var(--violet-deep); }
.badge__core { position: absolute; inset: 0; display: grid; place-items: center; color: var(--rose); }
.badge__core .icon { width: 30px; height: 30px; animation: beat 2.4s ease-in-out infinite; }
.badge::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-s); z-index: -1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes beat { 10%, 30% { transform: scale(1.18); } 20% { transform: scale(1); } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 4rem; }
  .hero__visual { width: min(430px, 100%); margin-right: 0; }
}

/* ---------- Trak z napisi ---------- */
.marquee { position: relative; background: var(--violet-deep); color: #fff; transform: rotate(-1.2deg); margin: -1.6rem -2rem 0; padding: 1rem 0; overflow: hidden; z-index: 2; box-shadow: 0 10px 30px -14px rgba(69, 24, 95, .7); }
.marquee__track { display: flex; width: max-content; animation: scroll 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem; font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.6vw, 1.7rem); white-space: nowrap; }
.marquee__item .icon { color: var(--mustard); width: 1.1em; height: 1.1em; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Razdelki ---------- */
.section { position: relative; padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
.section__head p { color: var(--ink-soft); font-size: 1.15rem; }
.section--center .section__head { margin-inline: auto; text-align: center; }
.section--center .eyebrow { justify-content: center; }
.scallop::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 15px; z-index: 1;
  background: radial-gradient(circle at 15px 0, var(--prev, var(--paper)) 14px, transparent 15px) 0 0 / 30px 15px repeat-x; }

/* reveal ob pomikanju */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Kategorije ---------- */
.cats__grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.cat-card { position: relative; display: flex; flex-direction: column; gap: .5rem; text-align: left; padding: 1.7rem 1.5rem 1.5rem; border: 0; cursor: pointer; border-radius: var(--radius); background: var(--tone, var(--blush)); color: var(--ink); text-decoration: none; transition: transform .35s var(--ease), box-shadow .35s var(--ease); overflow: hidden; }
.cat-card::after { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(43, 32, 48, .22); border-radius: calc(var(--radius) - 8px); pointer-events: none; }
.cat-card:hover { transform: translateY(-8px) rotate(-1deg); box-shadow: var(--shadow-m); }
.cat-card:nth-child(even):hover { transform: translateY(-8px) rotate(1deg); }
.cat-card__icon { width: 58px; height: 58px; color: var(--accent, var(--violet-deep)); margin-bottom: .6rem; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.cat-card:hover .cat-card__icon { transform: rotate(-10deg) scale(1.12); }
.cat-card h3 { font-size: 1.5rem; margin: 0; }
.cat-card p { margin: 0; font-size: .98rem; color: var(--ink-soft); }
.cat-card__price { margin-top: auto; padding-top: .9rem; font-weight: 800; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase; color: var(--accent, var(--violet-deep)); }

/* ---------- Trgovina ---------- */
.shop { background: var(--paper-2); --prev: var(--paper); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2.2rem; }
.chip { padding: .55rem 1.05rem; border-radius: 999px; border: 2px solid rgba(43, 32, 48, .16); background: transparent; cursor: pointer; font-weight: 700; font-size: .92rem; transition: all .2s; }
.chip:hover { border-color: var(--violet); color: var(--violet); }
.chip[aria-pressed="true"] { background: var(--violet-deep); border-color: var(--violet-deep); color: #fff; }
.chip small { opacity: .7; font-weight: 600; margin-left: .25rem; }

.grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); padding: 10px 10px 1.15rem; box-shadow: var(--shadow-s); transform: rotate(var(--tilt, 0deg)); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.card:nth-child(3n+1) { --tilt: -.8deg; }
.card:nth-child(3n+2) { --tilt: .6deg; }
.card:nth-child(3n) { --tilt: -.3deg; }
.card:hover { transform: rotate(0deg) translateY(-8px); box-shadow: var(--shadow-m); }
.card__media { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; border-radius: calc(var(--radius) - 10px); overflow: hidden; aspect-ratio: 4 / 5; background: var(--blush); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.06); }
.card__tag { position: absolute; left: 10px; top: 10px; padding: .3rem .7rem; border-radius: 999px; background: rgba(255, 255, 255, .92); font-size: .74rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--violet-deep); }
.card__zoom { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .92); display: grid; place-items: center; opacity: 0; transform: scale(.7); transition: all .3s var(--ease); }
.card:hover .card__zoom, .card__media:focus-visible .card__zoom { opacity: 1; transform: none; }
.card__body { padding: 1.05rem .7rem 0; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.card h3 { font-size: 1.28rem; margin: 0; }
.card__desc { font-size: .95rem; color: var(--ink-soft); margin: 0; flex: 1; line-height: 1.5; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .6rem; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--violet-deep); }
.price small { font-family: var(--font-body); font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.card--more { justify-content: center; align-items: center; text-align: center; padding: 2rem 1.5rem; background: var(--violet-deep); color: #fff; text-decoration: none; gap: .8rem; min-height: 320px; }
.card--more h3 { color: #fff; font-size: 1.6rem; }
.card--more p { color: rgba(255, 255, 255, .8); margin: 0; }
.card--more .icon { width: 46px; height: 46px; color: var(--mustard); }
.card--more::after { content: ""; position: absolute; inset: 10px; border: 2px dashed rgba(255, 255, 255, .35); border-radius: calc(var(--radius) - 8px); }
.shop__empty { padding: 3rem 1rem; text-align: center; color: var(--ink-soft); }
.shop__note { margin-top: 2.2rem; display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); font-size: .95rem; max-width: 46rem; }
.shop__note .icon { color: var(--leaf); margin-top: .2rem; }

/* ---------- Po meri ---------- */
.custom { background: var(--violet-deep); color: #fff; --prev: var(--paper-2); }
.custom h2, .custom h3 { color: #fff; }
.custom .eyebrow { color: var(--mustard); }
.custom .section__head p { color: rgba(255, 255, 255, .82); }
.custom__grid { display: grid; gap: 3rem; align-items: start; }
.steps { counter-reset: s; display: grid; gap: 1.4rem; list-style: none; margin: 1.6rem 0 0; padding: 0; }
.steps li { counter-increment: s; position: relative; padding-left: 4.2rem; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -.1rem; width: 3.1rem; height: 3.1rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; background: var(--mustard); color: var(--ink); transform: rotate(var(--r, -6deg)); }
.steps li:nth-child(even) { --r: 7deg; }
.steps h3 { font-size: 1.25rem; margin: 0 0 .15rem; }
.steps p { margin: 0; color: rgba(255, 255, 255, .8); font-size: .98rem; line-height: 1.5; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); position: relative; }
.form::before { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(43, 32, 48, .2); border-radius: calc(var(--radius) - 8px); pointer-events: none; }
.form h3 { font-size: 1.6rem; color: var(--violet-deep); }
.form__row { display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; position: relative; }
.field label { font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: .8rem 1rem; border-radius: var(--radius-s); border: 2px solid rgba(43, 32, 48, .18); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(122, 47, 165, .15); }
.form__actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; position: relative; }
.form__hint { font-size: .85rem; color: var(--ink-soft); margin: 1rem 0 0; position: relative; }

@media (min-width: 900px) {
  .custom__grid { grid-template-columns: .9fr 1.1fr; gap: 5rem; }
  .form__row { grid-template-columns: 1fr 1fr; }
}

/* ---------- O meni ---------- */
.about__grid { display: grid; gap: 3rem; align-items: center; }
.note-card { position: relative; background: #fffdf8; border-radius: 6px; padding: 2.4rem 2rem 2rem; box-shadow: var(--shadow-m); transform: rotate(-1.6deg); background-image: repeating-linear-gradient(transparent 0 33px, rgba(61, 139, 90, .18) 33px 34px); }
.note-card::before { content: ""; position: absolute; top: -16px; left: 50%; width: 110px; height: 32px; transform: translateX(-50%) rotate(3deg); background: repeating-linear-gradient(45deg, rgba(226, 168, 44, .85) 0 9px, rgba(255, 255, 255, .65) 9px 18px); filter: drop-shadow(0 3px 3px rgba(43, 32, 48, .2)); }
.note-card p { font-family: var(--font-hand); font-size: clamp(1.5rem, 3vw, 1.95rem); line-height: 1.35; margin: 0 0 .6rem; color: var(--violet-deep); }
.note-card cite { display: block; font-family: var(--font-hand); font-size: 1.5rem; color: var(--rose); font-style: normal; text-align: right; }
.about__text h2 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); }
.about__text p { color: var(--ink-soft); font-size: 1.1rem; }
.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.pills li { padding: .45rem .95rem; border-radius: 999px; background: var(--lilac); color: var(--violet-deep); font-weight: 700; font-size: .9rem; }
.pills li:nth-child(3n+2) { background: var(--blush); color: #8d2a4a; }
.pills li:nth-child(3n) { background: #dcebc9; color: #2b6a3f; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1fr 1fr; gap: 5rem; } }

/* ---------- FAQ ---------- */
.faq { background: var(--paper-2); --prev: var(--paper); }
.faq__list { display: grid; gap: .8rem; max-width: 52rem; margin-inline: auto; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow-s); transition: box-shadow .3s; }
.faq details[open] { box-shadow: var(--shadow-m); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--lilac); color: var(--violet-deep); font-family: var(--font-body); font-weight: 700; font-size: 1.4rem; line-height: 1; transition: transform .35s var(--ease), background .2s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--mustard); }
.faq__a { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); animation: faqIn .45s var(--ease); }
.faq__a p:last-child { margin-bottom: 0; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Kontakt ---------- */
.contact { text-align: center; overflow: hidden; }
.contact h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); max-width: 16ch; margin-inline: auto; }
.contact h2 em { font-style: italic; color: var(--violet); font-weight: 500; }
.contact p.lead { margin-inline: auto; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2rem; }
.contact__mail { display: inline-block; margin-top: 1.6rem; font-family: var(--font-display); font-size: clamp(1.3rem, 3.4vw, 2rem); font-weight: 600; color: var(--violet-deep); text-decoration-thickness: 3px; text-decoration-color: var(--mustard); text-underline-offset: 6px; word-break: break-all; }
.contact__mail:hover { color: var(--violet); }

/* ---------- Noga ---------- */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 3.5rem 0 2rem; position: relative; --prev: var(--paper); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--mustard); }
.footer__grid { display: grid; gap: 2.2rem; margin-bottom: 2.5rem; }
.footer .brand__mark, .footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--mustard); }
.footer h4 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mustard); margin-bottom: .8rem; }
.footer li { margin-bottom: .4rem; }
.footer__social { display: flex; gap: .4rem; margin-top: 1rem; }
.footer__social .icon-btn { color: #fff; background: rgba(255, 255, 255, .08); }
.footer__social .icon-btn:hover { background: var(--mustard); color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .9rem; }
.footer__sign { font-family: var(--font-hand); font-size: 1.45rem; color: var(--blush); }
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Košarica ---------- */
.overlay { position: fixed; inset: 0; z-index: 140; background: rgba(43, 32, 48, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity .3s; }
.overlay.is-on { opacity: 1; }
.cart { position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--paper); display: flex; flex-direction: column; transform: translateX(105%); transition: transform .5s var(--ease); box-shadow: -30px 0 60px -30px rgba(43, 32, 48, .5); visibility: hidden; }
.cart.is-open { transform: none; visibility: visible; }
.cart__head { display: flex; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-bottom: 2px dashed rgba(43, 32, 48, .15); }
.cart__head h2 { font-size: 1.6rem; margin: 0; }
.cart__body { flex: 1; overflow: auto; padding: 1rem 1.4rem; }
.cart__empty { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.cart__empty .icon { width: 56px; height: 56px; margin: 0 auto 1rem; color: var(--violet); }
.cart__item { display: grid; grid-template-columns: 74px 1fr auto; gap: .9rem; align-items: center; padding: .85rem 0; border-bottom: 1px solid rgba(43, 32, 48, .1); }
.cart__item img { width: 74px; height: 92px; object-fit: cover; border-radius: 12px; background: var(--blush); }
.cart__item h3 { font-size: 1.05rem; margin: 0 0 .3rem; }
.qty { display: inline-flex; align-items: center; border: 2px solid rgba(43, 32, 48, .16); border-radius: 999px; }
.qty button { width: 32px; height: 32px; border: 0; background: transparent; cursor: pointer; font-size: 1.15rem; border-radius: 50%; }
.qty button:hover { background: var(--lilac); }
.qty span { min-width: 1.6rem; text-align: center; font-weight: 700; }
.cart__price { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; text-align: right; }
.cart__remove { display: block; margin: .3rem 0 0 auto; border: 0; background: none; cursor: pointer; font-size: .8rem; color: var(--ink-soft); text-decoration: underline; }
.cart__remove:hover { color: var(--rose); }
.cart__note { margin-top: 1.2rem; }
.cart__note textarea { min-height: 80px; }
.cart__foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 2px dashed rgba(43, 32, 48, .15); background: var(--paper-2); }
.cart__line { display: flex; justify-content: space-between; gap: 1rem; font-size: .98rem; margin-bottom: .35rem; color: var(--ink-soft); }
.cart__line--total { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--ink); margin: .5rem 0 1rem; }
.cart__foot .btn { width: 100%; }
.cart__secure { display: flex; gap: .5rem; align-items: center; justify-content: center; margin: .9rem 0 0; font-size: .82rem; color: var(--ink-soft); }
.cart__fallback { margin-top: 1rem; padding: 1rem; border-radius: var(--radius-s); background: #fff3d6; border: 2px solid var(--mustard); font-size: .92rem; }
.cart__fallback p { margin: 0 0 .7rem; }
.cart__fallback .btn { width: 100%; margin-top: .4rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 160; display: grid; place-items: center; padding: 1rem; background: rgba(30, 20, 36, .88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.lightbox.is-on { opacity: 1; }
.lightbox__inner { display: grid; gap: 1.2rem; max-height: 92vh; width: min(980px, 100%); background: var(--paper); border-radius: var(--radius); overflow: hidden; transform: scale(.96); transition: transform .4s var(--ease); }
.lightbox.is-on .lightbox__inner { transform: none; }
.lightbox__img { background: var(--blush); display: grid; place-items: center; max-height: 60vh; overflow: hidden; }
.lightbox__img img { max-height: 60vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox__info { padding: 0 1.5rem 1.5rem; display: flex; flex-direction: column; gap: .5rem; justify-content: center; }
.lightbox__info h3 { font-size: 1.7rem; }
.lightbox__info p { color: var(--ink-soft); margin: 0 0 .5rem; }
.lightbox__actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .4rem; }
.lightbox__close, .lightbox__nav { position: absolute; z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow-s); transition: transform .2s; }
.lightbox__close:hover, .lightbox__nav:hover { transform: scale(1.1); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; }
.lightbox__nav--next { right: 1rem; top: 50%; }
.lightbox__nav .icon { width: 1.4em; height: 1.4em; }
@media (min-width: 760px) {
  .lightbox__inner { grid-template-columns: 1.1fr 1fr; gap: 0; }
  .lightbox__img { max-height: 88vh; height: 100%; }
  .lightbox__img img { max-height: 88vh; }
  .lightbox__info { padding: 2rem; }
}

/* ---------- Opozorilo (toast) ---------- */
.toast { position: fixed; z-index: 170; left: 50%; bottom: 1.5rem; transform: translate(-50%, 140%); display: flex; align-items: center; gap: .7rem; padding: .9rem 1.3rem; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: var(--shadow-m); transition: transform .5s var(--ease); max-width: calc(100vw - 2rem); }
.toast { opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility 0s .5s; }
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast .icon { color: var(--lime); }

/* ---------- Iskrice za kazalcem ---------- */
.spark { position: fixed; z-index: 180; pointer-events: none; width: 14px; height: 14px; margin: -7px 0 0 -7px; color: var(--c, var(--mustard)); animation: spark .9s ease-out forwards; }
.spark svg { width: 100%; height: 100%; fill: currentColor; }
@keyframes spark { 0% { transform: scale(.4) rotate(0); opacity: 1; } 100% { transform: translate(var(--dx, 0), var(--dy, 24px)) scale(1.1) rotate(160deg); opacity: 0; } }

/* ---------- Strani: hvala, pogoji ---------- */
.page { padding: calc(var(--header-h) + 4rem) 0 5rem; }
.page .wrap { max-width: 46rem; }
.page h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page h2 { font-size: 1.5rem; margin-top: 2.2rem; }
.page .draft { background: #fff3d6; border: 2px solid var(--mustard); border-radius: var(--radius-s); padding: 1rem 1.2rem; font-size: .95rem; }
.thanks { text-align: center; min-height: 80vh; display: grid; place-items: center; padding: calc(var(--header-h) + 2rem) 0 4rem; position: relative; overflow: hidden; }
.thanks h1 { font-size: clamp(2.6rem, 7vw, 5rem); }
.thanks h1 em { color: var(--violet); font-weight: 500; }

/* ---------- Zmanjšano gibanje ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .marquee__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print { .site-header, .marquee, .cart, .overlay, .petals { display: none !important; } }

/* ---------- Dopolnila ---------- */
[hidden] { display: none !important; }
.cat-card__icon { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Več fotografij na izdelek ---------- */
.card__count { position: absolute; left: 10px; bottom: 10px; padding: .25rem .65rem; border-radius: 999px; background: rgba(43, 32, 48, .78); color: #fff; font-size: .74rem; font-weight: 700; }
.lightbox__img { position: relative; }
.lightbox__img img { cursor: pointer; }
.lightbox__strip { position: absolute; left: 0; right: 0; bottom: 12px; display: flex; gap: 8px; justify-content: center; padding: 0 12px; }
.lightbox__strip button { width: 46px; height: 58px; padding: 0; border: 3px solid rgba(255, 255, 255, .9); border-radius: 10px; overflow: hidden; cursor: pointer; background: #fff; opacity: .8; transition: transform .2s, opacity .2s, border-color .2s; }
.lightbox__strip button:hover { transform: translateY(-3px); opacity: 1; }
.lightbox__strip button[aria-current="true"] { border-color: var(--violet); opacity: 1; }
.lightbox__strip img { width: 100%; height: 100%; object-fit: cover; max-height: none; }

/* nič vodoravnega drsenja zaradi nagnjenega traku */
main { overflow-x: clip; }

.card__foot .btn { white-space: nowrap; padding-inline: .9rem; }
.card__foot .price { white-space: nowrap; font-size: 1.35rem; }

.page-body { min-height: 100vh; display: flex; flex-direction: column; }
.page-body main { flex: 1; }
