/* =========================================
   HEADER DAS PÁGINAS INTERNAS E RODAPÉ
========================================= */
.subpage-header {
    background-color: var(--green-dark);
    border-bottom: 4px solid var(--orange-primary);
}

.site-footer {
    background-color: var(--green-dark);
    color: rgba(255, 255, 255, 0.88);
    padding-top: 60px;
    margin-top: 80px;
    border-top: 6px solid var(--orange-primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: 40px;
    padding-bottom: 48px;
}

.footer-logo {
    height: 42px;
    margin-bottom: 16px;
}

.footer-col h4 {
    color: var(--white);
    font-size: 1.05rem;
    margin-bottom: 14px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.92rem;
}

.footer-col a:hover {
    color: var(--orange-primary);
}

.footer-col p {
    font-size: 0.92rem;
    margin-bottom: 16px;
}

.btn-sm {
    padding: 10px 22px;
    font-size: 0.85rem;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.22);
    padding: 18px 0;
    font-size: 0.85rem;
    text-align: center;
}

/* =========================================
   VITRINE DO CATÁLOGO (catalogo.php)
========================================= */
.catalog-banner {
    background: linear-gradient(135deg, var(--green-primary) 0%, var(--green-dark) 100%);
    color: var(--white);
    padding: 52px 0 60px;
    text-align: center;
}

.catalog-banner h1 {
    font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    font-weight: 800;
    margin: 6px 0 12px;
}

.catalog-banner p {
    max-width: 600px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.92);
}

.catalog-search-form {
    display: flex;
    max-width: 580px;
    margin: 0 auto;
    gap: 10px;
    background: var(--white);
    padding: 6px;
    border-radius: 50px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16);
}

.catalog-search-form input {
    flex: 1;
    border: none;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-family: inherit;
    border-radius: 50px;
    outline: none;
    color: var(--text-dark);
}

.catalog-body {
    padding-top: 38px;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.pill {
    padding: 9px 20px;
    border-radius: 50px;
    background-color: #F3F4F6;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pill:hover {
    background-color: #E5E7EB;
}

.pill.active {
    background-color: var(--green-primary);
    color: var(--white);
}

.catalog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.clear-filters {
    color: var(--orange-primary);
    font-weight: 700;
    text-decoration: none;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--white);
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.08);
}

.product-card-img {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    background-color: #F9FAFB;
    overflow: hidden;
}

.product-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.product-card:hover .product-card-img img {
    transform: scale(1.04);
}

.badge-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: rgba(6, 99, 24, 0.9);
    color: var(--white);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 50px;
    z-index: 2;
}

.product-card-info {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-sku {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-bottom: 4px;
}

.product-card-info h2,
.product-card-info h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.product-card-info h2 a,
.product-card-info h3 a {
    color: var(--text-dark);
    text-decoration: none;
}

.product-card-info h2 a:hover,
.product-card-info h3 a:hover {
    color: var(--green-primary);
}

.product-summary {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-footer {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid #F3F4F6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.product-price small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.product-price strong {
    font-size: 1.08rem;
    color: var(--green-dark);
    font-weight: 800;
}

.product-price.consult strong {
    font-size: 0.92rem;
    color: var(--text-muted);
}

.btn-card-details {
    background-color: var(--orange-primary);
    color: var(--white);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.btn-card-details:hover {
    background-color: var(--orange-hover);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.page-link {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
}

.page-link.active {
    background-color: var(--green-primary);
    border-color: var(--green-primary);
    color: var(--white);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #F9FAFB;
    border-radius: 18px;
}

.empty-state p {
    margin: 8px 0 22px;
    color: var(--text-muted);
}

/* =========================================
   PÁGINA INTERNA DO PRODUTO (produto.php)
========================================= */
.product-page-main {
    padding-top: 28px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.breadcrumb a {
    color: var(--green-primary);
    text-decoration: none;
    font-weight: 600;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.gallery-main-frame {
    aspect-ratio: 1 / 1;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    overflow: hidden;
}

.gallery-main-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-thumbs {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.thumb-btn {
    width: 74px;
    height: 74px;
    border-radius: 12px;
    border: 2px solid #E5E7EB;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    background: var(--white);
    flex-shrink: 0;
}

.thumb-btn.active {
    border-color: var(--orange-primary);
}

.thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-top-tags {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tag-cat {
    background-color: #E8F5E9;
    color: var(--green-dark);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 50px;
}

.tag-sku {
    font-size: 0.82rem;
    color: #9CA3AF;
}

.product-buy-box h1 {
    font-size: clamp(1.6rem, 2.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-dark);
    margin-bottom: 14px;
}

.product-short-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 22px;
}

.price-display-box {
    background-color: #F9FAFB;
    border-left: 4px solid var(--green-primary);
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
}

.price-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.price-value {
    font-size: 1.85rem;
    font-weight: 800;
    color: var(--green-dark);
}

.price-consult {
    display: block;
    font-size: 1.2rem;
    color: var(--green-dark);
}

.price-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.variation-group {
    margin-bottom: 22px;
}

.variation-label {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.variation-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.var-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: 2px solid #E5E7EB;
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.15s ease;
}

.var-btn:hover {
    border-color: var(--green-primary);
}

.var-btn.selected {
    border-color: var(--orange-primary);
    background-color: #FFF7ED;
    color: var(--orange-hover);
}

.btn-whatsapp-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    background-color: #16A34A;
    color: var(--white);
    text-decoration: none;
    padding: 16px 24px;
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(22, 163, 74, 0.25);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.btn-whatsapp-cta:hover {
    background-color: #15803D;
    transform: translateY(-2px);
}

.btn-whatsapp-cta strong {
    display: block;
    font-size: 1.05rem;
}

.btn-whatsapp-cta span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.92;
}

.trust-badges {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.product-tabs-section {
    margin-top: 56px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.info-block {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 18px;
    padding: 28px;
}

.info-block h2 {
    font-size: 1.25rem;
    color: var(--green-dark);
    margin-bottom: 14px;
}

.rich-text {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.specs-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.specs-list li {
    padding-bottom: 10px;
    border-bottom: 1px solid #E5E7EB;
    font-size: 0.92rem;
    color: var(--text-dark);
}

.specs-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-section {
    margin-top: 64px;
}

.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.section-title-row h2 {
    font-size: 1.45rem;
    color: var(--green-dark);
}

.section-title-row a {
    color: var(--orange-primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.92rem;
}

@media (max-width: 900px) {
    .footer-grid,
    .product-detail-grid,
    .product-tabs-section {
        grid-template-columns: 1fr;
    }
}