/* ============================================================
   ICD Parts Finder - Styles v6.0.0
   Brand Colors: Purple #4D067B, Black #000, Cream #FAF4E2, White #FFF
   ============================================================ */

/* ============================================================
   CRITICAL: Hide WooCommerce cart DRAWER on Parts Finder pages
   The standard theme header cart stays visible (opens our PF sidebar via JS)
   ============================================================ */
body.parts-finder-page #shoptimizerCartDrawer,
body.parts-finder-page .shoptimizer-mini-cart-wrap,
body.parts-finder-page .cart-drawer-below,
body.parts-finder-page .woocommerce-breadcrumb {
    display: none !important;
}

/* Hide the floating bottom-right button - use header cart instead */
body.parts-finder-page .pf-cart-icon {
    display: none !important;
}

/* ---- Layout ---- */
.pf-page { padding-bottom: 60px; }
.pf-page .col-full { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---- Breadcrumbs ---- */
.pf-breadcrumbs { padding: 15px 0; font-size: 13px; color: #666; }
.pf-breadcrumbs a { color: #333; text-decoration: none; }
.pf-breadcrumbs a:hover { color: #4D067B; }
.pf-breadcrumbs .sep { margin: 0 8px; color: #ccc; }
.pf-breadcrumbs .current { color: #999; }

/* ---- Hero ---- */
.pf-hero { text-align: center; padding: 40px 20px 30px; }
.pf-hero h1 { font-size: 36px; font-weight: 700; color: #000; margin: 0 0 10px; }
.pf-hero-subtitle { font-size: 18px; color: #444; margin: 0 0 8px; }
.pf-hero-stats { font-size: 14px; color: #4D067B; font-weight: 600; margin: 0; }

/* ---- Search ---- */
.pf-search-section { padding: 0 0 30px; max-width: 600px; margin: 0 auto; }
.pf-search-wrapper { position: relative; }
.pf-search-input {
    width: 100%; padding: 14px 20px; font-size: 16px;
    border: 2px solid #ddd; border-radius: 8px;
    outline: none; transition: border-color 0.2s;
    box-sizing: border-box;
}
.pf-search-input:focus { border-color: #4D067B; }
.pf-search-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; border: 1px solid #ddd; border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); z-index: 100; max-height: 400px; overflow-y: auto;
}
.pf-search-item {
    display: block; padding: 12px 20px; text-decoration: none; color: #333;
    border-bottom: 1px solid #f0f0f0; transition: background 0.15s;
}
.pf-search-item:hover { background: #FAF4E2; }
.pf-search-item-name { font-weight: 600; font-size: 15px; }
.pf-search-item-meta { font-size: 12px; color: #888; margin-top: 2px; }

/* ---- Brand Cards ---- */
.pf-brands-section { padding: 20px 0 40px; }
.pf-brands-section h2 { text-align: center; font-size: 24px; margin-bottom: 25px; }
.pf-brand-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pf-brand-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 30px 20px; background: #fff; border: 2px solid #eee;
    border-radius: 12px; text-decoration: none; color: #333;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.pf-brand-card:hover { border-color: #4D067B; box-shadow: 0 4px 20px rgba(77,6,123,0.12); transform: translateY(-2px); }
.pf-brand-logo { max-width: 120px; max-height: 60px; object-fit: contain; margin-bottom: 15px; }
.pf-brand-name-large { font-size: 28px; font-weight: 700; margin-bottom: 15px; }
.pf-brand-info { text-align: center; }
.pf-brand-label { display: block; font-weight: 600; font-size: 16px; }
.pf-brand-count { display: block; font-size: 13px; color: #888; margin-top: 4px; }

/* ---- Model Cards ---- */
.pf-series-section { padding: 15px 0; }
.pf-series-section h2 { font-size: 22px; margin-bottom: 15px; border-bottom: 2px solid #4D067B; padding-bottom: 8px; display: inline-block; }
.pf-model-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px; margin-bottom: 20px;
}
.pf-model-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px; background: #fff; border: 1px solid #eee;
    border-radius: 10px; text-decoration: none; color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pf-model-card:hover { border-color: #4D067B; box-shadow: 0 2px 12px rgba(77,6,123,0.1); }
.pf-model-icon { color: #ccc; margin-bottom: 10px; }
.pf-model-image { max-width: 120px; max-height: 80px; object-fit: contain; margin-bottom: 10px; }
.pf-model-info { text-align: center; }
.pf-model-name { font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.pf-model-specs { display: flex; flex-wrap: wrap; gap: 5px; justify-content: center; margin-bottom: 6px; }
.pf-spec-chip {
    display: inline-block; padding: 2px 8px; font-size: 11px; font-weight: 500;
    background: #FAF4E2; border-radius: 4px; color: #555;
}
.pf-model-parts { font-size: 12px; color: #999; }

/* ---- Server Header ---- */
.pf-server-header { padding: 30px 0 20px; }
.pf-server-header h1 { font-size: 30px; font-weight: 700; margin: 0 0 8px; }
.pf-server-subtitle { font-size: 16px; color: #555; margin: 0 0 15px; }
.pf-server-specs {
    display: flex; flex-wrap: wrap; gap: 15px;
}
.pf-spec-box {
    background: #FAF4E2; border-radius: 8px; padding: 10px 18px; text-align: center;
}
.pf-spec-label { display: block; font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.pf-spec-value { display: block; font-size: 18px; font-weight: 700; color: #000; margin-top: 2px; }

/* ---- Category Tabs ---- */
.pf-categories { margin: 10px 0 20px; overflow-x: auto; }
.pf-category-tabs {
    display: flex; gap: 4px; border-bottom: 2px solid #eee;
    padding-bottom: 0; white-space: nowrap;
}
.pf-tab {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px; font-size: 14px; font-weight: 500;
    color: #555; text-decoration: none; border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s; margin-bottom: -2px;
}
.pf-tab:hover { color: #4D067B; }
.pf-tab-active { color: #4D067B; border-bottom-color: #4D067B; font-weight: 600; }
.pf-tab-count { font-size: 11px; color: #aaa; }
.pf-tab-active .pf-tab-count { color: #4D067B; }

/* ---- Parts Grid ---- */
.pf-parts-section { padding: 10px 0 30px; }
.pf-parts-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.pf-part-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid #eee; border-radius: 10px;
    overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
}
.pf-part-card:hover { border-color: #ddd; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.pf-part-image { width: 100%; height: 160px; object-fit: contain; padding: 15px; background: #fafafa; }
.pf-part-placeholder {
    width: 100%; height: 160px; display: flex; align-items: center; justify-content: center;
    background: #f8f8f8; color: #ddd;
}
.pf-part-info { padding: 12px 15px; flex: 1; }
.pf-part-code { display: block; font-size: 12px; font-weight: 600; color: #4D067B; margin-bottom: 4px; font-family: monospace; }
.pf-part-name { font-size: 14px; font-weight: 500; margin: 0 0 6px; color: #222; line-height: 1.3; }
.pf-part-group { font-size: 11px; color: #999; }
.pf-part-action { padding: 10px 15px; border-top: 1px solid #f0f0f0; }

/* ---- Buttons ---- */
.pf-btn {
    display: inline-block; padding: 8px 16px; font-size: 13px; font-weight: 600;
    border-radius: 6px; text-decoration: none; cursor: pointer;
    text-align: center; transition: all 0.2s; border: none; width: 100%; box-sizing: border-box;
}
.pf-btn-primary { background: #4D067B; color: #fff; }
.pf-btn-primary:hover { background: #3A0460; color: #fff; }
.pf-btn-outline { background: #fff; color: #4D067B; border: 1.5px solid #4D067B; }
.pf-btn-outline:hover { background: #4D067B; color: #fff; }
.pf-btn-full { width: 100%; }

/* ---- Pagination ---- */
.pf-pagination { display: flex; justify-content: center; gap: 6px; padding: 30px 0; }
.pf-page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 10px;
    font-size: 14px; color: #333; text-decoration: none;
    border: 1px solid #ddd; border-radius: 6px; transition: all 0.2s;
}
.pf-page-link:hover { border-color: #4D067B; color: #4D067B; }
.pf-page-active { background: #4D067B; color: #fff !important; border-color: #4D067B; }

/* ---- Related ---- */
.pf-related-section { padding: 20px 0; }
.pf-related-section h2 { font-size: 20px; margin-bottom: 12px; }
.pf-related-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-related-link {
    display: inline-block; padding: 6px 14px; font-size: 13px;
    background: #f5f5f5; border-radius: 6px; color: #333; text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.pf-related-link:hover { background: #4D067B; color: #fff; }

/* ---- SEO Content ---- */
.pf-seo-content { padding: 30px 0; border-top: 1px solid #eee; margin-top: 20px; }
.pf-seo-content h2 { font-size: 20px; margin-bottom: 10px; }
.pf-seo-content p { font-size: 14px; color: #555; line-height: 1.7; }
.pf-no-results { text-align: center; padding: 40px 20px; color: #888; font-size: 16px; }

/* ---- Quote Modal ---- */
.pf-modal {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.pf-modal-content {
    background: #fff; border-radius: 12px; padding: 30px;
    max-width: 500px; width: 100%; position: relative;
    max-height: 90vh; overflow-y: auto;
}
.pf-modal-close {
    position: absolute; top: 12px; right: 16px;
    font-size: 28px; background: none; border: none; cursor: pointer;
    color: #999; line-height: 1;
}
.pf-modal-close:hover { color: #333; }
.pf-modal-content h2 { margin: 0 0 15px; font-size: 22px; }
.pf-quote-part-display { font-size: 14px; color: #555; margin-bottom: 15px; padding: 10px; background: #FAF4E2; border-radius: 6px; }
.pf-form-row { display: flex; gap: 10px; margin-bottom: 10px; }
.pf-form-row input,
.pf-form-row textarea {
    flex: 1; padding: 10px 14px; font-size: 14px;
    border: 1px solid #ddd; border-radius: 6px; outline: none;
    box-sizing: border-box;
}
.pf-form-row input:focus,
.pf-form-row textarea:focus { border-color: #4D067B; }
.pf-quote-form .pf-btn { margin-top: 5px; padding: 12px; font-size: 15px; }

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .pf-hero h1 { font-size: 26px; }
    .pf-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pf-brand-card { padding: 20px 15px; }
    .pf-brand-logo { max-width: 80px; max-height: 40px; }
    .pf-model-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pf-parts-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .pf-server-header h1 { font-size: 24px; }
    .pf-server-specs { gap: 8px; }
    .pf-spec-box { padding: 8px 12px; }
    .pf-spec-value { font-size: 15px; }
    .pf-category-tabs { flex-wrap: wrap; white-space: normal; overflow-x: visible; }
    .pf-form-row { flex-direction: column; }
}

@media (max-width: 480px) {
    .pf-brand-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .pf-model-grid { grid-template-columns: 1fr; }
    .pf-parts-grid { grid-template-columns: 1fr; }
    .pf-hero h1 { font-size: 22px; }
    .pf-server-specs { flex-direction: column; }
}


/* ============================================================
   Device Type Cards & Tabs (v3.0 - Unified Parts Finder)
   ============================================================ */

/* ---- Device Type Grid (Landing Page) ---- */
.pf-device-types-section { padding: 20px 0 40px; }
.pf-device-types-section h2 { text-align: center; font-size: 24px; margin-bottom: 25px; }

.pf-device-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 960px;
    margin: 0 auto;
}

.pf-device-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 30px 30px;
    background: #fff;
    border: 2px solid #eee;
    border-radius: 16px;
    text-decoration: none;
    color: #333;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    position: relative;
}
.pf-device-type-card:hover {
    border-color: #4D067B;
    box-shadow: 0 8px 32px rgba(77,6,123,0.15);
    transform: translateY(-4px);
}
.pf-device-type-card:hover .pf-dt-icon { color: #4D067B; }
.pf-device-type-card:hover .pf-dt-arrow { opacity: 1; transform: translateX(4px); }

.pf-dt-icon {
    color: #999;
    margin-bottom: 16px;
    transition: color 0.3s;
}

.pf-device-type-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #000;
}

.pf-dt-desc {
    font-size: 14px;
    color: #666;
    margin: 0 0 12px;
    line-height: 1.5;
}

.pf-dt-count {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    background: #FAF4E2;
    border-radius: 20px;
    color: #555;
}

.pf-dt-arrow {
    position: absolute;
    bottom: 16px;
    right: 20px;
    font-size: 20px;
    color: #4D067B;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

/* ---- Device Type Tabs (Filtered Landing) ---- */
.pf-device-type-tabs-section { padding: 0 0 10px; }

.pf-device-type-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid #eee;
    padding-bottom: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.pf-device-type-tabs::-webkit-scrollbar { display: none; }

.pf-dt-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: #555;
    text-decoration: none;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
    margin-bottom: -2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pf-dt-tab:hover { color: #4D067B; }

.pf-dt-tab-active {
    color: #4D067B;
    border-bottom-color: #4D067B;
    font-weight: 700;
}

.pf-dt-tab-count {
    font-size: 12px;
    color: #aaa;
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 10px;
}
.pf-dt-tab-active .pf-dt-tab-count {
    color: #4D067B;
    background: #FAF4E2;
}

/* ---- Responsive: Device Type ---- */
@media (max-width: 768px) {
    .pf-device-type-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
    }
    .pf-device-type-card { padding: 30px 20px 24px; }
    .pf-device-type-card h3 { font-size: 20px; }
    .pf-dt-arrow { opacity: 1; }

    .pf-dt-tab { padding: 10px 16px; font-size: 14px; }
}

@media (max-width: 480px) {
    .pf-device-type-card { padding: 24px 16px 20px; }
    .pf-dt-icon svg { width: 48px; height: 48px; }
    .pf-device-type-card h3 { font-size: 18px; }
}
/* ============================================================
   ICD Server Parts Finder - Premium Upgrade Styles
   APPEND to parts-finder.css (after line 546)
   Brand Colors: Purple #4D067B, Black #000, Cream #FAF4E2, White #FFF
   ============================================================ */


/* ============================================================
   1. Parts Toolbar
   ============================================================ */

.pf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
}

.pf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.pf-toolbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}


/* ============================================================
   2. Toolbar Search
   ============================================================ */

.pf-toolbar-search {
    display: flex;
    align-items: stretch;
    position: relative;
    max-width: 320px;
    width: 100%;
}

.pf-toolbar-input {
    flex: 1;
    padding: 8px 14px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-right: none;
    border-radius: 6px 0 0 6px;
    outline: none;
    background: #fff;
    color: #333;
    transition: border-color 0.2s, box-shadow 0.2s;
    min-width: 0;
    box-sizing: border-box;
}

.pf-toolbar-input::placeholder {
    color: #aaa;
    font-size: 13px;
}

.pf-toolbar-input:focus {
    border-color: #4D067B;
    box-shadow: 0 0 0 2px rgba(77, 6, 123, 0.08);
}

.pf-toolbar-input:focus + .pf-toolbar-search-btn {
    border-color: #4D067B;
}

.pf-toolbar-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    padding: 0;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-left: none;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    color: #666;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    flex-shrink: 0;
}

.pf-toolbar-search-btn:hover {
    background: #4D067B;
    color: #fff;
    border-color: #4D067B;
}

.pf-toolbar-search-btn svg {
    width: 16px;
    height: 16px;
}

.pf-search-clear {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 8px;
    font-size: 12px;
    font-weight: 500;
    color: #999;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-search-clear:hover {
    color: #4D067B;
    background: rgba(77, 6, 123, 0.06);
}

.pf-search-clear svg {
    width: 12px;
    height: 12px;
}


/* ============================================================
   3. Sort Select
   ============================================================ */

.pf-sort-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 8px 34px 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
    min-width: 140px;
    box-sizing: border-box;
}

.pf-sort-select:hover {
    border-color: #bbb;
    background-color: #fafafa;
}

.pf-sort-select:focus {
    border-color: #4D067B;
    box-shadow: 0 0 0 2px rgba(77, 6, 123, 0.08);
}

.pf-sort-label {
    font-size: 12px;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-right: 6px;
    white-space: nowrap;
}


/* ============================================================
   4. View Toggle
   ============================================================ */

.pf-view-toggle {
    display: inline-flex;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.pf-view-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 34px;
    padding: 0;
    background: #fff;
    border: none;
    border-right: 1px solid #ddd;
    cursor: pointer;
    color: #999;
    transition: background 0.2s, color 0.2s;
}

.pf-view-btn:last-child {
    border-right: none;
}

.pf-view-btn:hover {
    background: #f5f5f5;
    color: #555;
}

.pf-view-btn--active {
    background: #4D067B;
    color: #fff;
}

.pf-view-btn--active:hover {
    background: #3A0460;
    color: #fff;
}

.pf-view-btn svg {
    width: 16px;
    height: 16px;
}


/* ============================================================
   5. Results Info
   ============================================================ */

.pf-toolbar-info {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-toolbar-info strong {
    color: #555;
    font-weight: 600;
}


/* ============================================================
   6. Category Tab Icons
   ============================================================ */

.pf-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    vertical-align: middle;
    color: inherit;
    transition: color 0.2s;
}

.pf-tab-icon svg {
    width: 16px;
    height: 16px;
    display: block;
}

.pf-tab:hover .pf-tab-icon {
    color: #4D067B;
}

.pf-tab-active .pf-tab-icon {
    color: #4D067B;
}

/* Device type tab icons (same pattern) */
.pf-dt-tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: inherit;
    transition: color 0.2s;
}

.pf-dt-tab-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.pf-dt-tab:hover .pf-dt-tab-icon {
    color: #4D067B;
}

.pf-dt-tab-active .pf-dt-tab-icon {
    color: #4D067B;
}


/* ============================================================
   7. List View
   ============================================================ */

.pf-parts-grid--list {
    grid-template-columns: 1fr;
    gap: 10px;
}

.pf-parts-grid--list .pf-part-card {
    flex-direction: row;
    align-items: center;
    border-radius: 8px;
}

.pf-parts-grid--list .pf-part-image {
    width: 100px;
    height: 80px;
    min-width: 100px;
    padding: 10px;
    border-radius: 8px 0 0 8px;
}

.pf-parts-grid--list .pf-part-placeholder {
    width: 100px;
    height: 80px;
    min-width: 100px;
    border-radius: 8px 0 0 8px;
}

.pf-parts-grid--list .pf-part-info {
    flex: 1;
    padding: 10px 16px;
    min-width: 0;
}

.pf-parts-grid--list .pf-part-code {
    font-size: 11px;
    margin-bottom: 2px;
}

.pf-parts-grid--list .pf-part-name {
    font-size: 14px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-parts-grid--list .pf-part-group {
    font-size: 11px;
}

.pf-parts-grid--list .pf-part-action {
    border-top: none;
    border-left: 1px solid #f0f0f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-width: 140px;
}

.pf-parts-grid--list .pf-btn {
    width: auto;
    white-space: nowrap;
    padding: 8px 20px;
}

.pf-parts-grid--list .pf-part-badge {
    position: static;
    margin-left: auto;
    margin-right: 8px;
    flex-shrink: 0;
}


/* ============================================================
   8. Part Card Enhancements
   ============================================================ */

/* Category Badge */
.pf-part-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #FAF4E2;
    color: #777;
    border-radius: 20px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    line-height: 1.4;
}

.pf-part-badge--memory { background: #e3f2fd; color: #1565c0; }
.pf-part-badge--cpu { background: #fce4ec; color: #c62828; }
.pf-part-badge--storage { background: #e8f5e9; color: #2e7d32; }
.pf-part-badge--network { background: #fff3e0; color: #e65100; }
.pf-part-badge--power { background: #f3e5f5; color: #6a1b9a; }
.pf-part-badge--raid { background: #e0f7fa; color: #00695c; }

/* Card needs relative positioning for badge */
.pf-part-card {
    position: relative;
}

/* Enhanced hover - subtle lift and shadow */
.pf-part-card:hover {
    border-color: #ddd;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

/* Image zoom on hover */
.pf-part-card .pf-part-image {
    transition: transform 0.35s ease;
}

.pf-part-card:hover .pf-part-image {
    transform: scale(1.05);
}

/* Image container overflow hidden for zoom effect */
.pf-part-image-wrap {
    overflow: hidden;
    background: #fafafa;
    border-radius: 10px 10px 0 0;
    position: relative;
}

.pf-part-image-wrap .pf-part-image {
    border-radius: 0;
}

.pf-part-image-wrap .pf-part-placeholder {
    border-radius: 0;
}

/* Part code copy hint */
.pf-part-code {
    position: relative;
    cursor: pointer;
}

.pf-part-code-hint {
    display: none;
    position: absolute;
    top: -28px;
    left: 0;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #fff;
    background: #333;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 5;
}

.pf-part-code-hint::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 12px;
    border: 4px solid transparent;
    border-top-color: #333;
}

.pf-part-card:hover .pf-part-code-hint {
    display: block;
}

/* Copied state */
.pf-part-code--copied .pf-part-code-hint {
    background: #28a745;
}

.pf-part-code--copied .pf-part-code-hint::after {
    border-top-color: #28a745;
}

/* List view badge positioning */
.pf-parts-grid--list .pf-part-image-wrap {
    border-radius: 8px 0 0 8px;
    min-width: 100px;
    width: 100px;
}


/* ============================================================
   9. Search Active State
   ============================================================ */

.pf-search-active .pf-toolbar-search {
    max-width: 400px;
}

.pf-search-active .pf-toolbar-input {
    border-color: #4D067B;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(77, 6, 123, 0.08);
}

.pf-search-results-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: #4D067B;
    border-radius: 20px;
    margin-left: 8px;
    line-height: 1.6;
    white-space: nowrap;
    flex-shrink: 0;
}

.pf-search-results-count:empty {
    display: none;
}

/* Clear search button within search active state */
.pf-search-active .pf-search-clear {
    display: inline-flex;
    color: #4D067B;
    font-weight: 600;
}

/* Highlight matching text in search */
.pf-search-highlight {
    background: rgba(77, 6, 123, 0.12);
    color: #4D067B;
    font-weight: 600;
    padding: 0 1px;
    border-radius: 2px;
}


/* ============================================================
   10. Premium Animations
   ============================================================ */

/* Card entrance animation */
@keyframes pf-fade-in {
    0% {
        opacity: 0;
        transform: translateY(12px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-part-card {
    animation: pf-fade-in 0.35s ease forwards;
}

/* Staggered entrance for grid items */
.pf-part-card:nth-child(1)  { animation-delay: 0.00s; }
.pf-part-card:nth-child(2)  { animation-delay: 0.03s; }
.pf-part-card:nth-child(3)  { animation-delay: 0.06s; }
.pf-part-card:nth-child(4)  { animation-delay: 0.09s; }
.pf-part-card:nth-child(5)  { animation-delay: 0.12s; }
.pf-part-card:nth-child(6)  { animation-delay: 0.15s; }
.pf-part-card:nth-child(7)  { animation-delay: 0.18s; }
.pf-part-card:nth-child(8)  { animation-delay: 0.21s; }
.pf-part-card:nth-child(9)  { animation-delay: 0.24s; }
.pf-part-card:nth-child(10) { animation-delay: 0.27s; }
.pf-part-card:nth-child(11) { animation-delay: 0.30s; }
.pf-part-card:nth-child(12) { animation-delay: 0.33s; }

/* Cap delay for items beyond 12 to avoid excessive wait */
.pf-part-card:nth-child(n+13) {
    animation-delay: 0.35s;
}

/* Tab switch animation */
@keyframes pf-tab-slide-in {
    0% {
        opacity: 0;
        transform: translateX(8px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.pf-parts-section--transitioning {
    animation: pf-tab-slide-in 0.25s ease forwards;
}

/* Tab underline smooth slide */
.pf-tab,
.pf-dt-tab {
    position: relative;
}

.pf-tab::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 3px;
    background: #4D067B;
    transition: width 0.25s ease, left 0.25s ease;
    border-radius: 3px 3px 0 0;
}

.pf-tab:hover::after {
    width: 60%;
    left: 20%;
}

.pf-tab-active::after {
    width: 100%;
    left: 0;
}

/* Override the existing border-bottom since we use ::after now */
.pf-tab-active {
    border-bottom-color: transparent;
}

/* Toolbar control transitions */
.pf-toolbar-input,
.pf-toolbar-search-btn,
.pf-sort-select,
.pf-view-btn,
.pf-search-clear {
    transition-duration: 0.2s;
    transition-timing-function: ease;
}

/* Fade in for toolbar appearance */
@keyframes pf-toolbar-fade {
    0% {
        opacity: 0;
        transform: translateY(-6px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.pf-toolbar {
    animation: pf-toolbar-fade 0.3s ease forwards;
}

/* Reduced motion: respect user preference */
@media (prefers-reduced-motion: reduce) {
    .pf-part-card,
    .pf-parts-section--transitioning,
    .pf-toolbar {
        animation: none;
    }

    .pf-part-card:hover {
        transform: none;
    }

    .pf-part-card:hover .pf-part-image {
        transform: none;
    }

    .pf-tab::after {
        transition: none;
    }
}


/* ============================================================
   11. Responsive - Tablet (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {

    /* Toolbar stacks vertically */
    .pf-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 0;
    }

    .pf-toolbar-left {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .pf-toolbar-right {
        justify-content: space-between;
    }

    /* Search goes full width */
    .pf-toolbar-search {
        max-width: 100%;
    }

    .pf-search-active .pf-toolbar-search {
        max-width: 100%;
    }

    /* Sort select compact */
    .pf-sort-select {
        min-width: 120px;
        font-size: 12px;
        padding: 7px 30px 7px 10px;
    }

    .pf-sort-label {
        font-size: 11px;
    }

    /* View toggle */
    .pf-view-btn {
        width: 34px;
        height: 32px;
    }

    /* Results info */
    .pf-toolbar-info {
        font-size: 12px;
        text-align: left;
    }

    /* Tab icons slightly smaller */
    .pf-tab-icon,
    .pf-tab-icon svg {
        width: 14px;
        height: 14px;
    }

    /* List view adapts */
    .pf-parts-grid--list .pf-part-card {
        flex-wrap: wrap;
    }

    .pf-parts-grid--list .pf-part-image,
    .pf-parts-grid--list .pf-part-placeholder {
        width: 80px;
        height: 64px;
        min-width: 80px;
    }

    .pf-parts-grid--list .pf-part-image-wrap {
        width: 80px;
        min-width: 80px;
    }

    .pf-parts-grid--list .pf-part-action {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        width: 100%;
        min-width: auto;
        justify-content: flex-end;
    }

    .pf-parts-grid--list .pf-btn {
        width: auto;
    }

    /* Badge on card smaller */
    .pf-part-badge {
        font-size: 9px;
        padding: 2px 8px;
    }

    /* Search results count badge */
    .pf-search-results-count {
        font-size: 10px;
        padding: 2px 8px;
    }
}


/* ============================================================
   11b. Responsive - Mobile (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {

    /* Toolbar even more compact */
    .pf-toolbar {
        gap: 10px;
        padding: 10px 0;
    }

    .pf-toolbar-right {
        flex-wrap: wrap;
        gap: 8px;
    }

    /* Toolbar search input */
    .pf-toolbar-input {
        padding: 10px 12px;
        font-size: 15px;
    }

    .pf-toolbar-search-btn {
        width: 44px;
    }

    /* Sort select full width on very small screens */
    .pf-sort-select {
        flex: 1;
        min-width: 0;
    }

    .pf-sort-label {
        display: none;
    }

    /* View toggle */
    .pf-view-btn {
        width: 38px;
        height: 36px;
    }

    /* List view fully stacks on mobile */
    .pf-parts-grid--list .pf-part-card {
        flex-direction: column;
        align-items: stretch;
    }

    .pf-parts-grid--list .pf-part-image,
    .pf-parts-grid--list .pf-part-placeholder {
        width: 100%;
        height: 120px;
        min-width: auto;
        border-radius: 8px 8px 0 0;
    }

    .pf-parts-grid--list .pf-part-image-wrap {
        width: 100%;
        min-width: auto;
        border-radius: 8px 8px 0 0;
    }

    .pf-parts-grid--list .pf-part-info {
        padding: 12px 14px;
    }

    .pf-parts-grid--list .pf-part-name {
        white-space: normal;
    }

    .pf-parts-grid--list .pf-part-action {
        border-left: none;
        border-top: 1px solid #f0f0f0;
        padding: 10px 14px;
    }

    .pf-parts-grid--list .pf-btn {
        width: 100%;
    }

    .pf-parts-grid--list .pf-part-badge {
        position: absolute;
        top: 10px;
        left: 10px;
        margin: 0;
    }

    /* Badge positioning in grid */
    .pf-part-badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 2px 7px;
    }

    /* Search clear link */
    .pf-search-clear {
        font-size: 11px;
        padding: 4px 6px;
    }

    /* Info text wrap allowed */
    .pf-toolbar-info {
        white-space: normal;
        font-size: 11px;
    }

    /* Reduce card entrance animation stagger on mobile for snappiness */
    .pf-part-card:nth-child(n+5) {
        animation-delay: 0.15s;
    }

    /* Copy hint smaller on mobile */
    .pf-part-code-hint {
        font-size: 9px;
        padding: 3px 6px;
        top: -24px;
    }
}


/* ============================================================
   11c. Responsive - Large screens (min-width: 1200px)
   ============================================================ */

@media (min-width: 1200px) {

    /* Wider toolbar search on large screens */
    .pf-toolbar-search {
        max-width: 360px;
    }

    .pf-search-active .pf-toolbar-search {
        max-width: 440px;
    }

    /* 4-column grid view on large screens */
    .pf-parts-grid--list .pf-part-image,
    .pf-parts-grid--list .pf-part-placeholder {
        width: 120px;
        height: 90px;
        min-width: 120px;
    }

    .pf-parts-grid--list .pf-part-image-wrap {
        width: 120px;
        min-width: 120px;
    }

    .pf-parts-grid--list .pf-part-action {
        min-width: 160px;
    }
}
/* ============================================================
   Parts Finder v5.0 - Premium Landing + Brand Page Styles
   APPEND to parts-finder.css
   ============================================================ */

/* ---- Hero Landing ---- */
.pf-hero-landing { padding: 40px 20px 28px; }
.pf-hero-landing h1 {
    font-size: 36px; font-weight: 700; line-height: 1.2;
    letter-spacing: -0.3px;
}

.pf-hero-badge-top {
    display: inline-block;
    padding: 5px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #4D067B;
    background: rgba(77,6,123,0.08);
    border-radius: 20px;
    margin-bottom: 16px;
}

.pf-hero-stats-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 32px;
}

.pf-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
}

.pf-stat-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.pf-stat-divider {
    width: 1px;
    height: 36px;
    background: #ddd;
}

/* ---- Hero Badges (brand page) ---- */
.pf-hero-badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.pf-hero-badge {
    display: inline-block;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #FAF4E2;
    border-radius: 20px;
}

/* ---- Search Hero (larger on landing) ---- */
.pf-search-hero { max-width: 680px; padding: 0 0 40px; }
.pf-search-hero .pf-search-wrapper { position: relative; }
.pf-search-hero .pf-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
}
.pf-search-input-hero {
    padding-left: 48px !important;
    font-size: 16px !important;
    height: 52px;
    border-radius: 12px !important;
    border-width: 2px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.pf-search-input-hero:focus {
    box-shadow: 0 4px 20px rgba(77,6,123,0.12);
}

/* ---- Brand Card Premium ---- */
.pf-brand-card {
    position: relative;
    overflow: hidden;
}

.pf-brand-logo-wrap {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.pf-brand-text-logo {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-brand-svg-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-brand-arrow {
    position: absolute;
    bottom: 14px;
    right: 16px;
    font-size: 18px;
    color: #4D067B;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}
.pf-brand-card:hover .pf-brand-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ---- Category Highlights (Landing) ---- */
.pf-category-highlights {
    padding: 30px 0 20px;
    border-top: 1px solid #f0f0f0;
}
.pf-category-highlights h2 {
    text-align: center;
    font-size: 22px;
    margin-bottom: 24px;
}

.pf-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.pf-cat-highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.pf-cat-highlight:hover {
    border-color: #4D067B;
    box-shadow: 0 2px 8px rgba(77,6,123,0.08);
}

.pf-cat-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF4E2;
    border-radius: 8px;
    color: #4D067B;
}

.pf-cat-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pf-cat-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
}

.pf-cat-desc {
    font-size: 11px;
    color: #999;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- Trust Bar ---- */
.pf-trust-bar {
    display: flex;
    justify-content: center;
    gap: 32px;
    padding: 24px 0;
    margin: 20px 0 0;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
}

.pf-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: #555;
}

.pf-trust-item svg { color: #4D067B; flex-shrink: 0; }

/* ---- Model Filter (Brand Page) ---- */
.pf-model-filter-section { padding: 0 0 20px; }

.pf-model-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.pf-filter-search {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 320px;
}

.pf-model-search-input {
    flex: 1;
    padding: 8px 12px;
    font-size: 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.pf-model-search-input:focus {
    border-color: #4D067B;
}

.pf-filter-count {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
}

/* ---- Series Header Premium ---- */
.pf-series-header {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
}
.pf-series-header h2 {
    font-size: 20px;
    margin: 0;
    border-bottom: 2px solid #4D067B;
    padding-bottom: 6px;
    display: inline-block;
}
.pf-series-count {
    font-size: 12px;
    color: #999;
}

/* ---- Model Card Premium Enhancements ---- */
.pf-model-card {
    position: relative;
}
.pf-model-arrow {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 16px;
    color: #4D067B;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
}
.pf-model-card:hover .pf-model-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(3px);
}

/* ---- No Results (Brand Filter) ---- */
#pf-no-model-results {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}
#pf-no-model-results svg {
    display: block;
    margin: 0 auto 12px;
}
#pf-no-model-results p {
    font-size: 16px;
    margin: 0;
}

/* ---- Responsive v5 ---- */
@media (max-width: 768px) {
    .pf-hero-landing h1 { font-size: 28px; }
    .pf-hero-stats-row { gap: 0; }
    .pf-stat { padding: 0 16px; }
    .pf-stat-number { font-size: 22px; }
    .pf-cat-grid { grid-template-columns: repeat(2, 1fr); }
    .pf-trust-bar { gap: 16px; }
    .pf-trust-item { font-size: 12px; }
    .pf-model-filter { flex-direction: column; align-items: stretch; }
    .pf-filter-search { max-width: none; }
}

@media (max-width: 480px) {
    .pf-hero-landing h1 { font-size: 24px; }
    .pf-hero-landing { padding: 24px 10px 18px; }
    .pf-stat { padding: 0 12px; }
    .pf-stat-number { font-size: 20px; }
    .pf-stat-divider { height: 24px; }
    .pf-cat-grid { grid-template-columns: 1fr; }
    .pf-hero-badges { flex-direction: column; align-items: center; gap: 6px; }
    .pf-trust-bar { flex-direction: column; align-items: center; gap: 12px; }
    .pf-brand-grid { grid-template-columns: 1fr 1fr; }
}


/* ============================================================
   PREMIUM VISUAL UPGRADE v5.8.0
   Enterprise-grade polish — dark hero, warm tones, depth
   ============================================================ */

/* ----------------------------------------------------------------
   1. HERO — CLEAN LIGHT (Global Landing)
   ---------------------------------------------------------------- */
.pf-hero-landing {
    background: #fff;
    color: #222;
    padding: 40px 20px 28px;
    position: relative;
    border-bottom: 1px solid #eee;
}

/* No bottom glow on light hero */
.pf-hero-landing::after {
    display: none;
}

.pf-hero-landing h1 {
    color: #111;
    font-size: 36px;
    font-weight: 700;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.pf-hero-landing .pf-hero-subtitle {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto 8px;
    line-height: 1.5;
}

/* Badge - simple purple pill */
.pf-hero-landing .pf-hero-badge-top {
    background: rgba(77,6,123,0.08);
    color: #4D067B;
    border: 1px solid rgba(77,6,123,0.15);
    font-size: 11px;
    letter-spacing: 2px;
    padding: 5px 16px;
}

/* Stats - purple numbers on light bg */
.pf-hero-landing .pf-stat-number {
    color: #4D067B;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pf-hero-landing .pf-stat-label {
    color: #888;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pf-hero-landing .pf-stat-divider {
    background: #ddd;
    height: 32px;
}

/* ----------------------------------------------------------------
   2. HERO SEARCH — PREMIUM GLOW
   ---------------------------------------------------------------- */
.pf-search-hero {
    max-width: 700px;
    padding: 0 0 44px;
}

.pf-search-hero .pf-search-icon svg {
    color: #999;
}

.pf-search-input-hero {
    height: 56px;
    border: 2px solid #e0e0e0;
    border-radius: 14px !important;
    font-size: 16px !important;
    padding-left: 52px !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pf-search-input-hero:focus {
    border-color: #4D067B;
    box-shadow: 0 4px 24px rgba(77,6,123,0.12), 0 0 0 4px rgba(77,6,123,0.06);
}

/* ----------------------------------------------------------------
   3. DEVICE TYPE CARDS — WARM & PREMIUM
   ---------------------------------------------------------------- */
.pf-device-types-section {
    padding: 32px 0 48px;
}

.pf-device-types-section h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 28px;
}

.pf-device-type-card {
    background: linear-gradient(180deg, #FEFDFB 0%, #FAF8F4 100%);
    border: 2px solid #ece8e0;
    border-radius: 18px;
    padding: 36px 28px 28px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.pf-device-type-card:hover {
    border-color: #4D067B;
    box-shadow: 0 12px 40px rgba(77,6,123,0.10), 0 4px 12px rgba(0,0,0,0.04);
    transform: translateY(-6px);
}

/* Icon circle background */
.pf-dt-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF4E2;
    border-radius: 50%;
    margin: 0 auto 18px;
    color: #666;
    transition: background 0.3s, color 0.3s;
}

.pf-device-type-card:hover .pf-dt-icon {
    background: rgba(77,6,123,0.08);
    color: #4D067B;
}

.pf-device-type-card h3 {
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.pf-dt-desc {
    font-size: 13px;
    color: #777;
    line-height: 1.55;
    margin: 0 0 14px;
}

.pf-dt-count {
    background: #F0EDE6;
    color: #666;
    font-weight: 700;
    font-size: 12px;
    padding: 5px 14px;
    border-radius: 20px;
    letter-spacing: 0.3px;
}

.pf-device-type-card:hover .pf-dt-count {
    background: rgba(77,6,123,0.08);
    color: #4D067B;
}

/* ----------------------------------------------------------------
   4. BRAND CARDS — SUBTLE LIFT
   ---------------------------------------------------------------- */
.pf-brand-card {
    background: linear-gradient(180deg, #FEFEFE 0%, #FAFAF8 100%);
    border: 2px solid #ece8e0;
    border-radius: 14px;
    padding: 28px 20px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pf-brand-card:hover {
    border-color: #4D067B;
    box-shadow: 0 8px 28px rgba(77,6,123,0.10), 0 2px 8px rgba(0,0,0,0.04);
    transform: translateY(-4px);
}

.pf-brand-logo-wrap {
    height: 72px;
    margin-bottom: 14px;
}

.pf-brand-label {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

.pf-brand-count {
    font-size: 13px;
    color: #999;
    margin-top: 3px;
}

/* ----------------------------------------------------------------
   5. BROWSE BY CATEGORY — BIGGER, WARMER
   ---------------------------------------------------------------- */
.pf-category-highlights {
    padding: 36px 0 28px;
    border-top: 2px solid #f0ede6;
}

.pf-category-highlights h2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 26px;
}

.pf-cat-grid {
    gap: 14px;
}

.pf-cat-highlight {
    padding: 16px 18px;
    background: linear-gradient(180deg, #FEFDFB 0%, #FAF8F4 100%);
    border: 1.5px solid #ece8e0;
    border-radius: 12px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.pf-cat-highlight:hover {
    border-color: #4D067B;
    box-shadow: 0 4px 16px rgba(77,6,123,0.08);
    transform: translateY(-2px);
}

.pf-cat-icon {
    width: 44px;
    height: 44px;
    background: #FAF4E2;
    border-radius: 10px;
    color: #4D067B;
}

.pf-cat-name {
    font-size: 15px;
    font-weight: 700;
    color: #111;
}

.pf-cat-desc {
    font-size: 12px;
    color: #888;
}

/* ----------------------------------------------------------------
   6. TRUST BAR — CREAM BAND
   ---------------------------------------------------------------- */
.pf-trust-bar {
    background: #FAF4E2;
    margin: 24px -20px 0;
    padding: 28px 40px;
    border-top: none;
    border-radius: 0;
    gap: 40px;
}

.pf-trust-item {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    gap: 10px;
}

.pf-trust-item svg {
    color: #4D067B;
    width: 22px;
    height: 22px;
}

/* ----------------------------------------------------------------
   7. BRAND PAGE HERO — ACCENT BAR + TINT
   ---------------------------------------------------------------- */
.pf-hero:not(.pf-hero-landing) {
    background: linear-gradient(180deg, #FAFAF8 0%, #fff 100%);
    border-bottom: 1px solid #f0ede6;
    padding: 36px 20px 28px;
    position: relative;
}

/* Red accent line at top */
.pf-hero:not(.pf-hero-landing)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #4D067B;
}

.pf-hero h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Brand page badges - warmer look */
.pf-hero-badge {
    background: #FAF4E2;
    border: 1px solid #ece8e0;
    color: #555;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 16px;
}

/* ----------------------------------------------------------------
   8. MODEL CARDS (Brand Page) — BETTER SPECS
   ---------------------------------------------------------------- */
.pf-model-card {
    background: linear-gradient(180deg, #FEFEFE 0%, #FAFAF8 100%);
    border: 1.5px solid #ece8e0;
    border-radius: 12px;
    padding: 22px 18px;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.pf-model-card:hover {
    border-color: #4D067B;
    box-shadow: 0 8px 24px rgba(77,6,123,0.08), 0 2px 6px rgba(0,0,0,0.03);
    transform: translateY(-3px);
}

/* Server icon area */
.pf-model-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FAF4E2;
    border-radius: 12px;
    color: #aaa;
    margin: 0 auto 12px;
    transition: background 0.3s, color 0.3s;
}

.pf-model-card:hover .pf-model-icon {
    background: rgba(77,6,123,0.06);
    color: #4D067B;
}

.pf-model-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.2px;
}

/* Spec chips — bolder, warmer */
.pf-spec-chip {
    background: #FAF4E2;
    border: 1px solid #ece8e0;
    color: #555;
    font-weight: 600;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 6px;
}

.pf-model-parts {
    font-size: 12px;
    color: #aaa;
    font-weight: 500;
}

/* Series section headers */
.pf-series-header h2 {
    font-size: 22px;
    font-weight: 700;
    border-bottom-width: 3px;
}

.pf-series-count {
    font-size: 13px;
    color: #aaa;
    font-weight: 500;
}

/* ----------------------------------------------------------------
   9. SERVER HEADER (Model Page) — SPEC BOXES
   ---------------------------------------------------------------- */
.pf-server-header {
    padding: 32px 0 24px;
}

.pf-server-header h1 {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.pf-server-subtitle {
    color: #666;
}

.pf-spec-box {
    background: linear-gradient(180deg, #FAF4E2 0%, #F5EFD8 100%);
    border: 1px solid #ece8e0;
    border-radius: 10px;
    padding: 12px 20px;
}

.pf-spec-label {
    font-size: 10px;
    color: #999;
    letter-spacing: 1px;
    font-weight: 600;
}

.pf-spec-value {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.3px;
}

/* ----------------------------------------------------------------
   10. PART CARDS — REFINED BORDERS
   ---------------------------------------------------------------- */
.pf-part-card {
    border: 1.5px solid #ece8e0;
    border-radius: 12px;
}

.pf-part-card:hover {
    border-color: #4D067B;
    box-shadow: 0 8px 24px rgba(77,6,123,0.07), 0 2px 6px rgba(0,0,0,0.03);
}

.pf-part-image-wrap {
    background: #FAFAF8;
}

.pf-part-code {
    color: #4D067B;
    font-weight: 700;
    font-size: 12px;
}

.pf-part-name {
    font-weight: 600;
    color: #111;
}

/* Add to Quote button — bolder */
.pf-btn-primary {
    background: #4D067B;
    font-weight: 700;
    letter-spacing: 0.2px;
    border-radius: 8px;
    padding: 10px 16px;
    transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
}

.pf-btn-primary:hover {
    background: #3A0460;
    box-shadow: 0 4px 12px rgba(77,6,123,0.25);
    transform: translateY(-1px);
}

/* Category badge polish */
.pf-part-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    border-radius: 6px;
    padding: 4px 10px;
}

/* ----------------------------------------------------------------
   11. PAGINATION — WARMER
   ---------------------------------------------------------------- */
.pf-page-link {
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
}

.pf-page-link:hover {
    border-color: #4D067B;
    color: #4D067B;
    background: rgba(77,6,123,0.04);
}

.pf-page-active {
    background: #4D067B;
    border-color: #4D067B;
    box-shadow: 0 2px 8px rgba(77,6,123,0.25);
}

/* ----------------------------------------------------------------
   12. SEO CONTENT — SOFTER SEPARATION
   ---------------------------------------------------------------- */
.pf-seo-content {
    border-top: 2px solid #f0ede6;
    padding: 36px 0;
}

.pf-seo-content h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.pf-seo-content p {
    color: #666;
    line-height: 1.8;
    max-width: 800px;
}

/* ----------------------------------------------------------------
   13. BREADCRUMBS — REFINED
   ---------------------------------------------------------------- */
.pf-breadcrumbs {
    font-size: 13px;
    color: #999;
    padding: 16px 0;
}

.pf-breadcrumbs a {
    color: #555;
    font-weight: 500;
    transition: color 0.2s;
}

.pf-breadcrumbs a:hover {
    color: #4D067B;
}

/* ----------------------------------------------------------------
   14. RELATED MODELS — TAGS UPGRADE
   ---------------------------------------------------------------- */
.pf-related-link {
    background: #FAF4E2;
    border: 1px solid #ece8e0;
    color: #444;
    font-weight: 600;
    border-radius: 8px;
    padding: 8px 16px;
    transition: all 0.2s;
}

.pf-related-link:hover {
    background: #4D067B;
    border-color: #4D067B;
    color: #fff;
    box-shadow: 0 2px 8px rgba(77,6,123,0.2);
}

/* ----------------------------------------------------------------
   15. CATEGORY TABS — THICKER BAR
   ---------------------------------------------------------------- */
.pf-category-tabs {
    border-bottom: 3px solid #f0ede6;
}

.pf-tab {
    font-weight: 600;
    padding: 12px 18px;
    color: #666;
}

.pf-tab-active {
    color: #4D067B;
    font-weight: 700;
}

.pf-tab-count {
    background: #f5f5f5;
    padding: 2px 8px;
    border-radius: 8px;
    font-weight: 600;
}

.pf-tab-active .pf-tab-count {
    background: rgba(77,6,123,0.08);
    color: #4D067B;
}

/* ----------------------------------------------------------------
   16. MODEL FILTER SEARCH (Brand Page)
   ---------------------------------------------------------------- */
.pf-model-search-input {
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 14px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.pf-model-search-input:focus {
    border-color: #4D067B;
    box-shadow: 0 0 0 3px rgba(77,6,123,0.06);
}

/* ----------------------------------------------------------------
   17. DEVICE TYPE TABS (Filtered Landing)
   ---------------------------------------------------------------- */
.pf-device-type-tabs {
    border-bottom: 3px solid #f0ede6;
    gap: 2px;
}

.pf-dt-tab {
    font-weight: 600;
    color: #666;
    padding: 13px 22px;
    border-radius: 8px 8px 0 0;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pf-dt-tab:hover {
    background: rgba(77,6,123,0.03);
    color: #4D067B;
}

.pf-dt-tab-active {
    background: rgba(77,6,123,0.04);
    color: #4D067B;
    font-weight: 700;
}

.pf-dt-tab-count {
    font-weight: 700;
}

/* ----------------------------------------------------------------
   18. RESPONSIVE ADJUSTMENTS FOR PREMIUM
   ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .pf-hero-landing {
        padding: 30px 16px 22px;
    }
    .pf-hero-landing h1 {
        font-size: 28px;
    }
    .pf-trust-bar {
        margin: 20px -20px 0;
        padding: 20px;
        gap: 16px;
    }
    .pf-device-type-card {
        padding: 28px 20px 22px;
    }
    .pf-dt-icon {
        width: 64px;
        height: 64px;
    }
    .pf-hero:not(.pf-hero-landing) {
        padding: 28px 16px 22px;
    }
}

@media (max-width: 480px) {
    .pf-hero-landing {
        padding: 24px 12px 18px;
    }
    .pf-hero-landing h1 {
        font-size: 24px;
    }
    .pf-device-type-card {
        padding: 24px 16px 20px;
    }
    .pf-dt-icon {
        width: 56px;
        height: 56px;
    }
    .pf-trust-bar {
        flex-direction: column;
        align-items: center;
        gap: 14px;
        padding: 20px 16px;
    }
}

/* ---- Fix: Remove "Quote" text from header cart button ---- */
.shoptimizer-cart .cart-contents .count::before {
    content: none !important;
}

/* ============================================================
   PHASE 1: Parts Finder Landing — Premium Design Upgrade v6.0
   ============================================================ */

/* ---- 1A. Device Type Cards — Purple accent on hover ---- */
.pf-device-type-card::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 0;
    width: 4px;
    background: linear-gradient(180deg, #4D067B, #7B2FAF);
    border-radius: 0 4px 4px 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.pf-device-type-card:hover::before {
    opacity: 1;
}

/* Icon circle: subtle purple tint at rest, glow on hover */
.pf-dt-icon {
    background: #f5edf8;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}
.pf-device-type-card:hover .pf-dt-icon {
    background: rgba(77,6,123,0.10);
    color: #4D067B;
    box-shadow: 0 0 20px rgba(77,6,123,0.12);
}

/* Arrow turns gold on hover */
.pf-device-type-card:hover .pf-dt-arrow {
    color: #FFB400;
}

/* Count chip turns purple bg + white text on hover */
.pf-device-type-card:hover .pf-dt-count {
    background: #4D067B;
    color: #fff;
}

/* Card heading turns purple on hover */
.pf-device-type-card:hover h3 {
    color: #4D067B;
    transition: color 0.3s;
}

/* ---- 1B. Category Highlights — Section heading underline + hover accents ---- */
.pf-category-highlights h2 {
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}
.pf-category-highlights h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #4D067B, #7B2FAF);
    border-radius: 2px;
}

/* Icon gets purple gradient bg on hover */
.pf-cat-highlight:hover .pf-cat-icon {
    background: linear-gradient(135deg, #4D067B, #7B2FAF);
    color: #fff;
    transition: background 0.3s, color 0.3s;
}

/* Category name turns purple on hover */
.pf-cat-highlight:hover .pf-cat-name {
    color: #4D067B;
    transition: color 0.2s;
}

/* Left border accent on hover */
.pf-cat-highlight {
    border-left: 3px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s, border-left-color 0.25s;
}
.pf-cat-highlight:hover {
    border-left-color: #4D067B;
}

/* Ensure <a> tag category cards have no underline */
a.pf-cat-highlight {
    text-decoration: none !important;
    color: inherit;
}
a.pf-cat-highlight:hover {
    text-decoration: none !important;
}

/* ---- 1C. Trust Bar — Icon circles + stronger presence ---- */
.pf-trust-item svg {
    background: #f5edf8;
    border-radius: 50%;
    padding: 8px;
    width: 38px;
    height: 38px;
    box-sizing: content-box;
}

/* Top/bottom border accent lines */
.pf-trust-bar {
    border-top: 2px solid rgba(77,6,123,0.08);
    border-bottom: 2px solid rgba(77,6,123,0.08);
}

/* Bolder text */
.pf-trust-item {
    font-weight: 700;
    color: #222;
}

/* ---- 1D. Hero Stats — Purple numbers ---- */
.pf-stat-number {
    color: #4D067B;
    text-shadow: none;
}

/* ============================================================
   PHASE 6: Parts Finder Brand Page Hero — Premium
   ============================================================ */

/* Hero heading bigger, bolder */
.pf-hero:not(.pf-hero-landing) h1 {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Badges: purple tint gradient bg, purple border on hover */
.pf-hero-badge {
    background: linear-gradient(135deg, #f5edf8, #FAF4E2);
    border: 1px solid #e8ddf0;
    transition: border-color 0.25s, background 0.25s, transform 0.2s;
}
.pf-hero-badge:hover {
    border-color: #4D067B;
    background: linear-gradient(135deg, #eddcf5, #f5edf8);
    transform: translateY(-1px);
}

/* Subtle purple radial gradient behind heading area */
.pf-hero:not(.pf-hero-landing) {
    background: linear-gradient(180deg, #FAFAF8 0%, #fff 100%);
    position: relative;
}
.pf-hero:not(.pf-hero-landing)::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 200px;
    background: radial-gradient(ellipse, rgba(77,6,123,0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ----------------------------------------------------------------
   11. PART CARD LINKS — Cards that link to WooCommerce product pages
   ---------------------------------------------------------------- */
a.pf-part-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
a.pf-part-card-link:hover {
    text-decoration: none;
    color: inherit;
}
a.pf-part-card-link:visited {
    color: inherit;
}
a.pf-part-card-link .pf-part-code,
a.pf-part-card-link:hover .pf-part-code {
    color: #4D067B;
}
a.pf-part-card-link .pf-part-name,
a.pf-part-card-link:hover .pf-part-name {
    color: #111;
}

