/* ==========================================================================
   NBC Catalog v5.0 — Витрина кофе Яровой
   Палитра navy / gold / cream · Spectral + Montserrat
   ========================================================================== */

/* ═══ Variables ═══ */

:root {
    --nbc-navy:       #1B2356;
    --nbc-navy-deep:  #0E1433;
    --nbc-gold:       #C49953;
    --nbc-gold-light: #D5B480;
    --nbc-cream:      #FAF6F0;
    --nbc-cream-dark: #F0E8DA;
    --nbc-white:      #FFFFFF;
    --nbc-text:       #2A2A2A;
    --nbc-text-light: #6B6B6B;
    --nbc-text-muted: #9B9B9B;
    --nbc-grid-w:     1444px;
    --nbc-tr:         .3s ease;
}

/* ═══ Wrapper ═══ */

.nbc-catalog-wrapper {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--nbc-text);
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
    background: var(--nbc-cream);
}
.nbc-catalog-wrapper *,
.nbc-catalog-wrapper *::before,
.nbc-catalog-wrapper *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════
   FILTERS
   ═══════════════════════════════════════════════ */

.nbc-filters {
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: 0 auto;
    padding: 38px 40px 0;
}
.nbc-filters-inner {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: 36px;
    max-width: var(--nbc-grid-w);
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

/* ── Кнопки заваривания ── */

.nbc-filter-btns {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.nbc-filter-btn {
    padding: 9px 21px;
    border: 1px solid rgba(27,35,86,.12);
    background: transparent;
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--nbc-text);
    cursor: pointer;
    transition: all var(--nbc-tr);
    flex-shrink: 0;
}
.nbc-filter-btn:hover {
    border-color: var(--nbc-gold);
    color: var(--nbc-gold);
}
.nbc-filter-btn.active {
    background: var(--nbc-navy);
    border-color: var(--nbc-navy);
    color: #fff;
}

/* ── Категории-иконки ── */

.nbc-category-cards {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    flex-shrink: 0;
    gap: 16px;
    flex-wrap: nowrap;
}
.nbc-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all .35s;
    text-decoration: none;
    color: var(--nbc-text);
    padding: 0;
    border: none;
    background: none;
}
.nbc-category-card:hover .nbc-category-icon {
    border-color: var(--nbc-gold);
    box-shadow: 0 4px 16px rgba(196,153,83,.15);
    transform: translateY(-2px);
}
.nbc-category-card.active .nbc-category-icon {
    border-color: var(--nbc-gold);
    background: linear-gradient(135deg, rgba(196,153,83,.08), rgba(213,180,128,.04));
}
.nbc-category-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1.5px solid rgba(27,35,86,.1);
    background: var(--nbc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .35s;
}
.nbc-category-icon svg { width: 28px; height: 28px; }
.nbc-category-label {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    color: var(--nbc-text);
}

/* ── Дропдауны ── */

.nbc-filter-dropdowns {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}
.nbc-filter-select {
    padding: 9px 32px 9px 14px;
    border: 1px solid rgba(27,35,86,.12);
    background: var(--nbc-white);
    border-radius: 100px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--nbc-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231B2356' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: all .25s;
}
.nbc-filter-select:hover  { border-color: var(--nbc-gold); }
.nbc-filter-select:focus  { border-color: var(--nbc-navy); box-shadow: 0 0 0 2px rgba(27,35,86,.08); }

/* ═══ «День в день» banner ═══ */

.nbc-dnd-banner {
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: 0 auto 20px;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--nbc-navy-deep), var(--nbc-navy));
    color: var(--nbc-cream);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.nbc-dnd-icon { font-size: 20px; }

.nbc-product-count {
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: 0 auto;
    padding: 0 40px 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: var(--nbc-text-muted);
    font-weight: 400;
}

/* ═══════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════ */

.nbc-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, 343px);
    gap: 24px;
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: 0 auto;
    padding: 0 40px 100px;
    justify-content: center;
}

/* ═══════════════════════════════════════════════
   PRODUCT CARD
   ═══════════════════════════════════════════════ */

.nbc-card {
    background: var(--nbc-white);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,.05);
    transition: all .4s cubic-bezier(.25,.46,.45,.94);
    display: flex;
    flex-direction: column;
    padding: 20px 18px 18px;
    position: relative;
    width: 343px;
}
.nbc-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(27,35,86,.1);
}
.nbc-card.nbc-hidden { display: none; }
.nbc-name-link { text-decoration: none; color: inherit; }
.nbc-name-link:hover .nbc-name { color: var(--nbc-gold); }
a.nbc-img { display: flex; }
.nbc-hidden { display: none !important; }

/* ── Сердечко ── */

.nbc-fav {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--nbc-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: scale(.8);
    transition: all .3s;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,.1);
    border: none;
    padding: 0;
}
.nbc-fav svg {
    width: 16px;
    height: 16px;
    color: var(--nbc-text-muted);
    transition: all .3s;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}
.nbc-card:hover .nbc-fav { opacity: 1; transform: scale(1); }
.nbc-fav:hover           { background: var(--nbc-cream); }
.nbc-fav:hover svg       { color: #e05555; }
.nbc-fav.active svg      { color: #e05555; fill: #e05555; }
.nbc-fav.active          { opacity: 1; transform: scale(1); }

/* ── Card top ── */

.nbc-card-top {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Badge */
.nbc-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    border-radius: 100px;
    margin-bottom: 13px;
    align-self: flex-start;
}
.nbc-badge-hidden { visibility: hidden; }
.badge-navy { background: var(--nbc-navy); color: #fff; }
.badge-gold { background: linear-gradient(135deg, var(--nbc-gold), var(--nbc-gold-light)); color: var(--nbc-navy-deep); }
.badge-coral { background: #E0605E; color: #fff; }
.badge-olive { background: #6B7F5E; color: #fff; }
.badge-plum  { background: #7B5EA7; color: #fff; }

/* Name + Processing */
.nbc-name-wrap { min-height: 62px; }
.nbc-name {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--nbc-navy);
    line-height: 1.2;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.nbc-processing {
    font-size: 11px;
    color: #000;
    font-weight: 400;
    margin: 0;
}

/* Image */
.nbc-img {
    height: 210px;
    overflow: hidden;
    background: var(--nbc-white);
    position: relative;
    border-radius: 10px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,.04);
}
.nbc-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform .6s;
}
.nbc-card:hover .nbc-img img { transform: scale(1.04); }

/* Description */
.nbc-desc {
    font-size: 11px;
    color: #000;
    line-height: 1.4;
    margin-bottom: 4px;
    font-weight: 400;
    min-height: 46px;
}

/* ── Taste bars ── */

.nbc-taste-bars {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px 10px;
    margin-top: 6px;
    margin-bottom: 10px;
}
.nbc-taste-bar {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.nbc-taste-label {
    font-size: 9px;
    font-weight: 500;
    color: var(--nbc-text-light);
    letter-spacing: .03em;
    margin-bottom: 3px;
}
.nbc-taste-track {
    width: 100%;
    height: 2px;
    background: var(--nbc-cream-dark);
    border-radius: 10px;
    overflow: visible;
    position: relative;
}
.nbc-taste-fill {
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--nbc-gold), var(--nbc-gold-light));
    transition: width .8s cubic-bezier(.25,.46,.45,.94);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}
.nbc-bean-icon {
    width: 10px;
    height: 10px;
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
    filter: drop-shadow(0 1px 2px rgba(50,25,10,.4));
}

/* Roast method */
.nbc-roast-method {
    font-size: 11px;
    color: #000;
    font-weight: 400;
    margin: 2px 0 0;
}

/* ── Card bottom ── */

.nbc-card-bottom {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: auto;
    padding-top: 22px;
}

/* Weight + Grind row */
.nbc-weight-grind {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.nbc-weights {
    display: flex;
    gap: 6px;
}
.nbc-weight-btn {
    padding: 5px 14px;
    border-radius: 8px;
    border: 1.5px solid rgba(27,35,86,.1);
    background: transparent;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--nbc-text-light);
    cursor: pointer;
    transition: all .25s;
}
.nbc-weight-btn.active {
    border-color: var(--nbc-navy);
    background: var(--nbc-navy);
    color: #fff;
}
.nbc-weight-btn:hover:not(.active) {
    border-color: var(--nbc-gold);
    color: var(--nbc-gold);
}

/* Grind */
.nbc-grind-wrap { position: relative; }
.nbc-grind-select {
    padding: 5px 26px 5px 10px;
    border: 1px solid rgba(27,35,86,.12);
    border-radius: 8px;
    background: var(--nbc-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: var(--nbc-navy);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: all .25s;
    outline: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%231B2356' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}
.nbc-grind-select:hover { border-color: var(--nbc-gold); }
.nbc-grind-select:focus { border-color: var(--nbc-navy); box-shadow: 0 0 0 2px rgba(27,35,86,.08); }

/* Buy row */
.nbc-buy-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}
.nbc-price {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--nbc-navy);
    line-height: 1;
    white-space: nowrap;
}
.nbc-currency {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 16px;
    font-weight: 600;
}
.nbc-buy-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Qty */
.nbc-qty {
    display: flex;
    align-items: center;
    gap: 0;
}
.nbc-qty-btn {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 1px solid var(--nbc-navy);
    background: transparent;
    color: var(--nbc-navy);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
    line-height: 1;
    padding: 0;
}
.nbc-qty-btn:hover {
    background: var(--nbc-navy);
    color: #fff;
    transform: scale(1.1);
}
.nbc-qty-btn:active { transform: scale(.95); }
.nbc-qty-num {
    width: 22px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--nbc-navy);
    user-select: none;
}

/* Cart button */
.nbc-cart-btn {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--nbc-gold), #D4A85A);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .3s;
    box-shadow: 0 4px 16px rgba(196,153,83,.3);
    flex-shrink: 0;
    padding: 0;
}
.nbc-cart-btn:hover {
    background: linear-gradient(135deg, #D4A85A, var(--nbc-gold));
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(196,153,83,.4);
}
.nbc-cart-btn svg { width: 18px; height: 18px; }
.nbc-cart-btn.nbc-added {
    background: var(--nbc-navy);
    box-shadow: 0 4px 16px rgba(27,35,86,.3);
}

/* ═══════════════════════════════════════════════
   CART POPUP (slide from right)
   ═══════════════════════════════════════════════ */

.nbc-cart-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,20,51,.4);
    z-index: 10200;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.nbc-cart-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.nbc-cart-popup {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    height: 100dvh;
    background: var(--nbc-white);
    z-index: 10201;
    box-shadow: -8px 0 40px rgba(0,0,0,.12);
    transition: right .35s cubic-bezier(.25,.46,.45,.94);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.nbc-cart-popup.show { right: 0; }

.nbc-cart-header {
    padding: 24px 28px;
    border-bottom: 1px solid rgba(196,153,83,.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}
.nbc-cart-title {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--nbc-navy);
}
.nbc-cart-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--nbc-text-muted);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all .2s;
}
.nbc-cart-close:hover { background: var(--nbc-cream); color: var(--nbc-navy); }

.nbc-cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}
.nbc-cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--nbc-text-muted);
    font-size: 14px;
}

/* Cart item */
.nbc-ci {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}
.nbc-ci:last-child { border-bottom: none; }
.nbc-ci-img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: var(--nbc-cream);
    object-fit: contain;
    flex-shrink: 0;
    overflow: hidden;
}
.nbc-ci-img img { width: 100%; height: 100%; object-fit: contain; }
.nbc-ci-info {
    flex: 1;
    min-width: 0;
}
.nbc-ci-name {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--nbc-navy);
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nbc-ci-meta {
    font-size: 10px;
    color: var(--nbc-text-muted);
    display: flex;
    gap: 8px;
}
.nbc-ci-price {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--nbc-navy);
    white-space: nowrap;
    flex-shrink: 0;
}
.nbc-ci-remove {
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    cursor: pointer;
    color: var(--nbc-text-muted);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color .2s;
    flex-shrink: 0;
    padding: 0;
}
.nbc-ci-remove:hover { color: #e05555; }

.nbc-cart-footer {
    padding: 20px 28px;
    border-top: 1px solid rgba(196,153,83,.15);
    background: var(--nbc-cream);
    flex-shrink: 0;
}
.nbc-cart-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.nbc-cart-total-label {
    font-size: 13px;
    color: var(--nbc-text-light);
    font-weight: 500;
}
.nbc-cart-total-price {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--nbc-navy);
}
.nbc-cart-checkout {
    display: block;
    width: 100%;
    padding: 14px;
    background: var(--nbc-navy);
    color: var(--nbc-cream);
    border: none;
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .3s;
    text-align: center;
    text-decoration: none;
}
.nbc-cart-checkout:hover {
    background: var(--nbc-gold);
    color: var(--nbc-navy-deep);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════ */

.nbc-toast-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14,20,51,.25);
    z-index: 10300;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.nbc-toast-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.nbc-toast-box {
    background: var(--nbc-white);
    border-radius: 20px;
    padding: 40px 48px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,.15);
    transform: scale(.9);
    transition: transform .3s cubic-bezier(.25,.46,.45,.94);
}
.nbc-toast-overlay.show .nbc-toast-box { transform: scale(1); }
.nbc-toast-check {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--nbc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.nbc-toast-check svg { width: 28px; height: 28px; color: var(--nbc-cream); }
.nbc-toast-check-fav { background: var(--nbc-navy); }
.nbc-toast-check-fav svg { width: 32px; height: 32px; }
.nbc-toast-text {
    font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--nbc-navy);
}

/* ═══════════════════════════════════════════════
   MOBILE CART FAB
   ═══════════════════════════════════════════════ */

.nbc-mobile-cart-btn {
    display: none;
    position: fixed;
    right: 16px;
    bottom: 24px;
    z-index: 10100;
    background: var(--nbc-navy);
    color: var(--nbc-cream);
    border-radius: 16px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,.18);
    cursor: pointer;
    align-items: center;
    gap: 8px;
}
.nbc-mobile-cart-btn:active { transform: scale(.96); }
.nbc-mobile-cart-btn svg { flex-shrink: 0; }
.nbc-mobile-cart-badge {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--nbc-gold);
    color: var(--nbc-navy-deep);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nbc-mobile-cart-sum {
    font-family: 'Spectral', Garamond, serif;
    font-size: 16px;
    font-weight: 700;
}

/* ═══════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════ */

@keyframes nbcFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.nbc-card {
    animation: nbcFadeUp .7s cubic-bezier(.25,.46,.45,.94) forwards;
    opacity: 0;
}
.nbc-card:nth-child(1) { animation-delay: .05s; }
.nbc-card:nth-child(2) { animation-delay: .1s; }
.nbc-card:nth-child(3) { animation-delay: .15s; }
.nbc-card:nth-child(4) { animation-delay: .2s; }
.nbc-card:nth-child(n+5) { animation-delay: .25s; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

/* 2 columns - narrower container */
@media (max-width: 1100px) {
    .nbc-filters-inner { flex-wrap: wrap; }
    .nbc-category-cards { order: 3; width: 100%; justify-content: flex-start; }
}

/* 1 column — mobile */
@media (max-width: 768px) {
    /* Reset */
    * { max-width: 100vw; }

    .nbc-filters { padding: 24px 20px 0; }
    .nbc-filters-inner {
        flex-wrap: wrap !important;
        max-width: 100% !important;
        overflow: visible !important;
        gap: 8px;
    }
    .nbc-category-cards { display: none; }
    .nbc-filter-btn { font-size: 15px; padding: 11px 24px; }
    .nbc-filter-dropdowns { width: 100%; margin-left: 0; gap: 8px; }
    .nbc-filter-select {
        flex: 1;
        min-width: 0;
        font-size: 16px;
        padding: 12px 36px 12px 16px;
        background-position: right 14px center;
        background-size: 12px 12px;
    }

    .nbc-product-grid {
        grid-template-columns: 1fr !important;
        gap: 22px;
        max-width: 100% !important;
        margin: 0;
        padding: 0 20px 50px;
    }
    .nbc-card {
        width: 100%;
        padding: 22px 20px 20px;
    }
    .nbc-badge { font-size: 10px; padding: 4px 11px; margin-bottom: 14px; }
    .nbc-name-wrap { min-height: auto; }
    .nbc-name { font-size: 22px; margin-bottom: 5px; }
    .nbc-processing { font-size: 13px; }
    .nbc-img { height: 252px; margin: 11px 0; }
    .nbc-desc { font-size: 13px; min-height: auto; margin-bottom: 6px; line-height: 1.5; }
    .nbc-roast-method { font-size: 13px; }

    /* Taste bars */
    .nbc-taste-bars { gap: 6px 11px; margin-top: 8px; margin-bottom: 11px; }
    .nbc-taste-label { font-size: 11px; margin-bottom: 3px; }
    .nbc-taste-track { height: 2.5px; }
    .nbc-bean-icon { width: 12px; height: 12px; }

    /* Card bottom */
    .nbc-card-bottom { gap: 8px; padding-top: 22px; }
    .nbc-weight-grind { flex-wrap: wrap; gap: 6px; }
    .nbc-weight-btn { font-size: 13px; padding: 6px 16px; }
    .nbc-grind-select { font-size: 13px; padding: 6px 29px 6px 11px; background-position: right 10px center; }
    .nbc-buy-row { margin-top: 6px; }
    .nbc-price { font-size: 26px; }
    .nbc-currency { font-size: 19px; }
    .nbc-qty-btn { width: 30px; height: 30px; font-size: 18px; }
    .nbc-qty-num { width: 30px; font-size: 20px; }
    .nbc-cart-btn { width: 40px; height: 40px; border-radius: 13px; }
    .nbc-cart-btn svg { width: 21px; height: 21px; }
    .nbc-fav { width: 34px; height: 34px; }
    .nbc-fav svg { width: 16px; height: 16px; }

    /* Cart popup — full width */
    .nbc-cart-popup { width: 100%; right: -100%; }
    .nbc-cart-popup.show { right: 0; }
    .nbc-cart-header { padding: 22px 20px; }
    .nbc-cart-title { font-size: 24px; }
    .nbc-cart-close { width: 32px; height: 32px; font-size: 21px; }
    .nbc-cart-items { padding: 16px 20px; }
    .nbc-cart-empty { font-size: 16px; padding: 48px 20px; }
    .nbc-ci { gap: 13px; padding: 14px 0; }
    .nbc-ci-img { width: 58px; height: 58px; border-radius: 8px; }
    .nbc-ci-name { font-size: 16px; white-space: normal; }
    .nbc-ci-meta { font-size: 12px; gap: 8px; }
    .nbc-ci-price { font-size: 21px; }
    .nbc-ci-remove { width: 26px; height: 26px; font-size: 18px; }
    .nbc-cart-footer { padding: 20px; }
    .nbc-cart-total-label { font-size: 14px; }
    .nbc-cart-total-price { font-size: 29px; }
    .nbc-cart-checkout { font-size: 16px; padding: 14px; border-radius: 12px; }

    /* Toast */
    .nbc-toast-box { padding: 40px 32px; border-radius: 20px; }
    .nbc-toast-check { width: 58px; height: 58px; margin-bottom: 20px; }
    .nbc-toast-check svg { width: 29px; height: 29px; }
    .nbc-toast-text { font-size: 22px; }

    /* Mobile FAB */
    .nbc-mobile-cart-btn.visible {
        display: flex !important;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    /* DnD banner */
    .nbc-dnd-banner { margin: 0 20px 16px; padding: 12px 16px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════
   STATS BAR
   ═══════════════════════════════════════════════ */

.nbc-stats-bar {
    background: var(--nbc-white);
    border-top: 1px solid rgba(196,153,83,.1);
    border-bottom: 1px solid rgba(196,153,83,.1);
    padding: 16px 40px 18px;
    margin-top: 72px;
}
.nbc-stats-inner {
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nbc-stat {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.nbc-stat-num {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 600;
    color: var(--nbc-navy);
    line-height: 1;
}
.nbc-stat-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: var(--nbc-text-muted);
    letter-spacing: .05em;
    text-transform: uppercase;
    line-height: 1.3;
    padding-top: 2px;
}
.nbc-stat-divider {
    width: 1px;
    height: 28px;
    background: rgba(196,153,83,.2);
    align-self: center;
}

/* ═══ Section title ═══ */

.nbc-section-title {
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: 0 auto;
    padding: 38px 40px 0;
}
.nbc-back-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--nbc-gold);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color .3s;
}
.nbc-back-link:hover { color: var(--nbc-navy); text-decoration: none; }
.nbc-catalog-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 600;
    color: var(--nbc-navy);
    margin: 0;
}
    

/* ═══════════════════════════════════════════════
   PROMO STRIP
   ═══════════════════════════════════════════════ */

.nbc-promo-strip {
    max-width: calc(var(--nbc-grid-w) + 80px);
    margin: -40px auto 60px;
    padding: 0 40px;
}
.nbc-promo-inner {
    background: linear-gradient(135deg, var(--nbc-navy-deep), var(--nbc-navy));
    border-radius: 16px;
    padding: 48px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}
.nbc-promo-inner::before {
    content: '';
    position: absolute;
    top: -100px; right: -100px;
    width: 400px; height: 400px;
    border: 1px solid rgba(196,153,83,.08);
    border-radius: 50%;
}
.nbc-promo-text h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--nbc-cream);
    margin: 0 0 10px;
}
.nbc-promo-text p {
    font-size: 14px;
    color: rgba(250,246,240,.5);
    font-weight: 300;
    margin: 0;
}
.nbc-promo-btn {
    padding: 14px 36px;
    border: 1px solid var(--nbc-gold);
    color: var(--nbc-gold);
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: all .4s;
    flex-shrink: 0;
}
.nbc-promo-btn:hover {
    background: var(--nbc-gold);
    color: var(--nbc-navy-deep);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════ */

.nbc-footer {
    background: var(--nbc-navy-deep);
    padding: 60px 40px 40px;
}
.nbc-footer-inner {
    max-width: var(--nbc-grid-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}
.nbc-footer-brand {}
.nbc-footer-logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--nbc-gold);
    text-transform: uppercase;
}
.nbc-footer-brand p {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(250,246,240,.4);
    line-height: 1.7;
    margin-top: 20px;
    font-weight: 300;
}
.nbc-footer-col h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--nbc-gold);
    margin: 0 0 20px;
}
.nbc-footer-col a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: rgba(250,246,240,.5);
    text-decoration: none;
    margin-bottom: 12px;
    font-weight: 300;
    transition: color .3s;
}
.nbc-footer-col a:hover { color: var(--nbc-gold-light); }

.nbc-footer-bottom {
    max-width: var(--nbc-grid-w);
    margin: 0 auto;
    padding-top: 28px;
    border-top: 1px solid rgba(196,153,83,.1);
    display: flex;
    justify-content: space-between;
}
.nbc-footer-bottom p {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    color: rgba(250,246,240,.25);
    font-weight: 300;
    margin: 0;
}

/* ═══ Responsive: stats, promo, footer ═══ */

@media (max-width: 768px) {
    .nbc-stats-bar { padding: 16px 20px; margin-top: 72px; }
    .nbc-stats-inner {
        display: grid;
        grid-template-columns: auto auto;
        gap: 16px 32px;
        justify-content: center;
        justify-items: start;
    }
    .nbc-stat-num { font-size: 34px; }
    .nbc-stat-label { font-size: 12px; white-space: nowrap; }
    .nbc-stat-divider { display: none; }

    .nbc-section-title { padding: 24px 20px 0; }
    .nbc-catalog-heading { font-size: 34px; }

    .nbc-promo-strip { padding: 0 20px; margin-top: -16px; }
    .nbc-promo-inner {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 29px 20px;
    }
    .nbc-promo-text h3 { font-size: 29px; }
    .nbc-promo-text p { font-size: 14px; }
    .nbc-promo-btn { font-size: 13px; padding: 13px 29px; }

    .nbc-footer { padding: 40px 20px 24px; }
    .nbc-footer-inner { grid-template-columns: 1fr; gap: 26px; }
    .nbc-footer-brand p { font-size: 15px; }
    .nbc-footer-col h4 { font-size: 13px; }
    .nbc-footer-col a { font-size: 15px; margin-bottom: 13px; }
    .nbc-footer-bottom { flex-direction: column; gap: 10px; align-items: center; }
    .nbc-footer-bottom p { font-size: 13px; }
}
