/* ============================================================
   WTB Product Card (dummy placeholder)
   Minimal styling for the placeholder card partials.
   The real design lands later.
   ============================================================ */

/* ------------------------------------------------------------
   Grid card
   ------------------------------------------------------------ */
.wtb-product-card-grid__item {
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}

.wtb-product-card-grid__image {
    position: relative;
}

.wtb-product-card-grid__item .wtb-product-card-grid__image img {
    width: 100%;
    height: 200px;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.wtb-product-card-grid__image .wtb-product-label-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    justify-content: center;
}

.wtb-product-card-grid__content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    height: 100%;
}

.wtb-product-card-grid__desc-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wtb-product-card-grid__description {
    font-family: var(--e-global-typography-primary-font-family), sans-serif;
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.3px;
    line-height: 1.1;
    text-transform: uppercase;
    color: var(--e-global-color-39dd569);
}

.wtb-product-card-grid__item a.wtb-product-card-grid__title {
    margin-top: auto;
    color: var(--e-global-color-a34d29c);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.1;
    text-decoration: none;
    
    &:hover,
    &:focus {
        color: var(--e-global-color-a34d29c);
    }
}

.wtb-product-card-grid__price-button-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 24px;

    @media (min-width: 1024px) {
        flex-direction: column;
    }
}

.wtb-product-card-grid__item .wtb-product-card-grid__price {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;

    min-width: max-content;
    
    color: #333;

    .price-prefix {
        font-size: 16px;
        font-weight: 400;
        
        color: #333;
    }
    
    .amount {
        font-size: 22px;
        font-weight: 500;
        color: var(--e-global-color-af18597);
    }
}

.wtb-product-card-grid__price-button-wrapper .wtb-add-to-cart-btn {
    max-width: 200px;
    
    @media (min-width: 1024px) {
        max-width: none;
    }
}

/* ------------------------------------------------------------
   List card
   ------------------------------------------------------------ */
.wtb-product-card-list__item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 12px;
    border: 1px solid #e6edf3;
    border-radius: 8px;
    background: #fff;
}

.wtb-product-card-list__item img {
    max-width: 120px;
    height: auto;
    flex-shrink: 0;
    display: block;
}

.wtb-product-card-list__item .wtb-product-card__title {
    color: var(--e-global-color-primary, #024887);
    font-size: 1em;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;

    &:hover,
    &:focus {
        text-decoration: underline;
    }
}

.wtb-product-card-list__item .wtb-product-card__price {
    font-size: 0.95em;
    font-weight: 700;
    color: var(--e-global-color-primary, #024887);
    margin-left: auto;
}
