@import url(https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Outfit:wght@100..900&display=swap);
.fadeIn {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fadeIn.visible {
    opacity: 1;
    transform: translateY(0);
}
.product-card-preview {
    background-color: transparent;
    position: relative;
    display: flex;
    font-size: 1em;
    width: 10em;
    min-width: 10em;
    max-width: 10em;
    flex-direction: column;
    gap: 0.5rem;
    overflow: hidden;
    cursor: pointer;
}

.product-card-preview-new-badge {
    font-size: 12px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    background-color: orange;
    position: absolute;
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    padding: 0 8px;
    clip-path: polygon(0 0, 100% 0%, 90% 100%, 0% 100%);
}

.product-card-preview-image {
    display: flex;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 1/1;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-card-preview-image img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.product-card-preview-image svg {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    display: none;
}

.product-card-view-name {
    width: 100%;
    max-width: 100%;
    display: block;
    font-weight: 600;
    color: #094fa0;
    font-size: 0.6em;
    overflow: hidden;
}

.product-card-view-name p {
    margin: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
}

.product-card-view-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-size: 0.7em;
    color: #666;
    width: 100%;
    max-width: 100%;
}

.product-card-view-info svg {
    width: 2em;
    height: 2em;
    flex-shrink: 0;
}

.product-card-view-price {
    font-size: 1em;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
}

.product-card-view-price .discount {
    color: red;
}

.product-card-view-price .value {
    color: green;
    font-weight: 500;
}

.product-card-view-price .value .currency {
    font-size: 0.8em;
    vertical-align: top;
}

.product-card-view-price .value .decimal {
    font-size: 0.6em;
    vertical-align: super;
}

.product-card-view-price .multiple {
    color: #666;
    font-size: 0.6em;
}

.product-card-view-price .past-value {
    color: #666;
    font-size: 0.6em;
}

.product-card-view-price .past-value .float {
    text-decoration: line-through;
    font-weight: bold;
}

.product-card-view-add-button-container {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: flex-end;
}

.product-card-view-add-button-container button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-color: #4a94cc;
    color: white;
    font-size: 0.8em;
    text-decoration: none;
    border-radius: 8px;
    padding: 6px 0;
    border: none;
    cursor: pointer;
}

.product-card-view-add-button-container button:hover {
    transition-duration: 0.2s;
    background-color: #094fa0;
}

.product-card-preview-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.product-card-cart-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25em;
    min-width: 180px;
    max-width: 220px;
    font-size: 1rem;
    gap: 0.25rem;
}

.product-card-cart-sidebar .image {
    position: relative;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e0e0e0;
}

.product-card-cart-sidebar .image img {
    width: 100%;
    height: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.product-card-cart-sidebar .image .badge {
    display: flex;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.product-card-cart-sidebar .image .badge svg {
    bottom: 24px;
    right: 24px;
}

.product-card-cart-sidebar .name {
    display: flex;
    font-size: 0.8em;
    font-weight: 600;
    color: #243b7d;
    text-align: center;
}

.product-card-cart-sidebar .price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
}

.product-card-cart-sidebar .price {
    font-size: 0.7em;
    color: #094fa0;
    font-weight: bold;
}

.product-card-cart-sidebar .currency {
    font-size: 0.8em;
    color: #094fa0;
    font-weight: bold;
}

.product-card-cart-sidebar .iva {
    font-size: 0.7em;
    color: #888;
}

.product-card-cart-sidebar .qty-controls {
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.product-card-cart-sidebar .qty-btn {
    background: #4a94cc;
    color: #fff;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    font-size: 0.8em;
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}

.product-card-cart-sidebar .qty-btn:hover {
    background: #094fa0;
}

.product-card-cart-sidebar .qty-input {
    width: 50px;
    text-align: center;
    font-size: 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 2px 0;
    background: #fff;
}

.product-card-cart-sidebar .qty-btn .subtract-svg,
.product-card-cart-sidebar .qty-btn .trash-svg {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.product-card-cart-sidebar .qty-btn .subtract-svg.active,
.product-card-cart-sidebar .qty-btn .trash-svg.active {
    display: block;
}

.qty-btn[disabled] svg {
    opacity: 0.4;
}

.qty-btn[data-can-remove="true"] .trash-svg {
    display: inline;
}

.qty-btn:not([data-can-remove="true"]) .subtract-svg {
    display: inline;
}

.product-card-purchase {
    display: flex;
    flex: 1;
    flex-direction: row;
    gap: 1rem;
    font-size: 1rem;
    min-height: 10rem;
    padding: 1rem;
}

.product-card-purchase .image {
    height: 100%;
    max-height: 10rem;
    aspect-ratio: 1/1;
    position: relative;
}

.product-card-purchase .image img {
    height: 100%;
    width: 100%;
    -o-object-fit: contain;
       object-fit: contain;
}

.product-card-purchase .image .badge {
    display: flex;
    position: absolute;
    bottom: 4px;
    right: 4px;
}

.product-card-purchase .image .badge svg {
    bottom: 24px;
    right: 24px;
}

.product-card-purchase .content {
    display: flex;
    flex-direction: row;
    flex: 1;
    justify-content: space-between;
}

.product-card-purchase .content .general-details,
.product-card-purchase .content .price-details {
    display: flex;
    flex-direction: column;
}

.product-card-purchase .content .price-details {
    flex-shrink: 0;
    font-size: 0.7em;
    text-align: end;
}

.product-card-purchase .content .general-details {
    gap: 1rem;
}

.product-card-purchase .content .price-details .price {
    font-size: 1.25em;
    color: green;
}

.product-card-purchase .content .general-details .name {
    color: #094fa0;
    font-weight: bold;
    font-size: 1.1em;
}

.product-card-purchase .content .general-details .columns {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    font-size: 0.8em;
}

.product-card-purchase .content .general-details .columns > div {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-card-purchase .content .general-details .columns .value {
    font-weight: bold;
}

@media (max-width: 850px) {
    .product-card-purchase {
        padding: 0.25rem;
    }

    .product-card-purchase .image {
        max-height: 5rem;
    }

    .product-card-purchase .content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .product-card-purchase .content .general-details .columns {
        gap: 0.5rem;
    }
}

.tooltip-container {
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    position: relative;
}

.tooltip-trigger {
    display: flex;
}

.tooltip-content-bottom {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    transform: translateX(-40%);
    background-color: #333;
    color: #fff;
    padding: 8px;
    border-radius: 4px;
    font-size: 10px;
    min-width: 120px;
    max-width: 200px;
    z-index: 1;
}

.show-tooltip {
    display: block;
}

/* CDN de Google Fonts */
/* Montserrat y Outfit */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* Utilizar importacion local:     font-family: Montserrat; */
    /* Utilizar importacion de CDN: */
    font-family: "Montserrat", sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    /* Utilizar importacion local:      font-family: Outfit; */
    /* Utilizar importacion de CDN: */
    font-family: "Outfit", sans-serif;
}

/* Importacion de fuentes locales (Utilizar si los CDN no funcionan */

/*
@font-face {
    font-family: Montserrat;
    src: url(../fonts/Montserrat.ttf);
}

@font-face {
    font-family: Outfit;
    src: url(../fonts/Outfit.ttf);
}
*/

/* Importacion de efectos visuales */

/* Importacion de componentes */
