/* Cards de produto — mesmo padrão de /nossosprodutos e "Veja também" (detalhesproduto) */
.category-section .product-card,
.related-products-section.category-section .product-card,
.products-grid .product-card {
    background: #fff;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.2s ease;
    cursor: pointer;
    position: relative;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
}

.category-section .product-card:hover,
.products-grid .product-card:hover {
    border-color: #ddd;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.category-section .product-card.out-of-stock,
.products-grid .product-card.out-of-stock {
    opacity: 0.85;
}

.category-section .product-image,
.products-grid .product-image {
    width: 100%;
    height: 200px;
    min-height: 200px;
    flex-shrink: 0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid #fff;
}

.category-section .product-image img,
.products-grid .product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    background: #fff;
}

.category-section .btn-favorite,
.products-grid .btn-favorite {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #ccc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    z-index: 5;
    transition: all 0.2s ease;
}

.category-section .btn-favorite:hover,
.products-grid .btn-favorite:hover {
    color: #ef4444;
    transform: scale(1.1);
}

.category-section .btn-favorite.active,
.products-grid .btn-favorite.active {
    color: #ef4444;
    background: #fff;
}

.category-section .product-info,
.products-grid .product-info {
    padding: 1.25rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.category-section .product-meta-row,
.products-grid .product-meta-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.category-section .product-meta-placeholder,
.products-grid .product-meta-placeholder {
    display: block;
    height: 0.72rem;
    width: 0;
    overflow: hidden;
}

.category-section .product-name,
.products-grid .product-name {
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.category-section .product-card:hover .product-name,
.products-grid .product-card:hover .product-name {
    color: #103070;
}

.category-section .product-prices,
.products-grid .product-prices {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.category-section .price-row,
.products-grid .price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-section .price-info,
.products-grid .price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-section .price-value,
.products-grid .price-value {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.category-section .price-value.pix,
.products-grid .price-value.pix {
    color: #1a1a1a;
    font-size: 1.2rem;
}

.category-section .price-original,
.products-grid .price-original {
    font-size: 0.85rem;
    color: #999;
    text-decoration: line-through;
}

.category-section .discount-badge,
.products-grid .discount-badge {
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
}

.category-section .price-label-pix,
.products-grid .price-label-pix {
    font-size: 0.75rem;
    color: #1a1a1a;
    font-weight: 500;
}

.category-section .product-quote-label,
.products-grid .product-quote-label {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.35px;
    line-height: 1.3;
    text-transform: uppercase;
}

.product-summary-card #productPrice.product-quote-label {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.35px;
    line-height: 1.3;
    text-transform: uppercase;
}

.category-section .price-row--quote,
.products-grid .price-row--quote {
    min-height: 1.35rem;
    align-items: center;
}

.category-section .product-actions,
.products-grid .product-actions {
    display: flex;
    flex-direction: column;
    gap: 0;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
    pointer-events: auto;
    margin-top: auto;
}

.category-section .card-bottom-row,
.products-grid .card-bottom-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-top: 1px solid #eee;
    margin: auto -1.25rem -1.25rem -1.25rem;
}

.category-section .btn-buy-now,
.products-grid .btn-buy-now {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    border: none !important;
    border-radius: 0 !important;
    height: 44px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    background: #1a1a1a;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-section .btn-buy-now:hover,
.products-grid .btn-buy-now:hover {
    background: #10b981;
}

.category-section .btn-notify-stock,
.products-grid .btn-notify-stock,
.category-section .products-carousel .btn-notify-stock {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    border: none !important;
    border-radius: 0 !important;
    height: 44px;
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    background: #89cff0;
    color: #fff;
    text-transform: uppercase;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.category-section .btn-notify-stock:hover,
.products-grid .btn-notify-stock:hover,
.category-section .products-carousel .btn-notify-stock:hover {
    background: #5ba4d9;
}

.category-section .stock-urgency-badge,
.products-grid .stock-urgency-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    letter-spacing: 0.2px;
    line-height: 1;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.category-section .stock-urgency-badge i,
.products-grid .stock-urgency-badge i {
    font-size: 0.7rem;
}

.category-section .urgency-dot,
.products-grid .urgency-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
    flex-shrink: 0;
    animation: stelcUrgencyPulse 1.2s ease-in-out infinite;
}

@keyframes stelcUrgencyPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

.category-section .stock-urgency-badge.low-units,
.products-grid .stock-urgency-badge.low-units {
    background: transparent;
    color: #1a1a1a;
    border: none;
    box-shadow: none;
    animation: none;
    padding: 0 !important;
    border-radius: 0;
    font-weight: 600;
}

.category-section .stock-urgency-badge.out-stock,
.products-grid .stock-urgency-badge.out-stock {
    background: #ef4444;
    color: #fff;
    border: 1px solid #dc2626;
}

.category-section .stock-urgency-badge.out-stock i,
.products-grid .stock-urgency-badge.out-stock i {
    color: #fff;
}

.category-section .contact-us-details,
.products-grid .contact-us-details {
    margin: 0.35rem 0 0.5rem;
    padding: 0.45rem 0.55rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #f5fbf8 100%);
    border: 1px solid rgba(16, 185, 129, 0.18);
}

.category-section .contact-us-summary,
.products-grid .contact-us-summary {
    color: #334155;
    font-size: 0.78rem;
    line-height: 1.28;
    font-weight: 500;
}

.category-section .contact-us-summary strong,
.products-grid .contact-us-summary strong {
    color: #103070;
    font-weight: 800;
}

.category-section .btn-buy-now.btn-contact-us,
.products-grid .btn-buy-now.btn-contact-us,
.category-section .products-carousel .btn-buy-now.btn-contact-us {
    background: #fff !important;
    color: #1a1a1a !important;
    border: 1px solid #ddd !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700 !important;
}

.category-section .btn-buy-now.btn-contact-us:hover,
.products-grid .btn-buy-now.btn-contact-us:hover,
.category-section .products-carousel .btn-buy-now.btn-contact-us:hover {
    background: #f8f8f8 !important;
    color: #1a1a1a !important;
    border-color: #ccc !important;
}

.category-section .btn-buy-now.btn-contact-us .fa-whatsapp,
.products-grid .btn-buy-now.btn-contact-us .fa-whatsapp,
.category-section .products-carousel .btn-buy-now.btn-contact-us .fa-whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
    border-radius: 50%;
    background: #10b981;
    font-size: 0.7rem;
    line-height: 1;
    flex-shrink: 0;
}

.category-section .btn-buy-now.btn-contact-us .fa-whatsapp::before,
.products-grid .btn-buy-now.btn-contact-us .fa-whatsapp::before,
.category-section .products-carousel .btn-buy-now.btn-contact-us .fa-whatsapp::before {
    color: #fff !important;
}

/* Carrossel da home: mantém 5 visíveis, card igual ao catálogo */
.category-section .products-carousel .product-card {
    min-height: 0;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

@media (max-width: 1100px) {
    .category-section .product-image,
    .products-grid .product-image {
        height: 180px;
        min-height: 180px;
    }
}

@media (max-width: 900px) {
    .category-section .product-image,
    .products-grid .product-image {
        height: 160px;
        min-height: 160px;
    }
}

@media (max-width: 768px) {
    .category-section .product-name,
    .products-grid .product-name {
        font-size: 0.85rem;
        min-height: 2.6em;
    }

    .category-section .product-info,
    .products-grid .product-info {
        padding: 0.85rem;
    }

    .category-section .product-prices,
    .products-grid .product-prices {
        margin-bottom: 0;
        gap: 0.12rem;
    }

    .category-section .product-card:not(.contact-us-card) .price-info,
    .products-grid .product-card:not(.contact-us-card) .price-info {
        display: flex;
        flex-direction: row;
        align-items: baseline;
        gap: 0.35rem;
    }

    .category-section .product-card:not(.contact-us-card) .price-value.pix,
    .products-grid .product-card:not(.contact-us-card) .price-value.pix {
        white-space: nowrap;
        font-size: 0.85rem;
    }

    .category-section .product-card:not(.contact-us-card) .price-label-pix,
    .products-grid .product-card:not(.contact-us-card) .price-label-pix {
        color: #1a1a1a;
        font-weight: 600;
        white-space: nowrap;
    }

    .category-section .discount-badge,
    .products-grid .discount-badge {
        font-size: 0;
        line-height: 1;
    }

    .category-section .discount-badge::after,
    .products-grid .discount-badge::after {
        content: '-' attr(data-discount) '%';
        font-size: 0.7rem;
        font-weight: 700;
    }

    .category-section .card-bottom-row,
    .products-grid .card-bottom-row {
        margin: auto -0.85rem -0.85rem -0.85rem;
    }

    .category-section .btn-buy-now,
    .products-grid .btn-buy-now,
    .category-section .btn-notify-stock,
    .products-grid .btn-notify-stock,
    .category-section .products-carousel .btn-notify-stock {
        height: 38px;
        font-size: 0.78rem !important;
    }

    .category-section .btn-notify-stock i,
    .products-grid .btn-notify-stock i,
    .category-section .products-carousel .btn-notify-stock i {
        display: none !important;
    }

    .category-section .btn-notify-stock,
    .products-grid .btn-notify-stock,
    .category-section .products-carousel .btn-notify-stock {
        gap: 0 !important;
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
    }

    .category-section .btn-notify-stock span,
    .products-grid .btn-notify-stock span,
    .category-section .products-carousel .btn-notify-stock span {
        white-space: nowrap;
        font-size: 0.58rem !important;
        line-height: 1.1;
        letter-spacing: 0;
    }

    .category-section .product-quote-label,
    .products-grid .product-quote-label,
    .category-section .products-carousel .product-quote-label {
        white-space: nowrap;
        font-size: 0.58rem !important;
        letter-spacing: 0.02em;
        line-height: 1.15;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .category-section .price-row--quote,
    .products-grid .price-row--quote,
    .category-section .products-carousel .price-row--quote {
        min-height: auto;
        overflow: hidden;
    }

    .category-section .btn-buy-now.btn-contact-us,
    .products-grid .btn-buy-now.btn-contact-us,
    .category-section .products-carousel .btn-buy-now.btn-contact-us {
        background: #fff !important;
        color: #1a1a1a !important;
        border: 1px solid #ddd !important;
        border-radius: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        gap: 0.4rem !important;
        padding: 0 0.45rem !important;
        box-shadow: none !important;
    }

    .category-section .btn-buy-now.btn-contact-us .fa-whatsapp,
    .products-grid .btn-buy-now.btn-contact-us .fa-whatsapp,
    .category-section .products-carousel .btn-buy-now.btn-contact-us .fa-whatsapp {
        width: 1.2rem;
        height: 1.2rem;
        min-width: 1.2rem;
        font-size: 0.65rem;
    }

    .category-section .btn-buy-now.btn-contact-us span,
    .products-grid .btn-buy-now.btn-contact-us span,
    .category-section .products-carousel .btn-buy-now.btn-contact-us span {
        font-size: 0.58rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.02em;
        line-height: 1.1;
        white-space: nowrap;
    }

    .category-section .stock-urgency-badge,
    .products-grid .stock-urgency-badge {
        font-size: 0.6rem !important;
        padding: 0.25rem 0.55rem !important;
    }

    .category-section .stock-urgency-badge.low-units,
    .products-grid .stock-urgency-badge.low-units {
        padding: 0 !important;
    }
}

/* Modal avise-me (compartilhado) */
.stock-notify-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 25010;
    align-items: center;
    justify-content: center;
}

.stock-notify-modal.active {
    display: flex;
}

.stock-notify-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    animation: stelcModalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes stelcModalSlideIn {
    from { opacity: 0; transform: translateY(-20px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.stock-notify-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: #f5f5f5;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: all 0.2s ease;
}

.stock-notify-close:hover {
    background: #ff4757;
    color: #fff;
}

.stock-notify-product-image {
    width: 140px;
    height: 140px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.stock-notify-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.stock-notify-icon.success {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stock-notify-icon.success i {
    font-size: 2.5rem;
    color: #fff;
}

.stock-notify-success {
    text-align: center;
}

.stock-notify-product {
    text-align: center;
    font-size: 0.95rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stock-notify-desc {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.stock-notify-field {
    margin-bottom: 1rem;
}

.stock-notify-field label {
    display: block;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.stock-notify-field input {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.stock-notify-field input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.stock-notify-submit {
    width: 100%;
    padding: 1rem;
    border: none;
    background: #89cff0;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stock-notify-submit:hover {
    background: #5ba4d9;
    transform: none;
    box-shadow: none;
}

.stock-notify-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}
