/**
 * Chagas Theme - Custom CSS
 * Estilos adicionais e overrides
 */

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   CLASSES DE ANIMAÇÃO
   ============================================ */
.animate-fadeIn {
    animation: fadeIn 0.6s ease forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.6s ease forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.6s ease forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.6s ease forwards;
}

/* Delay classes */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }

/* ============================================
   UTILITÁRIOS
   ============================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.py-1 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2 { padding-top: 1rem; padding-bottom: 1rem; }
.py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-4 { padding-top: 2rem; padding-bottom: 2rem; }
.py-5 { padding-top: 3rem; padding-bottom: 3rem; }

.container {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* ============================================
   LOADING SPINNER
   ============================================ */
.loading-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(196, 30, 58, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ============================================
   HEADER SCROLLED STATE
   ============================================ */
.site-header.scrolled {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.site-header.scrolled .site-logo img {
    height: 50px;
}

/* ============================================
   MOBILE MENU ANIMATION
   ============================================ */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* ============================================
   SLIDER ENHANCEMENTS
   ============================================ */
.hero-slide .slide-content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.hero-slide.active .slide-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-slide .slide-bg {
    transform: scale(1.05);
    transition: transform 8s ease;
}

.hero-slide.active .slide-bg {
    transform: scale(1);
}

/* ============================================
   CARDS HOVER EFFECTS
   ============================================ */
.categoria-card {
    position: relative;
    overflow: hidden;
}

.categoria-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.categoria-card:hover::before {
    transform: scaleX(1);
}

.manual-card {
    position: relative;
    overflow: hidden;
}

.manual-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.manual-card:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ============================================
   LOJA CARDS HOVER
   ============================================ */
.loja-card {
    position: relative;
}

.loja-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-color);
    transition: height 0.3s ease;
}

.loja-card:hover::before {
    height: 100%;
}

/* ============================================
   PROMO CARD ENHANCEMENTS
   ============================================ */
.promocao-card {
    position: relative;
}

.promocao-card .badge-promocao {
    z-index: 2;
}

.promocao-card .produto-imagem {
    overflow: hidden;
}

.promocao-card .produto-imagem img {
    transition: transform 0.4s ease;
}

.promocao-card:hover .produto-imagem img {
    transform: scale(1.05);
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 8rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-indicator .mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255,255,255,0.6);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.scroll-indicator .wheel {
    width: 4px;
    height: 10px;
    background: rgba(255,255,255,0.8);
    border-radius: 2px;
    animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(15px);
    }
}

/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    color: var(--text-light);
}

.breadcrumbs a {
    color: var(--primary-color);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--gray-medium);
}

.breadcrumbs .current {
    color: var(--text-color);
}

/* ============================================
   SEARCH FORM
   ============================================ */
.search-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid var(--gray-medium);
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-form input[type="search"]:focus {
    border-color: var(--primary-color);
}

.search-form button {
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-form button:hover {
    background: var(--primary-dark);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination,
.posts-navigation {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 3rem 0;
}

.pagination .page-numbers,
.posts-navigation a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 1rem;
    background: var(--gray-light);
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.posts-navigation a:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* ============================================
   FORMULÁRIOS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .slider-nav,
    .slider-arrows,
    .back-to-top {
        display: none !important;
    }

    .hero-slider {
        height: auto;
        page-break-after: always;
    }

    .hero-slide {
        position: static;
        height: auto;
        opacity: 1;
        visibility: visible;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}

/* ============================================
   TEMPLATE HISTÓRIA – HERO BANNER & CONTENT
   ============================================ */




/* Content card */
.historia-content {
    padding: 0 0 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.historia-content .section-title {
    display: none;
}

.historia-content-card {
    background: #fff;
    padding: 50px 60px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.historia-text {
    display: block;
    margin-bottom: 0;
}

.historia-text p,
.historia-text .historia-col p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.9;
    text-align: justify;
    margin-bottom: 1.2rem;
}

.historia-text img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .historia-content-card {
        padding: 30px 25px;
    }

    .historia-text {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ============================================
   TEMPLATE MÁQUINAS E FERRAMENTAS
   ============================================ */




.maquinas-content-wrapper {
    width: 100%;
    margin: 0 auto;
    padding: 0; /* Remove padding - cards go edge to edge like hero */
}

.section-title-container {
    text-align: center;
    padding: 50px 0;
    background-color: transparent;
}

.page-main-title {
    font-size: 2rem;
    color: #555;
    letter-spacing: 2px;
    margin: 0;
    font-weight: 700;
    text-transform: uppercase;
}

.maquinas-price-notice {
    margin: 32px 20px 0;
    padding: 16px 20px;
    background: #fff;
    border-left: 4px solid #1a7f45;
    color: #555;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
}

.maquinas-price-notice p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Pesquisa Máquinas */
.maquinas-search-section {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px;
    padding-top: 20px;
}

.maquinas-search-form {
    width: 100%;
}

.maquinas-search-wrapper {
    display: flex;
    border: 2px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.maquinas-search-wrapper:focus-within {
    border-color: #1a7f45;
}

.maquinas-search-input {
    flex: 1;
    padding: 12px 16px;
    border: none;
    outline: none;
    font-size: 0.95rem;
    font-family: inherit;
    color: #333;
    background: #fff;
}

.maquinas-search-input::placeholder {
    color: #999;
}

.maquinas-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    background-color: #1a7f45;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.maquinas-search-btn:hover {
    background-color: #155e34;
}

.categorias-section {
    padding-bottom: 0;
}

.categorias-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    background-color: transparent;
    gap: 18px; /* Space between cards (grey gutters) */
    border: none;
}

@media (min-width: 576px) {
    .categorias-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
    .categorias-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .categorias-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.categoria-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 22px 10px 34px;
    background-color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 240px;
    min-width: 0;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    box-shadow: none;
}

.categoria-card::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #1a7f45;
    z-index: 10;
    pointer-events: none;
}

.categoria-card:hover::after {
    border-bottom-color: #fff;
}

.categoria-card:hover {
    background-color: #1a7f45;
    border-color: #1a7f45;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.cat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.cat-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.cat-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto; /* Push to bottom if needed, but flex column handles it */
}

.cat-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.categoria-card:hover .cat-label,
.categoria-card:hover .cat-name {
    color: #fff;
}

.maquinas-intro-search {
    background-color: transparent;
    padding: 40px 0 60px;
    text-align: center;
    margin-top: 30px; /* Space from grid triangle */
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 15px;
}

.intro-text {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 25px;
    line-height: 1.5;
}

.search-wrapper {
    display: inline-flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    background: #fff;
}

.search-field {
    flex: 1;
    border: none;
    padding: 0 15px;
    height: 40px;
    font-size: 1rem;
    outline: none;
    color: #555;
}

.search-submit {
    background-color: #1a7f45;
    border: none;
    width: 45px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
    padding: 0;
}

.search-submit:hover {
    background-color: #145e33;
}

/* ============================================
   PÁGINA DE CATEGORIA DE PRODUTO (LISTA)
   ============================================ */

.page-product-cat {
    background: #f5f5f5;
    min-height: 60vh;
}

/* Header simples */
.product-cat-page-header {
    background: linear-gradient(180deg, #ffffff 0%, #f0f4ef 100%);
    border-bottom: 1px solid #dce6dd;
}

.product-cat-page-header__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 55px 20px 30px;
}

.product-cat-page-header__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #1a7f45;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.product-cat-page-header h1 {
    color: #202020;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.product-cat-page-header p {
    max-width: 720px;
    color: #5f6b61;
    margin: 10px 0 0;
    font-size: .98rem;
    line-height: 1.6;
}

/* Inner container */
.product-cat-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Breadcrumbs */
.product-cat-breadcrumbs {
    padding: 14px 0;
    font-size: .85rem;
    color: #777;
    border-bottom: 1px solid #e0e0e0;
}

.product-cat-breadcrumbs a {
    color: #1a7f45;
    text-decoration: none;
}

.product-cat-breadcrumbs a:hover {
    text-decoration: underline;
}

.product-cat-breadcrumbs .bc-sep {
    margin: 0 6px;
    color: #bbb;
}

/* Toolbar: search + count */
.product-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px 0 24px;
}

.product-list-search-wrap {
    flex: 1;
    max-width: 480px;
}

.product-list-search-wrap .search-wrapper {
    display: flex;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
    border: 1px solid #e0e0e0;
}

.product-list-search-wrap .search-field {
    flex: 1;
    border: none;
    padding: 12px 16px;
    font-size: .95rem;
    outline: none;
    background: #fff;
    min-width: 0;
}

.product-list-search-wrap .search-field:focus {
    box-shadow: inset 0 0 0 2px #1a7f45;
}

.product-list-search-wrap .search-submit {
    background: #1a7f45;
    border: none;
    padding: 0 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color .25s;
}

.product-list-search-wrap .search-submit:hover {
    background: #145e33;
}

.product-list-count {
    font-size: .85rem;
    color: #777;
    white-space: nowrap;
    font-weight: 500;
}

/* Sort + Print controls */
.product-list-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.product-list-sort {
    appearance: none;
    -webkit-appearance: none;
    background-color: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 9px 32px 9px 14px;
    font-size: .85rem;
    color: #333;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.product-list-sort:focus {
    outline: none;
    border-color: #1a7f45;
    box-shadow: 0 0 0 3px rgba(26,127,69,.15);
}

.product-list-print-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    padding: 9px 16px;
    font-size: .85rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.product-list-print-btn:hover {
    background: #1a7f45;
    border-color: #1a7f45;
    color: #fff;
}

.product-list-print-btn:hover svg path {
    stroke: #fff;
}

/* ---- Print styles ---- */
@page {
    margin: 1.5cm 1cm 2.5cm 1cm;
}

@media print {
    .site-header,
    .site-footer,
    .product-cat-breadcrumbs,
    .product-list-toolbar,
    .product-list-pagination,
    .product-list-action {
        display: none !important;
    }

    body,
    .page-product-cat,
    .product-cat-inner {
        background: #fff !important;
        color: #000 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .product-cat-page-header {
        background: none !important;
        padding: 16px 0 !important;
        border-bottom: 2px solid #000;
        margin-bottom: 16px;
    }

    .product-cat-page-header h1 {
        color: #000 !important;
        font-size: 18pt !important;
    }

    .product-cat-page-header__eyebrow,
    .product-cat-page-header p {
        color: #444 !important;
    }

    .product-list-header {
        border-bottom-color: #000;
    }

    .product-list-item {
        page-break-inside: avoid;
        break-inside: avoid;
        border-bottom-color: #ccc !important;
    }

    .product-list-item:hover {
        background: #fff !important;
    }

    .product-list-title {
        color: #000 !important;
    }

    .product-list-price {
        color: #000 !important;
    }

    .product-list-price .amount {
        color: #000 !important;
    }

    .product-list-link {
        text-decoration: none !important;
        color: #000 !important;
    }

    .product-list-thumb {
        width: 48px !important;
        height: 48px !important;
    }

    .product-list-container {
        padding-bottom: 60px !important;
    }
}

/* List header (column titles) */
.product-list-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 8px 20px;
    font-size: .75rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 4px;
}

.plh-thumb { width: 80px; flex-shrink: 0; }
.plh-name  { flex: 1; }
.plh-price { width: 100px; text-align: right; flex-shrink: 0; }
.plh-action { width: 130px; flex-shrink: 0; }

/* Product list */
.product-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-list-item {
    background: #fff;
    border-bottom: 1px solid #eee;
    transition: background-color .15s;
}

.product-list-item:first-child {
    border-radius: 6px 6px 0 0;
}

.product-list-item:last-child {
    border-radius: 0 0 6px 6px;
    border-bottom: none;
}

.product-list-item:hover {
    background-color: #f0faf4;
}

.product-list-link {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    text-decoration: none;
    color: inherit;
}

/* Thumbnail */
.product-list-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #eee;
}

.product-list-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info */
.product-list-info {
    flex: 1;
    min-width: 0;
}

.product-list-title {
    font-size: .95rem;
    font-weight: 600;
    color: #222;
    margin: 0 0 3px;
    line-height: 1.3;
}

.product-list-sku {
    font-size: .78rem;
    color: #999;
    display: block;
}

.product-list-umb {
    font-size: .78rem;
    color: #777;
    display: inline-block;
    background: #f0f0f0;
    border-radius: 3px;
    padding: 1px 5px;
    margin-top: 2px;
}

.product-cat-nota-precos {
    font-size: .8rem;
    color: #666;
    border-top: 1px solid #e0e0e0;
    margin-top: 24px;
    padding-top: 12px;
    line-height: 1.5;
}

.product-list-desc {
    font-size: .8rem;
    color: #777;
    margin: 4px 0 0;
    line-height: 1.35;
}

/* Price */
.product-list-price {
    flex-shrink: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a7f45;
    white-space: nowrap;
    min-width: 100px;
    text-align: right;
}

.product-list-price .amount {
    color: #1a7f45;
}

.product-list-price del .amount {
    color: #aaa;
    font-weight: 400;
}

.product-list-price ins {
    text-decoration: none;
}

/* CTA button */
.product-list-action {
    flex-shrink: 0;
    width: 130px;
    text-align: right;
}

.product-list-btn {
    display: inline-block;
    background: #1a7f45;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background-color .2s;
}

.product-list-item:hover .product-list-btn {
    background: #145e33;
}

/* No results / empty */
.product-list-no-results,
.product-list-empty {
    text-align: center;
    padding: 40px 20px;
    color: #777;
    background: #fff;
    border-radius: 6px;
    margin-top: 12px;
    font-size: .95rem;
}

/* Pagination */
.product-list-pagination {
    margin-top: 32px;
    display: flex;
    justify-content: center;
}

.product-list-pagination ul {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: .9rem;
    transition: background .2s, color .2s, border-color .2s;
}

.page-numbers.current{
    background: #1a7f45;
    color: #fff;
    border-color: #1a7f45;
}

/* ===== Responsivo - Categoria Produto ===== */
@media (max-width: 768px) {
    .product-cat-page-header__inner {
        padding: 32px 20px 24px;
    }

    .product-list-header {
        display: none;
    }

    .product-list-link {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }

    .product-list-thumb {
        width: 60px;
        height: 60px;
    }

    .product-list-price {
        text-align: left;
        min-width: unset;
    }

    .product-list-action {
        width: 100%;
        text-align: center;
    }

    .product-list-btn {
        display: block;
        text-align: center;
    }

    .product-list-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .product-list-search-wrap {
        max-width: none;
    }

    .product-list-count {
        text-align: right;
    }
}

@media (max-width: 480px) {
    .product-list-title {
        font-size: .85rem;
    }

    .product-cat-page-header h1 {
        font-size: 1.5rem;
    }
}

/* ============================================
   PÁGINA DE PRODUTO INDIVIDUAL (SINGLE)
   ============================================ */

.chagas-single-product {
    background: #f5f5f5;
    min-height: 60vh;
    padding-top: 60px;
}

.csp-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}

/* Breadcrumbs */
.csp-breadcrumbs {
    padding: 16px 0;
    font-size: .85rem;
    color: #777;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 28px;
}

.csp-breadcrumbs a {
    color: #1a7f45;
    text-decoration: none;
}

.csp-breadcrumbs a:hover {
    text-decoration: underline;
}

.csp-breadcrumbs .bc-sep {
    margin: 0 6px;
    color: #bbb;
}

/* Two-column layout */
.csp-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 40px;
}

/* Gallery */
.csp-gallery {
    position: sticky;
    top: 100px;
}

.csp-main-image {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    margin-bottom: 12px;
}

.csp-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .3s;
}

.csp-main-image:hover img {
    transform: scale(1.05);
}

.csp-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.csp-thumb {
    width: 72px;
    height: 72px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    padding: 4px;
    transition: border-color .2s;
}

.csp-thumb:hover,
.csp-thumb.active {
    border-color: #1a7f45;
}

.csp-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Info column */
.csp-info {
    padding-top: 4px;
}

.csp-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #222;
    margin: 0 0 12px;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.csp-sku {
    font-size: .85rem;
    color: #888;
    margin: 0 0 6px;
}

.csp-sku strong {
    color: #555;
}

.csp-category {
    font-size: .85rem;
    color: #888;
    margin: 0 0 16px;
}

.csp-category a {
    color: #1a7f45;
    text-decoration: none;
}

.csp-category a:hover {
    text-decoration: underline;
}

/* Price */
.csp-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a7f45;
    margin-bottom: 12px;
    line-height: 1.2;
}

.csp-price .amount {
    color: #1a7f45;
}

.csp-price del {
    font-size: 1.1rem;
    color: #aaa;
    font-weight: 400;
}

.csp-price ins {
    text-decoration: none;
}

/* Stock badge */
.csp-stock {
    font-size: .85rem;
    font-weight: 600;
    margin: 0 0 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 20px;
}

.csp-stock::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.csp-stock--in {
    background: #e8f5e9;
    color: #2e7d32;
    display: none;
}

.csp-stock--in::before {
    background: #2e7d32;
}

.csp-stock--back {
    background: #fff3e0;
    color: #e65100;
}

.csp-stock--back::before {
    background: #e65100;
}

.csp-stock--out {
    background: #fce4ec;
    color: #c62828;
}

.csp-stock--out::before {
    background: #c62828;
}

/* Short description */
.csp-short-desc {
    font-size: .92rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e8e8;
}

.csp-short-desc p:last-child {
    margin-bottom: 0;
}

/* Add to cart */
.csp-actions {
    margin-bottom: 28px;
}

.csp-actions .cart {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.csp-actions .quantity .qty {
    width: 64px;
    height: 44px;
    border: 1px solid #ddd;
    border-radius: 6px;
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    background: #fff;
}

.csp-actions .single_add_to_cart_button {
    background: #1a7f45;
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.csp-actions .single_add_to_cart_button:hover {
    background: #145e33;
}

/* Attributes table */
.csp-attributes h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.csp-attr-table {
    width: 100%;
    border-collapse: collapse;
}

.csp-attr-table th,
.csp-attr-table td {
    padding: 10px 14px;
    text-align: left;
    font-size: .88rem;
    border-bottom: 1px solid #eee;
}

.csp-attr-table th {
    color: #555;
    font-weight: 600;
    width: 40%;
    background: #fafafa;
}

.csp-attr-table td {
    color: #333;
}

/* Full description */
.csp-full-desc {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 40px;
    border: 1px solid #e8e8e8;
}

.csp-full-desc h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 16px;
    text-transform: uppercase;
    padding-bottom: 12px;
    border-bottom: 2px solid #1a7f45;
}

.csp-desc-content {
    font-size: .92rem;
    line-height: 1.7;
    color: #555;
}

/* Related products */
.csp-related {
    margin-bottom: 40px;
}

.csp-related h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.csp-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.csp-related-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.csp-related-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.1);
    transform: translateY(-2px);
}

.csp-related-thumb {
    aspect-ratio: 1;
    overflow: hidden;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.csp-related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.csp-related-card h4 {
    font-size: .85rem;
    font-weight: 600;
    color: #333;
    margin: 12px 14px 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.csp-related-price {
    font-size: .9rem;
    font-weight: 700;
    color: #1a7f45;
    padding: 0 14px 14px;
    margin-top: auto;
}

/* Back button */
.csp-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1a7f45;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    padding: 10px 0;
    transition: color .2s;
}

.csp-back-btn:hover {
    color: #145e33;
    text-decoration: underline;
}

/* Responsivo - Produto Individual */
@media (max-width: 900px) {
    .csp-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .csp-gallery {
        position: static;
    }

    .csp-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .product-cat-page-header h1 {
        font-size: 1.5rem;
    }

    .csp-title {
        font-size: 1.2rem;
    }

    .csp-price {
        font-size: 1.4rem;
    }

    .csp-full-desc {
        padding: 20px 16px;
    }

    .csp-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .csp-thumb {
        width: 56px;
        height: 56px;
    }
}

/* ============================
   CATÁLOGOS FORNECEDORES PAGE
   ============================ */





.catalogos-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    background-color: transparent;
    border: none;
}

@media (min-width: 576px) {
    .catalogos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .catalogos-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 992px) {
    .catalogos-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.catalogo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 22px 10px 34px;
    background-color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 240px;
    min-width: 0;
    border: 1px solid #d9d9d9;
    border-radius: 0;
    box-shadow: none;
}

.catalogo-card::after {
    content: '';
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 9px solid transparent;
    border-right: 9px solid transparent;
    border-bottom: 9px solid #1a7f45;
    z-index: 10;
    pointer-events: none;
}

.catalogo-card:hover::after {
    border-bottom-color: #fff;
}

.catalogo-card:hover {
    background-color: #1a7f45;
    border-color: #1a7f45;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0,0,0,0.1);
}

.catalogo-card .cat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: #333;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
}

.catalogo-card .cat-name {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #333;
    margin-bottom: 25px;
    line-height: 1.2;
    min-height: 2.4em;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}

.catalogo-card .catalogo-icon {
    width: auto;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: auto;
}

.catalogo-card .catalogo-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.catalogo-card:hover .cat-label,
.catalogo-card:hover .cat-name {
    color: #fff;
}

/* Espaço após menu em páginas WooCommerce */
.woocommerce .site-main,
.single-product .site-main {
    padding-top: 50px;
}

/* Espaço após menu na lista de categorias */
.page-product-cat {
    padding-top: 50px;
}

/* ============================================
   STATIC HEROES — MESMO LOOK DA HOMEPAGE
   ============================================ */

.hero-slider-static {
    height: 520px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
}

.hero-slider-static .hero-slide {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-slider-static .slide-content {
    animation: heroFadeUp 0.8s ease 0.3s both;
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.page-maquinas,
.page-historia,
.page-siderurgicos,
.page-promocoes,
.page-catalogos {
    padding-top: 0;
}

.page-maquinas,
.page-catalogos,
.page-historia {
    background-color: #f8f8f8;
}

.page-siderurgicos {
    background-color: #e6e6e6;
}

.maquinas-inner,
.catalogos-inner,
.siderurgicos-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.historia-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 0;
}

.page-maquinas .section-title-container,
.page-historia .section-title-container,
.page-siderurgicos .section-title-container,
.page-catalogos .section-title-container,
.page-promocoes .section-title-container {
    display: none;
}

@media (max-width: 1024px) {
    .hero-slider-static {
        height: 460px !important;
    }
}

@media (max-width: 768px) {
    .hero-slider-static {
        height: 380px !important;
    }
}

@media (max-width: 480px) {
    .hero-slider-static {
        height: 320px !important;
    }
}

/* ============================================
   PROMO CAROUSEL STRIP (slide Promoções – homepage)
   ============================================ */
@keyframes promo-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Secção de destaques abaixo do slider */
.home-destaques-section {
    background: #FFF;
    padding: 2.5rem 0 3rem;
}

.home-destaques-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 18px;
}

.home-destaques-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.home-destaques-title {
    color: #187741;
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Preço no cartão de destaque */
.home-destaque-price {
    display: block;
    margin-top: 0.6rem;
    font-size: 1rem;
    font-weight: 700;
    color: #c41e3a;
    transition: color 0.3s ease;
}

.home-destaque-price .amount {
    color: inherit;
}

.home-destaque-price del {
    color: #999;
    font-weight: 400;
}

.home-destaque-price ins {
    text-decoration: none;
}

.categoria-card:hover .home-destaque-price {
    color: #ffd700;
}

/* Responsivo */
@media (max-width: 768px) {
    .home-destaques-section {
        padding: 1.5rem 0 2rem;
    }
}
