/* Mojavto theme - catalogue for mojavto.si. Tokens, base, header, catalogue, product page, forms, footer. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-400-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap; src: url('../fonts/inter-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--red: #d2232a;
	--red-dark: #b11c22;
	--red-soft: #fdeceb;
	--green: #1f8a3b;
	--green-soft: #e7f6ec;
	--ink: #231f20;
	--text: #2b2b2b;
	--muted: #6b6b6b;
	--line: #e3e3e5;
	--bg: #f4f4f5;
	--card: #ffffff;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 6px 18px rgba(0, 0, 0, .06);
	--shadow-hover: 0 10px 28px rgba(0, 0, 0, .12);
	--wrap: 1360px;
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--red-dark); text-decoration: none; }
a:hover { color: var(--red); text-decoration: underline; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
h2 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 1000; width: auto; height: auto; clip: auto; padding: 8px 12px; background: #fff; color: var(--ink); border-radius: 6px; }
.section { padding: 28px 0; }
.section--narrow { max-width: 720px; }
.section__title { margin-bottom: 18px; }
.section__title a { color: inherit; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; transition: background .15s, box-shadow .15s, transform .15s; }
.btn:hover { text-decoration: none; box-shadow: var(--shadow); }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); border-color: var(--red-dark); color: #fff; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(0, 0, 0, .04); }
.site-header__bar { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 20px; padding: 10px 0; }
.brand a { display: inline-block; }
.brand img { height: 56px; width: auto; }
.site-header__search { max-width: 640px; width: 100%; justify-self: center; }
.site-header__contact { display: flex; gap: 18px; }
.contact-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .95rem; }
.contact-link svg { color: var(--red); flex: none; }
.contact-link:hover { color: var(--red); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: block; }
.site-nav { border-top: 1px solid var(--line); background: #fff; }
.site-nav .wrap { display: flex; align-items: center; justify-content: space-between; }
.site-nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav .menu a { display: block; padding: 11px 14px; color: var(--ink); font-weight: 600; border-bottom: 3px solid transparent; }
.site-nav .menu a:hover { color: var(--red); text-decoration: none; }
.site-nav .menu .current-menu-item > a, .site-nav .menu .current_page_item > a, .site-nav .menu .current-menu-ancestor > a { border-bottom-color: var(--red); color: var(--red); }
.site-nav .sub-menu { display: none; }
.site-nav__contact { display: none; }

/* search */
form.search { position: relative; display: flex; }
.search__input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-right: 0; border-radius: 10px 0 0 10px; background: var(--bg); outline: none; transition: border-color .15s, background .15s; }
.search__input:focus { border-color: var(--red); background: #fff; }
.search__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search__button { display: inline-flex; align-items: center; gap: 8px; padding: 0 18px; height: 46px; border: 0; border-radius: 0 10px 10px 0; background: var(--red); color: #fff; font-weight: 600; cursor: pointer; }
.search__button:hover { background: var(--red-dark); }
.search--big .search__input { height: 58px; font-size: 1.1rem; padding: 0 20px; background: #fff; }
.search--big .search__button { height: 58px; padding: 0 26px; font-size: 1.05rem; }
.search__suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 200; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-hover); overflow: hidden; }
.search__suggest[hidden] { display: none; }
.suggest__list { list-style: none; margin: 0; padding: 6px; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest__item a { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 6px 8px; border-radius: 8px; color: var(--text); text-align: left; }
.suggest__item a:hover, .suggest__item.is-active a { background: var(--bg); text-decoration: none; }
.suggest__thumb { width: 56px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--bg); }
.suggest__thumb--empty { display: flex; align-items: center; justify-content: center; color: #bbb; }
.suggest__title { display: block; font-weight: 600; color: var(--ink); font-size: .95rem; line-height: 1.3; }
.suggest__cat { display: block; font-size: .8rem; color: var(--muted); }
.suggest__all { display: block; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--bg); font-weight: 600; text-align: center; }
.suggest__empty { padding: 14px; color: var(--muted); text-align: center; }

/* ---------- hero (front page) ---------- */
.hero { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero__inner { padding: 44px 0 36px; max-width: 860px; text-align: center; }
.hero__title { margin-bottom: 6px; }
.hero__sub { color: var(--muted); font-size: 1.05rem; margin-bottom: 22px; }
.hero__hint { margin: 12px 0 0; color: var(--muted); font-size: .9rem; }

/* ---------- page head / breadcrumb ---------- */
.page-head { padding: 22px 0 4px; }
.page-head--product { padding-bottom: 0; }
.page-head__title { margin-bottom: 4px; }
.page-head__title em { font-style: normal; color: var(--red); }
.page-head__sub { color: var(--muted); margin: 0 0 8px; }
.page-head__desc { max-width: 760px; color: var(--muted); }
.crumbs ol { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: .85rem; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '›'; margin: 0 8px; color: #b5b5b5; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--red); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 500; }

/* ---------- category tiles ---------- */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.tile a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .15s, box-shadow .15s, border-color .15s; }
.tile a:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.tile__image { display: block; aspect-ratio: 4 / 3; background: #fff; overflow: hidden; }
.tile__image img { width: 100%; height: 100%; object-fit: cover; }
.tile__image--icon { display: flex; align-items: center; justify-content: center; color: #c9c9c9; background: var(--bg); }
.tile__name { display: block; padding: 12px 14px 2px; font-weight: 700; font-size: .95rem; line-height: 1.25; }
.tile__count { display: block; padding: 0 14px 12px; font-size: .8rem; color: var(--muted); }

/* ---------- product cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.card__link { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card__link:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: transparent; }
.card__image { display: block; aspect-ratio: 4 / 3; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.card__image img { width: 100%; height: 100%; object-fit: cover; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.card__cat { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.card__title { font-weight: 600; color: var(--ink); line-height: 1.3; font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__meta { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card__sku { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* stock badges */
.stock { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.stock::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stock--ok { background: var(--green-soft); color: var(--green); }
.stock--none { background: var(--red-soft); color: var(--red); }
.stock--big { font-size: 1rem; padding: 6px 14px; }
.stock--big.stock--none { font-size: 1.35rem; padding: 8px 18px; letter-spacing: .02em; }

/* loop head, pagination, empty */
.loop-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.loop-head__count, .woocommerce-result-count { margin: 0; color: var(--muted); font-size: .9rem; }
.woocommerce-ordering select { height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.pagination { margin-top: 28px; }
.pagination .page-numbers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination .page-numbers li a, .pagination .page-numbers li span { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; }
.pagination .page-numbers li span.current { background: var(--red); border-color: var(--red); color: #fff; }
.pagination .page-numbers li a:hover { border-color: var(--red); color: var(--red); text-decoration: none; }
.empty { max-width: 640px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.empty p:last-child { margin: 0; }
.empty__links { margin-top: 18px; }

/* ---------- product page ---------- */
.product { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 36px; align-items: start; padding: 12px 0 28px; }
.gallery__main { display: block; aspect-ratio: 4 / 3; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__main--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #bbb; }
.gallery__thumbs { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.gallery__thumb { padding: 0; width: 72px; height: 54px; border: 2px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active, .gallery__thumb:hover { border-color: var(--red); }
.product__info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px 26px; }
.product__cat { display: inline-block; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 8px; }
.product__title { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.product__meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.product__meta div { display: flex; flex-direction: column; gap: 4px; }
.product__meta dt { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.product__meta dd { margin: 0; font-size: 1.1rem; font-weight: 600; color: var(--ink); }
.product__note { margin: 16px 0 0; padding: 12px 14px; background: var(--red-soft); border-radius: var(--radius-sm); color: var(--red-dark); font-size: .95rem; }
.product__desc { margin-top: 16px; color: var(--text); }
.product__form-title { font-size: 1.1rem; margin: 26px 0 12px; padding-top: 22px; border-top: 1px solid var(--line); }

/* ---------- inquiry form ---------- */
.inquiry__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field b { color: var(--red); font-weight: 600; }
.field input, .field textarea { width: 100%; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(210, 35, 42, .12); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.inquiry__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 4px; }
.inquiry__hint { color: var(--muted); font-size: .9rem; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 14px; }
.notice svg { flex: none; margin-top: 2px; }
.notice--ok { background: var(--green-soft); color: var(--green); }
.notice--err { background: var(--red-soft); color: var(--red-dark); }
.page-content .inquiry { max-width: 640px; }

/* ---------- how-to + contact strip ---------- */
.howto { margin-bottom: 24px; }
.howto__steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.howto__steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 18px 64px; position: relative; }
.howto__steps li::before { content: counter(step); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.contact-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-strip__item { display: flex; align-items: center; gap: 14px; background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 20px; }
.contact-strip__item svg { color: var(--red); width: 26px; height: 26px; flex: none; }
.contact-strip__item span { display: flex; flex-direction: column; }
.contact-strip__item small { color: #b9b9b9; font-size: .8rem; }
.contact-strip__item a { color: #fff; font-weight: 600; }
.contact-strip__item a:hover { color: var(--red); text-decoration: none; }

/* ---------- pages ---------- */
.page-content { padding-bottom: 36px; }
.prose { max-width: 820px; }
.prose > :first-child { margin-top: 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; background: #fff; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.prose img { border-radius: var(--radius-sm); }
.map-embed { margin: 10px 0 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { display: block; border: 0; width: 100%; }

/* ---------- footer ---------- */
.site-footer { margin-top: 32px; background: var(--ink); color: #d4d4d4; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--red); text-decoration: none; }
.site-footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 40px 0 28px; }
.site-footer__title { display: block; color: #fff; margin-bottom: 10px; font-size: 1.05rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer p { margin: 0; font-size: .95rem; }
.footer-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 0 20px; border-top: 1px solid #3a3637; font-size: .85rem; color: #a9a9a9; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .9); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox__close, .lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox__close { top: 16px; right: 16px; transform: none; }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover { background: var(--red); }

/* admin bar / preview */
.admin-bar .site-header { top: 32px; }
.mojavto-preview::before { content: 'Predogled nove teme – vidite jo samo vi (prijavljeni skrbnik).'; display: block; background: #ffeec2; color: #6a4a00; text-align: center; font-size: .85rem; padding: 6px 12px; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
	.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
	.site-header__bar { grid-template-columns: auto 1fr auto; }
	.site-header__contact { display: none; }
	.site-nav__contact { display: flex; gap: 16px; font-size: .95rem; }
	.site-nav__contact a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
	.site-nav__contact svg { color: var(--red); }
	.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.product { grid-template-columns: 1fr; gap: 20px; }
	.howto__steps, .contact-strip, .site-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 720px) {
	.site-header__bar { grid-template-columns: auto 1fr auto; gap: 12px; }
	.brand img { height: 44px; }
	.site-header__search { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; max-width: none; }
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; }
	.site-nav.is-open { display: block; }
	.site-nav .wrap { flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 14px; }
	.site-nav .menu { flex-direction: column; gap: 0; }
	.site-nav .menu a { padding: 12px 6px; border-bottom: 1px solid var(--line); }
	.site-nav .menu .current-menu-item > a { border-bottom-color: var(--line); }
	.site-nav__contact { flex-direction: column; gap: 10px; padding: 6px; }
	.search__button span { display: none; }
	.search__button { padding: 0 14px; }
	.search--big .search__input { height: 50px; font-size: 1rem; }
	.search--big .search__button { height: 50px; padding: 0 18px; }
	.hero__inner { padding: 28px 0 24px; }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.card__body { padding: 10px 10px 12px; }
	.card__meta { flex-direction: column; align-items: flex-start; gap: 4px; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.product__info { padding: 18px 16px 20px; }
	.field-row { grid-template-columns: 1fr; }
	.loop-head { flex-direction: column; align-items: flex-start; gap: 8px; }
	.suggest__item a { grid-template-columns: 48px 1fr; }
	.suggest__item .stock { display: none; }
}
