/* BOORAN global polish */

.bn-body ::selection {
    background: color-mix(in srgb, var(--bn-burgundy) 28%, transparent);
    color: var(--bn-ink);
}

/* Shared qty control geometry — high contrast brushed metal */
.bn-qty,
.flr-qty {
    display: inline-grid;
    grid-template-columns: 30px 34px 30px;
    align-items: center;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #1c202a;
    clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), var(--bn-bevel);
    overflow: hidden;
    flex-shrink: 0;
}

.bn-qty__btn,
.flr-qty__btn {
    height: 32px;
    border: none;
    background: transparent;
    color: #FFFFFF !important;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: background var(--bn-transition-fast), color var(--bn-transition-fast), transform var(--bn-transition-fast);
}

.bn-qty__btn:hover,
.flr-qty__btn:hover {
    background: linear-gradient(135deg, var(--bn-crimson-vibrant), var(--bn-burgundy));
    color: #FFFFFF !important;
    box-shadow: 0 0 10px var(--bn-burgundy-glow);
}

.bn-qty__btn:active,
.flr-qty__btn:active {
    background: var(--bn-burgundy-deep);
    transform: scale(0.92);
}

.bn-qty__val,
.flr-qty__value {
    text-align: center;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 0.95rem;
    color: var(--bn-gold) !important;
    border-inline: 1px solid rgba(255, 255, 255, 0.08);
    line-height: 32px;
    background: #141720;
}

/* Labels / stamps */
.bn-stamp {
    position: absolute;
    top: 8px;
    inset-inline-start: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.22rem 0.55rem;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1;
    text-transform: uppercase;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--bn-crimson-vibrant), var(--bn-burgundy));
    border: 1px solid rgba(255, 255, 255, 0.25);
    clip-path: polygon(5px 0, calc(100% - 5px) 0, 100% 5px, 100% calc(100% - 5px), calc(100% - 5px) 100%, 5px 100%, 0 calc(100% - 5px), 0 5px);
    box-shadow: 0 4px 12px var(--bn-burgundy-glow);
}

.bn-stamp--muted {
    background: linear-gradient(135deg, #334155, #1e293b);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    color: #CBD5E1;
}

.bn-stamp--dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 0;
    clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
    background: var(--bn-gold);
    box-shadow: 0 0 0 2px var(--bn-gold-dim);
}

/* Toast */
.bn-toast.flr-order-toast {
    position: fixed;
    bottom: calc(var(--bn-nav-h) + 20px);
    inset-inline: 50%;
    transform: translateX(50%);
    z-index: 1200;
    padding: 0.7rem 1.1rem;
    background: var(--bn-steel-800);
    color: #fff;
    font-size: 0.88rem;
    clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
    box-shadow: var(--bn-bevel-deep);
}

[dir="rtl"] .bn-toast.flr-order-toast {
    transform: translateX(-50%);
}

/* Utility for secondary pages using at-kicker leftovers */
.at-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bn-crimson-vibrant);
}

.at-kicker::before {
    content: '';
    width: 18px;
    height: 1px;
    background: linear-gradient(90deg, var(--bn-gold), transparent);
}

/* ——— BOORAN UNIVERSAL DARK SURFACES & FORM OVERRIDES ——— */
.bn-body .form-control,
.bn-body .form-select,
.bn-body .np-input,
.bn-body input[type="text"],
.bn-body input[type="tel"],
.bn-body input[type="number"],
.bn-body input[type="search"],
.bn-body textarea {
    background-color: #141822 !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
    border-radius: 0 !important;
    clip-path: polygon(7px 0, calc(100% - 7px) 0, 100% 7px, 100% calc(100% - 7px), calc(100% - 7px) 100%, 7px 100%, 0 calc(100% - 7px), 0 7px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

.bn-body .form-control:focus,
.bn-body .form-select:focus,
.bn-body .np-input:focus,
.bn-body input:focus,
.bn-body textarea:focus {
    background-color: #181f2c !important;
    border-color: var(--bn-crimson-vibrant) !important;
    color: #FFFFFF !important;
    box-shadow: 0 0 0 2px rgba(186, 38, 64, 0.35), inset 0 2px 4px rgba(0, 0, 0, 0.45) !important;
    outline: none !important;
}

.bn-body .form-control::placeholder,
.bn-body .np-input::placeholder,
.bn-body input::placeholder,
.bn-body textarea::placeholder {
    color: #64748B !important;
}

.bn-body .form-label {
    color: #CBD5E1 !important;
}

.bn-body .form-select option {
    background-color: #141822 !important;
    color: #FFFFFF !important;
}

.bn-body .card {
    background-color: var(--bn-surface-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

.bn-body .modal-content {
    background: var(--bn-surface-plate) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    color: #FFFFFF !important;
}

/* Neutralize any legacy bootstrap white utility classes */
.bn-body .bg-white,
.bn-body .bg-light,
.bn-body [class*="bg-white"],
.bn-body [class*="bg-light"] {
    background-color: var(--bn-surface-metal) !important;
    color: #FFFFFF !important;
}

.bn-body .text-dark,
.bn-body .text-muted {
    color: #94A3B8 !important;
}

/* Universal pagination overrides */
.bn-body .page-link,
.bn-body .page-item .page-link {
    background-color: var(--bn-surface-metal) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
}

.bn-body .page-item.active .page-link {
    background: linear-gradient(135deg, rgba(120, 20, 36, 0.8), rgba(66, 11, 20, 0.95)) !important;
    border-color: var(--bn-crimson-vibrant) !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 10px var(--bn-burgundy-glow) !important;
}

.bn-body .page-item.disabled .page-link {
    background-color: rgba(20, 24, 34, 0.6) !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    color: #64748B !important;
}

/* Universal dropdown overrides */
.bn-body .dropdown-menu {
    background-color: #141822 !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #FFFFFF !important;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.7) !important;
}

.bn-body .dropdown-item {
    color: #CBD5E1 !important;
}

.bn-body .dropdown-item:hover,
.bn-body .dropdown-item:focus {
    background-color: #1b212e !important;
    color: #FFFFFF !important;
}

/* Universal list group & table overrides */
.bn-body .list-group-item {
    background-color: var(--bn-surface-card) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #FFFFFF !important;
}

.bn-body .table {
    color: #CBD5E1 !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.bn-body .table > :not(caption) > * > * {
    background-color: transparent !important;
    color: inherit !important;
}
