html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.storefront-shell {
    max-width: 1320px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

.product-page-shell {
    padding-top: 20px;
}

.storefront-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.storefront-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.storefront-brand img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.storefront-brand h1 {
    margin: 0;
    font-size: 30px;
    line-height: 1.1;
}

.storefront-brand p {
    margin: 2px 0 0;
    color: var(--mud-palette-text-secondary);
}

.storefront-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.storefront-filters {
    display: grid;
    grid-template-columns: auto 1.4fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 12px;
    background: var(--mud-palette-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.storefront-filters .mud-input-control,
.storefront-filters .mud-select {
    background: transparent;
}

.location-alert {
    margin: 0 0 14px;
}

.products-grid {
    margin-top: 4px;
}

.product-card {
    border-radius: 22px;
    overflow: hidden;
    min-height: 490px;
    height: 100%;
}

.product-image-link {
    display: block;
}

.product-image-link .mud-card-media {
    width: 100%;
    object-fit: cover;
    border-top-left-radius: 22px;
    border-top-right-radius: 22px;
}

.product-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.product-title {
    margin: 0;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 44px;
}

.product-merchant {
    color: var(--mud-palette-text-secondary);
}

.product-price {
    margin: 0;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.product-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-stock {
    color: var(--mud-palette-text-secondary);
}

.product-actions {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
}

@media (max-width: 900px) {
    .storefront-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .storefront-filters {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

.product-detail-shell {
    padding-top: 26px;
    padding-bottom: 28px;
}

.product-header {
    margin-bottom: 12px;
}

.detail-loading,
.detail-error {
    padding: 18px;
}

.detail-image-wrap {
    border-radius: 20px;
    overflow: hidden;
    background: var(--mud-palette-surface);
}

.detail-main-image {
    width: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.detail-card {
    padding: 22px;
    border-radius: 18px;
    background: var(--mud-palette-surface);
    color: var(--mud-palette-text-primary);
}

.detail-price {
    color: var(--mud-palette-text-primary);
    margin: 6px 0 10px;
}

.detail-chip-row {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.detail-actions {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nicanguis-logo-link {
    display: flex;
    align-items: center;
    height: 48px;
    margin-left: 8px;
    text-decoration: none;
    flex: 0 0 auto;
}

.nicanguis-logo {
    display: block;
    height: 38px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

@media (max-width: 768px) {
    .nicanguis-logo-link {
        height: 40px;
        margin-left: 4px;
    }

    .nicanguis-logo {
        height: 32px;
        max-width: 170px;
    }
}

.nicanguis-header-search {
    flex: 1 1 520px;
    max-width: 620px;
    min-width: 240px;

    height: 40px;

    margin-left: 22px;
    margin-right: 22px;

    display: flex;
    align-items: center;

    background: #ffffff;

    border-radius: 9px;

    overflow: hidden;

    box-shadow:
        0 1px 4px rgba(0, 0, 0, 0.16);
}


.nicanguis-header-search-icon {
    margin-left: 13px;
    margin-right: 8px;

    color: #707070;
}


.nicanguis-header-search input {
    flex: 1;

    min-width: 0;
    height: 100%;

    border: 0;
    outline: 0;

    background: transparent;

    color: #242424;

    font-size: 14px;

    padding: 0 8px;
}


.nicanguis-header-search input::placeholder {
    color: #8a8a8a;
}


.nicanguis-header-search button {
    width: 46px;
    height: 100%;

    border: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    color: #087f6d;

    cursor: pointer;
}


.nicanguis-header-search button:hover {
    background:
        rgba(0, 0, 0, 0.05);
}


@@media (max-width: 900px) {

    .nicanguis-header-search {
        margin-left: 10px;
        margin-right: 10px;

        min-width: 160px;
    }

}


@@media (max-width: 650px) {

    .nicanguis-header-search {
        flex: 1;
        min-width: 120px;
        height: 36px;
        margin-left: 6px;
        margin-right: 4px;
    }


    .nicanguis-header-search input {
        font-size: 13px;
    }


    .nicanguis-header-search input::placeholder {
        font-size: 0;
    }


    .nicanguis-header-search button {
        width: 40px;
    }

}

.nicanguis-search-wrapper {
    position: relative;

    flex: 1 1 520px;
    max-width: 620px;
    min-width: 240px;

    margin-left: 22px;
    margin-right: 22px;
}

.nicanguis-search-wrapper .nicanguis-header-search {
    width: 100%;
    max-width: none;
    min-width: 0;

    margin-left: 0;
    margin-right: 0;
}


.nicanguis-search-suggestions {
    position: absolute;

    top: calc(100% + 4px);
    left: 0;
    right: 0;

    z-index: 1500;

    background: #ffffff;

    border: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;

    overflow: hidden;

    box-shadow:
        0 6px 18px rgba(0, 0, 0, 0.18);
}


.nicanguis-search-suggestion {
    width: 100%;
    min-height: 48px;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 8px 14px;

    border: 0;
    border-bottom: 1px solid #eeeeee;

    background: #ffffff;

    color: #252525;

    text-align: left;

    cursor: pointer;
}


.nicanguis-search-suggestion:last-child {
    border-bottom: 0;
}


.nicanguis-search-suggestion:hover {
    background: #f5f5f5;
}


.nicanguis-search-suggestion-icon {
    flex: 0 0 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #7a7a7a;
}


.nicanguis-search-suggestion-content {
    flex: 1;

    min-width: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.nicanguis-search-suggestion-text {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;

    font-size: 14px;
    font-weight: 500;
}


.nicanguis-search-suggestion-type {
    flex: 0 0 auto;

    color: #999999;

    font-size: 11px;
}


.nicanguis-search-loading {
    width: 46px;

    display: flex;
    align-items: center;
    justify-content: center;
}


.nicanguis-search-no-results {
    min-height: 48px;

    padding: 10px 14px;

    display: flex;
    align-items: center;

    gap: 12px;

    color: #555555;

    font-size: 14px;
}

.product-main-area {
    position: relative;

    flex: 1;
    min-width: 0;

    display: flex;
    justify-content: center;

    overflow: visible;
}


.product-main-image-container {
    position: relative;

    width: 525px;
    height: 525px;

    min-width: 525px;
    min-height: 525px;

    max-width: 525px;
    max-height: 525px;

    flex: 0 0 525px;

    overflow: hidden;

    background: #ffffff;

    border-radius: 14px;
}

.product-image-stage {
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;

    cursor: zoom-in;
}


.detail-main-image {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;
    object-position: center;

    user-select: none;
}

.youtube-player-wrap {
    width: 100%;
    height: 100%;

    min-height: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #000000;
}


.youtube-player-wrap iframe {
    display: block;

    width: 100%;
    height: 100%;

    min-height: 0;

    border: 0;
}

.product-image-zoom-panel {
    position: absolute;
    left: calc(50% + 278.5px);
    top: 0;

    width: 525px;
    height: 525px;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e0e0e0;
    border-radius: 14px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.20);

    z-index: 100;

    pointer-events: none;
}


.product-image-zoom-content {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    transform: scale(2.35);

    transition:
        transform-origin 30ms linear;

    will-change:
        transform-origin;
}

@@media (max-width: 1199px) {

    .product-image-zoom-panel {
        display: none;
    }

}


@@media (max-width: 959px) {

    .product-main-area {
        width: 100%;
    }


    .product-main-image-container {
        width: 100%;

        height: auto;

        min-width: 0;
        min-height: 0;

        max-width: 100%;
        max-height: none;

        flex: 1 1 auto;

        aspect-ratio: 1 / 1;
    }


    .product-image-stage {
        width: 100%;
        height: 100%;
    }


    .product-image-stage {
        cursor: default;
    }

}

.product-image-link {
    display: block;
    width: 100%;
    text-decoration: none;
    background: #ffffff;
}


.product-card-image-wrap {
    width: 100%;
    height: 195px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;
}


.product-card-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
}

.products-grid {
    display: grid;

    /*
     * Escritorio grande:
     * 5 productos por fila.
     */
    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 14px;

    width: 100%;

    align-items: stretch;
}


.product-card {
    width: 100%;
    height: 100%;

    display: flex;
    flex-direction: column;

    overflow: hidden;

    border-radius: 12px;

    transition:
        transform 160ms ease,
        box-shadow 160ms ease;
}


.product-card:hover {
    transform: translateY(-2px);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.10);
}


.product-image-link {
    display: block;

    width: 100%;

    text-decoration: none;

    background: #ffffff;
}


.product-card-image-wrap {
    width: 100%;
    height: 195px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    background: #ffffff;
}


.product-card-image {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
}


.product-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 12px !important;
}


/*
 * Máximo dos líneas para que un nombre largo
 * no cambie la altura de toda la tarjeta.
 */
.product-title {
    min-height: 40px;

    display: -webkit-box;

    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;

    overflow: hidden;

    line-height: 1.25;

    font-weight: 600;
}


.product-merchant {
    margin-top: 3px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.product-location {
    margin-top: 5px;

    min-height: 22px;

    overflow: hidden;
}


.product-price {
    margin-top: 8px;

    font-weight: 700;
}


.product-row {
    display: flex;

    align-items: center;

    gap: 8px;

    margin-top: 7px;
}


.product-actions {
    margin-top: auto;
    padding-top: 10px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 6px;
}


.product-actions .mud-button-root {
    min-width: 0;
}

/*
 * Laptop / escritorio mediano
 */
@@media (max-width: 1250px) {

    .products-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));
    }

}

@@media (max-width: 950px) {

    .products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}

@@media (max-width: 650px) {

    .products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 10px;
    }


    .product-card-image-wrap {
        height: 165px;
    }


    .product-content {
        padding: 10px !important;
    }

}

@@media (max-width: 390px) {

    .products-grid {
        grid-template-columns: 1fr;
    }


    .product-card-image-wrap {
        height: 190px;
    }

}

.cart-item-row {
    padding: 20px;
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}

.cart-item-media {
    width: 120px;
    height: 120px;
    flex: 0 0 120px;

    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(128,128,128,.25);

    background: #ffffff;

    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-item-image {
    width: 100%;
    height: 100%;
    display: block;

    object-fit: contain;
    object-position: center;

    background: #ffffff;
}

@@media (max-width: 768px) {
    .cart-item-row {
        align-items: flex-start;
        gap: 14px;
    }

    .cart-item-media {
        width: 96px;
        height: 96px;
        flex: 0 0 96px;
    }
}