/* Bohemian decorative system & shared editorial chrome */

.bw-deco {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 2;
    max-width: min(40vw, 220px);
    height: auto;
}

.bw-deco--macrame { width: clamp(72px, 12vw, 140px); }
.bw-deco--pampas { width: clamp(58px, 10vw, 120px); }
.bw-deco--peacock { width: clamp(90px, 14vw, 180px); }
.bw-deco--amethyst { width: clamp(52px, 9vw, 100px); }
.bw-deco--turquoise { width: clamp(40px, 7vw, 80px); }

.bw-deco--float {
    animation: bw-float 7s ease-in-out infinite;
}

.bw-deco--sway {
    animation: bw-sway 9s ease-in-out infinite;
    transform-origin: top center;
}

/* Page-level flying mote field (contained; no horizontal scroll) */
.bw-float-field {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bw-float-field--hero,
.bw-float-field--section {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.bw-mote {
    position: absolute;
    height: auto;
    opacity: 0.55;
    filter: drop-shadow(0 8px 14px rgba(62, 42, 28, 0.16));
    will-change: transform;
}

.bw-mote--xs { width: 28px; }
.bw-mote--sm { width: 42px; }
.bw-mote--md { width: 58px; }

.bw-mote--a { top: 12%; inset-inline-start: 6%; animation: bw-drift-a 11s ease-in-out infinite; }
.bw-mote--b { top: 28%; inset-inline-end: 8%; animation: bw-drift-b 13s ease-in-out infinite; animation-delay: -2s; }
.bw-mote--c { top: 48%; inset-inline-start: 3%; animation: bw-drift-c 15s ease-in-out infinite; animation-delay: -4s; opacity: 0.4; }
.bw-mote--d { top: 62%; inset-inline-end: 5%; animation: bw-drift-a 12s ease-in-out infinite; animation-delay: -1s; }
.bw-mote--e { top: 78%; inset-inline-start: 18%; animation: bw-drift-b 14s ease-in-out infinite; animation-delay: -6s; opacity: 0.45; }
.bw-mote--f { top: 18%; inset-inline-start: 42%; animation: bw-drift-c 16s ease-in-out infinite; animation-delay: -3s; opacity: 0.35; }
.bw-mote--g { top: 86%; inset-inline-end: 22%; animation: bw-drift-a 10s ease-in-out infinite; animation-delay: -5s; }
.bw-mote--h { top: 36%; inset-inline-start: 72%; animation: bw-drift-b 17s ease-in-out infinite; animation-delay: -7s; opacity: 0.4; }
.bw-mote--i { top: 70%; inset-inline-start: 55%; animation: bw-drift-c 12s ease-in-out infinite; animation-delay: -2.5s; opacity: 0.38; }
.bw-mote--j { top: 8%; inset-inline-end: 28%; animation: bw-drift-a 14s ease-in-out infinite; animation-delay: -8s; opacity: 0.42; }

.bw-float-field--hero .bw-mote--a { top: 14%; inset-inline-start: 8%; }
.bw-float-field--hero .bw-mote--b { top: 22%; inset-inline-end: 10%; }
.bw-float-field--hero .bw-mote--c { top: 58%; inset-inline-start: 4%; }
.bw-float-field--hero .bw-mote--d { top: 70%; inset-inline-end: 12%; }
.bw-float-field--hero .bw-mote--e { top: 40%; inset-inline-end: 6%; opacity: 0.5; }
.bw-float-field--hero .bw-mote--f { top: 8%; inset-inline-start: 35%; opacity: 0.45; }

.bw-float-field--section .bw-mote {
    opacity: 0.4;
}

.bw-float-field--whisper .bw-mote {
    opacity: 0.32;
}

.bw-float-field--whisper .bw-mote--xs { width: 22px; }
.bw-float-field--whisper .bw-mote--sm { width: 34px; }

.bw-float-field--whisper .bw-mote--a { top: 18%; inset-inline-start: 8%; }
.bw-float-field--whisper .bw-mote--b { top: 28%; inset-inline-end: 10%; }
.bw-float-field--whisper .bw-mote--e { top: 62%; inset-inline-start: 12%; opacity: 0.28; }

.bw-ornament-line--light {
    background:
        radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--bw-mustard) 70%, white) 0 2px, transparent 2.5px),
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--bw-ivory) 45%, transparent), transparent);
    background-size: 100% 100%, 100% 1px;
    background-position: center, center;
    background-repeat: no-repeat;
    opacity: 0.85;
}

@keyframes bw-float {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(var(--bw-rot, 0deg)); }
    50% { transform: translate3d(0, -10px, 0) rotate(var(--bw-rot, 0deg)); }
}

@keyframes bw-sway {
    0%, 100% { transform: rotate(calc(var(--bw-rot, 0deg) - 2deg)); }
    50% { transform: rotate(calc(var(--bw-rot, 0deg) + 2.5deg)); }
}

@keyframes bw-drift-a {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-6deg); }
    50% { transform: translate3d(8px, -14px, 0) rotate(4deg); }
}

@keyframes bw-drift-b {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(8deg); }
    50% { transform: translate3d(-10px, -12px, 0) rotate(-4deg); }
}

@keyframes bw-drift-c {
    0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg) scale(1); }
    50% { transform: translate3d(6px, -18px, 0) rotate(6deg) scale(1.04); }
}

@media (max-width: 767.98px) {
    .bw-deco--hide-mobile {
        display: none !important;
    }

    .bw-float-field--page .bw-mote--c,
    .bw-float-field--page .bw-mote--f,
    .bw-float-field--page .bw-mote--h,
    .bw-float-field--page .bw-mote--i {
        display: none;
    }

    .bw-mote--xs { width: 22px; }
    .bw-mote--sm { width: 32px; }
    .bw-mote--md { width: 44px; }

    .bw-deco--macrame { width: 64px; }
    .bw-deco--pampas { width: 52px; }
    .bw-deco--peacock { width: 84px; }
    .bw-deco--amethyst { width: 44px; }
    .bw-deco--turquoise { width: 34px; }
}

@media (prefers-reduced-motion: reduce) {
    .bw-deco--float,
    .bw-deco--sway,
    .bw-mote,
    .bw-spread__accent {
        animation: none !important;
    }
}


.bw-paper {
    background:
        linear-gradient(145deg, rgba(251, 247, 240, 0.92), rgba(232, 220, 200, 0.88)),
        var(--bw-paper);
    border: 1px solid color-mix(in srgb, var(--bw-wood) 14%, transparent);
    box-shadow: var(--bw-shadow-soft);
}

.bw-section-head {
    text-align: center;
    margin-bottom: 1.35rem;
    position: relative;
}

.bw-section-head h2 {
    margin: 0;
    font-family: var(--bw-font-fa);
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    color: var(--bw-wood-deep);
    font-weight: 700;
}

.bw-section-head--invert h2,
.bw-section-head--invert .bw-section-head__label {
    color: var(--bw-ivory);
}

.bw-section-head__label {
    font-family: var(--bw-font-display);
    font-style: italic;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bw-cognac);
    font-size: 0.85rem;
}

.bw-ornament-line {
    width: min(180px, 50%);
    height: 18px;
    margin: 0.85rem auto 0;
    background:
        radial-gradient(circle at 50% 50%, var(--bw-terracotta) 0 2px, transparent 2.5px),
        linear-gradient(90deg, transparent, color-mix(in srgb, var(--bw-wood) 35%, transparent), transparent);
    background-size: 100% 100%, 100% 1px;
    background-position: center, center;
    background-repeat: no-repeat;
}

.bw-field label,
.bw-field .flr-field__label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
    color: var(--bw-ink-soft);
}

.bw-input {
    width: 100%;
    border: 1px solid color-mix(in srgb, var(--bw-wood) 22%, transparent);
    background: color-mix(in srgb, var(--bw-ivory) 90%, white);
    border-radius: 0.75rem;
    padding: 0.7rem 0.9rem;
    color: var(--bw-ink);
}

.bw-input:focus {
    outline: 2px solid color-mix(in srgb, var(--bw-terracotta) 45%, transparent);
    outline-offset: 1px;
}

.bw-input--area {
    resize: vertical;
    min-height: 4.5rem;
}

.bw-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: color-mix(in srgb, var(--bw-sand) 70%, white);
    border: 1px solid color-mix(in srgb, var(--bw-wood) 18%, transparent);
    border-radius: 999px;
    padding: 0.15rem;
}

.bw-qty__btn {
    width: 2.15rem;
    height: 2.15rem;
    border: 0;
    border-radius: 50%;
    background: var(--bw-ivory);
    color: var(--bw-wood-deep);
    cursor: pointer;
    font-size: 1.05rem;
    line-height: 1;
}

.bw-qty__btn:hover {
    background: var(--bw-terracotta);
    color: var(--bw-ivory);
}

.bw-qty__val {
    min-width: 1.4rem;
    text-align: center;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.bw-qty--compact .bw-qty__btn {
    width: 1.85rem;
    height: 1.85rem;
}

.bw-variants {
    display: grid;
    gap: 0.45rem;
    margin: 0.65rem 0;
}

.bw-variant {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.45rem 0.55rem;
    border-radius: 0.75rem;
    background: color-mix(in srgb, var(--bw-sand) 40%, transparent);
    border: 1px solid transparent;
}

.bw-variant.is-active,
.bw-variant.has-qty {
    border-color: color-mix(in srgb, var(--bw-terracotta) 45%, transparent);
    background: color-mix(in srgb, var(--bw-mustard) 18%, var(--bw-ivory));
}

.bw-variant__meta {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.bw-variant__name {
    font-weight: 600;
    font-size: 0.92rem;
}

.bw-variant__price {
    font-size: 0.84rem;
    color: var(--bw-cognac);
}

.bw-variant__price small {
    font-size: 0.72rem;
    opacity: 0.8;
}

.bw-note {
    padding: 0.75rem 0.9rem;
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--bw-mustard) 18%, var(--bw-ivory));
    color: var(--bw-wood-deep);
}

.bw-note.is-error {
    background: color-mix(in srgb, #b33 12%, var(--bw-ivory));
    color: #7a1f1f;
}

.bw-note.is-success {
    background: color-mix(in srgb, var(--bw-olive) 16%, var(--bw-ivory));
    color: #2f3d24;
}

.bw-toast {
    position: fixed;
    inset-inline: 1rem;
    bottom: calc(var(--bw-nav-h) + 1rem);
    z-index: 1200;
    max-width: 360px;
    margin-inline: auto;
    padding: 0.85rem 1rem;
    border-radius: 0.9rem;
    background: var(--bw-wood-deep);
    color: var(--bw-ivory);
    box-shadow: var(--bw-shadow-lift);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s ease, transform 0.25s ease;
    text-align: center;
}

.bw-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.bw-cart-fab {
    position: fixed;
    inset-inline-end: 1rem;
    inset-inline-start: auto;
    left: auto !important;
    right: 1rem;
    bottom: calc(var(--bw-nav-h) + 1rem);
    z-index: 1100;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 3.1rem;
    padding: 0.45rem 0.95rem 0.45rem 0.55rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--bw-terracotta), var(--bw-wood));
    color: var(--bw-ivory);
    box-shadow: 0 14px 30px rgba(62, 42, 28, 0.28);
    cursor: pointer;
}

.bw-cart-fab__mark {
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: url('../../images/bohemian/deco-turquoise.png') center / 70% no-repeat, rgba(255,255,255,0.15);
}

.bw-cart-fab__count {
    min-width: 1.5rem;
    height: 1.5rem;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: var(--bw-ivory);
    color: var(--bw-terracotta);
    font-size: 0.78rem;
    font-weight: 700;
}

.bw-invoice__veil {
    background: rgba(42, 33, 24, 0.45);
}

.bw-invoice__panel {
    background:
        linear-gradient(180deg, rgba(251, 247, 240, 0.98), rgba(243, 234, 223, 0.98)),
        var(--bw-paper);
    border-inline-start: 1px solid color-mix(in srgb, var(--bw-wood) 18%, transparent);
}

.bw-invoice__kicker {
    font-family: var(--bw-font-display);
    font-style: italic;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bw-cognac);
    font-size: 0.75rem;
}

.bw-invoice__head h2 {
    margin: 0.15rem 0 0;
    font-family: var(--bw-font-fa);
}

.bw-invoice__close {
    border: 0;
    background: transparent;
    font-size: 1.6rem;
    line-height: 1;
    color: var(--bw-ink-soft);
    cursor: pointer;
}

.bw-invoice__row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0;
}

.bw-invoice__row--payable {
    margin-top: 0.35rem;
    padding-top: 0.55rem;
    border-top: 1px dashed color-mix(in srgb, var(--bw-wood) 25%, transparent);
    font-size: 1.05rem;
}

.bw-modes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.bw-mode__face {
    display: grid;
    place-items: center;
    min-height: 2.6rem;
    border-radius: 0.85rem;
    border: 1px solid color-mix(in srgb, var(--bw-wood) 20%, transparent);
    background: var(--bw-ivory);
    cursor: pointer;
}

.flr-order-type__input:checked + .bw-mode__face {
    border-color: var(--bw-terracotta);
    background: color-mix(in srgb, var(--bw-mustard) 20%, var(--bw-ivory));
    color: var(--bw-wood-deep);
}

.bw-tables__label {
    margin: 0.75rem 0 0.4rem;
    font-size: 0.88rem;
    color: var(--bw-ink-soft);
}

.bw-tables__hint {
    margin: 0 0 0.5rem;
    font-size: 0.78rem;
    color: var(--bw-ink-soft);
}

.bw-tables__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 0.45rem;
}

.bw-table-chip {
    appearance: none;
    border: 1px solid color-mix(in srgb, var(--bw-wood) 20%, transparent);
    background: var(--bw-ivory);
    border-radius: 0.8rem;
    padding: 0.45rem 0.3rem;
    cursor: pointer;
    display: grid;
    gap: 0.1rem;
    place-items: center;
}

.bw-table-chip strong {
    font-size: 1rem;
}

.bw-table-chip small {
    font-size: 0.68rem;
    color: var(--bw-ink-soft);
}

.bw-table-chip.is-selected {
    border-color: var(--bw-terracotta);
    background: color-mix(in srgb, var(--bw-terracotta) 14%, var(--bw-ivory));
}

.bw-table-chip.is-busy,
.bw-table-chip:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.bw-table-chip.is-reserved {
    border-style: dashed;
}

.bw-captcha {
    display: flex;
    gap: 0.5rem;
}

.bw-editorial__veil {
    background: rgba(42, 33, 24, 0.5);
}

.bw-editorial__sheet {
    background: var(--bw-ivory);
    border-radius: 1.25rem;
    overflow: hidden;
}

.bw-editorial__close {
    position: absolute;
    top: 0.65rem;
    inset-inline-end: 0.75rem;
    z-index: 2;
    border: 0;
    background: color-mix(in srgb, var(--bw-ivory) 85%, transparent);
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.bw-editorial__grid {
    display: grid;
}

@media (min-width: 768px) {
    .bw-editorial__grid {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

.bw-editorial__visual {
    position: relative;
    min-height: 220px;
    background: var(--bw-sand);
}

.bw-editorial__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 220px;
}

.bw-editorial__copy {
    padding: 1.25rem 1.35rem 1.5rem;
}

.bw-editorial__copy h2 {
    margin: 0.35rem 0 0.65rem;
    font-family: var(--bw-font-fa);
    font-size: 1.35rem;
}

.bw-editorial__desc {
    color: var(--bw-ink-soft);
    font-size: 0.95rem;
}

.bw-editorial__price {
    margin-top: 1rem;
    font-size: 1.15rem;
    color: var(--bw-terracotta);
    font-weight: 700;
}

.bw-editorial__recipe-label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.8rem;
    color: var(--bw-cognac);
}

.bw-editorial__recipe-list {
    margin: 0;
    padding-inline-start: 1.1rem;
    color: var(--bw-ink-soft);
    font-size: 0.9rem;
}
