/* Akvaristika Zvijezda - design system. Newspaper broadsheet x aquarium. */
:root {
  --ink: #1c1c22;
  --paper: #f3efe6;
  --paper-2: #e9e3d4;
  --lavender: #9d8ec9;
  --lavender-dk: #6f5fa0;
  --mint: #8fd4b8;
  --mint-dk: #4f9f80;
  --rule: #1c1c22;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --mono: "Consolas", "SF Mono", monospace;
  --measure: 68ch;
  --radius: 2px;
  --shadow-paper: 0 6px 0 -3px rgba(28,28,34,0.15), 0 14px 24px -10px rgba(28,28,34,0.25);
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: var(--lavender-dk); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.1; margin: 0 0 .5em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
:focus-visible { outline: 3px solid var(--mint-dk); outline-offset: 2px; }

/* ===== grain / texture ===== */
.grain-overlay {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  pointer-events: none; z-index: 1; filter: url(#grain); opacity: .5; mix-blend-mode: multiply;
}

/* ===== header ===== */
.site-header { background: var(--paper); border-bottom: 3px solid var(--ink); position: relative; z-index: 20; }
.masthead { max-width: 1200px; margin: 0 auto; padding: 1rem 1.25rem .6rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--ink); }
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-mark { width: 64px; height: 18px; aspect-ratio: 220/60; }
.wordmark { font-family: var(--serif); font-size: 1.3rem; font-weight: 700; letter-spacing: .01em; }
.wordmark em { font-style: italic; color: var(--lavender-dk); }
.dateline { font-family: var(--mono); font-size: .72rem; letter-spacing: .03em; text-transform: uppercase; color: var(--ink); opacity: .7; display: none; }
@media (min-width: 760px) { .dateline { display: block; } }
.nav-toggle { background: none; border: 2px solid var(--ink); border-radius: var(--radius); padding: .4rem; display: inline-flex; cursor: pointer; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .nav-toggle { display: none; } }

.site-nav { max-width: 1200px; margin: 0 auto; padding: .5rem 1.25rem; display: flex; gap: 1.3rem; flex-wrap: wrap; font-family: var(--mono); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.site-nav a { color: var(--ink); padding: .3rem 0; position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--mint-dk); transition: width .25s; }
.site-nav a:hover::after, .site-nav a.is-active::after { width: 100%; }
.site-nav a.is-active { color: var(--lavender-dk); }
.nav-cart { display: inline-flex; align-items: center; gap: .35rem; margin-left: auto; }
.cart-count { background: var(--ink); color: var(--paper); border-radius: 999px; padding: .05rem .45rem; font-size: .75rem; }
.cart-count.bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
@media (max-width: 899px) {
  .site-nav { position: fixed; top: 0; right: 0; height: 100vh; width: min(320px, 85vw); background: var(--ink); flex-direction: column; padding: 5rem 1.5rem; transform: translateX(100%); visibility: hidden; transition: transform .3s ease, visibility .3s; z-index: 30; }
  .site-nav.open { transform: translateX(0); visibility: visible; }
  .site-nav a { color: var(--paper); }
  .nav-cart { margin-left: 0; }
}
.icon { stroke: currentColor; }

/* ===== layout helpers ===== */
main { position: relative; z-index: 2; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3.5rem; }
.mb-1 { margin-bottom: 1rem; } .mb-2 { margin-bottom: 2rem; }

/* ===== reveal ===== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { transition: none; opacity: 1; transform: none; } }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; font-size: .85rem; padding: .8rem 1.5rem; border-radius: var(--radius); border: 2px solid var(--ink); min-height: 44px; cursor: pointer; position: relative; overflow: hidden; background: transparent; color: var(--ink); isolation: isolate; }
.btn span, .btn svg { position: relative; z-index: 1; }
.btn-fill { background: var(--ink); color: var(--paper); }
.btn-fill::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--mint-dk); transition: left .3s ease; z-index: 0; }
.btn-fill:hover::before { left: 0; }
.btn-outline { background: transparent; border-color: var(--ink); }
.btn-outline::before { content: ""; position: absolute; inset: 0; width: 100%; left: -100%; background: var(--lavender); transition: left .3s ease; z-index: 0; }
.btn-outline:hover::before { left: 0; }
.btn-ghost { background: transparent; border-color: var(--paper); color: var(--paper); }
.btn-ghost:hover { background: rgba(243,239,230,0.15); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== hero (home, diagonal) ===== */
.hero { position: relative; padding: 2.5rem 0 7rem; overflow: hidden; background: var(--ink); color: var(--paper); clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 2rem; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; } }
.hero-eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--mint); font-size: .85rem; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); margin: .3rem 0 1rem; }
.hero p.lede { max-width: 42ch; font-size: 1.05rem; opacity: .9; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-visual { position: relative; aspect-ratio: 4/5; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-paper); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.3) sepia(.15) hue-rotate(210deg) saturate(1.4); transition: filter .4s linear; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(157,142,201,.35), rgba(143,212,184,.25)); mix-blend-mode: multiply; }
.hero-deco { position: absolute; top: -10%; right: -8%; width: 46%; opacity: .5; z-index: 1; }

/* ===== section dividers / dividers svg ===== */
.divider { display: block; width: 100%; height: 48px; }
.section-angled { position: relative; padding: 5rem 0; clip-path: polygon(0 4%, 100% 0, 100% 100%, 0 96%); }
.bg-mint { background: var(--mint); }
.bg-lavender { background: var(--lavender); }
.bg-ink { background: var(--ink); color: var(--paper); }
.bg-paper2 { background: var(--paper-2); }

/* ===== dateline / section heads ===== */
.section-head { display: flex; align-items: baseline; gap: 1rem; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--ink); padding: .6rem 0; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: 0; }
.section-head .kicker { font-family: var(--mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .06em; opacity: .7; }

/* ===== product cards / strip ===== */
.product-strip { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.product-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 620px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
.product-card { scroll-snap-align: start; flex: 0 0 240px; background: var(--paper); border: 1px solid var(--ink); border-radius: var(--radius); overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.product-grid .product-card { flex: initial; }
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-paper); }
.product-card .thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .thumb img { transform: scale(1.08); }
.product-card .badge { position: absolute; top: .5rem; left: .5rem; background: var(--mint-dk); color: var(--paper); font-family: var(--mono); font-size: .68rem; text-transform: uppercase; padding: .2rem .5rem; border-radius: 999px; }
.product-card .body { padding: 1rem; }
.product-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.product-card .price { font-family: var(--mono); font-weight: 700; font-size: 1.05rem; color: var(--lavender-dk); }
.product-card .desc { font-size: .88rem; opacity: .85; }

/* ===== signature feature: Zvjezdani Planer ===== */
.planner { background: var(--paper-2); border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.75rem; box-shadow: var(--shadow-paper); }
.planner-grid { display: grid; gap: 1.25rem; }
@media (min-width: 760px) { .planner-grid { grid-template-columns: 1fr 1fr; } }
.planner-field label { display: block; font-family: var(--mono); font-size: .8rem; text-transform: uppercase; margin-bottom: .4rem; }
.planner-species { display: grid; gap: .5rem; }
.planner-species label { display: flex; align-items: center; gap: .6rem; font-family: var(--sans); text-transform: none; font-size: .95rem; }
.planner-result { margin-top: 1.25rem; padding: 1rem; border-left: 4px solid var(--mint-dk); background: var(--paper); }
.planner-result.is-bad { border-left-color: var(--lavender-dk); }

/* ===== notice / badges / seals ===== */
.notice { border: 1px solid var(--ink); border-left: 4px solid var(--mint-dk); background: var(--paper-2); padding: 1rem 1.25rem; border-radius: var(--radius); }
.notice.warn { border-left-color: var(--lavender-dk); }
.seal { width: 86px; height: 86px; }

/* ===== page-hero (inner pages) ===== */
.page-hero { background: var(--ink); color: var(--paper); padding: 3.5rem 0 5rem; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 94%); }
.page-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); margin: .3rem 0 0; }
.breadcrumbs { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.breadcrumbs a { color: var(--mint); }

/* ===== prose (legal pages) ===== */
.prose { max-width: var(--measure); padding: 3rem 0; }
.prose h2 { margin-top: 2rem; font-size: 1.5rem; }
.prose h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.prose p, .prose li { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }

/* ===== legal-toc ===== */
.legal-toc { background: var(--paper-2); border: 1px solid var(--ink); padding: 1.25rem 1.5rem; border-radius: var(--radius); margin: 1.5rem 0; }
.legal-toc h2 { font-size: 1rem; text-transform: uppercase; font-family: var(--mono); }
.legal-toc ol { margin: .5rem 0 0; padding-left: 1.2rem; }

/* ===== breadcrumbs already above; forms ===== */
.form-grid { display: grid; gap: 1.1rem; max-width: 640px; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .8rem; border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); accent-color: var(--mint-dk); }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--mint-dk); outline-offset: 1px; }
.field-error { color: #7a2f3a; font-size: .82rem; }
.field-row { display: grid; gap: 1.1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .field-row { grid-template-columns: 1fr 1fr; } }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.form-msg { margin-top: .75rem; font-size: .9rem; }
.form-msg-ok { color: var(--mint-dk); }
.form-msg-error { color: #7a2f3a; }

/* ===== faq ===== */
.faq { display: grid; gap: .75rem; max-width: var(--measure); }
.faq-item { border: 1px solid var(--ink); border-radius: var(--radius); background: var(--paper); padding: .2rem 1.1rem; }
.faq-item summary { cursor: pointer; padding: .9rem 0; font-family: var(--serif); font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--mono); font-size: 1.2rem; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { padding-bottom: 1rem; margin: 0; }

/* ===== product-detail ===== */
.product-detail { display: grid; gap: 2rem; }
@media (min-width: 860px) { .product-detail { grid-template-columns: 1fr 1fr; } }
.product-detail .thumb { aspect-ratio: 1/1; overflow: hidden; border: 1px solid var(--ink); border-radius: var(--radius); }
.product-detail .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-family: var(--mono); font-size: 1.6rem; color: var(--lavender-dk); }
.qty-row { display: flex; align-items: center; gap: .75rem; margin: 1.25rem 0; }
.qty-row input { width: 4rem; padding: .5rem; border: 1px solid var(--ink); border-radius: var(--radius); font: inherit; text-align: center; }
.spec-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
.spec-table th, .spec-table td { text-align: left; padding: .5rem 0; border-bottom: 1px solid var(--paper-2); font-size: .92rem; }
.spec-table th { width: 40%; font-family: var(--mono); text-transform: uppercase; font-size: .78rem; opacity: .7; }

/* ===== cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { text-align: left; padding: .75rem .5rem; border-bottom: 1px solid var(--paper-2); }
.cart-table img { width: 56px; height: 56px; object-fit: cover; border-radius: var(--radius); }
.cart-summary { background: var(--paper-2); border: 1px solid var(--ink); border-radius: var(--radius); padding: 1.5rem; max-width: 360px; margin-left: auto; }
.cart-summary .line { display: flex; justify-content: space-between; margin-bottom: .6rem; }
.cart-summary .total { font-weight: 700; font-size: 1.2rem; border-top: 1px solid var(--ink); padding-top: .6rem; }
.cart-empty { text-align: center; padding: 3rem 0; }

/* ===== contact-layout ===== */
.contact-layout { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-layout { grid-template-columns: 1fr 1fr; } }
.contact-info { display: grid; gap: 1rem; }
.contact-info .item { display: flex; gap: .75rem; align-items: flex-start; }

/* ===== footer ===== */
.site-footer { background: var(--ink); color: var(--paper); padding: 3.5rem 0 1.5rem; position: relative; z-index: 2; }
.footer-grid { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr 1.4fr; } }
.footer-brand p { margin: .75rem 0 .5rem; opacity: .85; }
.footer-brand a { color: var(--mint); }
.footer-col h3 { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; margin-bottom: .75rem; color: var(--mint); }
.footer-col { display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: var(--paper); opacity: .85; }
.footer-col a:hover { opacity: 1; text-decoration: underline; }
.footer-newsletter h3 { font-family: var(--mono); font-size: .85rem; text-transform: uppercase; color: var(--mint); margin-bottom: .5rem; }
.footer-newsletter p { opacity: .85; font-size: .9rem; margin: 0 0 .75rem; }
.newsletter-form { display: flex; gap: .5rem; flex-wrap: wrap; }
.newsletter-form input[type=email] { flex: 1; min-width: 160px; padding: .7rem; border-radius: var(--radius); border: 1px solid var(--paper); background: transparent; color: var(--paper); }
.newsletter-form input[type=email]::placeholder { color: rgba(243,239,230,.6); }
.footer-rule { max-width: 1200px; margin: 2rem auto 0; padding: 1rem 1.25rem 0; border-top: 1px solid rgba(243,239,230,.25); font-size: .82rem; opacity: .75; }

/* ===== cookie banner ===== */
.cookie-banner { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; max-width: 560px; margin: 0 auto; background: var(--ink); color: var(--paper); border: 1px solid var(--mint); border-radius: var(--radius); padding: 1.1rem 1.25rem; z-index: 50; box-shadow: var(--shadow-paper); }
.cookie-banner p { margin: 0 0 .9rem; font-size: .9rem; }
.cookie-banner a { color: var(--mint); }
.cookie-actions { display: flex; gap: .75rem; justify-content: flex-end; }

/* ===== 404 ===== */
.notfound { text-align: center; padding: 5rem 0; }
.notfound h1 { font-size: clamp(3rem, 10vw, 6rem); }

@media (max-width: 420px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
}

/* COMPONENTS:
.site-header - sticky-less masthead header with logo and nav
.site-nav - main navigation, becomes off-canvas drawer on mobile
.nav-cart - cart link with live count badge
.cart-count - numeric badge, .bump class triggers pulse animation
.btn / .btn-fill / .btn-outline / .btn-ghost - button variants with fill-sweep hover
.hero - angled full-bleed home hero section (clip-path)
.hero-visual - duotone hero photo frame
.section-angled / .bg-mint / .bg-lavender / .bg-ink / .bg-paper2 - diagonal color sections
.section-head - rule-bordered section title row
.product-strip - horizontal scroll-snap product row (mobile)
.product-grid - responsive product grid (catalog)
.product-card - product card with image zoom on hover
.planner / .planner-grid / .planner-field / .planner-species / .planner-result - signature Zvjezdani Planer feature
.notice / .notice.warn - callout box
.seal - fixed-size decorative badge svg
.page-hero - angled hero banner for inner pages
.breadcrumbs - small-caps breadcrumb trail
.prose - readable-measure long-form legal text
.legal-toc - table of contents box for legal pages
.form-grid / .field / .field-row / .field-error - form layout system
.hp - visually hidden honeypot field
.form-msg / .form-msg-ok / .form-msg-error - form feedback message
.faq / .faq-item - details/summary accordion
.product-detail / .qty-row / .spec-table - single product page layout
.cart-table / .cart-summary / .cart-empty - cart and checkout layout
.contact-layout / .contact-info - contact page split layout
.site-footer / .footer-grid / .footer-col / .footer-newsletter - footer layout
.cookie-banner / .cookie-actions - cookie consent banner
.notfound - 404 page layout
.reveal / .in-view - scroll-reveal animation hook
.grain-overlay - fixed full-viewport SVG grain texture
.divider - full-width decorative svg divider
.wrap / .grid / .grid-2 / .grid-3 - layout containers
*/

/* ===== faq-content ===== */
.faq-content {
  padding: 0 0 1rem;
  margin: 0;
}

/* ===== quantity input ===== */
.qty-input {
  width: 4rem;
  padding: .5rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font: inherit;
  text-align: center;
  background: var(--paper);
  accent-color: var(--mint-dk);
}

.qty-input:focus {
  outline: 3px solid var(--mint-dk);
  outline-offset: 1px;
}

/* ===== remove button ===== */
.remove-btn {
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  padding: .4rem;
  font-size: 1.3rem;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  transition: background .2s ease;
}

.remove-btn:hover {
  background: rgba(28,28,34,0.08);
}

.remove-btn:focus-visible {
  outline: 3px solid var(--mint-dk);
  outline-offset: 2px;
}

/* ===== product-image ===== */
.product-image {
  aspect-ratio: 1/1;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== product-info ===== */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== product-body ===== */
.product-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ===== spec-row ===== */
.spec-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--paper-2);
  align-items: baseline;
}

@media (min-width: 620px) {
  .spec-row {
    grid-template-columns: 40% 1fr;
  }
}

/* ===== spec-label ===== */
.spec-label {
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .7;
}

/* ===== spec-value ===== */
.spec-value {
  font-size: .92rem;
}

/* wg-contrast-autofix */
div.wrap div.reveal.in-view div.hero-actions a.btn.btn-outline { color: #ffffff !important; }
