/* WooCommerce Product PDF Library */
.wpp-pdf-library {
    max-width: 1200px;
    margin: 0 auto;
}

/* Search bar */
.wpp-pdf-search {
    margin-bottom: 30px;
}
.wpp-pdf-search-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}
.wpp-pdf-search-input {
    flex: 1;
    min-width: 200px;
    padding: 10px 16px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
}
.wpp-pdf-search-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.wpp-pdf-cat-select {
    padding: 10px 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    min-width: 180px;
    background: #fff;
}
.wpp-pdf-search-btn {
    padding: 10px 24px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.wpp-pdf-search-btn:hover {
    background: #1d4ed8;
}
.wpp-pdf-clear-btn {
    padding: 10px 18px;
    color: #6b7280;
    text-decoration: none;
    font-size: 14px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s;
}
.wpp-pdf-clear-btn:hover {
    background: #f3f4f6;
    color: #374151;
}
.wpp-pdf-results-count {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Grid */
.wpp-pdf-grid {
    display: grid;
    gap: 20px;
}
.wpp-pdf-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wpp-pdf-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wpp-pdf-cols-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .wpp-pdf-cols-4,
    .wpp-pdf-cols-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 576px) {
    .wpp-pdf-cols-4,
    .wpp-pdf-cols-3,
    .wpp-pdf-cols-2 { grid-template-columns: 1fr; }
    .wpp-pdf-search-row { flex-direction: column; }
    .wpp-pdf-search-input,
    .wpp-pdf-cat-select { width: 100%; }
}

/* Cards */
.wpp-pdf-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.wpp-pdf-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.wpp-pdf-card-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
}
.wpp-pdf-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}
.wpp-pdf-card-body {
    padding: 14px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wpp-pdf-card-title {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}
.wpp-pdf-card-title a {
    color: #111827;
    text-decoration: none;
}
.wpp-pdf-card-title a:hover {
    color: #2563eb;
}
.wpp-pdf-card-sku {
    font-size: 12px;
    color: #9ca3af;
    font-family: monospace;
}
.wpp-pdf-card-cat {
    font-size: 12px;
    color: #6b7280;
}
.wpp-pdf-card-cat a {
    color: #6b7280;
    text-decoration: none;
}
.wpp-pdf-card-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    padding: 8px 14px;
    background: #dc2626;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    transition: background 0.2s;
    align-self: flex-start;
}
.wpp-pdf-card-download:hover {
    background: #b91c1c;
    color: #fff;
}
.wpp-pdf-card-download svg {
    flex-shrink: 0;
}

/* Pagination */
.wpp-pdf-pagination {
    margin-top: 30px;
    text-align: center;
}
.wpp-pdf-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
    transition: all 0.2s;
}
.wpp-pdf-pagination .page-numbers.current {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.wpp-pdf-pagination .page-numbers:hover:not(.current) {
    background: #f3f4f6;
}

/* No results */
.wpp-pdf-no-results {
    text-align: center;
    padding: 60px 20px;
    color: #9ca3af;
    font-size: 16px;
}
