/* Shared Avangardi components. Loaded after styles.css, before page styles.
   Bootstrap remains the layout/interaction foundation; page-specific rules
   belong in the owning app. Status meanings are independent of brand colors. */
:root {
    --bs-primary: #88501b;
    --bs-primary-rgb: 136, 80, 27;
    --bs-primary-bg-subtle: #fbf0df;
    --bs-primary-text-emphasis: #714014;
    --bs-primary-border-subtle: #e8c99e;
    --bs-secondary-bg-subtle: #eeefed;
    --bs-secondary-text-emphasis: #464c48;
    --bs-secondary-border-subtle: #d6dad5;
    --bs-success-bg-subtle: #e8f3eb;
    --bs-success-text-emphasis: #205938;
    --bs-success-border-subtle: #bad8c3;
    --bs-warning-bg-subtle: #fff4d8;
    --bs-warning-text-emphasis: #795516;
    --bs-warning-border-subtle: #e9d4a0;
    --bs-danger-bg-subtle: #fbecea;
    --bs-danger-text-emphasis: #9a302b;
    --bs-danger-border-subtle: #eac0bc;
    --bs-info-bg-subtle: #e8f2f7;
    --bs-info-text-emphasis: #23566e;
    --bs-info-border-subtle: #b8d5e3;
    --bs-dark-border-subtle: #b8bbb7;
    --bs-tertiary-bg: #f5f5f1;
    /* 5.3's, missing in 5.2 (owner, 2026-11-30): without it the Shapes grid's
       category row was see-through, so tick boxes scrolled under its name. */
    --bs-secondary-bg: #ebebe6;
    --bs-secondary-color: var(--color-muted);
}

/* Explicit compatibility utilities: 5.2 does not generate the 5.3 classes. */
.bg-primary-subtle { background-color: var(--bs-primary-bg-subtle) !important; }
.bg-secondary-subtle { background-color: var(--bs-secondary-bg-subtle) !important; }
.bg-success-subtle { background-color: var(--bs-success-bg-subtle) !important; }
.bg-warning-subtle { background-color: var(--bs-warning-bg-subtle) !important; }
.bg-danger-subtle { background-color: var(--bs-danger-bg-subtle) !important; }
.bg-info-subtle { background-color: var(--bs-info-bg-subtle) !important; }
.text-primary-emphasis { color: var(--bs-primary-text-emphasis) !important; }
.text-secondary-emphasis { color: var(--bs-secondary-text-emphasis) !important; }
.text-success-emphasis { color: var(--bs-success-text-emphasis) !important; }
.text-warning-emphasis { color: var(--bs-warning-text-emphasis) !important; }
.text-danger-emphasis { color: var(--bs-danger-text-emphasis) !important; }
.text-info-emphasis { color: var(--bs-info-text-emphasis) !important; }
.border-primary-subtle { border-color: var(--bs-primary-border-subtle) !important; }
.border-secondary-subtle { border-color: var(--bs-secondary-border-subtle) !important; }
.border-success-subtle { border-color: var(--bs-success-border-subtle) !important; }
.border-warning-subtle { border-color: var(--bs-warning-border-subtle) !important; }
.border-danger-subtle { border-color: var(--bs-danger-border-subtle) !important; }
.border-info-subtle { border-color: var(--bs-info-border-subtle) !important; }
.border-dark-subtle { border-color: var(--bs-dark-border-subtle) !important; }

/* The primary brand treatment is shared by filled and outlined buttons,
   including hover, active, focus and disabled states. */
.btn {
    --bs-btn-border-radius: 0.5rem;
    --bs-btn-font-weight: 600;
    --bs-btn-padding-y: 0.55rem;
    --bs-btn-padding-x: 1rem;
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem rgba(136, 80, 27, 0.24);
}
.btn-sm { --bs-btn-font-size: 0.8125rem; --bs-btn-padding-y: 0.35rem; --bs-btn-padding-x: 0.65rem; }
.btn-primary {
    --bs-btn-color: #27272a; --bs-btn-bg: #e19f4e; --bs-btn-border-color: #e19f4e;
    --bs-btn-hover-color: #27272a; --bs-btn-hover-bg: #d8913e; --bs-btn-hover-border-color: #d8913e;
    --bs-btn-active-color: #27272a; --bs-btn-active-bg: #ce8937; --bs-btn-active-border-color: #ce8937;
    --bs-btn-disabled-color: #27272a; --bs-btn-disabled-bg: #e19f4e; --bs-btn-disabled-border-color: #e19f4e;
}
.btn-outline-primary {
    --bs-btn-color: #88501b; --bs-btn-border-color: #c79a67;
    --bs-btn-hover-color: #27272a; --bs-btn-hover-bg: #fbf0df; --bs-btn-hover-border-color: #88501b;
    --bs-btn-active-color: #27272a; --bs-btn-active-bg: #e19f4e; --bs-btn-active-border-color: #e19f4e;
    --bs-btn-disabled-color: #88501b; --bs-btn-disabled-border-color: #c79a67;
}
.btn-secondary {
    --bs-btn-bg: #4b5150; --bs-btn-border-color: #4b5150;
    --bs-btn-hover-bg: #353b3a; --bs-btn-hover-border-color: #353b3a;
    --bs-btn-active-bg: #292c2c; --bs-btn-active-border-color: #292c2c;
}
.btn-outline-secondary { --bs-btn-color: #525753; --bs-btn-border-color: #c4c8c1; }
.btn-outline-warning { --bs-btn-color: #795516; --bs-btn-border-color: #cdb368; }
.btn-link { --bs-btn-color: var(--color-primary-dark); --bs-btn-hover-color: #623710; }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
    outline: 2px solid var(--color-primary-dark);
    outline-offset: 3px;
}
.navbar :focus-visible { outline-color: var(--color-primary); }
.skip-link { position: fixed; top: -6rem; left: 1rem; z-index: 1100; padding: 0.75rem 1rem; background: #fff; border-radius: 0.5rem; }
.skip-link:focus { top: 0.5rem; }

.site-main > :is(.container, .container-fluid) { padding-top: 2rem !important; padding-bottom: 2.5rem !important; margin-top: 0 !important; margin-bottom: 0 !important; }
.site-main > .container { max-width: none; }
.site-main > .container-fluid { padding-left: 1.5rem; padding-right: 1.5rem; }
/* The standard frame keeps Bootstrap's own 12px edge up to 1400px, exactly as
   before, so a phone, tablet or small laptop lays out as it did (a wider edge
   at 820px dropped the console from three columns to two); from 1400px, where
   it used to sit in the middle with space either side, it takes the
   full-width pages' edge. */
@media (min-width: 1400px) {
    .site-main > .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
/* Every page uses the whole screen (owner, 2026-11-12: "extra useless space
   on the sides" on large monitors). The standard frame was 1320px; it is as
   wide as the screen now, with a little more air at the edges of a big one.
   What must stay readable stays readable by itself: a centred form keeps its
   own width (.row.justify-content-center below), and so do the forms and
   text blocks that set one. */
@media (min-width: 1920px) {
    .site-main > :is(.container, .container-fluid) { padding-left: 2.5rem; padding-right: 2.5rem; }
    .site-messages { padding-left: 2.5rem; padding-right: 2.5rem; }
}
/* A centred form (login, register, order lookup, two-factor, password) sized
   by percentage columns would grow with the screen -- a 1280px login box at
   2560px. It keeps the width it had in the old 1320px frame instead. */
/* Exactly the width it had in the 1320px frame: n/12 of 1296px, the widest
   breakpoint class winning (declared last). */
.site-main .row.justify-content-center > .col-md-4 { max-width: 432px; }
.site-main .row.justify-content-center > .col-md-5 { max-width: 540px; }
.site-main .row.justify-content-center > .col-md-6 { max-width: 648px; }
.site-main .row.justify-content-center > .col-md-7 { max-width: 756px; }
.site-main .row.justify-content-center > .col-md-8 { max-width: 864px; }
.site-main .row.justify-content-center > .col-md-9 { max-width: 972px; }
.site-main .row.justify-content-center > .col-md-10 { max-width: 1080px; }
.site-main .row.justify-content-center > .col-lg-4 { max-width: 432px; }
.site-main .row.justify-content-center > .col-lg-5 { max-width: 540px; }
.site-main .row.justify-content-center > .col-lg-6 { max-width: 648px; }
.site-main .row.justify-content-center > .col-lg-7 { max-width: 756px; }
.site-main .row.justify-content-center > .col-lg-8 { max-width: 864px; }
.site-main .row.justify-content-center > .col-lg-9 { max-width: 972px; }
.site-main .row.justify-content-center > .col-lg-10 { max-width: 1080px; }
.site-main .row.justify-content-center > .col-xl-4 { max-width: 432px; }
.site-main .row.justify-content-center > .col-xl-5 { max-width: 540px; }
.site-main .row.justify-content-center > .col-xl-6 { max-width: 648px; }
.site-main .row.justify-content-center > .col-xl-7 { max-width: 756px; }
.site-main .row.justify-content-center > .col-xl-8 { max-width: 864px; }
.site-main .row.justify-content-center > .col-xl-9 { max-width: 972px; }
.site-main .row.justify-content-center > .col-xl-10 { max-width: 1080px; }
.site-main :is(h1, h2, h3, h4, h5, h6) { color: var(--color-text); line-height: 1.35; font-weight: 600; }
/* Every page title in capitals (owner, 2026-10-20), shop and console alike;
   georgian_capitals.js makes the Georgian ones Mtavruli. The hero's own h1
   rule in storefront.css already did this. */
.site-main h1 { font-size: clamp(1.5rem, 2.2vw, 1.875rem); text-transform: uppercase; letter-spacing: .02em; }
/* And the section headings under them (owner, 2026-10-20: "all three", then
   "the h5 ones too"): h2 to h5 -- sidebar card headers, the About and
   Holidays sections, the designer's Shapes / Dimensions / Cuts & holes, the
   console's page, card and group headings, the cart's and the order page's
   card headers. Modal titles and h6 stay as they are, and a colour code in
   a heading keeps its case (see .cfg-colour-name, .catalog-card-title). */
.site-main :is(h2, h3, h4, h5):not(.modal-title) { text-transform: uppercase; letter-spacing: .02em; }
/* Same specificity as the rule above and declared after it, so it wins. */
.site-main :is(h2, h3, h4, h5):is(.cfg-colour-name, .catalog-card-title) { text-transform: none; letter-spacing: 0; }
.site-main h2 { font-size: 1.5rem; }
.site-main h3 { font-size: 1.5rem; }
.site-main h4 { font-size: 1.25rem; }
.site-main h5 { font-size: 1.0625rem; }
.page-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.page-header h1 { margin-bottom: 0; }
.page-header p { margin: 0.5rem 0 0; color: var(--color-muted); max-width: 48rem; }
.page-workspace .site-main > :is(.container, .container-fluid) > :is(.mb-3, .mb-4, .d-flex) :is(h1, h3, h4) { font-size: 1.5rem; }
/* One footer, one size: the workspace pages used to shrink it to 0.875rem
   (the 2026-09-30 foundation), which read as a glitch when switching between
   the shop and the console (owner, 2026-11-03). */
.eyebrow { display: block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--color-primary-dark); margin-bottom: 0.75rem; }
.breadcrumb { font-size: 0.8125rem; gap: 0.15rem; margin-bottom: 1rem; }
.breadcrumb a { text-decoration: none; }
.text-muted { color: var(--color-muted) !important; }
.card-header { background: #fbfbf9; padding: 0.875rem 1.25rem; border-bottom-color: var(--color-border-secondary); }
.card-header:first-child { border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0; }
.card-body { padding: 1.25rem; }
.card-footer { background: #fbfbf9; border-top-color: var(--color-border-secondary); }
.form-control, .form-select { border-color: #c9cdc5; border-radius: 0.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.form-control-sm, .form-select-sm { padding-top: 0.35rem; padding-bottom: 0.35rem; }
.form-select:focus { border-color: var(--color-primary-dark); box-shadow: var(--shadow-focus); }
.form-label { color: #454b46; font-weight: 500; }
.form-text, .invalid-feedback { line-height: 1.5; }
.form-control::placeholder { color: #757970; opacity: 1; }
.input-group > .btn { display: inline-flex; align-items: center; justify-content: center; }
/* Tags in capitals, generally (owner, 2026-10-20): every badge, the colour tags
   and availability tags on the shop cards, the tag filter chips. Numbers,
   which most badges hold, are unmoved. */
.badge { font-weight: 600; line-height: 1.35; padding: 0.3em 0.6em; border-radius: 0.375rem; text-transform: uppercase; letter-spacing: .03em; }
.badge.bg-warning, .badge.bg-info { color: #27272a; }
.badge.bg-info-subtle { color: var(--bs-info-text-emphasis) !important; }
.badge.bg-warning-subtle { color: var(--bs-warning-text-emphasis) !important; }
.alert { border-radius: var(--radius-sm); padding: 0.85rem 1rem; }
.site-messages { width: 100%; padding: 1rem 1.5rem 0; margin: 0 auto; }
.site-messages .alert:last-child { margin-bottom: 0; }
.nav-tabs { --bs-nav-tabs-border-color: var(--color-border); gap: 0.25rem; }
.nav-tabs .nav-link { color: var(--color-muted); border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding: 0.65rem 0.85rem; font-weight: 500; }
.nav-tabs .nav-link.active { color: var(--color-primary-dark); background: transparent; border-color: var(--color-primary-dark); font-weight: 600; }
.nav-tabs .nav-link:hover { background: var(--color-primary-light); }
.dropdown-menu { border: 1px solid var(--color-border-secondary); border-radius: 0.625rem; padding: 0.4rem; box-shadow: var(--shadow-lg); }
.dropdown-item { border-radius: 0.35rem; padding: 0.5rem 0.7rem; font-size: 0.875rem; }
.dropdown-item .bi { margin-right: 0.35rem; }
.modal-content { border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.modal-header, .modal-footer { padding: 1rem 1.25rem; border-color: var(--color-border-secondary); }
.modal-body { padding: 1.25rem; }
.modal-title { font-size: 1.125rem; font-weight: 600; }
.table { --bs-table-hover-bg: #f7f5ef; --bs-table-border-color: var(--color-border-secondary); color: var(--color-text); font-variant-numeric: tabular-nums; }
.table > thead { background: #eeefeb; }
.table > thead > tr > th { font-size: 0.75rem; color: #575c55; font-weight: 600; vertical-align: middle; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.table > tbody > tr > td { vertical-align: middle; }
.page-link { color: var(--color-primary-dark); border-color: var(--color-border); }
.page-link:hover { color: var(--color-primary-dark); background: var(--color-primary-light); }
.page-item.active .page-link { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-text); }
.empty-state { padding: 3rem 1.5rem; border: 1px dashed var(--color-border); border-radius: var(--radius-md); background: #fff; text-align: center; color: var(--color-muted); }
.empty-state > .bi { display: block; font-size: 2rem; color: var(--color-primary-dark); margin-bottom: 0.75rem; }
/* Centred, as the old global `footer { text-align: center }` had it. That rule
   went when the footer became .site-footer and nothing replaced it, so all four
   columns silently went left-aligned (owner, 2026-10-01). */
.site-footer { background: var(--color-nav); border-top: 1px solid #424644; margin-top: 1rem; text-align: center; }
.site-footer .footer-social { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.site-footer h6 { font-size: 0.75rem; letter-spacing: 0.025em; }
.site-footer a:focus-visible { outline-color: var(--color-primary); }
/* The copyright and legal links, a strip of their own under the columns (owner, 2026-11-10). */
.site-footer .footer-bottom { border-top: 1px solid #424644; margin-top: 1.5rem; padding-top: 1rem; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem 1.5rem; }
.site-footer .footer-bottom a:hover { color: #fff !important; }
.app-feedback { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; width: min(28rem, calc(100vw - 2rem)); box-shadow: var(--shadow-lg); }

@media (max-width: 767.98px) {
    .site-main > :is(.container, .container-fluid) { padding: 1.25rem 1rem 2rem !important; }
    .site-main > :is(.container, .container-fluid) > .d-flex { flex-wrap: wrap; gap: 0.75rem; }
    .site-messages { padding: 1rem 1rem 0; }
    .navbar > .container-fluid { padding-left: 1rem !important; padding-right: 1rem !important; }
    .navbar-brand { margin-right: 0.5rem; }
    .navbar-brand-text { font-size: 1.0625rem; }
    .navbar-logo { height: 2rem; margin-right: 0.35rem; }
    .navbar-collapse { padding-top: 0.75rem; }
    .navbar .nav-link { margin: 0.1rem 0; }
    .nav-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
    .nav-tabs .nav-link { white-space: nowrap; }
    .card-body { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}

/*---------------------------------------------
  One corner radius for panels (owner, 2026-10-01)
---------------------------------------------*/
/* The worktop page showed four at once: the photo 16px, the cards and the
   canvas 12px, the stock alert 8px, and the accordion 6px -- Bootstrap's own
   default, which nothing had ever overridden. The tokens did not help: there
   are four of them, and --radius-xsm and --radius-sm are each duplicated as a
   raw value in a handful of rules.

   --radius-md (12px) is the one, because it is what the cards and the canvas
   already use, so this corrects the outliers rather than restyling the page.

   THE ACCORDION IS DELIBERATELY NOT IN THIS LIST. It was, and the owner
   preferred Bootstrap's own 6px on it (2026-10-01): at 12px the shapes panel
   reads as a stack of fat pills rather than a list of sections. So the page
   carries two radii on purpose -- 12px for things that are surfaces, 6px for
   the accordion -- rather than the four it had by accident.

   Buttons, inputs and badges keep their smaller radius for the same reason:
   12px on a 24px-tall badge is a pill, not a rounded rectangle. */
.card,
.alert,
.image-wrapper img,
.image-wrapper .card-img { border-radius: var(--radius-md); }

/* The empty-image box. Global rather than in storefront.css because
   image_fallback.js can put one anywhere an uploaded photograph failed to
   load, including the Management screens, which never load that stylesheet.
   Page-specific sizing (.catalog-card, .category-mosaic-tile,
   .designer-material-gallery) still comes from the page's own CSS. */
.gallery-placeholder { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.75rem; padding: 1rem; color: var(--color-muted); font-size: 0.8125rem; text-align: center; }
.gallery-placeholder > .bi { font-size: 2rem; opacity: 0.65; }
/* A missing photo in a small swatch: the icon only, inside the swatch (image_fallback.js). */
.gallery-placeholder.gallery-placeholder-small { padding: 0; gap: 0; overflow: hidden; }
.gallery-placeholder.gallery-placeholder-small > .bi { font-size: 1.1rem; }

/* The site bar -- one for staff and customers alike (owner, 2026-10-20) --
   and the live Open / Closed pill. The lower-right corner stays free for
   future chat. */
.site-navbar > .container-fluid { padding-inline: 1.5rem !important; }
.navbar-identity { display: flex; align-items: center; gap: .5rem; position: relative; }
.navbar-language { display: flex; align-items: center; }
.business-status summary [data-business-short-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site-navbar .navbar-brand { display: flex; align-items: center; margin-right: 0; }
.site-navbar .navbar-brand-text { font-size: 1.0625rem; }
.site-navbar .navbar-logo { height: 2rem; margin-right: .5rem; }
/* When the row runs short (a narrow window), the logo, the panel button and
   the language switch keep their size; the Open badge gives way, cutting its
   word with "..." -- the logo was being squashed sideways (owner, 2026-11-15). */
.site-navbar .navbar-logo { width: auto; flex-shrink: 0; }
.site-navbar :is(.navbar-brand, .staff-nav-toggle, .navbar-language, .navbar-cart, .navbar-toggler) { flex-shrink: 0; }
.site-navbar .navbar-identity, .site-navbar .business-status-item, .site-navbar .business-status, .site-navbar .business-status summary { min-width: 0; }
/* No nowrap on the links (owner, 2026-10-20: "accept wrap"): should the row
   ever be too tight, a link wraps and the bar grows rather than spilling
   past the edge. Nothing wraps between 1200 and 1920px in any language,
   signed in or not (measured 2026-10-20). The account name keeps its own
   nowrap: an ellipsis needs one line. */
.site-navbar .nav-link { font-size: .875rem; padding: .5rem .6rem !important; margin-inline: .125rem; }
.site-navbar #userDropdown > span { display: inline-block !important; max-width: 9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
/* The live Open / Closed pill, in capitals like the links beside it (owner, 2026-10-20). */
.business-status summary { text-transform: uppercase; letter-spacing: .03em; }
.business-status summary { display: flex; align-items: center; gap: .4rem; color: #eeeae3; font-size: .75rem; line-height: 1.4; cursor: pointer; padding: .4rem .5rem; border: 1px solid #ffffff30; border-radius: .4rem; }
.business-hours-current { margin: .75rem 0 .25rem; font-size: .875rem; font-weight: 600; }
.business-status summary::-webkit-details-marker { display: none; }
.business-status summary:focus-visible { outline: 2px solid #e19f4e; outline-offset: 4px; }
.business-status-dot { flex: 0 0 .45rem; height: .45rem; border-radius: 50%; background: #b9b9b2; }
.business-status-dot.is-open { background: #89c79d; }
.business-hours-panel { position: absolute; top: 100%; left: 0; width: 19rem; max-width: calc(100vw - 3rem); padding: 1.25rem; background: #fff; color: var(--color-text); border: 1px solid var(--color-border); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 1050; }
.business-hours-panel a { display: block; margin-top: .5rem; }
/* The main address's numbers, one line above the non-working days link (owner, 2026-11-03). */
.business-hours-phones { margin-top: .75rem; }
.business-hours-panel a[hidden] { display: none; }
/* Between 1200 and 1400px the row has no room for a name beside the account
   icon, for staff and customers alike; and the visitor's five Georgian items,
   icons included, fit at 1200px only with the gutter and the link padding
   pulled in. Measured 2026-10-20: a 58px bar from 1200 to 1920px, nothing
   wrapped, in all three languages, signed in or not. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
    .site-navbar #userDropdown > span { display: none !important; }
    .site-navbar > .container-fluid { padding-inline: 1rem !important; }
    .site-navbar .nav-link { padding-inline: .45rem !important; margin-inline: 0; }
}
@media (max-width: 1199.98px) {
    .site-navbar .navbar-collapse { padding-top: .5rem; }
    .site-navbar .navbar-nav { align-items: stretch !important; }
}
/* The logo alone below 620px (owner, 2026-11-15), so the bar is one row: the
   panel button, logo, Open badge, language, cart and menu did not fit beside
   the name (staff in Georgian wrapped up to 619px). Hidden from sight only --
   the logo's alt is empty, so the name still gives the link its spoken name. */
@media (max-width: 619.98px) {
    .site-navbar .navbar-brand-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
    .site-navbar .navbar-logo { margin-right: 0; }
}
@media (max-width: 575.98px) {
    .site-navbar > .container-fluid { padding-inline: .75rem !important; }
    .site-navbar .navbar-identity { gap: .25rem; }
    .site-navbar .navbar-logo { height: 1.75rem; }
    .site-navbar .navbar-toggler { padding: .35rem; }
    .business-status summary { max-width: 6rem; font-size: .6875rem; }
}
/* The smallest phones (360px Androids): a staff bar in Georgian was 22px too
   wide for one row, so the badge, language switch and cart give a little each. */
@media (max-width: 399.98px) {
    .business-status summary { max-width: 4.5rem; padding-inline: .4rem; gap: .3rem; }
    .site-navbar .navbar-language .nav-link { padding-inline: .3rem !important; }
    .site-navbar .navbar-cart { padding-inline: .3rem !important; gap: .2rem; margin-right: 0; }
}
#contact { scroll-margin-top: 7rem; }
/* The holidays page borrows the navbar's status dot for its live line (2026-10-19). */
.holidays-page .business-status-dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .4rem; vertical-align: middle; }
/* The two notices under the hours: smaller than the lines above, in the accent colour so they are read, not skimmed (owner, 2026-10-19). */
.holidays-page .holidays-note { font-size: .8125rem; font-weight: 500; }
.holidays-page .holidays-notices { max-width: 32rem; }
/* Today's own row, so a list of fourteen does not have to be read against a
   calendar (owner, 2026-10-20). The accent colour the page already uses for
   its notices, plus a word -- colour alone would say nothing to a reader who
   cannot see it, and nothing at all in a printout. */
.holidays-page .list-group-item.is-today { color: var(--color-primary-dark); }
.holidays-page .list-group-item.is-today span { font-weight: 600; }
.holidays-page .today-mark {
    margin-left: .4rem; padding: .05rem .4rem; border-radius: 999px;
    background: var(--color-primary-light); color: var(--color-primary-dark);
    font-size: .6875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: .04em; vertical-align: middle;
}
/* Touch sizing applies to shop touchscreens as well as small phones. */
@media (pointer: coarse) {
    .site-navbar .navbar-toggler { min-width: 44px; min-height: 44px; }
    .navbar :is(.nav-link, .dropdown-item, summary),
    .storefront :is(.btn, .category-link, .availability-link, .catalog-active-filters a),
    .commerce-page :is(.btn, input:not([type=checkbox]):not([type=radio]), select),
    .business-hours-panel a { min-height: 44px; }
    .business-hours-panel a { display: flex; align-items: center; }
}

/* ---- Status tones (owner, 2026-10-20) ----------------------------------
   Bootstrap's cyan "info", yellow "warning" and green "success" sat on a
   warm beige-and-amber site like stickers. Alerts, contextual text and badges
   now take the site's own tones (styles.css): ok, wait -- the brand amber,
   for anything that takes time or care -- stop, and a neutral note. Flash
   messages, the designer's availability banners, the cart's warnings and the
   console's status badges all go through these. */
.alert { border-width: 1px; }
.alert-success { background: var(--color-ok-light); border-color: var(--color-ok-border); color: var(--color-ok); }
.alert-info { background: var(--color-note-light); border-color: var(--color-border); color: var(--color-text); }
.alert-warning { background: var(--color-wait-light); border-color: var(--color-wait-border); color: var(--color-wait); }
.alert-danger { background: var(--color-stop-light); border-color: var(--color-stop-border); color: var(--color-stop); }
.alert .alert-link, .alert a:not(.btn) { color: inherit; }
.text-success { color: var(--color-ok) !important; }
.text-info, .text-warning { color: var(--color-wait) !important; }
.text-danger { color: var(--color-stop) !important; }
.badge.bg-success { background-color: var(--color-ok) !important; color: #fff; }
.badge.bg-info { background-color: var(--color-note-light) !important; color: var(--color-text) !important; border: 1px solid var(--color-border); }
.badge.bg-warning { background-color: var(--color-wait-light) !important; color: var(--color-wait) !important; border: 1px solid var(--color-wait-border); }
.badge.bg-danger { background-color: var(--color-stop) !important; color: #fff; }
.badge.bg-success-subtle { background-color: var(--color-ok-light) !important; color: var(--color-ok) !important; border-color: var(--color-ok-border) !important; }
.badge.bg-danger-subtle { background-color: var(--color-stop-light) !important; color: var(--color-stop) !important; border-color: var(--color-stop-border) !important; }
.badge.bg-warning-subtle { background-color: var(--color-wait-light) !important; color: var(--color-wait) !important; border-color: var(--color-wait-border) !important; }
/* One-line status text, for scripts that write a state: the popup's line. */
.status-ok { color: var(--color-ok); font-weight: 600; }
.status-wait { color: var(--color-wait); font-weight: 600; }
.status-off { color: var(--color-muted); font-weight: 600; }

/* The configurator popup (owner, 2026-10-20): the category as an eyebrow
   over the colour code, the status line and the price in the tones above,
   the dropdown labels as eyebrows, a quiet divider. */
.cfg-gallery :is(.carousel-inner, img, .gallery-placeholder) { height: 220px; }
.cfg-gallery :is(img, .gallery-placeholder) { object-fit: cover; }
/* Taller where the popup is wide (owner, 2026-11-17); phones keep 220. The height follows
   the screen's height too, so the whole popup fits a laptop screen (owner's follow-up) --
   since the one-column layout (2026-11-25) the name, price, choices and buttons all sit
   under the picture, so it leaves them more room. */
@media (min-width: 768px) { .cfg-gallery :is(.carousel-inner, img, .gallery-placeholder) { height: clamp(220px, calc(100vh - 560px), 300px); } }
/* 600px from a tablet up -- a card, not a page (owner, 2026-11-25: 800 was too wide);
   below 576px Bootstrap's full-width phone popup stays. */
@media (min-width: 576px) { #variantsModal .modal-dialog { --bs-modal-width: 600px; } }
/* On a computer: the picture (or its "Image Not Available" box) and the name on the left
   (4/7), the price and the choices on the right, the button bar under both -- the same size
   for every colour (owner, 2026-11-25). 1000px from the moment it opens, spinner included:
   keyed on the loaded configurator it opened at 600 and then jumped wide (review, 2026-11-25). */
@media (min-width: 992px) {
    #variantsModal .modal-dialog { --bs-modal-width: 1000px; }
    .cfg-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 3fr); column-gap: 2rem; align-items: start; }
    .cfg-layout > .cfg-actions { grid-column: 1 / -1; }
    /* minmax(0, ...): a column never grows past its share for a long status line or a missing
       picture's placeholder, which squeezed the choices (owner, 2026-11-25). */
    /* The line between the name and the price is the column gap now. */
    .cfg-layout .cfg-details-divider { display: none; }
    .cfg-layout .cfg-gallery :is(.carousel-inner, img, .gallery-placeholder) { height: clamp(240px, calc(100vh - 380px), 340px); }
}

/* The full-screen picture viewer (static/js/image_lightbox.js, 2026-11-17). */
[data-lightbox] .carousel-item img { cursor: zoom-in; }
.image-lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; touch-action: pan-y pinch-zoom; }
.image-lightbox[hidden], .image-lightbox [hidden] { display: none !important; }
.image-lightbox-img { max-width: 100vw; max-height: 100vh; width: auto; height: auto; object-fit: contain; user-select: none; }
.image-lightbox-btn { position: absolute; border: 0; background: rgba(0, 0, 0, .45); color: #fff; width: 3rem; height: 3rem; border-radius: 50%; font-size: 1.6rem; line-height: 1; display: flex; align-items: center; justify-content: center; }
.image-lightbox-btn:hover, .image-lightbox-btn:focus-visible { background: rgba(255, 255, 255, .25); }
.image-lightbox-close { top: .75rem; right: .75rem; }
.image-lightbox-prev { left: .75rem; top: 50%; transform: translateY(-50%); }
.image-lightbox-next { right: .75rem; top: 50%; transform: translateY(-50%); }
.image-lightbox-count { position: absolute; bottom: .75rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: .85rem; background: rgba(0, 0, 0, .45); padding: .15rem .6rem; border-radius: 1rem; }
.cfg-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 .25rem; }
.cfg-status { font-size: .9rem; margin-bottom: .5rem; }
/* The category's description under the colour code (owner, 2026-12-02): three lines, the rest behind "more". */
.cfg-category-description { margin: 0 0 .25rem; }
.cfg-description-text { font-size: .875rem; color: var(--color-muted); margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.cfg-category-description.is-open .cfg-description-text { display: block; -webkit-line-clamp: unset; line-clamp: none; overflow: visible; }
.cfg-description-more { font-size: .875rem; }
/* The colour popup's title as a heading, like the page titles (owner, 2026-11-11);
   other modal titles keep their case. georgian_capitals.js turns it to Mtavruli. */
#variantsModalTitle { text-transform: uppercase; letter-spacing: .03em; font-weight: 700; }
.cfg-price-block { margin-bottom: .5rem; }
.cfg-price { font-size: .95rem; }
.cfg-price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .2rem 0; border-bottom: 1px solid var(--color-border, #eee); }
.cfg-price-row:last-child { border-bottom: 0; }
.cfg-price-row strong { color: var(--color-primary-dark); font-weight: 700; white-space: nowrap; }
/* T-309 step 2b: widths down, ovals across, for the chosen core; the cell the designer opens on is marked. */
.cfg-price-grid { overflow-x: auto; }
.cfg-grid { font-size: .85rem; width: 100%; }
.cfg-grid th, .cfg-grid td { padding: .2rem .25rem; white-space: nowrap; }
/* One header line (owner, 2026-11-27); a heading wraps only where a phone has no room for it. */
.cfg-grid thead th { font-size: .72rem; white-space: normal; vertical-align: bottom; }
.cfg-grid td.cfg-grid-here { background: var(--bs-warning-bg-subtle); font-weight: 700; }
.cfg-label { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-muted); margin-bottom: .35rem; }
.cfg-type-badge { background: var(--color-note-light); color: var(--color-muted); border: 1px solid var(--color-border); }
.cfg-divider { border: 0; border-top: 1px solid var(--color-border); margin: 1rem 0; opacity: 1; }
/* The popup's buttons as a bar along its bottom edge, the main one at the right (owner,
   2026-11-25, layout D): edge to edge across the body's padding, and kept in view at the
   bottom of the screen while a tall popup scrolls. On a phone they stack, main one on top. */
#variantsModal .cfg-actions {
    position: sticky; bottom: 0; z-index: 2;
    display: flex; justify-content: flex-end; gap: .5rem;
    margin: 1.25rem calc(-1 * var(--bs-modal-padding)) calc(-1 * var(--bs-modal-padding));
    padding: .75rem var(--bs-modal-padding);
    background: var(--bs-modal-bg); border-top: 1px solid var(--color-border);
    border-radius: 0 0 var(--bs-modal-inner-border-radius) var(--bs-modal-inner-border-radius);
}
@media (max-width: 575.98px) {
    #variantsModal .cfg-actions { flex-direction: column-reverse; }
}

/* A list page's search box (owner, 2026-10-31): a magnifier inside the
   placeholder, gone once something is typed, like the placeholder text.
   An embedded image, which the CSP's img-src allows (data:). */
.search-with-icon:placeholder-shown {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='%2373776e' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85zm-5.242 1.156a5 5 0 1 1 0-10 5 5 0 0 1 0 10'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: .6rem center;
    background-size: 14px 14px;
    padding-left: 2rem;
}

/* A Tom Select search box that stays one line (wrapperClass 'ts-one-line').
   With a long worktop picked, clicking back into the box dropped the search
   input onto a second line -- three lines in the Add line pop-up -- because
   the input is a sibling of the value and the control wraps. The value is
   clipped the way a native select clips it, and while something is typed it
   steps aside (the script adds .ts-typing) so the typing gets the whole line.
   The same treatment the stock filters have had (management.css). */
.ts-wrapper.ts-one-line.single .ts-control {
    flex-wrap: nowrap;
}

.ts-wrapper.ts-one-line.single .ts-control > .item {
    display: block;
    flex: 0 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ts-wrapper.ts-one-line.single .ts-control > input {
    flex: 1 1 2rem;
    min-width: 0;
}

.ts-wrapper.ts-one-line.ts-typing.single .ts-control > .item {
    display: none;
}

/* Info tip (owner, 2026-11-11: "no long descriptions; if one is needed, put it
   behind an info icon"). Templates include
   partials/_info_tip.html with `text`. Pure CSS -- no script, so nothing for the CSP to
   refuse: hover shows it, and a tap focuses it (tabindex) and shows it too. */
.info-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    color: var(--bs-secondary-color, #6c757d);
    font-size: .85em;
    cursor: help;
    vertical-align: middle;
}
.info-tip:focus { outline: none; }
.info-tip:focus-visible > .bi { outline: 2px solid var(--bs-primary); border-radius: 50%; }
.info-tip-text {
    position: absolute;
    z-index: 1080;
    /* Opens to the right of the icon: centred, a tip by a popup's left edge
       was cut off (2026-11-11). */
    left: -.4rem;
    bottom: calc(100% + 6px);
    width: max-content;
    max-width: min(280px, 80vw);
    padding: .4rem .55rem;
    border-radius: .35rem;
    background: #2b2b2b;
    color: #fff;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    /* display, not visibility: a hidden tip by the right edge still took
       room and gave the page a sideways scroll on a tablet (2026-11-11). */
    display: none;
    pointer-events: none;
}
/* A faded or positioned card is a layer of its own, and the next card was
   drawn over the tip (handover board, 2026-11-11): while a tip shows, its
   card comes to the top. */
.card:has(.info-tip:hover), .card:has(.info-tip:focus-within),
.ho-card:has(.info-tip:hover), .ho-card:has(.info-tip:focus-within),
.list-group-item:has(.info-tip:hover), .list-group-item:has(.info-tip:focus-within) {
    position: relative;
    z-index: 1070;
}
/* A card that opens on a click anywhere (Bootstrap's stretched-link lays an
   empty layer, z-index 1, over the whole card): its ⓘ goes above that
   layer, or the mouse is on the link and the tip never shows (Stock ->
   Needs attention, 2026-11-15). Only there: elsewhere the tip keeps no
   layer of its own, so nothing in a table or panel is drawn over it. */
.card:has(.stretched-link) .info-tip,
.ho-card:has(.stretched-link) .info-tip,
.list-group-item:has(.stretched-link) .info-tip {
    z-index: 2;
}
/* No room on the right: behaviours.js slides the tip left, inline, as far
   as it must to stay inside the screen and its panel, card or table. */
.info-tip:hover .info-tip-text,
.info-tip:focus .info-tip-text,
.info-tip:focus-within .info-tip-text {
    display: block;
}

/* The footer spans the screen like the pages (2026-11-12), with the pages' own side margins. */
.site-footer-inner { padding-left: 1.5rem; padding-right: 1.5rem; }
@media (min-width: 1920px) { .site-footer-inner { padding-left: 2.5rem; padding-right: 2.5rem; } }
@media (max-width: 767.98px) { .site-footer-inner { padding-left: 1rem; padding-right: 1rem; } }

/* Column widths from 1920px (2026-11-12): Bootstrap's widest step, xxl, starts at
   1400px -- too early for a page's side column to drop to a quarter. Used by
   main + side layouts (order, checkout, edit order) so the side column does
   not grow to 800px on a 2560px screen. */
@media (min-width: 1920px) {
    .col-3xl-9 { flex: 0 0 auto; width: 75%; }
    .col-3xl-3 { flex: 0 0 auto; width: 25%; }
    .col-3xl-4 { flex: 0 0 auto; width: 33.33333333%; }
    .col-3xl-2 { flex: 0 0 auto; width: 16.66666667%; }
}

/* Card grids: five across from 1920px, six from 2400px (2026-11-12) -- the
   shop's colour cards stayed four across and grew to 530px each. */
@media (min-width: 1920px) { .row-cols-3xl-5 > * { flex: 0 0 auto; width: 20%; } }
@media (min-width: 2400px) { .row-cols-4xl-6 > * { flex: 0 0 auto; width: 16.66666667%; } }

/* A section switcher above a page title (2026-11-12: Production setup | Cutting |
   Cutting margins): small pills, so it reads apart from a page's own tabs. */
.settings-section-tabs { gap: .35rem; }
.settings-section-tabs .nav-link { padding: .3rem .8rem; font-size: .85rem; border-radius: 999px; color: var(--color-muted); border: 1px solid var(--color-border); }
.settings-section-tabs .nav-link:hover { color: var(--color-primary-dark); border-color: var(--color-primary); }
.settings-section-tabs .nav-link.active { background: var(--color-primary-light); color: var(--color-primary-dark); border-color: var(--color-primary); font-weight: 600; }

/* The staff side panel (owner, 2026-11-15) -- templates/_staff_nav_panel.html.
   Dark like the bar it opens from, the page you are on in the bar's accent.
   Kept open ("pinned") it becomes a column on the left from 1200px up, the
   page moving over by its width; below that it always slides over the page. */
.staff-nav { --staff-nav-width: 17.5rem; width: var(--staff-nav-width) !important; background: var(--color-nav); color: #eeeae3; border-right: 1px solid #ffffff1a !important; }
.staff-nav-header { padding: .85rem 1rem .6rem; border-bottom: 1px solid #ffffff1a; }
.staff-nav-header .offcanvas-title { font-size: .9375rem; font-weight: 600; }
.staff-nav-pin { color: #eeeae3; border: 1px solid #ffffff30; padding: .2rem .45rem; }
.staff-nav-pin:hover, .staff-nav-pin:focus-visible { color: #fff; background: #ffffff1f; }
.staff-nav-pin[aria-pressed="true"] { color: var(--color-primary); background: rgba(var(--color-primary-rgb), .16); border-color: transparent; }
.staff-nav-body { padding: .5rem .5rem 1.5rem; }
.staff-nav-section + .staff-nav-section { margin-top: .75rem; }
/* The Management Console link closes the panel, under a line instead of a heading (owner, 2026-11-15). */
.staff-nav-section[data-section="console"] { padding-top: .6rem; border-top: 1px solid #ffffff1a; }
.staff-nav-section-title { margin: 0 0 .2rem; padding: .35rem .6rem 0; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #ffffff8c; }
.staff-nav-entry { display: flex; align-items: center; gap: .6rem; padding: .4rem .6rem; border-radius: var(--radius-sm); color: #eeeae3; font-size: .875rem; text-decoration: none; line-height: 1.3; }
.staff-nav-entry > .bi { flex: 0 0 1rem; font-size: 1rem; opacity: .8; }
.staff-nav-entry:hover, .staff-nav-entry:focus-visible { color: #fff; background: #ffffff1f; }
.staff-nav-entry.active { color: var(--color-primary); background: rgba(var(--color-primary-rgb), .16); font-weight: 600; }
.staff-nav-entry.active > .bi { opacity: 1; }
/* The bar's button: the nav links' look, a dot when a counter inside is waiting. */
.staff-nav-toggle { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: .35rem .5rem; color: #eeeae3; background: none; border: 1px solid #ffffff30; border-radius: .4rem; font-size: 1.1rem; line-height: 1; }
.staff-nav-toggle:hover, .staff-nav-toggle:focus-visible { color: #fff; background: #ffffff1f; }
.staff-nav-dot { position: absolute; top: -.2rem; right: -.2rem; width: .6rem; height: .6rem; border-radius: 50%; background: var(--bs-danger, #dc3545); box-shadow: 0 0 0 2px var(--color-nav); }
/* The cart: icon and count, outside the collapsing list (owner, 2026-11-15). */
.site-navbar .navbar-cart { display: inline-flex; align-items: center; gap: .3rem; color: rgba(255, 255, 255, .85); }
@media (max-width: 1199.98px) {
    .site-navbar .navbar-cart { margin-left: auto; margin-right: .25rem; }
}
@media (min-width: 1200px) {
    html.staff-nav-pinned body { padding-left: 17.5rem; }
    html.staff-nav-pinned .staff-nav { transform: none !important; visibility: visible !important; z-index: 1035; }
    html.staff-nav-pinned .staff-nav-toggle,
    html.staff-nav-pinned .staff-nav-close { display: none; }
}
@media (pointer: coarse) {
    .staff-nav-toggle { min-width: 44px; min-height: 44px; }
    .staff-nav-entry { padding-block: .6rem; }
}
@media print {
    .staff-nav, .staff-nav-toggle { display: none !important; }
    html.staff-nav-pinned body { padding-left: 0 !important; }
}
