/*
	Theme Name:	Xtra Child
	Theme URI:	http://themeforest.net/user/Codevz/portfolio
	Description:Sample child theme of Xtra theme for customization.
	Author:		Codevz
	Author URI:	http://themeforest.net/user/Codevz
	Template:	xtra
	Version:	1.0
*/

/* header */
	.header_4_left { display: flex!important; justify-content: space-around!important; }
/* end header */


.m5l4-specificna-oznaka-badge-archive{padding: 6px 8px!important;}
.m5l4-specificna-oznaka-badge-single {
	color: #000;
    display: inline-block;
    padding: 4px 16px;
    font-size: 18px;
    font-weight: 600; }
.single-product:has(.m5l4-specificna-oznaka-badge-single)
.m5l4-popust-box .oznakapopusta {
    display: none !important;
}



/* slider home page */
.naslovnaslovnice {    font-family: Arial;
    position: absolute;
    left: 0%;
    z-index: 9;
    bottom: 50px;
    color: #f4f4f4;
    font-size: 24px;
    right: 0%;
    text-align: center;}

.m5l4-hero-slider { position: relative; width: 100%; height: 76vh; min-height: 620px; overflow: hidden; }
.m5l4-hero-slider__track { position: relative; width: 100%; height: 100%; }
.m5l4-hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.7s ease, visibility 0.7s ease;
            z-index: 1; }

.m5l4-hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.m5l4-hero-slide__image, .m5l4-hero-slide__image img { width: 100%; height: 100%; }
.m5l4-hero-slide__image img { display: block; object-fit: cover; }
.m5l4-hero-slide__overlay {position: absolute;inset: 0;background: rgba(0, 0, 0, 0.18);z-index: 2;}
.m5l4-hero-slide__content {
            position: absolute;
            right: 10%;
            bottom: 22%;
            z-index: 3;
            width: min(460px, 88vw);
            background: rgba(0, 0, 0, 0.78);
            color: #fff;
            padding: 28px 30px;
            text-decoration: none;
            display: block;
            transition: transform 0.25s ease, background 0.25s ease;
        }

a.m5l4-hero-slide__content:hover { transform: translateY(-4px); background: rgba(0, 0, 0, 0.88); }
.m5l4-hero-slide__title {
            margin: 0 0 14px;
            font-size: clamp(28px, 3vw, 42px);
            line-height: 1.1;
            color: #ff0000;
    		font-weight: 700;
    		border-bottom: 2px solid #ff0000;
        }

.m5l4-hero-slide__desc { font-size: clamp(15px, 1.15vw, 18px); line-height: 1.6; color: #fff; }
.m5l4-hero-slider__arrow {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            z-index: 5;
            width: 54px;
            height: 54px;
            border: 0;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.45);
            color: #fff;
            font-size: 28px;
            line-height: 1;
            cursor: pointer;
            transition: background 0.25s ease, transform 0.25s ease;
        }

.m5l4-hero-slider__arrow:hover { background: rgba(0, 0, 0, 0.7); }
.m5l4-hero-slider__arrow--prev { left: 24px; }
.m5l4-hero-slider__arrow--next { right: 24px; }
.m5l4-hero-slider__dots {
            position: absolute;
            left: 50%;
            bottom: 28px;
            transform: translateX(-50%);
            z-index: 5;
            display: flex;
            align-items: center;
            gap: 10px;
        }
.m5l4-hero-slider__dot {
            width: 14px;
            height: 14px;
            border-radius: 50%;
            border: 0;
            background: rgba(255, 255, 255, 0.45);
            cursor: pointer;
            padding: 0;
            transition: transform 0.25s ease, background 0.25s ease;
        }

.m5l4-hero-slider__dot.is-active { background: #fff; transform: scale(1.15); }

        @media (max-width: 1024px) {
            .m5l4-hero-slider { height: 85vh; min-height: 540px; }
            .m5l4-hero-slide__content { right: 5%; bottom: 10%; width: min(420px, 90vw); padding: 24px; }
        }
        @media (max-width: 767px) {
			.naslovnaslovnice { left: 0; top: 18%; right: 0; text-align: center; font-size: 22px; }
			.m5l4-hero-slider { height: 78vh; min-height: 520px; }
			.m5l4-hero-slide__content { left: 16px; right: 16px; bottom: 72px; width: auto; padding: 20px; }
			.m5l4-hero-slide__title { font-size: 24px; }
			.m5l4-hero-slide__desc { font-size: 14px; line-height: 1.5; }
			.m5l4-hero-slider__arrow { width: 42px; height: 42px; font-size: 22px; }
			.m5l4-hero-slider__arrow--prev { left: 10px; }
			.m5l4-hero-slider__arrow--next { right: 10px; }
			.m5l4-hero-slider__dots { bottom: 20px; }
        }
/* end slider home page */

/* najnoviji proizvodi */
.m5l4-kat-nav-item.is-active .m5l4-kat-nav-desc{ display: block!important; }	 				
.m5l4-kat-nav-desc { display: none!important;}

        .m5l4-kat-wrap {
            margin: 20px 0;
        }

        .m5l4-kat-head {
            margin-bottom: 28px;
        }

        .m5l4-kat-subtitle {
            display: inline-block;
            margin-bottom: 8px;
            font-size: 14px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #d71920;
        }

        .m5l4-kat-head h2 {
            margin: 0;
            font-size: clamp(28px, 3vw, 42px);
            line-height: 1.15;
            color: #111;
        }

        .m5l4-kat-layout {
            display: grid;
            grid-template-columns: minmax(260px, 1fr) minmax(0, 3fr);
            gap: 28px;
            align-items: start;
        }

        .m5l4-kat-nav {
            display: flex;
            flex-direction: column;
            gap: 14px;
        }

        .m5l4-kat-nav-item {
            width: 100%;
            text-align: left;
            border: 1px solid #e7e7e7;
            background: #fff;
            padding: 22px 20px;
            border-radius: 16px;
            cursor: pointer;
            transition: all 0.25s ease;
            box-shadow: 0 8px 24px rgba(0,0,0,0.04);
        }

        .m5l4-kat-nav-item:hover {
            transform: translateY(-2px);
            border-color: #d71920;
        }

        .m5l4-kat-nav-item.is-active {
            background: #111;
            border-color: #111;
            color: #fff;
        }

        .m5l4-kat-nav-title {
            display: block;
            font-size: 22px;
            line-height: 1.2;
            font-weight: 700;
            margin-bottom: 0px;
			padding-bottom: 0px;
        }

.m5l4-kat-nav-item.is-active .m5l4-kat-nav-title { 
			border-bottom: 2px solid red; width: fit-content; margin-bottom: 8px; padding-bottom: 4px; }

        .m5l4-kat-nav-desc {
            display: block;
            font-size: 14px;
            line-height: 1.55;
            opacity: 0.86;
        }

        .m5l4-kat-content {
            min-width: 0;
        }

        .m5l4-kat-panel {
            display: none;
        }

        .m5l4-kat-panel.is-active {
            display: block;
        }

        .m5l4-kat-panel-top {
            display: flex;
            align-items: end;
            justify-content: space-between;
            gap: 20px;
            margin-bottom: 18px;
        }

        .m5l4-kat-panel-label {
            display: inline-block;
            margin-bottom: 6px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.08em;
            color: #d71920;
        }

        .m5l4-kat-panel-top h3 {
            margin: 0;
            font-size: 28px;
            line-height: 1.15;
            color: #111;
        }

        .m5l4-kat-more {
			white-space: nowrap;
			text-decoration: none;
			color: #111;
			font-weight: 700;
			float: right;
			margin-top: 25px;
			border: 1px solid #111;
			padding: 4px 12px;
			border-radius: 4px;
        }

        .m5l4-kat-more:hover {
            color: #d71920;
			background-color: #111;
        }

        .m5l4-kat-products {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 18px;
        }

        .m5l4-kat-product {
            background: #fff;
            border: 1px solid #ececec;
            border-radius: 18px;
            overflow: hidden;
            box-shadow: 0 10px 25px rgba(0,0,0,0.04);
            transition: transform 0.25s ease, box-shadow 0.25s ease;
            display: flex;
            flex-direction: column;
            height: 100%;
        }

        .m5l4-kat-product:hover {
            transform: translateY(-3px);
            box-shadow: 0 16px 30px rgba(0,0,0,0.08);
        }

        .m5l4-kat-product-thumb {
            display: block;
            aspect-ratio: 1 / 1;
            background: #f8f8f8;
            overflow: hidden;
        }

        .m5l4-kat-product-thumb img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

        .m5l4-kat-product-body {
            display: flex;
            flex-direction: column;
            padding: 16px;
            flex: 1;
        }

        .m5l4-kat-product-title {
            margin: 0 0 10px;
            font-size: 16px;
            line-height: 1.4;
            min-height: 44px;
        }

        .m5l4-kat-product-title a {
            text-decoration: none;
            color: #111;
        }

        .m5l4-kat-product-title a:hover {
            color: #d71920;
        }

        .m5l4-kat-product-price {
            margin-bottom: 14px;
            font-size: 18px;
            font-weight: 700;
            color: #111;
        }

        .m5l4-kat-product-price .price {
            margin: 0;
        }

        .m5l4-kat-product-actions {
            margin-top: auto;
        }

        .m5l4-kat-btn {
            display: inline-block;
            width: 100%;
            text-align: center;
            padding: 12px 14px;
            border-radius: 12px;
            text-decoration: none;
            font-weight: 700;
            transition: all 0.25s ease;
        }

        .m5l4-kat-btn--dark {
            background: #111;
            color: #fff;
        }

        .m5l4-kat-btn--dark:hover {
            background: #d71920;
            color: #fff;
        }

        .m5l4-kat-empty {
            padding: 26px;
            border-radius: 16px;
            background: #f7f7f7;
            color: #444;
        }

        @media (max-width: 1280px) {
            .m5l4-kat-products {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 991px) {
            .m5l4-kat-layout {
                grid-template-columns: 1fr;
            }

            .m5l4-kat-nav {
                display: grid;
                grid-template-columns: repeat(2, minmax(0, 1fr));
                gap: 14px;
            }
        }

        @media (max-width: 767px) {

.m5l4-kat-nav-item { 
width: 100%; text-align: center!important; padding: 4px 8px!important; border-radius: 8px!important; }
.m5l4-kat-nav-item.is-active .m5l4-kat-nav-desc{ display: none!important; }
.m5l4-kat-nav-title { display: block; margin-bottom: 0px; padding-bottom: 0px; }
.m5l4-kat-nav-item.is-active .m5l4-kat-nav-title { border-bottom: unset!important; width: auto; }


            .m5l4-kat-panel-top {
                flex-direction: column;
                align-items: flex-start;
            }

            .m5l4-kat-products {
                grid-template-columns: 2fr;
            }

            .m5l4-kat-panel-top h3 {
                font-size: 24px;
            }
        }
/* end najnoviji proizvodi */

/* m5l4_najnoviji_proizvodi_stranica */
	/* NASLOV */
	.m5l4-najnoviji-head {
	margin-bottom: 24px;
	padding-bottom: 14px;
	border-bottom: 2px solid #e30620;
	}

	.m5l4-najnoviji-kicker {
	display: block;
	margin-bottom: 4px;
	color: #e30620;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	}

	.m5l4-najnoviji-glavni-naslov {
	margin: 0;
	padding: 0;
	color: #111;
	font-size: clamp(34px, 4vw, 50px);
	font-weight: 800;
	line-height: 1.05;
	}


	/* ==================================================
	GORNJE KATEGORIJE
	================================================== */

	.m5l4-najnoviji-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: 10px;
	margin-bottom: 16px;
	}

	.m5l4-najnoviji-nav-item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	min-height: 48px;
	margin: 0;
	padding: 10px 18px;
	border: 1px solid #dcdcdc;
	border-radius: 5px;
	background: #fff;
	color: #222;
	font-family: inherit;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	cursor: pointer;
	transition:
	color 0.2s ease,
	background-color 0.2s ease,
	border-color 0.2s ease;
	}

	.m5l4-najnoviji-nav-item:hover {
	color: #e30620;
	border-color: #e30620;
	}

	.m5l4-najnoviji-nav-item.is-active {
	color: #fff;
	background: #e30620;
	border-color: #e30620;
	}

	.m5l4-najnoviji-nav-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 29px;
	height: 29px;
	padding: 0 7px;
	border-radius: 20px;
	background: #f1f1f1;
	color: #333;
	font-size: 12px;
	line-height: 1;
	}

	.m5l4-najnoviji-nav-item.is-active
	.m5l4-najnoviji-nav-count {
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	}


	/* ==================================================
	OPIS AKTIVNE KATEGORIJE
	================================================== */

	.m5l4-najnoviji-opisi {
	min-height: 28px;
	margin-bottom: 30px;
	}

	.m5l4-najnoviji-opis {
	display: none;
	max-width: 950px;
	margin: 0;
	color: #555;
	font-size: 15px;
	line-height: 1.6;
	}

	.m5l4-najnoviji-opis.is-active {
	display: block;
	}


	/* ==================================================
	PANELI
	================================================== */

	.m5l4-najnoviji-panel {
	display: none;
	}

	.m5l4-najnoviji-panel.is-active {
	display: block;
	}


	/* ==================================================
	GRID – 5 PROIZVODA U REDU
	================================================== */

	.m5l4-najnoviji-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 38px 20px;
	}

	.m5l4-najnoviji-product {
	position: relative;
	min-width: 0;
	margin: 0;
	padding: 0;
	background: #fff;
	}


	/* ==================================================
	SLIKA
	================================================== */

	.m5l4-najnoviji-product-image-wrap {
	position: relative;
	margin-bottom: 14px;
	}

	.m5l4-najnoviji-product-image {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	background: #fff;
	}

	.m5l4-najnoviji-product-image img {
	display: block;
	width: 100%;
	height: 100%;
	margin: 0;
	object-fit: contain;
	transition: transform 0.3s ease;
	}

	.m5l4-najnoviji-product:hover
	.m5l4-najnoviji-product-image img {
	transform: scale(1.035);
	}

	.m5l4-najnoviji-sale-badge {
	position: absolute;
	z-index: 3;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	min-height: 25px;
	padding: 5px 8px;
	background: #e30620;
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	text-transform: uppercase;
	pointer-events: none;
	}


	/* ==================================================
	NAZIV I CIJENA
	================================================== */

	.m5l4-najnoviji-product-body {
	padding: 0 4px;
	}

	.m5l4-najnoviji-product-title {
	min-height: 42px;
	margin: 0 0 7px;
	padding: 0;
	font-size: 15px;
	font-weight: 750;
	line-height: 1.35;
	}

	.m5l4-najnoviji-product-title a {
	color: #111;
	text-decoration: none;
	}

	.m5l4-najnoviji-product-title a:hover {
	color: #e30620;
	}

	.m5l4-najnoviji-product-price {
	color: #111;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.45;
	}

	.m5l4-najnoviji-product-price del {
	display: block;
	color: #666;
	font-size: 13px;
	font-weight: 500;
	opacity: 1;
	}

	.m5l4-najnoviji-product-price ins {
	color: #111;
	font-weight: 800;
	text-decoration: none;
	}


	/* ==================================================
	GUMB NA DNU
	================================================== */

	.m5l4-najnoviji-footer {
	display: flex;
	justify-content: flex-end;
	margin-top: 36px;
	}

	.m5l4-najnoviji-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 18px;
	border: 1px solid #111;
	border-radius: 4px;
	background: #fff;
	color: #111;
	font-size: 13px;
	font-weight: 800;
	line-height: 1.2;
	text-decoration: none;
	text-transform: uppercase;
	transition:
	color 0.2s ease,
	background-color 0.2s ease;
	}

	.m5l4-najnoviji-more:hover {
	background: #111;
	color: #fff;
	}

	.m5l4-najnoviji-empty {
	padding: 30px;
	background: #f6f6f6;
	color: #555;
	text-align: center;
	}


	/* ==================================================
	RESPONSIVE
	================================================== */

	@media (max-width: 1280px) {

	.m5l4-najnoviji-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
	}
	}

	@media (max-width: 991px) {

	.m5l4-najnoviji-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.m5l4-najnoviji-nav-item {
	flex: 1 1 calc(50% - 10px);
	}
	}

	@media (max-width: 767px) {

	{
	margin-top: 10px;
	}

	.m5l4-najnoviji-head {
	margin-bottom: 18px;
	}

	.m5l4-najnoviji-glavni-naslov {
	font-size: 34px;
	}

	.m5l4-najnoviji-nav {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	}

	.m5l4-najnoviji-nav-item {
	width: 100%;
	min-height: 43px;
	padding: 8px 9px;
	font-size: 12px;
	}

	.m5l4-najnoviji-nav-count {
	min-width: 24px;
	height: 24px;
	padding: 0 5px;
	font-size: 10px;
	}

	.m5l4-najnoviji-opisi {
	min-height: 0;
	margin-bottom: 22px;
	}

	.m5l4-najnoviji-opis { font-size: 14px; }
	.m5l4-najnoviji-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
	.m5l4-najnoviji-product-title { min-height: 39px; font-size: 14px; }
	.m5l4-najnoviji-product-price { font-size: 15px; }
	}
/* end m5l4_najnoviji_proizvodi_stranica */

/* 8 istkanutih */
            .m5l4-istaknute-obavijesti-grid {
                display: grid;
                grid-template-columns: repeat(4, minmax(0, 1fr));
                gap: 30px;
                margin: 40px 0;
            }

            .m5l4-obavijest-box {
                background: #fff;
                overflow: hidden;
                box-shadow: 0 8px 30px rgba(0,0,0,0.08);
                display: flex;
                flex-direction: column;
                height: 100%;
                transition: transform 0.25s ease, box-shadow 0.25s ease;
            }

            .m5l4-obavijest-box:hover {
                transform: translateY(-4px);
                box-shadow: 0 12px 35px rgba(0,0,0,0.12);
            }

            .m5l4-obavijest-image-wrap { width: 100%; overflow: hidden; }
            .m5l4-obavijest-image {
                width: 100%;
                height: 100%;
                object-fit: contain;
                display: block;
            }

            .m5l4-obavijest-title {
                font-size: 22px;
                line-height: 1.3;
                margin: 20px 20px 12px;
                color: #111;
            }

            .m5l4-obavijest-text {
                font-size: 15px;
                line-height: 1.7;
                color: #555;
                margin: 0 20px 8px;
                flex-grow: 1;
            }

            .m5l4-obavijest-text p:last-child { margin-bottom: 0; }

            .m5l4-obavijest-button {
				display: inline-block;
				padding: 0px 12px;
				background: #000;
				color: #fff !important;
				text-decoration: none;
				font-weight: 600;
				transition: background 0.25s ease, opacity 0.25s ease;
				margin-right: 0px;
				float: right;
				font-size: 14px;
            }

            .m5l4-obavijest-button:hover { background: #ed1b24; /*opacity: 0.95;*/ }

            @media (max-width: 1024px) {
                .m5l4-istaknute-obavijesti-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
            }

            @media (max-width: 767px) {
                .m5l4-istaknute-obavijesti-grid { grid-template-columns: 1fr; gap: 20px; }
                .m5l4-obavijest-title { font-size: 20px; }
            }
/* zavrsava 8 istaknutih */

/* Spriječi skakanje kod lazy load slika 
img.lazyload,
img[data-src],
img[data-lazy-src],
img[data-lazy] {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.2s ease-in-out !important;
    opacity: 1 !important;
}

.lazyload,
.lazyloaded {
    animation: none !important;
    opacity: 1 !important;
}


img[data-src],
img[data-lazy-src] {
    min-height: 150px; 
    background-color: #f5f5f5; 
}
*/



/*mob search*/
@media (max-width: 768px) {
	.custom_header_4_left_11, .dgwt-wcas-search-wrapp, .fibosearch-wrapp, [class*="fibosearch"] { max-height: 44px;}
}

.dgwt-wcas-initialized ~ .fibosearch-placeholder,
.fibosearch-placeholder:has(+ .dgwt-wcas-initialized) { display: none; }
.custom_header_4_left_11 { display: none;}


/* archive */
.archive-seo-content { border-top: 2px solid #df0b1d; padding-top: 12px; }
.archive-seo-content h2 { font-size: 24px; }
.archive-seo-content h3 { font-size: 20px; } 