/* ══════════════════════════════════════════
   Gavez — zajednički stilovi
   (root varijable, reset, topbar, header/nav)
══════════════════════════════════════════ */

:root {
  --sage:        #5a7a4a;
  --sage-light:  #7fa065;
  --sage-pale:   #e8f0e2;
  --moss:        #2d4a1e;
  --cream:       #f7f4ee;
  --cream-dark:  #ede8df;
  --bark:        #5c4a32;
  --bark-light:  #9c856a;
  --text:        #1e2b18;
  --text-muted:  #6b7c60;
  --white:       #ffffff;
  --gold:        #c8a85a;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--moss);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  letter-spacing: 0.03em;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 101;
}
.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.topbar a { color: rgba(255,255,255,0.75); text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-contacts { display: flex; gap: 24px; align-items: center; }
.topbar-contacts span { display: flex; align-items: center; gap: 6px; }

/* ── HEADER ── */
header {
  background: var(--cream);
  position: sticky;
  top: 37px;
  z-index: 100;
  border-bottom: 1px solid rgba(90,122,74,0.15);
  transition: box-shadow 0.3s;
}
header.scrolled { box-shadow: 0 2px 20px rgba(45,74,30,0.1); }
.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--moss);
  text-decoration: none;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-leaf { font-size: 22px; }
nav { display: flex; align-items: center; gap: 36px; }
nav a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--sage);
  transform: scaleX(0);
  transition: transform 0.25s;
}
nav a:hover { color: var(--sage); }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
nav a.active { color: var(--sage); }
/* ── NAV WRAP ── */
.nav-wrap { display: flex; align-items: center; }

/* ── HAMBURGER ── */
.hamburger {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 7px;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--moss); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .header-inner { position: relative; }
  .nav-wrap {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 12px 20px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    flex-direction: column; align-items: stretch;
    z-index: 99;
    border-top: 1px solid var(--cream-dark);
  }
  .nav-wrap.open { display: flex; }
  .nav-wrap nav { flex-direction: column; gap: 0; width: 100%; }
  .nav-wrap nav a {
    padding: 12px 4px; font-size: 15px; width: 100%;
    border-bottom: 1px solid var(--cream-dark);
    letter-spacing: 0.02em;
  }
  .nav-wrap nav a:last-child { border-bottom: none; }
  .nav-wrap .nav-cart,
  .nav-wrap .nav-shop {
    margin-top: 10px; text-align: center;
    border-radius: 2px; padding: 12px;
  }
}

@media (max-width: 480px) {
  .logo { font-size: 24px; }
  .topbar { display: none; }
  .header-inner { height: 60px; padding: 0 16px; }
  header { top: 0; }
}

/* ── CART FAB ── */
.cart-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: var(--sage);
  color: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(45,74,30,0.3);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.cart-fab:hover {
  background: var(--moss);
  transform: scale(1.06);
  box-shadow: 0 6px 28px rgba(45,74,30,0.4);
}
.cart-fab svg { flex-shrink: 0; }
.cart-fab-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--gold);
  color: var(--moss);
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--cream);
  font-family: 'DM Sans', sans-serif;
}

.nav-cart, .nav-shop {
  background: var(--sage);
  color: #fff !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.06em;
  transition: background 0.2s !important;
}
.nav-cart::after, .nav-shop::after { display: none !important; }
.nav-cart:hover, .nav-shop:hover { background: var(--moss) !important; color: #fff !important; }
