/*
Theme Name: Shoptimizer Child Theme
Theme URI: 
Description: Child theme of Shoptimizer
Author: CommerceGurus
Author URI: 
Template: shoptimizer
Version: 1.2.2
License:         	GNU General Public License v2 or later
License URI:     	http://www.gnu.org/licenses/gpl-2.0.html
*/

/* ----------------------
 * HOMEPAGE AANPASSINGEN
 * ---------------------*/

/*=======================
 * VERSCHILLENDE AANPASSINGEN
 * ===================*/

/* footer buttom - klant worden */
.btn-klant-worden {
    display: inline-block;
    border: 1px solid #fff;
	border-radius: 10px;
    color: #fff !important;
    letter-spacing: 0.05em;
    padding: 8px 12px;
    margin-top: 12px;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-klant-worden:hover {
    background: #fff;
    color: #333 !important;
	    font-weight: 700;
}

/* merknaam laten zien indien er geen afbeelding is*/
.merk-naam-fallback {
    display: none;
}

.elementor-widget-image a:not([href*="placeholder"]) ~ * .merk-naam-fallback,
.elementor-widget-image img[src=""] ~ * .merk-naam-fallback {
    display: block;
}

/* Verberg +/- knoppen als hoeveelheid niet aanpasbaar is */
.quantity input[min="1"][max="1"] ~ .quantity-nav,
.quantity input[min="1"][max="1"] + .quantity-nav {
    display: none !important;
}
/*---------------
 * Side bar weg bij veelgestelde vragen en faq
 * -------------------------------------------*/

/* Klantenservice en FAQ single — volledige breedte */
.single-klantenservice .content-area,
.single-veelgestelde-vragen .content-area {
    width: 100% !important;
    float: none !important;
}

.single-klantenservice #secondary,
.single-veelgestelde-vragen #secondary {
    display: none !important;
}
/* =============================================
   MM PRODUCT CARD
   ============================================= */

/* Grid */
.products.columns-4,
.products.columns-3 {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Shoptimizer hover overlay uitschakelen */
ul.products li.product.mm-product-card::before,
ul.products li.product.mm-product-card:hover::before {
    content: none !important;
    display: none !important;
}

/* Kaart basis */
.mm-product-card {
    border: 1px solid #eee !important;
    border-radius: 4px !important;
    overflow: hidden !important;
	position: relative !important;
    list-style: none !important;
    background: #fff !important;
    transition: box-shadow 0.2s ease !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
}

.mm-product-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* Afbeelding */
.mm-product-card__link {
    display: block !important;
    text-decoration: none !important;
}

.mm-product-card__image {
    overflow: visible !important; /* was hidden */
    position: relative !important;
    background: #fff !important;
    height: 180px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.mm-product-card__image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

.mm-product-card:hover .mm-product-card__image img {
    transform: scale(0.95) !important;
}

/* Body */
.mm-product-card__body {
    flex: 1 !important;
    padding: 10px 10px 8px !important;
}

.mm-product-card__title-link {
    text-decoration: none !important;
}

.mm-product-card__title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #1a6fb5 !important;
    margin: 0 0 6px !important;
    line-height: 1.4 !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mm-product-card__desc {
    font-size: 12px !important;
    color: #666 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.mm-product-card__desc p {
    margin: 0 !important;
}

/* Footer — prijs links, button rechts, beide top uitgelijnd */
.mm-product-card__footer {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: space-between !important;
    padding: 10px !important;
    border-top: 1px solid #eee !important;
    background: #fff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prijs + voorraad gestapeld in kolom */
.mm-product-card__price {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
}

.mm-product-card__price .price {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
    line-height: 1.2 !important;
    margin: 0 !important;
}

/* Voorraad shortcode */
.mm-product-card .mm-stock {
    opacity: 1 !important;
    visibility: visible !important;
    font-size: 12px !important;
}

/* Cart button — rechts, uitgelijnd met bovenkant prijs */
.mm-product-card__cart {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    background: #4caf50 !important;
    border-radius: 4px !important;
    flex-shrink: 0 !important;
    transition: background 0.2s ease !important;
    text-decoration: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    margin-left: 8px !important;
}

.mm-product-card__cart:hover {
    background: #388e3c !important;
}

.mm-product-card__cart svg {
    width: 16px !important;
    height: 16px !important;
    fill: #fff !important;
}
/* Gelijke hoogte alleen in de homepage loop */
.home .products .mm-product-card {
    height: 100% !important;
}

/* Tablet — 3 kolommen bij 1024px */
@media (max-width: 1024px) {
    .products.columns-4,
    .products.columns-3 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* Klein tablet — 2 kolommen */
@media (max-width: 700px) {
    .products.columns-4,
    .products.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobiel — 1 kolom */
@media (max-width: 480px) {
    .products.columns-4,
    .products.columns-3 {
        grid-template-columns: 1fr !important;
    }
}

/*voorraad */

.opbestelling {
font-style:italic;
font-size: 0.7em;
}

.mm-stock {
    display: flex;
    align-items: flex-start;
    gap: 4px;
    font-size: 12px;

}

/* Groen - op voorraad */
.mm-stock.instock {
    color: #3BB54A;
}
.mm-stock.instock .mm-stock__icon {
    color: #3BB54A;
    font-size: 12px;
    margin-top: 1px;
}

/* Geel - op bestelling */
.mm-stock.onbackorder {
    color: #e0ac11;
}
.mm-stock.onbackorder .mm-stock__icon {
    color: #e0ac11;
    font-size: 12px;
    margin-top: 1px;
}
.mm-stock.onbackorder em {
    display: block;
    font-weight: 400;
    font-style: italic;
    color: #e0ac11;
    font-size: 10px;
}
.mm-stock__svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    margin-top: 3px;
    fill: currentColor;
}



/* winkelwagen button, prijs en voorraad zichtbaar op hover "elementor loop grid */
.product-card {
    position: relative;
    overflow: hidden;
}

.product-card__footer {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-card:hover .product-card__footer {
    opacity: 1;
    transform: translateY(0);
}

/* prijs op aanvraag*/

/* Altijd zichtbaar, niet afhankelijk van hover state */
.mm-prijs-op-aanvraag-card {
    background-color: #21a04b !important;
    color: white !important;
    font-size: 13px !important;
    padding: 6px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    display: inline-block !important;
}

/* Cart-knop verbergen als er geen prijs is */
.mm-product-card.mm-no-price .mm-product-card__cart {
    display: none !important;
}
/*===============
 PRODUCT PAGINA
================*/
.mm-product-card .mm-prijs-op-aanvraag-card {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    bottom: auto !important;
    background-color: #21a04b !important;
    color: white !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: normal !important;
    padding: 10px 12px !important;
    border-radius: 4px !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: none !important;
    z-index: auto !important;
}

/* ------------
 * TOP BAR USP
--------------*/
.top-bar {
    border-bottom: 1px solid #f8f8f8;
}
.mm-usp-list {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    white-space: nowrap;
}

.mm-usp-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #000;
    white-space: nowrap;
}

.mm-usp-icon {
    width: 16px;
    height: 16px;
    color: #2B8BCB;
}

.mm-usp-item {
    white-space: nowrap;
    flex-shrink: 0;
}

.top-bar-left {
    flex: 1 1 auto;
}

.top-bar-right {
    flex: 0 0 auto !important;
}

.widget_text.top-bar-right {
    gap: 12px;
}
/* Topbar buttons */
.mm-topbar-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 16px;
}

.mm-topbar-btn {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 3px;
    font-size: 12px;
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}

.mm-topbar-btn--phone {
    color: #323232;
    border: 1px solid #2B8BCB;
    font-weight: 500;
}

.mm-topbar-btn--phone:hover {
    border-color: #000;
    color: #000;
}

.mm-topbar-btn--advies {
    background: #2B8BCB;
    color: #fff !important;
    font-weight: 600;
}

.mm-topbar-btn--advies:hover {
    background: #005a94;
    color: #fff !important;
}
/*==============
WPML vlag
==============*/
.wpml-ls-statics-shortcode_actions,
.wpml-ls-legacy-dropdown {
    width: auto !important;
}

.wpml-ls-legacy-dropdown a.wpml-ls-item-toggle {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    width: auto !important;
}

.wpml-ls-legacy-dropdown .wpml-ls-sub-menu {
    right: 0;
    left: auto;
    overflow: visible !important;
}
/* ======================
 * Shoptimizer voorraad verwijderen
 * ======================*/
/* Verberg Shoptimizer dubbele voorraadtekst op productpagina */
.single-product .stock {
    display: none !important;
}

/* ======================
 * Tags uitgelicht
 * ======================*/

/* Tag melding productcard */
.mm-tag-melding-card {
    position: absolute !important;
    top: 8px !important;
    right: 8px !important;
    z-index: 10 !important;
    display: inline-block !important;
    background: #e8f5e9 !important;
    color: #2e7d32 !important;
    border: 1px solid #a5d6a7 !important;
    border-radius: 3px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    padding: 2px 8px !important;
    line-height: 1.4 !important;
}

/* Tag melding positie */
.mm-product-card {
    position: relative !important;
}

/* Tag melding productpagina */
.mm-tag-melding-product {
    margin: 12px 0;
}

.mm-tag-melding-product__label {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    margin-bottom: 6px;
}

.mm-tag-melding-product__tekst {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1b5e20;
}

/* Product uitgelicht tekst */
.mm-product-uitgelicht {
    background: #e8f5e9;
    border: 1px solid #a5d6a7;
    border-radius: 3px;
    padding: 10px 14px;
    font-size: 13px;
    color: #1b5e20;
    margin: 12px 0;
}
