html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

.landing-layout {
    min-height: 100vh;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.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;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi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uMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.loading-progress {
    position: absolute;
    display: block;
    width: 8rem;
    height: 8rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto 0 auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

code {
    color: #c02d76;
}

.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;
}

.public-main-content { min-height: 100vh; background: linear-gradient(180deg, #f5f6fb 0, #fff 420px); padding-top: 64px; }
.catalog-logo-frame { width: min(360px, 80vw); height: 220px; max-width: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 18px; }
.catalog-logo { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.catalog-shell { padding-left: 20px; padding-right: 20px; }
.catalog-heading { position: relative; width: 100%; min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center; overflow: hidden; }
.catalog-brand { width: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; overflow: hidden; text-align: center; }
.catalog-cart-button { position: static !important; align-self: center; transform: none; }
.business-logo-settings { display: flex; align-items: center; gap: 18px; }
.business-logo-settings-preview { width: 112px; height: 112px; flex: 0 0 112px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(40,43,63,.12); border-radius: 18px; background: #f7f7fa; }
.business-logo-settings-preview img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.business-logo-preview { width: 100%; height: 280px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(40,43,63,.12); border-radius: 16px; background: #f7f7fa; }
.business-logo-preview img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }
.business-logo-camera { width: 100%; max-height: 420px; object-fit: cover; background: #000; border-radius: 8px; }
.catalog-filters { padding: 8px 18px 18px; border: 1px solid rgba(32, 36, 55, .07); border-radius: 20px; background: rgba(255,255,255,.82); box-shadow: 0 12px 35px rgba(42, 43, 67, .06); backdrop-filter: blur(10px); }
.catalog-product-card { width: 100%; min-width: 0; height: 100%; display: flex; flex-direction: column; padding: 10px; overflow: hidden; border: 1px solid rgba(38, 42, 61, .09); border-radius: 24px !important; background: #fff; box-shadow: 0 8px 24px rgba(38, 42, 61, .07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.catalog-product-card:hover { transform: translateY(-4px); border-color: rgba(89, 74, 226, .20); box-shadow: 0 18px 42px rgba(38, 42, 61, .13); }
.catalog-product-card .mud-card-content { flex: 1; }
.catalog-image-wrap { width: 100%; min-width: 0; aspect-ratio: 4 / 5; background: linear-gradient(145deg, #f5f5f7, #eceef3); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; contain: layout paint; border-radius: 18px; }
.catalog-image-button { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; overflow: hidden; cursor: zoom-in; }
.catalog-product-image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease, filter .35s ease; }
.catalog-image-button:hover .catalog-product-image { transform: scale(1.025); filter: saturate(1.04); }
.catalog-zoom-hint { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 4px; padding: 6px 10px; border-radius: 999px; color: #fff; background: rgba(20, 22, 32, .64); font-size: .72rem; font-weight: 600; opacity: 0; transform: translateY(4px); transition: opacity .2s ease, transform .2s ease; backdrop-filter: blur(5px); }
.catalog-image-button:hover .catalog-zoom-hint, .catalog-image-button:focus-visible .catalog-zoom-hint { opacity: 1; transform: translateY(0); }
.catalog-featured { position: absolute; z-index: 2; top: 12px; left: 12px; box-shadow: 0 5px 16px rgba(0,0,0,.16); }
.catalog-card-content { padding: 18px 10px 8px !important; }
.catalog-eyebrow { color: #77798a; font-weight: 700; letter-spacing: .09em !important; }
.catalog-title { min-height: 58px; line-height: 1.25 !important; letter-spacing: -.01em !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.catalog-description { height: 40px; overflow: hidden; color: #6e7080; line-height: 1.35 !important; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.catalog-price-row { gap: 9px; }
.catalog-price { color: var(--mud-palette-primary); font-weight: 700 !important; letter-spacing: -.03em !important; }
.catalog-old-price { text-decoration: line-through; color: #888; }
.catalog-stock { display: flex; align-items: center; gap: 7px; margin-top: 5px; color: #626574; font-size: .76rem; }
.catalog-stock span { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #27ae60; box-shadow: 0 0 0 3px rgba(39,174,96,.12); }
.catalog-card-actions { padding: 8px 10px 10px !important; }
.catalog-card-actions .mud-button-root { min-height: 43px; border-radius: 13px; box-shadow: 0 7px 16px rgba(89,74,226,.20); }
.catalog-preview-wrap { width: 100%; height: min(72vh, 760px); display: flex; align-items: center; justify-content: center; overflow: hidden; background: #f4f4f4; }
.catalog-preview-image { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; object-position: center; }

@media (max-width: 599.98px) {
    .catalog-shell { padding-left: 14px; padding-right: 14px; }
    .catalog-heading { min-height: 0; flex-direction: column; gap: 18px; }
    .catalog-cart-button { position: static !important; width: 100%; transform: none; }
    .business-logo-settings { align-items: flex-start; flex-direction: column; }
    .catalog-product-card { border-radius: 20px !important; }
    .catalog-image-wrap { aspect-ratio: 1 / 1.08; }
    .catalog-zoom-hint { opacity: 1; }
}

.customer-appbar { background: linear-gradient(100deg, #4438c8, #6657ef) !important; }
.customer-main-content { min-height: 100vh; padding-top: 64px; background: linear-gradient(180deg, #f3f2ff 0, #f8f9fc 420px); }
.customer-summary-card { height: 100%; min-height: 158px; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 24px; border: 1px solid rgba(40,43,63,.08); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(45,46,70,.07); }
.customer-summary-card > .mud-icon-root { margin-bottom: 5px; font-size: 2rem; }
.customer-summary-card.balance > .mud-icon-root { color: #594ae2; }
.customer-summary-card.overdue > .mud-icon-root { color: #df4553; }
.customer-summary-card.available > .mud-icon-root { color: #24a36b; }
.customer-summary-card.next > .mud-icon-root { color: #e28a2f; }
.customer-section { height: 100%; padding: 22px; border: 1px solid rgba(40,43,63,.08); border-radius: 20px; background: #fff; box-shadow: 0 10px 30px rgba(45,46,70,.06); }
.customer-order-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

@media (max-width: 599.98px) {
    .customer-portal { padding-left: 14px !important; padding-right: 14px !important; }
    .customer-welcome { align-items: flex-start !important; flex-direction: column; }
    .customer-welcome .mud-button-root { width: 100%; }
    .customer-appbar .mud-button-root { min-width: 42px; padding-left: 8px; padding-right: 8px; font-size: 0; }
    .customer-appbar .mud-button-root .mud-icon-root { margin: 0; }
    .customer-section { padding: 16px; }
}
