/**
Theme Name: Orbis Veleprodaja
Author: Pakom d.o.o.
Author URI: https://pakom.hr/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0.
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: orbis-veleprodaja
Template: astra
*/

@media (min-width: 922px) {
    header {
        display: none;
    }
}


/* DODAJ U KOŠARICU QUANTITY I BUTTON */
form.cart {
	display: flex;
    justify-content: flex-start;
    align-items: center;
}

div.ast-container {
	padding-right: 0px;
	padding-left: 0px;
	margin-right: 0;
}

#secondary, #primary {
	margin-top: 0;
}

.home #primary {
	padding-top: 2em !important;
}

#primary, .site .site-content #primary {
	padding-left: 0;
	margin-left: auto;
	width: 80%;
}
@media (max-width: 921px) {
	#primary, .site .site-content #primary {
		width: 100%;
	}
}

@media (min-width: 922px) {
    .ast-left-sidebar #primary {
        border-left: none;
    }
}
ul.products.columns-4 {
	padding-left: 0px !important;
	padding-right: 60px !important;
}
@media (min-width: 922px) {
    ul.products.columns-4, p.woocommerce-result-count, .woocommerce-notices-wrapper {
        padding-left: 30px !important;
    }
}
#secondary {
	padding-top: 2em;
	padding-left: 20px;
	position: fixed;
	top: 0;
	overflow-y: auto;
	left: 0;
    width: 27%;
    height: 100%;
	background-color: #fff;
    z-index: 999;
}

.ast-left-sidebar #secondary {
	padding-right: 0px;
}

/* Stiliziranje scrollbara */
#secondary::-webkit-scrollbar {
    width: 4px; /* Širina scrollbara */
}

#secondary::-webkit-scrollbar-track {
    background: #f1f1f1; /* Boja pozadine scrollbara */
}

#secondary::-webkit-scrollbar-thumb {
    background: #888; /* Boja "thumb" dijela scrollbara */
    border-radius: 10px; /* Zaobljeni rubovi */
}

#secondary::-webkit-scrollbar-thumb:hover {
    background: #555; /* Boja thumb-a kad je miš iznad */
}

/* Prilagodba za Firefox */
#secondary {
    scrollbar-width: thin; /* "thin" za tanji scrollbar */
    scrollbar-color: #888 #f1f1f1; /* Boja thumb-a i pozadine */
}

@media (max-width: 922px) {
    #secondary {
        display: none;
    }
}

.ast-plain-container.ast-left-sidebar .entry-content[data-ast-blocks-layout] .alignfull {
	margin-left: 0;
}

.breadcrumb-hero {
    background-size: cover;
    background-position: center right;
    color: white;
    text-align: left;
	padding-top: 60px;
	margin-bottom: 30px;
	position: relative;
}

.header-search {
    width: 30%;
	position: absolute;
    bottom: 20px; /* Razmak od vrha */
    right: 20px; /* Razmak od desne strane */
    z-index: 10; /* Ispred pozadine */
    text-align: right;
}

.breadcrumb-content {
    max-width: 1200px;
    margin: 0 auto;
	color: #3C4D59;
    padding: 20px;
}

.breadcrumb-content nav {
	text-transform: uppercase;
	font-size: 14px !important;
}
.woocommerce-breadcrumb a:hover {
	color: #51b9ec;
}
.breadcrumb-content h1 {
	font-size: 32px;
	text-transform: capitalize;
}

/* list view */
/* Onemogućava klik na proizvode */
.woocommerce-loop-product__link, .ast-loop-product__link, .button.nedostupno.product_type_simple {
    pointer-events: none;
    cursor: default;
	width: 65%;
}

/* Grid kontejner za proizvod */
.astra-shop-grid-container {
    display: grid;
    grid-template-columns: 7fr 3fr; /* Omjer širine stupaca 7:3 */
    grid-gap: 20px; /* Razmak između stupaca */
    align-items: start;
}

/* Prvi stupac: naziv, SKU i dodatni podaci */
.astra-product-info {
    display: flex;
    flex-direction: column;
}

.product-details-container {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Dva jednaka stupca */
    align-items: flex-start; /* Poravnanje elemenata na vrh */
	padding-top: 20px;
	padding-right: 50px;
}

.product-details-left,
.product-details-right {
    display: flex;
    flex-direction: column; /* Vertikalno slaganje unutar stupaca */
    gap: 10px; /* Razmak između stavki unutar stupca */
}

h2.woocommerce-loop-product__title {
	font-weight: bold;
}

/* SKU stil */
.product-sku {
    font-size: 14px;
    color: var(--ast-global-color-0);;
}

.product-detail-item {
    display: flex;
    align-items: center; /* Poravnanje ikona i teksta */
    gap: 5px; /* Razmak između ikone i teksta */
	font-size: 14px;
    color: #666;
}

.detail-icon {
    font-size: 18px;
    color: #333;
}

.detail-label {
    font-weight: 600;
    color: #333;
    margin-right: 5px;
}

.detail-value {
    color: #666;
}


/* Drugi stupac: cijena i gumb */
.astra-product-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
	align-self: flex-end;
	padding-bottom: 20px;
}

.astra-product-actions .price {
    font-size: 18px;
    font-weight: bold;
}

.astra-product-actions .button {
    padding: 10px 20px;
    font-size: 14px;
}

.astra-product-actions a.button.nedostupno {
	background-color: var(--ast-global-color-1);
	border-color: var(--ast-global-color-1);
}

li.ast-grid-common-col {
	margin-bottom: 20px !important;
}
span.ast-shop-product-out-of-stock {
	display: none;
}

.products li.product:not(.product-category) {
    border-bottom: 1px solid #ddd; /* Dodaje lagani okvir ispod svakog proizvoda */
}


h1.woocommerce-products-header__title.page-title {
	display: none;
}

.woocommerce-ordering {
	padding-right: 30px;
}
ul.products.columns-4, p.woocommerce-result-count, .woocommerce-notices-wrapper {
	padding-right: 30px;
}
@media (min-width: 922px) {
	ul.products.columns-4, p.woocommerce-result-count, .woocommerce-notices-wrapper {
		padding-left: 60px;
	}
}

/* Sakrij Sale badge */
.woocommerce span.onsale {
    display: none !important;
}

a.button.nedostupno.product_type_simple {
	background-color: #d5e9f3;
	border-color: #d5e9f3;
}

/* Na stranici kategorije, prikaz proizvoda u 1 stupcu */
body.tax-product_cat .products {
    grid-template-columns: 1fr !important; /* Jedan stupac */
    gap: 10px; /* Manji razmak između proizvoda */
}

/* SEARCH PAGE */
body.search ul.products.columns-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Dva stupca umjesto tri */
    gap: 20px; /* Razmak između artikala */
}


/* MY ACCOUNT */
/* Hero sekcija */
.my-account-hero {
	background-image: url(https://orbis.com.hr/wp-content/uploads/2024/06/flat-lay-assortment-vegetables-with-copy-space.png);
	background-repeat: no-repeat;
    background-position: 52% 90%;
    background-size: cover;
    padding: 112px 40px;
    position: relative;
	overflow: hidden;
}
.my-account-hero::before {
	content: "";
    position: absolute;
    pointer-events: none;
    top: -0px;
    left: -0px;
    width: calc(100% + 0px + 0px);
    height: calc(100% + 0px + 0px);
    background: var(--ast-global-color-7);
    opacity: 0.5;
	z-index: 1;
}

/* Naslov unutar hero sekcije */
.my-account-hero h1 {
   color: #fff;
	position: relative;
	z-index: 2;
}
/* Navigacija u jednom redu */
.woocommerce-MyAccount-navigation {
    display: flex;
    justify-content: space-around; /* Ravnomjerno raspoređuje stavke */
    flex-wrap: wrap; /* Ako nema dovoljno prostora, prelazi u novi red */
	float: none !important;
	width: 100% !important;
	margin-top: -44px;
	z-index: 2;
	position: relative;
}

.woocommerce-MyAccount-navigation-link {
	border: none !important;
}

.woocommerce-MyAccount-navigation-link.is-active a {
	background-color: #fff !important;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.woocommerce-MyAccount-navigation li {
    margin: 0 5px; /* Razmak između linkova */
}

.woocommerce-MyAccount-navigation a {
    text-decoration: none;
	border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    color: #fff;
	background-color: #51b9ec;
    font-weight: 600;
    padding: 10px 15px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.woocommerce-MyAccount-navigation a:hover {
    background-color: #fff; /* Promjena boje pozadine na hover */
    color: #51b9ec; /* Promjena boje teksta na hover */
}

.woocommerce-MyAccount-content {
	float: none !important;
	width: 80% !important;
	margin: 50px auto;
}


/* Stilizacija kartica za adrese */
header.woocommerce-Address-title.title {
	display: block;
	border: 1px solid var(--ast-border-color) !important;
	padding: 10px 20px !important;
}
header.woocommerce-Address-title.title h2 {
	font-size: 1.5em;
	display: inline;
}
header.woocommerce-Address-title.title a {
	padding: 0px !important;
}
header.woocommerce-Address-title.title a i {
	font-size: 22px;
}
.woocommerce-Addresses .woocommerce-Address {
	border: none;
}

.woocommerce-account .woocommerce-MyAccount-content address {
	border: none;
}

/* CART PAGE */
.woocommerce-cart-form {
	padding: 0 20px;
}
.shop_table.shop_table_responsive.cart.woocommerce-cart-form__contents {
	border: none;
}
.woocommerce-cart-form .product-thumbnail {
	display: none !important;
}
.cart-item-sku {
	font-size: 0.7em;
}

/* Ukloni kursor kada se prelazi preko naziva proizvoda */
.woocommerce-cart .product-name a {
    pointer-events: none;
    cursor: default;
}

/* CHECKOUT PAGE */
form.checkout.woocommerce-checkout {
	padding: 0 20px;
	margin-bottom: 30px;
}

form.checkout.woocommerce-checkout .order-total th, form.checkout.woocommerce-checkout .order-total td span {
	font-weight: bold !important;
}

footer.site-footer {
	margin-left: auto !important;
	width: 73%;
}
@media (max-width: 921px) {
	footer.site-footer {
		width: 100%;
	}
}