/*
 * eMAG Toolkit — frontend widget styles
 *
 * CSS custom properties (override per-block via inline style on .emag-bsw):
 *   --emag-bs-bg       card background     default: #ffffff
 *   --emag-bs-text     name colour         default: #423629
 *   --emag-bs-price    price colour        default: #C0825D
 *   --emag-bs-radius   corner radius       default: 14px
 *   --emag-bs-accent   hover border colour default: #C0825D
 */

.emag-bsw {
    background: var(--emag-bs-bg, #ffffff);
    border: 1px solid #EBE1D0;
    border-radius: var(--emag-bs-radius, 14px);
    overflow: hidden;
    box-sizing: border-box;
    transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s, border-color .4s;
}

.emag-bsw:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 46px -24px rgba(66, 54, 41, .38);
    border-color: var(--emag-bs-accent, #C0825D);
}

.emag-bsw a {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.emag-bsw a:hover .emag-bsw__image {
    opacity: 0.88;
}

.emag-bsw__image {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: contain;
    background: #F9F5EF;
    transition: opacity 0.2s ease;
}

.emag-bsw__name {
    margin: 0;
    padding: 10px 13px 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--emag-bs-text, #423629);
}

.emag-bsw__price {
    margin: 0;
    padding: 2px 13px 14px;
    font-size: 14px;
    font-weight: 700;
    color: var(--emag-bs-price, #C0825D);
}

.emag-bsw__stock {
    margin: 0;
    padding: 0 13px 10px;
    font-size: 11px;
    color: #9a8a78;
}

.emag-bsw--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    border: 2px dashed #EBE1D0;
    border-radius: var(--emag-bs-radius, 14px);
    color: #9a8a78;
    font-size: 0.85rem;
    padding: 16px;
    text-align: center;
    box-sizing: border-box;
}

.emag-bsw--empty p {
    margin: 0;
}
