/**
 * Generator Power Parts — Parts Lookup PAGE styles
 * gpp-lookup-page.css
 *
 * These styles handle the full page layout — header, search strip,
 * two-column layout, basket panel.
 * The result row styles remain in gpp-lookup.css
 *
 * Enqueue this alongside gpp-lookup.css on the parts-lookup page.
 */

/* ============================================================
   RESET ASTRA INTERFERENCE ON THIS PAGE
============================================================ */

.gpp-page-wrap .entry-title,
.gpp-page-wrap .page-header,
.gpp-page-wrap .ast-breadcrumbs-wrapper {
    display: none !important;
}

.gpp-page-wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

/* ============================================================
   PAGE HEADER
============================================================ */

.gpp-page-header {
    background: #0D1B2A;
    padding: 3rem 2rem 2.5rem;
    position: relative;
    overflow: hidden;
}

.gpp-page-header::before {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 400px;
    height: 400px;
    border: 60px solid rgba(244,128,26,0.06);
    border-radius: 50%;
    pointer-events: none;
}

.gpp-page-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gpp-page-eyebrow {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #F4801A;
    margin-bottom: .4rem;
    font-family: 'Barlow', sans-serif;
}

.gpp-page-title {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 3rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    color: #fff !important;
    line-height: 1 !important;
    margin: 0 0 .5rem !important;
    padding: 0 !important;
    border: none !important;
}

.gpp-page-sub {
    color: rgba(255,255,255,.55);
    font-size: .95rem;
    max-width: 580px;
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.gpp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .75rem;
    color: rgba(255,255,255,.35);
    font-family: 'Barlow', sans-serif;
}

.gpp-breadcrumb a {
    color: rgba(255,255,255,.35);
    text-decoration: none;
    transition: color .15s;
}

.gpp-breadcrumb a:hover { color: #F4801A; }

.gpp-bc-sep { color: rgba(255,255,255,.18); }

/* ============================================================
   SEARCH STRIP
============================================================ */

.gpp-search-strip {
    background: #1C3149;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}

.gpp-search-strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.gpp-search-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 2;
    min-width: 220px;
}

.gpp-sort-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 190px;
}

.gpp-search-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    font-family: 'Barlow', sans-serif;
}

.gpp-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.gpp-search-icon {
    position: absolute;
    left: 12px;
    pointer-events: none;
    flex-shrink: 0;
}

#rehlko-search-input {
    width: 100% !important;
    background: rgba(255,255,255,.08) !important;
    border: 1.5px solid rgba(255,255,255,.15) !important;
    border-radius: 6px !important;
    padding: 11px 40px 11px 38px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: .9rem !important;
    color: #fff !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s !important;
}

#rehlko-search-input:focus {
    border-color: #F4801A !important;
    background: rgba(255,255,255,.12) !important;
}

#rehlko-search-input::placeholder {
    color: rgba(255,255,255,.35) !important;
}

#rehlko-clear-input {
    position: absolute;
    right: 10px;
    background: rgba(255,255,255,.15);
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    color: rgba(255,255,255,.7);
    font-size: .65rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background .15s;
}

#rehlko-clear-input:hover { background: rgba(255,255,255,.25); }

#rehlko-sort {
    width: 100%;
    background: rgba(255,255,255,.08) !important;
    border: 1.5px solid rgba(255,255,255,.15) !important;
    border-radius: 6px !important;
    padding: 11px 14px !important;
    font-family: 'Barlow', sans-serif !important;
    font-size: .875rem !important;
    color: rgba(255,255,255,.85) !important;
    outline: none !important;
    cursor: pointer;
    appearance: none;
}

#rehlko-sort option {
    background: #0D1B2A;
    color: #fff;
}

.gpp-btn-request-header {
    background: #F4801A;
    color: #fff !important;
    border: none;
    padding: 11px 20px;
    border-radius: 5px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .875rem;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: background .2s;
    display: inline-block;
    align-self: flex-end;
}

.gpp-btn-request-header:hover { background: #C0600E; }

/* ============================================================
   MAIN TWO-COLUMN LAYOUT
============================================================ */

.gpp-lookup-outer {
    background: #F4F6F9;
    min-height: 600px;
    padding: 0 2rem 3rem;
}

.gpp-lookup-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2rem;
    padding-top: 1.5rem;
}

/* ============================================================
   RESULTS AREA
============================================================ */

.gpp-results-area {
    min-width: 0;
}

.gpp-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: .5rem;
}

#gpp-results-count {
    font-family: 'Barlow', sans-serif;
    font-size: .85rem;
    color: #4A5568;
}

#gpp-results-count strong { color: #0D1B2A; font-weight: 700; }
#gpp-results-count em { font-style: normal; color: #0D1B2A; }

.gpp-search-tip {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: .75rem;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
}

/* ============================================================
   RESULT ROWS
============================================================ */

.rehlko-results-list {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.search-result.gpp-result-row {
    background: #fff;
    border: 1.5px solid #E8EDF2;
    border-radius: 8px;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .15s, background .15s;
    font-family: 'Barlow', sans-serif;
    cursor: default;
}

.search-result.gpp-result-row:hover {
    border-color: #F4801A;
    background: #FFFAF6;
}

.search-result.gpp-result-row h4.gpp-col-num {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #F4801A !important;
    margin: 0 !important;
    min-width: 140px;
    flex-shrink: 0;
}

.search-result.gpp-result-row p.gpp-col-desc {
    flex: 1;
    font-size: .875rem !important;
    color: #0D1B2A !important;
    font-weight: 500;
    margin: 0 !important;
    line-height: 1.4;
}

.search-result.gpp-result-row p.gpp-col-price {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    color: #0D1B2A !important;
    margin: 0 !important;
    min-width: 80px;
    text-align: right;
    flex-shrink: 0;
}

.search-result.gpp-result-row p.gpp-col-price::after {
    content: ' ex.VAT';
    font-family: 'Barlow', sans-serif;
    font-size: .62rem;
    font-weight: 400;
    color: #4A5568;
    display: block;
}

.gpp-add-btn {
    background: #0D1B2A;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .78rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}

.gpp-add-btn:hover { background: #F4801A; }
.gpp-add-btn.gpp-added { background: #1A6B3A; }

/* ============================================================
   LOADING / ERROR / NO RESULTS
============================================================ */

.gpp-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    padding: 3rem 1rem;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
    font-size: .9rem;
    background: #fff;
    border-radius: 8px;
    border: 1.5px solid #E8EDF2;
}

.gpp-loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E8EDF2;
    border-top-color: #F4801A;
    border-radius: 50%;
    animation: gpp-spin .7s linear infinite;
    flex-shrink: 0;
}

@keyframes gpp-spin { to { transform: rotate(360deg); } }

.gpp-error {
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    font-size: .875rem;
    color: #B91C1C;
    font-family: 'Barlow', sans-serif;
}

.gpp-no-results {
    background: #fff;
    border: 1.5px solid #E8EDF2;
    border-radius: 8px;
    padding: 3rem 1rem;
    text-align: center;
    font-family: 'Barlow', sans-serif;
}

.gpp-no-results-icon {
    width: 56px;
    height: 56px;
    background: #F4F6F9;
    border-radius: 8px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpp-no-results-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #0D1B2A;
    margin-bottom: .5rem;
}

.gpp-no-results-text {
    font-size: .875rem;
    color: #4A5568;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   PAGINATION
============================================================ */

.gpp-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: 1.5rem 0 .5rem;
    flex-wrap: wrap;
}

.gpp-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border: 1px solid #E8EDF2;
    border-radius: 4px;
    background: #fff;
    font-family: 'Barlow', sans-serif;
    font-size: .82rem;
    color: #0D1B2A;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .15s;
}

.gpp-page-btn:hover { border-color: #F4801A; color: #F4801A; }
.gpp-page-btn.active { background: #0D1B2A; border-color: #0D1B2A; color: #fff; }

/* ============================================================
   PART REQUEST BANNER
============================================================ */

.gpp-part-request-banner {
    background: #0D1B2A;
    border-radius: 8px;
    padding: 1.5rem 1.75rem;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.gpp-pr-text strong {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #fff;
    letter-spacing: .03em;
    display: block;
    margin-bottom: .3rem;
}

.gpp-pr-text p {
    font-size: .82rem;
    color: rgba(255,255,255,.55);
    max-width: 420px;
    line-height: 1.6;
    margin: 0;
    font-family: 'Barlow', sans-serif;
}

.gpp-pr-link {
    background: #F4801A;
    color: #fff !important;
    text-decoration: none !important;
    padding: 11px 20px;
    border-radius: 5px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .875rem;
    white-space: nowrap;
    transition: background .2s;
    display: inline-block;
    flex-shrink: 0;
}

.gpp-pr-link:hover { background: #C0600E; }

/* ============================================================
   BASKET PANEL (RIGHT COLUMN)
============================================================ */

.gpp-basket-panel {
    background: #fff;
    border: 1.5px solid #E8EDF2;
    border-radius: 8px;
    padding: 1.25rem;
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.gpp-basket-panel::-webkit-scrollbar { width: 3px; }
.gpp-basket-panel::-webkit-scrollbar-thumb { background: #E8EDF2; border-radius: 2px; }

.gpp-basket-header {
    padding-bottom: .85rem;
    border-bottom: 1px solid #E8EDF2;
    margin-bottom: 1rem;
}

.gpp-basket-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #0D1B2A;
    letter-spacing: .03em;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 3px;
}

.gpp-basket-count {
    background: #F4801A;
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 20px;
    font-family: 'Barlow', sans-serif;
    min-width: 22px;
    text-align: center;
}

.gpp-basket-subtitle {
    font-size: .72rem;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
}

#selected-parts-list {
    margin-bottom: .75rem;
}

.gpp-basket-empty {
    text-align: center;
    padding: 1.5rem .5rem;
    color: #4A5568;
    font-size: .82rem;
    font-family: 'Barlow', sans-serif;
    line-height: 1.6;
}

.gpp-basket-empty svg { display: block; margin: 0 auto .75rem; opacity: .4; }

.gpp-basket-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    background: #F4F6F9;
    border: 1px solid #E8EDF2;
    border-radius: 5px;
    padding: .65rem .75rem;
    margin-bottom: .5rem;
    transition: border-color .15s;
}

.gpp-basket-item:hover { border-color: #F4801A; }

.gpp-basket-item-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    color: #F4801A;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.gpp-basket-item-desc {
    font-size: .75rem;
    color: #4A5568;
    line-height: 1.4;
    margin-top: 1px;
    font-family: 'Barlow', sans-serif;
}

.gpp-basket-item-price {
    font-size: .75rem;
    font-weight: 700;
    color: #0D1B2A;
    margin-top: 2px;
    font-family: 'Barlow', sans-serif;
}

.gpp-basket-remove {
    background: none;
    border: none;
    color: #4A5568;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
    transition: color .15s;
    line-height: 1;
}

.gpp-basket-remove:hover { color: #B91C1C; }

#rehlko-clear-selected {
    display: none;
    width: 100%;
    margin-bottom: .5rem;
    padding: 9px 12px;
    background: transparent;
    border: 1.5px solid #E8EDF2;
    border-radius: 5px;
    font-family: 'Barlow', sans-serif;
    font-size: .82rem;
    font-weight: 700;
    color: #4A5568;
    cursor: pointer;
    transition: all .15s;
}

#rehlko-clear-selected:hover { border-color: #B91C1C; color: #B91C1C; }

#rehlko-continue-btn {
    display: none;
    width: 100%;
    padding: 13px 12px;
    background: #F4801A;
    border: none;
    border-radius: 6px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
    cursor: pointer;
    transition: background .2s;
    text-align: center;
    margin-bottom: 1rem;
}

#rehlko-continue-btn:hover { background: #C0600E; }

.gpp-basket-trust {
    font-size: .72rem;
    color: #4A5568;
    line-height: 1.6;
    font-family: 'Barlow', sans-serif;
    padding-top: .85rem;
    border-top: 1px solid #E8EDF2;
    margin-top: .25rem;
}

.gpp-basket-trust strong { color: #0D1B2A; }

.gpp-tarplett-note {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
    margin-top: .75rem;
}

.gpp-tn-badge {
    background: rgba(244,128,26,.1);
    border: 1px solid rgba(244,128,26,.25);
    color: #C0600E;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
}

/* ============================================================
   RESPONSIVE
============================================================ */

@media (max-width: 960px) {
    .gpp-lookup-inner {
        grid-template-columns: 1fr;
    }

    .gpp-basket-panel {
        position: static;
        max-height: none;
    }

    .gpp-page-title { font-size: 2.2rem !important; }
}

@media (max-width: 640px) {
    .gpp-lookup-outer { padding: 0 1rem 2rem; }
    .gpp-search-strip { padding: 1rem; }
    .gpp-page-header { padding: 2rem 1rem; }

    .search-result.gpp-result-row { flex-wrap: wrap; }
    .search-result.gpp-result-row h4.gpp-col-num { min-width: auto; width: 100%; }
    .search-result.gpp-result-row p.gpp-col-price { min-width: auto; text-align: left; }
}

/* Force full width — override Astra container */
.ast-container,
.site-content .ast-container,
#content .ast-container {
    max-width: 100% !important;
    padding: 0 !important;
}

.entry-content {
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
}

.ast-page-builder-template .site-content {
    padding: 0 !important;
}
