/* ===================================
   Shoptet Product Widget v1.0
=================================== */

/* ---------- Base ---------- */

.am-widget {
    position: relative;
    margin: 32px 0;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    background: #fff;
    transition: .2s ease;
}

.am-widget:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,.08);
}

/* ---------- Horizontal ---------- */

.am-horizontal {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
}

.am-horizontal .am-image {
    width: 160px;
    height: 160px;
}

.am-horizontal .am-content {
    flex: 1;
}

/* ---------- Compact ---------- */

.am-compact {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 280px;

    padding: 20px;

    text-align: center;
}

.am-compact .am-image {
    width: 170px;
    height: 170px;

    object-fit: contain;

    margin-bottom: 15px;
}

.am-compact .am-content {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.am-compact .am-title {
    font-size: 18px;
    margin-bottom: 10px;
}

.am-compact .am-price {
    font-size: 28px;
    margin: 12px 0;
}

.am-compact .am-stock {
    margin-bottom: 18px;
}

.am-compact .am-button {
    width: 100%;
}

/* ---------- Shared ---------- */

.am-image {
    display: block;
    object-fit: contain;
}

.am-title {
    margin: 0;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 600;
}

.am-title a {
    color: inherit;
    text-decoration: none;
}

.am-title a:hover {
    text-decoration: underline;
}

.am-price {
    font-size: 32px;
    font-weight: 700;
    color: #e9242e;
}

.am-stock {
    color: #2e7d32;
    font-weight: 600;
}

.am-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;

    padding: 12px 20px;

    border-radius: 8px;

    background: #AACF24;
    color: #fff;

    text-decoration: none;
    font-weight: 600;

    transition: .2s ease;
}

.am-button:hover {
    background: #93b321;
}

.am-badge {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    align-self: flex-start;

    margin-bottom: 12px;

    padding: 6px 12px;

    border-radius: 999px;

    background: #AACF24;
    color: #fff;

    font-size: 12px;
    font-weight: 700;

}

.am-error {
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    color: #d32f2f;
}

/* ---------- Grid ---------- */

.am-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin: 32px 0;
}

/* ---------- Mobile ---------- */

@media (max-width: 768px) {

    .am-horizontal {
        flex-direction: column;
        text-align: center;
    }

    .am-horizontal .am-image {
        width: 140px;
        height: 140px;
    }

    .am-compact {
        width: 100%;
    }

}