/*!
Theme Name: mar
Theme URI: http://underscores.me/
Author: Vitaliy Melnichyk
Author URI: https://freelancehunt.com/freelancer/Framework.html
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: mar
*/

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

.live-search-wrapper {
    position: relative;
}

.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border-radius: 8px;
    padding: 10px 0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    display: none;
    z-index: 50;
}

.live-search-item {
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    cursor: pointer;
    text-decoration: none;
    color: #000;
    transition: background .2s;
}

.live-search-item:hover {
    background: #f3f3f3;
}

.live-search-item img {
    width: 45px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
}

.live-search-title {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.live-search-price {
    font-size: 13px;
    color: #008000;
}

.product-reviews {
    margin-top: 40px;
}

.review-title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 15px;
}

.review-average {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stars span {
    font-size: 18px;
    color: #555;
}

.stars .active {
    color: #99DB57;
}

.avg-number {
    color: #99DB57;
    font-weight: 600;
}

.review-list {
    margin-bottom: 40px;
}

.single-review {
    background: #3B3B43;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
}

.rev-avatar img {
    border-radius: 50%;
    width: 60px;
    height: 60px;
}

.rev-body {
    flex: 1;
}

.rev-head {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    margin-bottom: 5px;
}

.rev-date {
    color: #aaa;
    font-size: 14px;
}

.rev-stars span {
    font-size: 16px;
    color: #555;
}

.rev-stars .active {
    color: #99DB57;
}

.rev-text {
    margin-top: 8px;
    font-size: 15px;
}

.review-form-block {
    background: #33333A;
    padding: 25px;
    border-radius: 12px;
}

.review-form .form-group {
    margin-bottom: 20px;
}

.review-form input,
.review-form textarea,
.review-form select {
    width: 100%;
    padding: 12px 14px;
    background: #2B2B30;
    border: 1px solid #444;
    border-radius: 8px;
    color: #fff;
}

.btn-review-submit {
    background: #99DB57;
    color: #000;
    padding: 14px 26px;
    font-size: 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: .2s;
    border: none;
}

.btn-review-submit:hover {
    background: #8cd64f;
}

/* Вирівнювання чекбокса у формі відгуків */
#commentform .comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 10px;
}

#commentform .comment-form-cookies-consent input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--Color-Lime-Green);
}

#commentform .comment-form-cookies-consent label {
    margin: 0;
    font-size: 14px;
    color: var(--Color-White, #fff);
    line-height: 1.4;
    cursor: pointer;
}

.custom-delivery-text{
	padding: 32px 24px;
}


.yith-wcan-filters{
background-color: transparent;
}

.filter-title{
	color: #FFFFFF!important;
    font-size: 20px;
    font-weight: 600;
    line-height: 28px;
    margin-bottom: 24px;
        padding: 24px 24px;
}

.filter-list a{
	text-decoration: none;
}

.filter-item__icon img{
	width:32px;
	height:32px;
	object-fit:cover;
}

.price-slider{
	padding:0 32px;
}

.yith-wcan-filters .yith-wcan-filter .filter-title.collapsable:after{
	right: 15px;
}
.acceptance-block {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap; /* дозволяємо перенесення на новий рядок */
}

/* Помилка під чекбоксом */
.acceptance-block .field-error-msg {
    flex-basis: 100%;      /* повна ширина, завжди з нового рядка */
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #ff4d4f;
}

/* Підсвітка кастомної галочки */
.acceptance-block.field-error .custom-checkbox {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.45);
}
.woocommerce-error{
	display: none!important;
}
@media screen and (max-width:992px){
	.acceptance-block{
		display: none;
	}
}


/* Загальне: структура */
.acceptance-block {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Помилка під блоком */
.field-error-msg {
    width: 100%;
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #ff4d4f;
}

/* Універсальна підсвітка галочки (desktop + mobile) */
.acceptance-block.field-error .custom-checkbox {
    border-color: #ff4d4f !important;
    box-shadow: 0 0 0 2px rgba(255, 77, 79, 0.45);
}


/* Ховаємо WooCommerce помилки */
.woocommerce-error,
.woocommerce-NoticeGroup-checkout {
    display: none !important;
}


/* Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Firefox */
input[type="number"] {
    -moz-appearance: textfield;
}

.qty-input-temp {
    position: relative;
    width: 40px !important;
    height: 100%;
    text-align: center;
    border: none !important;
    outline: none !important;
    padding: 0;
    margin: 0;
    background: transparent !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: inherit !important;
}

/* При виділенні текст не темнішає */
.qty-input-temp::selection {
    background: transparent !important;
    color: #fff !important;
}


.qty-input-edit {
    width: 40px;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    color: #fff !important;
    font: inherit;
    padding: 0;
    margin: 0;
}
.qty-input-edit::selection {
    background: transparent !important;
    color: #fff !important;
}