/* =========================================================
   Pijaca Bogdanović — glavna stilska datoteka
   Paleta: zelena (prirodno, sveže, domaće) + bela (čistoća, kvalitet)
   ========================================================= */

:root {
  --green-900: #123a24;
  --green-800: #1e5b31;
  --green-700: #26723d;
  --green-600: #2f8c4a;
  --green-500: #4ea660;
  --green-300: #8fd19e;
  --green-100: #eaf7ee;
  --cream: #fbfaf5;
  --white: #ffffff;
  --ink: #1c2620;
  --ink-soft: #4b5a51;
  --gold: #e8a93b;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Poppins', system-ui, sans-serif;

  --shadow-sm: 0 4px 14px rgba(18, 58, 36, 0.08);
  --shadow-md: 0 12px 32px rgba(18, 58, 36, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
}

h1, h2, h3, h4, .font-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--green-900);
}

a { text-decoration: none; }

.section { padding: 96px 0; }
.section-sm { padding: 56px 0; }
@media (max-width: 767px) {
  .section { padding: 64px 0; }
}

.bg-cream { background: var(--cream); }
.bg-green-100 { background: var(--green-100); }
.bg-green-900 { background: var(--green-900); }

.text-green { color: var(--green-700); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green-600);
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

/* ================= NAVBAR ================= */
.navbar-brand-custom {
  padding: 18px 0;
  transition: all 0.35s ease;
  background: transparent;
}
.navbar-brand-custom.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(6px);
}
.navbar-brand-custom .navbar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.35s ease;
}
.navbar-brand-custom.scrolled .navbar-brand { color: var(--green-900); }
.navbar-brand-custom .navbar-brand span { color: var(--green-300); }
.navbar-brand-custom.scrolled .navbar-brand span { color: var(--green-600); }

.navbar-brand-custom .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin: 0 4px;
  position: relative;
  transition: color 0.3s ease;
}
.navbar-brand-custom.scrolled .nav-link { color: var(--ink); }
.navbar-brand-custom .nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.navbar-brand-custom .nav-link:hover::after,
.navbar-brand-custom .nav-link.active::after { width: 100%; }
.navbar-brand-custom .nav-link:hover,
.navbar-brand-custom .nav-link.active { color: var(--gold) !important; }
.navbar-brand-custom.scrolled .navbar-toggler-icon {
  filter: none;
}
.navbar-toggler-icon {
  filter: invert(1);
}
.navbar-brand-custom.scrolled .navbar-toggler-icon { filter: none; }

.btn-order {
  background: var(--green-600);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 8px 22px;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(47, 140, 74, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-order:hover {
  background: var(--green-700);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(47, 140, 74, 0.45);
}
.btn-outline-login {
  border: 1.5px solid rgba(255,255,255,0.7);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 7px 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.navbar-brand-custom.scrolled .btn-outline-login {
  border-color: var(--green-700);
  color: var(--green-800) !important;
}
.btn-outline-login:hover { background: var(--green-600); color: var(--white) !important; border-color: var(--green-600); }
.user-pill { color: var(--white) !important; font-weight: 600; }
.navbar-brand-custom.scrolled .user-pill { color: var(--green-800) !important; }

/* ================= BUTTONS ================= */
.btn-farm-primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  border: none;
  border-radius: 50px;
  padding: 14px 34px;
  font-weight: 600;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 26px rgba(30, 91, 49, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.btn-farm-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 16px 32px rgba(30, 91, 49, 0.45);
  color: var(--white);
}
.btn-farm-outline {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.8);
  color: var(--white);
  border-radius: 50px;
  padding: 14px 34px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}
.btn-farm-outline:hover {
  background: var(--white);
  color: var(--green-800);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: linear-gradient(180deg, rgba(11,35,20,0.55) 0%, rgba(11,35,20,0.65) 55%, rgba(6,20,12,0.9) 100%), url('/img/hero/hero-plastenik.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--white);
  overflow: hidden;
}
@media (max-width: 991px) {
  .hero { background-attachment: scroll; min-height: 92vh; }
}
.hero-content { position: relative; z-index: 2; padding-top: 90px; }
.hero .eyebrow { color: var(--green-300); }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero h1 em {
  font-style: normal;
  color: var(--green-300);
}
.hero .lead-text {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.9);
  max-width: 560px;
  margin-bottom: 36px;
}
.hero-scroll-cue {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: rgba(255,255,255,0.85);
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 2px;
  animation: bounceDown 2.2s infinite;
}
@keyframes bounceDown {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}
.hero-badges {
  display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px;
}
.hero-badge {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 0.9rem;
  color: var(--white);
}
.hero-badge i { color: var(--green-300); font-size: 1.3rem; }

/* ================= CARDS ================= */
.usp-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border-bottom: 3px solid transparent;
}
.usp-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--green-600);
}
.usp-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 1.7rem;
  margin-bottom: 20px;
  transition: all 0.35s ease;
}
.usp-card:hover .usp-icon { background: var(--green-600); color: var(--white); transform: rotate(-8deg) scale(1.08); }

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card .img-wrap { position: relative; overflow: hidden; height: 210px; }
.product-card .img-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.product-card:hover .img-wrap img { transform: scale(1.08); }
.product-card .badge-cat {
  position: absolute; top: 12px; left: 12px;
  background: rgba(30,91,49,0.9);
  color: var(--white);
  font-size: 0.72rem;
  padding: 5px 12px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.product-card .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-card h5 { margin: 0; }
.product-card .desc { color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.product-card .price-row {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 8px;
}
.product-price { font-size: 1.25rem; font-weight: 700; color: var(--green-700); }
.product-price small { font-size: 0.7rem; color: var(--ink-soft); font-weight: 400; }

.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  height: 260px;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img { transform: scale(1.12); }
.gallery-item .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(11,35,20,0.75), rgba(11,35,20,0) 55%);
  display: flex; align-items: flex-end;
  padding: 16px;
  opacity: 0; transition: opacity 0.35s ease;
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay span { color: var(--white); font-weight: 600; }

/* ================= ABOUT ================= */
.about-hero {
  background: linear-gradient(180deg, rgba(11,35,20,0.6), rgba(11,35,20,0.75)), url('/img/hero/hero-zalazak.jpg');
  background-size: cover; background-position: center;
  padding: 160px 0 90px;
  color: var(--white);
}
.value-card {
  background: var(--green-100);
  border-radius: var(--radius);
  padding: 30px;
  height: 100%;
  transition: background 0.3s ease, transform 0.3s ease;
}
.value-card:hover { background: var(--white); box-shadow: var(--shadow-sm); transform: translateY(-4px); }
.team-card {
  text-align: center;
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
}
.team-card:hover { transform: translateY(-6px); }
.team-avatar {
  width: 96px; height: 96px; border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.1rem; font-weight: 700;
  margin: 0 auto 16px;
  font-family: var(--font-heading);
}

/* ================= FORMS ================= */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 60px;
  background: linear-gradient(160deg, var(--green-100) 0%, var(--cream) 60%);
  position: relative;
}
.auth-card {
  background: var(--white);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.auth-card .side-panel {
  background: linear-gradient(160deg, var(--green-700), var(--green-900)), url('/img/hero/hero-jagode.jpg');
  background-blend-mode: multiply;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 50px 40px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.form-control, .form-select {
  border-radius: 10px;
  padding: 12px 14px;
  border: 1.5px solid #e1e8e2;
}
.form-control:focus, .form-select:focus {
  border-color: var(--green-600);
  box-shadow: 0 0 0 0.2rem rgba(47, 140, 74, 0.15);
}
.form-label { font-weight: 600; color: var(--green-900); font-size: 0.9rem; }

/* ================= CART / ORDER PAGE ================= */
.cart-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px;
  position: sticky;
  top: 110px;
}
.cart-item {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #eef2ee;
}
.cart-item img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
.qty-control {
  display: flex; align-items: center; border: 1px solid #e1e8e2; border-radius: 8px; overflow: hidden;
}
.qty-control button {
  border: none; background: var(--green-100); width: 28px; height: 28px; font-weight: 700; color: var(--green-800);
}
.qty-control input {
  width: 34px; text-align: center; border: none; font-weight: 600;
}
.cart-empty { text-align: center; padding: 30px 10px; color: var(--ink-soft); }

/* ================= PRODUCT FILTER TABS ================= */
.filter-tabs .btn {
  border-radius: 50px;
  padding: 8px 22px;
  margin: 4px;
  border: 1.5px solid var(--green-600);
  color: var(--green-700);
  background: transparent;
  font-weight: 500;
  transition: all 0.3s ease;
}
.filter-tabs .btn.active,
.filter-tabs .btn:hover {
  background: var(--green-600);
  color: var(--white);
}

/* ================= CONTACT ================= */
.contact-info-card {
  background: var(--green-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card .info-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.contact-info-card .info-row i { color: var(--green-300); font-size: 1.3rem; margin-top: 3px; }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: none; width: 100%; height: 340px; }

/* ================= FOOTER ================= */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,0.85);
  padding-top: 20px;
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
}
.footer-brand span { color: var(--green-300); }
.text-light-50 { color: rgba(255,255,255,0.65); font-size: 0.92rem; }
.footer-heading { color: var(--white); font-weight: 600; margin-bottom: 16px; letter-spacing: 0.5px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 0.92rem; }
.footer-links a { color: rgba(255,255,255,0.75); transition: color 0.25s ease; }
.footer-links a:hover { color: var(--green-300); }
.footer-links i { color: var(--green-300); margin-right: 6px; }
.social-icons { display: flex; gap: 10px; }
.social-icons a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s ease;
}
.social-icons a:hover { background: var(--green-600); transform: translateY(-3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
}
.admin-fab-link {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.45);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  transition: all 0.3s ease;
}
.admin-fab-link:hover { background: var(--green-600); color: #fff; }

.call-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(30, 91, 49, 0.5);
  z-index: 999;
  animation: pulseFab 2.4s infinite;
}
.call-fab:hover { background: var(--green-800); color: var(--white); }

.chat-fab {
  position: fixed;
  bottom: 92px; right: 24px;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: transform 0.25s ease, background 0.25s ease;
}
.chat-fab:hover { background: #1ebe5b; color: var(--white); transform: translateY(-3px) scale(1.05); }

.tomato-fab {
  position: fixed;
  bottom: 24px; left: 24px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #e8503a;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 10px 24px rgba(232, 80, 58, 0.4);
  z-index: 999;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  line-height: 1;
}
.tomato-fab:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 14px 30px rgba(232, 80, 58, 0.55); }

@media (max-width: 480px) {
  .call-fab { bottom: 18px; right: 18px; width: 52px; height: 52px; }
  .chat-fab { bottom: 78px; right: 18px; width: 48px; height: 48px; }
  .tomato-fab { bottom: 18px; left: 18px; width: 52px; height: 52px; font-size: 1.5rem; }
}

.cart-count-badge {
  position: absolute;
  top: -8px; right: -8px;
  background: var(--gold);
  color: var(--green-900);
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.toast-cart {
  position: fixed; top: 100px; right: 24px; z-index: 1080;
}
@keyframes pulseFab {
  0% { box-shadow: 0 0 0 0 rgba(47, 140, 74, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(47, 140, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 140, 74, 0); }
}

/* ================= MISC ================= */
.section-title { margin-bottom: 50px; }
.divider-leaf { color: var(--gold); font-size: 1.4rem; margin: 0 10px; }
.parallax-strip {
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  min-height: 340px;
  position: relative;
}
.parallax-strip::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(11,35,20,0.55);
}
@media (max-width: 991px) { .parallax-strip { background-attachment: scroll; } }

::selection { background: var(--green-300); color: var(--green-900); }

.alert-farm-success { background: var(--green-100); color: var(--green-800); border: 1px solid var(--green-300); border-radius: 12px; }
.alert-farm-error { background: #fdeceb; color: #a3312a; border: 1px solid #f3b7b2; border-radius: 12px; }
