/*
 * PerfilFerros — Produto Page Components
 * Extraído de produto/index.blade.php
 */

/* ===== QUICK SEARCH SECTION ============================== */
.pf-quick-search-section {
    background: linear-gradient(135deg, #0057A6 0%, #00A3E0 100%);
    padding: 44px 0;
    box-shadow: 0 6px 24px rgba(0,51,82,0.18);
}
.pf-quick-search-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 700px;
    margin: 0 auto;
}
.pf-quick-search-title {
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: clamp(18px, 2.5vw, 26px);
    font-weight: 700;
    text-align: center;
    margin: 0;
}
.pf-quick-search-form {
    display: flex;
    gap: 0;
    width: 100%;
    position: relative;
}
.pf-quick-search-input {
    flex: 1;
    min-width: 0;
    height: 50px;
    padding: 0 20px;
    background: rgba(255,255,255,0.15);
    border: 2px solid rgba(255,255,255,0.30);
    border-right: none;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    outline: none;
    transition: background-color 0.2s, border-color 0.2s;
}
.pf-quick-search-input::placeholder { color: rgba(255,255,255,0.55); }
.pf-quick-search-input:focus {
    background: rgba(255,255,255,0.22);
    border-color: rgba(255,255,255,0.50);
}
.pf-quick-search-btn {
    flex-shrink: 0;
    height: 50px;
    padding: 0 28px;
    background: #003352;
    border: 2px solid rgba(255,255,255,0.30);
    border-left: none;
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: background-color 0.25s, box-shadow 0.25s;
    clip-path: polygon(0% 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
}
.pf-quick-search-btn:hover {
    background: #002844;
    box-shadow: 0 0 20px rgba(0,0,0,0.22);
}
.pf-quick-shortcuts {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
}
.pf-quick-shortcut-label {
    color: rgba(255,255,255,0.80);
    font-size: 12.5px;
    font-weight: 500;
}
.pf-quick-shortcut-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}
.pf-quick-shortcut {
    padding: 7px 16px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.90);
    font-size: 12.5px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 24px;
    transition: background-color 0.2s, color 0.2s;
    white-space: nowrap;
}
.pf-quick-shortcut:hover {
    background: rgba(255,255,255,0.22);
    color: #fff;
}
@media (max-width: 640px) {
    .pf-quick-search-section { padding: 28px 0; }
    .pf-quick-search-wrapper { gap: 16px; }
    .pf-quick-search-form { flex-direction: column; }
    .pf-quick-search-input {
        border-right: 2px solid rgba(255,255,255,0.30);
        border-bottom: none;
        height: 46px;
    }
    .pf-quick-search-btn {
        border-left: 2px solid rgba(255,255,255,0.30);
        border-top: none;
        height: 46px;
        width: 100%;
        clip-path: none;
        justify-content: center;
    }
    .pf-quick-shortcut-buttons { gap: 6px; }
    .pf-quick-shortcut { font-size: 12px; padding: 6px 14px; }
}


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

/* ── page hero ──────────────────────────────────────────── */
.pf-page-hero {
    background: linear-gradient(135deg, #003352 0%, #0057A6 100%);
    border-bottom: 3px solid #00A3E0;
    padding: 32px 0;
}
.pf-page-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.pf-pg-eyebrow {
    color: #00A3E0;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 6px;
}
.pf-pg-title {
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    margin: 0;
}
.pf-pg-accent { color: #00A3E0; }
.pf-breadcrumb {
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.50);
    font-size: 12.5px;
}
.pf-breadcrumb a { color: rgba(255,255,255,0.65); text-decoration: none; }
.pf-breadcrumb a:hover { color: #00A3E0; }

/* ── main layout ────────────────────────────────────────── */
.pf-pg-main {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 28px;
    padding-top: 28px;
    padding-bottom: 60px;
    align-items: start;
}
@media (max-width: 900px) {
    .pf-pg-main { grid-template-columns: 1fr; }
    .pf-sidebar { display: none; }
}

/* ── sidebar ────────────────────────────────────────────── */
.pf-sidebar {
    position: sticky;
    top: 120px;
}
.pf-sb-section {
    background: #fff;
    border: 1px solid #e8edf2;
    border-top: 3px solid var(--pf-primary);
    padding: 16px;
    margin-bottom: 16px;
}
.pf-sb-heading {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--pf-secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef1f5;
}

/* search */
.pf-sb-search-wrap { margin-bottom: 16px; }
.pf-sb-search-form { position: relative; display: flex; }
.pf-sb-search-input {
    flex: 1;
    height: 38px;
    padding: 0 42px 0 12px;
    border: 1px solid #d1dae3;
    border-right: none;
    font-family: 'Prompt', sans-serif;
    font-size: 13px;
    outline: none;
    color: #333;
    background: #fff;
}
.pf-sb-search-input:focus { border-color: var(--pf-tertiary); }
.pf-sb-search-btn {
    width: 40px;
    background: var(--pf-primary);
    border: none;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    clip-path: polygon(6px 0%, 100% 0%, 100% 100%, 0% 100%);
    transition: background-color 0.2s;
}
.pf-sb-search-btn:hover { background-color: var(--pf-tertiary); }

/* autocomplete sidebar dropdown */
.pf-sb-ac-dropdown {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border: 1px solid #d1dae3;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    z-index: 500;
    max-height: 260px;
    overflow-y: auto;
}
.pf-sb-ac-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    text-decoration: none;
    color: #333;
    font-size: 13px;
    border-bottom: 1px solid #f0f4f8;
    transition: background-color 0.15s;
}
.pf-sb-ac-item:hover { background: #f0f7ff; color: var(--pf-primary); }
.pf-sb-ac-item img { width: 36px; height: 36px; object-fit: cover; flex-shrink: 0; }

/* category tree */
.pf-cat-tree {
    list-style: none;
    margin: 0; padding: 0;
}
.pf-cat-tree > li {
    border-bottom: 1px solid #f0f4f8;
}
.pf-cat-tree > li > a,
.pf-cat-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 4px;
    color: #4a5568;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s;
    cursor: pointer;
}
.pf-cat-toggle { justify-content: space-between; }
.pf-cat-toggle a {
    color: inherit; text-decoration: none; flex: 1;
    display: flex; align-items: center; gap: 7px;
}
.pf-cat-toggle:hover, .pf-cat-tree > li > a:hover { color: var(--pf-primary); }
.pf-cat-chevron { flex-shrink: 0; transition: transform 0.25s; }
.pf-cat-open > .pf-cat-toggle .pf-cat-chevron { transform: rotate(180deg); }
.pf-cat-active > a, .pf-cat-active-link { color: var(--pf-primary) !important; font-weight: 600; }

.pf-subcat-list {
    list-style: none; margin: 0; padding: 0;
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease;
}
.pf-subcat-open { max-height: 600px; }
.pf-subcat-list li a {
    display: block;
    padding: 7px 4px 7px 20px;
    color: #6b7a8d;
    font-size: 12.5px;
    text-decoration: none;
    border-bottom: 1px solid #f5f8fb;
    transition: color 0.15s, padding-left 0.15s;
}
.pf-subcat-list li a:hover { color: var(--pf-primary); padding-left: 26px; }

/* sidebar contact */
.pf-sb-contact { background: linear-gradient(135deg, #003352, #0057A6); border-top-color: #00A3E0; }
.pf-sb-contact .pf-sb-heading { color: #fff; border-bottom-color: rgba(255,255,255,0.12); }
.pf-sb-contact-text { color: rgba(255,255,255,0.65); font-size: 12.5px; margin: 0 0 14px; line-height: 1.5; }
.pf-sb-contact-btn {
    display: block;
    padding: 9px 20px;
    background: #00A3E0;
    color: #fff;
    font-size: 12.5px; font-weight: 600;
    text-decoration: none;
    text-align: center;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background-color 0.2s;
}
.pf-sb-contact-btn:hover { background-color: #fff; color: var(--pf-primary); }

/* ── toolbar ────────────────────────────────────────────── */
.pf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-left: 3px solid var(--pf-primary);
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.pf-toolbar-info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pf-toolbar-count { color: #6b7a8d; font-size: 13px; }
.pf-toolbar-query { color: var(--pf-secondary); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.pf-toolbar-clear {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px;
    background: #e53e3e; color: #fff; border-radius: 0;
    text-decoration: none; font-size: 10px; flex-shrink: 0;
}
.pf-toolbar-cart-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 20px 8px 14px;
    background: var(--pf-secondary); color: #fff;
    font-size: 13px; font-weight: 500;
    text-decoration: none;
    clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
    transition: background-color 0.2s;
}
.pf-toolbar-cart-btn:hover { background-color: var(--pf-tertiary); color: #fff; }

/* ── product grid ───────────────────────────────────────── */
.pf-ec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
@media (max-width: 1279px) { .pf-ec-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { .pf-ec-grid { grid-template-columns: repeat(2, 1fr); } }

.pf-ec-card {
    background: #fff;
    border: 1px solid #e8edf2;
    display: flex;
    flex-direction: column;
    transition: border-color 0.25s, box-shadow 0.25s;
}
.pf-ec-card:hover {
    border-color: #00A3E0;
    box-shadow: 0 6px 24px rgba(0,51,82,0.10);
}

/* image */
.pf-ec-img-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #f5f8fb;
}
.pf-ec-img {
    width: 100%; height: 100%;
    object-fit: contain;
    padding: 8px;
    transition: transform 0.5s ease;
}
.pf-ec-card:hover .pf-ec-img { transform: scale(1.06); }
.pf-ec-img-overlay {
    position: absolute; inset: 0;
    background: rgba(0,51,82,0.50);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.pf-ec-card:hover .pf-ec-img-overlay { opacity: 1; }
.pf-ec-view-label {
    padding: 8px 20px;
    background: #00A3E0;
    color: #fff;
    font-size: 12.5px; font-weight: 600;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
}

/* body */
.pf-ec-body {
    padding: 12px 14px 8px;
    flex: 1;
}
.pf-ec-name {
    display: block;
    color: var(--pf-secondary);
    font-size: 13px; font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    line-height: 1.4;
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.2s;
}
.pf-ec-name:hover { color: var(--pf-primary); }
.pf-ec-code {
    display: inline-block;
    color: #00A3E0;
    font-size: 11px;
    font-weight: 500;
    background: rgba(0,163,224,0.08);
    padding: 2px 8px;
}

/* actions */
.pf-ec-actions {
    padding: 10px 14px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-top: 1px solid #f0f4f8;
}

.pf-ec-qty-wrap {
    display: flex;
    align-items: center;
    border: 1px solid #d1dae3;
    flex-shrink: 0;
}
.pf-ec-qty-btn {
    width: 26px; height: 30px;
    background: #f5f7fa;
    border: none; cursor: pointer;
    font-size: 16px; font-weight: 500;
    color: #4a5568;
    transition: background-color 0.15s;
}
.pf-ec-qty-btn:hover { background: #e8edf2; }
.pf-ec-qty {
    width: 40px; height: 30px;
    text-align: center;
    border: none; border-left: 1px solid #d1dae3; border-right: 1px solid #d1dae3;
    font-family: 'Prompt', sans-serif;
    font-size: 13px; color: #333;
    outline: none;
}

.pf-ec-add {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 5px;
    padding: 6px 10px;
    background: var(--pf-primary); color: #fff;
    font-size: 12px; font-weight: 600;
    text-decoration: none; cursor: pointer;
    clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
    transition: background-color 0.2s, filter 0.2s;
    text-align: center;
}
.pf-ec-add:hover { background-color: var(--pf-tertiary); color: #fff; }
.pf-ec-add--added { background-color: #2d8a4e !important; }

/* guest state — login required */
.pf-ec-add--guest {
    background: #6b7a8d;
    font-size: 11px;
}
.pf-ec-add--guest:hover { background: var(--pf-primary); color: #fff; }

/* ── empty state ────────────────────────────────────────── */
.pf-empty {
    text-align: center;
    padding: 60px 20px;
    color: #6b7a8d;
    background: #fff;
    border: 1px solid #e8edf2;
}
.pf-empty svg { margin-bottom: 16px; }
.pf-empty p { font-size: 15px; margin: 0; }

/* ── pagination ─────────────────────────────────────────── */
.pf-pagination {
    margin-top: 28px;
    display: flex; justify-content: center;
}
.pf-pagination .pagination { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.pf-pagination .page-item .page-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 8px;
    background: #fff; border: 1px solid #d1dae3;
    color: var(--pf-secondary); font-size: 13px;
    text-decoration: none;
    clip-path: polygon(5px 0%, 100% 0%, calc(100% - 5px) 100%, 0% 100%);
    transition: background-color 0.15s, color 0.15s;
}
.pf-pagination .page-item.active .page-link {
    background: var(--pf-primary); border-color: var(--pf-primary); color: #fff;
}
.pf-pagination .page-item .page-link:hover {
    background: var(--pf-tertiary); border-color: var(--pf-tertiary); color: #fff;
}

/* ── buttons ────────────────────────────────────────────── */
.pf-ec-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 32px 12px 28px;
    font-size: 14px; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none;
    clip-path: polygon(14px 0%, 100% 0%, calc(100% - 14px) 100%, 0% 100%);
    transition: background-color 0.25s, filter 0.25s;
}
.pf-ec-btn--primary { background: var(--pf-primary); color: #fff; }
.pf-ec-btn--primary:hover { background: var(--pf-tertiary); color: #fff; }
.pf-ec-btn--light { background: #fff; color: var(--pf-secondary); }
.pf-ec-btn--light:hover { background: #00A3E0; color: #fff; }

/* ── CTA strip ──────────────────────────────────────────── */
.pf-cta-strip {
    background: linear-gradient(135deg, #003352, #0057A6);
    padding: 48px 0;
    border-top: 3px solid #00A3E0;
}
.pf-cta-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}
.pf-cta-strip-title {
    color: #fff;
    font-family: 'Prompt', sans-serif;
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700; margin: 0 0 8px;
}
.pf-cta-strip-desc { color: rgba(255,255,255,0.65); font-size: 14px; margin: 0; }

/* ── clients marquee ────────────────────────────────────── */
.pf-clients-strip { background: #f5f8fb; padding: 28px 0; overflow: hidden; }
.pf-marquee-track { overflow: hidden; }
.pf-marquee-belt  { display: flex; width: max-content; animation: pf-marquee 32s linear infinite; }
.pf-marquee-belt:hover { animation-play-state: paused; }
.pf-marquee-item  { flex-shrink: 0; padding: 6px 36px; display: flex; align-items: center; }
.pf-marquee-logo  { height: 44px; width: auto; object-fit: contain; filter: grayscale(1) opacity(0.5); transition: filter 0.3s; }
.pf-marquee-item:hover .pf-marquee-logo { filter: grayscale(0) opacity(1); }
@keyframes pf-marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
