/*
 * FlowersMakeYourDay — site chrome: design tokens, header and footer.
 *
 * Loaded on EVERY page (layouts/app). Pages not yet redesigned still load
 * Bootstrap and the demo theme next to it, so every rule here is scoped to a
 * `site-*` class and sets its own font, colour and spacing instead of
 * inheriting them. Page-level design (buttons, sections, cards, catalog) lives
 * in theme.css, which only redesigned pages load.
 */

:root {
    --ink: #1c1b1a;
    --ink-soft: #4a4744;
    --muted: #8a847e;
    --line: #e9e4de;
    --paper: #ffffff;
    --sand: #f7f3ef;
    --blush: #f4e6e1;
    --rose: #b7695c;
    --green: #2f4a3a;
    --serif: "Libre Bodoni", Georgia, serif;
    --sans: "Jost", system-ui, -apple-system, sans-serif;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

.site-announce, .site-header, .site-footer {
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.site-announce *, .site-header *, .site-footer * { box-sizing: border-box; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header ul, .site-footer ul { list-style: none; margin: 0; padding: 0; }

.site-container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 32px; }

/* ---------- Header ---------- */
.site-announce {
    background: var(--ink); color: #e9e4de;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    text-align: center; padding: 10px 16px;
}

.site-header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); color: var(--ink);
}
.site-header .site-container { display: grid; grid-template-columns: 1fr auto 1fr; column-gap: 24px; align-items: center; height: 76px; }
.site-nav { display: flex; align-items: center; align-self: stretch; gap: 30px; }
.site-nav a { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.site-nav a:hover, .site-nav a.is-active { color: var(--rose); }
/* Full header height, so the pointer reaches the dropdown without leaving the item. */
.site-nav-item { position: relative; display: flex; align-items: center; align-self: stretch; gap: 5px; }
.site-nav-expand { display: grid; place-items: center; padding: 0; border: 0; background: transparent; color: inherit; font-size: 10px; cursor: pointer; }
.site-nav-expand i { display: block; transition: transform .2s; }
.site-nav-group { display: flex; gap: 5px; font-family: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; transition: color .2s; }
.site-nav-group i { font-size: 10px; }
.site-nav-group:hover, .site-nav-group.is-active { color: var(--rose); }
.site-nav-dropdown {
    position: absolute; top: 100%; left: -20px; min-width: 250px; padding: 12px 0;
    background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28, 27, 26, .1);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
@media (min-width: 901px) {
    .site-nav-item:hover > .site-nav-dropdown, .site-nav-item:focus-within > .site-nav-dropdown { opacity: 1; visibility: visible; transform: none; }
    .site-nav-item:last-child > .site-nav-dropdown { left: auto; right: -20px; }
}
.site-nav-dropdown a { display: block; padding: 8px 20px; font-size: 14px; letter-spacing: .02em; text-transform: none; }
/* min-width: an SVG logo has no min-content width of its own, a wide menu would squeeze it to nothing. */
.site-logo { justify-self: start; min-width: 86px; font-family: var(--serif); font-size: 28px; letter-spacing: -.005em; white-space: nowrap; color: var(--ink); }
.site-logo em { color: var(--rose); }
.site-logo img { display: block; width: auto; height: 64px; }
.site-footer-logo { display: inline-block; }
.site-footer-logo img { display: block; width: auto; height: 120px; }
.site-actions { display: flex; justify-content: flex-end; gap: 4px; }
.site-icon {
    position: relative; width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 0; background: transparent; border-radius: 50%; color: var(--ink);
    font-size: 19px; cursor: pointer; transition: background .2s;
}
.site-icon:hover { background: var(--sand); color: var(--ink); }
.site-lang { display: flex; align-items: center; gap: 2px; margin-right: 4px; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.site-lang a { padding: 6px 8px; border-radius: 999px; color: var(--muted); transition: background .2s, color .2s; }
.site-lang a:hover { background: var(--sand); color: var(--ink); }
.site-lang a.is-active { color: var(--ink); }
@media (max-width: 600px) {
    .site-lang { margin-right: 0; gap: 0; }
    .site-lang a { padding: 6px 5px; }
}
.site-cart-count {
    position: absolute; top: 4px; right: 3px;
    min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
    background: var(--rose); color: #fff; font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}
.site-search {
    /* Spans the header; the padding lines the field up with the header's container. */
    position: absolute; top: 100%; left: 0; right: 0; display: flex; align-items: center; gap: 8px;
    margin: 0; padding: 12px max(32px, calc((100% - 1320px) / 2 + 32px));
    background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(28, 27, 26, .1);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .2s, transform .2s, visibility .2s;
}
.site-search.is-open { opacity: 1; visibility: visible; transform: none; }
.site-search input { flex: 1; min-width: 0; padding: 8px 0; border: 0; outline: none; background: transparent; color: var(--ink); font: 15px var(--sans); }
.site-search button { flex: none; width: 38px; height: 38px; border: 0; background: var(--ink); color: #fff; cursor: pointer; }
.site-menu-toggle, .site-nav-close, .site-nav-backdrop, .site-nav-back { display: none; }
.site-nav-dropdown .site-nav-all { display: none; }

.site-impersonation {
    display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px;
    padding: 8px 16px; background: #fff3c4; color: #5c4500; font: 14px var(--sans);
}
.site-impersonation form { margin: 0; }
.site-impersonation button { border: 1px solid #5c4500; background: transparent; color: inherit; border-radius: 999px; padding: 2px 12px; cursor: pointer; font: inherit; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #bdb6ae; margin-top: 96px; overflow: hidden; font-size: 16px; }
.site-footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; padding: 80px 0 60px; }
.site-footer h4 { font-family: var(--sans); font-size: 12px; font-weight: 500; letter-spacing: .26em; text-transform: uppercase; color: #fff; margin: 0 0 22px; }
.site-footer ul { display: grid; gap: 12px; font-size: 15px; font-weight: 300; }
.site-footer a { transition: color .2s; }
.site-footer a:hover { color: #fff; }
.site-footer p { margin: 0 0 22px; font-weight: 300; }
.site-news-form { display: flex; border-bottom: 1px solid #5a5652; margin: 0; }
.site-news-form input { flex: 1; min-width: 0; border: 0; background: transparent; color: #fff; padding: 12px 0; font: 300 15px var(--sans); outline: none; box-shadow: none; }
.site-news-form input::placeholder { color: #8a847e; }
.site-news-form button { border: 0; background: transparent; color: #fff; cursor: pointer; font: 12px var(--sans); letter-spacing: .24em; text-transform: uppercase; padding: 0; }
.site-news-form button:hover { color: #f0cbc2; }
.site-news-message { margin-top: 12px; font-size: 14px; }
.site-news-message .alert { padding: 0; margin: 0; border: 0; background: none; }
.site-news-message .alert-success { color: #b9e3c4; }
.site-news-message .alert-danger { color: #f0b4a8; }
.site-socials { display: flex; gap: 10px; margin-top: 28px; }
.site-socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #4a4744; display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s, color .2s; }
.site-socials a:hover { background: #fff; color: var(--ink); border-color: #fff; }
.site-footer-mark {
    font-family: var(--serif); font-size: 9.4vw; line-height: .9;
    letter-spacing: -.01em; text-align: center; white-space: nowrap;
    color: transparent; -webkit-text-stroke: 1px #4a4744;
    user-select: none; margin: 0 0 -.12em;
}
.site-footer-mark em { -webkit-text-stroke-color: #6b4e47; }
.site-footer-bottom { border-top: 1px solid #34312e; }
.site-footer-bottom .site-container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: #8a847e; }
.site-payments { display: flex; gap: 14px; font-size: 22px; color: #bdb6ae; }
.site-legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-credit { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 300; }
.footer-credit a { display: inline-flex; opacity: .75; transition: opacity .2s; }
.footer-credit a:hover { opacity: 1; }
.footer-credit-logo { display: block; width: auto; height: 22px; }

/* ---------- CMS builder blocks (partials/builder) ----------
   Here, not in theme.css: news pages still on the demo theme render them too. */
.blk { margin: 0 0 56px; font-family: var(--sans); color: var(--ink); }
.blk-title { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin: 0 0 22px; color: var(--ink); }
.blk-prose { color: var(--ink-soft); font-size: 17px; font-weight: 300; line-height: 1.75; }
.blk-prose h2, .blk-prose h3, .blk-prose h4 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 32px 0 12px; line-height: 1.2; }
.blk-prose p { margin: 0 0 16px; }
.blk-prose a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.blk-prose ul, .blk-prose ol { padding-left: 22px; margin: 0 0 16px; }
.blk-prose img { max-width: 100%; height: auto; }
.blk-image { margin-left: 0; margin-right: 0; }
.blk-image img { display: block; width: 100%; height: auto; }
.blk-image figcaption { margin-top: 10px; text-align: center; color: var(--muted); font-size: 14px; }
.blk-gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.blk-gallery-grid a { display: block; aspect-ratio: 1; overflow: hidden; background: var(--blush); }
.blk-gallery-grid img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.blk-gallery-grid a:hover img { transform: scale(1.06); }
.blk-teasers-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.blk-teaser { background: var(--sand); padding: 28px 24px; text-align: center; }
.blk-teaser-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--rose); font-size: 22px; }
.blk-teaser h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 8px; color: var(--ink); }
.blk-teaser p { margin: 0; color: var(--ink-soft); font-weight: 300; font-size: 15px; }
.blk-video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.blk-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.blk-video-link { color: var(--rose); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .site-nav { gap: 18px; }
    .site-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .site-logo { justify-self: center; }
    .site-menu-toggle { display: grid; justify-self: start; }
    /* backdrop-filter would make the header the containing block of the fixed drawer. */
    .site-header { background: #fff; backdrop-filter: none; }
    .site-nav {
        position: fixed; top: 0; bottom: 0; left: 0; z-index: 2;
        width: min(340px, 86vw); overflow-x: hidden; overflow-y: auto;
        flex-direction: column; align-items: stretch; gap: 0;
        background: #fff; padding: 10px 24px 24px;
        transform: translateX(-100%); visibility: hidden;
        transition: transform .3s var(--ease), visibility .3s;
    }
    .site-nav.is-open { transform: none; visibility: visible; }
    .site-nav:has(.site-nav-item.is-open) { overflow: hidden; }
    .site-nav-close { display: grid; flex: none; align-self: flex-end; margin-right: -9px; z-index: 2; }
    .site-nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 1;
        background: rgba(28, 27, 26, .35); backdrop-filter: blur(6px);
        opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
    }
    .site-nav.is-open + .site-nav-backdrop { opacity: 1; visibility: visible; }
    body.site-menu-open { overflow: hidden; }
    .site-nav a { padding: 15px 0; border-bottom: 1px solid var(--line); }
    .site-nav-item { position: static; gap: 0; border-bottom: 1px solid var(--line); }
    .site-nav-item > a { flex: 1; border-bottom: 0; }
    .site-nav-expand { width: 44px; height: 44px; font-size: 13px; }
    .site-nav-expand i { transform: rotate(-90deg); }
    .site-nav-group { width: 100%; height: auto; justify-content: space-between; padding: 15px 15px 15px 0; font-size: 13px; }
    .site-nav-group i { font-size: 13px; }
    /* A subcategory list is a level of its own: it slides over the drawer. */
    .site-nav-dropdown {
        inset: 0; z-index: 1; min-width: 0; padding: 10px 24px 24px; overflow-y: auto;
        border: 0; box-shadow: none; opacity: 1; transform: translateX(100%);
        transition: transform .3s var(--ease), visibility .3s;
    }
    .site-nav-item.is-open > .site-nav-dropdown { visibility: visible; transform: none; }
    .site-nav-back {
        display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 44px 0 0; margin-bottom: 8px;
        border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left;
        font-family: inherit; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
    }
    .site-nav-dropdown a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; white-space: normal; }
    .site-nav-dropdown .site-nav-all { display: block; font-weight: 500; }
}

@media (max-width: 600px) {
    .site-container { padding: 0 16px; }
    .site-announce { font-size: 10px; letter-spacing: .08em; }
    .site-header .site-container { height: 64px; column-gap: 8px; }
    .site-search { padding: 8px 16px; }
    .site-logo { font-size: 19px; }
    .site-logo { min-width: 72px; }
    .site-logo img { height: 54px; }
    .site-hide-sm { display: none !important; }
    .blk-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .site-footer-top { grid-template-columns: 1fr; gap: 36px; padding-top: 60px; }
    .site-footer-bottom .site-container { flex-direction: column; text-align: center; }
    .site-footer-bottom .site-legal { justify-content: center; }
}
