/*
 Theme Name: CosmosWP Child
 Theme URI: https://yourwebsite.com
 Description: Child theme voor CosmosWP
 Author: Jij
 Template: cosmoswp
 Version: 1.0
*/

.cwp-woo-archive-toolbar {
    background-color: #fcfcfc !important;
}

img.attachment-woocommerce_thumbnail.size-woocommerce_thumbnail, a.woocommerce-LoopProduct-link.woocommerce-loop-product__link {
    width: 100%!important;
    height: 100%!important;
    object-fit: cover!important;
    display: block!important;
}

.cwp-image-box.cwp-elements {
    aspect-ratio: 1/1!important;
    overflow: hidden!important;
}

body.woocommerce .cwp-top-footer,
body.woocommerce-page .cwp-top-footer {
    display: none !important;
}
/* Van Melick zoekbalk styling */
.vm-searchbar {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    align-items: center;
}

.vm-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: 0.2s ease;
}

.vm-search-input:focus {
    border-color: #c40000; /* Van Melick rood */
    box-shadow: 0 0 0 2px rgba(196, 0, 0, 0.15);
    outline: none;
}

.vm-search-btn {
    padding: 12px 22px;
    background: #c40000; /* Van Melick rood */
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: 0.2s ease;
}

.vm-search-btn:hover {
    background: #a30000;
}

/* Mobiel weergave */
@media (max-width: 768px) {
    .vm-searchbar {
        flex-direction: column;
        align-items: stretch;
    }
    .vm-search-btn {
        width: 100%;
    }
}

body.search-results .cwp-sidebar {
  display: none;
}