/*
 * PerfilFerros — Produto View Page
 * Layout 3 colunas: gallery | info | price-panel
 */

:root {
    --pf-primary:   #0057A6;
    --pf-secondary: #003352;
    --pf-tertiary:  #00A3E0;
}

/* ── containers ─────────────────────────────────────────── */
.pf-view-container {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── breadcrumb strip ───────────────────────────────────── */
.pf-view-topbar {
    background: #f5f8fb;
    border-bottom: 2px solid #e8edf2;
    padding: 12px 0;
}
.pf-view-topbar .pf-view-container {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.pf-view-breadcrumb {
    display: flex; align-items: center; gap: 8px;
    color: #6b7a8d; font-size: 12.5px; flex-wrap: wrap;
}
.pf-view-breadcrumb a { color: #6b7a8d; text-decoration: none; transition: color .2s; }
.pf-view-breadcrumb a:hover { color: var(--pf-primary); }
.pf-view-back {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--pf-primary); font-size: 12.5px; font-weight: 500;
    text-decoration: none; white-space: nowrap; transition: color .2s;
}
.pf-view-back:hover { color: var(--pf-tertiary); }

/* ── 3-column grid ──────────────────────────────────────── */
.pf-view-3col {
    display: grid;
    grid-template-columns: 38fr 36fr 26fr;
    gap: 32px;
    padding: 36px 0 52px;
    align-items: start;
}
@media (max-width: 1100px) {
    .pf-view-3col {
        grid-template-columns: 1fr 1fr;
    }
    .pf-view-col-panel {
        grid-column: 1 / -1;
    }
}
@media (max-width: 700px) {
    .pf-view-3col { grid-template-columns: 1fr; }
}

/* Col 3 sticky */
.pf-view-col-panel { position: sticky; top: 120px; }

/* ── gallery ────────────────────────────────────────────── */
.pf-gallery-main {
    border: 1px solid #e8edf2;
    background: #f8fafc;
}
.pf-gallery-cell {
    width: 100%; height: 420px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f8fafc;
    position: relative;
}
.pf-gallery-cell--empty {
    display: flex; align-items: center; justify-content: center;
}
/* gallery action buttons: zoom + share */
.pf-gallery-actions {
    position: absolute; bottom: 10px; right: 10px;
    display: flex; 
    gap: 20px;
    opacity: 0; transition: opacity .2s;
}
.pf-gallery-cell:hover .pf-gallery-actions { opacity: 1; }
.pf-gallery-action-btn {
    width: 34px; height: 34px;
    background: rgba(0,51,82,.82);
    display: flex; align-items: center; justify-content: center;
    color: #fff; text-decoration: none; cursor: pointer;
    border: none; padding: 0;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
    transition: background-color .2s;
}
.pf-gallery-action-btn:hover { background-color: var(--pf-tertiary); }
.pf-share-btn--ok { background-color: #2d8a4e !important; }
.pf-gallery-nav { margin-top: 8px; }
.pf-gallery-thumb {
    width: 76px; height: 76px;
    object-fit: contain; background: #f8fafc;
    border: 2px solid transparent;
    cursor: pointer; margin-right: 6px;
    transition: border-color .2s;
}
.pf-gallery-thumb.is-nav-selected { border-color: var(--pf-tertiary); }

@media (max-width: 600px) { .pf-gallery-cell { height: 280px; } }

/* ── info column ────────────────────────────────────────── */
.pf-view-badges {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    margin-bottom: 12px;
}
.pf-view-code {
    display: inline-block; padding: 3px 12px;
    background: rgba(0,163,224,.10); color: var(--pf-tertiary);
    font-size: 11.5px; font-weight: 500;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.pf-view-cat-tag {
    display: inline-block; padding: 3px 12px;
    background: rgba(0,87,166,.10); color: var(--pf-primary);
    font-size: 11.5px; font-weight: 500;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}
.pf-view-title {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(20px, 2.5vw, 30px);
    font-weight: 700; color: var(--pf-secondary);
    margin: 8px 0 14px; line-height: 1.25;
}
.pf-view-divider { height: 3px; width: 48px; background: var(--pf-tertiary); margin-bottom: 16px; }
.pf-view-desc-short {
    color: #4a5568; font-size: 14px; line-height: 1.7;
    margin-bottom: 20px;
}

/* variants selector */
.pf-view-variants { margin-bottom: 20px; }
.pf-variant-group {
    display: flex; align-items: center; flex-wrap: wrap;
    gap: 8px; margin-bottom: 10px;
}
.pf-variant-label {
    font-size: 12.5px; font-weight: 600; color: var(--pf-secondary);
    min-width: 80px; flex-shrink: 0;
}
.pf-variant-options { display: flex; flex-wrap: wrap; gap: 6px; }
.pf-variant-opt {
    padding: 5px 14px;
    border: 1px solid #d1dae3;
    background: #fff;
    color: #4a5568; font-size: 12.5px;
    text-decoration: none;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    transition: border-color .15s, background .15s, color .15s;
    cursor: pointer;
}
.pf-variant-opt:hover { border-color: var(--pf-tertiary); color: var(--pf-primary); }
.pf-variant-opt--active {
    background: var(--pf-primary); border-color: var(--pf-primary);
    color: #fff; font-weight: 600;
}

/* accordions */
.pf-accordion {
    border: 1px solid #e8edf2;
    border-left: 3px solid var(--pf-primary);
    margin-bottom: 10px;
}
.pf-accordion-btn {
    width: 100%; display: flex; align-items: center; justify-content: space-between;
    padding: 13px 16px;
    background: #f8fafc; border: none; cursor: pointer;
    color: var(--pf-secondary); font-family: 'Prompt', sans-serif;
    font-size: 13px; font-weight: 600; text-align: left;
    transition: background .15s;
}
.pf-accordion-btn:hover { background: #eef3f9; }
.pf-accordion-btn span { display: flex; align-items: center; gap: 7px; }
.pf-accordion-chevron { flex-shrink: 0; transition: transform .25s; }
.pf-accordion-body {
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
}
.pf-accordion-body--open { max-height: 800px; }

/* description inside accordion */
.pf-view-desc {
    padding: 16px;
    color: #4a5568; font-size: 14px; line-height: 1.75;
}
.pf-view-desc p { margin: 0 0 10px; }

/* spec table inside accordion */
.pf-spec-table { width: 100%; border-collapse: collapse; }
.pf-spec-table th, .pf-spec-table td {
    padding: 10px 16px; font-size: 13px;
    text-align: left; border-bottom: 1px solid #eef1f5;
}
.pf-spec-table th { color: #6b7a8d; font-weight: 600; width: 38%; background: #f8fafc; }
.pf-spec-table td { color: var(--pf-secondary); }
.pf-spec-even th { background: #edf1f7; }
.pf-spec-even td { background: #f5f8fb; }

/* footer links */
.pf-view-footer-links {
    display: flex; gap: 18px; margin-top: 18px;
    padding-top: 14px; border-top: 1px solid #e8edf2;
}
.pf-view-footer-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: #6b7a8d; font-size: 12.5px; text-decoration: none;
    transition: color .2s;
}
.pf-view-footer-link:hover { color: var(--pf-primary); }

/* ── price panel ────────────────────────────────────────── */
.pf-panel {
    background: #fff;
    border: 1px solid #e0e7ef;
    border-top: 4px solid var(--pf-primary);
    padding: 20px;
}
.pf-panel-divider {
    height: 1px; background: #e8edf2; margin: 18px 0;
}

/* price block */
.pf-panel-price-block { margin-bottom: 4px; }
.pf-panel-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* generic badges */
.pf-badge {
    display: inline-block; padding: 4px 14px;
    font-size: 11.5px; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}
.pf-badge--save {
    background: #e53e3e; color: #fff;
}
.pf-badge--accent {
    background: var(--pf-tertiary); color: #fff;
}

.pf-price-de {
    color: #9aa5b4; font-size: 13px; margin-bottom: 4px;
}
.pf-price-de s { text-decoration: line-through; }
.pf-price-por {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700; color: var(--pf-secondary);
    line-height: 1.1;
}

/* qty + CTA */
.pf-view-qty-row {
    display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.pf-view-qty-label { color: #6b7a8d; font-size: 13px; font-weight: 500; }
.pf-view-qty-wrap { display: flex; align-items: center; border: 1px solid #d1dae3; }
.pf-view-qty-btn {
    width: 32px; height: 36px;
    background: #fff; border: none; cursor: pointer;
    font-size: 18px; color: var(--pf-secondary);
    transition: background .15s;
}
.pf-view-qty-btn:hover { background: #e8edf2; }
.pf-view-qty-input {
    width: 52px; height: 36px; text-align: center;
    border: none; border-left: 1px solid #d1dae3; border-right: 1px solid #d1dae3;
    font-family: 'Prompt', sans-serif; font-size: 14px; color: #333; outline: none;
}

.pf-view-add-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px 28px;
    background: var(--pf-primary); color: #fff;
    font-family: 'Prompt', sans-serif; font-size: 15px; font-weight: 700;
    text-decoration: none; cursor: pointer; border: none;
    clip-path: polygon(16px 0%, 100% 0%, calc(100% - 16px) 100%, 0% 100%);
    transition: background .25s, filter .25s;
}
.pf-view-add-btn:hover {
    background: var(--pf-tertiary); color: #fff;
    filter: drop-shadow(0 0 12px rgba(0,163,224,.45));
}
.pf-view-add-btn--added { background: #2d8a4e !important; }

.pf-view-contact-link {
    display: flex; align-items: center; gap: 7px;
    margin-top: 12px; color: var(--pf-primary);
    font-size: 12.5px; text-decoration: none; transition: color .2s;
}
.pf-view-contact-link:hover { color: var(--pf-tertiary); }

/* guest state */
.pf-panel-guest { text-align: center; }
.pf-panel-guest-msg {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    color: #6b7a8d; font-size: 13px; margin-bottom: 14px;
}

/* warranty in panel */
.pf-panel-garantia {
    display: flex; align-items: flex-start; gap: 10px;
    color: var(--pf-secondary); font-size: 13px;
}
.pf-panel-garantia svg { flex-shrink: 0; margin-top: 2px; stroke: #2d8a4e; }
.pf-panel-garantia-dur { color: #6b7a8d; font-size: 12px; }

/* ── similares strip ────────────────────────────────────── */
.pf-similares-strip {
    background: #f5f8fb;
    padding: 36px 0;
    border-top: 1px solid #e8edf2;
    border-bottom: 1px solid #e8edf2;
}
.pf-similares-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px;
}
.pf-similares-title {
    font-family: 'Prompt', sans-serif;
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 700; color: var(--pf-secondary); margin: 0;
}
.pf-similares-nav { display: flex; gap: 6px; }
.pf-sim-nav-btn {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid #d1dae3;
    color: var(--pf-secondary); cursor: pointer;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    transition: background .15s, border-color .15s;
}
.pf-sim-nav-btn:hover { background: var(--pf-primary); border-color: var(--pf-primary); color: #fff; }

.pf-similares-track {
    display: flex; gap: 16px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
    padding-bottom: 4px;
}
.pf-similares-track::-webkit-scrollbar { display: none; }

.pf-sim-card {
    flex: 0 0 220px; max-width: 220px;
    background: #fff; border: 1px solid #e8edf2;
    display: flex; flex-direction: column;
    scroll-snap-align: start;
    transition: border-color .25s, box-shadow .25s;
}
.pf-sim-card:hover {
    border-color: var(--pf-tertiary);
    box-shadow: 0 4px 16px rgba(0,51,82,.10);
}

.pf-sim-img-wrap {
    position: relative; display: block; overflow: hidden;
    aspect-ratio: 1/1; background: #f8fafc;
}
.pf-sim-img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .4s; }
.pf-sim-card:hover .pf-sim-img { transform: scale(1.05); }
.pf-sim-overlay {
    position: absolute; inset: 0;
    background: rgba(0,51,82,.50);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity .25s;
}
.pf-sim-card:hover .pf-sim-overlay { opacity: 1; }
.pf-sim-view-lbl {
    padding: 6px 16px; background: var(--pf-tertiary);
    color: #fff; font-size: 12px; font-weight: 600;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
}

.pf-sim-body { padding: 10px 12px 6px; flex: 1; }
.pf-sim-name {
    display: block; color: var(--pf-secondary);
    font-size: 12.5px; font-weight: 600; text-transform: uppercase;
    text-decoration: none; line-height: 1.4; margin-bottom: 4px;
    transition: color .15s;
}
.pf-sim-name:hover { color: var(--pf-primary); }
.pf-sim-code { display: block; color: var(--pf-tertiary); font-size: 11px; }

.pf-sim-footer { padding: 8px 12px 12px; }
.pf-sim-btn {
    display: block; text-align: center;
    padding: 7px 12px;
    background: transparent; border: 1px solid var(--pf-primary);
    color: var(--pf-primary); font-size: 12px; font-weight: 600;
    text-decoration: none;
    clip-path: polygon(6px 0%, 100% 0%, calc(100% - 6px) 100%, 0% 100%);
    transition: background .2s, color .2s;
}
.pf-sim-btn:hover { background: var(--pf-primary); color: #fff; }

/* ── garantia acordeão (full section) ──────────────────── */
.pf-garantia-section {
    padding: 28px 0;
    border-bottom: 1px solid #e8edf2;
}
.pf-garantia-section .pf-accordion {
    border-left-color: #2d8a4e;
}
.pf-garantia-section .pf-accordion-btn { border-left: none; }
