:root {
    --bc-teal:       #1ab5a8;
    --bc-teal-dark:  #0f8d83;
    --bc-teal-light: #e6f7f5;
    --bc-text:       #1a1a1a;
    --bc-text-mute:  #6b6b6b;
    --bc-border:     #ececec;
    --bc-bg:         #ffffff;
    --bc-radius:     8px;
    --bc-shadow:     0 12px 32px rgba(0, 0, 0, 0.08);
}

/* ===== Resets to override theme styles ===== */
.bc-nav button,
.bc-mobile button {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    border-radius: 0;
    line-height: 1;
}
.bc-nav button:hover,
.bc-mobile button:hover,
.bc-nav button:focus,
.bc-mobile button:focus {
    background: none;
    box-shadow: none;
    outline: none;
}
.bc-nav a,
.bc-mobile a {
    text-decoration: none;
    box-shadow: none;
    color: inherit;
}
.bc-nav a:hover,
.bc-mobile a:hover {
    box-shadow: none;
}

/* ===== Nav container ===== */
.bc-nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: inherit;
    width: 100%;
}
.bc-nav__inner {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
    flex: 1;
}
.bc-nav__cart {
    margin-left: auto;
    flex-shrink: 0;
}

.bc-nav__item {
    position: relative;
    list-style: none;
}
.bc-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none !important;
    border: none;
    cursor: pointer;
    color: var(--bc-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.65rem 1rem !important;
    border-radius: var(--bc-radius);
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.2;
}
.bc-nav__link:hover,
.bc-nav__item.is-open > .bc-nav__link {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
}
.bc-nav__chev { transition: transform 0.2s ease; }
.bc-nav__item.is-open .bc-nav__chev { transform: rotate(180deg); }

/* ===== Hamburger ===== */
.bc-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    background: none !important;
    border: none !important;
    cursor: pointer;
    padding: 0 !important;
    border-radius: 6px;
    transition: background 0.15s ease;
    flex-shrink: 0;
}
.bc-burger:hover { background: var(--bc-teal-light) !important; }
.bc-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--bc-text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ===== Cart button ===== */
.bc-cart-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem 0.55rem 0.85rem !important;
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
    border-radius: var(--bc-radius);
    text-decoration: none !important;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    line-height: 1.2;
}
.bc-cart-btn:hover {
    background: var(--bc-teal) !important;
    color: #fff !important;
}
.bc-cart-btn__amount { line-height: 1; }
.bc-cart-btn__count {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #e63946;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    line-height: 1;
}

/* ===== Desktop mega panel ===== */
.bc-mega {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bc-bg);
    border: 1px solid var(--bc-border);
    border-radius: var(--bc-radius);
    box-shadow: var(--bc-shadow);
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
    z-index: 999;
}
.bc-mega.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.bc-mega__panel {
    display: none;
    grid-template-columns: 260px 1fr 300px;
    gap: 1.5rem;
    padding: 1.5rem;
    min-height: 360px;
}
.bc-mega__panel.is-active { display: grid; }
.bc-mega__panel--no-feature { grid-template-columns: 260px 1fr; }

.bc-mega__l2-col {
    border-right: 1px solid var(--bc-border);
    padding-right: 1.25rem;
}
.bc-mega__l2-header {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--bc-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.75rem;
    padding: 0 0.5rem;
}
.bc-mega__l2 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem !important;
    border-radius: 6px;
    background: none !important;
    color: var(--bc-text) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    font-weight: 400;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.3;
}
.bc-mega__l2:hover,
.bc-mega__l2.is-active {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
    font-weight: 500;
}
.bc-mega__l2-arrow {
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.15s ease;
    flex-shrink: 0;
}
.bc-mega__l2:hover .bc-mega__l2-arrow,
.bc-mega__l2.is-active .bc-mega__l2-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.bc-mega__content { min-width: 0; }
.bc-mega__content-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--bc-border);
}
.bc-mega__content-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bc-text);
}
.bc-mega__content-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--bc-teal-dark) !important;
    text-decoration: none !important;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
}
.bc-mega__content-link:hover { text-decoration: underline !important; }

.bc-mega__l3-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.4rem 0.75rem;
}
.bc-mega__l3 {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.5rem 0.65rem !important;
    border-radius: 6px;
    background: none !important;
    color: var(--bc-text) !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
    line-height: 1.3;
}
.bc-mega__l3:hover {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
}
.bc-mega__l3-count {
    color: var(--bc-text-mute);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.bc-mega__l3:hover .bc-mega__l3-count { color: var(--bc-teal-dark); }

.bc-mega__empty {
    padding: 2rem;
    text-align: center;
    color: var(--bc-text-mute);
    font-size: 0.9rem;
}

.bc-mega__feature {
    border-radius: var(--bc-radius);
    overflow: hidden;
    position: relative;
}
.bc-mega__feature a {
    display: block;
    position: relative;
    height: 100%;
    min-height: 320px;
    text-decoration: none;
}
.bc-mega__feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.bc-mega__feature-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1rem;
    background: linear-gradient(to top, rgba(0,0,0,0.75), transparent);
    color: #fff;
}
.bc-mega__feature-tag {
    display: inline-block;
    background: var(--bc-teal);
    color: #fff;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}
.bc-mega__feature-title {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
}

/* ===== Mobile drawer ===== */
.bc-mobile {
    position: fixed;
    inset: 0;
    z-index: 9999;
    visibility: hidden;
    pointer-events: none;
}
.bc-mobile.is-open {
    visibility: visible;
    pointer-events: auto;
}
.bc-mobile__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.bc-mobile.is-open .bc-mobile__backdrop { opacity: 1; }
.bc-mobile__drawer {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 86%;
    max-width: 380px;
    background: var(--bc-bg);
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.bc-mobile.is-open .bc-mobile__drawer { transform: translateX(0); }
.bc-mobile__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--bc-border);
    flex-shrink: 0;
    background: var(--bc-bg);
}
.bc-mobile__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bc-text);
}
.bc-mobile__close {
    background: none !important;
    border: none !important;
    cursor: pointer;
    color: var(--bc-text);
    padding: 0.25rem !important;
    border-radius: 6px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
    width: 36px;
    height: 36px;
}
.bc-mobile__close:hover {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark);
}
.bc-mobile__body {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.bc-mobile__item {
    border-bottom: 1px solid var(--bc-border);
    list-style: none;
}
.bc-mobile__trigger,
.bc-mobile__plain {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.25rem !important;
    background: none !important;
    border: none !important;
    cursor: pointer;
    text-align: left;
    color: var(--bc-text) !important;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none !important;
    border-radius: 0 !important;
    line-height: 1.3;
    box-shadow: none !important;
}
.bc-mobile__trigger:hover,
.bc-mobile__plain:hover {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
}
.bc-mobile__trigger .chev {
    transition: transform 0.2s ease;
    color: var(--bc-text-mute);
    flex-shrink: 0;
}
.bc-mobile__item.is-open .bc-mobile__trigger .chev { transform: rotate(180deg); }
.bc-mobile__item.is-open .bc-mobile__trigger {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
}

.bc-mobile__panel {
    max-height: 0;
    overflow: hidden;
    background: #fafafa;
    transition: max-height 0.3s ease;
}
.bc-mobile__item.is-open .bc-mobile__panel { max-height: 5000px; }

.bc-mobile__l2 {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--bc-border);
}
.bc-mobile__l2:last-child { border-bottom: none; }
.bc-mobile__l2-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem 0.5rem;
    gap: 0.5rem;
}
.bc-mobile__l2-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--bc-text-mute);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.bc-mobile__l2-link {
    color: var(--bc-teal-dark) !important;
    font-size: 0.78rem;
    text-decoration: none !important;
    white-space: nowrap;
}
.bc-mobile__l2-link:hover { text-decoration: underline !important; }
.bc-mobile__l3 {
    display: flex !important;
    align-items: baseline;
    justify-content: space-between;
    padding: 0.55rem 1.5rem !important;
    color: var(--bc-text) !important;
    text-decoration: none !important;
    font-size: 0.9rem;
    line-height: 1.3;
    background: none !important;
}
.bc-mobile__l3:hover {
    background: var(--bc-teal-light) !important;
    color: var(--bc-teal-dark) !important;
}
.bc-mobile__l3-count {
    color: var(--bc-text-mute);
    font-size: 0.75rem;
    flex-shrink: 0;
}

/* ===== Responsive switches ===== */
@media (max-width: 1024px) {
    .bc-mega__panel { grid-template-columns: 220px 1fr; }
    .bc-mega__feature { display: none; }
}

@media (max-width: 900px) {
    .bc-nav__inner { display: none; }
    .bc-mega { display: none; }
    .bc-burger { display: flex; }
    .bc-cart-btn__amount { display: none; }
    .bc-cart-btn { padding: 0.55rem !important; }
}

/* WordPress admin bar offset on mobile */
@media (max-width: 900px) {
    body.admin-bar .bc-mobile__drawer { top: 46px; }
}
@media (max-width: 782px) and (min-width: 601px) {
    body.admin-bar .bc-mobile__drawer { top: 46px; }
}
@media (min-width: 783px) {
    body.admin-bar .bc-mobile__drawer { top: 32px; }
}