/* ────────────────────────────────────────────────────────
   DTP Parts — Product Catalog CSS
   Dark theme: bg #0a0a0a | cards #111 | accent #ff3b3b
   ──────────────────────────────────────────────────────── */

/* ── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body.dtp-dark {
    background: #0a0a0a !important;
    color: #e0e0e0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

/* ── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 7px; background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #2a2a2a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #444; }

/* ── Site Header ───────────────────────────────────────── */
.dtp-site-header {
    background: #111;
    border-bottom: 2px solid #ff3b3b;
    position: sticky;
    top: 0;
    z-index: 200;
}
.admin-bar .dtp-site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .dtp-site-header { top: 46px; } }

.dtp-header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.dtp-logo {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.5px;
    white-space: nowrap;
    flex-shrink: 0;
}
.dtp-logo span { color: #ff3b3b; }

.dtp-site-nav .dtp-nav-list {
    list-style: none;
    display: flex;
    gap: 6px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.dtp-site-nav .dtp-nav-list li a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 10px;
    border-radius: 5px;
    transition: color 0.18s, background 0.18s;
    white-space: nowrap;
}
.dtp-site-nav .dtp-nav-list li a:hover { color: #fff; background: #1a1a1a; }
.dtp-site-nav .dtp-nav-list li.current-menu-item a { color: #ff3b3b; }
@media (max-width: 600px) { .dtp-site-nav { display: none; } }

/* ── Breadcrumb ────────────────────────────────────────── */
.dtp-breadcrumb {
    background: #0d0d0d;
    border-bottom: 1px solid #1a1a1a;
}
.dtp-breadcrumb-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 8px 24px;
    font-size: 0.78rem;
    color: #666;
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}
.dtp-breadcrumb-inner a { color: #888; text-decoration: none; transition: color 0.15s; }
.dtp-breadcrumb-inner a:hover { color: #ff3b3b; }
.dtp-breadcrumb-sep { color: #444; }
.dtp-breadcrumb-current { color: #ccc; }

/* ── Page Wrapper (sidebar + main) ────────────────────── */
.dtp-page-wrap {
    max-width: 1400px;
    margin: 28px auto 0;
    padding: 0 24px 40px;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 28px;
    align-items: start;
}
@media (max-width: 960px) {
    .dtp-page-wrap {
        grid-template-columns: 1fr;
    }
    .dtp-sidebar { order: 2; position: static; }
    .dtp-main-content { order: 1; }
}

/* ── Sidebar ───────────────────────────────────────────── */
.dtp-sidebar {
    position: sticky;
    top: 90px;
}
.dtp-sidebar-inner {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 18px 16px;
}
.dtp-sidebar-title {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #ff3b3b;
    margin: 0 0 14px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e1e;
}

/* Category tree */
.dtp-cat-tree {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dtp-cat-tree > li { margin: 1px 0; }

.dtp-cat-parent {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 9px;
    border-radius: 6px;
    color: #ccc;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.82rem;
    transition: background 0.15s, color 0.15s;
    cursor: pointer;
}
.dtp-cat-parent:hover,
.dtp-cat-tree > li.active > .dtp-cat-parent {
    background: #1a1a1a;
    color: #ff3b3b;
}

.dtp-cat-toggle {
    display: inline-block;
    font-size: 0.6rem;
    color: #555;
    margin-left: 6px;
    transition: transform 0.2s;
    flex-shrink: 0;
    line-height: 1;
}
.dtp-cat-tree > li.open > .dtp-cat-parent .dtp-cat-toggle {
    transform: rotate(90deg);
    color: #ff3b3b;
}

.dtp-cat-children {
    list-style: none;
    padding: 3px 0 3px 10px;
    margin: 0 0 0 12px;
    border-left: 2px solid #1e1e1e;
    display: none;
}
.dtp-cat-children.open { display: block; }
.dtp-cat-children li a {
    display: block;
    padding: 5px 8px;
    border-radius: 4px;
    color: #999;
    text-decoration: none;
    font-size: 0.78rem;
    transition: color 0.15s, background 0.15s;
    line-height: 1.4;
}
.dtp-cat-children li a:hover,
.dtp-cat-children li a.current {
    color: #fff;
    background: #1a1a1a;
}
.dtp-cat-children li a.current { color: #ff3b3b; }

/* ── Archive Title ─────────────────────────────────────── */
.dtp-archive-title {
    font-size: 1.45rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 22px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #ff3b3b;
    line-height: 1.2;
}

/* ── Product Grid ──────────────────────────────────────── */
.dtp-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
@media (max-width: 1100px) {
    .dtp-product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .dtp-product-grid { grid-template-columns: 1fr; }
}

/* ── Product Card ──────────────────────────────────────── */
.dtp-product-card {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.dtp-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 59, 59, 0.14);
    border-color: #ff3b3b;
}

.dtp-card-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #161616;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    text-decoration: none;
    flex-shrink: 0;
}
.dtp-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
    transition: transform 0.3s ease;
}
.dtp-product-card:hover .dtp-card-img-wrap img {
    transform: scale(1.05);
}
.dtp-card-img-placeholder {
    width: 64px;
    height: 64px;
    color: #333;
}

.dtp-card-body {
    padding: 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dtp-card-title {
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.45;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.dtp-card-title a {
    color: #ddd;
    text-decoration: none;
    transition: color 0.18s;
}
.dtp-card-title a:hover { color: #ff3b3b; }

.dtp-card-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #ff3b3b;
    line-height: 1;
}
.dtp-card-price-na {
    font-size: 0.78rem;
    font-weight: 400;
    color: #555;
}

.dtp-btn-view {
    display: block;
    text-align: center;
    padding: 8px 12px;
    background: transparent;
    border: 1px solid #333;
    color: #bbb;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 600;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
    margin-top: auto;
}
.dtp-btn-view:hover {
    background: #ff3b3b;
    border-color: #ff3b3b;
    color: #fff;
}

/* ── Pagination ────────────────────────────────────────── */
.dtp-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid #1a1a1a;
}
.dtp-pagination a,
.dtp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 6px;
    color: #aaa;
    text-decoration: none;
    font-size: 0.82rem;
    transition: border-color 0.18s, color 0.18s, background 0.18s;
}
.dtp-pagination a:hover { border-color: #ff3b3b; color: #ff3b3b; }
.dtp-pagination .current {
    background: #ff3b3b;
    border-color: #ff3b3b;
    color: #fff;
    font-weight: 700;
}
.dtp-pagination .dots { border-color: transparent; background: transparent; cursor: default; }
.dtp-no-products { color: #666; margin-top: 40px; font-size: 0.9rem; }

/* ── Single Product Page ───────────────────────────────── */
.dtp-single-product {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 24px 0;
    display: grid;
    grid-template-columns: minmax(280px, 480px) 1fr;
    gap: 48px;
    align-items: start;
}
@media (max-width: 860px) {
    .dtp-single-product {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

.dtp-single-img-wrap {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 12px;
    padding: 28px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: sticky;
    top: 90px;
}
.dtp-single-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
@media (max-width: 860px) { .dtp-single-img-wrap { position: static; aspect-ratio: auto; } }

.dtp-single-info {}

.dtp-disclosure {
    font-size: 0.75rem;
    color: #777;
    font-style: italic;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #0d0d0d;
    border-left: 3px solid #2a2a2a;
    border-radius: 0 5px 5px 0;
    line-height: 1.5;
}

.dtp-single-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.35;
    margin: 0 0 16px 0;
}

.dtp-single-price-wrap {
    margin-bottom: 24px;
}
.dtp-single-price-label {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #777;
    margin-bottom: 4px;
}
.dtp-single-price {
    font-size: 2.4rem;
    font-weight: 900;
    color: #ff3b3b;
    line-height: 1;
}

.dtp-buy-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
}

.dtp-btn-buy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
    background: #ff3b3b;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: background 0.18s, transform 0.15s;
    box-shadow: 0 4px 20px rgba(255, 59, 59, 0.28);
}
.dtp-btn-buy:hover {
    background: #e02424;
    transform: translateY(-2px);
    color: #fff;
}

.dtp-btn-amazon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    background: #161616;
    color: #ccc;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.18s, border-color 0.18s, color 0.18s;
}
.dtp-btn-amazon:hover {
    background: #1e1a10;
    border-color: #ff9900;
    color: #ff9900;
}

.dtp-single-meta {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0;
}
.dtp-single-meta-row {
    display: flex;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid #161616;
    font-size: 0.83rem;
    line-height: 1.4;
}
.dtp-single-meta-row:last-child { border-bottom: none; }
.dtp-single-meta-label {
    color: #777;
    min-width: 75px;
    flex-shrink: 0;
    font-weight: 500;
}
.dtp-single-meta-value { color: #ddd; }
.dtp-single-meta-value a { color: #ff3b3b; text-decoration: none; }
.dtp-single-meta-value a:hover { text-decoration: underline; }

/* ── Single product content / description ──────────────── */
.dtp-single-content-section,
.dtp-related-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 24px 0;
}
.dtp-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 18px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #1e1e1e;
    letter-spacing: 0.2px;
}
.dtp-single-content {
    color: #b0b0b0;
    font-size: 0.875rem;
    line-height: 1.75;
}
/* Hide the inline image (shown in product panel) */
.dtp-single-content img { display: none !important; }
/* Hide affiliate links in content body (shown as buttons above) */
.dtp-single-content a[href*="maxpeedingrods.com"],
.dtp-single-content a[href*="amazon.com"] {
    display: none !important;
}
/* Hide the paragraph that wraps those links */
.dtp-single-content p:has(a[href*="maxpeedingrods.com"]),
.dtp-single-content p:has(a[href*="amazon.com"]),
.dtp-single-content p:has(img) {
    display: none !important;
}
/* Hide the affiliate disclosure in content (shown above) */
.dtp-single-content > p:first-child em { display: none; }
.dtp-single-content > p:first-child:empty { display: none; }
.dtp-single-content p { margin-bottom: 10px; }
.dtp-single-content strong { color: #e0e0e0; }

/* ── Related Products ──────────────────────────────────── */
.dtp-related-section { padding-bottom: 48px; }
.dtp-related-grid {
    grid-template-columns: repeat(4, 1fr) !important;
}
@media (max-width: 1000px) {
    .dtp-related-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 500px) {
    .dtp-related-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── Sort Bar ──────────────────────────────────────────── */
.dtp-sort-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.dtp-sort-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #555;
    flex-shrink: 0;
}
.dtp-sort-options {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.dtp-sort-btn {
    display: inline-block;
    padding: 5px 13px;
    font-size: 0.78rem;
    font-weight: 500;
    color: #888;
    background: transparent;
    border: 1px solid #2a2a2a;
    border-radius: 5px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.dtp-sort-btn:hover {
    color: #ddd;
    border-color: #444;
    background: #1a1a1a;
}
.dtp-sort-btn.active {
    color: #fff;
    background: #ff3b3b;
    border-color: #ff3b3b;
    font-weight: 600;
}

/* ── Price Filter ──────────────────────────────────────── */
.dtp-filter-section {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #1e1e1e;
}
.dtp-filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dtp-filter-list li { margin: 1px 0; }
.dtp-filter-link {
    display: block;
    padding: 6px 9px;
    border-radius: 5px;
    color: #999;
    text-decoration: none;
    font-size: 0.80rem;
    transition: color 0.15s, background 0.15s;
    line-height: 1.4;
}
.dtp-filter-link:hover { color: #fff; background: #1a1a1a; }
.dtp-filter-link.active {
    color: #ff3b3b;
    background: #1a1a1a;
    font-weight: 600;
}
.dtp-filter-clear {
    display: block;
    margin-top: 8px;
    padding: 4px 9px;
    font-size: 0.72rem;
    color: #555;
    text-decoration: none;
    transition: color 0.15s;
}
.dtp-filter-clear:hover { color: #ff3b3b; }

/* ── Search Bar ────────────────────────────────────────── */
.dtp-search-bar { margin-bottom: 18px; }
.dtp-search-wrap {
    display: flex;
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.2s;
}
.dtp-search-wrap:focus-within { border-color: #ff3b3b; }
.dtp-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #ddd;
    font-size: 0.9rem;
    padding: 12px 16px;
    min-width: 0;
}
.dtp-search-input::placeholder { color: #555; }
.dtp-search-submit {
    background: transparent;
    border: none;
    border-left: 1px solid #1e1e1e;
    color: #666;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.15s, background 0.15s;
}
.dtp-search-submit:hover { color: #ff3b3b; background: #1a1a1a; }
.dtp-search-count {
    font-size: 0.78rem;
    color: #666;
    margin: -14px 0 18px;
}

/* ── Product Specifications Table ──────────────────────── */
.dtp-specs-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 36px 24px 0;
}
.dtp-specs-table {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: #1a1a1a;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    max-width: 820px;
}
@media (max-width: 600px) {
    .dtp-specs-table { grid-template-columns: 1fr; }
}
.dtp-specs-row {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 16px;
    background: #111;
}
.dtp-specs-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #666;
}
.dtp-specs-value {
    font-size: 0.9rem;
    color: #ddd;
    font-weight: 500;
    line-height: 1.4;
}
.dtp-specs-value a { color: #ff3b3b; text-decoration: none; }
.dtp-specs-value a:hover { text-decoration: underline; }

/* ── Price Comparison Box ──────────────────────────────── */
.dtp-compare-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}
@media (max-width: 520px) {
    .dtp-compare-box { grid-template-columns: 1fr; }
}

.dtp-compare-col {
    background: #111;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Maxpeedingrods — primary / highlighted */
.dtp-compare-primary {
    border-color: #ff3b3b;
    background: #130a0a;
    box-shadow: 0 0 0 1px #ff3b3b, 0 6px 24px rgba(255, 59, 59, 0.1);
}

.dtp-compare-badge {
    display: inline-block;
    background: #ff3b3b;
    color: #fff;
    font-size: 0.60rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    line-height: 1.6;
}

.dtp-compare-retailer-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-top: 2px;
}
.dtp-compare-secondary .dtp-compare-retailer-name { color: #bbb; }

/* Price row */
.dtp-compare-price-val {
    font-size: 1.7rem;
    font-weight: 900;
    color: #ff3b3b;
    line-height: 1;
}
.dtp-compare-price-val del {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
    margin-right: 6px;
    text-decoration: line-through;
}
.dtp-compare-price-check {
    font-size: 0.88rem;
    font-weight: 500;
    color: #666;
    line-height: 1.4;
}

/* Feature bullets */
.dtp-compare-perks {
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.dtp-compare-perks li {
    font-size: 0.75rem;
    color: #888;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    line-height: 1.4;
}
.dtp-compare-perks li::before {
    content: '✓';
    font-weight: 800;
    font-size: 0.68rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.dtp-compare-primary .dtp-compare-perks li::before { color: #ff3b3b; }
.dtp-compare-secondary .dtp-compare-perks li::before { color: #ff9900; }

/* CTA buttons */
.dtp-compare-cta {
    display: block;
    text-align: center;
    padding: 11px 14px;
    border-radius: 7px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.18s, transform 0.15s, border-color 0.18s, color 0.18s;
    margin-top: auto;
}
.dtp-compare-cta:hover { transform: translateY(-2px); }

.dtp-compare-cta-primary {
    background: #ff3b3b;
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 59, 59, 0.28);
}
.dtp-compare-cta-primary:hover { background: #e02424; color: #fff; }

.dtp-compare-cta-secondary {
    background: #161616;
    border: 1px solid #2a2a2a;
    color: #bbb;
}
.dtp-compare-cta-secondary:hover {
    background: #1e1a10;
    border-color: #ff9900;
    color: #ff9900;
}

/* ── Site Footer ───────────────────────────────────────── */
.dtp-site-footer {
    background: #0a0a0a;
    border-top: 1px solid #161616;
    padding: 22px 24px;
    text-align: center;
    color: #444;
    font-size: 0.75rem;
    line-height: 1.6;
}
.dtp-site-footer a { color: #666; text-decoration: none; }
.dtp-site-footer a:hover { color: #ff3b3b; }
