@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');
:root {
    --ink:#203d35;
    --green:#173f35;
    --cream:#f8f6ef;
    --orange:#d9633b;
    --line:#dedfd3;
    --muted:#68756d;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    background:var(--cream);
    color:var(--ink);
    font-family:'DM Sans',sans-serif;
    font-size:15px;
    line-height:1.6;
}

a {
    color:inherit;
    text-decoration:none;
}

button,input,textarea,select {
    font:inherit;
}

button,.button {
    cursor:pointer;
    border:1px solid var(--green);
    border-radius:8px;
    padding:11px 20px;
    background:var(--green);
    color:white;
    font-weight:600;
    display:inline-flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    transition:background .15s,transform .15s;
}

button:hover,.button:hover {
    background:#2d5949;
}

button:disabled {
    cursor:default;
    opacity:.5;
}

a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible {
    outline:3px solid var(--orange);
    outline-offset:4px;
}

h1,h2,h3,p {
    margin-top:0;
}

h1,h2 {
    font-family:'Playfair Display',Georgia,serif;
    font-weight:500;
    letter-spacing:-1.5px;
    line-height:1.14;
}

h1 {
    font-size:clamp(38px,4.3vw,66px);
    margin-bottom:24px;
}

h2 {
    font-size:36px;
    margin-bottom:16px;
}

h3 {
    font-size:20px;
    line-height:1.3;
    margin-bottom:10px;
}

em {
    color:var(--orange);
    font-weight:500;
}

.site-header {
    display:flex;
    align-items:center;
    gap:40px;
    max-width:1400px;
    margin:auto;
    padding:25px 5%;
    border-bottom:1px solid var(--line);
}

.brand {
    font-size:22px;
    font-weight:700;
    display:flex;
    align-items:center;
    gap:12px;
    white-space:nowrap;
    letter-spacing:-1px;
}

.brand-mark {
    background:var(--green);
    color:var(--cream);
    border-radius:50%;
    height:42px;
    width:42px;
    display:grid;
    place-content:center;
    font-family:Georgia,serif;
    font-style:italic;
    position:relative;
}

.brand-mark span {
    color:#f3b778;
    position:absolute;
    right:5px;
    top:0;
}

nav {
    display:flex;
    gap:24px;
    flex:1;
}

nav a {
    font-size:14px;
    color:var(--muted);
    white-space:nowrap;
}

nav a.active {
    color:var(--green);
    border-bottom:2px solid var(--orange);
}

.header-actions {
    display:flex;
    align-items:center;
    gap:24px;
    font-size:14px;
}

.cart-link {
    white-space:nowrap;
}

.cart-link span {
    background:#e7e8dc;
    padding:3px 8px;
    border-radius:50%;
    margin-left:5px;
}

.text-button {
    border:0;
    background:transparent;
    color:var(--ink);
    padding:8px 0;
    font-weight:500;
}

.text-button:hover {
    background:transparent;
    color:var(--orange);
}

main {
    min-height:75vh;
}

.hero {
    display:grid;
    grid-template-columns:1.25fr 1fr;
    gap:40px;
    max-width:1400px;
    margin:auto;
    padding:70px 5% 60px;
    align-items:center;
    overflow:hidden;
}

.eyebrow {
    font-size:11px;
    font-weight:700;
    letter-spacing:2px;
    display:block;
    margin-bottom:17px;
}

.hero p {
    color:var(--muted);
    max-width:480px;
    font-size:16px;
    margin-bottom:28px;
}

.hero-art {
    height:360px;
    display:grid;
    place-items:center;
    position:relative;
    background:#e5e9db;
    border-radius:48% 48% 8px 8px;
}

.plate {
    width:295px;
    height:295px;
    border-radius:50%;
    background:#f4ecd8;
    border:15px solid #faf5e6;
    box-shadow:0 15px 0 #ccd3bf,0 20px 45px #2f413a20;
    display:flex;
    align-items:center;
    justify-content:center;
    flex-direction:column;
    transform:rotate(-12deg);
    outline:1px solid #e0d9c8;
}

.food {
    font-size:118px;
    line-height:1.05;
    color:var(--orange);
    text-shadow:5px 4px #cfb96c;
}

.plate span {
    font-family:'Playfair Display',Georgia,serif;
    text-align:center;
    font-size:27px;
    line-height:1.1;
}

.round-label {
    position:absolute;
    bottom:5px;
    right:0;
    width:100px;
    height:100px;
    border-radius:50%;
    background:#edc77d;
    display:grid;
    place-content:center;
    text-align:center;
    font-size:10px;
    font-weight:700;
    letter-spacing:1.5px;
    transform:rotate(12deg);
}

.service-strip {
    background:var(--green);
    color:#f5f1de;
    display:flex;
    justify-content:space-evenly;
    padding:17px 5%;
    font-size:12px;
    letter-spacing:1px;
}

.section {
    max-width:1400px;
    margin:auto;
    padding:58px 5% 80px;
}

.section-heading {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:24px;
}

.section-heading h2 {
    margin-bottom:10px;
}

.search-label {
    width:290px;
    font-size:12px;
    color:var(--muted);
}

input,textarea,select {
    border:1px solid #cbd1c7;
    background:#fffef9;
    border-radius:7px;
    width:100%;
    padding:12px 14px;
    color:var(--ink);
    min-height:46px;
}

textarea {
    min-height:95px;
    resize:vertical;
}

label {
    display:block;
    font-size:13px;
    font-weight:600;
    margin:15px 0;
}

label input,label textarea,label select {
    display:block;
    margin-top:6px;
}

.filters {
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin:24px 0;
}

.filters button {
    background:transparent;
    color:var(--ink);
    border:1px solid #d4d8cd;
    border-radius:30px;
    font-size:13px;
    padding:8px 20px;
}

.filters button.selected {
    background:var(--green);
    color:white;
    border-color:var(--green);
}

.product-grid {
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:24px;
}

.product-card {
    background:#fffef9;
    border:1px solid #e0e2d7;
    border-radius:12px;
    overflow:hidden;
}

.product-art {
    height:175px;
    background:#e9e4d4;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    color:#a9673d;
}

.product-art span {
    font-size:92px;
    line-height:1.2;
    text-shadow:5px 6px #fff8;
}

.product-art small {
    font-size:9px;
    letter-spacing:3px;
    opacity:.7;
}

.tone-1 {
    background:#e5e9d9;
    color:#6c8056;
}

.tone-2 {
    background:#eed9c9;
    color:#ae6348;
}

.tone-3 {
    background:#e3dfea;
    color:#84718c;
}

.product-content {
    padding:22px;
}

.product-content .eyebrow {
    font-size:9px;
    letter-spacing:1.4px;
    margin-bottom:10px;
    color:var(--muted);
}

.product-content p {
    color:var(--muted);
    font-size:13px;
    min-height:42px;
}

.product-bottom {
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
}

.product-bottom button {
    background:transparent;
    color:var(--green);
    border-color:#cdd6c9;
    padding:8px 12px;
    font-size:12px;
}

.product-bottom strong {
    font-size:19px;
}

.panel {
    background:#fffef9;
    border:1px solid var(--line);
    border-radius:12px;
    padding:30px;
}

.panel h2 {
    font-size:28px;
    letter-spacing:-.7px;
}

.panel p {
    color:var(--muted);
}

.auth-page {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:100px;
    max-width:1100px;
    margin:70px auto;
    padding:20px 5%;
    align-items:center;
}

.full {
    width:100%;
    margin-top:20px;
}

.checkout-grid {
    display:grid;
    grid-template-columns:1.4fr 1fr;
    gap:30px;
    align-items:start;
}

.cart-row {
    display:flex;
    align-items:center;
    gap:20px;
    justify-content:space-between;
    border-bottom:1px solid var(--line);
    padding:20px 0;
}

.cart-row h3 {
    font-size:17px;
}

.cart-row p {
    margin:0;
    font-size:13px;
}

.cart-row > div:first-child {
    flex:1;
}

.quantity {
    display:flex;
    align-items:center;
    gap:12px;
}

.quantity button {
    background:transparent;
    color:var(--ink);
    border-color:var(--line);
    padding:5px 12px;
}

.total {
    display:flex;
    justify-content:space-between;
    padding:20px 0;
    font-size:18px;
}

.empty {
    text-align:center;
    padding:60px 20px;
    background:#eeeee4;
    border-radius:12px;
    margin:25px 0;
}

.empty p,.muted,small {
    color:var(--muted);
}

.accent {
    color:var(--orange);
}

.order-grid {
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:24px;
}

.badge {
    border-radius:20px;
    background:#ede8d7;
    font-size:11px;
    padding:5px 12px;
    font-weight:700;
}

.status-Ready {
    background:#e9ce9c;
}

.status-Delivered {
    background:#dfe9d9;
}

.order-card h3 {
    margin:20px 0 5px;
}

.order-lines {
    list-style:none;
    padding:0;
    margin:20px 0 0;
}

.order-lines li {
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:6px 0;
    font-size:14px;
}

.order-note {
    padding:12px;
    background:#f3f0e6;
    border-radius:5px;
}

.progress-track {
    display:flex;
    gap:5px;
    margin:15px 0;
}

.progress-track span {
    flex:1;
    font-size:10px;
    border-top:4px solid #e1e3da;
    padding-top:7px;
}

.progress-track .done {
    border-color:#688563;
}

.admin-grid {
    display:grid;
    grid-template-columns:1fr 1.5fr;
    gap:25px;
    align-items:start;
}

.admin-list {
    margin-top:25px;
}

.check {
    display:flex;
    align-items:center;
    gap:10px;
}

.check input {
    width:20px;
    min-height:20px;
    margin:0;
}

.user-row {
    padding:15px 0;
    border-bottom:1px solid var(--line);
    overflow-wrap:anywhere;
}

.user-row .filters {
    margin:12px 0;
}

.notice {
    padding:15px 20px;
    border:1px solid #c9d7bd;
    background:#eaf0e1;
    border-radius:8px;
}

.error,.validation-errors,.validation-message {
    color:#a43128;
}

.error {
    background:#f8e8e1;
    border-color:#eac8bc;
}

footer {
    border-top:1px solid var(--line);
    max-width:1400px;
    margin:auto;
    padding:30px 5%;
    display:flex;
    justify-content:space-between;
    font-size:12px;
    color:var(--muted);
    gap:20px;
}

footer strong {
    color:var(--ink);
    font-size:17px;
}

.loading {
    padding:25vh 20px;
    text-align:center;
}

.loading strong {
    font-size:34px;
}

.loading span {
    color:var(--orange);
}

#blazor-error-ui {
    display:none;
    position:fixed;
    bottom:0;
    width:100%;
    padding:15px;
    background:#ffe3a0;
    z-index:100;
}

#blazor-error-ui .dismiss {
    float:right;
    cursor:pointer;
}

.sr-only {
    position:absolute;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}

@media(max-width:1000px) {
    .site-header {
        flex-wrap:wrap;
        gap:16px;
    }

    nav {
        order:3;
        flex-basis:100%;
    }

    .header-actions {
        margin-left:auto;
    }

    .hero-art {
        height:300px;
    }

    .plate {
        width:250px;
        height:250px;
    }

    .product-grid {
        grid-template-columns:repeat(2,1fr);
    }

    .auth-page {
        gap:40px;
    }

}

@media(max-width:650px) {
    .site-header {
        padding:18px 5%;
    }

    .brand {
        font-size:19px;
    }

    .header-actions {
        gap:15px;
    }

    nav {
        gap:20px;
        overflow-x:auto;
        padding:8px 0;
    }

    .hero {
        grid-template-columns:1fr;
        padding:40px 5%;
        gap:30px;
    }

    .hero-art {
        height:250px;
    }

    .plate {
        height:220px;
        width:220px;
    }

    .food {
        font-size:80px;
    }

    .hero h1 {
        font-size:42px;
    }

    .round-label {
        right:15px;
    }

    .service-strip {
        gap:15px;
        font-size:9px;
        padding:14px 5%;
    }

    .section {
        padding:36px 5% 50px;
    }

    .section-heading {
        flex-wrap:wrap;
        gap:10px;
    }

    .search-label {
        width:100%;
    }

    .product-grid,.checkout-grid,.order-grid,.admin-grid,.auth-page {
        grid-template-columns:1fr;
    }

    .product-art {
        height:160px;
    }

    .auth-page {
        margin:30px auto;
        gap:20px;
    }

    .auth-page h1 {
        font-size:40px;
    }

    .panel {
        padding:22px;
    }

    .cart-row {
        gap:10px;
        flex-wrap:wrap;
    }

    .cart-row h3 {
        font-size:15px;
    }

    .cart-row strong {
        font-size:14px;
    }

    footer {
        flex-direction:column;
        gap:5px;
    }

}

h1:focus {
    outline: none;
}

/* Product photographs and the keyboard/touch-friendly crop editor. */
.product-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.image-editor { min-width: 0; margin: 1.25rem 0; padding: 1rem; border: 1px solid #d6ddd5; border-radius: 12px; }
.image-editor legend { padding: 0 .5rem; font-weight: 700; }
.image-editor canvas { display: block; width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.image-editor input[type=range] { width: 100%; padding: .5rem 0; accent-color: #173f35; }
.image-editor input[type=file] { max-width: 100%; }
.image-editor small { display: block; }
.photo-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

.venue-manager { margin-bottom: 1.5rem; }
.event-link { overflow-wrap: anywhere; font-weight: 700; }
.event-entry { max-width: 640px; margin: 2rem auto; }
.event-entry input { letter-spacing: .1em; }
.admin-workspace { border: 0; padding: 0; margin: 0; min-width: 0; }

.order-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin: 1.5rem 0; }
.order-filters label { flex: 1 1 220px; min-width: 0; margin: 0; }
.order-filters select { width: 100%; }
.venue-filter-control { display: flex; align-items: flex-end; gap: .6rem; flex: 1 1 280px; min-width: 0; }
.order-filters .venue-filter-control label { flex: 1; }
.order-filters select { height: 46px; margin-bottom: 0; }
.venue-filter-control .kitchen-sound-toggle { align-self: flex-end; margin: 0; }
.kitchen-sound-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; padding: 0; border: 1px solid #c9cec3; border-radius: 8px; background: transparent; color: #53635b; }
.kitchen-sound-toggle.is-active { background: #173f35; border-color: #173f35; color: white; }
.kitchen-sound-toggle:focus-visible { outline: 3px solid #e86238; outline-offset: 3px; }

/* Theme variables are scoped to the guest shell or preview, never the admin form. */
.venue-theme { background: var(--cream); color: var(--ink); --theme-art: #e5e9db; --theme-plate: #f4ecd8; --theme-badge: #edc77d; }
.app-shell.venue-theme { min-height: 100vh; }
.theme-halloween { --ink:#35233f; --green:#74351b; --cream:#fcf5ec; --orange:#a64417; --line:#e1d0c1; --muted:#746476; --theme-art:#e7d9ef; --theme-plate:#ffdfb2; --theme-badge:#efb461; }
.theme-christmas { --ink:#203e32; --green:#842b35; --cream:#faf7f1; --orange:#9e303a; --line:#d5dfd4; --muted:#5d7165; --theme-art:#d9e8de; --theme-plate:#fff6df; --theme-badge:#e8bf6d; }
.theme-thanksgiving { --ink:#4b3024; --green:#814022; --cream:#fff8ec; --orange:#9a491b; --line:#e5d6bc; --muted:#79644e; --theme-art:#eddbb6; --theme-plate:#fff1d6; --theme-badge:#dba657; }
.theme-newyear { --ink:#252a48; --green:#282d55; --cream:#f6f5fc; --orange:#88611b; --line:#d8d6e7; --muted:#66677c; --theme-art:#dddcef; --theme-plate:#ffefc9; --theme-badge:#e4bd62; }
.theme-wedding { --ink:#49383e; --green:#785060; --cream:#fff8f7; --orange:#98624c; --line:#e8d6da; --muted:#7a626b; --theme-art:#efdee4; --theme-plate:#fffaf0; --theme-badge:#e5c7af; }
.theme-birthday { --ink:#3c2853; --green:#624092; --cream:#fff7fc; --orange:#a83774; --line:#e7d3e5; --muted:#77617d; --theme-art:#e4d8f4; --theme-plate:#ffebc8; --theme-badge:#f0b6d5; }
.venue-theme .hero-art { background: radial-gradient(circle at 15% 20%, var(--theme-plate) 0 5px, transparent 6px), radial-gradient(circle at 85% 75%, var(--theme-badge) 0 8px, transparent 9px), var(--theme-art); }
.venue-theme .plate { background:var(--theme-plate); }
.venue-theme .round-label { background:var(--theme-badge); color:var(--ink); }
.venue-theme:not(.theme-classic) .product-art { background:var(--theme-art); color:var(--green); }
.venue-theme .service-strip { color:white; }
.venue-theme button:hover,.venue-theme .button:hover { background:var(--green); color:white; filter:brightness(.92); }
.venue-theme .text-button:hover { background:transparent; color:var(--orange); }
.venue-theme .plate span { max-width:90%; }
.theme-preview { display:flex; gap:1rem; align-items:center; flex-wrap:wrap; padding:1.25rem; margin:1rem 0; border:1px solid var(--line); border-radius:14px; }
.theme-preview p { margin:0; color:var(--muted); }
.theme-symbol { font-size:2.5rem; line-height:1.2; }
.theme-button-sample { padding:.6rem 1rem; border-radius:8px; background:var(--green); color:white; font-weight:600; }
.google-signin { margin-bottom: 1.25rem; }
