/* Casa Amila: glavni stilovi. Mjere preuzete sa stare Woodmart stranice. */

:root {
	--ca-red: #c91d12;
	--ca-red-dark: #b21010;
	--ca-text: #0f0f0f;
	--ca-heading: #242424;
	--ca-muted: #767676;
	--ca-light: #f6f6f6;
	--ca-light-2: #f4f4f4;
	--ca-border: #d5d8dc;
	--ca-footer: #0e0e0e;
	--ca-green: #438e44;
	--ca-font: "Signika", Arial, Helvetica, sans-serif;
	--ca-container: 1222px;
	--ca-gutter: 15px;
	--ca-gap: 20px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: #fff;
	color: var(--ca-text);
	font: 400 14px/1.6 var(--ca-font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, video, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--ca-red); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ca-red-dark); }

h1, h2, h3, h4, h5, h6 { margin: 0 0 20px; color: var(--ca-heading); font-family: var(--ca-font); font-weight: 600; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0 0 20px; }

button, input, select, textarea { font: inherit; color: inherit; }

.container {
	width: 100%;
	max-width: var(--ca-container);
	margin: 0 auto;
	padding: 0 var(--ca-gutter);
}

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: #fff; padding: 10px 15px; }
.skip-link:focus { left: 10px; top: 10px; }

.ca-icon { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* ---------- Dugmad ---------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 42px;
	padding: 5px 20px;
	border: 2px solid transparent;
	border-radius: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	text-transform: uppercase;
	text-align: center;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--small { min-height: 36px; padding: 5px 14px; font-size: 12px; }
.btn--primary, .btn--crveno { background: var(--ca-red); color: #fff; }
.btn--primary:hover, .btn--crveno:hover { background: var(--ca-red-dark); color: #fff; }
.btn--bijelo { background: #fff; color: #333; }
.btn--bijelo:hover { background: #f1f1f1; color: #333; }
.btn--okvir { border-color: rgba(255, 255, 255, .8); color: #fff; background: transparent; }
.btn--okvir:hover { background: #fff; color: #333; border-color: #fff; }

/* ---------- Gornja traka ---------- */

.topbar { background: var(--ca-red); color: #fff; font-size: 12px; line-height: 1.2; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; min-height: 42px; gap: 15px; }
.topbar__text { padding: 0 10px 0 0; font-weight: 600; text-transform: uppercase; }
.topbar__tools { display: flex; align-items: center; gap: 12px; }
.topbar__divider { width: 1px; align-self: stretch; background: rgba(255, 255, 255, .25); }
.social { display: flex; align-items: center; gap: 4px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; }
.social a:hover { color: rgba(255, 255, 255, .7); }
.topbar__lang { display: flex; align-items: center; }
.topbar__lang img { display: inline-block; height: 16px; width: auto; }
.topbar__lang a { display: inline-block; margin: 0 1px; }
.topbar .cart-link { color: #fff; font-weight: 600; }

.cart-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ca-heading); font-size: 12px; font-weight: 600; text-transform: uppercase; }
.cart-link:hover { color: rgba(255, 255, 255, .8); }
.cart-link__count::after { content: " /"; font-weight: 400; }
.cart-link .woocommerce-Price-amount { font-weight: 600; }

/* ---------- Header ---------- */

.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 1px 6px rgba(0, 0, 0, .12); }
.admin-bar .site-header { top: 32px; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 110px; gap: 20px; transition: height .2s; }
.site-header.is-stuck .site-header__inner { height: 80px; }
.site-logo { display: block; flex-shrink: 0; }
.site-logo__img { width: 150px; max-height: 110px; }
.site-header.is-stuck .site-logo__img { width: 130px; }
.site-header__burger, .site-header__cart { display: none; }

.main-nav__list { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; margin: 0; padding: 0; list-style: none; }
.main-nav__list > li { position: relative; }
.main-nav__list > li > a {
	display: flex;
	align-items: center;
	gap: 4px;
	height: 40px;
	padding: 0 10px;
	color: #333;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	text-transform: uppercase;
}
.main-nav__list > li:last-child > a { padding-right: 0; }
.main-nav__list > li > a:hover,
.main-nav__list > li.current-menu-item > a,
.main-nav__list > li.current-menu-ancestor > a,
.main-nav__list > li.current-menu-parent > a { color: var(--ca-red); }
.main-nav__list > .menu-item-has-children > a::after {
	content: "";
	width: 5px;
	height: 5px;
	margin-left: 3px;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	opacity: .5;
	transform: translateY(-2px) rotate(45deg);
}
.main-nav .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 10;
	width: 220px;
	margin: 0;
	padding: 12px 20px;
	list-style: none;
	background: #fff;
	box-shadow: 0 0 3px rgba(0, 0, 0, .15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(15px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.main-nav li:hover > .sub-menu,
.main-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.main-nav .sub-menu a { display: block; padding: 8px 0; color: #838383; font-size: 14px; line-height: 1.3; }
.main-nav .sub-menu a:hover, .main-nav .sub-menu .current-menu-item > a { color: #333; }

/* ---------- Mobilni meni ---------- */

.mobile-nav { position: fixed; inset: 0; z-index: 1000; background: rgba(0, 0, 0, .5); }
.mobile-nav[hidden] { display: none; }
.mobile-nav__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 85vw); overflow-y: auto; background: #fff; padding: 50px 0 20px; animation: ca-slide-in .25s ease; }
@keyframes ca-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.mobile-nav__close { position: absolute; top: 10px; right: 10px; padding: 5px; border: 0; background: none; cursor: pointer; color: #333; }
.mobile-nav__list, .mobile-nav__list .sub-menu { margin: 0; padding: 0; list-style: none; }
.mobile-nav__list a { display: block; padding: 13px 20px; border-bottom: 1px solid rgba(0, 0, 0, .08); color: #333; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.mobile-nav__list .current-menu-item > a { color: var(--ca-red); }
.mobile-nav__list .sub-menu a { padding-left: 35px; font-weight: 400; text-transform: none; font-size: 14px; }
body.nav-open { overflow: hidden; }

/* ---------- Naslovna traka ---------- */

.page-title {
	padding: 100px 0;
	margin-bottom: 40px;
	background: #2b2b2b center / cover no-repeat;
	color: rgba(255, 255, 255, .8);
	text-align: center;
}
.page-title__heading { margin: 0 0 10px; color: #fff; font-size: 78px; font-weight: 600; line-height: 1.2; }
.breadcrumbs { font-size: 14px; }
.breadcrumbs a { color: rgba(255, 255, 255, .8); }
.breadcrumbs a:hover { color: #fff; }
.breadcrumbs__sep { margin: 0 8px; opacity: .6; }
.breadcrumbs__current { color: #fff; font-weight: 600; }

.page-content { padding-bottom: 60px; }

/* ---------- Tipografija sadržaja ---------- */

.entry-content > :last-child { margin-bottom: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 20px; padding-left: 20px; }
.entry-content li { margin-bottom: 5px; }
.entry-content h2 { font-size: 22px; }
.entry-content h3 { font-size: 18px; }
.entry-content strong { font-weight: 600; color: var(--ca-heading); }
.entry-content img { margin: 10px 0; }
.entry-content h2 { margin-top: 35px; }
.entry-content table { width: 100%; margin: 0 0 20px; border-collapse: collapse; font-size: 13px; }
.entry-content th, .entry-content td { padding: 10px 12px; border: 1px solid rgba(0, 0, 0, .1); text-align: left; vertical-align: top; }
.entry-content th { background: var(--ca-light); color: var(--ca-heading); font-weight: 600; }
.entry-content code { padding: 1px 5px; background: var(--ca-light); font-size: 12px; }
.entry-content table { display: block; overflow-x: auto; }
@media (min-width: 768px) { .entry-content table { display: table; } }

.section-heading { margin: 0 0 20px; font-size: 28px; text-align: center; }
.section-heading--left { text-align: left; }

.title-block { margin-bottom: 15px; text-align: center; }
.title-block__sub { margin: 0 0 10px; color: var(--ca-red); font-size: 14px; text-transform: uppercase; }
/* Siva linija preko cijele širine, crvena ispod samog naslova. */
.title-block__title { display: inline-block; margin: 0 0 -2px; padding-bottom: 10px; border-bottom: 2px solid var(--ca-red); font-size: 26px; line-height: 1.4; text-transform: uppercase; }
.title-block__line { border-bottom: 2px solid rgba(0, 0, 0, .106); }
.title-block--left { text-align: left; }
.title-block--left .title-block__title { text-transform: none; }
.title-block--left .title-block__line { border-bottom: 0; }
.title-block--left .title-block__title { border-bottom: 0; padding-bottom: 0; }

/* ---------- Mreža ---------- */

.grid { display: grid; gap: var(--ca-gap); }
.grid--1 { grid-template-columns: 1fr; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--5 { grid-template-columns: repeat(5, 1fr); }
.grid--6 { grid-template-columns: repeat(6, 1fr); }

/* ---------- Slider ---------- */

.hero { position: relative; height: 700px; margin-top: -10px; overflow: hidden; background: #222; }
.hero__slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.hero__slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1); }
.hero__slide.is-active .hero__bg { animation: ca-kenburns 9s ease-out forwards; }
@keyframes ca-kenburns { to { transform: scale(1.1); } }
/* Tamni centrirani okvir s tekstom, kao u starom Slider Revolutionu (864×392, crna 50%). */
.hero__content {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 864px;
	max-width: calc(100% - 30px);
	min-height: 392px;
	margin: 0 auto;
	padding: 61px 40px 64px;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	font-family: "Exo", var(--ca-font);
	text-align: center;
}
.hero__kicker { position: relative; margin: 0; font-size: 20px; font-weight: 600; line-height: 50px; letter-spacing: 3px; text-transform: uppercase; }
.hero__kicker::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 218px; height: 10px; margin-left: -109px; background: rgba(0, 0, 0, .5); }
.hero__title { max-width: 639px; margin: 26px 0 0; color: #fff; font-family: inherit; font-size: 29px; font-weight: 500; line-height: 39px; letter-spacing: 1px; }
.hero__text { max-width: 639px; margin: 15px 0 0; font-size: 16px; }
.hero__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; margin-top: auto; padding-top: 42px; }
.hero__buttons .btn { min-height: 32px; padding: 0 20px; border-width: 1px; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 30px; }
.hero__buttons .btn--bijelo { background: #fff; color: #000; }
.hero__buttons .btn--crveno { background: #c91c12; color: #fff; }
.hero__buttons .btn--okvir { border-color: #e2e2e2; color: #e2e2e2; }
.hero__buttons .btn--okvir:hover { background: #e2e2e2; color: #000; }
.hero__arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	margin-top: -40px;
	padding: 0;
	border: 0;
	background: rgba(0, 0, 0, .5);
	color: #fff;
	cursor: pointer;
	transition: background .2s;
}
.hero__arrow:hover { background: #000; }
.hero__arrow .ca-icon { width: 18px; height: 18px; }
.hero__arrow--prev { left: 20px; }
.hero__arrow--next { right: 20px; }

/* ---------- Baneri ---------- */

.home-banners { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ca-gap); margin-bottom: 92px; }
.home-banners--overlap { position: relative; z-index: 5; margin-top: -28px; }
.banner { position: relative; display: block; overflow: hidden; background: #ddd; color: #fff; }
.home-banners .banner { height: 280px; }
.banner__img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.banner:hover .banner__img { transform: scale(1.06); }
.banner__content { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 15px; padding: 30px; text-align: right; }
.banner__title { color: #fff; font-size: 22px; font-weight: 600; line-height: 1.3; }
.banner--static { height: 340px; }
/* „Zašto odabrati nas“: naslov u tamnoj traci na dnu slike. */
.banner__content--bottom { top: auto; justify-content: flex-end; align-items: flex-start; background: rgba(0, 0, 0, .8); text-align: left; }

.home-why { margin-bottom: 85px; }
.home-why .section-heading { margin-bottom: 30px; line-height: 1; }

/* ---------- Koraci ---------- */

.home-steps { padding: 60px 0; margin-bottom: 10px; background: var(--ca-light); }
.step { padding: 20px; border-radius: 8px; background: var(--ca-red); color: #fff; text-align: center; transition: transform .2s, box-shadow .2s; }
.step:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0, 0, 0, .12); }
.step__icon { height: 50px; margin-bottom: 22px; }
.step__icon .ca-icon { width: 50px; height: 50px; }
.step__title { margin: 0 0 20px; color: #fff; font-size: 22px; line-height: 1.4; }
.step__text { margin: 0; }

/* ---------- Zatražite ponudu ---------- */

.home-offer { margin-bottom: 20px; }
/* Velika slika s bijelom karticom forme u desnoj polovini. */
.home-offer__inner { display: flex; justify-content: flex-end; min-height: 730px; padding: 15px 25px 15px 0; border-radius: 8px; background: #ddd center / cover no-repeat; }
.home-offer__form { width: calc(50% - 15px); padding: 20px; border-radius: 8px; background: rgba(255, 255, 255, .98); }
.home-offer__form .section-heading { margin-bottom: 20px; }
.home-products { margin-bottom: 105px; }

/* ---------- Forma ---------- */

.contact-form .field { margin: 0 0 20px; }
.contact-form label { display: block; margin-bottom: 5px; color: var(--ca-text); font-weight: 400; }
.contact-form .req { display: none; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea { border-color: rgba(0, 0, 0, .1); color: var(--ca-heading); }
.contact-form button[type=submit] { background: #83b735; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .15); }
.contact-form button[type=submit]:hover { background: #74a32f; }
.contact-form input[type=text], .contact-form input[type=email], .contact-form input[type=tel], .contact-form textarea,
.woocommerce input.input-text, .woocommerce select, .woocommerce textarea {
	width: 100%;
	min-height: 42px;
	padding: 0 15px;
	border: 2px solid rgba(129, 129, 129, .2);
	border-radius: 0;
	background: #fff;
	font-size: 14px;
	transition: border-color .2s;
}
.contact-form textarea, .woocommerce textarea { min-height: 120px; padding: 10px 15px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .woocommerce input.input-text:focus, .woocommerce textarea:focus { outline: none; border-color: rgba(129, 129, 129, .4); }
.contact-form .is-invalid { border-color: var(--ca-red) !important; }
.contact-form__err { display: block; margin-top: 4px; color: var(--ca-red); font-size: 13px; }
.contact-form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form__submit { margin: 0; }
.contact-form button[disabled] { opacity: .6; cursor: wait; }
.contact-form__msg:empty { display: none; }
.contact-form__msg { margin-top: 15px; padding: 12px 15px; border-left: 3px solid var(--ca-green); background: #eef7ee; color: #2c612d; }
.contact-form__msg.is-error { border-color: var(--ca-red); background: #fbecea; color: #8d150d; }

/* ---------- Sekcije ---------- */

.sections { padding: 20px 0 10px; }
.sec-row { padding: 0 0 40px; }
.sec-row:has(.cards--okvir) { padding-top: 50px; }
.sec-row--siva { padding: 50px 0; margin-bottom: 50px; background: var(--ca-light-2); }
.sec-row__half { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.sec-row__half .sec--media { grid-template-columns: 1fr; }
.sec + .sec { margin-top: 40px; }
.sec__title, .sec-heading { margin: 0 0 20px; color: var(--ca-heading); font-size: 24px; line-height: 1; text-align: left; }
.sec__title.is-center, .sec-heading.is-center { text-align: center; }
.sec__title.is-big, .sec-heading.is-big { font-size: 28px; }
.sec--heading .sec-heading { margin: 0; padding: 35px 0 15px; }
.btn--big { min-height: 58px; padding: 20px 40px; border: 0; border-radius: 5px; font-size: 18px; font-weight: 400; line-height: 18px; text-transform: none; }
.btn--big .ca-icon { width: 18px; height: 18px; }
.sec--text .sec__title, .sec--media .sec__title { margin-bottom: 20px; }

.sec--media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: center; }
.sec--top { align-items: start; }
.sec--top .sec__text { padding: 0 10px; }
.sec--top .sec__media { padding: 10px 20px; }
.sec__body.is-big { font-size: 16px; line-height: 1.6; }
.share-icons { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.share-icons a { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: #efefef; color: rgba(0, 0, 0, .4); }
.share-icons a:hover { background: var(--ca-red); color: #fff; }
.share-icons .ca-icon { width: 13px; height: 13px; }
.sec__share { margin-top: 51px; }
.sec--media.sec--no-img { grid-template-columns: 1fr; }
.sec--img-left .sec__media { order: -1; }
.sec__media { display: grid; gap: var(--ca-gap); }
.sec__img { display: block; overflow: hidden; }
.sec__img img { width: 100%; transition: transform .5s; }
.sec__img:hover img { transform: scale(1.04); }
.sec__btn { margin: 25px 0 0; }

.sec--infobox { padding: 25px; border-radius: 5px; background: #fff; box-shadow: 0 3px 40px rgba(36, 36, 36, .1); }
.sec--infobox .sec__btn { margin-top: 25px; }
.sec--infobox .btn--big { min-height: 46px; padding: 15px; gap: 6px; font-size: 14px; line-height: 14px; }
.sec--infobox .btn--big .ca-icon { width: 16px; height: 16px; }
.sec--infobox .infobox__icon { margin-bottom: 25px; }
.sec--infobox .infobox__icon img { width: 80px; height: 80px; object-fit: contain; }
.sec--infobox .sec__title { margin-bottom: 10px; color: #151515; font-size: 24px; line-height: 1.4; }

.gallery__item { display: block; position: relative; overflow: hidden; background: #eee; aspect-ratio: 16 / 10; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, opacity .3s; }
.gallery__item:hover img { transform: scale(1.06); opacity: .9; }
.gallery__item::after {
	content: "+";
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, .3);
	color: #fff;
	font-size: 36px;
	font-weight: 300;
	opacity: 0;
	transition: opacity .3s;
}
.gallery__item:hover::after { opacity: 1; }
.sec--gallery .sec-heading { padding: 20px 0 35px; margin-bottom: 5px; }
.sec--gallery .gallery { gap: 10px; }
.sec--gallery .grid--6 { gap: 5px; }
/* Kao stara Woodmart galerija: prirodan omjer, uspravne slike najviše 300 px, centrirano u redu. */
.sec--gallery .gallery { align-items: center; }
.sec--gallery .gallery__item { display: flex; justify-content: center; aspect-ratio: auto; background: none; }
.sec--gallery .gallery__item img { width: auto; max-width: 100%; height: auto; max-height: 300px; }

.video { display: block; width: 100%; height: auto; max-height: 471px; margin: 0 auto; object-fit: contain; }

/* Kartice */
.sec--cards > .sec__body { margin-bottom: 25px; }
.cards--okvir .card { padding: 25px; border-radius: 20px; background: #fff; box-shadow: 0 3px 40px rgba(36, 36, 36, .1); text-align: center; }
.cards--okvir .btn .ca-icon { width: 16px; height: 14px; }
.cards--okvir .card__img { display: block; margin-bottom: 25px; overflow: hidden; border-radius: 10px; }
.cards--okvir .card__img img { width: 100%; aspect-ratio: 334 / 209; object-fit: cover; border-radius: 10px; transition: transform .5s; }
.cards--okvir .card__img:hover img { transform: scale(1.05); }
.cards--okvir .card__title { margin: 0 0 10px; color: #151515; font-size: 20px; line-height: 1.4; }
.cards--okvir .btn { min-height: 35px; gap: 6px; padding: 10px 15px; line-height: 14px; border: 0; border-radius: 5px; font-size: 14px; font-weight: 400; text-transform: none; }
.cards--okvir .card__text { margin-bottom: 15px; }

.cards--ikona .card { display: flex; gap: 20px; align-items: flex-start; }
.cards--ikona .card__img { flex: 0 0 80px; }
.cards--ikona .card__img img { width: 80px; height: 80px; object-fit: contain; }
.cards--ikona .card__title, .cards--ikona_okvir .card__title { margin: 0 0 5px; color: var(--ca-heading); font-size: 18px; line-height: 1.4; }
/* Koraci u sivom zaobljenom okviru (Kuhinje po mjeri). */
.cards--ikona_okvir { row-gap: 40px; }
.cards--ikona_okvir .card { display: flex; gap: 40px; align-items: flex-start; margin: 0 20px; padding: 15px; border-radius: 10px; background: var(--ca-light-2); }
.cards--ikona_okvir .card__img { flex: 0 0 80px; }
.cards--ikona_okvir .card__img img { width: 80px; height: 80px; object-fit: contain; }
.cards--ikona_okvir .card__text { margin: 0; }
.cards--ikona .card__text { margin: 0; }
.cards--ikona .card__body .btn { margin-top: 10px; }

.cards--slika .card, .cards--slika_okvir .card { text-align: center; }
.cards--slika .card__img, .cards--slika_okvir .card__img { display: block; overflow: hidden; margin-bottom: 12px; }
.cards--slika .card__img img, .cards--slika_okvir .card__img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .5s; }
.cards--slika .card__img:hover img, .cards--slika_okvir .card__img:hover img { transform: scale(1.05); }
.cards--slika .card__title, .cards--slika_okvir .card__title { margin: 0; color: var(--ca-text); font-size: 14px; font-weight: 400; line-height: 1.4; }
.cards--slika .card__text, .cards--slika_okvir .card__text { margin: 5px 0 0; color: var(--ca-muted); }
/* Šeme ormara: slika visine 250 px centrirana, naslov ispod. */
.cards--shema .card { text-align: center; }
.cards--shema .card__img { display: block; margin-bottom: 15px; }
.cards--shema .card__img img { width: auto; max-width: 100%; height: 250px; margin: 0 auto; object-fit: contain; }
.cards--shema .card__title { margin: 0; color: var(--ca-heading); font-size: 22px; font-weight: 600; line-height: 1.4; }
.sec--cards .sec-heading.is-center { padding: 20px 0 35px; margin-bottom: 5px; }
/* Naslov iznad slike (Primjer br. 1, 2, 3). */
.cards--naslov_gore .card { display: flex; flex-direction: column-reverse; gap: 20px; text-align: center; }
.cards--naslov_gore .card__title { margin: 0; color: var(--ca-heading); font-size: 18px; font-weight: 600; line-height: 1; }
.cards--naslov_gore .card__img img { width: 100%; aspect-ratio: 384 / 344; object-fit: contain; }
/* Slika s natpisom u tankom okviru (Funkcionalni dodaci). */
.cards--slika_okvir { gap: 30px; }
.cards--slika_okvir .card { padding: 10px; border: 1px solid #cbcbcb; border-radius: 5px; }

/* ---------- Harmonika ---------- */

.accordion-intro { margin-bottom: 30px; }
.accordion-page { padding-top: 10px; padding-bottom: 50px; }
/* Kao Elementor toggle: samo donja linija, strelica lijevo. */
.accordion__heading { margin: 0; }
.accordion__btn { display: flex; align-items: center; gap: 4px; width: 100%; padding: 15px; border: 0; border-bottom: 1px solid var(--ca-border); background: none; color: var(--ca-text); font-size: 14px; font-weight: 700; line-height: 14px; text-align: left; cursor: pointer; }
.accordion__btn .ca-icon { width: 14px; height: 14px; margin-left: -3px; transition: transform .2s; }
.accordion__btn[aria-expanded=true] { border-bottom: 0; }
.accordion__btn[aria-expanded=true] .ca-icon { transform: rotate(-90deg); }
.accordion__panel { padding: 30px 15px 15px; border-bottom: 1px solid var(--ca-border); }
.accordion__title { margin: 0 0 30px; color: var(--ca-heading); font-size: 28px; line-height: 1; text-align: center; }
.accordion__inner--media { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; padding: 0 20px; }
.accordion__media { display: grid; gap: 15px; }
.accordion__img { display: block; }
.accordion__img img { width: 100%; }
/* Dekori: pločice 200x120 s natpisom preko slike. */
.acc-gallery { display: flex; flex-wrap: wrap; gap: 14px; padding: 7px; }
.acc-gallery__item { position: relative; display: block; width: 200px; height: 120px; overflow: hidden; }
.acc-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.acc-gallery__item:hover img { transform: scale(1.06); }
.acc-gallery__title { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 6px; background: rgba(0, 0, 0, .5); color: #fff; font-size: 12px; line-height: 1.3; }
.accordion__inner--media + .acc-gallery, .accordion__text + .acc-gallery { margin-top: 20px; }

/* ---------- Kontakt ---------- */

.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; padding-top: 20px; }
.contact-page__form { padding: 0 0 0 40px; }
.contact-page__form .title-block { margin-bottom: 30px; }
.contact-page__form .title-block__title { font-size: 22px; line-height: 30.8px; padding: 0; border: 0; }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.contact-list .ca-icon { margin-top: 3px; color: var(--ca-red); }
.contact-list--big { margin-bottom: 20px; font-size: 18px; line-height: 28.8px; }
.contact-list--big li { gap: 5px; margin-bottom: 5px; padding-bottom: 5px; }
.contact-list--big li:last-child { margin-bottom: 0; padding-bottom: 0; }
.contact-list--big .ca-icon { width: 22px; height: 22px; margin: 3px 3px 0 0; color: #000; }
.contact-list--big a { color: var(--ca-text); }
.contact-list--big a:hover { color: var(--ca-red); }
.contact-page__map iframe { display: block; width: 100%; height: 450px; border: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--ca-footer); color: rgba(255, 255, 255, .8); }
.site-footer__inner { padding-top: 40px; padding-bottom: 40px; }
.site-footer__col { max-width: 276px; }
.site-footer__logo { display: inline-block; margin: 10px 0 20px; }
.site-footer__logo img { width: 220px; height: 96px; }
.site-footer .contact-list li { margin-bottom: 15px; }
.site-footer .contact-list li:last-child { margin-bottom: 0; }
.site-footer .contact-list .ca-icon { width: 14px; height: 14px; margin-top: 4px; }
.site-footer a { color: rgba(255, 255, 255, .8); }
.site-footer a:hover { color: #fff; }
.site-footer .contact-list .ca-icon { color: #fff; }
.site-footer__copy { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 11.2px; line-height: 22.4px; text-align: center; text-transform: uppercase; }
.site-footer__copy p { margin: 0; }
.site-footer__copy strong { font-weight: 700; color: rgba(255, 255, 255, .9); }

.to-top {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 0 5px rgba(0, 0, 0, .17);
	color: #333;
	opacity: 0;
	visibility: hidden;
	transform: translateY(20px);
	transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { color: var(--ca-red); }

/* ---------- Kolačići ---------- */

.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1500; padding: 20px 0; background: #fff; box-shadow: 0 -2px 20px rgba(0, 0, 0, .12); }
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; align-items: center; gap: 30px; }
.cookie-banner__text { flex: 1; }
.cookie-banner__text p { margin: 0; }
.cookie-banner__title { margin-bottom: 4px !important; color: var(--ca-heading); font-size: 16px; font-weight: 600; }
.cookie-banner__actions { display: flex; flex-shrink: 0; gap: 10px; }
.btn--okvir-tamno { border-color: rgba(0, 0, 0, .15); background: #fff; color: #333; }
.btn--okvir-tamno:hover { border-color: #333; color: #333; }

.consent-embed { display: flex; align-items: center; justify-content: center; min-height: 450px; background: var(--ca-light) center / cover no-repeat; text-align: center; }
.consent-embed__box { max-width: 360px; padding: 25px; }
.consent-embed__box p { margin: 0 0 15px; }
.consent-embed__note { margin: 15px 0 0 !important; font-size: 13px; }
.consent-embed__note a { color: #767676; text-decoration: underline; }

.contact-form__privacy { margin: 15px 0 0; color: #767676; font-size: 12px; line-height: 1.5; }
.contact-form__privacy a { color: #767676; text-decoration: underline; }
.site-footer__legal { margin: 6px 0 0 !important; text-transform: none; }
.site-footer__legal span { margin: 0 8px; opacity: .5; }

/* ---------- Lightbox ---------- */

.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .9); }
.lightbox[hidden] { display: none; }
.lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; box-shadow: 0 0 30px rgba(0, 0, 0, .5); }
.lightbox__caption { position: absolute; left: 0; right: 0; bottom: 20px; color: #fff; text-align: center; }
.lightbox__count { position: absolute; top: 20px; left: 20px; color: rgba(255, 255, 255, .7); font-size: 13px; }
.lightbox button { position: absolute; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; padding: 0; border: 0; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 15px; right: 15px; }
.lightbox__prev { left: 15px; top: 50%; margin-top: -25px; }
.lightbox__next { right: 15px; top: 50%; margin-top: -25px; }
.lightbox .ca-icon { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */

@media (max-width: 1199px) {
	.page-title__heading { font-size: 56px; }
	.grid--5 { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 1024px) {
	.topbar__text { display: none; }
	.topbar__inner { justify-content: flex-start; min-height: 38px; }
	.topbar__divider { display: none; }
	.topbar__tools { gap: 6px; }
	.social .ca-icon { width: 16px; height: 16px; }
	.topbar__lang img { height: 18px; }
	.topbar .topbar__cart, .topbar .topbar__divider:last-of-type { display: none; }
	.site-header__inner { height: 70px; }
	.site-header.is-stuck .site-header__inner { height: 60px; }
	.main-nav { display: none; }
	.site-header__burger, .site-header__cart { display: flex; }
	.site-header__burger span { display: none; }
	.site-header__burger { align-items: center; gap: 8px; padding: 0; border: 0; background: none; color: #333; font-size: 13px; font-weight: 600; text-transform: uppercase; cursor: pointer; flex: 1; }
	.site-header__cart { flex: 1; justify-content: flex-end; }
	.site-header__cart .cart-link__count { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; margin-left: -14px; margin-top: -14px; border-radius: 50%; background: var(--ca-red); color: #fff; font-size: 10px; }
	.site-header__cart .cart-link__count::after { content: none; }
	.site-header__cart .cart-link__total { display: none; }
	.site-logo__img, .site-header.is-stuck .site-logo__img { width: 140px; max-height: 60px; }
	.hero { height: 760px; }
	.grid--4 { grid-template-columns: repeat(2, 1fr); }
	.grid--5 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}

@media (max-width: 767px) {
	h1 { font-size: 24px; }
	.page-title { padding: 50px 0; margin-bottom: 30px; }
	.page-title__heading { font-size: 36px; }
	.hero { height: 328px; margin-top: 0; }
	/* Kao stari slider na mobitelu: manji okvir, sitniji tekst, bez dugmadi. */
	.hero__content { width: 335px; min-height: 201px; padding: 46px 20px 20px; }
	.hero__kicker { font-size: 9px; line-height: 15px; letter-spacing: 3px; }
	.hero__kicker::after { bottom: -3px; width: 62px; height: 3px; margin-left: -31px; }
	.hero__title { max-width: 293px; margin-top: 11px; font-size: 15px; line-height: 18px; letter-spacing: 0; }
	.hero__text { display: none; }
	.hero__buttons { display: none; }
	.hero__arrow { display: none; }
	.home-banners, .grid--3, .grid--2 { grid-template-columns: 1fr; }
	.home-banners--overlap { margin-top: 12px; }
	.home-banners, .home-why, .home-steps, .home-offer, .home-products { margin-bottom: 40px; }
	.grid--4, .grid--5 { grid-template-columns: repeat(2, 1fr); }
	.cards--okvir.grid, .cards--ikona.grid { grid-template-columns: 1fr; }
	.sec--media, .sec-row__half, .accordion__inner--media, .contact-page { grid-template-columns: 1fr; gap: 25px; }
	.sec--img-left .sec__media { order: 0; }
	.home-offer__inner { min-height: 0; padding: 10px; }
	.home-steps .grid--4 { grid-template-columns: 1fr; padding: 0 60px; }
	.home-offer__form { width: 100%; }
	.sec-row { padding-bottom: 35px; }
	.sec-row--siva { padding: 35px 0; margin-bottom: 35px; }
	.sec--infobox { padding: 0; }
	.cards--okvir .card { padding: 20px; }
	.contact-page__map iframe { height: 320px; }
	.lightbox__prev, .lightbox__next { top: auto; bottom: 15px; margin-top: 0; }
	.cookie-banner { padding: 15px 0; }
	.cookie-banner__inner { flex-direction: column; align-items: stretch; gap: 15px; }
	.cookie-banner__actions { flex-direction: column-reverse; }
	.cookie-banner__actions .btn { width: 100%; }
	.consent-embed { min-height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
