/* Mjehurići — design system. Style: Textile weave / woven threads. */
:root {
  --midnight: #0b1f3a;
  --midnight-2: #132a4d;
  --silver: #c9ccd6;
  --ice: #d9f1ff;
  --bubble-blue: #8fd6ff;
  --bubble-pink: #f5b8d6;
  --ink: #0b1f3a;
  --paper: #fbfcfe;
  --line: rgba(11,31,58,.14);
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 18px 40px -20px rgba(11,31,58,.35);
  --font-display: "Iowan Old Style", "Palatino Linotype", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --speed: .5s;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
html, body { overflow-x: clip; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; }
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
@media (max-width: 640px) { section { padding: 48px 0; } }

/* ===== Buttons ===== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--speed), border-color var(--speed), transform .2s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  left: -100%;
  background: var(--midnight);
  z-index: -1;
  transition: left var(--speed) cubic-bezier(.6,0,.2,1);
}
.btn-primary { background: var(--midnight); color: #fff; }
.btn-primary::before { background: var(--bubble-pink); }
.btn-primary:hover::before { left: 0; }
.btn-primary:hover { color: var(--midnight); }
.btn-ghost { background: transparent; color: var(--midnight); border-color: var(--line); }
.btn-ghost::before { background: var(--midnight); }
.btn-ghost:hover::before { left: 0; }
.btn-ghost:hover { color: #fff; }
.btn-dark-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-dark-ghost::before { background: #fff; }
.btn-dark-ghost:hover::before { left: 0; }
.btn-dark-ghost:hover { color: var(--midnight); }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 38px; padding: 8px 18px; font-size: 14px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,252,254,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo svg { width: 42px; height: 42px; }
.logo-word { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--midnight); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 600; color: var(--midnight); position: relative; padding: 4px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--bubble-pink); transition: width var(--speed);
}
.nav-links a:hover::after, .nav-links a.is-active::after { width: 100%; }
.nav-links a.is-active { color: var(--midnight); }
.cart-link { display: flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 700; }
.cart-link svg { width: 24px; height: 24px; }
[data-cart-count] {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
  background: var(--bubble-pink); color: var(--midnight); font-size: 12px; font-weight: 800;
  transition: transform .25s;
}
[data-cart-count].bump { animation: bump .35s ease; }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle svg { width: 26px; height: 26px; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav-links {
    position: fixed; inset: 76px 0 0 auto; right: 0; width: min(78vw, 320px); height: calc(100vh - 76px);
    flex-direction: column; background: var(--midnight); padding: 32px 24px; gap: 20px;
    transform: translateX(100%); visibility: hidden; transition: transform var(--speed), visibility var(--speed);
  }
  .nav-links.is-open, [data-menu].is-open { transform: translateX(0); visibility: visible; }
  .nav-links a { color: #fff; }
  .nav-links a::after { background: var(--bubble-blue); }
}

/* ===== Hero / page-hero ===== */
.hero { position: relative; overflow: hidden; background: var(--midnight); color: #fff; padding: 96px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--bubble-blue); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 13px; margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); color: #fff; margin-bottom: .4em; }
.hero p.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ice); max-width: 46ch; margin-bottom: 1.6em; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.hero-art .layer { position: absolute; inset: 0; transition: transform 1.1s cubic-bezier(.16,1,.3,1), opacity 1.1s; }
.hero-art .layer-photo { clip-path: polygon(8% 4%, 96% 10%, 92% 96%, 4% 90%); overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-art .layer-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero[data-hero-mounted] .layer-photo { transform: translate(0,0); }
.hero .layer-photo { transform: translate(18px,24px); }
.hero .layer-svg { transform: translate(-16px,-18px); }
.hero[data-hero-mounted] .layer-svg { transform: translate(0,0); }
.hero-art .layer-svg svg { width: 100%; height: 100%; }
.hero-bg-grain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; pointer-events: none; mix-blend-mode: overlay; }

.page-hero { background: var(--midnight); color: #fff; padding: 64px 0 56px; position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero p { color: var(--ice); max-width: 60ch; }

/* ===== Breadcrumbs ===== */
.breadcrumbs { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0 0 14px; font-size: 13px; color: var(--ice); flex-wrap: wrap; }
.breadcrumbs a { color: var(--ice); text-decoration: none; opacity: .85; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 8px; opacity: .5; }

/* ===== Bento grid (home) ===== */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bento-feature { grid-column: span 4; }
.bento-cell { grid-column: span 2; }
.bento-cell-sm { grid-column: span 1; }
@media (max-width: 900px) { .bento-cell { grid-column: span 4; } .bento-cell-sm { grid-column: span 2; } }
@media (max-width: 560px) { .bento-cell-sm { grid-column: span 4; } }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  position: relative; overflow: hidden;
}
.tile-dark { background: var(--midnight); color: #fff; }
.tile-dark h3 { color: #fff; }
.tile img { border-radius: var(--radius-sm); }

/* ===== Planner feature ===== */
.planner { background: linear-gradient(160deg, var(--midnight), var(--midnight-2)); color: #fff; }
.planner h3 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.planner-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; margin-top: 20px; }
@media (max-width: 760px) { .planner-grid { grid-template-columns: 1fr; } }
.planner-controls label { display: block; font-size: 13px; color: var(--ice); margin-bottom: 6px; font-weight: 700; }
.planner-controls input[type="range"] { width: 100%; accent-color: var(--bubble-pink); margin-bottom: 20px; }
.planner-controls output { font-weight: 800; color: var(--bubble-pink); }
.planner-result { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); padding: 20px; }
.planner-result dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--bubble-blue); margin-top: 12px; }
.planner-result dt:first-child { margin-top: 0; }
.planner-result dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }

/* ===== Section headings / dividers ===== */
.section-head { max-width: 60ch; margin-bottom: 36px; }
.section-head .kicker { color: var(--bubble-pink); font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: 13px; }
.divider { display: block; width: 100%; height: 36px; margin: 0; }
.divider path { stroke: var(--silver); fill: none; stroke-width: 2; stroke-dasharray: 6 6; }

/* ===== Product cards / strip ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.product-strip { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.product-strip .card { min-width: 240px; scroll-snap-align: start; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4/3; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.08); }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 18px; margin: 0; }
.card-price { font-weight: 800; color: var(--midnight); }
.badge {
  position: absolute; top: 14px; left: 14px; background: var(--bubble-pink); color: var(--midnight);
  font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; z-index: 2;
}

/* ===== Product detail page ===== */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .product-detail { grid-template-columns: 1fr; } }
.product-detail .media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; }
.product-detail .media img { width: 100%; height: 100%; object-fit: cover; }
.product-detail .price { font-size: 28px; font-weight: 800; color: var(--midnight); }
.product-detail .feature-list { list-style: none; padding: 0; display: grid; gap: 8px; margin: 20px 0; }
.product-detail .feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.product-detail .feature-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--midnight); }
.qty-row { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.qty-input { width: 72px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; font-size: 16px; }

/* ===== Cart / checkout ===== */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.cart-table img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; max-width: 420px; margin-left: auto; }
.cart-summary .row { display: flex; justify-content: space-between; padding: 6px 0; }
.cart-summary .row.total { font-weight: 800; font-size: 18px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }

/* ===== Forms ===== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--midnight); }
.field input, .field textarea, .field select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px;
  font: inherit; background: #fff; min-height: 48px; accent-color: var(--midnight);
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--bubble-blue); outline-offset: 1px; border-color: var(--midnight);
}
.field-error { color: #c0335c; font-size: 12px; min-height: 1em; }
.form-error { color: #c0335c; font-size: 14px; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.notice { border-radius: var(--radius-sm); padding: 16px 18px; border: 1px solid var(--line); background: var(--ice); font-size: 14px; }
.notice-success { background: #e4f6e8; border-color: #bfe5c8; }
.notice-error { background: #fbe5ec; border-color: #f3c0d2; }

/* ===== Contact ===== */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 800px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { display: grid; gap: 18px; }
.contact-info .item { display: flex; gap: 12px; align-items: flex-start; }
.contact-info svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--midnight); }

/* ===== FAQ ===== */
.faq { display: grid; gap: 12px; max-width: 72ch; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 22px; color: var(--midnight); transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 20px 18px; color: #334; }

/* ===== Legal / prose ===== */
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 22px; }
.prose p, .prose li { color: #223; }
.prose ul { padding-left: 1.2em; }
.legal-toc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 32px; }
.legal-toc ol { margin: 0; padding-left: 1.2em; }
.legal-toc a { text-decoration: none; color: var(--midnight); font-weight: 600; }
.legal-toc a:hover { text-decoration: underline; }

/* ===== Footer ===== */
.site-footer { background: var(--midnight); color: var(--ice); padding: 64px 0 32px; margin-top: 80px; position: relative; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ice); text-decoration: none; font-size: 14px; }
.footer-grid a:hover { text-decoration: underline; }
.newsletter-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 160px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); color: #fff; padding: 0 16px; min-height: 44px; }
.newsletter-form input::placeholder { color: rgba(255,255,255,.6); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 40px; padding-top: 24px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: rgba(255,255,255,.7); }

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 90;
  background: var(--midnight); color: #fff; border-radius: var(--radius); padding: 20px 24px;
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto;
}
.cookie-banner p { margin: 0; font-size: 14px; flex: 1 1 260px; color: var(--ice); }
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; }

/* ===== Toast ===== */
.mj-toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--midnight); color: #fff;
  padding: 14px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow); z-index: 100;
  transform: translateY(12px); opacity: 0; transition: transform .3s, opacity .3s;
}
.mj-toast.show { transform: translateY(0); opacity: 1; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); clip-path: inset(0 0 12% 0); transition: opacity .7s ease, transform .7s ease, clip-path .7s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); clip-path: inset(0 0 0 0); }
.reveal-stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* ===== Thread divider (stitched) ===== */
.stitch { border: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--silver) 0 10px, transparent 10px 18px); margin: 0; }

/* ===== Utilities ===== */
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-flex { display: flex; }
.u-gap-12 { gap: 12px; }
.u-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 700px) { .u-grid-2 { grid-template-columns: 1fr; } }
.visually-hidden { position: absolute; left: -9999px; }

/* COMPONENTS:
.btn / .btn-primary / .btn-ghost / .btn-dark-ghost / .btn-sm - button variants with fill-sweep hover
.site-header / .nav / .nav-links / .logo / .cart-link / [data-cart-count] / .menu-toggle - header & nav
.hero / .hero-grid / .hero-art / .hero-bg-grain - home hero with sliding layers
.page-hero / .breadcrumbs - inner page hero banner + breadcrumb trail
.bento / .bento-feature / .bento-cell / .bento-cell-sm / .tile / .tile-dark - home bento grid
.planner / .planner-grid / .planner-controls / .planner-result - signature feature widget
.section-head / .divider / .stitch - section intros and woven-thread dividers
.product-grid / .product-strip / .card / .card-media / .card-body / .card-price / .badge - product cards
.product-detail / .qty-row / .qty-input / .feature-list - single product page layout
.cart-table / .cart-summary - cart & checkout tables
.form-grid / .field / .field-error / .form-error / .honeypot / .notice / .notice-success / .notice-error - forms
.contact-layout / .contact-info - contact page layout
.faq / .faq-item - FAQ accordion (details/summary)
.prose / .legal-toc - long legal text + table of contents
.site-footer / .footer-grid / .newsletter-form / .footer-bottom - site footer
.cookie-banner / .cookie-actions - cookie consent banner
.mj-toast - transient toast message
.reveal / .reveal-stagger - scroll-reveal animation hooks
.u-center / .u-flex / .u-gap-12 / .u-grid-2 / .visually-hidden - small utilities
*/

/* wg-contrast-autofix */
main section.wrap div.section-head.reveal span.kicker { color: #111111 !important; }
