/* =============================================
   Peças Compatíveis — Venax Store
   ============================================= */

.cms-pecas-compativeis .page-wrapper {
    grid-gap: 0 !important;
}
.cms-pecas-compativeis .breadcrumbs {
    display: none;
}

.pecas-compativeis-page {
    max-width  : 1200px;
    margin     : 0 auto;
    padding    : 40px 20px;
    font-family: Arial, sans-serif;
}

/* ==========================================
   HERO
   ========================================== */
.pc-hero {
    display         : flex;
    align-items     : center;
    justify-content : space-between;
    gap             : 40px;
    background      : #fff;
    border          : 1px solid #e8edf0;
    border-radius   : 16px;
    padding         : 40px;
    margin-bottom   : 48px;
    box-shadow      : 0 2px 16px rgba(0,0,0,.05);
}

.pc-hero-left {
    flex : 1;
}

.pc-hero-title {
    font-size     : 28px;
    font-weight   : 700;
    color         : #1a1a1a;
    line-height   : 1.3;
    margin-bottom : 12px;
}

.pc-hero-highlight {
    color : #FF7E00;
}

.pc-hero-desc {
    font-size   : 14px;
    color       : #666;
    line-height : 1.6;
    max-width   : 380px;
}

.pc-hero-right {
    flex      : 1;
    max-width : 420px;
}

.pc-steps {
    display: flex;
    flex-direction: column;
    gap: 0px;
    margin-bottom: 5px;
}

.pc-step {
    font-size: 16px;
    color: #444;
}

.pc-step strong {
    color : #FF7E00;
}

/* Select */
.pc-select-wrapper {
    position : relative;
}

.pc-select {
    width: 100%;
    padding: 0 14px;
    border: 2px solid #e0e4f0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #fff;
    appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color .2s;
    height: 40px;
}

.pc-select:focus {
    border-color : #FF7E00;
}

.pc-select-arrow {
    position       : absolute;
    right          : 14px;
    top            : 50%;
    transform      : translateY(-50%);
    pointer-events : none;
    color          : #999;
}

/* ==========================================
   LOADING
   ========================================== */
.pc-loading {
    display         : flex;
    align-items     : center;
    justify-content : center;
    gap             : 12px;
    padding         : 40px;
    color           : #666;
    font-size       : 14px;
}

.pc-spinner {
    width         : 28px;
    height        : 28px;
    border        : 3px solid #e0e4f0;
    border-top    : 3px solid #FF7E00;
    border-radius : 50%;
    animation     : pc-spin .7s linear infinite;
}

@keyframes pc-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================
   SEÇÕES
   ========================================== */
.pc-products-section,
.pc-pecas-section {
    margin-bottom : 48px;
}

.pc-section-header {
    display     : flex;
    align-items : center;
    gap         : 12px;
    margin-bottom: 8px;
}

.pc-section-title {
    font-size   : 20px;
    font-weight : 700;
    color       : #1a1a1a;
    margin      : 0;
}

.pc-selected-product-name {
    color : #FF7E00;
}

.pc-section-count {
    font-size     : 13px;
    color         : #fff;
    background    : #1237BB;
    padding       : 2px 10px;
    border-radius : 50px;
    font-weight   : 600;
}

.pc-section-hint {
    font-size     : 13px;
    color         : #999;
    margin-bottom : 20px;
}

/* ==========================================
   GRID DE PRODUTOS
   ========================================== */
.pc-products-grid {
    display               : grid;
    grid-template-columns : repeat(4, 1fr);
    gap                   : 16px;
}

/* Card produto */
.pc-products-grid .product-card .product-image-container {
    padding: 0;
}


/* Overlay "Ver peças compatíveis" */
.pc-card-overlay {
    position        : absolute;
    bottom          : 0;
    left            : 0;
    right           : 0;
    background      : rgba(255,126,0,.9);
    color           : #fff;
    text-align      : center;
    padding         : 8px;
    font-size       : 12px;
    font-weight     : 600;
    transform       : translateY(100%);
    transition      : transform .2s;
}

.pc-product-card:hover .pc-card-overlay {
    transform : translateY(0);
}

/* Botão comprar */
.pc-btn-comprar {
    display       : inline-block;
    margin-top    : 8px;
    background    : #FF7E00;
    color         : #fff;
    border-radius : 6px;
    padding       : 6px 14px;
    font-size     : 12px;
    font-weight   : 700;
    transition    : background .2s;
}

.pc-product-card:hover .pc-btn-comprar {
    background : #e06e00;
}

/* Sem peças */
.pc-no-pecas {
    text-align : center;
    padding    : 48px 20px;
    color      : #999;
}

.pc-no-pecas p {
    font-size : 15px;
    margin    : 16px 0 24px;
}

.pc-btn-contact {
    display       : inline-block;
    padding       : 12px 24px;
    background    : #1237BB;
    color         : #fff;
    border-radius : 8px;
    font-weight   : 600;
    font-size     : 14px;
    text-decoration: none;
    transition    : background .2s;
}

.pc-btn-contact:hover {
    background : #0d2a99;
}

/* Empty */
.pc-empty {
    color     : #999;
    font-size : 14px;
    padding   : 20px;
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .pc-products-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .pc-hero {
        flex-direction : column;
        padding        : 24px;
    }
    .pc-hero-right { max-width: 100%; width: 100%; }
    .pc-hero-title { font-size: 22px; }
}


/* ==========================================
   BUSCA DE PRODUTO COM DROPDOWN
   ========================================== */
.pc-product-search-wrapper {
    margin-top : 16px;
    position   : relative;
}

.pc-search-input-wrapper {
    position : relative;
}

.pc-search-input {
    padding: 0 39px 0px 14px!important;
    border: 2px solid #e0e4f0 !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    color: #333;
    outline: none;
    transition: border-color .2s;
    height:40px!important
}

.pc-search-input:focus {
    border-color : #FF7E00;
}

.pc-search-icon {
    position       : absolute;
    right          : 14px;
    top            : 50%;
    transform      : translateY(-50%);
    color          : #1237BB;
    pointer-events : none;
}

/* Dropdown */
.pc-product-dropdown {
    position      : absolute;
    top           : calc(100% + 4px);
    left          : 0;
    right         : 0;
    background    : #fff;
    border        : 1px solid #e0e4f0;
    border-radius : 10px;
    box-shadow    : 0 8px 24px rgba(0,0,0,.12);
    max-height    : 360px;
    overflow-y    : auto;
    z-index       : 100;
}

.pc-dropdown-item {
    display     : flex;
    align-items : center;
    gap         : 12px;
    padding     : 12px 16px;
    cursor      : pointer;
    border-bottom: 1px solid #f0f2f5;
    transition  : background .15s;
}

.pc-dropdown-item:last-child {
    border-bottom : none;
}

.pc-dropdown-item:hover {
    background : #f7f9ff;
}

.pc-dropdown-img {
    width         : 56px;
    height        : 56px;
    object-fit    : contain;
    border-radius : 6px;
    background    : #f5f5f5;
    flex-shrink   : 0;
    padding       : 4px;
}

.pc-dropdown-info {
    display        : flex;
    flex-direction : column;
    gap            : 2px;
    flex           : 1;
}

.pc-dropdown-sku {
    font-size : 11px;
    color     : #999;
}

.pc-dropdown-sku strong {
    color       : #1237BB;
    font-weight : 700;
}

.pc-dropdown-name {
    font-size   : 13px;
    color       : #1a1a1a;
    font-weight : 500;
    line-height : 1.3;
}

.pc-dropdown-empty {
    padding    : 20px;
    text-align : center;
    color      : #999;
    font-size  : 13px;
}

/* Scrollbar do dropdown */
.pc-product-dropdown::-webkit-scrollbar {
    width : 4px;
}
.pc-product-dropdown::-webkit-scrollbar-track {
    background    : #f0f2f5;
    border-radius : 4px;
}
.pc-product-dropdown::-webkit-scrollbar-thumb {
    background    : #ccc;
    border-radius : 4px;
}

@media (max-width: 768px) {
    .pc-dropdown-img { width: 44px; height: 44px; }
    .pc-dropdown-name { font-size: 12px; }
}

/* ==========================================
   MODAL DE VOLTAGEM
   ========================================== */
.pc-modal-overlay {
    position        : fixed;
    inset           : 0;
    background      : rgba(0,0,0,.45);
    z-index         : 1000;
    display         : flex;
    align-items     : center;
    justify-content : center;
    padding         : 20px;
}

.pc-modal {
    background    : #fff;
    border-radius : 16px;
    padding       : 32px;
    max-width     : 440px;
    width         : 100%;
    position      : relative;
    box-shadow    : 0 20px 60px rgba(0,0,0,.2);
}

.pc-modal-close {
    position    : absolute;
    top         : 16px;
    right       : 16px;
    background  : #f0f2f5;
    border      : none;
    border-radius: 50%;
    width       : 32px;
    height      : 32px;
    display     : flex;
    align-items : center;
    justify-content: center;
    cursor      : pointer;
    color       : #555;
    transition  : background .15s;
}

.pc-modal-close:hover {
    background : #e0e4f0;
}

.pc-modal-product {
    display     : flex;
    align-items : center;
    gap         : 14px;
    padding     : 16px;
    background  : #f7f9ff;
    border-radius: 10px;
    margin-bottom: 24px;
}

.pc-modal-img {
    width         : 64px;
    height        : 64px;
    object-fit    : contain;
    border-radius : 8px;
    background    : #fff;
    padding       : 4px;
    flex-shrink   : 0;
}

.pc-modal-info {
    display        : flex;
    flex-direction : column;
    gap            : 4px;
}

.pc-modal-sku {
    font-size : 11px;
    color     : #999;
}

.pc-modal-sku strong {
    color : #1237BB;
}

.pc-modal-name {
    font-size   : 13px;
    font-weight : 600;
    color       : #1a1a1a;
    line-height : 1.4;
}

.pc-modal-question {
    font-size     : 15px;
    font-weight   : 600;
    color         : #1a1a1a;
    margin-bottom : 16px;
}

.pc-modal-voltagens {
    display : flex;
    gap     : 16px;
    flex-wrap: wrap;
}

.pc-volt-option {
    display     : flex;
    align-items : center;
    gap         : 10px;
    cursor      : pointer;
}

.pc-volt-option input[type="radio"] {
    display : none;
}

.pc-volt-label {
    display       : flex;
    align-items   : center;
    gap           : 8px;
    padding       : 12px 24px;
    border        : 2px solid #e0e4f0;
    border-radius : 50px;
    font-size     : 15px;
    font-weight   : 600;
    color         : #555;
    cursor        : pointer;
    transition    : all .2s;
}

.pc-volt-label::before {
    content       : '';
    width         : 18px;
    height        : 18px;
    border        : 2px solid #ccc;
    border-radius : 50%;
    display       : block;
    flex-shrink   : 0;
    transition    : all .2s;
}

.pc-volt-option input:checked + .pc-volt-label {
    border-color : #FF7E00;
    color        : #FF7E00;
}

.pc-volt-option input:checked + .pc-volt-label::before {
    background   : #FF7E00;
    border-color : #FF7E00;
    box-shadow   : inset 0 0 0 3px #fff;
}

.pc-volt-option:hover .pc-volt-label {
    border-color : #FF7E00;
}

/* Tag de voltagem no título */
.pc-volt-tag {
    display       : inline-block;
    background    : #FF7E00;
    color         : #fff;
    font-size     : 12px;
    font-weight   : 700;
    padding       : 2px 10px;
    border-radius : 50px;
    margin-left   : 8px;
    vertical-align: middle;
}

@media (max-width: 480px) {
    .pc-modal { padding: 24px 16px; }
    .pc-modal-voltagens { flex-direction: column; }
}

/* ==========================================
   VOLTAGEM INLINE (substitui modal)
   ========================================== */
.pc-voltagem-inline {
    margin-top    : 12px;
    padding       : 16px;
    background    : #f7f9ff;
    border        : 1px solid #e0e4f0;
    border-radius : 10px;
}

.pc-volt-question {
    font-size     : 14px;
    font-weight   : 600;
    color         : #1a1a1a;
    margin-bottom : 12px;
}

.pc-volt-options {
    display  : flex;
    gap      : 12px;
    flex-wrap: wrap;
}


@media(max-width:764px) {
    .pecas-compativeis-page {
        padding: 40px 10px;
    }
    .pc-section-header {
        align-items: baseline;
        gap: 12px;
        margin-bottom: 20px;
        flex-direction: column-reverse;
    }
    .pc-section-title {
        font-size: 17px;
    }
    .pc-products-grid .swiper-slide {
        width: calc((100% - 2%) / 2);
        display: inline-block;
        margin-left: 2%;
        margin-bottom: 3%;
    }
    .pc-products-grid .swiper-slide:nth-child(2n + 1) {
        margin-left: 0;
    }
    .pc-products-grid {
        display: block;
    }
    .pc-products-grid .product-details {
        padding: 6px;
    }
    .pc-products-grid .btn-buy {
        justify-content: center;
        padding: 13px 0;
        background: #1237bb;
    }
    .pc-products-grid .btn-icon-buy {
        display: none;
    }
}