/* =========================================================
   PRODUCT CARD
   ========================================================= */

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    overflow: hidden;
}


/* =========================================================
   IMAGE
   ========================================================= */

.product-card__image-wrapper {
    position: relative;
}

.product-card__image-link {
    display: block;
    position: relative;
}

.product-card__image-link::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(0, 0, 0, 0.03);
    pointer-events: none;
}

.product-card__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}


/* =========================================================
   ANNIVERSARY PROMOTION
   ========================================================= */

.product-card__anniversary {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;

    padding: 5px 8px;

    background: #000;
    color: #fff;

    font-size: 12px;
    font-weight: 600;
    text-align: center;
}


/* =========================================================
   LABELS
   ========================================================= */

.product-card__labels {
    position: absolute;
    left: 0px;
    bottom: 6px;
    width: 100%;
    z-index: 2;

    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 4px;
}

.product-card__stock {
    display: inline-block;

    padding: 1px 4px;

    background: #fd7474;
    color: #fff;

    border: none;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
}

.product-card__custom-labels {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;

    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-card__label {
    display: inline-block;

    padding: 3px 6px;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   BODY
   ========================================================= */

.product-card__body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;

    gap: 5px;

    height: 100%;

    padding: 5px 12px 12px;
}

.product-card__content {
    display: flex;
    flex-direction: column;
    gap: 5px;
}


/* =========================================================
   TITLE
   ========================================================= */

.product-card__title-link {
    display: block;

    color: #000;
    text-decoration: none;
}

.product-card__title {
    margin: 0;

    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}


/* =========================================================
   PROMOTION
   ========================================================= */

.product-card__promotion {
    width: fit-content;

    padding: 3px 6px;

    color: #fff;

    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
}


/* =========================================================
   PRICING
   ========================================================= */

.product-card__pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.product-card__price-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.product-card__price {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #f10c33;
}

.product-card__discount {
    display: inline-block;

    padding: 2px 4px;

    background: #e8f5e9;
    color: #198754;

    font-size: 11px;
    font-weight: 700;
}

.product-card__old-price {
    margin-left: 5px;

    color: #777;

    font-size: 13px;
}


/* =========================================================
   METRICS
   ========================================================= */

.product-card__metrics {
    display: flex;
    align-items: center;
    justify-content: space-around;

    width: 100%;
    min-height: 20px;

    padding-bottom: 5px;
}

.product-card__metric {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 1px;

    min-width: 30px;
}

.product-card__metric-value {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 3px;

    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.product-card__metric-value--rating {
    color: rgb(205, 158, 47);
}

.product-card__metric-value--rating svg {
    fill: #ffba17;
}

.product-card__metric-value--review {
    color: rgb(211, 181, 110);
}

.product-card__metric-value--sales {
    color: rgb(10, 92, 197);
}

.product-card__metric-label {
    color: inherit;

    font-size: 11px;
    font-weight: 400;
    line-height: 1;

    white-space: nowrap;
}

.product-card__metric:has(.product-card__metric-value--review) {
    color: rgb(211, 181, 110);
}

.product-card__metric:has(.product-card__metric-value--sales) {
    color: rgb(10, 92, 197);
}


/* =========================================================
   CART
   ========================================================= */

.product-card__actions {
    width: 100%;
}

.product-card__cart {
    display: block;

    width: 100%;

    border: 0;

    cursor: pointer;

    text-align: center;
}

.btn-carrito {
    display: flex;
    justify-content: center;
    border: none;
    border-radius: 20px;
    background: #f10c33;
    color: #fff;
    font-size: 14px;
    padding: 8px 2px;
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    gap: 5px;
}