/**
 * CIMED THEME — produtos.css
 */

.bg-light-soft {
    background-color: #FAFAFA;
}

.produtos-page-wrap {
    padding: 60px 0;
}

/* Breadcrumbs */
.p-breadcrumbs {
    margin-bottom: 24px;
    font-size: 13px;
    color: #666;
}
.p-breadcrumbs ol {
    list-style: none;
    display: flex;
    gap: 8px;
    padding: 0;
    margin: 0;
}
.p-breadcrumbs a {
    color: #666;
    text-decoration: none;
}
.p-breadcrumbs a:hover {
    color: #000;
}
.p-breadcrumbs li:not(:last-child)::after {
    content: ">";
    margin-left: 8px;
    color: #ccc;
}
.p-breadcrumbs li[aria-current="page"] {
    color: #000;
    font-weight: 600;
}

/* Header */
.p-page-header {
    margin-bottom: 40px;
}
.p-page-title {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}
.p-page-desc {
    color: #666;
    max-width: 600px;
    font-size: 16px;
    line-height: 1.5;
}

/* Visite nossos sites banner */
.p-sites-banner {
    border: 1px solid #EBEBEB;
    background-color: #FFF;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 48px;
}
.p-sites-label {
    font-weight: 700;
    font-size: 18px;
}
.p-sites-logos {
    display: flex;
    gap: 24px;
    align-items: center;
}
.p-sites-logos img {
    height: 32px;
    width: auto;
    object-fit: contain;
}

/* Layout */
.p-page-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}
.p-page-sidebar {
    width: 250px;
    flex-shrink: 0;
}
.p-page-content {
    flex-grow: 1;
}

/* Sidebar Blocks */
.p-filter-block {
    background-color: #FFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}
.p-filter-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.p-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.p-filter-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-size: 14px;
    color: #444;
}
.p-filter-label input {
    display: none; /* Hide real radio, use visual state if we wanted, but sticking to pure label styling per design */
}
.p-filter-text {
    flex-grow: 1;
    margin-left: 0;
}
.p-filter-count {
    color: #888;
    font-size: 12px;
}
/* Active state for Category list item */
.p-filter-label input:checked ~ .p-filter-text,
.p-filter-label input:checked ~ .p-filter-count {
    font-weight: 700;
    color: #000;
}
.p-filter-label:has(input:checked) {
    background-color: #FFC000;
    padding: 8px 12px;
    margin: -8px -12px;
    border-radius: 6px;
}

/* Ordenar Por */
.p-order-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.p-order-btn {
    display: block;
    padding: 10px 16px;
    border: 1px solid #EEE;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
    background-color: #FFF;
}
.p-order-btn input {
    display: none;
}
.p-order-btn.active, .p-order-btn:has(input:checked) {
    background-color: #000;
    color: #FFF;
    border-color: #000;
    font-weight: 600;
}

/* Content Area */
.p-results-meta {
    margin-bottom: 24px;
    font-size: 14px;
    color: #666;
}
.active-filters {
    color: #FFC000;
    font-weight: 700;
}

/* Grid */
.p-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 1024px) {
    .p-page-layout { flex-direction: column; }
    .p-page-sidebar { width: 100%; }
    .p-sites-banner { flex-direction: column; }
}
@media (max-width: 768px) {
    .p-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
    .p-grid { grid-template-columns: 1fr; }
}

.p-grid-loader {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    color: #888;
}

/* Product Card V2 (Products Page Specific) */
.p-card {
    background: #FFF;
    border: 1px solid #EAEAEA;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: box-shadow 0.2s;
}
.p-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.p-card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #FFC000;
    color: #000;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    z-index: 2;
}
.p-card-img-wrap {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding-top: 10px;
}
.p-card-img-wrap img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}
.p-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.p-card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    flex-grow: 1;
}
.p-card-title a {
    color: #000;
    text-decoration: none;
}
.p-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #000;
    color: #FFF;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.p-card-btn:hover {
    background-color: #222;
}
.p-card-placeholder {
    width: 100%;
    height: 100%;
    background: #F9F9F9;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Paginação */
.p-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.p-page-btn {
    padding: 8px 16px;
    border: 1px solid #EAEAEA;
    background-color: #FFF;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}
.p-page-btn.active {
    background-color: #FFC000;
    border-color: #FFC000;
    font-weight: 700;
}
.p-page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.p-page-dots {
    color: #888;
    padding: 8px 4px;
}
