﻿.ag-card {
    background: #fff;
    border: 1px solid #e8ebef;
    border-radius: 9px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .ag-card:hover {
        border-color: #d7dde3;
    }

.ag-card__media {
    position: relative;
    display: block;
    height: auto;
    aspect-ratio: 1 / 1;
    background: #f7f8fa;
    padding: 0;
    overflow: hidden;
}

    .ag-card__media img {
        display: block;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
        object-position: center;
    }

.ag-card__badge {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    min-height: 24px;
    padding: 5px 9px;
    background: #111518;
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    border-radius: 0 0 7px 0;
}

.ag-card__badge--discount {
    background: var(--ag-red);
}

.ag-card__badge--stock {
    background: #6b7280;
}

.ag-card__fav {
    position: absolute;
    right: 9px;
    top: 9px;
    z-index: 2;
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: #6b7280;
    box-shadow: 0 6px 16px rgba(15, 23, 42, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

    .ag-card__fav:hover {
        color: var(--ag-red);
    }

    .ag-card__fav svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linejoin: round;
    }

.ag-card__body {
    padding: 12px 12px 13px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ag-card__brand {
    color: #6b7280;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.ag-card__name {
    color: #161a1e;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.32;
    min-height: 35px;
    margin-bottom: 7px;
}

    .ag-card__name:hover {
        color: var(--ag-red);
    }

.ag-card__rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 7px;
}

    .ag-card__rating span {
        color: var(--ag-yellow);
        letter-spacing: 1px;
        font-size: 12px;
    }

    .ag-card__rating small {
        color: #6b7280;
        font-size: 11px;
    }

.ag-card__prices {
    margin-top: auto;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

    .ag-card__prices del {
        color: #9aa2a9;
        font-size: 12px;
    }

    .ag-card__prices strong {
        color: var(--ag-red);
        font-size: 18px;
        font-weight: 900;
    }

.ag-card__installment {
    color: #6b7280;
    font-size: 11px;
    margin-top: 3px;
}

.ag-card__cart {
    width: 100%;
    height: 34px;
    margin-top: 10px;
    border: 0;
    background: #151a1e;
    color: #fff;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

    .ag-card__cart:hover {
        background: var(--ag-red);
    }

    .ag-card__cart:disabled {
        opacity: .55;
        cursor: not-allowed;
    }

    .ag-card__cart svg {
        width: 15px;
        height: 15px;
        fill: currentColor;
    }
