/**
 * BNV SKU UPLOAD 1.1 — MOBILE STYLESHEET (SESSION 09B)
 * Apple Human Interface Guidelines, iPhone Safari Optimized, Safe Area Insets
 */

:root {
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);
    --primary: #0b6e4f;
    --primary-dark: #074733;
    --primary-light: #e8f5f0;
    --primary-hover: #0d845f;
    --gold: #c59b27;
    --gold-light: #fef9e7;
    --bg-page: #f8faf9;
    --bg-card: #ffffff;
    --text-main: #1a202c;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --touch-min: 44px;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-page);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.hidden {
    display: none !important;
}

/* ==========================================================================
   SAFE AREA HEADER & NAVIGATION (Session 12K Responsive Architecture)
   ========================================================================== */

.bnv-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding-top: var(--sat);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.bnv-header-inner {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 641px) {
    .bnv-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
        min-height: var(--touch-min);
        gap: 12px;
    }
}

.bnv-detail-header-inner {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: var(--touch-min) !important;
    padding: 10px 16px !important;
}

.bnv-header-row {
    display: flex;
    align-items: center;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.bnv-header-row-brand {
    justify-content: space-between;
}

@media (min-width: 641px) {
    .bnv-header-row-brand {
        width: auto;
        justify-content: flex-start;
        gap: 12px;
    }
}

.bnv-brand {
    display: flex;
    align-items: center;
    min-width: 0;
    flex-shrink: 1;
}

.bnv-logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: inherit;
    min-height: 38px;
    min-width: 0;
}

.bnv-logo-badge {
    background: var(--primary);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.bnv-logo-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.bnv-logo-title {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.3px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bnv-logo-sub {
    font-size: 8.5px;
    color: var(--gold);
    font-weight: 600;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    margin-top: 1px;
}

.bnv-header-meta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 8px;
}

.bnv-role-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary-dark);
    white-space: nowrap !important;
    display: inline-block;
    line-height: 1.2;
    flex-shrink: 0;
}

.bnv-role-admin { background: #fee2e2; color: #991b1b; }
.bnv-role-employee { background: #e0e7ff; color: #3730a3; }
.bnv-role-collaborator, .bnv-role-affiliate { background: #fef3c7; color: #92400e; }

.bnv-header-row-actions {
    justify-content: space-between;
    gap: 6px;
}

@media (min-width: 641px) {
    .bnv-header-row-actions {
        width: auto;
        justify-content: flex-end;
        gap: 10px;
    }
}

.bnv-header-nav-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex-wrap: wrap;
}

.bnv-header-tool-btns {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.bnv-admin-nav-pill {
    background: #0b6e4f;
    color: #ffffff !important;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
    min-height: 36px;
    white-space: nowrap;
    box-sizing: border-box;
}

.bnv-salekit-nav-btn {
    background: #f1f5f9;
    color: #475569 !important;
    border: 1px solid var(--border);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 36px;
    white-space: nowrap;
    box-sizing: border-box;
    transition: all 0.15s ease;
}
.bnv-salekit-nav-btn:hover {
    background: #e3f9e5;
    color: #0b6e4f !important;
    border-color: #a7f3d0;
}

.bnv-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background: #f1f5f9;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    min-height: 36px;
    position: relative;
    box-sizing: border-box;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.bnv-filter-btn:hover {
    background: #e2e8f0;
}
.bnv-filter-btn-label {
    display: inline;
}

/* TOUCH BUTTONS (MIN 44x44px) */
.bnv-icon-btn {
    min-width: var(--touch-min);
    min-height: var(--touch-min);
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-main);
    position: relative;
    border-radius: 50%;
    padding: 8px;
    touch-action: manipulation;
    box-sizing: border-box;
}

.bnv-badge-count {
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
}

/* ==========================================================================
   SEARCH & SORT BAR
   ========================================================================== */

.bnv-search-bar {
    display: flex;
    gap: 8px;
    padding: 8px 12px 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 641px) {
    .bnv-search-bar {
        padding: 8px 16px 12px;
    }
}

.bnv-search-input-wrap {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.bnv-search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    pointer-events: none;
}

.bnv-search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    height: var(--touch-min);
    padding: 8px 36px 8px 36px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #f1f5f4;
    font-size: 16px;
    outline: none;
    transition: border 0.2s;
}

.bnv-search-input:focus {
    border-color: var(--primary);
    background: #fff;
}

.bnv-clear-btn {
    position: absolute;
    right: 8px;
    min-width: 32px;
    min-height: 32px;
    background: none;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
}

.bnv-sort-wrap {
    flex-shrink: 0;
    box-sizing: border-box;
}

.bnv-sort-select {
    height: var(--touch-min);
    padding: 0 10px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 16px;
    font-weight: 500;
    outline: none;
    color: var(--text-main);
    box-sizing: border-box;
    max-width: 130px;
}

.bnv-chips-container {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 12px 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 641px) {
    .bnv-chips-container {
        padding: 0 16px 8px;
    }
}

.bnv-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    white-space: nowrap;
    min-height: 28px;
}

/* ==========================================================================
   PRODUCT CATALOG & 4:5 GRID
   ========================================================================== */

.bnv-main {
    padding: 12px 12px calc(24px + var(--sab));
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (min-width: 641px) {
    .bnv-main {
        padding: 12px 16px calc(24px + var(--sab));
    }
}

.bnv-catalog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.bnv-loading-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.bnv-spinner-sm {
    width: 12px;
    height: 12px;
    border: 2px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bnv-spin 0.6s linear infinite;
}

.bnv-product-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .bnv-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1024px) {
    .bnv-product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* 4:5 CARD */
.bnv-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.bnv-card:active {
    transform: scale(0.98);
}

.bnv-card-media-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #eef2f0;
}

.bnv-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bnv-card-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
    gap: 4px;
    pointer-events: none;
}

.bnv-badge-sku {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.5px;
}

.bnv-badge-video {
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.bnv-card-price-tag {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(11, 110, 79, 0.9);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.3px;
}

.bnv-card-info {
    padding: 10px;
}

.bnv-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin: 0 0 6px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bnv-card-sub {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: var(--text-muted);
}

.bnv-tag-chip {
    background: #f1f5f4;
    color: #4a5568;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.bnv-card-tap-hint {
    font-size: 11px;
    color: var(--primary);
    font-weight: 600;
}

/* ==========================================================================
   EMPTY STATE & LOADERS
   ========================================================================== */

.bnv-empty-state {
    text-align: center;
    padding: 48px 16px;
}

.bnv-empty-icon {
    color: var(--primary);
    margin-bottom: 12px;
}

.bnv-empty-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px;
}

.bnv-empty-desc {
    color: var(--text-muted);
    font-size: 14px;
    margin: 0 0 16px;
}

.bnv-scroll-sentinel {
    text-align: center;
    padding: 20px 0;
}

.bnv-loader-wrap {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
}

.bnv-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: bnv-spin 0.7s linear infinite;
}

@keyframes bnv-spin {
    to { transform: rotate(360deg); }
}

.bnv-end-notice {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
}

/* ==========================================================================
   PRODUCT DETAIL PAGE CONTAINER & ALIGNMENT
   ========================================================================== */

.bnv-detail-body {
    background: #f8faf9;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.bnv-detail-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    width: 100%;
}

.bnv-detail-main {
    flex: 1;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 16px 0 calc(36px + var(--sab));
}

.bnv-detail-wrapper {
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================================
   MEDIA GALLERY (HERO PREVIEW + HORIZONTAL THUMBNAIL STRIP)
   ========================================================================== */

.bnv-gallery-section {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bnv-hero-preview {
    position: relative;
    width: 100%;
    max-width: 520px;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
    background: #090e0c;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bnv-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #090e0c;
    display: block;
    user-select: none;
    -webkit-user-select: none;
}

.bnv-hero-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(17, 24, 39, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 5;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.bnv-hero-video-poster {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.bnv-hero-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(11, 110, 79, 0.92);
    color: #fff;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    min-height: var(--touch-min);
    min-width: var(--touch-min);
    transition: transform 0.15s, background-color 0.15s;
}

.bnv-hero-play-btn:hover {
    transform: translate(-50%, -50%) scale(1.06);
    background: var(--primary);
}

.bnv-hero-video-tag {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
}

/* THUMBNAIL STRIP — ALIGNED DIRECTLY UNDER VIEWER */
.bnv-thumb-strip-wrap {
    width: 100%;
    max-width: 520px;
    margin: 10px auto 0;
    padding: 0;
    box-sizing: border-box;
}

.bnv-thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 6px;
    justify-content: center;
    align-items: center;
    scrollbar-width: thin;
    box-sizing: border-box;
}

@media (max-width: 540px) {
    .bnv-thumb-strip {
        justify-content: flex-start;
        padding-left: 4px;
        padding-right: 4px;
    }
}

.bnv-thumb-item {
    flex: 0 0 72px;
    width: 72px;
    height: 90px;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid #d1d5db;
    background: #e5e7eb;
    padding: 0;
    cursor: pointer;
    position: relative;
    scroll-snap-align: start;
    min-height: 44px;
    min-width: 44px;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    outline: none;
}

.bnv-thumb-item:hover {
    border-color: #0b6e4f;
}

.bnv-thumb-item.active {
    border-color: #0b6e4f;
    box-shadow: 0 0 0 2px rgba(11,110,79,0.35);
    transform: scale(1.03);
}

.bnv-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.bnv-thumb-video-badge {
    position: absolute;
    bottom: 3px;
    right: 3px;
    background: rgba(0,0,0,0.75);
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    pointer-events: none;
}

/* ==========================================================================
   PRODUCT SPECS & CERTIFICATE
   ========================================================================== */

.bnv-specs-section {
    width: 100%;
    max-width: 520px;
    margin: 8px auto 0;
    box-sizing: border-box;
}

.bnv-product-hero-card {
    background: #fff;
    padding: 18px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 12px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.bnv-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.bnv-price-big {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
}

.bnv-btn-copy-sku {
    min-height: 36px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #f8faf9;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.bnv-detail-product-name {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 8px;
    color: var(--text-main);
}

.bnv-tags-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bnv-desc-card, .bnv-cert-card {
    background: #fff;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    margin-bottom: 12px;
}

.bnv-section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0 0 10px;
}

.bnv-desc-text {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-main);
    margin: 0;
}

.bnv-cert-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    margin-bottom: 10px;
}

.bnv-table-specs {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.bnv-table-specs th {
    text-align: left;
    width: 40%;
    color: var(--text-muted);
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f4;
}

.bnv-table-specs td {
    text-align: right;
    font-weight: 600;
    color: var(--text-main);
    padding: 6px 0;
    border-bottom: 1px solid #f1f5f4;
}

/* ==========================================================================
   BUTTONS & ACTIONS
   ========================================================================== */

.bnv-action-bar-sticky {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    z-index: 50;
    margin: 16px auto 0 !important;
}

/* Desktop: In-flow toolbar below specifications */
@media (min-width: 641px) {
    .bnv-action-bar-sticky {
        position: static;
        width: 100% !important;
        max-width: 100% !important;
        margin: 20px auto 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
}

/* Mobile: Sticky bottom toolbar with safe margin */
@media (max-width: 640px) {
    .bnv-action-bar-sticky {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-width: 100% !important;
        margin: 16px 0 0 !important;
        padding: 12px 16px calc(12px + var(--sab)) !important;
        background: rgba(255, 255, 255, 0.96);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        box-shadow: 0 -4px 16px rgba(0,0,0,0.06);
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    .bnv-specs-section {
        padding-bottom: calc(75px + var(--sab));
    }
}

.bnv-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--touch-min);
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.bnv-btn:active {
    opacity: 0.85;
}

.bnv-btn-primary { background: var(--primary); color: #fff; }
.bnv-btn-gold { background: var(--gold); color: #fff; }
.bnv-btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text-main); }
.bnv-btn-block {
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* ==========================================================================
   FULLSCREEN VIDEO VIEWER MODAL
   ========================================================================== */

.bnv-video-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #000;
    display: flex;
    flex-direction: column;
    padding-top: var(--sat);
    padding-bottom: var(--sab);
}

.bnv-video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    color: #fff;
}

.bnv-video-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bnv-video-badge {
    background: var(--gold);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.bnv-video-modal-title {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.bnv-video-close-btn {
    color: #fff;
}

.bnv-video-modal-body {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    position: relative;
}

.bnv-video-modal-body video {
    width: 100%;
    max-height: 80vh;
    outline: none;
}

.bnv-video-modal-footer {
    padding: 12px 16px;
    text-align: center;
    color: #fff;
}

.bnv-video-fallback {
    background: rgba(255,255,255,0.1);
    padding: 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    line-height: 1.4;
}

/* ==========================================================================
   FILTER DRAWER
   ========================================================================== */

.bnv-drawer {
    position: fixed;
    inset: 0;
    z-index: 500;
}

.bnv-drawer-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
}

.bnv-drawer-sheet {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    padding-bottom: var(--sab);
    animation: bnv-slide-up 0.25s ease-out;
}

@keyframes bnv-slide-up {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.bnv-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.bnv-drawer-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-dark);
}

.bnv-drawer-body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.bnv-filter-group {
    margin-bottom: 20px;
}

.bnv-filter-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bnv-drawer-chips-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.bnv-chip-btn {
    min-height: var(--touch-min);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border);
    background: #f8faf9;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
}

.bnv-chip-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.bnv-price-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bnv-input {
    flex: 1;
    height: var(--touch-min);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 0 12px;
    font-size: 16px;
    outline: none;
}

.bnv-drawer-footer {
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid var(--border);
}

.bnv-drawer-footer .bnv-btn {
    flex: 1;
}

/* ==========================================================================
   DETAIL SPA MODAL
   ========================================================================== */

.bnv-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 400;
}

.bnv-detail-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.bnv-detail-modal-sheet {
    position: absolute;
    inset: 0;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    padding-top: var(--sat);
    padding-bottom: var(--sab);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bnv-detail-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}

.bnv-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.bnv-detail-modal-body {
    flex: 1;
    padding: 16px;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */

.bnv-toast {
    position: fixed;
    bottom: calc(24px + var(--sab));
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, 0.95);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    animation: bnv-fade-in 0.2s ease-out;
}

@keyframes bnv-fade-in {
    from { opacity: 0; transform: translate(-50%, 10px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================================
   SALE KIT & CURATED COLLECTIONS (SESSION 10B)
   ========================================================================== */

.bnv-collection-card {
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    padding: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.bnv-col-header {
    margin-bottom: 12px;
}

.bnv-col-title-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 6px;
}

.bnv-col-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.bnv-col-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-muted);
    flex-wrap: wrap;
}

.bnv-badge-status {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.bnv-status-active {
    background: #dcfce7;
    color: #166534;
}

.bnv-status-revoked {
    background: #fee2e2;
    color: #991b1b;
}

.bnv-col-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.bnv-action-btn-group {
    display: flex;
    gap: 8px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.bnv-card-actions-row {
    display: flex;
    gap: 6px;
    border-top: 1px solid var(--border);
    padding-top: 8px;
    margin-top: 8px;
}

/* ==========================================================================
   BNV MOBILE APP BOTTOM NAVIGATION BAR (SESSION 12L iOS & PWA COMPLIANT)
   ========================================================================== */

body:has(.bnv-bottom-bar),
body.has-bnv-bottom-bar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)) !important;
}

body:has(.bnv-bottom-bar) .bnv-main,
body.has-bnv-bottom-bar .bnv-main {
    padding-bottom: 16px !important;
}

body:has(.bnv-bottom-bar) .container,
body.has-bnv-bottom-bar .container {
    margin-bottom: 20px !important;
}

.bnv-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: calc(56px + env(safe-area-inset-bottom, 0px));
    min-height: 56px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid #e2e8e5;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    z-index: 350;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    will-change: transform;
    touch-action: manipulation;
}

.bnv-bottom-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    height: 56px;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.bnv-bottom-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 56px;
    min-height: 44px;
    min-width: 0;
    padding: 4px 2px 2px;
    box-sizing: border-box;
    text-decoration: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 500;
    transition: color .15s ease, transform .15s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

.bnv-bottom-btn:hover,
.bnv-bottom-btn:active,
.bnv-bottom-btn.active {
    color: #0b6e4f;
    font-weight: 700;
}

.bnv-bottom-btn.active .bnv-bottom-icon {
    transform: translateY(-2px);
}

.bnv-bottom-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-bottom: 3px;
    flex-shrink: 0;
    transition: transform .15s ease;
}

.bnv-bottom-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

.bnv-bottom-text {
    font-size: 11px;
    line-height: 1.15;
    letter-spacing: -0.2px;
    white-space: nowrap;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

@media all and (display-mode: standalone) {
    .bnv-bottom-bar {
        height: calc(56px + env(safe-area-inset-bottom, 20px));
        padding-bottom: env(safe-area-inset-bottom, 20px);
    }
    body:has(.bnv-bottom-bar), body.has-bnv-bottom-bar, body.has-bnv-bottom-nav {
        padding-bottom: calc(64px + env(safe-area-inset-bottom, 20px)) !important;
    }
}
