:root {
    color-scheme: light;
    --ink: #242424;
    --muted: #595959;
    --line: #ccc;
    --paper: #fff;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--paper);
    scrollbar-color: #777 #f2f2f2;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 16px; line-height: 1.6; }
[hidden] { display: none !important; }
::selection { background: #dedede; color: #111; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: #555; }
:focus-visible { outline: 2px solid #333; outline-offset: 5px; }
h1:focus, main:focus { outline: none; }
img { max-width: 100%; }
h1, h2 { font-weight: 400; line-height: 1.25; overflow-wrap: anywhere; }
h1 { margin: 1.7rem 0 1.6rem; font-size: 2rem; text-align: center; }
h2 { font-size: 1.3rem; }
p { max-width: 70ch; }
button { font: inherit; color: var(--ink); background: white; border: 1px solid #999; padding: .45rem .85rem; min-height: 44px; cursor: pointer; }
button:hover { background: #eee; }
.site-shell { max-width: 1280px; margin: 0 auto; padding: 45px 30px 0; }
.site-header { --logo-width: 395px; --header-rule-top: 70px; display: grid; grid-template-columns: var(--logo-width) minmax(0, 1fr); align-items: start; }
/* The solid lettering meets its reflection at row 51 of the 395px-wide logo. */
.site-logo { display: block; margin-top: calc(var(--header-rule-top) - var(--logo-width) * 51 / 395); }
.site-logo img { display: block; width: 100%; height: auto; }
.header-navigation { display: flex; align-items: end; height: calc(var(--header-rule-top) + 2px); border-bottom: 2px solid #444; }
.header-flowers { width: 113px; height: 67px; object-fit: contain; flex-shrink: 0; }
.header-navigation nav { display: flex; flex: 1; min-width: 0; padding-top: 22px; align-items: stretch; }
.header-navigation nav a { flex: 1; text-decoration: none; white-space: nowrap; text-align: center; padding: 3px 12px; line-height: 1.4; border-left: 1px solid #555; }
.header-navigation nav a:first-child { border-left: 0; }
.header-navigation nav a.active { background: #777; color: white; }
.header-navigation nav a:hover { background: #eee; color: #111; }
main { padding: 0 35px; min-height: 320px; }
.welcome { font-style: italic; font-size: 1.8rem; margin: 2.4rem 0 1.5rem; }
.site-footer { margin-top: 3rem; text-align: center; }
.site-footer img { display: block; width: min(100%, 893px); height: auto; margin: 0 auto; }
.product-carousel { max-width: 900px; margin: 0 auto; }
.carousel-slide { margin: 0; }
.carousel-image-link { display: flex; align-items: center; justify-content: center; height: clamp(280px, 42vw, 480px); }
.carousel-image-link img { display: block; width: 100%; height: 100%; object-fit: contain; }
.carousel-slide figcaption { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: baseline; justify-content: center; padding: 1rem .5rem .5rem; text-align: center; }
.carousel-slide figcaption span { color: var(--muted); font-size: .9rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .65rem; margin-top: .65rem; }
.carousel-controls [data-counter] { min-width: 65px; text-align: center; font-variant-numeric: tabular-nums; color: var(--muted); }
.home-categories { margin: 3rem auto 0; max-width: 900px; text-align: center; }
.home-categories h2 { margin-bottom: 1rem; }
.category-links { list-style: none; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.6rem; margin: 0 0 1.2rem; }
.category-links a { display: inline-block; padding: .3rem 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 2rem; margin: 2rem 0; }
.product-card { min-width: 0; }
.product-image-link { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #fafafa; text-decoration: none; }
.product-image-link img { width: 100%; height: 100%; object-fit: contain; }
.product-image-link:hover { background: #f2f2f2; }
.product-card h2 { font-size: 1.1rem; margin: .8rem 0 .3rem; }
.product-card h2 a { text-decoration: none; }
.product-card h2 a:hover { text-decoration: underline; }
.product-card p { margin: .35rem 0; }
.product-description { color: var(--muted); white-space: pre-line; }
.product-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.image-unavailable { color: var(--muted); padding: 1.5rem; text-align: center; }
.category-navigation { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem 1.25rem; padding: 1rem 0; border-block: 1px solid var(--line); }
.category-navigation a { font-size: .9rem; padding: .25rem 0; }
.category-navigation [aria-current] { font-weight: bold; text-decoration-thickness: 2px; }
.category-description { margin-inline: auto; text-align: center; white-space: pre-line; }
.back-link { display: inline-block; margin-top: 1.8rem; }
.pagination { display: flex; justify-content: center; gap: 1.5rem; flex-wrap: wrap; margin: 2rem 0; }
.pagination span { color: var(--muted); font-variant-numeric: tabular-nums; }
.product-detail { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 3rem; margin-top: 2rem; align-items: start; }
.product-detail h1 { text-align: left; margin-top: 0; }
.product-gallery { display: grid; gap: 1rem; }
.product-gallery img { width: 100%; max-height: 650px; object-fit: contain; }
.detail-description { white-space: pre-line; }
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state p { margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 1rem; padding: .7rem 1rem; background: white; z-index: 100; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
    .site-header { --logo-width: 320px; --header-rule-top: 58px; }
    .header-flowers { width: 80px; }
    .header-navigation nav a { padding-inline: 7px; font-size: .9rem; }
    main { padding-inline: 10px; }
}
@media (max-width: 820px) {
    .site-shell { padding: 25px 20px 0; }
    .site-header { display: block; }
    .site-logo { width: min(395px, 100%); margin-top: 0; margin-inline: auto; }
    .header-navigation { height: auto; min-height: 67px; }
    .header-flowers { width: 85px; }
    .header-navigation nav { padding-top: 0; align-self: end; }
    .header-navigation nav a { padding: .5rem .3rem; }
    .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 2rem 1.2rem; }
    .product-detail { gap: 1.5rem; }
}
@media (max-width: 500px) {
    .site-shell { padding-inline: 14px; }
    main { padding-inline: 0; }
    .header-navigation { position: relative; padding-top: 35px; min-height: 80px; }
    .header-flowers { position: absolute; left: 50%; top: -8px; width: 72px; height: 43px; transform: translateX(-50%); }
    .header-navigation nav a { font-size: .8rem; min-height: 44px; display: grid; place-items: center; }
    h1 { font-size: 1.65rem; }
    .welcome { margin-top: 2rem; }
    .carousel-controls { gap: .4rem; }
    .carousel-controls button { font-size: .85rem; padding-inline: .55rem; }
    .product-grid { grid-template-columns: 1fr; gap: 2rem; }
    .category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.5rem .8rem; }
    .product-detail { grid-template-columns: 1fr; }
    .site-footer { margin-top: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/* Separate administration and shop-owner workspaces. */
.account-navigation { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 1rem; margin: .7rem 0; font-size: .9rem; }
.account-navigation form { margin: 0; }
.account-navigation button { border: 0; padding: .25rem .3rem; text-decoration: underline; text-underline-offset: .22em; }
.site-notice { max-width: 1100px; margin: 1.5rem auto 0; padding: .9rem 1.2rem; background: #f1f1f1; white-space: pre-line; }
.workspace-shell { margin: 1.8rem 0 0; }
.workspace-heading { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.5rem; padding-bottom: 1rem; }
.workspace-heading span { font-size: 1.35rem; font-weight: 600; }
.workspace-heading p { margin: 0; color: var(--muted); }
.workspace-navigation { display: flex; flex-wrap: wrap; gap: .25rem 1.8rem; padding-block: .6rem; border-block: 1px solid var(--line); }
.workspace-navigation a { padding: .35rem 0; text-decoration: none; }
.workspace-navigation a.active { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }
.workspace-content h1 { text-align: left; margin: 1.8rem 0 1rem; }
.workspace-content h2 { margin-top: 1.8rem; }
.workspace-summary { display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; margin-block: 1.5rem 2.5rem; }
.workspace-summary dt { color: var(--muted); }
.workspace-summary dd { margin: .15rem 0 0; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.permission-note { background: #f5f5f5; padding: 1rem 1.4rem; margin-block: 1.5rem; }
.permission-note h2 { margin-top: 0; }
.workspace-links { display: flex; flex-wrap: wrap; gap: .7rem 1.5rem; margin: 1.5rem 0; }
.workspace-message { background: #eee; padding: 1rem 1.2rem; margin-block: 1.25rem; }
.table-scroll { overflow-x: auto; margin-block: 1.5rem; }
.workspace-table { width: 100%; border-collapse: collapse; text-align: left; font-size: .95rem; }
.workspace-table th { font-weight: 600; background: #f4f4f4; white-space: nowrap; }
.workspace-table th, .workspace-table td { padding: .85rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.workspace-table td { min-width: 95px; }
.table-description { font-size: .85rem; color: var(--muted); white-space: pre-line; max-width: 45ch; margin-bottom: 0; }
.inventory-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.inventory-actions form { margin: 0; }
.workspace-form { display: grid; gap: .55rem; max-width: 680px; margin-block: 1.5rem 2rem; }
.workspace-form label { font-weight: 600; margin-top: .8rem; }
.workspace-form input:not([type=checkbox]), .workspace-form select, .workspace-form textarea { width: 100%; min-width: 0; padding: .65rem .75rem; border: 1px solid #888; background: white; color: var(--ink); font: inherit; caret-color: var(--ink); }
.workspace-form textarea { resize: vertical; }
.workspace-form button { justify-self: start; margin-top: 1rem; min-width: 130px; background: #333; color: white; }
.workspace-form button:hover { background: #555; }
.workspace-form input[type=checkbox] { width: 18px; height: 18px; accent-color: #333; }
.form-help { color: var(--muted); font-size: .9rem; margin: .2rem 0 .7rem; }
.form-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-columns label { display: block; margin-bottom: .5rem; }
.checkbox-label { display: flex; align-items: center; gap: .7rem; }
.account-panel { max-width: 460px; margin-inline: auto; }
.owner-shop { padding-block: .5rem 1.5rem; border-bottom: 1px solid var(--line); }
@media(max-width:600px) {
 .workspace-heading { display: block; }
 .workspace-heading p { margin-top: .4rem; }
 .workspace-navigation { gap: .2rem 1.1rem; }
 .form-columns { grid-template-columns: 1fr; }
 .workspace-table th, .workspace-table td { padding: .7rem; }
 .account-navigation { font-size: .85rem; }
}
