/* ================================================================
   ВІКНА ПЛЮС — КАТАЛОГ / ПРОДУКЦІЯ
   Стилі відповідають головній сторінці (ті самі CSS-змінні vp-*)
   ================================================================ */

/* ── PAGE HERO ──────────────────────────────────────────────── */
.vp-page-hero {
    position: relative;
    background: var(--vp-navy, #0d1b2a);
    padding: 80px 0 56px;
    overflow: hidden;
}
.vp-page-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 80% at 80% 50%, rgba(46,134,171,.14) 0%, transparent 60%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(201,168,76,.06) 0%, transparent 50%);
    pointer-events: none;
}
.vp-page-hero__inner { position: relative; z-index: 1; }
.vp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: rgba(255,255,255,.4);
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.vp-breadcrumb a {
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: color .2s;
}
.vp-breadcrumb a:hover { color: var(--vp-gold, #c9a84c); }
.vp-breadcrumb span[aria-current] { color: rgba(255,255,255,.7); }

.vp-page-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.6rem) !important;
    font-weight: 800 !important;
    color: #fff !important;
    line-height: 1.1 !important;
    margin: 0 0 14px !important;
    letter-spacing: -.02em;
}
.vp-page-hero__title em { font-style: normal; color: var(--vp-gold, #c9a84c); }
.vp-page-hero__sub {
    font-size: .9rem;
    color: rgba(255,255,255,.5);
    margin-bottom: 32px;
    line-height: 1.7;
}

/* Category chips */
.vp-page-hero__cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.vp-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 40px;
    color: rgba(255,255,255,.75);
    font-size: .8rem;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .25s ease;
}
.vp-cat-chip:hover {
    background: rgba(255,255,255,.13);
    border-color: rgba(255,255,255,.3);
    color: #fff;
}
.vp-cat-chip.is-active {
    background: var(--vp-gold, #c9a84c);
    border-color: var(--vp-gold, #c9a84c);
    color: var(--vp-navy, #0d1b2a);
}
.vp-cat-chip__emoji { font-size: 1rem; }
.vp-cat-chip__count {
    background: rgba(0,0,0,.15);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: .65rem;
    font-weight: 700;
}
.vp-cat-chip.is-active .vp-cat-chip__count { background: rgba(0,0,0,.2); }
.vp-cat-chip--reset {
    background: transparent;
    border-color: rgba(255,255,255,.2);
    color: rgba(255,255,255,.5);
}
.vp-cat-chip--reset:hover { border-color: #e55;color:#e55;background:rgba(230,60,60,.08); }

/* ── CATALOG SECTION ────────────────────────────────────────── */
.vp-catalog-section {
    background: var(--vp-light, #f4f8fb);
    padding: 56px 0 80px;
}

/* ── CONTROLS BAR ───────────────────────────────────────────── */
.vp-catalog__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    border-radius: 8px;
    padding: 6px 6px 6px 8px;
    box-shadow: 0 2px 12px rgba(13,27,42,.06);
}

/* Filter tabs */
.vp-filter-tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-wrap: wrap;
}
.vp-filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 16px;
    background: none;
    border: none;
    border-radius: 6px;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 600;
    color: var(--vp-gray, #6b7c93);
    cursor: pointer;
    transition: all .22s ease;
    white-space: nowrap;
}
.vp-filter-tab:hover { background: var(--vp-light,#f4f8fb); color: var(--vp-navy,#0d1b2a); }
.vp-filter-tab.is-active { background: var(--vp-navy,#0d1b2a); color: #fff; }
.vp-filter-tab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgba(0,0,0,.1);
    font-size: .65rem;
    font-weight: 700;
    line-height: 1;
}
.vp-filter-tab.is-active .vp-filter-tab__count {
    background: rgba(255,255,255,.18);
}

/* Right controls */
.vp-catalog__right-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.vp-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.vp-search-wrap__icon {
    position: absolute;
    left: 12px;
    color: var(--vp-gray,#6b7c93);
    pointer-events: none;
}
.vp-search-input {
    padding: 9px 36px 9px 36px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 6px;
    font-family: inherit;
    font-size: .82rem;
    color: var(--vp-text,#1c2b3a);
    background: var(--vp-light,#f4f8fb);
    outline: none;
    width: 220px;
    transition: border-color .22s, width .3s, box-shadow .22s;
    -webkit-appearance: none;
}
.vp-search-input:focus {
    border-color: var(--vp-sky,#2e86ab);
    box-shadow: 0 0 0 3px rgba(46,134,171,.1);
    width: 260px;
    background: #fff;
}
.vp-search-clear {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    font-size: 1rem;
    color: var(--vp-gray,#6b7c93);
    cursor: pointer;
    line-height: 1;
    padding: 2px;
    transition: color .2s;
}
.vp-search-clear:hover { color: var(--vp-text,#1c2b3a); }

.vp-sort-select {
    padding: 9px 12px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 6px;
    font-family: inherit;
    font-size: .8rem;
    color: var(--vp-text,#1c2b3a);
    background: var(--vp-light,#f4f8fb);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7c93' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .22s;
}
.vp-sort-select:focus { border-color: var(--vp-sky,#2e86ab); }

/* ── RESULTS INFO ───────────────────────────────────────────── */
.vp-catalog__info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    min-height: 28px;
    flex-wrap: wrap;
}
.vp-catalog__count {
    font-size: .8rem;
    color: var(--vp-gray,#6b7c93);
    font-weight: 500;
}
.vp-active-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(46,134,171,.1);
    color: var(--vp-sky,#2e86ab);
    font-size: .72rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(46,134,171,.2);
}
.vp-active-chip button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: .9rem;
    color: inherit;
    line-height: 1;
    padding: 0;
    transition: color .2s;
}
.vp-active-chip button:hover { color: var(--vp-navy,#0d1b2a); }

/* ── GRID LOADING STATE ─────────────────────────────────────── */
.vp-catalog {
    position: relative;
}
.vp-catalog__grid--loading {
    pointer-events: none;
}
.vp-catalog__loader {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: none;
}
.vp-catalog__loader.is-visible {
    display: flex;
}
.vp-catalog__spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(46,134,171,.2);
    border-top-color: var(--vp-sky,#2e86ab);
    border-radius: 50%;
    animation: vp-spin .7s linear infinite;
}
@keyframes vp-spin { to { transform: rotate(360deg); } }

/* ── NO RESULTS ─────────────────────────────────────────────── */
.vp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 64px 24px;
    color: var(--vp-gray,#6b7c93);
}
.vp-no-results__icon { font-size: 3rem; margin-bottom: 16px; opacity: .5; }
.vp-no-results h3 {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--vp-navy,#0d1b2a) !important;
    margin-bottom: 8px !important;
}
.vp-no-results p { font-size: .88rem; }

/* ── CARD SPECS (продукція додає це) ────────────────────────── */
.vp-card__specs {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 4px;
    overflow: hidden;
}
.vp-card__spec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    border-bottom: 1px solid rgba(0,0,0,.05);
    font-size: .78rem;
    transition: background .2s;
}
.vp-card__spec:last-child { border-bottom: none; }
.vp-card__spec:hover { background: var(--vp-light,#f4f8fb); }
.vp-card__spec-label { color: var(--vp-gray,#6b7c93); }
.vp-card__spec-val { font-weight: 600; color: var(--vp-navy,#0d1b2a); text-align: right; }

/* Featured card */
.vp-card--featured {
    border-color: var(--vp-gold,#c9a84c) !important;
    box-shadow: 0 4px 24px rgba(201,168,76,.15) !important;
}
.vp-card--featured .vp-card__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(201,168,76,.3);
    border-radius: inherit;
    pointer-events: none;
}

/* Photo */
.vp-card__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

/* Scroll reveal */
.vp-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .5s ease, transform .5s ease, box-shadow .3s, border-color .3s;
}
.vp-card.vp-in-view,
.vp-card[style*="opacity: 1"] {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.vp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.vp-pagination__pages {
    display: flex;
    align-items: center;
    gap: 4px;
}
.vp-pagination__page,
.vp-pagination__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(0,0,0,.1);
    border-radius: 6px;
    background: #fff;
    font-family: inherit;
    font-size: .85rem;
    font-weight: 600;
    color: var(--vp-text,#1c2b3a);
    cursor: pointer;
    transition: all .22s;
}
.vp-pagination__page:hover,
.vp-pagination__btn:hover:not(:disabled) {
    border-color: var(--vp-sky,#2e86ab);
    color: var(--vp-sky,#2e86ab);
    background: rgba(46,134,171,.04);
}
.vp-pagination__page.is-active {
    background: var(--vp-navy,#0d1b2a);
    border-color: var(--vp-navy,#0d1b2a);
    color: #fff;
    cursor: default;
}
.vp-pagination__btn:disabled {
    opacity: .35;
    cursor: not-allowed;
}
.vp-pagination__ellipsis {
    padding: 0 4px;
    color: var(--vp-gray,#6b7c93);
    font-size: .85rem;
    line-height: 38px;
}

/* ── CTA COMPACT ────────────────────────────────────────────── */
.vp-cta--compact { padding: 56px 0; }
.vp-cta__compact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ── SINGLE PRODUCT ─────────────────────────────────────────── */
.vp-single {
    background: var(--vp-light,#f4f8fb);
    padding-bottom: 80px;
}
.vp-single__layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
    padding: 40px 0;
}
.vp-single__visual { position: relative; }
.vp-single__photo {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(13,27,42,.12);
}
.vp-single__svg-wrap {}
.vp-single__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem) !important;
    font-weight: 800 !important;
    color: var(--vp-navy,#0d1b2a) !important;
    line-height: 1.18 !important;
    margin: 10px 0 16px !important;
}
.vp-single__desc {
    font-size: .95rem;
    color: var(--vp-gray,#6b7c93);
    line-height: 1.8;
    margin-bottom: 28px;
}
.vp-single__specs {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 24px;
    background: #fff;
}
.vp-single__spec-row {
    display: flex;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    font-size: .88rem;
    transition: background .2s;
}
.vp-single__spec-row:last-child { border-bottom: none; }
.vp-single__spec-row:hover { background: var(--vp-light,#f4f8fb); }
.vp-single__spec-row span { color: var(--vp-gray,#6b7c93); }
.vp-single__spec-row strong { font-weight: 700; color: var(--vp-navy,#0d1b2a); }
.vp-single__buy {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}
.vp-single__price {
    font-size: .9rem;
    color: var(--vp-gray,#6b7c93);
    margin-right: 8px;
}
.vp-single__price strong {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--vp-navy,#0d1b2a);
    display: block;
    line-height: 1;
}
.vp-related { margin-top: 64px; }
.vp-related__title {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: var(--vp-navy,#0d1b2a) !important;
    margin-bottom: 28px !important;
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .vp-single__layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .vp-catalog__controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    .vp-catalog__right-controls { justify-content: space-between; }
    .vp-search-input { width: 100% !important; }
    .vp-filter-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
    .vp-cta__compact-inner { flex-direction: column; }
}
@media (max-width: 480px) {
    .vp-page-hero { padding: 64px 0 40px; }
    .vp-filter-tab { padding: 8px 12px; font-size: .75rem; }
}
