/* =========================================================
   CATEGORY HEADERS
   ========================================================= */

.midsearch-category-title {
    font-size: 18px;
    font-weight: 800;
    margin: 40px 0 10px;
    color: #000;
}

.midsearch-category-subtitle {
    margin: 4px 0 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    color: #000;
}

.midsearch-category-divider {
    border-bottom: 2px solid #000;
    margin-bottom: 20px;
}

/* =========================================================
   PRODUCT GRID STRUCTURE
   ========================================================= */

.midsearch-product-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Each row = 2 products (desktop) */
.midsearch-product-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* =========================================================
   PRODUCT CARD (CF-STYLE)
   ========================================================= */

.midsearch-product {
    display: grid;
    grid-template-columns: 1fr auto;
    background: #f3f1e9;
    padding: 1px;
    align-items: stretch;
}

/* Text column */
.midsearch-product-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 16px;
}

/* Title */
.midsearch-product-title {
    margin: 15px 0 0 10px;
	font-size:24px !important;
    font-weight: 800 !important;
    color: #b60039;
}

/* Subtitle */
.midsearch-product-subtitle {
    margin: 10px 0 0 10px;
    color: #000;
	font-size:13px !important;
}

/* =========================================================
   IMAGE HANDLING (NO PHANTOM SPACING)
   ========================================================= */

.midsearch-product-image {
    padding: 0;
    margin: 0;
    line-height: 0;
    background: transparent;
}

.midsearch-product-image img {
    display: block;
    margin: 0;
    padding: 0;
    width: auto;          /* ← natural size */
    height: auto;
}

/* =========================================================
   FILTER BAR (CF-STYLE)
   ========================================================= */

#midsearch-relational-form.midsearch-form {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 20px;
    padding: 18px 16px;
    background: #F3F1E9;
    margin-bottom: 24px;
}

/* Dropdown groups */
#midsearch-relational-form .midsearch-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 170px;
}

#midsearch-relational-form label {
    font-weight: 700;
    color: #000;
}

#midsearch-relational-form select {
    height: 40px;
    min-width: 170px;
    border: 2px solid #6b4e2e;
    background: #fff;
    padding: 6px 10px;
    border-radius: 0;
}

/* Actions (Reset All on right) */
#midsearch-relational-form .midsearch-actions {
    margin-left: auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 6px;
}

/* Hide Filter button */
#midsearch-relational-form button[type="submit"] {
    display: none;
}

#midsearch-reset {
    color: #b60039;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

#midsearch-reset:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE BEHAVIOR
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {

    #midsearch-relational-form.midsearch-form {
        flex-wrap: wrap;
        align-items: stretch;
    }

    #midsearch-relational-form .midsearch-filter-group,
    #midsearch-relational-form select {
        width: 100%;
    }

    #midsearch-relational-form .midsearch-actions {
        margin-left: 0;
        padding-top: 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {

    .midsearch-product-row {
        grid-template-columns: 1fr;
    }
}
/* === FINAL IMAGE TIGHTENING (kills last 2–3px) === */

.midsearch-product-image {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.midsearch-product-image img {
    display: block;
    vertical-align: top;
    line-height: 0;
}

/* === FIX TITLES === */
/* Force Midsearch title styles (Elementor-proof) */
/* Force Midsearch CATEGORY title (Elementor override) */
.elementor-kit-6 .midsearch-category-title,
.elementor-kit-6 h3.midsearch-category-title {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #000 !important;
    margin: 40px 0 10px 0 !important;
    line-height: 1.2 !important;
}



