body {
    overflow-x: clip;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    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;
}

/* ---- Home ---- */
body:has(.home-hero) {
    overflow-x: clip;
}

.home-hero,
.home-band {
    width: 100vw;
    margin-inline: calc(50% - 50vw);
}

.home-hero {
    position: relative;
    margin-top: -1.5rem;
    margin-bottom: 2rem;
    height: 320px;
    background: var(--cf-charcoal);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.home-hero > img {
    z-index: 0;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 32%;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(20, 14, 10, 0.3);
}

.home-hero-body {
    position: relative;
    z-index: 2;
    padding: 0 1rem 1rem;
}

.home-hero h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.home-hero-line {
    font-size: 1.125rem;
    margin-bottom: 1.25rem;
}

@media (min-width: 768px) {
    .home-hero {
        height: min(60vh, 460px);
    }
}

.home-section {
    margin-bottom: 2.5rem;
}

.home-title {
    color: var(--cf-red);
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.category-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 0.5rem;
}

.category-item {
    flex: 0 0 120px;
    scroll-snap-align: start;
}

.category-tile {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--cf-ink);
    font-weight: 700;
}

.category-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    border: 2px solid transparent;
    margin-bottom: 0.5rem;
}

.category-tile:hover img,
.category-tile:focus-visible img {
    border-color: var(--cf-red);
}

@media (min-width: 768px) {
    .category-carousel {
        flex-wrap: wrap;
        overflow: visible;
    }

    .category-item {
        flex-basis: 150px;
    }
}

.home-band {
    position: relative;
    overflow: hidden;
    background: var(--cf-red);
    color: #fff;
    padding: 2rem 0 2.5rem;
    margin-bottom: 2.5rem;
}

.home-band .home-title {
    color: #fff;
}

.home-band-inner {
    position: relative;
    z-index: 1;
}

.home-band-head {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.home-band-head .home-title {
    margin-bottom: 0.5rem;
}

.home-band-chef {
    height: 130px;
    width: auto;
    margin-top: -0.5rem;
}

.home-band-veg {
    mix-blend-mode: multiply;
    display: none;
    height: 110px;
    width: auto;
    margin-left: auto;
}

@media (min-width: 768px) {
    .home-band-chef {
        height: 200px;
    }

    .home-band-head .home-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }
}

@media (min-width: 992px) {
    .home-band-veg {
        display: block;
    }
}

/* ---- Menu ---- */
.category-chips {
    position: sticky;
    top: 58px;
    z-index: 1020;
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    margin-bottom: 0.75rem;
    background: var(--cf-page);
    scrollbar-width: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 50rem;
    border: 1px solid var(--cf-line);
    background: #fff;
    color: var(--cf-ink);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.category-chip:hover {
    border-color: var(--cf-red);
    color: var(--cf-red-dark);
}

.category-chip[aria-current='page'] {
    background: var(--cf-red);
    border-color: var(--cf-red);
    color: #fff;
}

.menu-search .form-control,
.menu-search .btn {
    min-height: 44px;
}

.product-card {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    /* clip, not hidden: a scroll container ignores scroll-margin-top. hidden stays as the fallback. */
    overflow: hidden;
    overflow: clip;
    /* #p{id} after add to cart: land below the sticky header (58px) and category chips (~118px total). */
    scroll-margin-top: 130px;
}

.product-photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.product-info {
    padding: 0.75rem 0.75rem 0;
    min-width: 0;
    align-self: start;
}

.product-action {
    padding: 0.75rem;
    align-self: end;
}

.product-name {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.product-description {
    color: var(--cf-muted);
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

/* Phones and tablets: list layout, photo beside the text; the form spans the full card width. */
@media (max-width: 991.98px) {
    .product-card-list {
        grid-template-columns: calc(88px + 0.75rem) 1fr;
        grid-template-rows: auto auto;
        align-items: start;
    }

    .product-card-list .product-photo {
        width: 88px;
        height: 88px;
        aspect-ratio: auto;
        margin: 0.75rem 0 0 0.75rem;
        justify-self: start;
        border-radius: 1rem;
    }

    .product-card-list .product-info {
        padding-left: 0.75rem;
    }

    .product-card-list .product-action {
        grid-column: 1 / -1;
    }
}

.product-card:target {
    outline: 2px solid var(--cf-red);
}

.variant-select {
    width: 100%;
    min-height: 44px;
    white-space: normal;
    text-overflow: clip;
}

/* Phones: let the select run edge to edge in the card so long "name – price" options are not cut off at 360px. */
@media (max-width: 575.98px) {
    .product-card .variant-select {
        width: calc(100% + 1.5rem);
        margin-inline: -0.75rem;
        padding-left: 0.5rem;
        padding-right: 1.5rem;
        background-position: right 0.375rem center;
        background-size: 14px 10px;
        border-radius: 0;
    }
}

.product-notes summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: var(--cf-red-dark);
    font-weight: 500;
    cursor: pointer;
}

.product-notes summary::before {
    content: '+';
    margin-right: 0.5rem;
    font-weight: 700;
}

.product-notes[open] summary::before {
    content: '\2212';
}

.category-chip[aria-current='page']:focus-visible {
    outline-color: var(--cf-ink);
}

.product-action .form-control,
.product-action .btn {
    min-height: 44px;
}

.quantity-input {
    flex: 0 0 5rem;
    max-width: 5rem;
}

.product-error {
    color: var(--bs-danger-text-emphasis, #842029);
    background: var(--bs-danger-bg-subtle, #f8d7da);
    border-radius: 0.5rem;
    padding: 0.375rem 0.625rem;
}

.stars {
    color: var(--cf-orange);
    font-size: 1.25rem;
}

/* ---- Customer shell ---- */
.announcement-banner {
    background: var(--cf-orange);
    color: var(--cf-ink);
    padding: 0.5rem 0;
    text-align: center;
    font-weight: 500;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: var(--cf-red);
    color: #fff;
    box-shadow: 0 2px 8px rgba(35, 31, 28, 0.2);
}

.site-header .navbar {
    min-height: 56px;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    gap: 0.5rem;
}

/* Round like the favicon: a square, fully rounded and clipped, whatever the shape of the uploaded image. */
.site-logo-badge {
    display: inline-flex;
    flex: 0 0 auto;
    width: 40px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
}

.site-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* In the header the logo is bigger than the bar and hangs below it, like the old site. The negative bottom
   margin keeps the bar's height: only the top part of the badge counts for layout, the rest overflows. */
.site-header .site-logo-badge {
    position: relative;
    z-index: 1;
    width: 64px;
    margin-top: 2px;
    margin-bottom: -22px;
    box-shadow: 0 4px 12px rgba(35, 31, 28, 0.35);
}

@media (min-width: 992px) {
    .site-header .site-logo-badge {
        width: 104px;
        margin-bottom: -52px;
    }
}

.site-header .navbar-brand {
    color: #fff;
    font-weight: 700;
    margin-right: 0;
}

.site-name {
    max-width: 9rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.open-pill {
    align-items: center;
    border-radius: 50rem;
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.15rem 0.6rem;
    white-space: nowrap;
}

.open-pill-open {
    background: #fff;
    color: var(--cf-green);
}

.open-pill-closed {
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
}

.cart-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    color: #fff;
    font-size: 1.5rem;
    text-decoration: none;
}

.cart-badge:hover {
    color: #fff;
}

.cart-badge-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 50rem;
    background: var(--cf-orange);
    color: var(--cf-ink);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.25rem;
    text-align: center;
}

.site-header .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
    border: 0;
    color: #fff;
    font-size: 1.75rem;
    line-height: 1;
}

/* The global focus ring is red-dark; on the red header, charcoal drawer and footer, and the hero photo it needs a white one. */
.site-header :focus-visible:not([tabindex="-1"]),
#main-nav :focus-visible:not([tabindex="-1"]),
.site-footer :focus-visible:not([tabindex="-1"]),
.home-hero :focus-visible:not([tabindex="-1"]) {
    outline-color: #fff;
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

.site-header .navbar-toggler:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#main-nav {
    background: var(--cf-charcoal);
    color: #fff;
}

#main-nav .nav-link,
#main-nav .btn-link {
    color: #fff;
    text-decoration: none;
}

#main-nav .nav-link {
    padding: 0.75rem 0;
}

#main-nav .nav-link.active {
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--cf-orange);
    text-decoration-thickness: 3px;
    text-underline-offset: 0.4rem;
}

#main-nav .logout-link {
    padding: 0.75rem 0;
    text-align: left;
    border: 0;
}

@media (min-width: 992px) {
    #main-nav {
        background: transparent;
    }

    #main-nav .offcanvas-body {
        padding: 0;
    }

    #main-nav .nav-link,
    #main-nav .logout-link {
        padding: 0.5rem 0.75rem;
    }
}

/* ---- Sticky cart bar (phones) ---- */
.sticky-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.5rem 1rem calc(0.5rem + env(safe-area-inset-bottom));
    background: var(--cf-orange);
    color: var(--cf-ink);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 -2px 10px rgba(35, 31, 28, 0.2);
}

.sticky-cart-bar:hover {
    color: var(--cf-ink);
    background: var(--cf-orange-dark);
}

.sticky-cart-bar-info {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.sticky-cart-bar-cta {
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    body:has(.sticky-cart-bar:not([hidden])) {
        padding-bottom: 4.5rem;
    }
}

/* ---- Cart drawer (cart.js) ---- */
.cart-drawer {
    --bs-offcanvas-width: 420px;
}

.cart-drawer .offcanvas-header {
    background: var(--cf-red);
    color: #fff;
}

.cart-drawer .offcanvas-title {
    font-size: 1.25rem;
    font-weight: 700;
}

.cart-drawer .offcanvas-body {
    display: flex;
    flex-direction: column;
    padding: 0;
}

.cart-panel {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 100%;
}

.cart-panel-empty {
    margin: auto;
    padding: 3rem 1rem;
    text-align: center;
    color: var(--cf-muted);
}

.cart-panel-empty .bi {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 3rem;
    color: var(--cf-line);
}

.cart-panel-message {
    margin: 0.75rem 1rem 0;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: #f8d7da;
    color: #842029;
    font-size: 0.875rem;
}

.cart-panel-lines {
    flex: 1 1 auto;
    margin: 0;
    padding: 0.5rem 1rem;
}

.cart-panel-line {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 0.375rem 0.75rem;
    align-items: start;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cf-line);
}

.cart-panel-line:last-child {
    border-bottom: 0;
}

.cart-panel-line-unavailable {
    opacity: 0.7;
}

.cart-panel-photo {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 0.75rem;
}

.cart-panel-info {
    min-width: 0;
}

.cart-panel-name {
    font-weight: 700;
    line-height: 1.25;
}

.cart-panel-comment,
.cart-panel-unit {
    color: var(--cf-muted);
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.cart-panel-controls {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cart-panel-controls form {
    margin: 0;
}

.btn-qty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--cf-line);
    border-radius: 50%;
    background: #fff;
    color: var(--cf-ink);
    font-size: 1.125rem;
}

.btn-qty:hover {
    border-color: var(--cf-red);
    color: var(--cf-red);
}

.cart-panel-qty {
    min-width: 2rem;
    font-weight: 700;
    text-align: center;
}

.cart-panel-remove-btn {
    min-width: 44px;
    min-height: 44px;
    color: var(--cf-muted);
}

.cart-panel-remove-btn:hover {
    color: var(--cf-red);
}

.cart-panel-total {
    font-weight: 700;
    white-space: nowrap;
}

.cart-panel-footer {
    position: sticky;
    bottom: 0;
    padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--cf-line);
    background: #fff;
    box-shadow: 0 -4px 16px rgba(35, 31, 28, 0.08);
}

.cart-panel-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
}

.cart-panel[aria-busy="true"],
.add-to-cart-form.is-busy {
    cursor: progress;
}

.cart-panel[aria-busy="true"] .cart-panel-lines {
    opacity: 0.6;
}

.add-to-cart-form.is-busy button[type="submit"] {
    opacity: 0.75;
}

/* Toast after an add: above the phone cart bar, top right on wider screens. */
.cart-toasts {
    position: fixed;
    left: 50%;
    bottom: calc(5rem + env(safe-area-inset-bottom));
    z-index: 1090;
    width: min(420px, calc(100vw - 2rem));
    transform: translateX(-50%);
}

@media (min-width: 992px) {
    .cart-toasts {
        left: auto;
        right: 1.5rem;
        bottom: auto;
        top: 5.5rem;
        transform: none;
    }
}

.cart-toast {
    width: 100%;
    background: var(--cf-charcoal);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.cart-toast .bi-check-circle-fill {
    color: var(--cf-orange);
}

.cart-badge.cart-bump {
    animation: cart-bump 0.45s ease;
}

@keyframes cart-bump {
    0%, 100% { transform: scale(1); }
    40% { transform: scale(1.25); }
}

@media (prefers-reduced-motion: reduce) {
    .cart-badge.cart-bump {
        animation: none;
    }
}

/* ---- Page banner ---- */
.page-banner {
    position: relative;
    display: flex;
    align-items: center;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -1.5rem;
    margin-bottom: 1.5rem;
    min-height: calc(140px + var(--wave-height));
    background:
        linear-gradient(rgba(35, 31, 28, 0.55), rgba(35, 31, 28, 0.55)),
        var(--banner) center / cover no-repeat;
    color: #fff;
}

.page-banner-title {
    margin: 0;
    font-size: 2.25rem;
    color: #fff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

@media (min-width: 992px) {
    .page-banner {
        min-height: calc(220px + var(--wave-height));
    }

    .page-banner-title {
        font-size: 3.5rem;
    }
}

/* ---- Footer ---- */
.site-footer {
    background: var(--cf-charcoal);
    color: #e9e4de;
    padding: 2.5rem 0 1.5rem;
    margin-top: 2rem;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--cf-orange);
    text-decoration: underline;
}

.site-footer li {
    margin-bottom: 0.25rem;
}

.footer-tagline {
    font-size: 1.5rem;
    color: var(--cf-orange);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.875rem;
    color: #bdb6ae;
}

/* Blazor focuses the page h1 after navigation; it is not interactive, so no ring. */
h1[tabindex="-1"]:focus {
    outline: none;
}

.product-view-link {
    min-height: 44px;
}

/* ---- Cart ---- */
.cart-page,
.checkout-page,
.order-page {
    max-width: 720px;
    margin-inline: auto;
}

.checkout-page {
    max-width: 640px;
}

.cart-line-body {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.cart-line-photo {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 0.75rem;
    flex: none;
}

.cart-line-info {
    flex: 1 1 10rem;
    min-width: 0;
}

.cart-line-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 100%;
    justify-content: space-between;
}

.cart-line-actions .btn,
.cart-line-actions .form-control {
    min-height: 44px;
}

.cart-line-unavailable {
    opacity: 0.7;
}

.continue-link {
    padding: 0.5rem;
    min-height: 44px;
}

@media (max-width: 767.98px) {
    .cart-summary {
        position: sticky;
        bottom: 0.5rem;
        z-index: 5;
        box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.12);
    }

    .cart-page {
        padding-bottom: 0.5rem;
    }
}

/* ---- Checkout ---- */
/* Pickup needs only a name and a phone: the email and the address follow the Livrare/Ridicare radio, no script needed.
   The hidden fields are not required, and the order rules ignore the address for a pickup. */
.checkout-form:has(#f-pickup:checked) .delivery-only,
.checkout-form:not(:has(#f-pickup:checked)) .pickup-only {
    display: none;
}

.checkout-form legend {
    float: none;
    width: auto;
}

.checkout-form .form-control,
.checkout-form .form-select {
    min-height: 44px;
}

.segmented {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}

.segmented .btn {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-align: center;
}

.checkout-form .form-check {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 0;
}

.checkout-form .form-check .form-check-input {
    float: none;
    margin: 0;
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
}

.checkout-submit {
    margin-bottom: 1rem;
}

@media (max-width: 767.98px) {
    .checkout-submit {
        position: sticky;
        bottom: 0;
        z-index: 5;
        padding: 0.75rem 0;
        background: linear-gradient(to top, var(--cf-page) 70%, transparent);
    }
}

/* ---- Order status ---- */
.order-stepper {
    display: flex;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.order-stepper li {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.35rem;
    color: var(--cf-muted);
}

.order-stepper li:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 15px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: var(--cf-line);
}

.order-stepper li.is-done::before,
.order-stepper li.is-current::before {
    background: var(--cf-red);
}

.order-step-dot {
    position: relative;
    z-index: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    background: #fff;
    border: 3px solid var(--cf-line);
}

.order-stepper li.is-done .order-step-dot {
    background: var(--cf-red);
    border-color: var(--cf-red);
    color: #fff;
}

.order-stepper li.is-current .order-step-dot {
    background: var(--cf-orange);
    border-color: var(--cf-orange);
    color: var(--cf-ink);
}

.order-stepper li.is-current {
    color: var(--cf-ink);
    font-weight: 700;
}

.order-step-label {
    font-size: 0.8125rem;
    overflow-wrap: anywhere;
}

.alert-cf-stopped {
    background: #fbe9ec;
    border: 1px solid var(--cf-red-dark);
    color: var(--cf-red-dark);
    font-weight: 500;
}

.status-pill {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50rem;
    font-weight: 700;
    font-size: 1rem;
}

.status-placed {
    background: var(--cf-orange);
    color: var(--cf-ink);
}

.status-accepted {
    background: var(--cf-teal);
    color: #fff;
}

.status-ready {
    background: var(--cf-red);
    color: #fff;
}

.status-delivered {
    background: var(--cf-green);
    color: #fff;
}

.status-stopped {
    background: var(--cf-grey);
    color: #fff;
}

/* ---- Rating stars ---- */
.star-rating {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    gap: 0.25rem;
}

.star-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.star-label {
    min-width: 48px;
    min-height: 48px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    line-height: 1;
    color: var(--cf-muted);
    cursor: pointer;
}

.star-input:checked ~ .star-label,
.star-label:hover,
.star-label:hover ~ .star-label {
    color: var(--cf-orange);
}

.star-input:focus-visible + .star-label {
    outline: 3px solid var(--cf-ink);
    outline-offset: 2px;
    border-radius: 0.5rem;
}

/* ---- Account ---- */
.account-page {
    max-width: 720px;
    margin-inline: auto;
}

.account-nav {
    flex-wrap: wrap;
    gap: 0.5rem;
}

.account-nav .nav-link {
    flex: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--cf-line);
    color: var(--cf-ink);
    white-space: nowrap;
}

.account-nav .nav-link.active {
    background: var(--cf-red);
    border-color: var(--cf-red);
    color: #fff;
}

.account-form .form-control,
.account-form .form-select {
    min-height: 44px;
}

.account-form .btn,
.address-card .btn,
.order-card .btn {
    min-height: 44px;
}

.address-card {
    min-width: 0;
}

.address-card > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.address-list {
    display: grid;
    gap: 0.75rem;
}

.order-card {
    gap: 0.5rem;
}

/* ---- Auth ---- */
body:has(.auth-page) {
    background: var(--cf-cream);
}

.auth-page {
    display: flex;
    justify-content: center;
    padding-block: 0.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem 1.25rem;
}

.auth-title {
    text-align: center;
    color: var(--cf-red);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.auth-card .form-control {
    min-height: 58px;
}

.auth-card .btn-lg {
    min-height: 48px;
    font-size: 1.05rem;
}

.auth-card .remember-me label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
}

.auth-card .remember-me .form-check-input {
    float: none;
    margin: 0;
    width: 1.25rem;
    height: 1.25rem;
}

.auth-links {
    margin-top: 1rem;
    text-align: center;
}

.auth-links p {
    margin-bottom: 0;
}

.auth-links a {
    display: inline-block;
    padding: 0.6rem 0.25rem;
    min-height: 44px;
}

.auth-or {
    margin: 0.5rem 0;
}

.btn-google,
.btn-facebook {
    min-height: 48px;
    font-weight: 500;
}

.btn-google {
    --bs-btn-color: #1f1f1f;
    --bs-btn-bg: #fff;
    --bs-btn-border-color: #747775;
    --bs-btn-hover-color: #1f1f1f;
    --bs-btn-hover-bg: #f6f6f6;
    --bs-btn-hover-border-color: #747775;
    --bs-btn-active-color: #1f1f1f;
    --bs-btn-active-bg: #ececec;
    --bs-btn-active-border-color: #747775;
}

.btn-facebook {
    --bs-btn-color: #fff;
    --bs-btn-bg: #1877f2;
    --bs-btn-border-color: #1877f2;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #1465cf;
    --bs-btn-hover-border-color: #1465cf;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1465cf;
    --bs-btn-active-border-color: #1465cf;
}

/* ---- Content pages ---- */
.contact-page {
    max-width: 960px;
    margin-inline: auto;
}

.contact-intro {
    max-width: 70ch;
    margin-bottom: 1.25rem;
}

.contact-item {
    display: flex;
    gap: 0.9rem;
    margin-bottom: 1.25rem;
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-item > i {
    flex: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--cf-cream);
    color: var(--cf-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.contact-item a {
    display: inline-block;
    padding-block: 0.15rem;
    overflow-wrap: anywhere;
}

.contact-form .form-control {
    min-height: 44px;
}

.prose {
    max-width: 70ch;
    font-size: 1.05rem;
    line-height: 1.65;
}

.legal h2 {
    font-size: 1.35rem;
    margin-top: 2rem;
    scroll-margin-top: 6rem;
}

.legal h3 {
    font-size: 1.1rem;
    margin-top: 1.25rem;
}

.legal section {
    scroll-margin-top: 6rem;
}

.legal-updated {
    color: var(--cf-muted, #6c757d);
    font-size: 0.95rem;
}

.legal-toc {
    border-left: 3px solid var(--cf-red);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.legal-facts {
    display: grid;
    grid-template-columns: minmax(10rem, max-content) 1fr;
    gap: 0.4rem 1.25rem;
}

.legal-facts dt {
    font-weight: 600;
}

.legal-facts dd {
    margin: 0;
}

@media (max-width: 575.98px) {
    .legal-facts {
        grid-template-columns: 1fr;
    }

    .legal-facts dd {
        margin-bottom: 0.5rem;
    }
}

.legal-table {
    max-width: 36rem;
}

.doc-list {
    max-width: 70ch;
    margin-inline: auto;
    display: grid;
    gap: 0.75rem;
}

.doc-card {
    flex-direction: row;
    align-items: center;
    gap: 0.9rem;
    min-height: 44px;
    color: var(--cf-ink);
    text-decoration: none;
    font-weight: 500;
}

.doc-card:hover {
    color: var(--cf-red-dark);
}

.doc-card > i {
    font-size: 1.75rem;
    color: var(--cf-red);
}

.error-title {
    color: var(--cf-red);
    font-size: 2.5rem;
}
