/* Catalogue-only styles; operational tables and printable sheets are untouched. */
.storefront-hero {
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: #eeece5;
}
/* Uppercase, at the owner's request (2026-10-01). Georgian is unicase -- its
   letters have no capital forms -- so text-transform does nothing there and
   the Georgian heading is unchanged; English and Russian get the caps. The
   negative letter-spacing comes back to 0 because tracking tuned for lowercase
   is too tight once every letter is a capital. */
.storefront-hero h1 { max-width: 44rem; font-size: clamp(1.5rem, 2.5vw, 2.25rem); letter-spacing: 0; text-transform: uppercase; line-height: 1.25; }
/* --color-primary-dark, not --color-primary: the brand orange itself is
   rgb(225,159,78), which against the hero's #eeece5 is about 1.8:1 -- under the
   3:1 that large text needs, so it would read as washed out rather than
   emphasised. The dark tone is the same hue and is what headings already use
   elsewhere (owner, 2026-10-01). */
.storefront-hero .hero-accent { color: var(--color-primary-dark); }
.storefront-hero p { max-width: 40rem; color: var(--color-muted); line-height: 1.6; margin: .75rem 0 1.25rem; }
/* The photograph across the whole hero, the words on a light panel over its
   left side (owner, 2026-12-02). The panel is the hero's own paper colour,
   nearly opaque, so the heading keeps the contrast it was tuned for above
   whatever the photograph shows behind it. */
.storefront-hero-with-image { position: relative; display: flex; align-items: center; min-height: clamp(22rem, 34vw, 32rem); padding: clamp(1rem, 3vw, 2.5rem); overflow: hidden; }
.storefront-hero-copy { align-self: center; }
.storefront-hero-with-image .storefront-hero-copy { position: relative; z-index: 1; max-width: 42rem; padding: clamp(1.25rem, 2.5vw, 2rem); background: rgba(238, 236, 229, .92); border-radius: var(--radius-md); box-shadow: 0 .5rem 1.75rem rgba(0, 0, 0, .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.storefront-hero-visual { position: absolute; inset: 0; margin: 0; background: #d9d6ce; }
.storefront-hero-visual img { display: block; width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.catalog-active-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.catalog-active-filters a { display: inline-flex; gap: .75rem; align-items: center; padding: .5rem .75rem; background: var(--color-primary-light); color: var(--color-primary-dark); border: 1px solid #dfcbb2; border-radius: .5rem; text-decoration: none; font-size: .875rem; }
/* "Clear filters" sits with the chips since the count line went (2026-10-20): a plain link, not another chip. */
.catalog-active-filters .catalog-clear-filters { background: transparent; border-color: transparent; color: var(--color-muted); text-decoration: underline; padding-left: .25rem; }
/* A phone has no room for both: the photograph on top, the words under it. */
@media (max-width: 767.98px) {
    .storefront-hero-with-image { flex-direction: column-reverse; align-items: stretch; min-height: 0; padding: 0; }
    .storefront-hero-visual { position: relative; inset: auto; aspect-ratio: 16 / 10; }
    .storefront-hero-with-image .storefront-hero-copy { max-width: none; background: none; box-shadow: none; border-radius: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
/* 17rem, not 15 (owner, 2026-10-01): "ავანგარდი (ე.წ ჯისოლო)" wrapped onto a
   second line in the category list and sat two lines tall among six one-line
   neighbours. Measured live -- the name needs 256px and the list was 240 -- so
   16rem would clear it with nothing to spare and the next category the owner
   adds would wrap again. Long names still wrap rather than truncate: this is
   the shop's own navigation, and a category you cannot read the name of is
   worse than a tall row. */
.catalog-layout { display: grid; grid-template-columns: 17rem minmax(0, 1fr); gap: 1.5rem; align-items: start; }
.catalog-results, .catalog-sidebar { min-width: 0; }
.catalog-results .catalog-empty { width: 100%; }
/* Same reasoning as the header rule below: the sidebar's, not one card's. */
.catalog-sidebar .card-body { padding: 0.5rem; }
/* Every card heading in the sidebar, not just the category panel's. The rule
   used to name .catalog-category-panel, so when the Availability card was added
   beside it (2026-10-01) its h2 fell back to the default heading size and wrapped
   onto two lines. The size belongs to the sidebar, which also means the next card
   added here does not have to know about a wrapper class. */
.catalog-sidebar .card-header { font-size: 0.875rem; margin: 0; }
.catalog-sidebar .list-group-item { padding: 0; border-radius: 0.375rem; }
/* .availability-link shares the look but not the contract: a test asserts that
   every .category-link carries the current search and tag, and these carry a
   different set (2026-10-01). Same class for both would have widened what that
   rule means without anyone deciding to. */
.catalog-sidebar :is(.category-link, .availability-link) { padding: 0.75rem; gap: 0.5rem; font-size: 0.875rem; }
.catalog-sidebar :is(.category-link, .availability-link):hover { background: var(--color-primary-light); }
.catalog-sidebar :is(.category-link, .availability-link) .badge { flex-shrink: 0; }
.catalog-filter-toggle { display: none; }
.catalog-tag-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.25rem; }
.catalog-card { position: relative; transition: border-color 0.15s, box-shadow 0.15s; }
.catalog-card:hover, .catalog-card:focus-within { border-color: #c79a67; box-shadow: var(--shadow-md); }
.catalog-card .catalog-card-title { font-size: 1rem; margin: 0; overflow-wrap: anywhere; }
/* "from 400 ₾" under a colour's name (QA C-11). */
.catalog-card .catalog-card-price { font-size: .85rem; font-weight: 600; color: var(--color-primary, #b5651d); }
.catalog-card-link { color: var(--color-text); text-decoration: none; display: flex; gap: 0.75rem; align-items: baseline; justify-content: space-between; }
.catalog-card-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius-md); }
.catalog-card-link:focus-visible { outline: none; }
.catalog-card-link:focus-visible::after { outline: 2px solid var(--color-primary-dark); outline-offset: 3px; }
.catalog-card .carousel, .catalog-card .gallery-placeholder { aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius-md) - 1px) calc(var(--radius-md) - 1px) 0 0; background: #eeefeb; }
.catalog-card .carousel-inner, .catalog-card .carousel-item, .catalog-card img.card-img-top { height: 100%; }
/* Gallery controls sit above the stretched title link, never inside it. */
.catalog-card .carousel-control-prev, .catalog-card .carousel-control-next, .catalog-card .carousel-indicators { z-index: 2; }
.catalog-card .carousel-control-prev, .catalog-card .carousel-control-next { width: 2.75rem; opacity: 1; }
.catalog-card .carousel-control-prev-icon, .catalog-card .carousel-control-next-icon { background-color: #292c2ccc; border-radius: 50%; background-size: 60%; }
/* 30x23.6 measured, just under the 24x24 minimum on the one axis. Bootstrap's
   transparent borders carry the hit area, not the visible bar. */
.catalog-card .carousel-indicators button { min-height: 0.25rem; border-top-width: 11px; border-bottom-width: 11px; }
/* .gallery-placeholder itself now lives in components.css: image_fallback.js
   can put one on any page, including the Management screens, which never
   load this stylesheet. */
/* The availability badge on a colour card (owner, 2026-10-01). Drawn only when
   the answer is not "in stock", so it reads as a warning rather than a label
   every card carries. Colour carries the meaning: amber for "you can have it,
   just not today", grey for "you cannot". */
.stock-state { display: inline-block; margin-top: 0.75rem; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 0.375rem; line-height: 1.4; text-transform: uppercase; letter-spacing: .03em; }
.stock-state-out { background: #e9e8e4; color: #5c5f58; }
/* Staff only: a colour with a faulty finished piece on the shelf (2026-10-20). */
.stock-state-faulty { background: #f6e3e3; color: #7a2e2e; }
/* A separator between the staff-only option and the four everyone sees. */
.catalog-staff-filter { border-top: 1px dashed #dfcbb2 !important; margin-top: .25rem; padding-top: .5rem; }
/* A board with a different decor on each face (owner, 2026-10-19). */
.stock-state-sides { background: #e6ebf1; color: #35506b; }
.color-tag-list { display: flex; flex-wrap: wrap; gap: 0.375rem; margin-top: 0.75rem; }
.color-tag-badge { display: inline-block; font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.5rem; border-radius: 0.375rem; line-height: 1.4; overflow-wrap: anywhere; text-transform: uppercase; letter-spacing: .03em; box-shadow: inset 0 0 0 1px rgba(39, 39, 42, .12); }
.catalog-tag-filters .btn { text-transform: uppercase; letter-spacing: .03em; }
/* A colour-family chip carries a dot of its colour (owner, 2026-12-02); the ring keeps white visible on white. */
.catalog-tag-dot { display: inline-block; width: .8rem; height: .8rem; margin-right: .4rem; border-radius: 50%; vertical-align: -.1rem; box-shadow: 0 0 0 1px rgba(39, 39, 42, .25); }
@media (max-width: 991.98px) {
    .catalog-layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
    .catalog-filter-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; margin-bottom: 0.75rem; }
    .catalog-sidebar #searchForm { margin-bottom: 0.75rem !important; }
}
@media (max-width: 575.98px) {
    .storefront-hero { margin-bottom: 1.5rem; }
    .catalog-card .card-body { padding: 0.875rem; }
    .catalog-tag-filters { gap: 0.375rem; }
}

/* The About page: the company's story beside its photographs (2026-10-08).
   One grid, so the text column stays a readable width while the pictures
   take the rest. Below lg they stack with the text first -- somebody who
   arrived from the footer link came to read it. */
/* The story in a card centred under the photographs, about 90 characters
   to a line, the lines left-aligned so each starts in the same place
   (owner, 2026-12-02: full width and centred read badly). */
.about-text { max-width: 56rem; margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.75rem); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.about-text p { line-height: 1.8; margin-bottom: 1.1rem; }
.about-text p:last-child { margin-bottom: 0; }
/* The "Why choose us?" cards beside the story (owner, 2026-12-02): the home page's cards (homepage.css), one under
   another in a column on the right; under the story, side by side, on a narrow screen. */
.about-story-with-facts { display: grid; gap: clamp(1rem, 2vw, 2rem); max-width: 82rem; margin: 0 auto; }
.about-story-with-facts .about-text { max-width: none; margin: 0; }
.about-facts { --home-paper: var(--color-surface); --home-line: var(--color-border); min-width: 0; }
.about-facts h2 { font-size: 1.15rem; margin: 0 0 .85rem; }
.about-facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: .75rem; }
.about-facts-list > li { display: grid; min-width: 0; }
@media (min-width: 992px) {
    .about-story-with-facts { grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem); align-items: start; }
    .about-facts-list { grid-template-columns: 1fr; }
}
/* The photographs as a band over the story (owner, 2026-12-02): one block,
   its outer corners rounded like every card on the site, square inside,
   3px between them, in the home hero's frame -- its width, height, corners
   and border, so the two pages open alike (owner, 2026-12-02). On a phone
   the first is full width (the hero's 16:10) and the others
   share a row under it; from a tablet up the first takes the left half and
   the others the right one -- one filling it, two stacked, three as one
   wide over two, four as a 2 x 2. A click opens them full screen; the
   fifth says how many more there are. */
.about-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; margin: 1rem 0 2rem; }
.about-band-photo { position: relative; margin: 0; overflow: hidden; background: #eeefeb; min-height: 0; }
.about-band-photo img { width: 100%; height: 100%; display: block; cursor: zoom-in; }
.about-band-more { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .45); color: #fff; font-size: 1.35rem; font-weight: 600; pointer-events: none; }
@media (max-width: 767.98px) {
    .about-band-photo { aspect-ratio: 1 / 1; }
    .about-band-lead, .about-band-2 .about-band-photo { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
    .about-band-3 .about-band-photo:not(.about-band-lead) { grid-column: span 2; }
    .about-band-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
    .about-band { grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(22rem, 34vw, 32rem); }
    .about-band-lead { grid-column: span 2; grid-row: 1 / -1; }
    .about-band-1 .about-band-lead { grid-column: 1 / -1; }
    .about-band-2 .about-band-photo:not(.about-band-lead) { grid-column: span 2; grid-row: 1 / -1; }
    .about-band-3 .about-band-photo:not(.about-band-lead),
    .about-band-4 .about-band-photo:nth-child(2) { grid-column: span 2; }
}
/* The home page's short version of the story, edge to edge like the hero
   and the groups above it (owner, 2026-12-02; it was capped at 76rem and
   centred). The paragraph keeps its own readable width; the photographs
   take the rest. */
/* One card, the words on the left and the photographs filling its right
   part to the edge, its corners rounding theirs; no rule above it, as
   there is none between the cards above (owner, 2026-12-02). */
.home-about { margin: 0 0 1rem; }
.home-about-inner { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); overflow: hidden; }
/* The words with room on every side, centred against the photographs. */
.home-about-text { padding: clamp(1.5rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.home-about-text h2 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin: 0 0 0.85rem; letter-spacing: 0; }
.home-about-text p { max-width: 42rem; line-height: 1.8; color: var(--color-muted); margin-bottom: 1.25rem; }
/* One photograph, the gallery's first, filling the card's right part to its
   edge (owner, 2026-12-02): beside two others it was a tall narrow box that
   cut a wide picture's sides off. The card rounds its outer corners. */
.home-about-photos { display: grid; height: clamp(16rem, 30vw, 30rem); }
.home-about-photo { margin: 0; overflow: hidden; background: #eeefeb; min-height: 0; }
.home-about-photo img { width: 100%; height: 100%; display: block; }
@media (min-width: 992px) {
    .home-about-with-photos { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
}

/* The page edge to edge, as the home page (owner, 2026-12-02; it was capped
   at 90rem and centred): the paragraphs keep their own width, the
   photographs take the rest, and the details row's line runs the full width
   above its centred columns. */
.about-details { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.about-details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.75rem; text-align: center; }
.about-detail-label { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--color-muted); margin-bottom: 0.5rem; }
.about-details p { margin-bottom: 0.25rem; }
.about-social { display: flex; justify-content: center; gap: 0.75rem; font-size: 1.35rem; }
.about-social a { color: var(--color-primary-dark); }
.about-contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin-top: 2.5rem; }
/* A colour code is a code, not a heading (2026-10-20): "102m" stays "102m"
   while every other h2 on the site goes to capitals -- the rule lives in
   components.css beside the heading rule it has to outrank. */
/* The shop's heading: "Shop · <category>" on one line in the eyebrow's style
   (owner, 2026-10-20). Still the h1; the size and colour are the eyebrow's. */
.site-main .catalog-heading { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; color: var(--color-primary-dark); margin-bottom: .25rem; }
.catalog-heading-sep { opacity: .6; }
/* The category's description (owner, 2026-12-02): the page's whole width, not
   .page-header p's 48rem, and its paragraphs and line breaks as typed. */
.catalog-header-text { flex: 1 1 100%; min-width: 0; }
.page-header .catalog-description { margin-top: .5rem; }
/* A blank line typed between paragraphs reads as one, as in the colour popup. */
.page-header .catalog-description p { max-width: none; margin: 0; }
.page-header .catalog-description p + p { margin-top: 1lh; }
/* A page per colour tag, /colours/wood/ (T-330, owner 2026-12-03): a heading,
   a manager's few sentences, then one square tile per colour. The same list
   of links ("Colours by look") closes the page and sits on the home page. */
.look-page .page-header { display: block; }
.look-page .breadcrumb { font-size: .85rem; }
.look-heading { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem); margin: 0; }
.look-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.look-tile { min-width: 0; }
.look-tile-link { display: block; color: var(--color-text); text-decoration: none; }
.look-picture { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
span.look-picture { display: grid; place-items: center; font-size: 1.5rem; color: var(--color-muted); }
a.look-tile-link:hover .look-picture, a.look-tile-link:focus-visible .look-picture { border-color: var(--color-primary-dark); }
.look-name { display: block; margin-top: .5rem; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.look-line { display: block; font-size: .8rem; line-height: 1.35; color: var(--color-muted); }
.look-category { display: inline-block; margin-top: .15rem; font-size: .8rem; color: var(--color-primary-dark); }
.look-links { margin-top: clamp(2rem, 3.5vw, 3.5rem); }
.look-links h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.look-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.look-links a { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-surface); color: var(--color-text); text-decoration: none; font-size: .9rem; }
.look-links a:hover, .look-links a:focus-visible { border-color: var(--color-primary-dark); color: var(--color-primary-dark); }
@media (max-width: 575.98px) {
    .look-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
