/*
Theme Name: Wydawnictwo Jana Kochanowskiego w Kielcach
Theme URI: https://ujk.edu.pl
Author: Marcin Wójcik Centrum Informatyki
Author URI: https://ujk.edu.pl
Description: Motyw UJK
Version: 1.0.1
License: UJK
License URI: https://ujk.edu.pl
Text Domain: UJK
*/

body .logos-row .custom-logo{
	height:100px!important;
}

.site-main h1{
	margin-top: 1rem;
}

.product-page button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button{
	background: var(--ujk-dominant) !important;
	color:white;
	border-radius: 0px;
	min-height:36px;
}

.quantity{
	display:inline-block;
}

form.cart{
	padding-bottom: 1rem;
	border-bottom: 1px solid rgba(0, 0, 0, .08);
	margin-bottom: 1rem;
}

.product-page .woocommerce .quantity .qty{
	height:36px;
}

.product-page .price-gross  span.woocommerce-Price-amount{
	color: var(--ujk-dominant) !important;
	font-size:1.5rem;
}

.product-image{
	margin-bottom: .5rem;
}

.stock.out-of-stock{
	color: var(--ujk-dominant) !important;
}

.product-tabs ul.tabs.wc-tabs{
	display:flex;
	padding:.5rem 0;
}
.product-tabs ul.tabs.wc-tabs li{
	display:block;
	padding: 4px 8px;
}

html .page .single .entry-content a, html  .page .entry-content a
 {
    color: inherit;
}

.woocommerce ul.products li.product .button {
	color:white;
}

.woocommerce ul.products li.product .price .price-gross{
    color: var(--ujk-dominant) !important;
	font-size:1rem;
}
.woocommerce ul.products li.product .price .price-net{
    color: black !important;
	font-size:1rem;
	opacity:0.8;
}
.woocommerce ul.products li.product .price bdi{
    font-weight: 600;
}

.isbn{margin-top:1rem;}


.product-page .price{
	margin-bottom:.5rem;
}

body .product-categories a{
	color: black !important;
}
body .product-categories > li{
    margin: .25rem 0;
    border-bottom: solid 1px #e9e6ed;
    padding-bottom: .25rem;
}
body .product-categories > li:last-of-type{
	border:none;
}

.product-categories > .cat-item > a{
	font-weight:600;
	font-size: 1rem;
	/*color: var(--ujk-dominant) !important;*/
}

.product-categories .current-cat > a{
	color: var(--ujk-dominant) !important;
}

p.woocommerce-loop-product__title{
	font-weight:600;
	color: black;
	/*margin-bottom: auto;
    line-height: 1.5em;
    min-height: 8.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;*/
}

p.woocommerce-loop-product__title:hover{
	color: var(--ujk-dominant) !important;
}

.book-announcement{
	padding:15px;
	border: 1px solid rgba(0, 0, 0, .08);
    margin-bottom: .5rem;
}

p.book-announcement-title{
	color: #414141;
	width:100%;
	font-weight: 600;
}

.search-product-img{
	width: auto;
    max-height: 150px;
}

.products .attachment-woocommerce_thumbnail, .woocommerce ul.products li.product a img{
	border: 1px solid rgba(0, 0, 0, .08);
}

h1.title-after-logo{
	font-weight: 400;
}

.home .products .attachment-woocommerce_thumbnail{
	max-height: 310px;
}

header .d-flex.align-items-center.gap-3{
	text-align: center;
	margin:auto;
}

.woocommerce ul.products li.product{
	/*padding-bottom: 1.5rem;*/
   /* border-bottom: 1px solid rgba(0, 0, 0, .08);*/
    margin-bottom: 0rem;
   /* padding-top: 2.5rem;*/
}

.woocommerce ul.products li.product .button{
	width:100%;
	text-align: center;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce ul.products li.product .woocommerce-loop-product__title {
   /* min-height: 140px;*/
}


.woocommerce ul.products {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch; /* ← KLUCZ */
    gap:4rem 0;
}

.products-row-5  .woocommerce  ul.products {
    grid-template-columns: repeat(5, 1fr);
}

.home .products-row-5 .products .attachment-woocommerce_thumbnail {
    max-height: 320px;
}

.product {
    display: flex!important;
    flex-direction: column!important;
    height: 100%!important;
    width: 90%!important;
}

.product > a.woocommerce-loop-product__link {
    display: flex!important;
    flex-direction: column!important;
    flex: 1!important;
    text-decoration: none!important;
}

.product img {
    flex-shrink: 0!important;
}

.product p.woocommerce-loop-product__title {
    line-height: 1.5em!important;
    margin: 0.5em 0 auto 0!important;
}

.product .price {
    margin-bottom: 1em!important;
}

.product a.button {
    margin-top: auto!important;
}

.woocommerce ul.products::before,
.woocommerce ul.products::after {
    display: none !important;
    content: none;
}

.woocommerce-pagination{
	margin-top:1.5rem;
}





/*admin*/
table.wp-list-table td.column-thumb img{
	max-height:210px;
}

body .topbar a:visited {
    color: white !important;
}

/*STRONA MOJE KONTO*/
.woocommerce-MyAccount-navigation > ul{
	list-style-type: none;
	padding-left:0;
}

.woocommerce-MyAccount-navigation > ul li a{
	background: var(--ujk-dominant) !important;
    color: white!important;
    text-decoration: none;
    border-radius: 0px;
    min-height: 36px;
    display:block;
    margin:0 15px 8px 0;
    text-align: center;
    padding:5px;
}

.woocommerce-MyAccount-navigation a br {
    display: none;
}
.woocommerce-MyAccount-navigation a:hover, body .single .entry-content a:hover, body .page .entry-content a:hover {
	opacity: 0.7;
}

body .single .entry-content a:visited, body .page .entry-content a:visited{
	color:inherit;
}

html body a:visited{
	color:inherit;
}

.woocommerce-account .addresses .title .edit{
	float:none;
}

.wp-block-woocommerce-cart .wc-block-cart__submit-button{
	background: var(--ujk-dominant) !important;
    color: white!important;
    text-decoration: none;
    border-radius: 0px;
    min-height: 36px;
    display:block;
    margin:0 15px 8px 0;
    text-align: center;
    padding:5px;
}
.banner-static{position:relative;}
.banner-static img{
	max-width:100%;
	margin:1rem auto 2rem;
}
.banner-static h1{
	position:absolute;
	right:0;top:10%;
	text-align: right;
	background: var(--ujk-dominant) !important;
	color:white!important;
	padding:2rem;
}
.banner-static h1 span{
	font-size:2.9rem;
}

.top-header{text-align: left;}

.card-header{ background: var(--ujk-dominant) !important;}
body .widget.card .widget-title{
	color:white!important;
	font-size: 1.5rem;
}

.wc-block-components-product-badge{
	background-color: orange;
}

.widget_product_categories.widget li > a {
    display: block;
    padding: .15rem .22rem;
    border-radius: .5rem;
    text-decoration: none;
    font-size: 0.9rem;
}

.widget_product_categories.widget .product-categories > .cat-item > a{
	font-size:1rem;
}

.widget_product_categories.widget .current-cat-parent > a, .widget_product_categories.widget .current-cat-parent .current-cat > a{
	color:var(--ujk-dominant) !important;
}

/* MOBILE */
@media (max-width: 768px) {
	body .logos-row .custom-logo{
		height:80px!important;
	}
	h1.title-after-logo {
    	width:100%!important;
	}

	header .d-flex.align-items-center.gap-3 {
	    flex-direction: column !important;
        flex-wrap: wrap !important;
	}

	.topbar .navbar-nav li{
		min-width:100px;
	}

	.woocommerce ul.products, .products-row-5  .woocommerce  ul.products {
        grid-template-columns: repeat(2, 1fr);
    }
    .woocommerce ul.products li.product {
    	margin-bottom:1rem!important;
    }
    .product {
    	width: 95% !important;
    	margin:auto!important;
	}

	.woocommerce ul.products li.product a img {margin-bottom: 0!important;}

	.woocommerce ul.products {
		gap:3.5rem 7px;
	}

	/*.product-page button.button.alt, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button{
		min-height:52px;
	}*/
}