/*!
Theme Name: Tivoli Kadence Child
Theme URI: https://www.kadencewp.com/kadence-theme/
Template: kadence
Author: Pakom d.o.o.
Author URI: https://pakom.hr/
Description: A child theme for the Kadence Theme.
Version: 1.0.0
Text Domain: kadence-child
*/

/* Theme customization starts here
-------------------------------------------------------------- */

@media (min-width: 1024px) {
	img.custom-logo {
		position: absolute;
		margin: 0 auto -1em -8em;
		
    }
}
img.custom-logo {
	opacity: 1 !important;
}
div.content-container.site-container {
	grid-template-columns: 1fr 5fr !important;
}


aside.primary-sidebar {
	width: 17%;
	position: fixed;
    left: 2%;
	top: 200px;
	height: 350px;
}

@media (max-width: 1024px) { /* Promijenite ovu vrijednost prema potrebi */
    aside.primary-sidebar {
        display: none;
    }
}


aside.primary-sidebar h2.widget-title {
	border-bottom: 1px solid #dbdcde;
	border-top: 1px solid #dbdcde;
	font-size: 22px;
	padding: 10px;
	width: 100%;
	margin-bottom: 0 !important;
}



aside.primary-sidebar ul.menu li {
	padding: 0;
	width: 100%;
	
}


aside.primary-sidebar ul.menu li a.current-menu-item,
aside.primary-sidebar ul.menu li a[aria-current="page"] {
    background-color: #eee;
	font-weight: bold;
	width: 100%;
}

aside.primary-sidebar ul.menu li a {
    display: inline-block;
    width: 100%;
    padding: 5px 0px 5px 30px;
    position: relative;
}



aside.primary-sidebar ul.menu li a:hover {
    background-color: #eee;
	color: orange;
}

#menu-item-716 {
	border-bottom: 1px solid #dbdcde;
}

/*u slučaju da nema ništa u kategoriji da nema preklapanja s footerom*/
#inner-wrap {
	min-height: 30em;
}



/* Postavi ikonu "quick view" na sredinu slike svakog proizvoda */
.quick-view-icon {
  position: absolute;
  top: -20%;
  left: 10%;
  transform: translate(-50%, -50%);
  z-index: 10;
  
  /* Dodatno prilagodite dimenzije ikone ako je potrebno */
  font-size: 2em;
  color: white !important;
}


.woocommerce ul.products li.product a.woocommerce-loop-image-link {
	background-color: black;
}
/* Efekt potamnjivanja slike proizvoda */
.woocommerce-page img {
	opacity: 0.8;
}

/* Promijeni kursor na strelicu kada je iznad proizvoda */
.woocommerce ul.products li.product a.woocommerce-loop-image-link:hover, .woocommerce ul.products li.product .woocommerce-loop-product__title a {
    cursor: default;
}


#post-2194 {
	background-image: url('https://staging.sc-tivoli.hr/wp-content/uploads/2020/12/pizza-in-take-out-box-isolated-T2DQ9YN.png');
    background-repeat: no-repeat;
    background-position: top right; /* Ovo će postaviti pozadinu skroz desno */
    background-size: 30% auto; /* Ovo će osigurati da se slika prilagodi veličini prozora */
}

div.woocommerce-MyAccount-content{
	width: 100% !important;
	
 }



/* my account */

div.account-navigation {
    display: flex;
    justify-content: flex-start;
	gap: 2em;
	margin-top: 40px !important;
	margin-bottom: 40px !important;
	font-size: 1.2rem;
	font-weight: 500;
	position: relative;
	
}

.account-navigation a {
    position: relative;
    text-decoration: none;
    color: #333;
    padding-bottom: 4px;
    transition: color 0.3s, border-bottom 0.3s;
}

.account-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: transparent;
    transition: background-color 0.3s, transform 0.3s;
    transform: scaleX(0);
    transform-origin: left center;
}

.account-navigation a.current::after {
    background-color: orange;
    transform: scaleX(1);
}

.account-navigation a:hover::after {
    background-color: orange;
    transform: scaleX(1);
}

/*osobne info*/
.account-welcome {
    text-align: center;
    margin: 40px auto;
}

.profile-avatar {
    position: relative;
	margin: 0.5em auto;
    width: 70px; /* Prilagodite širinu prema potrebi */
    height: 70px; /* Prilagodite visinu prema potrebi */
    border-radius: 50%;
    background-color: #ffe7bd; /* Boja pozadine avatara */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 25px; /* Veličina slova */
    color: #919191; /* Boja slova (siva) */
    background-size: cover;
    background-position: center;
    border: 2px solid #ffffff; /* Bijeli rub */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Sjena */
}

.profile-avatar::before {
    content: "";
    display: block;
    padding-bottom: 100%; /* Omogućava održavanje omjera stranica */
}


.welcome-text {
    font-size: 18px;
    color: #666;
}

.account-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Centrirajte vertikalno sadržaj unutar svake kućice */
    gap: 5px; /* Prilagodite razmak između kućica */
	margin: 3em auto 3em auto;
    text-align: left;
    width: 60%; /* Postavite širinu na 50% ekrana */
}

.account-detail-item {
    border: 1px solid #ccc;
	border-radius: 3px;
    padding: 1em;
    flex: 1; /* Svaka kućica zauzima jednaku širinu unutar roditeljskog kontejnera */
    box-sizing: border-box;
    height: 100%; /* Postavite visinu na 100% kako bi sve bile iste visine */
	box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Dodajte sjenu */
	transition: 0.5s;
}
.account-detail-item:hover {
	background-color: #ededed;
}

/* Stilovi za ekrane manje od 1024px */
@media screen and (max-width: 1024px) {
	 div.account-navigation {
        flex-direction: column;
        align-items: left;
  		margin-top: 0 !important;
		margin-bottom: 10 !important;
		gap: 0.5em;
}
	div.account-navigation a{
		width: 50%;
	}
	
	.account-welcome {
		text-align: left;
	}
	.profile-avatar {
		margin: 0;
	}
    .account-details {
            display: flex;
			flex-direction: column;
			justify-content: space-between;
			align-items: stretch;
			gap: 5px;
			margin: 3em auto 3em auto;
			text-align: left;
			width: 100%;
   	 }
}

/*kartice proizvoda na shop pageu*/

/* Stiliziranje kategorija proizvoda */
.product-categories {
	margin-top: 10px;
}
.product-category {
    background-color: #ba8b3b; /* Narančasta pozadina */
    color: #ffffff; /* Bijeli font */
    text-transform: uppercase; /* Velika slova */
    line-height: 22px;
    padding: 0 7px;
    font-size: 11px;
    border-radius: 10px; /* Obli rubovi */
    display: inline-block;
    margin-bottom: 5px;
    margin-right: 5px;
}

div.product-details {
	padding-top: 0 !important;
}

.product-description p {
	font-size: 1rem;
	margin: 0;
	padding: 5px 10px;
	color: #5c5c5c;
}

.product-price {
	color: #FFA500;
	text-align: right;
	margin-top: -20px;
}

.product-price bdi {
	font-family: 'Permanent Marker', cursive;
	font-size: 26px;
}

.product-price small {
	display: block;
    margin-top: 0; 
	color: #5c5c5c;
}

