/* ==========================================================================
   NBC Product Page v1.4 — Яровой Кофе
   ========================================================================== */

:root {
    --pp-navy:       #1B2356;
    --pp-navy-deep:  #0E1433;
    --pp-gold:       #C49953;
    --pp-gold-light: #D5B480;
    --pp-cream:      #FAF6F0;
    --pp-cream-dark: #F0E8DA;
    --pp-white:      #FFFFFF;
    --pp-text:       #2A2A2A;
    --pp-text-light: #6B6B6B;
    --pp-text-muted: #9B9B9B;
}

.nbc-pp {
    max-width: 1400px; margin: 0 auto; padding: 0 40px 80px;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pp-text); -webkit-font-smoothing: antialiased;
}
.nbc-pp *, .nbc-pp *::before, .nbc-pp *::after { box-sizing: border-box; }
.woocommerce-notices-wrapper:empty { display: none; }

/* ═══ Breadcrumbs ═══ */

.nbc-pp-breadcrumbs { padding: 20px 0 28px; font-size: 13px; color: var(--pp-text-muted); }
.nbc-pp-breadcrumbs a { color: var(--pp-text-muted); text-decoration: none; transition: color .3s; }
.nbc-pp-breadcrumbs a:hover { color: var(--pp-gold); }
.nbc-pp-bc-sep { margin: 0 8px; }
.nbc-pp-bc-current { color: var(--pp-text); font-weight: 500; }

/* ═══ Top: 3 columns ═══ */

.nbc-pp-top {
    display: grid; grid-template-columns: 280px 1fr 380px;
    gap: 40px; align-items: start; margin-bottom: 60px;
}
.nbc-pp-section-title {
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: .08em; text-transform: uppercase; color: var(--pp-navy); margin: 0 0 20px;
}

/* ═══ LEFT ═══ */

.nbc-pp-left { padding-top: 8px; }
.nbc-pp-chars { margin-bottom: 24px; }
.nbc-pp-char { display: flex; align-items: baseline; gap: 4px; margin-bottom: 10px; font-size: 13px; line-height: 1.4; }
.nbc-pp-char-label { color: var(--pp-text); font-weight: 500; white-space: nowrap; }
.nbc-pp-char-dots { flex: 1; border-bottom: 1px dotted var(--pp-text-muted); margin: 0 4px; min-width: 20px; position: relative; top: -3px; }
.nbc-pp-char-value { color: var(--pp-text-light); text-align: right; white-space: nowrap; }

.nbc-pp-flavor-left {
    font-size: 12px; color: var(--pp-text); line-height: 1.5;
    margin: 0 0 20px; padding: 12px 0;
    border-top: 1px solid rgba(196,153,83,.12); border-bottom: 1px solid rgba(196,153,83,.12);
}

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

/* ═══ CENTER ═══ */

.nbc-pp-photo-main {
    background: var(--pp-white); border-radius: 16px; border: 1px solid rgba(0,0,0,.04);
    overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 400px;
}
.nbc-pp-photo-main img { width: 100%; height: 100%; object-fit: contain; max-height: 500px; padding: 20px; }
.nbc-pp-gallery { display: flex; justify-content: center; gap: 10px; margin-top: 20px; }
.nbc-pp-gallery-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pp-cream-dark); cursor: pointer; transition: all .25s; }
.nbc-pp-gallery-dot.active { background: var(--pp-gold); transform: scale(1.3); }
.nbc-pp-gallery-dot:hover { background: var(--pp-gold-light); }

/* ═══ RIGHT ═══ */

.nbc-pp-right { padding-top: 8px; }
.nbc-pp-badge { display: inline-block; padding: 4px 12px; font-size: 9px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border-radius: 100px; margin-bottom: 12px; }
.nbc-pp-badge.badge-navy { background: var(--pp-navy); color: #fff; }
.nbc-pp-badge.badge-gold { background: linear-gradient(135deg, var(--pp-gold), var(--pp-gold-light)); color: var(--pp-navy-deep); }
.nbc-pp-badge.badge-coral { background: #E0605E; color: #fff; }
.nbc-pp-badge.badge-olive { background: #6B7F5E; color: #fff; }
.nbc-pp-badge.badge-plum  { background: #7B5EA7; color: #fff; }

.nbc-pp-name { font-family: 'Spectral', Garamond, 'Cormorant Garamond', serif; font-size: 32px; font-weight: 700; color: var(--pp-navy); line-height: 1.15; margin: 0 0 12px; }
.nbc-pp-flavor { font-size: 14px; color: var(--pp-text-light); line-height: 1.6; margin: 0 0 24px; }

/* ── Buy panel ── */

.nbc-pp-buy { background: var(--pp-white); border: 1px solid rgba(27,35,86,.08); border-radius: 16px; padding: 24px; }

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

.nbc-pp-grind {
    padding: 6px 28px 6px 12px; border: 1px solid rgba(27,35,86,.12); border-radius: 8px;
    background: var(--pp-white); font-family: 'Montserrat', sans-serif; font-size: 12px;
    font-weight: 500; color: var(--pp-navy); 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 8px center;
}
.nbc-pp-grind:hover { border-color: var(--pp-gold); }

.nbc-pp-roast-method { font-size: 12px; color: var(--pp-text); font-weight: 400; margin: 0 0 12px; }

/* Action: price left, qty+cart right */
.nbc-pp-action { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.nbc-pp-action-right { display: flex; align-items: center; gap: 12px; }
.nbc-pp-price-display { display: flex; align-items: baseline; gap: 4px; }
.nbc-pp-price-num { font-family: 'Spectral', Garamond, serif; font-size: 28px; font-weight: 700; color: var(--pp-navy); }
.nbc-pp-price-currency { font-family: 'Spectral', Garamond, serif; font-size: 20px; font-weight: 600; color: var(--pp-navy); }

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

/* Buy — square icon */
.nbc-pp-buy-btn {
    width: 40px; height: 40px; flex-shrink: 0; border: none; border-radius: 12px;
    background: linear-gradient(135deg, var(--pp-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); padding: 0;
}
.nbc-pp-buy-btn:hover { background: linear-gradient(135deg, #D4A85A, var(--pp-gold)); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(196,153,83,.4); }
.nbc-pp-buy-btn.added { background: var(--pp-navy); box-shadow: 0 4px 16px rgba(27,35,86,.3); }
.nbc-pp-buy-btn svg { width: 18px; height: 18px; }

/* ── Extras ── */

.nbc-pp-extras { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(0,0,0,.05); }

/* Login banner */
.nbc-pp-login-banner {
    display: flex; align-items: center; justify-content: flex-end; gap: 12px;
    text-decoration: none; margin-bottom: 14px; padding: 10px 14px;
    background: var(--pp-cream); border-radius: 10px; transition: background .3s;
}
.nbc-pp-login-banner:hover { background: var(--pp-cream-dark); text-decoration: none; }
.nbc-pp-login-banner-text { text-align: right; }
.nbc-pp-login-banner-title { display: block; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600; color: var(--pp-navy); line-height: 1.3; }
.nbc-pp-login-banner-sub { display: block; font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 400; color: var(--pp-text-muted); line-height: 1.3; }
.nbc-pp-login-banner-icon { width: 20px; height: 20px; color: var(--pp-text-muted); flex-shrink: 0; transition: color .3s; }
.nbc-pp-login-banner:hover .nbc-pp-login-banner-icon { color: var(--pp-gold); }

/* Icons row: delivery left, fav+compare right */
.nbc-pp-icons-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nbc-pp-icons-row .nbc-pp-delivery { margin-right: auto; }

/* ── Delivery accordion (absolute popup) ── */

.nbc-pp-delivery { position: relative; }

.nbc-pp-delivery-toggle {
    background: none; border: none; cursor: pointer;
    font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 600;
    color: var(--pp-navy); padding: 0;
    text-decoration: none; transition: color .3s;
}
.nbc-pp-delivery-toggle:hover { color: var(--pp-gold); }
.nbc-pp-delivery-arrow { display: inline-block; font-size: 10px; margin-left: 4px; color: var(--pp-gold); transition: transform .3s; }
.nbc-pp-delivery-toggle.open .nbc-pp-delivery-arrow { transform: rotate(180deg); }

.nbc-pp-delivery-body {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 20px;
    background: var(--pp-white);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(27,35,86,.12);
    border: 1px solid rgba(196,153,83,.1);
    width: 340px;
    z-index: 50;
    text-align: left;
}
.nbc-pp-delivery-body.open { display: block; }

.nbc-pp-delivery-section { margin-bottom: 16px; }
.nbc-pp-delivery-section:last-child { margin-bottom: 0; }
.nbc-pp-delivery-section strong { display: block; font-family: 'Montserrat', sans-serif; font-size: 13px; font-weight: 700; color: var(--pp-navy); margin-bottom: 8px; }
.nbc-pp-delivery-section ul { list-style: none; margin: 0; padding: 0; }
.nbc-pp-delivery-section li { font-size: 12px; color: var(--pp-text-light); line-height: 1.6; padding-left: 14px; position: relative; margin-bottom: 4px; }
.nbc-pp-delivery-section li::before { content: '–'; position: absolute; left: 0; color: var(--pp-gold); }

/* Fav + Compare icons */
.nbc-pp-icon-btn {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1px solid rgba(27,35,86,.12); background: transparent;
    color: var(--pp-text-muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0; transition: all .3s;
}
.nbc-pp-icon-btn svg { width: 18px; height: 18px; }
.nbc-pp-icon-btn:hover { border-color: var(--pp-gold); color: var(--pp-gold); }
.nbc-pp-icon-btn.active { color: #e05555; border-color: #e05555; }
.nbc-pp-icon-btn.active svg { fill: #e05555; }

/* ═══ Bottom ═══ */

.nbc-pp-bottom {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
    padding-top: 48px; border-top: 1px solid rgba(196,153,83,.12);
}
.nbc-pp-desc-text { font-size: 14px; color: var(--pp-text-light); line-height: 1.7; }
.nbc-pp-desc-text p { margin: 0 0 12px; }
.nbc-pp-profile-item { font-size: 14px; color: var(--pp-text-light); line-height: 1.7; margin-bottom: 10px; }
.nbc-pp-profile-item strong { color: var(--pp-text); font-weight: 600; }

/* ═══ Responsive ═══ */

@media (max-width: 1100px) {
    .nbc-pp-top { grid-template-columns: 1fr 1fr; gap: 30px; }
    .nbc-pp-left { grid-column: 1 / -1; order: 3; }
    .nbc-pp-center { order: 1; }
    .nbc-pp-right { order: 2; }
}
@media (max-width: 768px) {
    .nbc-pp { padding: 0 20px 60px; }
    .nbc-pp-breadcrumbs { padding: 16px 0 20px; font-size: 12px; }
    .nbc-pp-top { grid-template-columns: 1fr; gap: 24px; }
    .nbc-pp-left { order: 3; }
    .nbc-pp-center { order: 1; }
    .nbc-pp-right { order: 2; }
    .nbc-pp-photo-main { min-height: 280px; }
    .nbc-pp-photo-main img { max-height: 320px; }
    .nbc-pp-name { font-size: 26px; }
    .nbc-pp-bottom { grid-template-columns: 1fr; gap: 32px; }
    .nbc-pp-buy { padding: 20px; }
    .nbc-pp-action { flex-wrap: wrap; }
    .nbc-pp-weight-grind-row { flex-wrap: wrap; }
    .nbc-pp-delivery-body { width: 280px; left: auto; right: 0; }
}

/* ═══ Slide cart ═══ */

.nbc-pp-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-pp-cart-overlay.show { opacity: 1; pointer-events: auto; }

.nbc-pp-cart-popup {
    position: fixed; top: 0; right: -420px; width: 400px;
    height: 100vh; height: 100dvh; background: var(--pp-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-pp-cart-popup.show { right: 0; }

.nbc-pp-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-pp-cart-title {
    font-family: 'Spectral', Garamond, serif; font-size: 22px; font-weight: 700; color: var(--pp-navy);
}
.nbc-pp-cart-close {
    width: 32px; height: 32px; border: none; background: none; cursor: pointer;
    color: var(--pp-text-muted); font-size: 20px; display: flex; align-items: center;
    justify-content: center; border-radius: 50%; transition: all .2s;
}
.nbc-pp-cart-close:hover { background: var(--pp-cream); color: var(--pp-navy); }

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

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

.nbc-pp-cart-footer {
    padding: 20px 28px; border-top: 1px solid rgba(196,153,83,.15);
    background: var(--pp-cream); flex-shrink: 0;
}
.nbc-pp-cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.nbc-pp-cart-total-label { font-size: 13px; color: var(--pp-text-light); font-weight: 500; }
.nbc-pp-cart-total-price {
    font-family: 'Spectral', Garamond, serif; font-size: 26px; font-weight: 700; color: var(--pp-navy);
}
.nbc-pp-cart-checkout {
    display: block; width: 100%; padding: 14px; background: var(--pp-navy); color: var(--pp-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; color: var(--pp-cream) !important;
}
.nbc-pp-cart-checkout:hover { background: var(--pp-gold); color: var(--pp-navy-deep) !important; text-decoration: none; }

/* ═══ Toast ═══ */

.nbc-pp-toast {
    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-pp-toast.show { opacity: 1; pointer-events: auto; }
.nbc-pp-toast-box {
    background: var(--pp-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-pp-toast.show .nbc-pp-toast-box { transform: scale(1); }
.nbc-pp-toast-check {
    width: 56px; height: 56px; border-radius: 50%; background: var(--pp-navy);
    display: flex; align-items: center; justify-content: center; margin: 0 auto 18px;
}
.nbc-pp-toast-check svg { width: 28px; height: 28px; color: var(--pp-cream); }
.nbc-pp-toast-text {
    font-family: 'Spectral', Garamond, serif; font-size: 20px; font-weight: 600; color: var(--pp-navy);
}

@media (max-width: 768px) {
    .nbc-pp-cart-popup { width: 100%; right: -100%; }
    .nbc-pp-cart-popup.show { right: 0; }
}
