/*
 * GLEAM — Shoppable Banner Hotspots
 * Tokens: --g-cream #F1ECE6 · --g-wine #6B091C · --g-ink #0b0809
 *         --g-warm-gray #D7CEC5 · --g-blush #F2CFCB
 */

/* ═══════════════════════════════════════════════════════════════
   WRAPPER
═══════════════════════════════════════════════════════════════ */
.bh-wrap {
    position: relative;
    display: block;
    line-height: 0;
    font-size: 0;
}

.bh-image {
    width: 100%;
    height: auto;
    display: block;
}

/* ═══════════════════════════════════════════════════════════════
   HOTSPOT ANCHOR
═══════════════════════════════════════════════════════════════ */
.bh-spot {
    position: absolute;
    transform: translate(-50%, -50%);
    z-index: 30;
}

/* ═══════════════════════════════════════════════════════════════
   DOT — wine fill, cream ring pulse
═══════════════════════════════════════════════════════════════ */
.bh-spot__dot {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--g-wine, #6B091C);
    border: 2px solid rgba(241, 236, 230, 0.7);
    box-shadow: 0 2px 12px rgba(107, 9, 28, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
    padding: 0;
}

.bh-spot__dot::after {
    content: '';
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--g-cream, #F1ECE6);
    opacity: 0.9;
}

.bh-spot__ring {
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 1.5px solid var(--g-wine, #6B091C);
    opacity: 0.5;
    animation: bh-pulse 2.8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bh-pulse {
    0%, 100% { transform: scale(1);    opacity: 0.5; }
    55%       { transform: scale(1.7); opacity: 0;   }
}

.bh-spot:hover .bh-spot__dot,
.bh-spot:focus-within .bh-spot__dot {
    transform: scale(1.15);
    background: var(--g-cream, #F1ECE6);
    border-color: var(--g-wine, #6B091C);
}

.bh-spot:hover .bh-spot__dot::after,
.bh-spot:focus-within .bh-spot__dot::after {
    background: var(--g-wine, #6B091C);
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIP CARD — cream background, wine accents
═══════════════════════════════════════════════════════════════ */
.bh-tip {
    position: absolute;
    top: 50%;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    text-decoration: none;
    border-radius: 3px;
    overflow: hidden;
    background: var(--g-cream, #F1ECE6);
    border: 1px solid var(--g-warm-gray, #D7CEC5);
    box-shadow:
        0 8px 32px rgba(11, 8, 9, 0.18),
        0 2px 8px rgba(11, 8, 9, 0.10);
    transition:
        opacity 0.25s ease,
        visibility 0.25s,
        transform 0.25s ease;
}

.bh-spot:hover .bh-tip,
.bh-spot:focus-within .bh-tip {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

/* ── Horizontal placement ────────────────────────────────────── */
.bh-tip--right {
    left: calc(100% + 16px);
    transform: translateY(-50%) translateX(-6px);
}

.bh-tip--left {
    right: calc(100% + 16px);
    left: auto;
    transform: translateY(-50%) translateX(6px);
}

/* ── Vertical anchor ─────────────────────────────────────────── */
.bh-tip--up {
    top: auto;
    bottom: calc(100% + 16px);
}

.bh-tip--up.bh-tip--right { transform: translateX(0); }
.bh-tip--up.bh-tip--left  { transform: translateX(0); }

/* ── Revealed state ──────────────────────────────────────────── */
.bh-spot:hover .bh-tip--right,
.bh-spot:focus-within .bh-tip--right { transform: translateY(-50%) translateX(0); }

.bh-spot:hover .bh-tip--left,
.bh-spot:focus-within .bh-tip--left  { transform: translateY(-50%) translateX(0); }

.bh-spot:hover .bh-tip--up,
.bh-spot:focus-within .bh-tip--up    { transform: translateX(0); }

/* ═══════════════════════════════════════════════════════════════
   TOOLTIP ACCENT BAR (wine strip at top)
═══════════════════════════════════════════════════════════════ */
.bh-tip::before {
    content: '';
    display: block;
    height: 3px;
    background: var(--g-wine, #6B091C);
}

/* ═══════════════════════════════════════════════════════════════
   TOOLTIP BODY
═══════════════════════════════════════════════════════════════ */
.bh-tip__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bh-tip__name {
    font-family: var(--g-font-serif, 'Cormorant Garamond', Georgia, serif);
    font-style: italic;
    font-size: 0.88rem;
    font-weight: 400;
    color: var(--g-ink, #0b0809);
    letter-spacing: 0.01em;
    line-height: 1.35;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bh-tip__pricing {
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.bh-tip__price {
    font-family: var(--g-font-ui, sans-serif);
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--g-wine, #6B091C);
    letter-spacing: 0.04em;
    padding: 0;
}

.bh-tip__price--final {
    color: var(--g-wine, #6B091C);
}

.bh-tip__price--old {
    text-decoration: line-through;
    opacity: 0.45;
    font-size: 0.65rem;
    color: var(--g-ink, #0b0809);
}

/* ── CTA row ─────────────────────────────────────────────────── */
.bh-tip__cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid var(--g-warm-gray, #D7CEC5);
    font-family: var(--g-font-ui, sans-serif);
    font-size: 0.52rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--g-ink, #0b0809);
    transition: color 0.2s;
}

.bh-spot:hover .bh-tip__cta,
.bh-spot:focus-within .bh-tip__cta {
    color: var(--g-wine, #6B091C);
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE — tap to reveal as bottom sheet
═══════════════════════════════════════════════════════════════ */
@media (hover: none) {
    .bh-spot .bh-tip {
        display: none;
        transform: none !important;
    }

    .bh-spot.is-open .bh-tip {
        display: block;
        opacity: 1;
        visibility: visible;
        pointer-events: all;
        position: fixed;
        top: auto;
        bottom: 24px;
        left: 50%;
        right: auto;
        transform: translateX(-50%) !important;
        z-index: 9999;
        width: 240px;
        box-shadow:
            0 16px 48px rgba(11, 8, 9, 0.22),
            0 4px 12px rgba(11, 8, 9, 0.12);
    }
}
