/* Auto-generated CSS Module: productbits | ISO: lb_LU */
/* --- Source: nl_NL / 1-productbits.css --- */
/* 
   =============================================================
   HIGH-CONVERSION PRODUCT CARD (SPLIT LAYOUT)
   Core Actions (White Box) + Meta Info (Transparent/Blue BG)
   =============================================================
*/

.product-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
    row-gap: 30px !important; /* Sufficient space between rows */
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

@media (max-width: 900px) { 
    .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } 
}
@media (max-width: 600px) { 
    .product-grid { grid-template-columns: minmax(0, 1fr) !important; } 
}

/* Base Card Wrapper */
.product-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-width: 0; /* Add this to prevent flex child expansion */
}

/* 
   1. CORE ACTIONS (White Box)
   Contains Ribbon (anchored here), Image, and Cart
*/
.card-core {
    position: relative; /* Anchor for Ribbon */
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 2;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card-wrapper:hover .card-core {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

/* Image Container */
.card-image-box {
    position: relative;
    width: 100%;
    padding-bottom: 100%; /* 1:1 Aspect Ratio */
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 4px 4px 0 0;
    overflow: hidden; /* Clips image and OOS overlay, but NOT ribbon */
}

.card-image-box a {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: filter 0.3s;
}

/* Fast CTA Container */
.card-cta {
    display: flex;
    gap: 6px;
    padding: 8px;
    background: #fff;
    border-radius: 0 0 4px 4px;
}

.card-cta input[type="number"] {
    width: 40px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 3px;
    padding: 6px 4px;
    font-size: 13px;
    color: #333;
    font-weight: bold;
    margin: 0;
}
.card-cta input[type="number"]:focus { border-color: #3b749d; outline: none; }

.card-cta button {
    flex-grow: 1;
    background: linear-gradient(to bottom, #2d628f, #1c456b)!important;
    color: white!important;
    border: 1px solid #163756!important;
    border-radius: 3px;
    padding: 6px!important;
    cursor: pointer;
    font-weight: normal;
    font-size: 13px;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: background 0.2s;
}
.card-cta button:hover:not(:disabled) { 
    background: linear-gradient(to bottom, #78b41d 0%, #92de1b 100%)!important;
    border-color: #6ea715!important;
    border-right: 1px solid #6ea715!important;
    border-bottom: 1px solid #6ea715!important;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

/* 
   2. META INFO (Transparent Background)
   Sits below the white box on the section background
*/
.card-meta {
    padding: 10px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.btn-moreinfo {
    display: block;
    background: linear-gradient(to bottom, #2d628f, #1c456b);
    color: #fff!important;
    text-decoration: none;
    padding: 6px 10px;
    font-size: 11px;
    border-radius: 3px;
    border: 1px solid #163756;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
    margin-bottom: 10px;
    text-align: left;
}
.btn-moreinfo:hover { 
    background: linear-gradient(to bottom, #78b41d 0%, #92de1b 100%);
    border-color: #6ea715;
    border-right: 1px solid #6ea715;
    border-bottom: 1px solid #6ea715;
    text-shadow: 1px 1px 1px rgba(0,0,0,0.3);
}

.card-title {
    font-size: 13px;
    margin: 0 0 10px 0 !important;
    padding: 0 !important;
    line-height: 1.35;
    font-weight: normal;
}
.card-title a {
    color: #fff; /* White text on blue background */
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}
.card-title a:hover { text-decoration: underline; }

/* Pricing Elements */
.card-pricing {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.price-row { display: flex; justify-content: space-between; align-items: baseline; }
.price-row .label { color: #0c324e; font-size: 13px; }
.price-row.package .label { color: rgba(255,255,255,0.8); font-size: 13px; margin-right: 6px; }
.price-row.package { justify-content: flex-end; }

/* Big price value is dark blue to contrast against the section background */
.price-row .val { color: #12304a; font-size: 24px; font-weight: bold; line-height: 1; }
.price-row.package .val { color: #fff; font-size: 15px; font-weight: normal; }


/* Discount States */
.price-original {
    text-decoration: line-through;
    color: #12304a; /* Original requested color */
    font-size: 18px; /* Original requested size */
    margin-right: 8px;
    font-weight: normal;
    display: none;
}
.product-card-wrapper.is-discounted .price-original { display: inline; }
.product-card-wrapper.is-discounted .price-row .val { 
    color: #fff; 
    background: #7dbb1d; /* Original bright green background */
    padding: 0 4px;
    border-radius: 2px;
    text-shadow: none; 
}


/* Out of Stock Overlay & States */
.oos-overlay {
    position: absolute; inset: 0; background: none;
    opacity: 0; pointer-events: none; z-index: 20; transition: opacity 0.3s;
    border-radius: 4px 4px 0 0;
}

/* The Stamp */
.oos-stamp {
    position: absolute;
    top: -5px;
    left: -20px;
    /* The sprite is 371x337. Scale it down to fit the card visually like a real stamp. */
    transform: scale(0.45) rotate(-5deg); 
    transform-origin: top left;
    pointer-events: none;
}

.product-card-wrapper.is-outofstock .oos-overlay { opacity: 1; pointer-events: none; }
.product-card-wrapper.is-outofstock .card-image-box img { filter: grayscale(1); opacity: 0.6; }
.product-card-wrapper.is-outofstock .ribbon { filter: grayscale(1); }
.product-card-wrapper.is-outofstock .card-cta button { background: #555; border-color: #444; cursor: not-allowed; color: #aaa; box-shadow: none; text-shadow: none; }
.product-card-wrapper.is-outofstock .card-cta input { background: #eee; color: #999; border-color: #ddd; }

@media (max-width:768px) {
    .price-row {
        width: 221px;
        max-width: 100%;
    }
    .price-row.package .label {
        color: #0c324e;
    }
    .price-row.package .val{
        color: black;
    }
    .card-pricing {
        align-items: end;
    }

    .product-grid {
        justify-items: center;
    }
    .product-card-wrapper {
        max-width: 221px;
    }
}

