#form_cnt{
	position:relative;
	min-height:300px
}

#form_cnt #email-animation{
	display:none;
	position:absolute;
	left:50%;
	top:50%;
	transform:translate(-50%,-50%)	
}

body.loader #form_cnt #email-animation{
	display:block
}

body.loader #form_cnt #contact_form{
	visibility:hidden;
	opacity:0
}


/* ============================== */
#page-content {
	min-height: calc(100vh - 300px);
}

/* ============================== Air Conditioners Page ===================================== */

.row-cards {
	min-height: calc(100vh - (var(--header-height) + var(--footer-height)) - 6rem - 72px );
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
	row-gap: 1rem;
	column-gap: 0;
	justify-items: center; /* Horizontally centers items */
	align-items: start; /* Items start from the top */
}

.row-cards .shop-card {
	display: flex;
	flex-direction: column;
}

#filters:hover {
	box-shadow: 2px 1rem 1.5rem rgba(0, 0, 0, .35)
}

/* -------------------------------------------------- Single Air Conditioner */

.ac-images {
	display: flex;
	flex-wrap: wrap; /* Images wrap to the next line */
	gap: 10px; /* Space between images */
}

.ac-images img {
	flex: 1 1 calc(33.333% - 10px); /* 3 images per row, minus gap */
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

/* ============================== Air Conditioners Page ===================================== */

form#klimaticy-filter .form-select { 
	/*border-color: var(--border-color);
	border-width: var( --global-border-width );*/
	 
	 
}

/* ============================== Single Air Conditioner ===================================== */

#pr-single {
    padding-left: 15px;
    padding-right: 15px;
}

#pr-single small,
#pr-single header.ac-header h1 small .badge {
    font-family: var(--sec-font);
    font-size: 1rem;
    font-weight: 600;
}

#pr-gallery-tmbs .img-thumbnail {
    max-width: 20%;
}

#pr-single table {
    font-size: 1rem;
}

#pr-single .well-2 {
    background: var(--tri-color);
    border: solid var( --global-border-width ) var( --border-dark );
    border-radius: 8px;
    margin: 1rem 0 2rem 0;
}

#pr-single .well {
    font-size: 1rem;
}

#pr-single .quantity {
    width: 70px;
    text-align: center;
    padding: 5px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

#pr-single .btn.add-to-cart {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    color: #fff;
    overflow: hidden;
}

#pr-single .btn.add-to-cart:hover,
#pr-single .btn.add-to-cart:focus,
#pr-single #input-group-prices .btn.add-to-cart:hover,
#pr-single #input-group-prices button.btn.btn-primary.add-to-cart:hover {
    background: linear-gradient(to bottom, rgba(255, 143, 0, 1) 0%, rgba(255, 111, 0, 1) 100%);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    transform: scale(1.1, 1.1);
    border-top-left-radius: var(--bs-border-radius-lg);
    border-bottom-left-radius: var(--bs-border-radius-lg);
    cursor: pointer;
}

#pr-single .img-thumbnail {
    cursor: pointer;
}

#pr-single .prices p {
    margin: 0;
}

#pr-single .prices p.ac-old-price {
    text-decoration: line-through;
    color: #888;
    font-weight: bold;
}

#pr-single .prices .input-group-lg .add-to-cart {
    padding-inline: 1rem !important;
}

#pr-single #input-group-prices {
    width: 100%;
    max-width: 360px;
    margin-top: 0.6rem;
}

#pr-single #input-group-prices input.quantity {
    width: 60px;
    padding: 0;
}

#pr-single #input-group-prices .btn.add-to-cart {
    width: calc(100% - 60px);
    line-height: 1;
}

#pr-single #pr-gallery .well .position-absolute {
    color: var(--border-color);
    font-size: 2rem;
    width: 3rem;
    height: 3rem;
    right: 1rem;
    bottom: 1rem;
}

#pr-single .badge {
    font-style: normal;
    font-weight: normal;
}

#pr-single p a:hover {
    color: rgba(var(--bs-danger-rgb));
}

#pr-single .well.well-2 table tbody tr:last-child th,
#pr-single .well.well-2 table tbody tr:last-child td{
	border:none
}

#pr-single .add_aks{ 
	display: flex;
	flex-direction: column;
	text-align:left
}
#pr-single .add_aks label{
	margin:4px 0;
	display: flex;
	align-items: center; 
}

#pr-single .well.well-2.add_aks label small{ 
	font-weight: 400;
	margin-left:8px; 
}


/* wrapper около чекбокса */
.aks-toggle-wrap {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  line-height: 0;
}

/* самият checkbox остава видим */
.aks-toggle-wrap .aks-toggle {
  position: relative;
  z-index: 1;
}

/* loader image - не заема място в flow, центриран */
.aks-toggle-wrap .aks-loader {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  display: none;
  pointer-events: none;
  z-index: 3;
}

/* показване на loader без layout shift */
.aks-toggle-wrap.loading .aks-loader { display: block; }

/* опционално: визуално затъмняване на чекбокса по време на зареждане */
.aks-toggle-wrap.loading .aks-toggle {
  opacity: 0.35;
  cursor: progress;
  pointer-events: none;
}
 
/* ============================== Cart Page ===================================== */

html body .nav-breadcrumb {
	color: var(--body-color);
	font-size: 1.1rem;
	font-weight: 600;
	min-height: 2.6rem;
	border-bottom: solid var( --global-border-width ) var(--border-color)
}

/* ============================== klimaticy Page ===================================== */
#klimaticy-top{
	padding-bottom:0
}

#klimaticy-top .title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0; /* Remove gap */
    margin: 0; /* Remove margin */
    padding: 0; /* Remove padding */
}

#klimaticy-top .title-row .exx { 
	width:100%;
}

#klimaticy-top #toggle-filter,
section#klimaticy .card.border-2 .card-body a#toggleFiltersBtn {
	color:var(--body-color);
	font-size:1rem;
	font-weight:500;
	text-transform:none;
	
	/*font-size:1.2rem; font-weight:600; */
}

@media (min-width: 992px) { 

	#contact_form .row .form-label .form-control{
		margin-top:6px
	} 
}

/* Ensure buttons and select are on one row below h1 */
@media (min-width: 768px) {
    #klimaticy .title-row {
        flex-wrap: nowrap; /* All elements on one row */
        gap: 0; 
    }
     
    #klimaticy .title-row h1.title { 
        width: auto; /* h1 no longer takes 100% */
        margin-right: 1rem; 
    } 
}
@media (max-width: 768px) {
    /* Родителят exx */
    #klimaticy-top .title-row .exx { 
        flex-direction: column; 
        align-items: flex-start;  
        gap: 0.5rem;  
    }

    /* Заглавие */
    #klimaticy-top .title-row .exx .title {
        margin-bottom: 0.5rem;
        /* h1.title в main.css е с фиксиран line-height:60px (за едноредово
           заглавие на desktop) — на мобилно, когато заглавието се пренася
           на 2-3 реда, това създава огромни празнини между редовете. */
        line-height: 1.25;
        margin-top: 0.5rem;
    }

    /* Бутон + форма */
    #klimaticy-top .title-row .exx > div.d-flex {
        width: 100%;
        justify-content: flex-start; /* бутон + форма от ляво на нов ред */
        flex-wrap: wrap; /* ако няма място, селектите минават на нов ред */
        gap: 0.5rem;
    }

    /* Формата вътре */
    #klimaticy-top .title-row .exx form#klimaticy-filter {
        flex-wrap: wrap; /* селектите да минават на нов ред при нужда */
        gap: 0.5rem;
        width: 100%;
    }

    /* Селекти */
    #klimaticy-top .title-row .exx form#klimaticy-filter select.form-select-sm {
        flex: 1 1 100%; /* селектите заемат цял ред */
    }

    /* Бутон */
    #klimaticy-top .title-row .exx > div.d-flex > button#toggle-filter {
        flex: 0 0 auto; /* бутонът остава с оригиналния си размер */
    }
}
 