/**
 * Event Teaser Frontend Styles
 */

.event-teasers-section {
    text-align: center;
    padding: 2rem 1rem;
}

.event-teasers-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    margin: 0 auto;
    max-width: 1200px;
}

.event-teaser {
    margin-bottom: 15px;
}

.event-teaser:last-child {
    margin-bottom: 0;
}

.event-teaser-content {
    /* Basic styling - can be overridden by theme */
}

/* Optional: Add some default styling that can be overridden */
.event-teaser-content img {
    max-width: 100%;
    height: auto;
}

/* Ecwid Products in teaser - Styled like webshop */
.etp-products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
}

.etp-product {
    width: 300px;
    min-height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    text-align: center;
}

/* Image container with fixed dimensions */
.etp-product-image-wrap {
    width: 300px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

/* Product image with clip-path */
.etp-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: translate(1%, 1%) scale(0.95);
    clip-path: url(#custom-clip);
}

/* Border overlay - using same SVG as webshop */
.etp-product-image-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: url("../../../themes/deschildknaap/img/product-image-border.svg") no-repeat center center;
    background-size: contain;
    pointer-events: none;
    z-index: 2;
}

.etp-product-link {
    display: block;
}

.etp-product-details {
    display: flex;
    flex-direction: column;
    margin-top: 0.5rem;
}

.etp-product-name {
    margin: 0 0 0.25rem 0;
    font-size: 1.2rem;
    font-family: 'Playfair Display SC', serif;
    font-weight: 100;
    line-height: 1.3;
    overflow-wrap: break-word;
    max-width: 300px;
}

.etp-product-name a {
    text-decoration: none;
    color: #FFDEC1;
}

.etp-product-name a:hover {
    text-decoration: underline;
}

.etp-product-price {
    margin: 0;
    font-size: 2em;
    font-family: 'Moon Dance', cursive;
    font-weight: 100;
    color: #FFDEC1;
}

/* Responsive */
@media (max-width: 768px) {
    .etp-products {
        gap: 1rem;
    }

    .etp-product {
        width: 200px;
        min-height: 280px;
    }

    .etp-product-image-wrap {
        width: 200px;
        height: 200px;
    }

    .etp-product-image-wrap::after {
        width: 200px;
        height: 200px;
    }

    .etp-product-name {
        font-size: 1rem;
        max-width: 200px;
    }

    .etp-product-price {
        font-size: 1.5em;
    }
}
