/*
Theme Name: Porto Child
Theme URI: https://www.portotheme.com/wordpress/porto
Author: P-THEMES
Author URI: https://www.portotheme.com/
Description: Porto Responsive WordPress + eCommerce Theme.
Version: 1.1
Template: porto
License: Commercial
License URI: http://themeforest.net/licenses/regular_extended
Tags: woocommerce, corporate, ecommerce, responsive, blue, black, green, white, light, dark, red, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, fixed-layout, responsive-layout, custom-menu, editor-style, featured-images, flexible-header, full-width-template, microformats, post-formats, rtl-language-support, sticky-post, theme-options, translation-ready, accessibility-ready
*/

/*************** ADD YOUR CUSTOM CSS HERE  ***************/
html {
  scroll-behavior: smooth !important;
}
.product-hero {
    width: 100vw;
    height: 600px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center; /* vertikalno centriranje naslova */
    justify-content: center;
    color: #fff;
    position: relative;
    margin-left: calc(-50vw + 50%); /* uklanja marginu koja dolazi iz parent container-a */
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 20px;
}


.product-hero h1 {
    font-size: 3rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
	margin: 0;
}

/* Hero title background */
.hero-title-bg {
    display: inline-block;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.5); /* svetla, providna */
    border-radius: 6px;
    backdrop-filter: blur(4px); /* moderni "glass" efekat */
}




/* =========================
   PRODUCT – SECTION 1
   ========================= */

.product-section.section-1 {
    background: #fff;
}

.product-section.section-1 .container {
    padding: 60px 0;
}

.section-1 .section-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* tekst */
.section-1 .section-text {
    flex: 1;
    font-size: 16px;
    line-height: 1.6;
}

/* slika */
.section-1 .section-image {
    flex: 1;
}

.section-1 .section-image img {
    max-width: 360px;
	margin-left:auto;
	margin-right:auto;
    height: auto;
    display: block;
    border-radius: 4px; /* opciono */
}

.section-4 .section-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px; /* opciono */
}

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

@media (max-width: 991px) {
    .section-1 .section-content {
        flex-direction: column;
    }

    .section-1 .section-text,
    .section-1 .section-image {
        width: 100%;
    }
}

/* =========================
   SECTION TITLE BAR
   ========================= */

.section-title-bar {
    width: 100vw;
    background: #f5f6f7; /* neutralna svetla */
    margin-left: calc(-50vw + 50%);
}

.section-title-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px;
}

.product-section {
	max-width:1200px;
	margin: 0 auto;
}

.section-title-inner h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #222;
    position: relative;
    padding-left: 14px;
}

/* mali akcenat levo */
.section-title-inner h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #ccc; /* možeš kasnije u brand color */
    border-radius: 2px;
}

/* responsive */
@media (max-width: 768px) {
    .section-title-inner h2, product-section {
        font-size: 20px;
    }
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolone */
    gap: 30px;
}

.product-item h2 {
    font-size: 1.2rem;
    margin: 10px 0 0 0;
}
.products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* centrira 1 ili 2 elementa */
    gap: 30px;
}

.product-item {
    flex: 0 0 calc(33.333% - 20px); /* 3 kolone */
    max-width: calc(33.333% - 20px);
}

@media (max-width: 992px) {
    .product-item {
        flex: 0 0 calc(50% - 20px); /* 2 kolone */
        max-width: calc(50% - 20px);
    }
}

@media (max-width: 576px) {
    .product-item {
        flex: 0 0 100%; /* 1 kolona */
        max-width: 100%;
    }
}



/* SINGLE POST – ukloni Porto wrapper efekat */

.single-post .main-content-wrap {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.single-post .main-content-wrap .main-content {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.single-post .main-content-wrap .sidebar {
    display: none !important;
}

/* Float slika levo sa razmakom */
.wp-block-image figure.alignleft {
    float: left !important;
    margin-right: 1.5rem !important; /* razmak između slike i teksta */
    margin-bottom: 1rem !important;  /* razmak ispod slike */
}

/* Float slika desno sa razmakom */
.wp-block-image figure.alignright {
    float: right !important;
    margin-left: 1.5rem !important;  /* razmak između slike i teksta */
    margin-bottom: 1rem !important;  /* razmak ispod slike */
}

/* Responsive: na mobilnom float nestaje */
@media (max-width: 768px) {
    .wp-block-image figure.alignleft,
    .wp-block-image figure.alignright {
        float: none !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block;

	}
}

.product-item h2 {
	line-height:1.2em 
}

.product-form {
	max-width:500px;
	margin-left:auto;
	margin-right:auto;
	margin-top:20px;
}

.wpcf7-submit {
	margin-top: 20px;
}

/* FIX ZA GALERIJU */
@media (max-width: 768px) {
	.gallery-columns-6 .gallery-item {
	  max-width: 100%;
	}
}


/* hover color na services box */
div#gradjevinski_kontejneri .service:hover {
	border-color: green !important;
}
