.pc-catalog-container {
    font-family: sans-serif;
    position: relative;
    overflow: hidden;
}

/* --- MAIN CATEGORIES PANELS --- */
.pc-main-cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pc-cat-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pc-cat-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.pc-cat-panel.active {
    border-color: #183A29;
}

.pc-cat-selected-badge {
    position: absolute;
    top: 0;
    right: 20px;
    background: rgba(255,255,255,0.2);
    color: inherit;
    font-size: 10px;
    font-weight: bold;
    padding: 4px 10px;
    border-radius: 0 0 8px 8px;
    letter-spacing: 1px;
}
.pc-cat-panel.active .pc-cat-selected-badge {
    background: rgba(0,0,0,0.15);
}

.pc-cat-panel-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.pc-cat-panel-img {
    max-width: 80%;
    height: 120px;
    object-fit: contain;
    margin: 15px auto;
    display: block;
}

.pc-cat-panel-subtitle {
    font-size: 13px;
    opacity: 0.8;
}

.pc-active-cat-title-wrap {
    margin-bottom: 20px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}
.pc-active-cat-title {
    font-size: 16px;
    color: #333;
    margin: 0;
}
.pc-active-cat-title span {
    color: #183A29;
}

/* --- TOP BAR & FILTERS --- */
.pc-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 8px;
}

.pc-toggle-filters {
    padding: 10px 20px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.pc-sort-select {
    padding: 10px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
}

.pc-main-layout {
    display: flex;
    transition: 0.3s;
}

.pc-sidebar-filters {
    width: 0;
    opacity: 0;
    overflow: hidden;
    transition: 0.3s;
    background: #f9f9f9;
    border-radius: 8px;
    padding: 0;
}

.pc-sidebar-filters.active {
    width: 250px;
    opacity: 1;
    padding: 20px;
    margin-right: 20px;
}

.pc-sidebar-filters h4 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 15px;
    color: #333;
    text-transform: uppercase;
}

.pc-categories-list label, .pc-tags-list label {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    cursor: pointer;
}
.pc-cb-text {
    margin-left: 8px;
}

.pc-products-area {
    flex: 1;
}

/* --- PRODUCT CARDS --- */
.pc-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.pc-product-card {
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.pc-product-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
}

.pc-card-img-wrap {
    padding: 20px;
    background: #fdfdfd;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
}

.pc-card-main-img {
    width: 100%;
    height: 180px;
    object-fit: contain; 
}

.pc-no-img {
    height: 180px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
}

.pc-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.pc-card-content h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #222;
    line-height: 1.3;
}

.pc-card-desc {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
    line-height: 1.4;
}

.pc-card-specs-preview {
    font-size: 11px;
    color: #555;
    margin-bottom: 15px;
}
.pc-card-specs-preview div {
    margin-bottom: 3px;
}
.pc-card-specs-preview span {
    font-weight: bold;
    color: #333;
}

.pc-card-bottom {
    margin-top: auto;
}

.pc-qty-area {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-qty-label {
    font-size: 12px;
    color: #333;
}

.pc-qty-selector {
    display: flex;
    align-items: center;
    background: #f1f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.pc-qty-btn {
    background: none;
    border: none;
    width: 25px;
    height: 25px;
    cursor: pointer;
    font-size: 16px;
    color: #555;
}
.pc-qty-btn:hover {
    background: #e2e6e9;
}

.pc-qty-input {
    width: 30px;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 13px;
    -moz-appearance: textfield;
}
.pc-qty-input::-webkit-outer-spin-button,
.pc-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pc-price-btn-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pc-price {
    font-weight: bold;
    font-size: 1.3em;
    color: #183A29;
}

.pc-btn-cotizar {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 13px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: 0.3s;
    border: 1px solid #eee;
}

.pc-btn-cotizar:hover {
    opacity: 0.8;
}

.pc-no-results {
    padding: 40px;
    text-align: center;
    color: #666;
    background: #f9f9f9;
    border-radius: 8px;
    grid-column: 1 / -1;
}

/* --- PAGINATION --- */
.pc-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pc-pagination button {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.pc-pagination button.active {
    border: none;
}

/* Modal UI Redesign - Wider & Less Scroll */
.pc-modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    z-index: 999999;
    align-items: center;
    justify-content: center;
}

.pc-modal-overlay.active {
    display: flex;
}

.pc-modal-content {
    background: #ffffff;
    width: 95%;
    max-width: 1300px; 
    max-height: 90vh; 
    border-radius: 12px;
    position: relative;
    overflow-y: auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    padding: 0;
}

.pc-modal-close {
    position: absolute;
    top: 15px; 
    right: 20px;
    font-size: 30px;
    font-family: sans-serif;
    color: #000;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
    line-height: 1;
}

.pc-modal-close:hover {
    color: #555;
}

.pc-modal-layout {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

/* Columna Izquierda */
.pc-modal-col-left {
    flex: 1 1 45%;
    padding: 30px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    border-right: 1px solid #eee;
}

.pc-brand-logo-wrap {
    text-align: center;
    margin-bottom: 10px;
}
.pc-brand-logo-wrap img {
    max-width: 150px;
    max-height: 60px;
    object-fit: contain;
}

.pc-modal-main-img-wrap {
    position: relative;
    background: transparent;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    min-height: 250px; 
}

.pc-modal-main-img {
    max-width: 100%;
    max-height: 350px; 
    object-fit: contain;
    transition: src 0.3s ease;
}

/* Image Nav Arrows */
.pc-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: 0.2s;
    z-index: 5;
}
.pc-nav-btn:hover {
    background: #fff;
    color: #183A29;
}
.pc-nav-prev { left: -10px; }
.pc-nav-next { right: -10px; }

.pc-status-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #e27d60; 
    color: white;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
}

.pc-specs-quickbox {
    background: #EDF8F3; 
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.pc-spec-row-left {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    font-size: 13px;
    color: #333;
}
.pc-spec-row-left:last-child { margin-bottom: 0; }

.pc-spec-icon-left {
    margin-right: 8px;
    color: #183A29;
    font-size: 15px;
}
.pc-spec-label-left {
    font-weight: bold;
    margin-right: 5px;
    min-width: 75px;
}
.pc-spec-val-left {
    color: #555;
}

.pc-modal-thumbs-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    justify-content: center;
}

.pc-modal-thumb {
    width: 70px; 
    height: 70px;
    border: 2px solid #eee;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.2s;
}
.pc-modal-thumb:hover, .pc-modal-thumb.active {
    border-color: #183A29;
}
.pc-modal-thumb img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

/* Columna Derecha */
.pc-modal-col-right {
    flex: 1 1 55%;
    padding: 30px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.pc-modal-header {
    background: #EDF8F3; 
    padding: 8px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    font-size: 13px;
    color: #333;
    letter-spacing: 0.5px;
    border-radius: 6px;
}

.pc-modal-header-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pc-global-logo {
    max-height: 20px;
    width: auto;
    object-fit: contain;
}

.pc-modal-logo {
    color: #183A29;
    font-size: 14px;
}
.pc-modal-header-title {
    font-weight: bold;
}

.pc-modal-h2 {
    font-size: 28px; 
    font-weight: bold;
    color: #000;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.pc-modal-meta {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
}
.pc-modal-meta-item {
    background: #EDF8F3;
    padding: 4px 10px;
    border-radius: 4px;
}

.pc-pricing-box {
    background: #EDF8F3; 
    border-radius: 10px;
    padding: 15px 25px;
    margin-bottom: 15px;
}

.pc-price-list {
    color: #555;
    font-size: 13px;
    margin-bottom: 5px;
}
.pc-price-list strong {
    font-size: 16px;
    color: #000;
}

.pc-price-special-label-top {
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.pc-price-special-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.pc-price-special {
    font-size: 34px; 
    font-weight: bold;
    color: #000;
}

.pc-promo-badge {
    background: #c7a450; 
    color: #fff;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.pc-financing {
    color: #333;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pc-text-blocks {
    flex-grow: 1;
}

.pc-text-section h4 {
    font-size: 14px;
    color: #000;
    margin: 0 0 5px 0;
    font-weight: bold;
    text-transform: uppercase;
}
.pc-text-section p {
    font-size: 13px;
    color: #444;
    line-height: 1.4;
    margin: 0;
}

.pc-divider {
    border: 0;
    height: 1px;
    background: #eee;
    margin: 15px 0;
}

.pc-right-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 10px;
}

.pc-spec-grid-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pc-spec-icon-right {
    color: #183A29;
    font-size: 15px;
    margin-top: 2px;
}

.pc-spec-grid-label {
    font-size: 12px;
    font-weight: bold;
    color: #000;
}

.pc-spec-grid-val {
    font-size: 12px;
    color: #555;
}

.pc-modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.pc-modal-btn {
    flex: 1;
    text-align: center;
    padding: 14px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    transition: 0.3s;
    box-sizing: border-box;
}

.pc-modal-btn-primary {
    background: #183A29;
    color: #fff;
    border: 2px solid #183A29;
}
.pc-modal-btn-primary:hover {
    background: #152418;
}

.pc-modal-btn-secondary {
    background: transparent;
    color: #183A29;
    border: 2px solid #183A29;
}
.pc-modal-btn-secondary:hover {
    background: #EDF8F3;
}

@media (max-width: 992px) {
    .pc-modal-col-left, .pc-modal-col-right {
        flex: 1 1 100%;
        padding: 30px;
        border-right: none;
    }
    .pc-modal-col-right {
        padding-top: 0;
    }
}
