/*
Theme Name: Astra Child
Theme URI: https://example.com/
Description: Astra child theme for the print farm product cards.
Author: Jouw Naam
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* ========================================
   Custom WooCommerce product cards
   ======================================== */

.woocommerce ul.products li.product.mat-product-card {
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    background: transparent !important;
    list-style: none !important;
    box-shadow: none !important;
}

.mat-product-card__inner {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.28s cubic-bezier(.22,.68,0,1.2),
                box-shadow 0.28s ease;
}

.mat-product-card__inner:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.09);
}

/* === Header: title left, badge right === */
.mat-product-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 28px 18px;
}

.mat-product-card__name {
    font-family: 'Syne', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #111;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.01em;
}

.mat-product-card__name a {
    color: inherit;
    text-decoration: none;
}

/* .mat-product-card__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 100px;
    font-family: 'DM Sans', sans-serif;
    flex-shrink: 0;
} */

.mat-product-card__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;   /* beide regels links uitgelijnd, dots onder elkaar */
    gap: 4px;
    padding: 10px 18px;
    border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
    flex-shrink: 0;
}

.mat-product-card__badge-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mat-product-card__badge-size {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0.8;
}

.mat-product-card__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* === Full-width image === */
.mat-product-card__image {
    display: block;
    margin: 0 28px;
    background: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
}

.mat-product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* === Content row: tagline left, tags right === */
.mat-product-card__content {
    display: flex;
    flex-direction: row;
    gap: 24px;
    padding: 22px 28px 26px;
    flex: 1;
    align-items: flex-start;
}

.mat-product-card__desc {
    flex: 1;
    font-size: 18px;
    color: #777;
    font-weight: 300;
    line-height: 1.55;
    margin: 0;
    font-family: 'DM Sans', sans-serif;
}

.mat-product-card__tags {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 50%;
    justify-content: flex-end;
}

.mat-product-card__tag {
    font-size: 16px;
    color: #555;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'DM Sans', sans-serif;
    white-space: nowrap;
}

/* === Full-width CTA === */
.mat-product-card__cta {
    display: block;
    width: 100%;
    padding: 20px 24px;
    color: #fff !important;
    text-align: center;
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: filter 0.2s ease;
    margin-top: auto;
}

.mat-product-card__cta:hover {
    filter: brightness(1.08);
}

/* === Hide WooCommerce defaults === */
.mat-product-card .woocommerce-loop-product__title,
.mat-product-card .ast-shop-product-out-of-stock,
.mat-product-card .price,
.mat-product-card .button.add_to_cart_button,
.mat-product-card .added_to_cart,
.mat-product-card .astra-shop-summary-wrap,
.mat-product-card .astra-shop-thumbnail-wrap {
    display: none !important;
}

/* === Responsive === */
@media (max-width: 600px) {
    .mat-product-card__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 20px 20px 14px;
    }
    .mat-product-card__image {
        margin: 0 20px;
    }
    .mat-product-card__content {
        flex-direction: column;
        gap: 16px;
        padding: 18px 20px 22px;
    }
    .mat-product-card__tags {
        max-width: 100%;
        justify-content: flex-start;
    }
}


/* === Coming soon corner banner === */
.mat-product-card__image {
    position: relative;   /* anchor for the overlay */
}

.mat-product-card__soon {
    position: absolute;
    top: 0;
    left: 0;
    width: 130px;
    height: 130px;
    overflow: hidden;
    pointer-events: none;  /* clicks pass through to the image link */
    z-index: 2;
}

.mat-product-card__soon-text {
    position: absolute;
    display: block;
    width: 200px;
    padding: 7px 0;
    background: #e2231a;
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);

    /* rotate -45deg and position across the top-left corner */
    transform: rotate(-45deg);
    top: 30px;
    left: -52px;
}



/* ========================================
   Single product page — material styling
   ======================================== */

/* Titel in Syne, net als de kaart */
.woocommerce-js div.product .product_title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.2;
    color: #111;
    margin: 0 0 16px;
    padding: 0;
    font-size: 40px;
}

/* Add-to-cart / Configure button in de materiaalkleur */
.single-product .single_add_to_cart_button.button,
.single-product #kubify-configure-button.button {
    background: var(--mat-accent, #1a6fc4) !important;
    border-color: var(--mat-accent, #1a6fc4) !important;
    color: #fff !important;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
}

.single-product .single_add_to_cart_button.button:hover,
.single-product #kubify-configure-button.button:hover {
    filter: brightness(1.08);
}

/* Badge boven de titel */
.mat-single__badge {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 10px 18px;
    border-radius: 16px;
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 16px;
}

.mat-single__badge-line {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mat-single__badge-size {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    opacity: 0.8;
}

.mat-single__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Property tags onder de korte beschrijving */
.mat-single__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 4px 0 20px;
}

.mat-single__tag {
    font-size: 16px;
    color: #555;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 6px 12px;
    font-family: 'DM Sans', sans-serif;
}