/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Add your custom styles here */



.wpac-authors-list-small {
    display: block;
    list-style: none;
    margin: 0;
    padding: 0;
}
.wpac-authors-list-small li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    flex-wrap: nowrap;
    height: 60px;
    padding: 10px;
    box-sizing: border-box;
    border: 2px solid #ededed;
    border-radius: 5px;
    margin-bottom: 10px;
	transition: .5s all;
}
.wpac-authors-list-small li:hover {
	border-color: var( --e-global-color-accent );
}
.wpac-authors-list-small li > div {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.wpac-authors-list-small .author-image {
    width: 40px;
    text-align: center;
}
.wpac-authors-list-small .author-book-count {
    width: 60px;
    padding:  0 10px;
    font-size: 12px;
    align-items: end;
}
.wpac-authors-list-small .author-book-count span {
    display: inline-block;
    width: 30px;
    height: 30px;
    text-align: center;
    line-height: 30px;
    background-color: #f0f0f0;
    border-radius: 50%;
}
.wpac-authors-list-small .author-image img {
    width: 100%;
    border-radius: 50%;
    display: inline-block;
}
.wpac-authors-list-small .author-name {
    width: calc( 100% - 60px);
    text-align: left;
    padding: 0 10px;
}
.wpac-authors-list-small .author-name a {
    color: #000000;
    font-size: 16px;
    font-weight: bold;
}
.wpac-authors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: stretch;
}
.wpac-authors-grid .grid-item {
    padding: 25px 25px 0px 25px;
    border: 2px solid #ededed;
    border-radius: 5px;
    text-align: center;
    position: relative;
}
.wpac-authors-grid .grid-item .author-image img {
    border-radius: 50%;
    max-width: 180px;
}
.wpac-authors-grid .grid-item .author-name {
    margin-bottom: 10px;
}
.wpac-authors-grid .grid-item .author-name a {
    font-weight: bold;
    font-size: 18px;
}
.wpac-authors-grid .grid-item .author-book-count {
    font-size: 12px;
    padding: 3px 15px;
    background-color: #ededed;
    display: inline-block;
    border-radius: 5px 5px 0 0;
}
.wpac-authors-grid .grid-item .author-book-count span {
    font-weight: bold;
}
.wpac-taxonomy-pagination {
    clear: both;
    margin: 20px 0;
    text-align: center;
}
.wpac-taxonomy-pagination .page-numbers {
    padding: 8px 12px;
    border-radius: 5px;
    background-color: #ededed;
    font-size: 14px;
}
.wpac-taxonomy-pagination .page-numbers:hover, .wpac-taxonomy-pagination .page-numbers.current {
    background-color: #000000;
    color: #f0f0f0;
}
/**
* WooCommerce Archive Products 
*/
.elementor-grid .star-rating {
	display: none !important;
}
.elementor-grid li.product {
	text-align: center !important;
	position: relative !important;
	padding-bottom: 50px !important;
}
.elementor-grid li.product img {
	border-radius: 5px;
}
.woocommerce .woocommerce-ordering {
	margin-bottom: 50px;
}
.elementor-grid .woocommerce-loop-product__title {
	font-size: 14px !important;
}
.elementor-grid .price {
	font-size: 14px !important;
}
.add_to_cart_button {
	background: transparent !important;
	color: #121212 !important;
	font-size: 14px !important;
	border: 1px solid #121212 !important;
	border-radius: 5px !important;
	width: 100%;
	margin: 0 !important;
	position: absolute !important;
	bottom: 0;
	left: 0 !important;
	font-weight: 600 !important;
	transition: .5s all;
}
.add_to_cart_button:hover {
	border-color: var( --e-global-color-accent ) !important;
	color: var( --e-global-color-accent ) !important;
}
.tinvwl_add_to_wishlist_button {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    color: #121212 !important;
    padding: 5px;
    border: 1px solid #121212 !important;
    border-radius: 5px;
}
.woocommerce-notices-wrapper {
	max-width: 1240px;
    margin: 20px auto;
}
@media all and (max-width: 960px) {
    .wpac-authors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
	.wpac-authors-grid .grid-item .author-image img {
		max-width: 160px;
	}
	.shop-filters {
		display: none;
	}
}
@media all and (max-width: 767px) {
    .wpac-authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.woocommerce-tabs ul.wc-tabs li {
		display: block;
		width: 100%;
		margin-bottom: 5px;
	}
	.woocommerce-tabs ul.wc-tabs li a {
		border-radius: 5px !important;
		width: 100%;
		display: inline-block;
		text-align: center;
	}
	.elementor-widget-wc-archive-products .products {
		grid-template-columns: 100% !important;
	}
}
@media all and (max-width: 500px) {
    .wpac-authors-grid {
        grid-template-columns: repeat(1, 1fr);
    }
	.single .woocommerce-product-rating {
		align-items: center !important;
		justify-content: center !important;
	}
}

.onsale {
    background-color: #1E6B3A !important
}

/**
* WooCommerce Archive Products 
*/
.elementor-grid .star-rating {
	display: none !important;
}
.elementor-grid li.product {
	text-align: center !important;
	position: relative !important;
	padding-bottom: 50px !important;
}
.elementor-grid li.product img {
	border-radius: 5px;
}
.woocommerce .woocommerce-ordering {
	margin-bottom: 50px;
}
.elementor-grid .woocommerce-loop-product__title {
	font-size: 14px !important;
}
.elementor-grid .price {
	font-size: 14px !important;
}
.add_to_cart_button {
	background: transparent !important;
	color: #121212 !important;
	font-size: 14px !important;
	border: 1px solid #121212 !important;
	border-radius: 5px !important;
	width: 100%;
	margin: 0 !important;
	position: absolute !important;
	bottom: 0;
	left: 0 !important;
	font-weight: 600 !important;
	transition: .5s all;
}
.add_to_cart_button:hover {
	border-color: var( --e-global-color-accent ) !important;
	color: var( --e-global-color-accent ) !important;
}
.tinvwl_add_to_wishlist_button {
    display: block;
    width: 100%;
    text-align: center;
    text-decoration: none !important;
    font-size: 14px;
    color: #121212 !important;
    padding: 5px;
    border: 1px solid #121212 !important;
    border-radius: 5px;
}
.woocommerce-notices-wrapper {
	max-width: 1240px;
    margin: 20px auto;
}
@media all and (max-width: 960px) {
    .wpac-authors-grid {
        grid-template-columns: repeat(3, 1fr);
    }
	.wpac-authors-grid .grid-item .author-image img {
		max-width: 160px;
	}
	.shop-filters {
		display: none;
	}
}
@media all and (max-width: 767px) {
    .wpac-authors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
	.woocommerce-tabs ul.wc-tabs li {
		display: block;
		width: 100%;
		margin-bottom: 5px;
	}
	.woocommerce-tabs ul.wc-tabs li a {
		border-radius: 5px !important;
		width: 100%;
		display: inline-block;
		text-align: center;
	}
	.elementor-widget-wc-archive-products .products {
		grid-template-columns: 100% !important;
	}
}
@media all and (max-width: 500px) {
    .wpac-authors-grid {
        grid-template-columns: repeat(1, 1fr);
    }
	.single .woocommerce-product-rating {
		align-items: center !important;
		justify-content: center !important;
	}
}

/*.no-p-margin p, .woocommerce-breadcrumb, {
	margin-bottom: 0 !important;
}

/* Το κόκκινο price badge: κεντράρισμα περιεχομένου, χωρίς κενό
.no-p-margin {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 10px !important;
  line-height: 1 !important;
}
.no-p-margin .price,
.no-p-margin p.price {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

*/

/* === PRICE BADGE — μικρό κόκκινο κουτί κεντραρισμένο κάτω από εικόνα === */

/* Το ΓΟΝΙΚΟ container: διάφανο, κεντράρει το badge */
.e-loop-item .elementor-widget-woocommerce-product-price,
.elementor-loop-container .elementor-widget-woocommerce-product-price {
  display: flex !important;
  justify-content: center !important;
  background: transparent !important;
  margin: 8px 0 0 0 !important;
}

/* Το κόκκινο badge (.no-p-margin) — μικρό, μόνο γύρω από την τιμή */
.no-p-margin {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  max-width: max-content !important;
  margin: 0 auto !important;
  padding: 14px 30px !important;
  top: auto !important;
  right: auto !important;
  left: auto !important;
  bottom: auto !important;
  transform: none !important;
  background-color: #8F1D1D !important;
  border-radius: 6px !important;
  line-height: 1 !important;
}

/* Η τιμή μέσα */
.no-p-margin .price {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  line-height: 1 !important;
  color: #fff !important;
}
.no-p-margin .price bdi,
.no-p-margin .price del,
.no-p-margin .price ins,
.no-p-margin .price .amount {
  line-height: 1 !important;
  color: inherit !important;
}
.no-p-margin .price ins {
  text-decoration: none !important;
}
.no-p-margin .price del {
  opacity: 0.7 !important;
}