:root {
    --okmcc-primary: #0d6efd;
    --okmcc-dark: #172033;
    --okmcc-muted: #6c757d;
    --okmcc-light: #f8f9fa;
}

body {
    color: var(--okmcc-dark);
    background: #fff;
}

.navbar-brand {
    color: var(--okmcc-primary);
}

.navbar-brand:hover {
    color: var(--okmcc-primary);
}

.nav-link {
    font-weight: 500;
}

.card {
    border-radius: 12px;
}

.btn {
    border-radius: 8px;
}

.rounded-4 {
    border-radius: 16px !important;
}



/*
Custom ICON
*/

.lc-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background: url('/assets/images/common/lc128.png') center / contain no-repeat;
    vertical-align: middle;
}

/* =============================================================
   OKMCC MEMBER NAVIGATION SUITE (Single Source of Truth)
   Desktop Mega Tabs + Mobile 2-Pane Split Drawer + Sticky Bottom
   ============================================================= */

/* Header Wrapper (OKMCC Blue) */
.ok-header-wrap {
    background: #084298;
    color: #ffffff;
    position: sticky;
    top: 0;
    z-index: 1040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-radius: 14px 14px 0 0;
}

/* Brand Logo */
.ok-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    line-height: 1.1;
}
.ok-brand-mark {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.ok-brand-name {
    font-weight: 800;
    font-size: 1.15rem;
    letter-spacing: -0.5px;
    color: #ffffff;
}
.ok-brand-sub {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

/* Desktop Segmented Pill Tabs on Blue */
.ok-tabs-nav {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 4px;
    border-radius: 50px;
    gap: 2px;
    white-space: nowrap;
}
.ok-tab-wrap {
    position: relative;
}
.ok-tab-wrap.has-mega {
    position: static;
}
.ok-tab-btn {
    padding: 7px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s ease;
}
.ok-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.22);
}
.ok-tab-btn.active {
    background: #ffffff;
    color: #084298;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Desktop Floating Category Mega-Panel with Invisible Hover-Bridge */
.ok-tab-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    color: #1e293b;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18);
    border: 1px solid #e2e8f0;
    padding: 20px;
    z-index: 1060;
    margin-top: 2px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}
/* Broad invisible hover bridge covers the top gap completely */
.ok-tab-dropdown::before {
    content: '';
    position: absolute;
    top: -18px;
    left: -20px;
    right: -20px;
    height: 20px;
    background: transparent;
}
/* Adaptive Sizing Classes */
.ok-tab-dropdown.dropdown-compact {
    min-width: 280px;
    width: 280px;
    padding: 16px;
}
.ok-tab-dropdown.dropdown-medium {
    min-width: 480px;
    width: 480px;
    padding: 18px;
}
.ok-tab-dropdown.dropdown-mega {
    min-width: 820px;
    max-width: min(880px, calc(100vw - 32px));
    max-height: 72vh;
    overflow-y: auto;
    padding: 22px;
}

.ok-tab-wrap:hover .ok-tab-dropdown,
.ok-tab-wrap.hover-active .ok-tab-dropdown,
.ok-tab-dropdown:hover,
.ok-tab-dropdown.hover-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

/* Header Right Utility Controls */
.ok-cart-btn {
    background: #ffc107;
    color: #000000;
    font-weight: 700;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.84rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    transition: background 0.15s;
}
.ok-cart-btn:hover {
    background: #ffca2c;
    color: #000000;
}
.ok-loyalty-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
}
.ok-loyalty-pill:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Mobile 2-Pane Split-Screen Drawer */
.ok-split-wrap {
    display: flex;
    height: calc(100vh - 65px);
    overflow: hidden;
}
.ok-split-left {
    width: 38%;
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 70px;
    scrollbar-width: thin;
}
.ok-split-item {
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-size: 0.74rem;
    font-weight: 600;
    color: #475569;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: all 0.15s;
}
.ok-split-item i {
    font-size: 1.25rem;
    margin-bottom: 3px;
}
.ok-split-item.active {
    background: #ffffff;
    color: #084298;
    border-left: 4px solid #084298;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.04);
}
.ok-split-right {
    width: 62%;
    background: #ffffff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px;
    padding-bottom: 70px;
    scrollbar-width: thin;
}
.ok-split-group-title {
    font-size: 0.86rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.ok-split-link {
    display: block;
    padding: 5px 0;
    color: #334155;
    font-size: 0.8rem;
    text-decoration: none;
}
.ok-split-link:hover { color: #084298; }

/* Mobile Fixed Bottom Navigation Bar */
.ok-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    z-index: 1045;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
    padding: 4px 0 calc(4px + env(safe-area-inset-bottom));
}
.ok-bottom-list {
    display: flex;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
}
.ok-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #64748b;
    text-decoration: none !important;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 4px;
}
.ok-bottom-link.active { color: #084298; }
.ok-bottom-link i { font-size: 1.25rem; }

/* Tablet Landscape Adaptations */
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ok-tab-btn {
        padding: 6px 11px;
        font-size: 0.8rem;
        gap: 4px;
    }
    .ok-tabs-nav {
        padding: 3px;
        gap: 1px;
    }
    .ok-cart-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Mobile Display Rules */
@media (max-width: 991.98px) {
    .ok-bottom-nav { display: block; }
    body { padding-bottom: 70px; }
}

