/* Custom CSS — supplements Tailwind CDN Play */

/* Ensure body font is applied; Tailwind config sets font-body class */
body {
    font-family: 'Lato', sans-serif;
}

/* Card hover lift */
.pattern-card {
    transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.pattern-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(14, 45, 65, 0.15);
}

/* Buy chip loading state */
.buy-chip[data-loading] {
    pointer-events: none;
    opacity: 0.7;
}

/* Lightbox overlay */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
}
#lightbox.open {
    display: flex;
}
#lb-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .625rem;
    max-width: 90vw;
    max-height: 90vh;
}
#lb-img {
    max-width: 90vw;
    max-height: 82vh;
    border-radius: .5rem;
    object-fit: contain;
    display: block;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
#lb-caption {
    color: rgba(255,255,255,.92);
    font-size: .8125rem;
    text-align: center;
    margin: 0;
    max-width: 60ch;
    background: rgba(0, 0, 0, .62);
    padding: .3rem .8rem;
    border-radius: .375rem;
}
#lb-close,
#lb-prev,
#lb-next {
    background: rgba(255,255,255,.18);
    border: 2px solid transparent;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 150ms, border-color 150ms;
}
#lb-prev:hover, #lb-next:hover {
    background: rgba(255,255,255,.32);
}
/* Close button — larger, solid dark background, high contrast */
#lb-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    font-size: 2rem;
    background: rgba(0, 0, 0, .78);
    border-color: rgba(255, 255, 255, .5);
}
#lb-close:hover {
    background: rgba(0, 0, 0, .96);
    border-color: rgba(255, 255, 255, .9);
}
