html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.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;
}

/* ===== Shared shopping UI (used across ProductTile, CartBadge, Cart, Checkout) ===== */

/* Product/App tile card shell */
.app-store-card {
    background: rgba(255, 255, 255, 1);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.app-store-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.qr-code-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Generic pill button used for add-to-cart / checkout / continue-shopping actions */
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.store-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Cart link + badge (header) */
.cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: #a00e35;
    text-decoration: none;
}

.cart-badge {
    background: #a00e35;
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 999px;
    min-width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

/* Floating mobile cart icon: hovering pill in the top-right corner, only shown
   when the cart has items, and only on narrower (mobile/tablet) screens. The
   hovering desktop mini-cart panel takes over on wide screens instead. */
.mobile-cart-fab {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 50;
    background: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 4px 14px rgba(0,0,0,0.25);
    font-size: 1.8rem;
    justify-content: center;
}

.mobile-cart-fab .cart-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    min-width: 22px;
    height: 22px;
    font-size: 0.85rem;
    border: 2px solid white;
}

@media (min-width: 1300px) {
    .mobile-cart-fab {
        display: none;
    }
}

/* Hovering desktop mini-cart panel */
.mini-cart-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mini-cart-title {
    margin: 0;
    font-size: 1.1rem;
    color: #a00e35;
}

.mini-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mini-cart-icon-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    text-decoration: none;
    color: #a00e35;
}

.mini-cart-icon-link .cart-badge {
    position: absolute;
    top: -6px;
    right: -10px;
}

.mini-cart-items {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-height: 320px;
    overflow-y: auto;
}

.mini-cart-item {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.mini-cart-item-image {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mini-cart-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.mini-cart-item-name {
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mini-cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.mini-cart-item-qty button {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: white;
    cursor: pointer;
    font-size: 0.8rem;
    line-height: 1;
}

.mini-cart-item-subtotal {
    font-size: 0.85rem;
    font-weight: bold;
    color: #2E7D32;
    white-space: nowrap;
}

.mini-cart-summary {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    font-weight: 600;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
}

.mini-cart-total-amount {
    color: #2E7D32;
}

.mini-cart-checkout-button {
    width: 100%;
}

/* Product tile content (inside .app-store-card shell) */
.product-tile-name {
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-align: center;
}

.product-tile-description {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin: 0.75rem 0 0;
}

.product-tile-details {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    width: 100%;
}

.product-tile-price {
    font-size: 1.3rem;
    font-weight: bold;
    color: #2E7D32;
}

.product-tile-stock {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background: rgba(0,0,0,0.05);
}

.product-tile-stock.stock-green { color: #2E7D32; }
.product-tile-stock.stock-orange { color: #e07a00; }
.product-tile-stock.stock-red { color: #c62828; }

.product-tile-add-button {
    background: #a00e35;
    color: white;
    border: none;
    cursor: pointer;
    width: 100%;
}

.product-tile-add-button:hover,
.product-tile-add-button:focus,
.product-tile-add-button:visited,
.product-tile-add-button:active {
    color: white;
}

.product-tile-add-button:disabled {
    background: #bbb;
    cursor: not-allowed;
}

.product-tile-feedback {
    font-size: 0.85rem;
    color: #2E7D32;
    text-align: center;
    margin-top: 0.5rem;
}

.product-tile-feedback-error {
    color: #c62828;
}

.cart-continue-button {
    background: #eee;
    color: #333;
}

/* Add-to-cart "Added!" toast: pops in and fades away over 1s, centered in the viewport,
   with a very slight whole-page dimming overlay that fades in/out on the same timeline. */
.added-toast-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.08);
    animation: addedBackdropFade 1s ease-in-out forwards;
}

.added-toast {
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #a00e35;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
    padding: 1.5rem 2.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #a00e35;
    animation: addedToastFade 1s ease-in-out forwards;
}

@keyframes addedBackdropFade {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes addedToastFade {
    0% {
        opacity: 0;
        transform: scale(0.85);
    }
    10% {
        opacity: 1;
        transform: scale(1);
    }
    80% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

