﻿/* ── Corner buttons (Scrolls with page) ────────── */
.cb-corner {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.cb-corner-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid #111;
    color: #111;
    background: #fff;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.cb-corner-btn:hover {
    background: #111;
    color: #fff;
    text-decoration: none;
}

.cb-corner-btn:focus-visible {
    outline: 2px solid #258cfb;
    outline-offset: 2px;
}

/* ── Mobile ──────────────────────────────────────
 * .cb-corner is absolutely positioned relative to the page (html has
 * position:relative), which lands it directly on top of the navbar's
 * hamburger toggle on phone widths — take it out of the corner and
 * back into normal document flow, below the nav, full width.
 * 991.98px matches the navbar's mobile styling band so the button never
 * overlaps the nav in the tablet range either.
 */
@media (max-width: 991.98px) {
    .cb-corner {
        position: static;
        justify-content: flex-end;
        flex-wrap: wrap;
        width: 100%;
        padding: 12px 0 0;
        margin-bottom: 8px;
    }

    .cb-corner-btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
}

/* ── Empty state ──────────────────────────────── */
.cb-empty {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 60px 24px;
}

.cb-empty-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    letter-spacing: 0.04em;
    margin-bottom: 16px;
}

.cb-empty-sub {
    font-size: 0.9rem;
    font-weight: 300;
    color: #888;
}

/* ── Public Catalog ───────────────────────────── */
/* Note: class is on the <h2> itself, not a wrapping element — selector
   must target it directly, not as a descendant combinator. */
.cb-public-category {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2rem;
    color: #111111;
    border-bottom: 1px solid #dddddd;
    padding-bottom: 0.4rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.cb-product-card {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    transition: border-color 0.2s ease, transform 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.cb-product-card:hover {
    border-color: #666666;
    transform: translateY(-2px);
}

.cb-product-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* Forces perfect square */
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    background: #111;
}

.cb-product-name {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.95rem;
    color: #e0e0e0;
    margin-bottom: 0.25rem;
    text-align: center;
    line-height: 1.3;
}

.cb-product-price {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    color: #a0a0a0;
}

/* Override Bootstrap's dark text-muted for dark backgrounds */
.cb-product-price span.text-muted {
    color: #999999 !important;
}