/* style.css - STAVIDOMEN.COM (moderna online prodavnica, mobilno-prvi, bez eksternih biblioteka/fontova) */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; line-height: 1.6; color: #1f2937; background: #ffffff; }
a { color: #2563eb; text-decoration: none; }
a:focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section h2 { font-size: 1.6rem; font-weight: 800; color: #1e3a8a; margin-bottom: 10px; letter-spacing: -0.5px; }
.section h3 { font-size: 1.25rem; color: #1e3a8a; margin: 30px 0 10px; }
.section p { color: #4b5563; max-width: 700px; margin-bottom: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; background: #1e3a8a; color: #ffffff; border: none; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 1rem; cursor: pointer; text-decoration: none; transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { background: #1e40af; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(30,58,138,.22); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: #1e3a8a; border: 2px solid #1e3a8a; }
.btn-outline:hover { background: #1e3a8a; color: #ffffff; }

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #1e3a8a;
  color: #fff;
  padding: 8px 16px;
  z-index: 100;
  text-decoration: underline;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { top: 0; }

/* Zaglavlje */
.site-header { background: #ffffff; border-bottom: 1px solid #e5e7eb; position: sticky; top: 0; z-index: 60; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; gap: 16px; flex-wrap: wrap; }
.logo { font-weight: 900; font-size: 1.6rem; color: #1e3a8a; letter-spacing: -1px; }
.logo:hover { color: #2563eb; }
.main-nav .nav-list { display: flex; gap: 30px; list-style: none; align-items: center; }
.main-nav a { color: #374151; font-weight: 700; font-size: 0.95rem; padding: 8px 0; }
.main-nav a:hover { color: #2563eb; }

/* Hero (samo HTML/CSS, bez slike) */
.hero { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 55%, #93c5fd 100%); color: #ffffff; padding: 70px 20px 60px; border-radius: 0 0 48px 48px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -90px; bottom: -60px; width: 320px; height: 320px; background: rgba(255,255,255,0.10); border-radius: 50%; }
.hero h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 900; line-height: 1.15; max-width: 760px; margin-bottom: 16px; letter-spacing: -1px; }
.hero p { font-size: clamp(1.05rem, 2.5vw, 1.25rem); max-width: 600px; opacity: 0.95; margin-bottom: 26px; line-height: 1.6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Uvod / kako funciona */
.intro { padding: 48px 0 10px; background: #f8fafc; }
.intro .container { max-width: 820px; }
.intro h2 { text-align: center; }
.intro p { text-align: center; margin: 0 0 14px; color: #4b5563; }

/* Shop mreža - moderna prodavnica */
.shop { padding: 56px 0 20px; }
.shop h2 { margin-bottom: 0; text-align: center; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 22px; }
.card { border: 1px solid #e5e7eb; border-radius: 16px; padding: 0; background: #fff; display: flex; flex-direction: column; align-items: center; transition: transform .2s, box-shadow .2s, border-color .2s; overflow: hidden; text-align: center; }
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(30,58,138,.08); border-color: #c7d2fe; }
.card-img { width: 100%; height: 220px; background: #f1f5f9; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-body { padding: 18px 18px 22px; display: flex; flex-direction: column; align-items: center; flex: 1; text-align: center; }
.card h3 { font-size: 1.1rem; font-weight: 800; color: #111827; margin: 0 0 8px; line-height: 1.3; text-align: center; }
.card .namena { font-size: 0.85rem; color: #6b7280; margin-bottom: 12px; min-height: 34px; text-align: center; }
.card .price { font-size: 1.25rem; font-weight: 900; color: #2563eb; margin: 0 0 16px; text-align: center; }
.card .price-placeholder { color: #9ca3af; }
.card-actions { display: flex; gap: 8px; margin-top: auto; }
.card .btn { flex: 1; padding: 11px 0; font-size: 0.95rem; }

/* Stranica proizvoda */
.product-hero { padding: 40px 0 0; }
.product-hero .container { max-width: 1024px; }
.product-wrap { display: grid; grid-template-columns: 1fr; gap: 30px; margin-bottom: 40px; align-items: start; }
.product-img { height: 560px; border-radius: 18px; overflow: hidden; background: #f1f5f9; border: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: center; }
.product-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.product-info { text-align: center; }
.product-info h1 { font-size: clamp(1.7rem, 5vw, 2.2rem); font-weight: 900; color: #111827; margin-bottom: 10px; line-height: 1.25; text-align: center; }
.product-price { font-size: 1.7rem; font-weight: 900; color: #2563eb; margin: 6px 0 10px; text-align: center; }
.product-meta { font-size: 0.95rem; color: #6b7280; margin-bottom: 22px; text-align: center; }
.product-note { font-size: 0.85rem; color: #6b7280; margin-bottom: 20px; text-align: center; }
.order-form { background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 16px; padding: 26px; margin-top: 0; }
.order-form h3 { font-size: 1.15rem; color: #1e3a8a; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; color: #374151; margin-bottom: 6px; }
.form-group input, .form-group select { width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 1rem; background: #fff; transition: border-color .15s, box-shadow .15s; }
.form-group input:focus, .form-group select:focus { border-color: #2563eb; outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.consent { display: flex; gap: 10px; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 0.88rem; color: #4b5563; line-height: 1.5; text-align: center; }
.consent input { margin-top: 4px; width: auto; flex-shrink: 0; }
.btn-send { background: #1e3a8a; color: #fff; width: auto; padding: 14px 28px; font-size: 1rem; }
.btn-send:hover { background: #1e40af; }
.honey { position: absolute; left: -9999px; }
.error-msg { color: #dc2626; font-size: 0.88rem; margin-top: 6px; }
.success-msg { color: #16a34a; font-size: 0.9rem; margin-top: 6px; }

/* Sastojci i upozorenja */
.sastojci-lista { margin: 6px 0 14px 20px; color: #374151; }
.sastojci-lista li { margin-bottom: 6px; }
.upozorenja-lista { margin: 6px 0 14px 20px; color: #4b5563; }
.upozorenja-lista li { margin-bottom: 6px; }

/* FAQ */
.faq-lista details { border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-lista summary { padding: 14px 18px; font-weight: 700; color: #1e3a8a; cursor: pointer; list-style: none; }
.faq-lista summary::-webkit-details-marker { display: none; }
.faq-lista p { padding: 0 18px 14px; margin: 0; color: #4b5563; }

/* Disclaimer */
.disclaimer { font-size: 0.82rem; color: #6b7280; border-top: 1px solid #e5e7eb; margin-top: 30px; padding-top: 18px; max-width: 700px; line-height: 1.55; }

/* Povezani proizvodi */
.related h3 { font-size: 1.2rem; color: #1e3a8a; margin-bottom: 14px; }

/* Kontakt forma */
.contact-form { max-width: 640px; margin-top: 10px; }

/* 404 */
.not-found { text-align: center; padding: 80px 20px; }
.not-found h1 { font-size: 2.5rem; color: #1e3a8a; margin-bottom: 10px; }

/* Breadcrumbs */
.breadcrumbs { margin-bottom: 16px; font-size: 0.85rem; color: #6b7280; }
.breadcrumb-list { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.breadcrumb-item { display: flex; align-items: center; }
.breadcrumb-item a { color: #2563eb; text-decoration: none; }
.breadcrumb-item a:hover { text-decoration: underline; }
.breadcrumb-separator { padding: 0 4px; }

/* Podnožje */
.site-footer { background: #1e3a8a; color: #e5e7eb; padding: 48px 20px 30px; margin-top: 0; }
.site-footer a { color: #93c5fd; }
.site-footer a:hover { color: #ffffff; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 30px; }
.footer-copy { text-align: center; }
.footer-copy strong { display: block; font-size: 1rem; color: #fff; margin-bottom: 6px; }
.footer-disclaimer { font-size: 0.8rem; color: #9ca3af; line-height: 1.6; text-align: center; max-width: 620px; margin: 0 auto; }
.footer-info strong { display: block; font-size: 0.95rem; color: #fff; margin-bottom: 10px; }
.footer-info ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; }
.footer-info li { margin: 0; }
.footer-mail { margin-top: 16px; display: flex; align-items: center; gap: 10px; }
.footer-mail svg { flex-shrink: 0; }
.footer-mail span { font-size: 0.9rem; color: #cbd5e1; }

/* Responzivnost */
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 300px; align-items: start; }
  .footer-copy { text-align: left; }
  .footer-disclaimer { text-align: left; margin: 0; }
  .product-wrap { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .main-nav .nav-list { gap: 20px; }
  .main-nav a { font-size: 0.9rem; }
  .card-actions { flex-direction: column; }
  .hero-actions { flex-direction: column; }
}

/* ===== Ispravke: ujednačene kartice, veće dugme, forma ===== */
.card { height: 100%; }
.card-img { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; background: #f1f5f9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.card-body { width: 100%; padding: 18px 18px 22px; display: flex; flex-direction: column; align-items: stretch; flex: 1; text-align: center; }
.card h3 { margin: 0 0 6px; min-height: 2.6em; display: flex; align-items: center; justify-content: center; }
.card .namena { min-height: 2.8em; }
.card .btn, .btn-block { display: flex; width: 100%; margin-top: auto; padding: 14px 20px; font-size: 1.05rem; flex: none; }
.grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); align-items: stretch; }
.product-img { height: auto; aspect-ratio: 1 / 1; }
.product-info .btn-send { padding: 14px 32px; }
.order-form { text-align: left; }
.order-form .btn-send { width: 100%; }
.form-group textarea { width: 100%; padding: 11px 14px; border: 1px solid #d1d5db; border-radius: 10px; font-size: 1rem; font-family: inherit; }
.error-box { background: #fef2f2; border: 1px solid #fecaca; color: #b91c1c; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: .9rem; }
.error-box p { margin: 0 0 4px; color: #b91c1c; }
@media (max-width: 767px) { .card-actions { flex-direction: column; } .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } .card-body { padding: 12px 12px 16px; } .card .btn { padding: 12px 10px; font-size: 1rem; } }

/* ===== Stranica proizvoda: tabele i podnaslovi ===== */
.prod-tabela { width: 100%; border-collapse: collapse; margin: 14px 0 22px; font-size: .95rem; }
.prod-tabela th, .prod-tabela td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; }
.prod-tabela th { background: #f1f5f9; font-weight: 600; }
.section h3 { margin: 22px 0 6px; }
.upozorenja-lista { margin: 8px 0 18px; padding-left: 22px; }
.upozorenja-lista li { margin-bottom: 6px; }
