/*
Theme Name: Garderoba
Theme URI: https://example.me/garderoba
Author: Custom
Description: Čista, lagana custom tema za marketplace polovne garderobe, građena da radi zajedno sa HivePress pluginom. Bez viška koda — samo dizajn sloj iznad HivePress motora.
Version: 0.3.5
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: garderoba
*/

/* =========================================================
   1. Design tokeni — sve boje, fontovi i razmaci odavde
   ========================================================= */
:root {
  /* Neutralno */
  --ink:        #241F1D;   /* glavni tekst */
  --ink-soft:   #4A423E;
  --muted:      #8A7F78;
  --paper:      #FDFAF6;   /* pozadina stranice */
  --surface:    #FFFFFF;   /* kartice */
  --line:       #EDE5DB;   /* tanke linije */

  /* Brend */
  --plum:       #6E2B4E;   /* primarna: dugmad, aktivno stanje */
  --plum-deep:  #53203B;   /* hover */
  --plum-soft:  #F6E9EF;   /* tint */
  --clay:       #C96A4C;   /* topli akcenat: cijene, oznake */
  --clay-soft:  #FBEDE6;
  --sage:       #6F8362;   /* tercijarni */
  --sage-soft:  #EDF1E9;
  --sand:       #F6EDE1;   /* alternativna pozadina sekcije */

  /* Tintovi glavnih kategorija */
  --c-zene:     #F5E6EC;
  --c-muskarci: #E4ECEF;
  --c-djeca:    #FAF0DA;

  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--2: clamp(0.72rem, 0.7rem + 0.1vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.79rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.06rem);
  --step-1:  clamp(1.15rem, 1.06rem + 0.45vw, 1.35rem);
  --step-2:  clamp(1.45rem, 1.25rem + 1vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 2vw, 2.8rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3.6vw, 4.2rem);

  --maxw: 1200px;
  --gap: clamp(1rem, 0.7rem + 1.2vw, 1.5rem);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --shadow: 0 1px 2px rgba(36,31,29,.04), 0 10px 30px rgba(36,31,29,.06);
  --shadow-hover: 0 2px 8px rgba(36,31,29,.07), 0 20px 46px rgba(36,31,29,.12);
}

/* =========================================================
   2. Reset & osnove
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--plum); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--plum); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2.4rem, var(--maxw)); margin-inline: auto; }
.section { padding-block: clamp(2.8rem, 2rem + 3.5vw, 5.5rem); }
.section--tint { background: var(--sand); }
.section--soft { background: var(--plum-soft); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: calc(var(--gap) * 1.6); flex-wrap: wrap; }
.section-head h2 { margin: 0; }

/* Izdvojeni oglasi kao zasebna traka, da se jasno odvoje od "Novo u ponudi" */
.section--featured {
  background: linear-gradient(180deg, var(--sand), color-mix(in srgb, var(--sand) 40%, var(--paper)));
  border-block: 1px solid var(--line);
}
.section-flag {
  display: inline-block; margin-bottom: .5rem;
  padding: .28rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--plum);
}
.section-head__lead { color: var(--muted); margin: .5rem 0 0; max-width: 52ch; font-size: var(--step--1); }
.section-head .more {
  font-family: var(--font-body);
  font-size: var(--step--1); font-weight: 700; color: var(--plum);
  display: inline-flex; align-items: center; gap: .35rem; white-space: nowrap;
}
.section-head .more:hover { color: var(--plum-deep); }

/* Naglašena riječ u naslovu */
.accent-italic { font-style: italic; color: var(--plum); }

/* =========================================================
   3. Dugmad
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5ch;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step-0);
  padding: .72em 1.5em; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { padding: .9em 1.9em; }
.btn--primary { background: var(--plum); color: #fff; }
.btn--primary:hover { background: var(--plum-deep); color: #fff; box-shadow: 0 8px 20px rgba(110,43,78,.25); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--plum); border-color: transparent; }
.btn--light:hover { background: var(--plum-soft); color: var(--plum-deep); }

/* =========================================================
   4. Zaglavlje / navigacija
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__bar { display: flex; align-items: center; gap: 1.6rem; height: 78px; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1);
  letter-spacing: -0.02em; color: var(--ink); white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand span { color: var(--plum); }

.primary-nav { margin-left: auto; }
.primary-nav > ul { list-style: none; display: flex; align-items: center; gap: .2rem; margin: 0; padding: 0; }
.primary-nav > ul > li { position: relative; }
.primary-nav > ul > li > a {
  display: inline-flex; align-items: center; gap: .35rem;
  color: var(--ink-soft); font-weight: 600; font-size: var(--step--1);
  padding: .6rem .85rem; border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.primary-nav > ul > li > a:hover,
.primary-nav > ul > li:focus-within > a { background: var(--plum-soft); color: var(--plum); }
.nav-chevron { width: 11px; height: 11px; transition: transform .2s ease; }
.primary-nav li:hover > a .nav-chevron,
.primary-nav li:focus-within > a .nav-chevron { transform: rotate(180deg); }

/* Mega meni */
.mega {
  position: absolute; top: calc(100% + .55rem); left: 50%; translate: -50% 0;
  width: min(92vw, 760px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-hover); padding: 1.6rem;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.primary-nav li:hover > .mega,
.primary-nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.mega__head {
  display: flex; align-items: center; gap: .55rem;
  font-family: var(--font-display); font-weight: 600; font-size: var(--step-1);
  color: var(--ink); margin-bottom: .75rem; padding-bottom: .6rem;
  border-bottom: 1px solid var(--line);
}
.mega__head:hover { color: var(--plum); }
.mega__head .dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; background: var(--plum); }
.mega__col:nth-child(2) .dot { background: var(--sage); }
.mega__col:nth-child(3) .dot { background: var(--clay); }
.mega__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.mega__col ul a {
  display: block; padding: .32rem .5rem; margin-inline: -.5rem; border-radius: var(--radius-xs);
  font-size: var(--step--1); color: var(--ink-soft);
}
.mega__col ul a:hover { background: var(--plum-soft); color: var(--plum); }

.header-actions { display: flex; align-items: center; gap: .8rem; }

/* „Prijava" na kraju navigacije, odvojena crtom od ostalih stavki */
.primary-nav > ul > li.nav-item--auth { margin-left: .5rem; padding-left: .9rem; position: relative; }
.primary-nav > ul > li.nav-item--auth::before {
  content: "";
  position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 1px; height: 20px; background: var(--line);
}
.primary-nav > ul > li.nav-item--auth > a {
  border: 1.5px solid var(--line);
  padding-inline: 1.1rem;
  color: var(--ink);
}
.primary-nav > ul > li.nav-item--auth > a:hover {
  background: var(--plum-soft); border-color: var(--plum); color: var(--plum);
}

/* Nalog prijavljenog korisnika */
.account { position: relative; }
.account__toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 999px;
  padding: .3rem .75rem .3rem .3rem; cursor: pointer;
  font: inherit; font-size: var(--step--1); font-weight: 600; color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.account__toggle:hover { border-color: var(--plum); }
.account__toggle[aria-expanded="true"] { border-color: var(--plum); box-shadow: 0 0 0 3px var(--plum-soft); }
.account__toggle .nav-chevron { width: 11px; height: 11px; color: var(--muted); transition: transform .2s ease; }
.account__toggle[aria-expanded="true"] .nav-chevron { transform: rotate(180deg); }
.account__avatar {
  width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  display: grid; place-items: center;
}
.account__avatar--letter {
  background: linear-gradient(135deg, var(--plum), var(--clay));
  color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1;
}
.account__name { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }

.account__menu {
  position: absolute; top: calc(100% + .55rem); right: 0; z-index: 70;
  width: 250px; padding: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-hover);
}
.account__menu[hidden] { display: none; }
.account__head { padding: .6rem .75rem .7rem; border-bottom: 1px solid var(--line); margin-bottom: .4rem; }
.account__hello { display: block; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.account__head strong { display: block; font-size: var(--step--1); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account__menu ul { list-style: none; margin: 0; padding: 0; }
.account__menu a {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .75rem; border-radius: var(--radius-xs);
  font-size: var(--step--1); font-weight: 500; color: var(--ink-soft);
}
.account__menu a:hover { background: var(--plum-soft); color: var(--plum); }
.account__menu a.is-logout { color: var(--clay); margin-top: .3rem; border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-xs) var(--radius-xs); padding-top: .65rem; }
.account__menu a.is-logout:hover { background: var(--clay-soft); color: var(--clay); }
.acc-ico { width: 17px; height: 17px; flex-shrink: 0; opacity: .8; }
.account__badge {
  margin-left: auto; font-style: normal; font-weight: 700; font-size: .7rem;
  background: var(--clay); color: #fff; border-radius: 999px; padding: .1rem .45rem; line-height: 1.5;
}

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line); border-radius: 12px;
  width: 44px; height: 44px; cursor: pointer; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink);
  margin: 0 auto; position: relative; border-radius: 2px; transition: transform .2s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* =========================================================
   5. Hero
   ========================================================= */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 2rem + 5vw, 6.5rem);
  background:
    radial-gradient(90rem 40rem at 88% -20%, var(--plum-soft) 0%, transparent 62%),
    radial-gradient(60rem 34rem at 2% 108%, var(--sage-soft) 0%, transparent 58%),
    var(--paper);
}
.hero::after {
  content: ""; position: absolute; right: -7rem; top: 10%;
  width: 27rem; height: 27rem; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--plum) 13%, transparent);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 700px; }

/* Sa slikom: tekst lijevo, fotografija desno */
.hero__grid { position: relative; z-index: 1; }
.hero--with-image .hero__inner { max-width: none; }
@media (min-width: 900px) {
  .hero--with-image .hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 1rem + 3vw, 4rem);
    align-items: center;
  }
}
.hero__media { position: relative; }
.hero__media img {
  width: 100%;
  aspect-ratio: 9 / 11;
  object-fit: cover;
  border-radius: calc(var(--radius) * 1.6);
  box-shadow: var(--shadow-hover);
}
/* Topla podloga koja viri iza fotografije */
.hero__media::before {
  content: ;
  position: absolute;
  inset: 1.4rem -1.4rem -1.4rem 1.4rem;
  border-radius: calc(var(--radius) * 1.6);
  background: linear-gradient(150deg, var(--plum-soft), var(--sand));
  z-index: -1;
}
@media (max-width: 899px) {
  .hero__media { margin-top: 2.4rem; max-width: 420px; }
  .hero__media img { aspect-ratio: 4 / 3; }
}
/* Dekorativni krug smeta kad ima slike */
.hero--with-image::after { display: none; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .38rem .95rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--step--2);
  letter-spacing: .1em; text-transform: uppercase; color: var(--plum);
  margin: 0 0 1.3rem; box-shadow: var(--shadow);
}
.hero__eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--clay); flex-shrink: 0; }
.hero__title { margin: 0 0 .35em; font-size: var(--step-4); letter-spacing: -0.025em; }
.hero__lead { font-size: var(--step-1); color: var(--ink-soft); font-weight: 400; margin: 0 0 1.9rem; max-width: 46ch; }


.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero__stat strong { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--plum); line-height: 1.1; }
.hero__stat span { font-size: var(--step--1); color: var(--muted); }

/* =========================================================
   7. Kako funkcioniše
   ========================================================= */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.step:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--plum-soft); color: var(--plum);
  font-family: var(--font-display); font-size: var(--step-1); font-weight: 700;
  margin-bottom: 1.1rem;
}
.step:nth-child(2) .step__num { background: var(--sage-soft); color: var(--sage); }
.step:nth-child(3) .step__num { background: var(--clay-soft); color: var(--clay); }
.step__title { margin: 0 0 .4em; font-size: var(--step-1); }
.step__text { margin: 0; color: var(--muted); font-size: var(--step--1); }

/* =========================================================
   8. Kartice oglasa (tema — početna)
   ========================================================= */
.listing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--gap); }
.listing-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.listing-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.listing-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--sand); overflow: hidden; }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; }
.badge-featured {
  position: absolute; top: .7rem; left: .7rem; z-index: 2;
  background: var(--clay); color: #fff; font-size: var(--step--2); font-weight: 700;
  padding: .3em .8em; border-radius: 999px; letter-spacing: .02em;
}
.listing-card__body { padding: .85rem .95rem 1rem; display: flex; flex-direction: column; gap: .2rem; }
.listing-card__cat { font-size: var(--step--2); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.listing-card__title { font-family: var(--font-body); font-weight: 600; font-size: var(--step--1); line-height: 1.35; margin: 0; }
.listing-card__title a { color: var(--ink); }
.listing-card__title a:hover { color: var(--plum); }
.listing-card__price { margin-top: .35rem; font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--plum); }

/* Prazno stanje */
.empty-listings {
  text-align: center; background: var(--surface); border: 1px dashed var(--line);
  border-radius: var(--radius); padding: clamp(1.8rem, 1.4rem + 1.5vw, 2.8rem);
  max-width: 620px; margin-inline: auto;
}
.empty-listings__title { font-family: var(--font-display); font-size: var(--step-2); margin: 0 0 .3em; }
.empty-listings__text { color: var(--muted); margin: 0 0 1.4rem; }

/* =========================================================
   9. CTA traka
   ========================================================= */
.sell-cta {
  position: relative; overflow: hidden;
  background: var(--plum); color: #fff; border-radius: var(--radius);
  padding: clamp(2.2rem, 1.6rem + 2.6vw, 3.8rem);
  display: grid; gap: 1.5rem; align-items: center;
}
.sell-cta::after {
  content: ""; position: absolute; right: -5rem; top: -5rem;
  width: 20rem; height: 20rem; border-radius: 50%;
  background: rgba(255,255,255,.06); pointer-events: none;
}
@media (min-width: 780px) { .sell-cta { grid-template-columns: 1.5fr auto; } }
.sell-cta__body { position: relative; z-index: 1; }
.sell-cta__flag {
  display: inline-block; margin-bottom: .7rem; padding: .3rem .8rem;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px; color: #fff; font-size: .72rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
}
.sell-cta h2 { color: #fff; margin: 0 0 .35em; }
.sell-cta p { color: rgba(255,255,255,.82); margin: 0; max-width: 52ch; }
.sell-cta .btn { position: relative; z-index: 1; }
.sell-cta__plans { color: rgba(255,255,255,.82); margin: 1rem 0 0; max-width: 52ch; font-size: var(--step--1); }
.sell-cta__actions { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.sell-cta__link { color: #fff; font-size: var(--step--1); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sell-cta__link:hover { color: rgba(255,255,255,.8); }


/* =========================================================
   10. Podnožje
   ========================================================= */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: clamp(2.6rem, 2rem + 2vw, 3.8rem); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.site-footer .brand { display: inline-block; margin-bottom: .6rem; }
.site-footer p { color: var(--muted); font-size: var(--step--1); max-width: 40ch; }
.footer-col h4 { font-family: var(--font-body); font-size: var(--step--2); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: .9rem; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.footer-col a { color: var(--ink-soft); font-size: var(--step--1); }
.footer-col a:hover { color: var(--plum); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 2.2rem; padding-top: 1.4rem; font-size: var(--step--1); color: var(--muted); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* =========================================================
   11. Sadržaj stranica
   ========================================================= */
.page-content { max-width: 720px; margin-inline: auto; }
.page-content h1 { margin-bottom: .6em; }
.placeholder-note { background: var(--sand); border: 1px dashed var(--clay); color: var(--ink-soft); border-radius: var(--radius); padding: 1.2rem 1.4rem; font-size: var(--step--1); }
.placeholder-note strong { color: var(--clay); }

/* =========================================================
   12. Responsive
   ========================================================= */
@media (max-width: 980px) {
  .nav-toggle { display: block; margin-left: auto; }

  /* Na mobilnom je „Prijava" obična stavka menija, bez okvira i crte */
  .primary-nav > ul > li.nav-item--auth { margin-left: 0; padding-left: 0; }
  .primary-nav > ul > li.nav-item--auth::before { display: none; }
  .primary-nav > ul > li.nav-item--auth > a { border: 0; padding-inline: .2rem; }

  /* Nalog: samo avatar, bez imena i strelice */
  .account__name,
  .account__toggle .nav-chevron { display: none; }
  .account__toggle { padding: .25rem; gap: .3rem; }

  .primary-nav {
    position: fixed; inset: 78px 0 auto 0; z-index: 55;
    background: var(--paper); border-bottom: 1px solid var(--line);
    max-height: calc(100dvh - 78px); overflow-y: auto;
    transform: translateY(-120%); transition: transform .28s ease; margin: 0;
    box-shadow: var(--shadow);
  }
  .primary-nav.open { transform: translateY(0); }
  .primary-nav > ul { flex-direction: column; align-items: stretch; padding: .8rem 1.2rem 1.4rem; gap: 0; }
  .primary-nav > ul > li { border-bottom: 1px solid var(--line); }
  .primary-nav > ul > li:last-child { border-bottom: 0; }
  .primary-nav > ul > li > a { padding: .95rem .2rem; border-radius: 0; justify-content: space-between; font-size: var(--step-0); }
  .primary-nav > ul > li > a:hover { background: transparent; }

  /* Mega meni postaje harmonika */
  .mega {
    position: static; translate: none; width: auto; opacity: 1; visibility: visible;
    transform: none; box-shadow: none; border: 0; border-radius: 0;
    padding: 0 0 .9rem; background: transparent;
    display: none;
  }
  .mega.is-open { display: block; }
  .mega__grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .mega__head { font-size: var(--step-0); }
}

@media (max-width: 560px) {
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero::after { display: none; }
  .listing-grid { grid-template-columns: repeat(2, 1fr); gap: .8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* =========================================================
   13. Iskačuća potvrda (npr. "Izmjene su sačuvane")
   ========================================================= */
.garderoba-toast {
  position: fixed;
  right: clamp(.8rem, 2vw, 1.6rem);
  bottom: clamp(.8rem, 2vw, 1.6rem);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .9rem;
  max-width: min(92vw, 420px);
  padding: .95rem 1rem .95rem 1.2rem;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  font-size: var(--step--1);
  line-height: 1.5;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}
.garderoba-toast.is-visible { opacity: 1; transform: translateY(0); }
.garderoba-toast::before {
  content: "✓";
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: .8rem;
  font-weight: 700;
}
.garderoba-toast__close {
  flex-shrink: 0;
  margin-left: auto;
  background: none;
  border: 0;
  color: rgba(255,255,255,.65);
  font-size: 1.4rem;
  line-height: 1;
  padding: 0 .2rem;
  cursor: pointer;
  transition: color .18s ease;
}
.garderoba-toast__close:hover { color: #fff; }

/* Na uskim telefonima zaglavlje se prelivalo van ekrana */
@media (max-width: 480px) {
  .site-header__bar { gap: .6rem; }
  .header-actions .btn--primary { padding: .6em 1em; font-size: var(--step--1); }
  .nav-toggle { width: 40px; height: 40px; }
  .account__avatar { width: 30px; height: 30px; }
  .account__avatar--letter { font-size: .85rem; }
  .brand { font-size: var(--step-0); }
}
