/* BR Airsoft Core Features CSS */

/* 1. Toast Notification Styles */
#bra-purchase-toast {
    position: fixed;
    bottom: calc(20px + env(safe-area-inset-bottom, 0px));
    left: 20px;
    z-index: 99999;
    max-width: 340px;
    background: #ffffff;
    color: #222222;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.18), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 14px 32px 14px 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: inherit;
    font-size: 13px;
    line-height: 1.4;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.45s ease;
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

#bra-purchase-toast.bra-toast-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

#bra-purchase-toast.bra-toast-hidden {
    opacity: 0;
    transform: translateY(24px);
    pointer-events: none;
}

#bra-toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    color: #999999;
    cursor: pointer;
    padding: 2px;
    line-height: 1;
}

#bra-toast-close:hover {
    color: #111111;
}

.bra-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

#bra-toast-img {
    width: 46px;
    height: 46px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
    background: #f0f0f0;
}

.bra-toast-text {
    overflow: hidden;
}

.bra-toast-text p {
    margin: 0 0 2px 0;
    color: #555555;
    font-size: 12px;
}

.bra-toast-text strong {
    color: #111111;
}

#bra-toast-title {
    display: block;
    font-weight: 600;
    color: #111111;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 215px;
}

#bra-toast-time {
    color: #666666;
    font-size: 11px;
    display: block;
    margin-top: 1px;
}

@media (max-width: 480px) {
    #bra-purchase-toast {
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* 2. Smart Faceted Sidebar & Mobile Accordion Styles */
.bra-sidebar-filter-wrap {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 16px;
    color: #ffffff;
    box-sizing: border-box;
    margin-bottom: 25px;
}

.bra-mobile-toggle-btn {
    display: none;
    width: 100%;
    background: #8D5400;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    justify-content: space-between;
    align-items: center;
}

.bra-badge {
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
}

.bra-sidebar-filter-wrap .bra-filter-group {
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
}

.bra-sidebar-filter-wrap .bra-group-title {
    display: block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #8D5400;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.bra-sidebar-filter-wrap .bra-options-list {
    max-height: 160px;
    overflow-y: auto;
}

.bra-sidebar-filter-wrap .bra-checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 6px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.bra-sidebar-filter-wrap .bra-checkbox-label.bra-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.bra-term-name {
    flex-grow: 1;
}

.bra-term-count {
    font-size: 10px;
    color: #64748b;
}

.bra-sidebar-filter-wrap .bra-price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bra-sidebar-filter-wrap .bra-price-inputs input {
    width: 50%;
    background: #1e293b !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
    padding: 6px !important;
    border-radius: 4px !important;
    font-size: 12px !important;
    box-sizing: border-box !important;
}

.bra-action-btns {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bra-btn-reset, .bra-btn-apply {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.bra-btn-reset {
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
}
.bra-btn-reset:hover { color: #ffffff; border-color: #8D5400; }

.bra-btn-apply {
    background: #8D5400;
    border: none;
    color: #ffffff;
    display: none;
}

@media (max-width: 768px) {
    .bra-sidebar-filter-wrap {
        padding: 10px;
        margin-bottom: 15px;
    }

    .bra-mobile-toggle-btn {
        display: flex;
    }

    .bra-filter-body {
        display: none;
        margin-top: 12px;
    }

    .bra-filter-body.bra-open {
        display: block;
    }

    .bra-btn-apply {
        display: block;
    }
}