.knuff-section {
    padding: 25px !important;
}

.knuff-section p {
    margin-bottom: 20px;
    padding:0px;
}

.knuff-block-hero {
    margin-top:-200px;
}


.knuff-block {
    margin-top:-20px;
}

.knuff-title {
    text-align:center;
}
.knuff-title span {
    position:relative;
    top:-70px;
}

.flex { display:flex; }
.col { width : 100% }
.col-80 { width:80%; align-self: center; }
.col-60 { width:60%; align-self: center; }
.col-40 { width:40%; align-self: center; }
.col-20 { width:20%; align-self: center; }



.tight-c-20 {
    width:100%; padding: 0 20% 0 20%; align-items: center
}
.tight-c-10 {
    width:100%; padding: 0 10% 0 10%; align-items: center
}

.img100p {
    width:100%;
    padding:4px;
}

.v--wide {
    display:block;
}

.v--small {
    display:none;
}

.knuff-content {
    margin-top: -40px;
}


.knuff-btn {
    display: inline-block;
    background-color: #d55a20;
    color: white;
    padding: 4px 20px;
    border-radius: 50px;
    text-decoration: none;
    margin: 5px 0;
}

.knuff-btn:hover {
    background-color: #e07c0a;
    color: white;
    text-decoration: none;
}

.knuff-btn span {
    color: black;
    font-weight: bold;
}

.pt-mo-20 { padding-top: 0px; }
.pt-mo-40 { padding-top: 0px; }
.pt-mo-80 { padding-top: 0px; }

.pt-dt-20 { padding-top: 20px; }
.pt-dt-40 { padding-top: 40px; }
.pt-dt-80 { padding-top: 80px; }

/* ==========================================================================
   Utility Classes
   ========================================================================== */

/* Flexbox utilities */
.flex-center { display: flex; align-items: center; }
.flex-start { display: flex; align-items: flex-start; }
.flex-col-center { display: flex; flex-direction: column; justify-content: center; }

/* Margin utilities */
.mt-20 { margin-top: 20px; }
.mt-25 { margin-top: 25px; }
.mt-30 { margin-top: 30px; }
.mt-50 { margin-top: 50px; }
.mb-15 { margin-bottom: 15px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.my-30 { margin: 30px 0; }

/* Text utilities */
.text-center { text-align: center; }
.text-small { font-size: 90%; }
.text-large { font-size: 110%; }

/* ==========================================================================
   Reusable Components
   ========================================================================== */

/* Numbered feature circle (orange) */
.knuff-num {
    background: #d55a20;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
}

/* Feature item row */
.knuff-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}
.knuff-feature--center { align-items: center; }

/* Image caption */
.img-caption { text-align: center; font-style: italic; margin-top: 10px; }

/* Button row container */
.btn-row { text-align: center; margin-top: 30px; }
.btn-row-l { text-align: left; margin-top: 30px; }

@media (max-width: 767px) {

    .knuff-block {
        margin-top:-80px;
    }

    .knuff-section p {
        margin-top:10px;
        margin-bottom: 20px;
        padding:2px;
    }


    .pt-mo-20 { padding-top: 20px; }
    .pt-mo-40 { padding-top: 40px; }
    .pt-mp-80 { padding-top: 80px; }

    .pt-dt-20 { padding-top: 0px; }
    .pt-dt-40 { padding-top: 0px; }
    .pt-dt-80 { padding-top: 0px; }
}

/* ==========================================================================
   Actie-artikelen sectie - Marketing Acties
   ========================================================================== */

.knuff-actie-artikelen-sectie {
    margin: 30px 0 20px 0;
    padding: 0;
}

/* Actie blok - container per actie */
.knuff-actie-blok {
    border: 2px solid #c3e6c3;
    border-radius: 5px;
    padding: 15px;
    margin-bottom: 15px;
    background: #e8f5e9;
}

.actie-blok-header {
    font-weight: bold;
    margin-bottom: 10px;
}

.actie-blok-tekst {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    font-size: 13px;
}

.actie-blok-items {
    margin-bottom: 10px;
}

/* Actie artikel row - 3 kolommen, geen border */
.actie-artikel {
    display: flex;
    align-items: center;
    padding: 10px 5px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.actie-artikel:hover {
    border-color: #888;
}

/* 3-koloms layout: col-4 | col-7 | col-1 (33% | 58% | 9%) */
.actie-artikel .artikel-image {
    width: 33.33%;
    max-width: 100px;
    height: auto;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.actie-artikel .artikel-info {
    width: 58.33%;
    padding: 0 15px;
    min-width: 0;
}

.actie-artikel .artikel-info strong {
    display: block;
    margin-bottom: 5px;
    font-size: 15px;
}

.actie-artikel .korting-badge {
    display: inline-block;
    background: #d9534f;
    color: white;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 12px;
}

.actie-artikel .artikel-prijzen {
    display: block;
    font-size: 14px;
    margin-top: 8px;
}

.actie-artikel .artikel-qty-recht {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
}

.actie-artikel .normale-prijs {
    text-decoration: line-through;
    color: #999;
    margin-right: 8px;
}

.actie-artikel .actie-prijs {
    color: #28a745;
    font-weight: bold;
}

.actie-artikel .knuff-voeg-toe-btn {
    width: auto;
    min-width: 110px;
    flex-shrink: 0;
    text-align: center;
    border-radius: 15px !important;
    padding: 8px 12px !important;
    font-size: 13px;
    white-space: nowrap;
}

.actie-artikel .knuff-voeg-toe-btn:disabled {
    background: #ccc !important;
    cursor: not-allowed;
}

.keuze-groep {
    border: 1px dashed #ccc;
    border-style: dashed;
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    background: transparent;
}

/* Keuze-groep item padding: compacte weergave */
.keuze-groep .actie-artikel.keuze-first {
    padding-bottom: 0;
}

.keuze-groep .actie-artikel.keuze-last {
    padding-top: 0;
}

.keuze-groep .actie-artikel.keuze-middle {
    padding-top: 0;
    padding-bottom: 0;
}

/* Tekst bovenaan keuze-groep */
.keuze-groep-tekst {
    margin-bottom: 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

.totaal-korting {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #666;
}

/* Product pagina actie-blok */
.knuff-product-actie-blok {
    background: #28a745;
    border: 1px solid #1e7e34;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    text-align: center;
    width: 65%;
    color: #fff;
}

.knuff-product-actie-blok .actie-caption {
    font-weight: bold;
    font-size: 16px;
    margin-bottom: 10px;
}

.knuff-product-actie-blok .actie-tekst {
    font-size: 14px;
    line-height: 1.5;
}

/* Product loop actie-badge */
.knuff-actie-badge-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 10;
}

.knuff-actie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #28a745;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 20px;
    pointer-events: auto;
    cursor: pointer;
    z-index: 11;
}

.knuff-actie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.95);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    pointer-events: none;
    z-index: 10;
}

.knuff-actie-overlay-tekst {
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

/* Desktop: hover op badge toont overlay en verbergt badge */
@media (min-width: 768px) {
    .knuff-actie-badge:hover + .knuff-actie-overlay,
    .knuff-actie-overlay:hover {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .knuff-actie-badge:hover {
        opacity: 0;
    }

    .knuff-actie-overlay:hover + .knuff-actie-badge,
    .knuff-actie-badge-wrapper:hover .knuff-actie-badge {
        opacity: 0;
    }
}

/* Mobile: click toggle via JS class */
.knuff-actie-overlay.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Actie-artikelen mobile responsive */
@media (max-width: 767px) {
    .actie-artikel {
        flex-wrap: wrap;
    }

    .actie-artikel .artikel-image {
        width: 25%;
        max-width: 70px;
    }

    .actie-artikel .artikel-info {
        width: 75%;
        padding: 0 10px;
    }

    .actie-artikel .knuff-voeg-toe-btn {
        width: 50%;
        margin-top: 10px;
        flex-basis: 50%;
    }
}

/* ==========================================================================
   Cart Quantity Selector
   ========================================================================== */

.knuff-qty-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
}

.knuff-qty-select {
    width: 70px;
    height: 32px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff !important;
    padding: 4px;
    cursor: pointer;
    -webkit-appearance: menulist;
    -moz-appearance: menulist;
    appearance: menulist;
}

.knuff-qty-select:focus {
    border-color: #f0ad4e;
    outline: none;
    box-shadow: 0 0 3px rgba(240, 173, 78, 0.4);
}

/* Actie labels onder productnaam */
.knuff-actie-label,
.knuff-korting-label {
    display: block;
    font-size: 70%;
}

.knuff-qty-wrapper.loading {
    position: relative;
    opacity: 0.6;
    pointer-events: none;
}

.knuff-qty-wrapper.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid #f5c78a;
    border-top-color: #d55a20;
    border-radius: 50%;
    animation: knuff-spin 0.8s linear infinite;
}

/* Cart table column alignment */
.shop_table .product-price,
.shop_table .product-quantity,
.shop_table .product-subtotal {
    text-align: center;
}

.shop_table th.product-price,
.shop_table th.product-quantity,
.shop_table th.product-subtotal {
    text-align: center;
}

/* Cart table cell padding */
.shop_table.cart td,
.shop_table.cart th {
    padding: 4px;
}

/* Cart totals - grouped rows extra padding */
.cart_totals .shipping-voorlevering-group th,
.cart_totals .shipping-voorlevering-group td,
.cart_totals .actie-fees-group th,
.cart_totals .actie-fees-group td {
    padding-bottom: 15px;
}

/* ==========================================================================
   SVG Viewer
   ========================================================================== */

.knuff-svg-thumb svg {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
}

.knuff-svg-error {
    padding: 20px;
    background: #fee;
    border: 1px solid #c00;
    color: #c00;
    border-radius: 4px;
}

.knuff-svg-page svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* SVG Viewer Responsive */
@media (max-width: 768px) {
    .knuff-svg-wrapper {
        margin-top: 0 !important;
        padding: 10px;
    }
    .knuff-svg-container {
        margin: 0 !important;
        padding: 10px !important;
        border-radius: 4px !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .knuff-svg-page svg {
        width: 100%;
        height: auto;
    }
    .knuff-svg-thumbnails {
        gap: 5px !important;
        margin-bottom: 10px !important;
        flex-wrap: wrap !important;
        position: relative;
        z-index: 1;
    }
    .knuff-svg-thumb {
        width: 50px !important;
        height: 50px !important;
        padding: 3px !important;
    }
    .knuff-svg-thumb svg {
        max-width: 44px !important;
        max-height: 44px !important;
    }
}