/* Extraído de includes/footer.php (antes embutido no HTML) */
/* Category Modal Styles */
.footer-cat-modal-overlay {
    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: 10000;
    justify-content: center;
    align-items: flex-end;
    /* Bottom sheet behavior */
    opacity: 0;
    transition: opacity 0.3s;
}

.footer-cat-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.footer-cat-modal {
    background: #fff;
    width: 100%;
    max-width: 600px;
    /* Limit width on tablets */
    max-height: 85vh;
    border-radius: 24px 24px 0 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.footer-cat-modal-overlay.active .footer-cat-modal {
    transform: translateY(0);
}

.footer-cat-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.footer-cat-title {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-cat-close {
    background: #f1f5f9;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    cursor: pointer;
    transition: background 0.2s;
}

.footer-cat-close:hover {
    background: #e2e8f0;
    color: #ef4444;
}

.footer-cat-body {
    overflow-y: auto;
    padding: 15px 20px 20px;
    background: #ffffff;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-cat-search-wrap {
    position: sticky;
    top: 0;
    background: #fff;
    padding: 5px 0 15px;
    z-index: 5;
}

.footer-cat-search {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
}

.footer-cat-search:focus {
    border-color: var(--primary-color, #00acc1);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 172, 193, 0.1);
}

.footer-cat-search-icon {
    position: absolute;
    left: 14px;
    top: 17px;
    color: #94a3b8;
    font-size: 14px;
}

.footer-cat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.footer-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #475569;
    gap: 8px;
    padding: 12px 8px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    height: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.footer-cat-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color, #00acc1);
    color: var(--primary-color, #00acc1);
}

.footer-cat-icon-box {
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--primary-color, #00acc1);
    transition: all 0.2s;
}

.footer-cat-item:hover .footer-cat-icon-box {
    background: var(--primary-color, #00acc1);
    color: #fff;
}

.footer-cat-item span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

/* List Styles for Phone/WhatsApp Modals */
.phone-list-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    border: 1px solid #e2e8f0;
    transition: background 0.2s;
}

.phone-list-item:active {
    background: #eef2ff;
}

.phone-list-item i {
    margin-right: 12px;
    font-size: 18px;
}

.phone-list-item span {
    font-size: 14px;
    font-weight: 500;
}

.phone-tag {
    font-size: 11px;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    color: #64748b;
}

.sticky-footer-mobile {
    display: none;
}

@media (max-width: 768px) {
    .sticky-footer-mobile {
        display: flex;
    }
}

@media (max-width: 360px) {
    .footer-cat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
