/* V0.4.0: Independent showcase/gallery styles; no Grotte templates edited. */
.f4c-sold-home-subtitle {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.6;
    color: #786a62;
}
.f4c-sold-home-link {
    text-align: center;
    margin: 22px 0 12px;
}
.f4c-sold-home-link a,
.f4c-sold-home-link a:link,
.f4c-sold-home-link a:visited {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #4a2b1d;
    border-radius: 3px;
    background: #4a2b1d;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}
.f4c-sold-home-link a:hover,
.f4c-sold-home-link a:focus-visible {
    background: #65422e;
    border-color: #65422e;
    color: #fff;
    text-decoration: none;
}
.f4c-sold-gallery-intro {
    color: #4a2b1d;
    margin: 8px 0 5px;
    font-size: 17px;
    font-weight: 600;
}
.f4c-sold-gallery-subintro {
    color: #786a62;
    margin: 0 0 24px;
    line-height: 1.6;
}
/* v0.4.1: Layout limited to the CONTROL FORM, not the whole gallery.
   WooCommerce keeps 100% width for the grid and pagination below. */
.f4c-sold-gallery-has-controls .woocommerce-ordering {
    display: none !important;
}
.f4c-sold-gallery .f4c-sold-gallery-filters {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
    width: 100% !important;
    margin: 18px 0 25px !important;
    padding: 0 !important;
    float: none !important;
    clear: both;
    box-sizing: border-box;
}
.f4c-sold-gallery .f4c-sold-gallery-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}
.f4c-sold-gallery .f4c-sold-gallery-field label {
    display: block;
    width: auto;
    margin: 0 !important;
    color: #4a2b1d;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
}
.f4c-sold-gallery .f4c-sold-gallery-field select {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 45px !important;
    margin: 0 !important;
    padding: 0 12px !important;
    background-color: #fff;
    border: 1px solid #d5cec8;
    border-radius: 4px;
    color: #4a2b1d;
    font-size: 13px;
    font-weight: 500;
    box-sizing: border-box;
}
.f4c-sold-gallery .f4c-sold-gallery-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
}
.f4c-sold-gallery .f4c-sold-gallery-actions button,
.f4c-sold-gallery .f4c-sold-gallery-actions button:link,
.f4c-sold-gallery .f4c-sold-gallery-actions button:visited,
.f4c-sold-gallery .f4c-sold-gallery-actions button:hover,
.f4c-sold-gallery .f4c-sold-gallery-actions button:focus {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 45px !important;
    min-width: 96px;
    margin: 0 !important;
    padding: 0 18px !important;
    background: #4a2b1d !important;
    border: 1px solid #4a2b1d !important;
    border-radius: 4px !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-shadow: none !important;
    opacity: 1 !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
    cursor: pointer;
}
.f4c-sold-gallery .f4c-sold-gallery-actions button:hover,
.f4c-sold-gallery .f4c-sold-gallery-actions button:focus {
    background: #65422e !important;
    border-color: #65422e !important;
}
.f4c-sold-gallery .f4c-sold-gallery-actions button::before,
.f4c-sold-gallery .f4c-sold-gallery-actions button::after {
    display: none !important;
    content: none !important;
}
.f4c-sold-gallery .f4c-sold-gallery-reset,
.f4c-sold-gallery .f4c-sold-gallery-reset:visited {
    color: #4a2b1d;
    text-decoration: none;
    white-space: nowrap;
    font-size: 13px;
}
.f4c-sold-gallery .f4c-sold-gallery-reset:hover { text-decoration: underline; }
.f4c-sold-gallery .woocommerce { width: 100%; clear: both; }
.f4c-sold-gallery ul.products { clear: both; }
.f4c-sold-gallery-empty { margin: 22px 0; }
@media (max-width: 767px) {
    .f4c-sold-gallery .f4c-sold-gallery-filters {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }
    .f4c-sold-gallery .f4c-sold-gallery-actions { flex-wrap: wrap; }
    .f4c-sold-gallery .f4c-sold-gallery-actions button { flex: 1 1 100%; }
}
