/* Additions for the server-rendered site. The base look is site.css, taken from the approved demo v35.9. */
html{overflow-x:clip}
body.v2{overflow-x:clip;overflow-y:visible}
header.site{position:sticky;top:0;z-index:30}
header.site .logo img{height:34px;width:auto;display:block;object-fit:contain}
#cartN{position:absolute;top:-4px;right:-4px;min-width:20px;height:20px;border-radius:10px;background:var(--gold);color:#fff;font:600 12px/20px 'DM Sans',sans-serif;text-align:center;font-style:normal;padding:0 5px}
#cartBtn{position:relative;text-decoration:none}
.hact a.icbtn{text-decoration:none;color:inherit}
.hact a.icbtn.dark{color:#fff}
.prod{position:relative}
.prod .tile{display:block;position:relative}
.prod>.plus{position:absolute;right:10px;top:0;width:46px;height:46px;border-radius:50%;border:none;background:#fff;color:var(--green);display:flex;align-items:center;justify-content:center;box-shadow:0 6px 16px rgba(0,0,0,.16);cursor:pointer}
.q8{display:inline-flex;align-items:center;height:46px;border-radius:23px;background:var(--green);color:#fff}
.q8 button{width:46px;height:46px;border:0;background:transparent;color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.q8 b{min-width:20px;text-align:center;font-size:16px;font-weight:600}
.prod>.q8{position:absolute;right:10px;top:0;box-shadow:0 6px 16px rgba(0,0,0,.16)}
footer.site .fgridf{display:grid;grid-template-columns:2fr 1fr 1fr;gap:24px;padding:36px 0}
footer.site .fgridf a{display:block;color:inherit;text-decoration:none;padding:6px 0;min-height:44px}
footer.site .fgridf p{display:flex;gap:10px;align-items:center;margin:0 0 10px}
@media(max-width:760px){footer.site .fgridf{grid-template-columns:auto auto}footer.site .fgridf>div:first-child{grid-column:1/-1}}
.hide{display:none!important}
header.site .logo{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink)}
header.site .logo .wordmark{font:500 20px/1 'Fraunces',Georgia,serif;white-space:nowrap}
header.site .logo .wordmark em{color:var(--gold);font-style:italic}
header.site .logo img+.wordmark{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
footer.site .fgridf{padding:36px 20px}
/* Phone rule: every tap target at least 44 px, text at least 12 px */
.icbtn{height:44px;min-width:44px}
.link{min-height:44px}
.kicker{font-size:12px}
input[type=date],input[type=time],select{min-height:44px}
.hact{margin-left:auto}
/* Gold used for text is darkened for contrast on cream (was 3.1:1) */
.kicker,.ihead h1 em,header.site .logo .wordmark em{color:#7A6238}
#cartN{background:#7A6238}
/* Product photos are real images (lazy-loaded, readable by Google Images), sized to fill the tile */
.prod .tile{overflow:hidden}
.prod .tile>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* Keyboard focus is always easy to see. :focus-visible shows for keyboard use, not for a mouse click or a tap on a button. */
.btn:focus-visible,.icbtn:focus-visible,.tile:focus-visible,.link:focus-visible,.prod>.plus:focus-visible,.q8 button:focus-visible,
nav.main a:focus-visible,header.site .logo:focus-visible,footer.site a:focus-visible,summary:focus-visible,main a:focus-visible,main button:focus-visible{outline:3px solid #7A6238;outline-offset:2px}
/* Form controls. :where() keeps this rule weak, so a field that draws its own ring on its box (below, and in the track files) wins. */
:where(input:not([type=hidden]),select,textarea):focus-visible{outline:2px solid var(--green);outline-offset:2px}
/* Boxed fields hide the outline of the bare input inside them, so the box itself gets the ring */
.fld:focus-within,.s11f:focus-within{outline:2px solid var(--green);outline-offset:2px}

/* ===== UX review 2026-11-19: small shared fixes (spacing, cut-off text, tap size). Nothing here changes the design. ===== */
/* The logo is a link: give it a full 44 px tap height */
header.site .logo{min-height:44px}
/* Home: the heading sat directly on the first card (the demo has a line between them) */
.h8 .itop{margin-bottom:12px}
/* Home cards: show the whole line of text instead of cutting it with "..." */
.h8 .intent .tx>small{display:block;-webkit-line-clamp:unset;overflow:visible}
/* Search box on a narrow phone: room for the whole hint text beside the Find button */
@media(max-width:420px){.s11f{gap:6px;padding-left:12px}.s11f .btn{padding-left:16px;padding-right:16px}}
/* Home "Most ordered" on a wide screen: six tiles fit on one row instead of leaving one alone on a second row */
@media(min-width:1100px){.row8q .grid:has(>.prod:nth-child(6):last-child){grid-template-columns:repeat(6,minmax(0,1fr))}}

/* ===== Speed work 2026-11-19 (docs/V2_PERFORMANCE.md). Nothing here changes the look. ===== */
/* Photos are wrapped in <picture> so phones get WebP. The wrapper takes no space of its own: the <img> is laid out as before. */
picture{display:contents}
.prod .tile>picture>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
/* Category, event and home cards: the photo is a real <img> (was a CSS background), filling its box the same way (cover, centred). */
.ph.phx{position:relative;overflow:hidden}
.ph.phx img.phi{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;display:block}
/* Photos now carry width and height (so the page does not jump while they load). These keep their height automatic, as before. */
.pgimg,.pgstory img,.pggallery img{height:auto}
.symchosen .symph img{width:auto;height:auto}
/* The + on a product photo sits on the photo's bottom-right corner. site.js works that place out after the page has loaded,
   so the + used to start at the top corner and jump down. The photo is a square as wide as its tile, so the same place is
   known to CSS at once: tile width minus 56 px. site.js then sets the very same number. */
.grid>.prod{container-type:inline-size}
.grid>.prod>.plus,.grid>.prod>.q8{top:calc(100cqw - 56px)}

/* Rev7.3.4-C11 (1 Dec 2026): phones only. Found on a real phone (L-16). Desktop rules are not touched. */
@media(max-width:760px){
 /* home, three top cards: the whole picture shows (it was a 92 px wide strip of a 3:2 photo). First card full width, the other two side by side. */
 .h8 .intent3{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .h8 .intent3>.intent{display:flex;flex-direction:column;align-items:stretch;min-height:0}
 .h8 .intent3>.intent:first-child{grid-column:1/-1}
 .h8 .intent3>.intent .ph{width:100%;height:auto;min-height:0;aspect-ratio:3/2;flex:none}
 .h8 .intent3>.intent:first-child .ph{aspect-ratio:16/9}
 .h8 .intent3>.intent .ph img.phi{object-position:center!important}
 .h8 .intent3>.intent .tx{padding:12px 12px 14px;gap:6px;flex:1}
 .h8 .intent3>.intent:not(:first-child) .tx>b{font-size:17px}
 .h8 .intent3>.intent:not(:first-child) .tx>small{display:none}
 .h8 .intent3>.intent:not(:first-child) .cta8{align-self:stretch;width:100%;box-sizing:border-box;justify-content:center;height:42px;padding:0 6px;font-size:13.5px;gap:5px;white-space:nowrap}
 .h8 .intent3>.intent:not(:first-child) .tx{min-width:0}
 /* menu: more room to tap, the page behind is dimmed, the button shows it is open */
 nav.main.open{padding:10px 16px 18px;box-shadow:0 0 0 100vmax rgba(24,38,31,.38);clip-path:inset(0 -100vmax -100vmax -100vmax)}
 nav.main.open a{padding:12px 4px;min-height:56px}
 nav.main.open a:nth-last-child(2){border-bottom-color:transparent}
 nav.main.open .ncall{margin-top:14px;min-height:50px}
 #burger[aria-expanded="true"]{background:var(--green);color:#fff;border-color:var(--green)}
}
@media(max-width:399px){.h8 .intent3>.intent:not(:first-child) .cta8{font-size:13px}.h8 .intent3>.intent:not(:first-child) .cta8 .i{display:none}.h8 .intent3>.intent:not(:first-child) .tx>b{font-size:16px}}
@media(max-width:900px){
 /* home, "Wedding & event flowers" and "Flowers & gifts": two columns that flow down the page; no sideways scrolling */
 .row8e .ev8row,.row8c .ev8row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;overflow-x:visible;scroll-snap-type:none;padding-bottom:0}
 .row8e .ev8row .ev8,.row8c .ev8row .ev8{flex:none;min-width:0}
 .row8e .ev8row .ev8 .ph,.row8c .ev8row .ev8 .ph{height:auto;aspect-ratio:3/2}
}
@media(min-width:600px) and (max-width:900px){.row8e .ev8row,.row8c .ev8row{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:899px){
 /* cart and checkout: while the phone keyboard is open the bottom bar steps aside, and a control the page scrolls to stops above the bar */
 body.typing .cbar,body.typing .kbar{display:none}
 html:has(body.hasbar){scroll-padding-bottom:96px}
 body.hasbar main input,body.hasbar main select,body.hasbar main textarea,body.hasbar main .cslot,body.hasbar main .cmode{scroll-margin-bottom:96px;scroll-margin-top:84px}
}
