/**
 * Generator Power Parts — Shop / Parts Browser Styles v3
 * gpp-shop.css
 */

/* ============================================================
   FULL WIDTH
============================================================ */

.woocommerce-shop .entry-content,
.woocommerce-shop .site-content,
.woocommerce-shop .content-area,
.woocommerce-shop #content,
.woocommerce-shop .ast-container,
.woocommerce-shop .container,
.woocommerce-shop article,
.woocommerce-shop .post-inner,
.tax-product_cat .entry-content,
.tax-product_cat .site-content,
.tax-product_cat .content-area,
.tax-product_cat #content,
.tax-product_cat .ast-container,
.tax-product_cat .container,
.tax-product_cat article,
.tax-product_cat .post-inner {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.woocommerce-shop .site-content,
.woocommerce-shop #content,
.tax-product_cat .site-content,
.tax-product_cat #content { padding-top: 0 !important; margin-top: 0 !important; }

.woocommerce-shop .gpp-page-wrap,
.tax-product_cat .gpp-page-wrap {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
}

.gpp-shop .woocommerce-products-header,
.gpp-shop ul.products,
.gpp-shop .woocommerce-pagination,
.gpp-shop .woocommerce-result-count,
.gpp-shop .woocommerce-ordering,
.gpp-shop .woocommerce-breadcrumb { display: none !important; }

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

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

.gpp-shop .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%;
}

.gpp-shop .gpp-page-header-inner { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.gpp-shop .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-shop .gpp-page-title { font-family: 'Barlow Condensed', sans-serif !important; font-size: 2.8rem !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-shop .gpp-page-sub { color: rgba(255,255,255,.5); font-size: .9rem; max-width: 900px; font-family: 'Barlow', sans-serif; line-height: 1.6; margin-bottom: 1.25rem; }
.gpp-shop .gpp-page-sub strong { color: rgba(255,255,255,.8); }
.gpp-shop .gpp-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .75rem; color: rgba(255,255,255,.35); font-family: 'Barlow', sans-serif; }
.gpp-shop .gpp-breadcrumb a { color: rgba(255,255,255,.35); text-decoration: none !important; }
.gpp-shop .gpp-breadcrumb a:hover { color: #F4801A; }
.gpp-bc-sep { color: rgba(255,255,255,.18); }

/* ============================================================
   CATEGORY STRIP
============================================================ */

.gpp-shop-cat-strip { background: #F4F6F9; border-bottom: 1px solid #E8EDF2; padding: .85rem 2rem; overflow-x: auto; }
.gpp-shop-cat-strip::-webkit-scrollbar { display: none; }
.gpp-shop-cat-inner { max-width: 1200px; margin: 0 auto; display: flex; gap: .5rem; }
.gpp-cat-pill { background: #fff; border: 1.5px solid #E8EDF2; border-radius: 20px; padding: 6px 16px; font-size: .8rem; font-weight: 600; color: #4A5568; text-decoration: none !important; white-space: nowrap; transition: all .15s; font-family: 'Barlow', sans-serif; flex-shrink: 0; }
.gpp-cat-pill:hover { border-color: #F4801A; color: #F4801A; }
.gpp-cat-pill.active { background: #0D1B2A; border-color: #0D1B2A; color: #fff; }

/* ============================================================
   LAYOUT
============================================================ */

.gpp-shop-outer { background: #F4F6F9; padding: 2rem 2rem 4rem; }
.gpp-shop-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; gap: 2rem; align-items: start; }

/* ============================================================
   SIDEBAR
============================================================ */

.gpp-shop-sidebar { display: flex; flex-direction: column; gap: 1rem; position: sticky; top: 80px; }
.gpp-sidebar-section { background: #fff; border: 1px solid #E8EDF2; border-radius: 8px; padding: 1.1rem; }
.gpp-sidebar-title { font-family: 'Barlow Condensed', sans-serif; font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: #0D1B2A; margin-bottom: .75rem; padding-bottom: .6rem; border-bottom: 1px solid #E8EDF2; }
.gpp-sidebar-note { font-size: .78rem; color: #4A5568; line-height: 1.55; margin-bottom: .75rem; font-family: 'Barlow', sans-serif; }

.gpp-sidebar-cat { display: flex; align-items: center; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid #F4F6F9; text-decoration: none !important; transition: all .15s; }
.gpp-sidebar-cat:last-child { border-bottom: none; }
.gpp-sidebar-cat-name { font-size: .83rem; font-weight: 500; color: #0D1B2A; font-family: 'Barlow', sans-serif; transition: color .15s; }
.gpp-sidebar-cat:hover .gpp-sidebar-cat-name { color: #F4801A; }
.gpp-sidebar-cat-active .gpp-sidebar-cat-name { color: #F4801A; font-weight: 700; }
.gpp-sidebar-cat-count { font-size: .72rem; color: #4A5568; background: #F4F6F9; padding: 1px 8px; border-radius: 20px; font-family: 'Barlow', sans-serif; }
.gpp-sidebar-cat-active .gpp-sidebar-cat-count { background: #FFF3EA; color: #C0600E; font-weight: 700; }

.gpp-sp-btn { display: block; background: #F4801A; color: #fff !important; text-align: center; padding: 9px 12px; border-radius: 4px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .78rem; text-decoration: none !important; transition: background .2s; }
.gpp-sp-btn:hover { background: #C0600E; }
.gpp-sp-btn-outline { display: block; background: transparent; color: #4A5568 !important; text-align: center; padding: 9px 12px; border-radius: 4px; border: 1px solid #E8EDF2; font-family: 'Barlow', sans-serif; font-weight: 600; font-size: .78rem; text-decoration: none !important; transition: all .2s; }
.gpp-sp-btn-outline:hover { border-color: #0D1B2A; color: #0D1B2A !important; }

/* ============================================================
   NO CATEGORY SELECTED
============================================================ */

.gpp-db-banner { background: #0D1B2A; border-radius: 8px; padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 2.5rem; margin-bottom: 1.75rem; flex-wrap: wrap; }
.gpp-db-stat { text-align: center; }
.gpp-db-num { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.gpp-db-label { font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.4); font-family: 'Barlow', sans-serif; margin-top: 2px; }
.gpp-db-cta { margin-left: auto; }
.gpp-db-search-btn { display: inline-block; background: #F4801A; color: #fff !important; padding: 10px 20px; border-radius: 5px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .85rem; text-decoration: none !important; transition: background .2s; white-space: nowrap; }
.gpp-db-search-btn:hover { background: #C0600E; }

.gpp-select-prompt { background: #fff; border: 1px solid #E8EDF2; border-radius: 8px; padding: 2rem; text-align: center; margin-bottom: 1.5rem; }
.gpp-select-prompt-icon { width: 56px; height: 56px; background: #F4F6F9; border-radius: 8px; margin: 0 auto .85rem; display: flex; align-items: center; justify-content: center; }
.gpp-select-prompt-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; color: #0D1B2A; margin-bottom: .5rem; }
.gpp-select-prompt-text { font-size: .875rem; color: #4A5568; line-height: 1.65; max-width: 500px; margin: 0 auto; font-family: 'Barlow', sans-serif; }
.gpp-label-instock { display: inline-block; background: #1A6B3A; color: #fff; font-size: .65rem; font-weight: 800; padding: 2px 7px; border-radius: 3px; text-transform: uppercase; letter-spacing: .06em; vertical-align: middle; }

.gpp-quick-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); gap: .75rem; margin-top: 1.25rem; }
.gpp-quick-cat { background: #fff; border: 1.5px solid #E8EDF2; border-radius: 6px; padding: .85rem 1rem; text-decoration: none !important; transition: all .15s; }
.gpp-quick-cat:hover { border-color: #F4801A; background: #FFFAF6; }
.gpp-quick-cat-name { font-family: 'Barlow Condensed', sans-serif; font-size: .95rem; font-weight: 800; text-transform: uppercase; color: #0D1B2A; margin-bottom: 3px; }
.gpp-quick-cat-count { font-size: .72rem; font-weight: 600; color: #F4801A; font-family: 'Barlow', sans-serif; }

/* ============================================================
   TOOLBAR
============================================================ */

.gpp-shop-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; flex-wrap: wrap; gap: .5rem; }
.gpp-results-text { font-family: 'Barlow', sans-serif; font-size: .85rem; color: #4A5568; }
.gpp-results-text strong { color: #0D1B2A; }
.gpp-lookup-link { font-size: .78rem; font-weight: 700; color: #F4801A; text-decoration: none !important; font-family: 'Barlow', sans-serif; }
.gpp-lookup-link:hover { color: #C0600E; }

/* ============================================================
   PARTS LIST ROWS
============================================================ */

.gpp-parts-list { display: flex; flex-direction: column; gap: .5rem; }

.gpp-part-row {
    background: #fff;
    border: 1.5px solid #E8EDF2;
    border-radius: 7px;
    padding: .9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color .15s;
}

.gpp-part-row:hover { border-color: #E8EDF2; background: #FAFBFC; }

.gpp-part-row-info { flex: 1; min-width: 0; }

.gpp-part-row-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #F4801A;
    margin-bottom: 2px;
}

.gpp-part-row-desc {
    font-size: .85rem;
    color: #0D1B2A;
    font-weight: 500;
    font-family: 'Barlow', sans-serif;
    line-height: 1.35;
}

.gpp-part-row-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0D1B2A;
    white-space: nowrap;
    text-align: right;
    flex-shrink: 0;
    min-width: 80px;
}

.gpp-part-row-price span {
    display: block;
    font-family: 'Barlow', sans-serif;
    font-size: .62rem;
    font-weight: 400;
    color: #4A5568;
}

.gpp-part-row-action { flex-shrink: 0; }

/* IN STOCK — green button */
.gpp-btn-instock {
    display: inline-block;
    background: #1A6B3A;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .75rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s;
}

.gpp-btn-instock:hover { background: #145530; color: #fff !important; }

/* REQUEST PART — orange button */
.gpp-btn-request {
    display: inline-block;
    background: #F4801A;
    color: #fff !important;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .75rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background .15s;
}

.gpp-btn-request:hover { background: #C0600E; color: #fff !important; }

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

.gpp-shop-pagination { margin-top: 1.5rem; }
.gpp-shop-pagination ul { display: flex; align-items: center; justify-content: center; gap: .4rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.gpp-shop-pagination ul li a,
.gpp-shop-pagination ul li span { display: flex; align-items: center; justify-content: center; 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; text-decoration: none !important; transition: all .15s; }
.gpp-shop-pagination ul li a:hover { border-color: #F4801A; color: #F4801A; }
.gpp-shop-pagination ul li span.current { background: #0D1B2A; border-color: #0D1B2A; color: #fff; }

/* ============================================================
   NO PRODUCTS
============================================================ */

.gpp-no-products { padding: 3rem 2rem; text-align: center; background: #fff; border-radius: 8px; border: 1px solid #E8EDF2; }
.gpp-no-products-title { font-family: 'Barlow Condensed', sans-serif; font-size: 1.3rem; font-weight: 800; text-transform: uppercase; color: #0D1B2A; margin-bottom: .5rem; }
.gpp-no-products-text { font-size: .875rem; color: #4A5568; max-width: 400px; margin: 0 auto 1.25rem; line-height: 1.6; font-family: 'Barlow', sans-serif; }
.gpp-btn-accent { display: inline-block; background: #F4801A; color: #fff !important; padding: 10px 20px; border-radius: 5px; font-family: 'Barlow', sans-serif; font-weight: 700; font-size: .875rem; text-decoration: none !important; transition: background .2s; }
.gpp-btn-accent:hover { background: #C0600E; }

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

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

@media (max-width: 640px) {
    .gpp-shop-outer { padding: 1.5rem 1rem 2rem; }
    .gpp-shop .gpp-page-header { padding: 2rem 1rem; }
    .gpp-shop .gpp-page-title { font-size: 2rem !important; }
    .gpp-part-row { flex-wrap: wrap; }
    .gpp-part-row-price { min-width: auto; }
    .gpp-db-banner { flex-direction: column; gap: 1rem; text-align: center; }
    .gpp-db-cta { margin-left: 0; }
}

/* ============================================================
   ADDITIONAL RULES — IN STOCK / DIVIDER / TOOLBAR
============================================================ */

.gpp-instock-count {
    display: inline-block;
    background: #EAF5EE;
    color: #1A6B3A;
    font-weight: 700;
    font-size: .78rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
}

.gpp-parts-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.25rem 0 .75rem;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
}

.gpp-parts-divider::before,
.gpp-parts-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E8EDF2;
}

.gpp-part-row-instock {
    border-left: 3px solid #1A6B3A !important;
}

/* BACKORDER button */
.gpp-btn-backorder {
    display: inline-block;
    background: transparent;
    color: #F4801A !important;
    border: 1.5px solid #F4801A;
    padding: 7px 14px;
    border-radius: 4px;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: .75rem;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all .15s;
}

.gpp-btn-backorder:hover {
    background: #F4801A;
    color: #fff !important;
}

.gpp-part-row-backorder {
    border-left: 3px solid #F4801A !important;
}

.gpp-backorder-count {
    display: inline-block;
    background: #FFF3EA;
    color: #C0600E;
    font-weight: 700;
    font-size: .78rem;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
}

/* ============================================================
   ATS PANELS SIDEBAR
============================================================ */

.gpp-sidebar-ats-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #F4F6F9;
    text-decoration: none !important;
    transition: all .15s;
}

.gpp-sidebar-ats-item:last-of-type { border-bottom: none; }

.gpp-sidebar-ats-name {
    font-size: .82rem;
    font-weight: 600;
    color: #0D1B2A;
    font-family: 'Barlow', sans-serif;
    transition: color .15s;
}

.gpp-sidebar-ats-item:hover .gpp-sidebar-ats-name { color: #F4801A; }

.gpp-sidebar-ats-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .85rem;
    font-weight: 800;
    color: #0D1B2A;
    white-space: nowrap;
    margin-left: .5rem;
}

.gpp-sidebar-ats-all {
    display: block;
    margin-top: .75rem;
    font-size: .75rem;
    font-weight: 700;
    color: #F4801A;
    text-decoration: none !important;
    font-family: 'Barlow', sans-serif;
    transition: color .15s;
}

.gpp-sidebar-ats-all:hover { color: #C0600E; }

/* ============================================================
   CATEGORY PAGE — PRODUCT CARD GRID
============================================================ */

.gpp-cat-page-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
}

.gpp-cat-page-inner .gpp-shop-toolbar {
    margin: 2rem 0 1.25rem;
}

.gpp-cat-page-inner .gpp-products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

@media (max-width: 960px) {
    .gpp-cat-page-inner .gpp-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .gpp-cat-page-inner { padding: 0 1rem 2rem; }
    .gpp-cat-page-inner .gpp-products-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   ATS PANELS SIDEBAR
============================================================ */

.gpp-sidebar-ats-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #F4F6F9;
    text-decoration: none !important;
    transition: all .15s;
    gap: .5rem;
}

.gpp-sidebar-ats-item:last-of-type { border-bottom: none; }

.gpp-sidebar-ats-name {
    font-size: .8rem;
    font-weight: 600;
    color: #0D1B2A;
    font-family: 'Barlow', sans-serif;
    transition: color .15s;
    line-height: 1.3;
}

.gpp-sidebar-ats-item:hover .gpp-sidebar-ats-name { color: #F4801A; }

.gpp-sidebar-ats-price {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .82rem;
    font-weight: 800;
    color: #0D1B2A;
    white-space: nowrap;
    flex-shrink: 0;
}

.gpp-sidebar-ats-all {
    display: block;
    margin-top: .75rem;
    padding-top: .6rem;
    border-top: 1px solid #E8EDF2;
    font-size: .75rem;
    font-weight: 700;
    color: #F4801A;
    text-decoration: none !important;
    font-family: 'Barlow', sans-serif;
    transition: color .15s;
}

.gpp-sidebar-ats-all:hover { color: #C0600E; }

/* ON SALE sidebar section */
.gpp-sidebar-sale .gpp-sidebar-title { color: #0D1B2A; }

.gpp-sidebar-sale-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: .5rem 0;
    border-bottom: 1px solid #F4F6F9;
    text-decoration: none !important;
    gap: .5rem;
    transition: all .15s;
}

.gpp-sidebar-sale-item:last-of-type { border-bottom: none; }

.gpp-sidebar-sale-name {
    font-size: .78rem;
    font-weight: 600;
    color: #0D1B2A;
    font-family: 'Barlow', sans-serif;
    transition: color .15s;
    line-height: 1.3;
    flex: 1;
}

.gpp-sidebar-sale-item:hover .gpp-sidebar-sale-name { color: #F4801A; }

.gpp-sidebar-sale-prices {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.gpp-sidebar-sale-now {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: .85rem;
    font-weight: 800;
    color: #1A6B3A;
}

.gpp-sidebar-sale-saving {
    background: #F4801A;
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    font-family: 'Barlow', sans-serif;
}

.gpp-sidebar-no-sale {
    font-size: .78rem;
    color: #4A5568;
    font-family: 'Barlow', sans-serif;
    font-style: italic;
    padding: .5rem 0;
}

/* Sale sidebar — compact row layout */
.gpp-sidebar-sale-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: .5rem 0 !important;
    border-bottom: 1px solid #F4F6F9 !important;
    text-decoration: none !important;
    gap: .5rem !important;
}

.gpp-sidebar-sale-item:last-of-type { border-bottom: none !important; }

.gpp-sidebar-sale-name {
    font-size: .78rem !important;
    font-weight: 600 !important;
    color: #0D1B2A !important;
    font-family: 'Barlow', sans-serif !important;
    line-height: 1.3 !important;
    flex: 1 !important;
    text-align: left !important;
}

.gpp-sidebar-sale-item:hover .gpp-sidebar-sale-name { color: #F4801A !important; }

.gpp-sidebar-sale-prices {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0 !important;
    text-align: right !important;
}

.gpp-sidebar-sale-now {
    font-family: 'Barlow Condensed', sans-serif !important;
    font-size: .85rem !important;
    font-weight: 800 !important;
    color: #1A6B3A !important;
}

.gpp-sidebar-sale-saving {
    background: #F4801A !important;
    color: #fff !important;
    font-size: .58rem !important;
    font-weight: 800 !important;
    padding: 1px 4px !important;
    border-radius: 3px !important;
    font-family: 'Barlow', sans-serif !important;
}
.gpp-cat-description {
    background: #fff;
    border: 1px solid #E8EDF2;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    font-family: 'Barlow', sans-serif;
    font-size: .9rem;
    color: #4A5568;
    line-height: 1.7;
}

.gpp-cat-description img {
    max-width: 200px;
    height: auto;
    float: left;
    margin: 0 1.25rem 1rem 0;
    border-radius: 4px;
}

.gpp-cat-description p { margin-bottom: .75rem; }
.gpp-cat-description p:last-child { margin-bottom: 0; }
