/*
Theme Name: Ricky-Child
Theme URI: https://parkofideas.com/ricky/
Text Domain: ricky-child
Description: Cosmetics and Beauty Shop Theme
License: GNU General Public License v2.0 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.2
Template: ricky
Author: parkofideas.com
Author URI: https://parkofideas.com
Tags: right-sidebar, custom-background, custom-colors, featured-images, full-width-template, post-formats, theme-options, translation-ready
*/


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

.contexa-results-section {
	max-height: 500px;
	overflow: auto;
}

/* Contexa search inside theme header popup */
.c-header-search__form .contexa-search-wrapper {
	max-width: 100%;
	width: 100%;
}

.c-header-search__form .contexa-autocomplete-wrapper {
	position: relative;
}

.c-header-search__form .contexa-real-input {
	background: transparent !important;
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100% !important;
	color: #333 !important;
}

.c-header-search__form .contexa-real-input::placeholder {
	color: #999 !important;
	opacity: 1 !important;
}

.c-header-search__form .contexa-real-input:-ms-input-placeholder {
	color: #999 !important;
}

.c-header-search__form .contexa-real-input::-moz-placeholder {
	color: #999 !important;
}

.c-header-search__form .contexa-ghost-input {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 100% !important;
	color: #999;
	background: transparent !important;
	border-color: transparent !important;
	pointer-events: none;
	z-index: 1;
}

@media (max-width: 1189px) {
	.c-header-search__shadow {
		background: #ffff !important;
	}
}

@media (max-width: 768px) {
	.contexa-products-list .contexa-product-card {
		padding: 20px;
	}
	.contexa-products-list .contexa-product-image{
		max-width: 150px;
	}
	.c-header-search__form .contexa-real-input{
		height: 48px !important;
	}
}


body.rtl.h-rtl .contexa-quantity-selector input.contexa-quantity-input {
	text-align: center !important;
}
.contexa-quantity-selector{
	background: #F0F9FC;
    padding: 5px;
    text-align: center;
}
.contexa-qty-btn{
	color: var(--accent-color);
}

/* Contexa recommendations - match theme product grid style */
.contexa-recommendations-wrapper {
	padding: 30px 0;
}

.contexa-recommendations-title {
	font-size: 22px;
	font-weight: 700;
	text-align: center;
	margin-bottom: 20px;
	color: var(--accent-color);
}

.contexa-products-grid {
	display: flex;
	flex-wrap: nowrap;
	gap: 15px;
	overflow-x: auto;
	padding-bottom: 10px;
}

.contexa-products-grid .contexa-product-card {
	flex: 0 0 calc(20% - 12px);
	min-width: 180px;
	background: #fff;
	border: 1px solid #e8e8e8;
	border-radius: 10px;
	padding: 15px;
	text-align: center;
	transition: box-shadow 0.3s;
}

.contexa-products-grid .contexa-product-card:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contexa-products-grid .contexa-product-image {
	margin-bottom: 10px;
}

.contexa-products-grid .contexa-product-image img {
	width: 100%;
	height: auto;
	border-radius: 6px;
	object-fit: contain;
	max-height: 200px;
}

.contexa-products-grid .contexa-product-title {
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	margin-bottom: 8px;
	min-height: 40px;
}

.contexa-products-grid .contexa-product-title a {
	color: #333;
	text-decoration: none;
}

.contexa-products-grid .contexa-product-title a:hover {
	color: var(--accent-color);
}

.contexa-products-grid .contexa-product-price {
	font-size: 16px;
	font-weight: 700;
	color: var(--accent-color);
	margin-bottom: 10px;
}

.contexa-products-grid .contexa-product-price del {
	color: #999;
	font-weight: 400;
	font-size: 13px;
}

.contexa-products-grid .contexa-product-price ins {
	text-decoration: none;
}

.contexa-products-grid .contexa-product-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.contexa-products-grid .contexa-add-to-cart-btn {
	background: var(--accent-color);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 8px 16px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	width: 100%;
	transition: opacity 0.3s;
}

.contexa-products-grid .contexa-add-to-cart-btn:hover {
	opacity: 0.85;
}

.contexa-products-grid .contexa-sale-badge {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #e74c3c;
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 4px;
}

.contexa-products-grid .contexa-product-image {
	position: relative;
}

.contexa-products-grid .contexa-out-of-stock {
	color: #999;
	font-size: 13px;
}

@media (max-width: 768px) {
	.contexa-products-grid .contexa-product-card {
		flex: 0 0 calc(50% - 8px);
		min-width: 150px;
	}
}

.contexa-recommendations-results .contexa-product-title{
	text-align: right !important;
	line-height: 1 !important;
	margin-bottom: 0 !important;
}
.contexa-recommendations-results .contexa-product-title a{
	font-size: 16px;
}
.contexa-recommendations-results .contexa-products-grid .contexa-product-card{
	display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.contexa-recommendations-results .contexa-products-grid .contexa-product-card .contexa-product-info{
	padding: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    flex: 1;
}