@import url("/assets/cashnetshopping/web/css/app.css");

/* Suporte */

.info-card .container-image img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

/* Categoria*/

.card-category {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 280px;
    max-width: 280px;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
}

.card-category .container-image {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e7e7e7;
    border-radius: 50%;
    max-width: 140px;
    min-width: 140px;
    max-height: 140px;
    min-height: 140px;
}

.card-category .container-image img {
    width: 150px;
    height: 150px;
    object-fit: contain;
    pointer-events: none;
    transition: all 0.4s;
    transform: scale(1.1);
    overflow: hidden;
}

.card-category:hover img {
    transform: scale(1.2);
    transition: all 0.4s;
}

.card-category .container-body {
    display: flex;
    justify-content: center;
    align-items: end;
    width: 100%;
    height: 100%;
}

/* Todas categorias */

.card-category-all {
    transition: all 0.2s ease;
    background: #fff;
}

.card-category-all:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.hover-category:hover {
    color: var(--color-primary) !important;
    padding-left: 4px;
}

.hover-subcategory:hover {
    color: var(--color-primary) !important;
    padding-left: 4px;
}

/* Produto  */

.product-card {
    min-height: 370px;
    max-width: 320px;
}

.product-card .container-favorite {
    position: absolute;
    top: 8px;
    right: 5px;
}

.product-card .discount,
.product-favorited .discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-card .btn-add-favorite {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 30px !important;
    height: 30px !important;
    padding: 0;
    border-radius: 50%;
    font-size: 14px;
    color: var(--color-white);
    background: var(--color-primary);
    cursor: pointer;
}

.product-card .container-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-card .container-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.product-card .card-header {
    height: 65px;
}

/* Marcas */

.card-brands {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
    height: 120px;
    cursor: pointer;
}

.card-brands .container-image {
    width: 100%;
    height: 100%;
}

.card-brands .container-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Busca de produtos  */

.product-card-search {
    display: block;
    padding: 12px 14px;
    background: var(--color-white);
}

.product-card-search .discount {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 10;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.product-thumb {
    width: 100%;
    max-width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

.product-thumb img {
    max-height: 100%;
    object-fit: contain;
}

.product-title {
    font-weight: 600;
    font-size: 0.95rem;
    color: #222;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.seller-name {
    color: var(--color-primary);
    font-weight: 600;
}

.product-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* Categorias de Banner */

.categories-banner .container-image {
    width: 100%;
    height: 100%;
}

.categories-banner .container-image img {
    max-width: 420px;
    min-height: 240px;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Thumbs dos produtos */

.favorites .container-image {
    height: 120px;
}

.orders .container-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.favorites .container-image img,
.cart .container-image img,
.orders .container-image img {
    width: 120px;
    height: 120px;
    object-fit: contain;
}

.orders .card-header {
    height: 65px;
}

.post .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.post .overlay-featured {
    min-width: 200px;
    max-width: 300px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.5s;
}

.post .overlay-featured .date,
.overlay .date {
    position: absolute;
    bottom: 10px;
    right: 15px;
}

.post .position-relative:hover .overlay {
    opacity: 1;
}

.post .text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    text-align: center;
    padding: 20px;
}

.post .card-img-top,
.card-img {
    object-fit: cover;
    max-height: 400px;
    min-height: 300px;
}

.post .container-card-default {
    min-width: 260px;
    height: auto;
}

.post .container-card-default img {
    min-height: 200px;
    max-height: 200px;
}

.post .container-card-default .card-body {
    display: flex;
    flex-direction: column;
    justify-content: initial;
}

.post .container-card-default .card-title {
    max-height: 70px;
    min-height: 70px;
}

.post .container-card-default .card-text {
    min-height: 70px;
    max-height: 70px;
}

.post .card-text {
    font-size: 1rem;
}

.post .container-card-default .date-default {
    position: absolute;
    top: 10px !important;
    right: 15px;
    background: var(--color-primary);
    padding: 2px 5px;
    border-radius: 5px;
    font-size: 12px;
}
