/* ==========================================================
   MHDS CART — PRODUCT CARDS
   ========================================================== */


/* ==========================================================
   CARD BASE
   ========================================================== */

.mhds-cart-product-card {
    position: relative;

    display: flex;

    width: 100%;
    min-width: 0;
    min-height: 100%;

    flex-direction: column;

    overflow: hidden;

    border: 1px solid #dce5ed;
    border-radius: 20px;

    background: #ffffff;

    box-shadow:
        0 15px 38px
        rgba(16, 47, 77, 0.06);

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.mhds-cart-product-card:hover {
    border-color: rgba(14, 73, 126, 0.25);

    box-shadow:
        0 24px 52px
        rgba(16, 47, 77, 0.11);

    transform: translateY(-5px);
}


/* ==========================================================
   PRODUTO DESTACADO
   ========================================================== */

.mhds-cart-product-card--featured {
    border-color: rgba(255, 196, 0, 0.60);
}

.mhds-cart-product-card--featured::before {
    content: "";

    position: absolute;

    top: 0;
    right: 0;
    left: 0;

    height: 4px;

    background: #ffc400;
}


/* ==========================================================
   CABEÇALHO
   ========================================================== */

.mhds-cart-product-card__header {
    position: relative;

    min-height: 126px;

    padding: 24px 23px 18px;
}

.mhds-cart-product-card__type {
    display: block;

    margin-bottom: 9px;

    color: #0e497e;

    font-size: 8px;
    font-weight: 850;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mhds-cart-product-card__header h3 {
    margin: 0;

    color: #173a59;

    font-size: 22px;
    font-weight: 850;

    line-height: 1.2;
}

.mhds-cart-product-card__header p {
    margin: 9px 0 0;

    color: #68798a;

    font-size: 10px;
    line-height: 1.65;
}


/* ==========================================================
   SELO DE DESTAQUE
   ========================================================== */

.mhds-cart-product-card__featured {
    display: inline-flex;

    align-items: center;
    gap: 6px;

    margin-top: 13px;
    padding: 6px 9px;

    border-radius: 999px;

    background: rgba(255, 196, 0, 0.17);

    color: #715600;

    font-size: 7px;
    font-weight: 900;

    line-height: 1;

    text-transform: uppercase;
}

.mhds-cart-product-card__featured i {
    font-size: 7px;
}


/* ==========================================================
   PREÇO
   ========================================================== */

.mhds-cart-product-card__price {
    min-height: 92px;

    padding: 20px 23px;

    border-top: 1px solid #e8eef3;
    border-bottom: 1px solid #e8eef3;

    background: #f8fafc;
}

.mhds-cart-product-card__price strong {
    display: block;

    color: #0e497e;

    font-size: clamp(24px, 2vw, 30px);
    font-weight: 900;

    line-height: 1.15;

    letter-spacing: -0.02em;

    word-break: normal;
}

.mhds-cart-product-card__price small {
    display: block;

    margin-top: 5px;

    color: #82909d;

    font-size: 8px;
    line-height: 1.5;
}


/* ==========================================================
   RECURSOS
   ========================================================== */

.mhds-cart-product-card__features {
    flex: 1;

    padding: 21px 23px;
}

.mhds-cart-product-card__features ul {
    display: grid;

    gap: 10px;

    margin: 0;
    padding: 0;

    list-style: none;
}

.mhds-cart-product-card__features li {
    display: grid;

    grid-template-columns:
        16px
        minmax(0, 1fr);

    align-items: start;
    gap: 8px;

    margin: 0;
    padding: 0;

    color: #68798a;

    font-size: 9px;
    line-height: 1.55;

    word-break: normal;
    overflow-wrap: break-word;
}

.mhds-cart-product-card__features li > i {
    display: inline-flex;

    width: 16px;
    height: 16px;

    align-items: center;
    justify-content: center;

    margin-top: 1px;

    color: #0d7652;

    font-size: 8px;
}

.mhds-cart-product-card__features li > span {
    min-width: 0;
}


/* ==========================================================
   DESCRIÇÃO HTML DO PRODUTO
   ========================================================== */

.mhds-cart-product-card__description {
    display: block !important;
}

.mhds-cart-product-card__description > div {
    width: 100%;

    color: #68798a;

    font-size: 9px;
    line-height: 1.6;
}

.mhds-cart-product-card__description p {
    margin: 0 0 8px;
}

.mhds-cart-product-card__description p:last-child {
    margin-bottom: 0;
}

.mhds-cart-product-card__description ul {
    display: grid;

    gap: 8px;

    margin: 8px 0 0;
    padding: 0;

    list-style: none;
}

.mhds-cart-product-card__description li {
    position: relative;

    display: block !important;

    padding-left: 16px !important;

    color: #68798a;

    font-size: 9px;
    line-height: 1.6;
}

.mhds-cart-product-card__description li::before {
    content: "\f00c";

    position: absolute;

    top: 0.15em;
    left: 0;

    color: #0d7652;

    font-family: "Font Awesome 5 Free";
    font-size: 8px;
    font-weight: 900;
}


/* ==========================================================
   AÇÃO
   ========================================================== */

.mhds-cart-product-card__action {
    margin-top: auto;

    padding: 0 23px 23px;
}

.mhds-cart-product-card__button {
    display: inline-flex;

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

    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 0 15px;

    border: 0;
    border-radius: 12px;

    background: #0e497e;

    color: #ffffff;

    font-size: 10px;
    font-weight: 850;

    line-height: 1.3;

    text-align: center;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mhds-cart-product-card__button:hover,
.mhds-cart-product-card__button:focus {
    background: #082f53;

    color: #ffffff;

    text-decoration: none;

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(14, 73, 126, 0.18);
}


/* ==========================================================
   BOTÃO DESABILITADO
   ========================================================== */

.mhds-cart-product-card__button.is-disabled {
    cursor: not-allowed;

    background: #dbe3e9;

    color: #7c8a96;

    transform: none;

    box-shadow: none;
}


/* ==========================================================
   BOTÃO DO PRODUTO DESTACADO
   ========================================================== */

.mhds-cart-product-card--featured
.mhds-cart-product-card__button {
    background: #ffc400;

    color: #102943;
}

.mhds-cart-product-card--featured
.mhds-cart-product-card__button:hover,
.mhds-cart-product-card--featured
.mhds-cart-product-card__button:focus {
    background: #ffd746;

    color: #102943;
}


/* ==========================================================
   ALINHAMENTO INTERNO DOS CARDS
   ========================================================== */

.mhds-cart-products-grid__items
.mhds-cart-product-card {
    height: 100%;
}

.mhds-cart-products-grid__items
.mhds-cart-product-card__features {
    flex-grow: 1;
}

.mhds-cart-products-grid__items
.mhds-cart-product-card__action {
    margin-top: auto;
}


/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 900px) {

    .mhds-cart-product-card__header {
        min-height: 115px;
    }

}


/* ==========================================================
   CELULAR
   ========================================================== */

@media (max-width: 700px) {

    .mhds-cart-product-card__header {
        min-height: 0;
    }

    .mhds-cart-product-card__price {
        min-height: 0;
    }

    .mhds-cart-product-card__header,
    .mhds-cart-product-card__price,
    .mhds-cart-product-card__features {
        padding-right: 20px;
        padding-left: 20px;
    }

    .mhds-cart-product-card__action {
        padding-right: 20px;
        padding-left: 20px;
        padding-bottom: 20px;
    }

}


/* ==========================================================
   ACESSIBILIDADE
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .mhds-cart-product-card,
    .mhds-cart-product-card__button {
        transition: none;
    }

}