/* =========================================================
   GLOBAL BASE STYLES
   ========================================================= */

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

body {
    background-color: var(--mud-palette-background) !important;
}

.mud-main-content {
    background-color: var(--mud-palette-background) !important;
    overflow: visible !important;
}

.content {
    padding-top: 0;
}

h1:focus {
    outline: none;
}

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

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Error boundary */
.blazor-error-boundary {
    background: url(...) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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


/* =========================================================
   LOGIN DIALOG
   ========================================================= */

.login-dialog-title {
    text-align: center;
    margin-bottom: 1rem;
}

.mud-dialog {
    border-radius: 16px !important;
}

.mud-overlay {
    backdrop-filter: blur(2px);
}

.forgot-password-link {
    cursor: pointer;
    color: #E91E8F;
}

/* Continue with Google / Facebook, above the email form in the login dialog and on Register */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-login-button {
    height: 44px;
    border-radius: 8px !important;
    text-transform: none !important;
    letter-spacing: 0.02em;
    border-color: var(--mud-palette-lines-inputs) !important;
    color: var(--mud-palette-text-primary) !important;
}

.social-login-button--google .mud-icon-root {
    color: #4285F4;
}

.social-login-button--facebook .mud-icon-root {
    color: #1877F2;
}

.social-login-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0.25rem 0;
    color: var(--mud-palette-text-secondary);
    font-size: 0.85rem;
}

    .social-login-divider::before,
    .social-login-divider::after {
        content: "";
        flex: 1;
        border-top: 1px solid var(--mud-palette-divider);
    }

/* Signing-in spinner and error card on /auth/callback */
.auth-callback-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
    padding: 2rem 0;
}

    .forgot-password-link:hover {
        text-decoration: underline;
    }

.site-shell {
    min-height: 0;
    overflow: visible !important;
}

.main-content {
    min-height: 0;
    padding: 0 !important;
    margin: 0 !important;
    overflow: visible !important;
}


/* =========================================================
   REGISTER PAGE
   ========================================================= */

.register-container {
    min-height: calc(100vh - 120px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 40px;
    padding-bottom: 60px;
}

.register-title {
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-align: center;
}

.register-card {
    width: 100%;
    max-width: 520px;
    border-radius: 14px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.04);
}

.register-button {
    height: 48px;
    letter-spacing: 0.5px;
    border-radius: 8px;
    margin-top: 8px;
}

.mt-2 {
    margin-top: 8px;
}

/* =========================================================
   REGISTER PAGE — MAKER SECTION
   ========================================================= */

.register-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.register-maker-section {
    border: 1px solid var(--mud-palette-secondary);
    border-radius: 4px;
    padding: 1.5rem;
    background: var(--mud-palette-background);
    animation: expandIn 0.3s ease;
}

@keyframes expandIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.register-maker-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.register-maker-section-icon {
    color: var(--mud-palette-secondary) !important;
}

.register-maker-section-title {
    font-weight: 600;
    color: var(--mud-palette-secondary) !important;
}

.register-maker-section-subtitle {
    color: var(--mud-palette-text-secondary) !important;
}

.register-specialties-label {
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.register-specialties-hint {
    color: var(--mud-palette-text-secondary) !important;
    display: block;
    margin-bottom: 0.5rem;
}

.register-specialties-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
}

/* =========================================================
   RESPONSIVE — REGISTER PAGE
   ========================================================= */

@media (max-width: 600px) {

    .register-container {
        padding-left: 1rem;
        padding-right: 1rem;
        padding-top: 24px;
        padding-bottom: 40px;
    }

    .register-title {
        font-size: 1.8rem !important;
        margin-bottom: 1.5rem;
    }

    /* First/last name stack */
    .register-form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    /* Reduce card inner padding (overrides pa-6) */
    .register-card {
        padding: 1.5rem !important;
    }

    /* Maker section tighter */
    .register-maker-section {
        padding: 1rem;
    }

    /* Specialties single column so labels don't truncate */
    .register-specialties-grid {
        grid-template-columns: 1fr;
    }
}


/* =========================================================
   NAV MENU (HEADER)
   ========================================================= */

.ordera-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: var(--mud-palette-surface) !important;
}

/* Logo takes only what it needs; the two sides share the rest equally, so the logo stays centred
   and the right-hand buttons get as much room as the search box. */
.header-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    column-gap: 1.5rem;
    min-height: 78px;
    padding: 0 4rem;
    align-items: end;
    padding-bottom: 10px;
}

    .header-main .search-wrapper {
        max-width: 340px;
    }

.header-left {
    align-items: flex-end !important;
}

.header-right {
    align-items: flex-end !important;
}

/* Same three-column trick as .header-main: the site links stay centred whether or not
   a maker's links sit in the right-hand column. */
.header-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    min-height: 46px;
    padding: 0 4rem;
    border-top: 1px solid var(--mud-palette-divider);
}

.header-nav-main {
    grid-column: 2;
}

.header-nav-maker {
    grid-column: 3;
    justify-self: end;
    padding-left: 1rem;
    border-left: 1px solid var(--mud-palette-divider);
}

/* Logo */
.brand-logo {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 0;
}

/* Navigation links */
.header-tool-button,
.nav-link {
    text-transform: none !important;
}

    .header-tool-button:hover,
    .nav-link:hover {
        color: var(--mud-palette-secondary) !important;
    }

/* Override MudBlazor internal button size globally */
.mud-button-root {
    font-size: 0.95rem !important;
}

/* Search */
.search-input .mud-input-root:after {
    border-bottom-color: var(--mud-palette-secondary) !important;
}

.search-input .mud-input-root:before {
    border-bottom-color: var(--mud-palette-divider) !important;
}

.search-input .mud-input-adornment .mud-icon-root {
    color: var(--mud-palette-secondary) !important;
}

.search-input .mud-input-underline:after {
    border-bottom-color: var(--mud-palette-secondary) !important;
}

.search-input .mud-input-underline:before {
    border-bottom-color: var(--mud-palette-divider) !important;
}

/* Search suggestions dropdown */
.search-wrapper {
    position: relative;
    width: 100%;
}

.search-wrapper-mobile {
    width: 100%;
}

.search-suggestions {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 340px;
    max-width: 90vw;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1300;
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-divider);
}

.search-wrapper-mobile .search-suggestions {
    width: 100%;
}

.search-suggestions-loading,
.search-suggestions-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    color: var(--mud-palette-text-secondary);
}

.search-suggestions-section {
    padding: 0.4rem 0;
}

    .search-suggestions-section + .search-suggestions-section {
        border-top: 1px solid var(--mud-palette-divider);
    }

.search-suggestions-heading {
    display: block;
    padding: 0.3rem 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--mud-palette-text-secondary) !important;
}

.search-suggestion-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
}

    .search-suggestion-row:hover {
        background: var(--mud-palette-action-default-hover);
    }

.search-suggestion-thumb,
.search-suggestion-avatar {
    flex: none;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--mud-palette-background-grey);
    color: var(--mud-palette-text-secondary);
}

.search-suggestion-thumb {
    border-radius: 4px;
}

.search-suggestion-avatar {
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 600;
}

    .search-suggestion-thumb img,
    .search-suggestion-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.search-suggestion-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

    .search-suggestion-info .mud-typography {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

.search-suggestion-meta {
    color: var(--mud-palette-text-secondary) !important;
}

.search-suggestions-footer {
    padding: 0.6rem 1rem;
    text-align: center;
    cursor: pointer;
    border-top: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-secondary) !important;
}

    .search-suggestions-footer:hover {
        background: var(--mud-palette-action-default-hover);
    }

/* User / Profile */
.user-info {
    text-transform: none !important;
    border-radius: 10px;
}

.username {
    margin-left: 8px;
    font-weight: 500;
    max-width: 110px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   NAV PROGRESS BAR
   ========================================================= */

.nav-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 2000;
    pointer-events: none;
    overflow: hidden;
}

    .nav-progress-bar::before {
        content: "";
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        width: 40%;
        background: var(--mud-palette-secondary);
        transform: translateX(-100%);
    }

.nav-progress-bar--active::before {
    animation: nav-progress-slide 0.7s ease-in-out;
}

@keyframes nav-progress-slide {
    0% {
        transform: translateX(-100%);
    }

    60% {
        transform: translateX(150%);
    }

    100% {
        transform: translateX(250%);
    }
}


/* =========================================================
   NAV MENU - DROPDOWN (HOVER)
   ========================================================= */

.hover-menu {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding-bottom: 8px;
    margin-bottom: -8px;
}

.hover-menu-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 190px;
    z-index: 1300;
    flex-direction: column;
    background: var(--mud-palette-surface) !important;
    border: 1px solid var(--mud-palette-divider);
    padding: 0.4rem 0;
}

.hover-menu:hover > .hover-menu-content {
    display: flex;
}

.hover-menu-item {
    width: 100%;
    justify-content: flex-start !important;
    border-radius: 0 !important;
}

    .hover-menu-item:hover {
        color: var(--mud-palette-secondary) !important;
    }

.profile-hover-menu {
    padding-bottom: 8px;
    margin-bottom: -8px;
}

.profile-menu-content {
    right: 0;
    left: auto;
}

.catalog-menu-content {
    max-height: 320px;
    overflow-y: auto;
}


/* =========================================================
   NAV MENU - ICON BUTTONS
   ========================================================= */

.nav-icon-button {
    cursor: pointer;
    min-width: auto;
    padding: 2px 7px;
    border-radius: 8px;
}

    .nav-icon-button:hover {
        background: var(--mud-palette-background);
        color: var(--mud-palette-secondary) !important;
    }

        .nav-icon-button:hover .nav-label,
        .nav-icon-button:hover .mud-icon-root {
            color: var(--mud-palette-secondary) !important;
        }

.nav-avatar {
    width: 24px !important;
    height: 24px !important;
}

    .nav-avatar .mud-icon-root {
        font-size: 1rem !important;
    }

.nav-icon {
    font-size: 19px !important;
}

.nav-label {
    line-height: 1.1;
    margin-top: 1px;
    white-space: nowrap;
}

/* Narrower desktops: icons only, so a maker's full row of buttons never crops. The labels stay
   in the page for screen readers. (Below 960px the mobile header takes over.) */
@media (max-width: 1350px) {
    .header-right .nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }
}

.nav-icon-button .mud-icon-root {
    font-size: 19px !important;
}


/* =========================================================
   MISC
   ========================================================= */

.pages-icon {
    margin-left: 4px;
    font-size: 18px !important;
}


/* =========================================================
   CATALOG SORT SELECT
   ========================================================= */

.catalog-sort .mud-select-input {
    font-weight: 400 !important;
}

.catalog-sort .mud-input-root:after {
    border-bottom-color: var(--mud-palette-secondary) !important;
}

.catalog-sort .mud-input-root:before {
    border-bottom-color: var(--mud-palette-divider) !important;
}

.catalog-sort:hover .mud-input-root:before {
    border-bottom-color: var(--mud-palette-secondary) !important;
}

.catalog-sort:hover .mud-select-input {
    color: var(--mud-palette-secondary) !important;
}

.catalog-sort:hover .mud-input-slot {
    color: var(--mud-palette-secondary) !important;
}

.catalog-sort:hover .mud-input-root input {
    color: var(--mud-palette-secondary) !important;
}

.catalog-sort:hover .mud-svg-icon {
    color: var(--mud-palette-secondary) !important;
}

.catalog-sort:hover .mud-input-adornment .mud-icon-root {
    color: var(--mud-palette-secondary) !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

.ordera-footer {
    background: var(--mud-palette-surface) !important;
    border-top: 1px solid var(--mud-palette-divider);
    padding: 5rem 4rem 0 4rem;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Brand */
.footer-logo {
    font-family: "Libre Baskerville", Georgia, serif;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1;
    margin-bottom: 1rem;
}

.footer-description {
    color: var(--mud-palette-text-secondary) !important;
    line-height: 1.8;
    max-width: 280px;
    margin-bottom: 1.5rem;
}

/* Socials */
.footer-socials {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-divider);
    color: var(--mud-palette-text-primary);
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
}

    .footer-social-link:hover {
        background: var(--mud-palette-background);
        color: var(--mud-palette-secondary) !important;
    }

.footer-social-icon {
    font-size: 1.2rem !important;
}

/* Columns */
.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-column-title {
    letter-spacing: 0.15em !important;
    text-transform: uppercase !important;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--mud-palette-divider);
    margin-bottom: 0.5rem;
}

/* Nav links as buttons */
.footer-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.footer-link-button {
    text-transform: none !important;
    justify-content: flex-start !important;
    padding-left: 0 !important;
    min-width: 0 !important;
    color: var(--mud-palette-text-secondary) !important;
}

    .footer-link-button:hover {
        color: var(--mud-palette-secondary) !important;
        background: transparent !important;
    }

/* Contact */
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-contact-icon {
    font-size: 1rem !important;
    color: var(--mud-palette-text-secondary) !important;
}

.footer-contact-text {
    color: var(--mud-palette-text-secondary) !important;
}

/* Legal */
.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

/* Bottom bar */
.footer-divider {
    margin: 0 !important;
}

.footer-bottom-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-copyright,
.footer-attribution {
    text-align: center;
}

/* =========================================================
   RESPONSIVE — MOBILE NAVMENU
   ========================================================= */

/* Notification bell dropdown */
.notification-popover {
    width: 360px;
    max-width: calc(100vw - 2rem);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.notification-empty {
    display: flex;
    justify-content: center;
    padding: 1.5rem 1rem;
    color: var(--mud-palette-text-secondary) !important;
}

.notification-item {
    white-space: normal !important;
    border-bottom: 1px solid var(--mud-palette-lines-default);
}

.notification-item--unread {
    background: rgba(var(--mud-palette-secondary-rgb), 0.08);
    font-weight: 600;
}

.notification-item-content {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.notification-item-icon {
    margin-top: 0.15rem;
    color: var(--mud-palette-secondary);
}

.notification-time {
    color: var(--mud-palette-text-secondary) !important;
    font-weight: normal;
}

/* Mobile header hidden by default (desktop view) */
.header-mobile {
    display: none;
}

.header-mobile-search {
    display: none;
}

.header-mobile-tabs {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

/* Drawer styling (applies all sizes, drawer only opens on mobile) */
.mobile-drawer {
    position: fixed !important;
    top: 0 !important;
    /* dvh is the visible height; 100vh on phones also counts the area behind the browser bars,
       which pushed the logout button off screen. vh stays as the fallback for older browsers. */
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 1400 !important;
}

    .mobile-drawer .mud-drawer-content {
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        height: 100vh !important;
        height: 100dvh !important;
        overflow-y: auto !important;
    }

    /* Target the MudNavMenu's internal list */
    .mobile-drawer .mud-navmenu,
    .mobile-drawer .mud-navmenu .mud-nav-group,
    .mobile-drawer .mud-navmenu > div {
        flex: 0 0 auto !important;
        height: auto !important;
        align-self: flex-start !important;
        width: 100% !important;
    }

    .mobile-drawer .mud-divider {
        flex: 0 0 auto !important;
        height: 1px !important;
        margin: 0 !important;
    }

.mobile-drawer-nav {
    flex: 0 0 auto !important;
}

/* Header at top */
.mobile-drawer-header {
    padding: 1.5rem 1rem;
    flex: 0 0 auto;
}


/* Logout pinned to bottom */
.mobile-drawer-footer {
    margin-top: auto !important;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    flex: 0 0 auto;
}
.mobile-drawer-nav.mud-navmenu {
    flex: 0 0 auto !important;
    height: auto !important;
}



/* ===================== TABLET & BELOW ===================== */
@media (max-width: 960px) {

    /* Swap desktop header for mobile header */
    .header-desktop {
        display: none;
    }

    /* Menu + logo on the left, everyday actions pushed to the right */
    .header-mobile {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.5rem;
    }

    .header-mobile-actions {
        margin-left: auto;
        display: flex;
        align-items: center;
    }

    .brand-logo-mobile {
        font-family: "Libre Baskerville", Georgia, serif;
        font-weight: 700;
        font-size: 1.15rem !important;
        letter-spacing: 1px;
        line-height: 1;
        white-space: nowrap;
        cursor: pointer;
        margin: 0;
    }

    .header-mobile-icon-button {
        color: var(--mud-palette-primary) !important;
        padding: 8px !important;
    }

    /* The top row slides away while scrolling down and the tabs stay at the top edge
       (orderaHeader in App.razor sets the flag and measures the row) */
    .ordera-header {
        transition: transform 0.25s ease;
    }

    .ordera-header-hidden .ordera-header {
        transform: translateY(calc(-1 * var(--ordera-header-shift, 56px)));
    }

    /* Bottom bar: search, favorites, cart, profile. Below the overlays and drawers (1200+). */
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1100;
        height: calc(56px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--mud-palette-surface);
        border-top: 1px solid var(--mud-palette-divider);
    }

    .mobile-bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 0;
        border: 0;
        background: none;
        font: inherit;
        font-size: 0.7rem;
        color: var(--mud-palette-text-secondary);
        text-decoration: none;
        cursor: pointer;
    }

        .mobile-bottom-nav-item.active {
            color: var(--mud-palette-primary);
        }

    /* Keep the footer clear of the bottom bar */
    body {
        padding-bottom: calc(56px + env(safe-area-inset-bottom));
    }

    /* Tab row under the logo, like the desktop nav; maker tabs on the right behind a divider.
       Scrolls sideways on its own if the labels don't fit a very narrow phone. */
    .header-mobile-tabs {
        display: flex;
        align-items: center;
        min-height: 40px;
        padding: 0 0.5rem;
        border-top: 1px solid var(--mud-palette-divider);
        overflow-x: auto;
        scrollbar-width: none;
    }

        .header-mobile-tabs::-webkit-scrollbar {
            display: none;
        }

    .header-mobile-tabs-group {
        display: flex;
        align-items: center;
        flex-shrink: 0;
    }

    .header-mobile-tabs-maker {
        margin-left: auto;
        padding-left: 0.5rem;
        border-left: 1px solid var(--mud-palette-divider);
    }

    .header-mobile-tab {
        font-size: 0.85rem !important;
        padding: 4px 8px !important;
        min-width: 0 !important;
        white-space: nowrap;
    }

    .header-mobile-search {
        display: block;
        padding: 0.5rem 1rem 1rem;
    }

    /* Footer collapses to two columns */
    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
        padding: 0 2rem 3rem;
    }

    .ordera-footer {
        padding: 3rem 2rem 0 2rem;
    }
}


/* ===================== MOBILE ===================== */
@media (max-width: 600px) {

    /* Footer single column */
    .footer-main {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    /* Register card full width padding */
    .register-container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

.footer-attribution {
    color: var(--mud-palette-text-secondary);
}

.footer-attribution a {
    color: inherit;
}

.footer-language {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.footer-language a {
    color: inherit;
    text-decoration: none;
    opacity: 0.8;
}

.footer-language a:hover {
    opacity: 1;
    text-decoration: underline;
}


/* =========================================================
   LANGUAGE SWITCH
   ========================================================= */

/* Desktop: a globe button in the header icons that opens a list of languages */
.language-menu:focus-within > .hover-menu-content {
    display: flex;
}

.language-menu-content {
    min-width: 150px;
}

    .language-menu-content .hover-menu-item.active {
        font-weight: 700;
    }

/* Mobile drawer: the languages inline */
.language-switch {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
}

.language-switch-mobile {
    padding: 0.75rem 1rem;
    color: var(--mud-palette-text-secondary);
}

.language-switch-option {
    background: none;
    border: 0;
    padding: 0.1rem 0.2rem;
    font: inherit;
    letter-spacing: 0.05em;
    color: var(--mud-palette-text-secondary);
    cursor: pointer;
}

    .language-switch-option:hover {
        color: var(--mud-palette-text-primary);
    }

    .language-switch-option.active {
        color: var(--mud-palette-text-primary);
        font-weight: 700;
        cursor: default;
    }

.owned-pattern-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
}

.owned-pattern-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
}

.owned-pattern-info {
    flex: 1;
    min-width: 0;
}

/* =========================================================
   PHOTO CAPTURE BUTTONS (camera / gallery)
   ========================================================= */

.photo-capture-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.photo-capture-input {
    display: none;
}

.photo-capture-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    padding: 6px 16px;
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    color: var(--mud-palette-text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

    .photo-capture-button:hover {
        border-color: var(--mud-palette-secondary);
        color: var(--mud-palette-secondary);
        background: rgba(var(--mud-palette-secondary-rgb), 0.04);
    }

    .photo-capture-button .mud-icon-root {
        font-size: 1.1rem;
    }
